1
0
This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.

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