tests/spec/unit/regression/github_644_e.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | solvers: |
| 4 | - gecode |
| 5 | type: solve |
| 6 | expected: !Result |
| 7 | solution: !Solution |
| 8 | x: null |
| 9 | y: null |
| 10 | z: null |
| 11 | p: 3 |
| 12 | q: 1 |
| 13 | r: 4 |
| 14 | ***/ |
| 15 | |
| 16 | % Par versions of ~+, ~- and ~* were missing |
| 17 | |
| 18 | opt 1..2: a = <>; |
| 19 | opt 2..3: x :: output = a ~+ 1; |
| 20 | opt 0..1: y :: output = a ~- 1; |
| 21 | opt 2..4: z :: output = a ~* 2; |
| 22 | |
| 23 | opt 1..2: b = 2; |
| 24 | opt 2..3: p :: output = b ~+ 1; |
| 25 | opt 0..1: q :: output = b ~- 1; |
| 26 | opt 2..4: r :: output = b ~* 2; |