☰
Debian Codegraph
@
2.9.7+dfsg1-1
2.10.0+dfsg1-1
/
/
tests
/
spec
/
unit
/
compilation
/
test_bug_943a.mzn
☽
☼
tests/spec/unit/compilation/test_bug_943a.mzn
code
plain
raw
MPL-2.0
2014-2025 Monash University and NICTA
debian/copyright
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;