tests/spec/unit/regression/test_bool2int.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | expected: !Result |
| 4 | status: SATISFIED |
| 5 | solution: !Solution |
| 6 | b: true |
| 7 | x: 1 |
| 8 | ***/ |
| 9 | |
| 10 | % Regression test for a crash in the optimiser that didn't expect |
| 11 | % bool2int as a predicate |
| 12 | |
| 13 | var bool: b; |
| 14 | var 0..1: x; |
| 15 | constraint bool2int(b,x); |
| 16 | constraint x = 1; |
| 17 | solve satisfy; |