You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat foo.mzn
var 0..1: A;
var 0..1: B;
constraint
xorall(p in [A=1])(p) <-> B=1;
$ minizinc -c foo.mzn
$ minizinc -a foo.mzn
A = 1;
B = 1;
----------
==========
$ cat foo.fzn
var 1..1: A;
var 1..1: B;
solve satisfy;
There should be a second solution: A=0, B=0. The flattener does some invalid transformation, it seems. The bug surfaces for lists of length greater than one as well.
Activity
matsc-at-sics-se commentedon Jan 27, 2021
It's more general than that. The bug surfaces if you replace
xorallbyexistsorforallas well.zayenz commentedon Jan 28, 2021
As an additional data-point, breaking out the array comprehension into it's own variable like this
gives the expected behavior with two solutions.
Use generic flattening inside generators. Fixes #451.