| 1 |
/*** |
| 2 |
!Test |
| 3 |
solvers: [gecode] |
| 4 |
expected: !Result |
| 5 |
solution: !Solution |
| 6 |
x: 1 |
| 7 |
y: 2 |
| 8 |
***/ |
| 9 |
predicate foo(var 1..: i) = true; |
| 10 |
var 1..2: x; |
| 11 |
constraint not foo(x - 1); |
| 12 |
|
| 13 |
predicate bar(var ..-1 union {1,3} union 5..: i) = true; |
| 14 |
var 2..3: y; |
| 15 |
constraint not bar(y); |