☰
Debian Codegraph
@
2.9.7+dfsg1-1
2.10.0+dfsg1-1
/
/
tests
/
spec
/
unit
/
general
/
test_bool_var_array_access.mzn
☽
☼
tests/spec/unit/general/test_bool_var_array_access.mzn
code
plain
raw
MPL-2.0
2014-2025 Monash University and NICTA
debian/copyright
1
/***
2
!Test
3
expected:
4
- !Result
5
status: SATISFIED
6
solution: !Solution
7
i: 2
8
y: true
9
- !Result
10
status: SATISFIED
11
solution: !Solution
12
i: 2
13
y: false
14
***/
15
16
var 1..3: i;
17
var bool: y;
18
constraint y = [not(y), y, not(y)][i];
19
20
solve satisfy;