Skip to content

MZN 2.5.3 flattening bug: xorall #451

Closed
@matsc-at-sics-se

Description

@matsc-at-sics-se

Illustration:

$ cat foo.mzn
var 0..1: A;
var 0..1: B;
constraint
    xorall(p in [A=1])(p) <-> B=1;
$ minizinc -c foo.mzn 
$ minizinc -a foo.mzn 
A = 1;
B = 1;
----------
==========
$ cat foo.fzn
var 1..1: A;
var 1..1: B;
solve  satisfy;

There should be a second solution: A=0, B=0. The flattener does some invalid transformation, it seems. The bug surfaces for lists of length greater than one as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions