tests/spec/unit/general/mzn-implicit3.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | expected: !Result |
| 4 | status: SATISFIED |
| 5 | solution: !Solution |
| 6 | ax: !Range 1..2 |
| 7 | bx: !Range 1..2 |
| 8 | ***/ |
| 9 | |
| 10 | array[int, int] of int: a = [|1, 2|3, 4|]; |
| 11 | set of int: ax :: add_to_output = index_set_1of2(a); |
| 12 | set of int: bx :: add_to_output = index_set_2of2(a); |
| 13 | solve satisfy; |
| 14 | output [ |
| 15 | "ax = ", show(ax), "\n", |
| 16 | "bx = ", show(bx) |
| 17 | ]; |