Debian Codegraph @

tests/spec/unit/regression/github_639_part1.mzn

raw
1 /***
2 !Test
3 options:
4 all_solutions: true
5 solvers: [gecode]
6 expected: !Result
7 solution: !SolutionSet
8 - !Solution
9 x: 1
10 arr: [null, null]
11 - !Solution
12 x: 1
13 arr: [1, null]
14 - !Solution
15 x: 2
16 arr: [null, null]
17 - !Solution
18 x: 2
19 arr: [null, 1]
20 ***/
21 var 1..2: x;
22 array[1..2] of var opt 1..1: arr;
23 constraint absent(arr[x - 1]) \/ absent(arr[x + 1]);