Skip to content

segfault with conditional in var comprehension #45

@wcbeard

Description

@wcbeard

The following code

var 1..1: i;
predicate losseq(array[int] of var int: a) = sum([1 | e in a where e >= 1]) = 1;
constraint losseq([0]);
solve satisfy;

results in a segfault when run from the terminal with command

$ /Applications/MiniZincIDE.app/Contents/Resources/mzn2fzn debug.mzn  -Ggecode
[1]    26370 segmentation fault  /Applications/MiniZincIDE.app/Contents/Resources/mzn2fzn debug.mzn -Ggecode

I'm using The MiniZinc IDE Version 0.9.9.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions