Debian Codegraph @

tests/spec/unit/regression/bug69_2.mzn

raw
1 /***
2 !Test
3 expected:
4 - !Result
5 solution: !Solution
6 y: 2
7 - !Result
8 solution: !Solution
9 y: 10
10 ***/
11
12 % A regression test for G12 bug #69.
13 %
14 var int: y;
15 predicate p(var 1..10: x) = (x mod 2 = 0);
16 constraint p(y);
17 solve satisfy;
18 output ["y = ", show(y), ";\n"];