tests/spec/unit/regression/arg-reif-float.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | solvers: [gecode, chuffed] |
| 4 | expected: !Result |
| 5 | solution: !SolutionSet |
| 6 | - !Solution |
| 7 | a: 1 |
| 8 | - !Solution |
| 9 | a: 2 |
| 10 | - !Solution |
| 11 | a: 3 |
| 12 | options: |
| 13 | all_solutions: true |
| 14 | ***/ |
| 15 | |
| 16 | var 1..3: a; |
| 17 | |
| 18 | predicate test_pred(1.0..10.0: x, var int: y) = y = 3; |
| 19 | |
| 20 | constraint test_pred(11.0, a) == false; |
| 21 | |
| 22 | solve satisfy; |
| 23 | |
| 24 | output ["a = ", show(a), ";\n"]; |