Debian Codegraph @

tests/spec/unit/general/md_forall.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 options:
5 all_solutions: true
6 expected:
7 - !Result
8 solution:
9 - !Solution
10 b: true
11 bs: [[[true, true], [true, true]], [[true, true], [true, true]]]
12 ---
13 !Test
14 solvers: [cbc, chuffed]
15 expected: !Result
16 solution: !Solution
17 b: true
18 bs: [[[true, true], [true, true]], [[true, true], [true, true]]]
19 ***/
20
21 bool: b :: add_to_output = forall([|true, true | true \/ false, not false|]);
22 array[1..2,1..2,1..2] of var bool: bs :: add_to_output;
23 constraint forall(bs);
24
25 solve satisfy;