tests/spec/unit/regression/github_668.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | solvers: [gecode] |
| 4 | expected: |
| 5 | - !Result |
| 6 | solution: !Solution |
| 7 | x: null |
| 8 | arr: [false] |
| 9 | - !Result |
| 10 | solution: !Solution |
| 11 | x: null |
| 12 | arr: [true] |
| 13 | - !Result |
| 14 | solution: !Solution |
| 15 | x: 1 |
| 16 | arr: [false] |
| 17 | - !Result |
| 18 | solution: !Solution |
| 19 | x: 1 |
| 20 | arr: [true] |
| 21 | ***/ |
| 22 | |
| 23 | var opt 1..1: x; |
| 24 | array[1..1] of var bool: arr; |
| 25 | |
| 26 | constraint arr[1] -> true /\ arr[x] /\ exists(arr); |