Debian Codegraph @

tests/spec/unit/globals/lex_less/test_bool_lex_less.mzn

raw
1 /***
2 !Test
3 solvers: [gecode, chuffed]
4 expected: !Result
5 solution: !SolutionSet
6 - !Solution
7 x:
8 - false
9 - false
10 y:
11 - true
12 - false
13 - !Solution
14 x:
15 - false
16 - true
17 y:
18 - true
19 - false
20 - !Solution
21 x:
22 - false
23 - false
24 y:
25 - false
26 - true
27 - !Solution
28 x:
29 - false
30 - false
31 y:
32 - true
33 - true
34 - !Solution
35 x:
36 - true
37 - false
38 y:
39 - true
40 - true
41 - !Solution
42 x:
43 - false
44 - true
45 y:
46 - true
47 - true
48 options:
49 all_solutions: true
50 ***/
51
52 include "lex_less.mzn";
53
54 array[1..2] of var bool: x ::add_to_output;
55 array[1..2] of var bool: y ::add_to_output;
56
57 constraint lex_less(x, y);
58
59 solve satisfy;
60
61 output [
62 "x = array1d(1..2, ", show(x), ");\n",
63 "y = array1d(1..2, ", show(y), ");\n"
64 ];