Debian Codegraph @

tests/spec/unit/general/cse_ctx.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 options:
5 -G: std
6 all_solutions: true
7 expected: !Result
8 status: ALL_SOLUTIONS
9 solution: !SolutionSet
10 - !Solution
11 x: 1
12 b: true
13 a: true
14 c: false
15 - !Solution
16 x: 0
17 b: false
18 a: false
19 c: true
20 - !Solution
21 x: 0
22 b: false
23 a: true
24 c: true
25 - !Solution
26 x: 1
27 b: true
28 a: false
29 c: true
30 ***/
31
32 predicate int_eq_imp(var int: a, var int: b, var bool: r);
33
34 predicate foo() = a /\ b;
35
36 var 0..1: x;
37
38 var bool: a;
39 var bool: b :: output = x = 1;
40
41 var bool: c;
42 constraint c \/ foo();
43 constraint c xor foo();