suppose I have the following model :
sig counter{
value: Int,
}
{
value > 0
value < 3
}
pred show{}
run show for exactly 1 counter
I would like to generate the als files corresponding to the two instances of this model :
open counter
one sig counter_1 extends counter{}{ value=1 }
fact { counter = {counter_1}}
and,
open counter
one sig counter_2 extends counter{}{ value=2 }
fact { counter = {counter_2}}
I have used the Alloy API to generate the instances but I cant find the method to export them to als files (unless parsing xml or txt files).
I can imagine there exist such a method especial for people who do model transformation (which is my case since I want to transform the instances back to the original méta model)
Any hints? Thanks