Debian Codegraph @

tests/spec/unit/globals/strict_lex2/globals_strict_lex2.mzn

raw
1 /***
2 !Test
3 solvers: [gecode, chuffed]
4 expected: !Result
5 solution: !SolutionSet
6 - !Solution
7 y:
8 - [1, 2]
9 - [2, 1]
10 - !Solution
11 y:
12 - [1, 1]
13 - [1, 2]
14 - !Solution
15 y:
16 - [1, 2]
17 - [2, 2]
18 options:
19 all_solutions: true
20 ***/
21
22 include "strict_lex2.mzn";
23
24 array[1..2, 1..2] of var 1..2: y ::add_to_output;
25
26 constraint strict_lex2([|2, 2, 3|
27 2, 3, 1|]);
28
29 constraint strict_lex2(y);
30
31 solve satisfy;
32
33 output ["y = array2d(1..2, 1..2, ", show(y), ");\n"];