Debian Codegraph @

tests/spec/unit/compilation/test_bug_943a.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 options:
5 all_solutions: true
6 expected: !Result
7 solution: !SolutionSet
8 - !Solution
9 b: false
10 y: 0
11 - !Solution
12 b: true
13 y: 1
14 ***/
15
16 var bool: b;
17 var int: x = bool2int(b);
18 var 0..1: y;
19
20 constraint y <= x;
21 constraint x <= y;