Debian Codegraph @

tests/spec/unit/regression/test_bug359.mzn

raw
1 /***
2 !Test
3 solvers: [gecode, chuffed]
4 options:
5 all_solutions: true
6 expected: !Result
7 status: ALL_SOLUTIONS
8 solution: !SolutionSet
9 - !Solution
10 p1: 1
11 p2: 1
12 p3: 0
13 p4: 0
14 - !Solution
15 p1: 1
16 p2: 1
17 p3: 0
18 p4: 1
19 - !Solution
20 p1: 1
21 p2: 1
22 p3: 1
23 p4: 1
24 ***/
25
26 var 0..1: p1;
27 var 0..1: p2;
28 var 0..1: p3;
29 var 0..1: p4;
30
31 constraint (not ((p1==1 /\ p2==0) \/ (p3==1 /\ p4==0)));
32 constraint p1 = 1;
33 solve satisfy;