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
446 B
MiniZinc

% RUNS ON mzn20_fd
% RUNS ON mzn-fzn_fd
% RUNS ON mzn20_fd_linear
% RUNS ON mzn20_mip
% Regression test for the second problem in bug 68.
% The type checker was assigning the type var bottom to the elements of
% array1d(1..2, [_, _]) below and that was causing mzn2fzn to abort.
int: N = 2;
array[1..N] of var 1 .. N: b;
constraint forall([ b[i] = array1d(1..2, [_, _])[i] | i in index_set(b) ]);
solve satisfy;
output ["b = ", show(b), "\n"];