Debian Codegraph @

tests/spec/unit/regression/github_644_b.mzn

raw
1 /***
2 !Test
3 check_against: []
4 expected:
5 - !Result
6 solution: !Solution
7 a:
8 - null
9 b:
10 - 1
11 status: SATISFIED
12 extra_files: []
13 markers: []
14 name: ''
15 options:
16 all_solutions: false
17 solvers:
18 - gecode
19 type: solve
20 ***/
21
22 array[1..1] of var opt 1..1: a;
23 array[1..1] of var 1..1: b;
24
25 constraint occurs(a[b[1]]) -> a[b[1]] + b[1] - 1 = 1;