| 1 |
/*** |
| 2 |
--- !Test |
| 3 |
type: compile |
| 4 |
solvers: [gecode] |
| 5 |
options: |
| 6 |
-O0: true |
| 7 |
expected: !FlatZinc optimization_0.fzn |
| 8 |
--- !Test |
| 9 |
type: compile |
| 10 |
solvers: [gecode] |
| 11 |
options: |
| 12 |
-O1: true |
| 13 |
expected: !FlatZinc optimization_1.fzn |
| 14 |
--- !Test |
| 15 |
type: compile |
| 16 |
solvers: [gecode] |
| 17 |
options: |
| 18 |
-O2: true |
| 19 |
expected: !FlatZinc optimization_2.fzn |
| 20 |
--- !Test |
| 21 |
type: compile |
| 22 |
solvers: [gecode] |
| 23 |
options: |
| 24 |
-O3: true |
| 25 |
expected: !FlatZinc optimization_3.fzn |
| 26 |
***/ |
| 27 |
|
| 28 |
var 1..10: x; |
| 29 |
var set of 1..10: y; |
| 30 |
var bool: z; |
| 31 |
|
| 32 |
constraint forall (i in y) (i mod 2 = 1); |
| 33 |
constraint x >= 5 <-> x in y; |
| 34 |
constraint x > 2 -> not z; |
| 35 |
constraint z; |