tests/spec/unit/compilation/cv_domain.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | expected: !Result |
| 4 | solution: !Solution |
| 5 | xs: [3, 3, 3, 3, 3] |
| 6 | y: 15 |
| 7 | ***/ |
| 8 | include "increasing.mzn"; |
| 9 | |
| 10 | function int: partial_bound(array[int] of var int: xs) = let { |
| 11 | constraint increasing(xs); |
| 12 | } in 5; |
| 13 | |
| 14 | array[1..5] of var 3..7: xs; |
| 15 | var partial_bound(xs)..15: y; |
| 16 | constraint sum(xs) = y; |