I'm using Alloy using its API as explained in Alloy - Generate .xml instance from .als.
I want to iterate over all solutions.
How to do this?
I'm using Alloy using its API as explained in Alloy - Generate .xml instance from .als.
I want to iterate over all solutions.
How to do this?
In order to iterate over all the satisfiable solutions, you can simply loop over calls of the next() method on your A4Solution object, until the solution obtained is unsatisfiable (check with the satisfiable() method).
You will have something like :