| 1 |
/*** |
| 2 |
!Test |
| 3 |
check_against: [] |
| 4 |
expected: |
| 5 |
- !Result |
| 6 |
solution: !Solution |
| 7 |
b: true |
| 8 |
x: |
| 9 |
- false |
| 10 |
- false |
| 11 |
- false |
| 12 |
status: SATISFIED |
| 13 |
extra_files: [] |
| 14 |
markers: [] |
| 15 |
name: '' |
| 16 |
options: |
| 17 |
all_solutions: false |
| 18 |
solvers: |
| 19 |
- gecode |
| 20 |
type: solve |
| 21 |
|
| 22 |
***/ |
| 23 |
|
| 24 |
var bool: b; |
| 25 |
array[1..3] of var bool: x; |
| 26 |
constraint if b then true else x = [true, true, true] endif; |
| 27 |
|
| 28 |
% constraint |
| 29 |
% let { |
| 30 |
% set of int: X = 1..10; |
| 31 |
% array [X] of var bool: ys; |
| 32 |
% } in |
| 33 |
% if global then |
| 34 |
% true |
| 35 |
% else |
| 36 |
% % forall (x in X) (ys[x]) % works |
| 37 |
% ys = [true | x in X] % seg fault |
| 38 |
% endif; |