☰
Debian Codegraph
@
2.9.7+dfsg1-1
2.10.0+dfsg1-1
/
/
tests
/
spec
/
unit
/
optional
/
opt_array_access_absent_empty.mzn
☽
☼
tests/spec/unit/optional/opt_array_access_absent_empty.mzn
code
plain
raw
MPL-2.0
2014-2025 Monash University and NICTA
debian/copyright
1
/***
2
!Test
3
expected: !Result
4
solution: !Solution
5
x: []
6
i: null
7
y: null
8
***/
9
array [1..0] of var 1..1: x;
10
var opt 1..1: i;
11
var opt 1..1: y :: output = x[i];