Debian Codegraph @

tests/spec/unit/regression/github_732.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 expected: !Result
5 status: SATISFIED
6 solution: !Solution
7 sts: [{"x": 0}, {"x": 1}]
8 ***/
9 type State = record(0..1: x);
10
11 predicate trans_closure(array[1..2] of var State: sts) = (sts[1].x + 1 == sts[2].x);
12
13 array[1..2] of var State: sts;
14 constraint trans_closure(sts);