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.

14 lines
297 B
MiniZinc

/***
!Test
expected: !Result
solution: !Solution
z: [null, null]
***/
% Crashes due to assuming ids have a decl, when <> does not.
array [1..2] of var 0..1: x = [0, 0];
array [1..1] of var 1..1: y;
array [1..2] of var opt 1..1: z :: add_to_output = [y[x[i]] | i in 1..2 where x[i] != 0];