Open pkriens opened 3 years ago
Thanks for pointing out the issue. The reason is that Int
is a special set in the translation process. It is defined as a boolean constant (True), which means there is no way to minimize the set Int
. By default, Alloy adds Int = {-8, -6, ..., 7}
to the universe of a problem. Users have to manually pick the best range that fits their problems.
A quick fix is to check that for any minsome/maxsome r
, r
should be a boolean formula, and ignore this kind of usage.
The following program:
Created the following exception:
The same exception occurred in a larger program that did not use Int as the optimization target, which I can understand is special as usual.
Stack trace: