Skip to content

option -O5 gives errors. #755

Closed
Closed
@vdijken

Description

@vdijken

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,

Metadata

Metadata

Assignees

Labels

bugresolvedIssue is resolved and the feature or fix will be part of next release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions