Debian Codegraph @

tests/spec/unit/general/test_par_set_id_array_index_sets.mzn

raw
1 /***
2 !Test
3 expected: !Result
4 status: SATISFIED
5 solution: !Solution
6 _output_item: Ok
7 ***/
8
9 predicate p(array [int] of var int: xs) =
10 let {
11 set of int: ix = index_set(xs),
12 array [ix] of var bool: ys
13 } in
14 ys[1];
15
16 solve satisfy;
17
18 output ["Ok"];