| 1 |
/*** |
| 2 |
!Test |
| 3 |
expected: |
| 4 |
- !Result |
| 5 |
solution: !Solution |
| 6 |
x: [false, false] |
| 7 |
y: 0 |
| 8 |
***/ |
| 9 |
|
| 10 |
% Regression test for bug #337: mzn2fzn was incorrectly setting the initial |
| 11 |
% domains of variables introduced in the reification of the division operation |
| 12 |
% to be empty. This was causing the model to incorrectly reported as |
| 13 |
% unsatisfiable. |
| 14 |
|
| 15 |
array[1..2] of var bool: x; |
| 16 |
var 0..0: y; |
| 17 |
constraint not(x[1 div y]); |
| 18 |
solve satisfy; |
| 19 |
output [ |
| 20 |
"x = array1d(1..2, ", show(x), ";\n", |
| 21 |
"y = ", show(y), ";\n" |
| 22 |
]; |