Closed
Description
A model run by minizinc -O5 model.mzn runs fine under version 2.8.0 but gives errors under version 2.8.1.:
Multiple type errors:
Error: type error: Type array[int,int] of bool is not allowed in as a FlatZinc builtin argument, arrays must be one dimensional
/MiniZinc/share/minizinc/gecode_presolver/fzn_table_bool.mzn:37.53-78
Error: type error: Type array[int,int] of int is not allowed in as a FlatZinc builtin argument, arrays must be one dimensional
/MiniZinc/share/minizinc/gecode_presolver/fzn_regular.mzn:38.19-42
The model does not have booleans but an 2-dimensional array containing 0 or 1. The only cause I see is that the optimizer changes the 0's and 1's in booleans. Without the option -O5 the model works fine,