tests/spec/unit/compilation/defines_var_cycle_breaking.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | type: compile |
| 4 | solvers: [gecode] |
| 5 | expected: !FlatZinc defines_var_cycle_breaking.fzn |
| 6 | ***/ |
| 7 | |
| 8 | var int: w :: no_output; |
| 9 | var int: x :: no_output; |
| 10 | var int: y :: no_output; |
| 11 | var int: z :: no_output; |
| 12 | |
| 13 | constraint w = x + y; |
| 14 | constraint x = y + z; |
| 15 | constraint y = z + w; |
| 16 | constraint z = w + x; |