Debian Codegraph @

tests/spec/unit/general/test_negated_let_good_2.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: [0]
11 - !Solution
12 x: [2]
13 ***/
14
15 array[1..1] of var 0..2: x;
16 constraint not (let { var int: y = x[x[1]] } in y > 0);
17
18 solve :: int_search(x, input_order, indomain_min, complete)
19 satisfy;