Debian Codegraph @

tests/spec/unit/globals/subcircuit/test_subcircuit.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: [1, 2, 3, 4]
11 - !Solution
12 x: [2, 1, 3, 4]
13 - !Solution
14 x: [1, 4, 3, 2]
15 - !Solution
16 x: [4, 2, 3, 1]
17 - !Solution
18 x: [2, 4, 3, 1]
19 - !Solution
20 x: [4, 1, 3, 2]
21 - !Solution
22 x: [1, 2, 4, 3]
23 - !Solution
24 x: [1, 3, 2, 4]
25 - !Solution
26 x: [1, 3, 4, 2]
27 - !Solution
28 x: [1, 4, 2, 3]
29 - !Solution
30 x: [3, 2, 1, 4]
31 - !Solution
32 x: [4, 2, 1, 3]
33 - !Solution
34 x: [3, 2, 4, 1]
35 - !Solution
36 x: [2, 3, 1, 4]
37 - !Solution
38 x: [3, 1, 2, 4]
39 - !Solution
40 x: [4, 3, 1, 2]
41 - !Solution
42 x: [2, 3, 4, 1]
43 - !Solution
44 x: [3, 4, 2, 1]
45 - !Solution
46 x: [4, 1, 2, 3]
47 - !Solution
48 x: [2, 4, 1, 3]
49 - !Solution
50 x: [3, 1, 4, 2]
51 ***/
52
53 include "subcircuit.mzn";
54
55 array[1..4] of var 1..4: x :: add_to_output;
56
57 constraint subcircuit(x);
58
59 solve satisfy;