Debian Codegraph @

tests/spec/unit/regression/github_669.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 expected:
5 - !Result
6 solution: !Solution
7 v: null
8 - !Result
9 solution: !Solution
10 v: 1
11 ***/
12
13 array[1..2] of record(1..2: x): records = [(x: 1), (x: 2)];
14
15 var opt 1..1: v;
16
17 constraint if occurs(v) then records[deopt(v)].x = 1 endif;
18
19 solve satisfy;