libminizinc icon indicating copy to clipboard operation
libminizinc copied to clipboard

MinniZinc 2.6.3: flattener error (wrong answer)

Open matsc-at-sics-se opened this issue 3 years ago • 1 comments

This is a continuation of #565 , which apparently was not quite fixed. This model is infeasible:

var bool: c;
var bool: d;
constraint
    not(not(true xor c) -> ((d -> c) xor false));

output [show([c,d]) ++ "\n"];

but MiniZinc finds two wrong answers:

$ minizinc -a bar.mzn
[true, false]
----------
[true, true]
----------
==========

matsc-at-sics-se avatar Sep 26 '22 16:09 matsc-at-sics-se

It appears that this issue has already been resolved on the current develop branch. I've added an additional regression test in 4b297c93254c86337c019fd47d8be341b96e600a to ensure the issue doesn't reappear.

Dekker1 avatar Sep 27 '22 07:09 Dekker1

This should now be fixed in version 2.7.0

cyderize avatar Feb 24 '23 22:02 cyderize