Debian Codegraph @

tests/spec/unit/regression/flatten_comp_in2.mzn

raw
1 /***
2 !Test
3 expected:
4 - !Result
5 solution: !Solution
6 bs: [false, true, false, true]
7 - !Result
8 solution: !Solution
9 bs: [true, false, true, false]
10 ***/
11
12 function array[int] of var int: func() =
13 let {
14 array[1..2] of var 1..2: x;
15 } in x;
16
17 array[1..2] of var bool: as;
18 array[1..4] of var bool: bs ::add_to_output = [ a \/ x=1 | a in as, x in func() ];
19
20 constraint bs[1] != bs[2];
21 constraint bs[2] != bs[3];
22 constraint bs[3] != bs[4];