Debian Codegraph @

tests/spec/unit/compilation/test_bug_943b.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 options:
5 all_solutions: true
6 expected: !Result
7 solution: !SolutionSet
8 - !Solution
9 x: 0
10 z: 0
11 - !Solution
12 x: 0
13 z: 1
14 - !Solution
15 x: 0
16 z: 2
17 - !Solution
18 x: 0
19 z: 3
20 - !Solution
21 x: 1
22 z: 3
23 - !Solution
24 x: 2
25 z: 3
26 - !Solution
27 x: 3
28 z: 3
29 ***/
30
31 var 0..3: x;
32 var {0,3}: y ::no_output;
33 var 0..3: z;
34
35 constraint x <= y /\ y <= z;