| 1 |
; EXPECT: sat |
| 2 |
(set-option :incremental false) |
| 3 |
(set-logic ALL) |
| 4 |
|
| 5 |
|
| 6 |
(declare-fun x () (Relation Int Int)) |
| 7 |
(declare-fun y () (Relation Int Int)) |
| 8 |
(declare-fun z () (Relation Int Int Int Int)) |
| 9 |
(declare-fun z1 () (Relation Int Int)) |
| 10 |
(declare-fun w1 () (Relation Int Int)) |
| 11 |
(declare-fun z2 () (Relation Int Int)) |
| 12 |
(declare-fun w2 () (Relation Int Int)) |
| 13 |
(declare-fun P ((Relation Int Int Int Int)) Bool) |
| 14 |
(assert (= z (rel.product x y))) |
| 15 |
(assert (P z)) |
| 16 |
(assert (not (P (set.singleton (tuple 0 1 2 3))))) |
| 17 |
(assert (set.member (tuple 0 1) z1)) |
| 18 |
(assert (set.member (tuple 0 1) z2)) |
| 19 |
(assert (set.member (tuple 2 3) w1)) |
| 20 |
(assert (set.member (tuple 2 3) w2)) |
| 21 |
(assert (or (and (= x z1) (= y w1)) (and (= x z2) (= y w2)))) |
| 22 |
(check-sat) |