| 1 |
/*** |
| 2 |
!Test |
| 3 |
solvers: [gecode] |
| 4 |
options: |
| 5 |
all_solutions: true |
| 6 |
expected: !Result |
| 7 |
solution: |
| 8 |
- !Solution |
| 9 |
_output_item: Ok |
| 10 |
***/ |
| 11 |
|
| 12 |
var bool: p :: no_output; |
| 13 |
var bool: a :: no_output; |
| 14 |
var bool: b :: no_output; |
| 15 |
var bool: c :: no_output; |
| 16 |
var 0..10: l :: no_output; |
| 17 |
|
| 18 |
constraint ((l in [0,1,2]) >= l) -> p; |
| 19 |
constraint ((a -> b) >= l ) -> p; |
| 20 |
constraint ((not a \/ not b \/ not c) >= 1) -> p; |
| 21 |
|
| 22 |
output let { |
| 23 |
constraint assert(fix(((l in [0,1,2]) >= l) -> p), "Incorrect"); |
| 24 |
constraint assert(fix(((a -> b) >= l ) -> p), "Incorrect"); |
| 25 |
constraint assert(fix(((not a \/ not b \/ not c) >= 1) -> p), "Incorrect"); |
| 26 |
} in "Ok"; |