Debian Codegraph @

tests/spec/unit/general/test_negated_and.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 x: false
11 y: false
12 z: false
13 - !Solution
14 x: false
15 y: false
16 z: true
17 - !Solution
18 x: false
19 y: true
20 z: false
21 - !Solution
22 x: false
23 y: true
24 z: true
25 - !Solution
26 x: true
27 y: false
28 z: false
29 - !Solution
30 x: true
31 y: false
32 z: true
33 - !Solution
34 x: true
35 y: true
36 z: false
37 ***/
38
39 var bool: x;
40 var bool: y;
41 var bool: z;
42
43 constraint not(x /\ y /\ z);
44
45 solve satisfy;