tests/spec/unit/regression/test_bug_pred_arg.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | check_against: [] |
| 4 | expected: |
| 5 | - !Result |
| 6 | solution: |
| 7 | - !Solution |
| 8 | b: false |
| 9 | x: 1 |
| 10 | - !Solution |
| 11 | b: true |
| 12 | x: 1 |
| 13 | - !Solution |
| 14 | b: false |
| 15 | x: 2 |
| 16 | status: ALL_SOLUTIONS |
| 17 | extra_files: [] |
| 18 | markers: [] |
| 19 | name: '' |
| 20 | options: |
| 21 | all_solutions: true |
| 22 | solvers: [gecode] |
| 23 | type: solve |
| 24 | ***/ |
| 25 | |
| 26 | var bool: b; |
| 27 | var 1..2: x; |
| 28 | predicate foo(var 1..1: a) = true; |
| 29 | constraint b -> foo(x); |