Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Flattening of reified constraints #67
Flattening the following model produces no error but a model with a call to the non-existing predicate "something_reif".
The behaviour of 1.6 was to raise an error and I would argue that this should be the behaviour for the current MiniZinc as well. First, it makes more sense to do the same (raise an error) as for calls to other non-existing predicates. Second, errors are caught earlier: note that if the predicate is not defined in the library, then there are good chances that it is not accepted by the FlatZinc parser of the corresponding solver.
See the corresponding discussion on the MiniZinc forum: https://www.minizinc.org/forum/viewtopic.php?f=5&t=613