Debian Codegraph @

tests/spec/unit/optional/opt_array_access_absent_empty.mzn

raw
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];