tests/spec/unit/regression/github_666.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | solvers: [gecode] |
| 4 | options: |
| 5 | -G: std |
| 6 | expected: !Result |
| 7 | status: UNSATISFIABLE |
| 8 | ***/ |
| 9 | |
| 10 | % Previously x = 1 was added to the CSE map in positive context |
| 11 | % and then retrieved in mixed context, while the decomposition was incorrectly |
| 12 | % left in positive context |
| 13 | |
| 14 | predicate int_eq_imp(var int: a, var int: b, var bool: r); |
| 15 | |
| 16 | var opt 1..1: x ::output; |
| 17 | constraint if x = <> then x = 1 endif; |
| 18 | constraint bool2int(x = 1) = 0; |