Debian Codegraph @

tests/spec/unit/regression/github_785.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 options:
5 -G: std
6 expected: !Result
7 status: UNSATISFIABLE
8 ***/
9
10 % Regression test for where redefinition of bool_clause_reif was used for the
11 % known true exists([x1, x2]) causing a circular redefinition into
12 % clause([x1, x2], [true]) removing the constraint due to CSE.
13
14 var 0..2: x;
15 var bool: x1 :: output = x = 1;
16 var bool: x2 :: output = x = 2;
17 var bool: b = true;
18 var bool: c :: output = forall (i in {1} where b) (x1 \/ x2);
19 constraint c;
20 constraint x = 0;