| 1 |
/*** |
| 2 |
!Test |
| 3 |
expected: |
| 4 |
- !Result |
| 5 |
solution: !Solution |
| 6 |
b: [1, 1, 1] |
| 7 |
- !Result |
| 8 |
solution: !Solution |
| 9 |
b: [1, 3, 3] |
| 10 |
***/ |
| 11 |
|
| 12 |
% Regression test for the second problem in bug 68. |
| 13 |
% The type checker was assigning the type var bottom to the elements of |
| 14 |
% array1d(1..2, [_, _]) below and that was causing mzn2fzn to abort. |
| 15 |
|
| 16 |
int: N = 3; |
| 17 |
array[1..N] of var 1 .. N: b; |
| 18 |
constraint forall([ b[i] = [1, _, _][i] | i in index_set(b) ]); |
| 19 |
solve satisfy; |
| 20 |
output ["b = ", show(b), "\n"]; |