Debian Codegraph @

tests/spec/unit/regression/arg-reif-array-int.mzn

raw
1 /***
2 !Test
3 solvers: [gecode, chuffed]
4 expected: !Result
5 solution: !SolutionSet
6 - !Solution
7 a: 1
8 - !Solution
9 a: 2
10 - !Solution
11 a: 3
12 options:
13 all_solutions: true
14 ***/
15
16 var 1..3: a;
17
18 predicate test_pred(array[int] of 1..10: x, var int: y) = y = 3;
19
20 constraint test_pred([1, 2, 4, 11], a) == false;
21
22 solve satisfy;
23
24 output ["a = ", show(a), ";\n"];