Skip to content

Empty array of vars with empty domain makes model unsat #534

Closed
@matsc-at-sics-se

Description

@matsc-at-sics-se

The following illustrates it. It happened in an automatically generated model. IMHO, this should not make the model unsat, because there are no variables in the domain.

$ cat > foo.mzn
array[1..0] of var 1..0: x;
$ minizinc foo.mzn

  WARNING: model inconsistency detected: domain is empty
  /Users/matsc/c2radio/foo.mzn:1:
  in variable declaration for 'x'
=====UNSATISFIABLE=====

Metadata

Metadata

Assignees

No one assigned

    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