git-subtree-dir: software/minizinc git-subtree-split: 4f10c82056ffcb1041d7ffef29d77a7eef92cf76
15 lines
298 B
MiniZinc
15 lines
298 B
MiniZinc
/***
|
|
!Test
|
|
expected: !Result
|
|
status: SATISFIED
|
|
***/
|
|
|
|
% Used to give UNSATISFIABLE due to introducing a call for the array comprehension.
|
|
|
|
array [1..1] of var 0..1: x;
|
|
array [1..1] of var 1..1: y;
|
|
|
|
constraint absent(z[1]);
|
|
|
|
array [1..1] of var opt 1..1: z = [y[x[i]] | i in 1..1 where x[i] != 0];
|