Debian Codegraph @

tests/spec/unit/regression/move_where_clause.mzn

raw
1 /***
2 !Test
3 expected: !Result
4 status: SATISFIED
5 ***/
6
7 array[1..4] of bool: t = [true, false, true, false];
8 array[int] of int: x = [ i+j | i in 1..4 where t[i], j in 1..4];
9 constraint sum(x) = 36;