| 1 |
; COMMAND-LINE: --incremental |
| 2 |
; EXPECT: unsat |
| 3 |
; EXPECT: unsat |
| 4 |
; EXPECT: unsat |
| 5 |
; EXPECT: unsat |
| 6 |
; EXPECT: unsat |
| 7 |
; EXPECT: sat |
| 8 |
(set-option :incremental true) |
| 9 |
(set-logic ALL) |
| 10 |
|
| 11 |
(declare-fun x () (Set Int)) |
| 12 |
(declare-fun y () (Set Int)) |
| 13 |
(declare-fun z () (Set Int)) |
| 14 |
(declare-fun e1 () Int) |
| 15 |
(declare-fun e2 () Int) |
| 16 |
(push 1) |
| 17 |
(declare-fun a () (Set Int)) |
| 18 |
(declare-fun b () (Set Int)) |
| 19 |
(declare-fun c () (Set Int)) |
| 20 |
(declare-fun e () Int) |
| 21 |
(assert (= a (set.singleton 5))) |
| 22 |
(assert (= c (set.union a b))) |
| 23 |
(assert (not (= c (set.inter a b)))) |
| 24 |
(assert (= c (set.minus a b))) |
| 25 |
(assert (set.subset a b)) |
| 26 |
(assert (set.member e c)) |
| 27 |
(assert (set.member e a)) |
| 28 |
(assert (set.member e (set.inter a b))) |
| 29 |
(push 1) |
| 30 |
|
| 31 |
(assert true) |
| 32 |
|
| 33 |
(check-sat) |
| 34 |
|
| 35 |
(pop 1) |
| 36 |
|
| 37 |
(pop 1) |
| 38 |
(push 1) |
| 39 |
(assert (= x y)) |
| 40 |
(assert (not (= (set.union x z) (set.union y z)))) |
| 41 |
(push 1) |
| 42 |
|
| 43 |
(assert true) |
| 44 |
|
| 45 |
(check-sat) |
| 46 |
|
| 47 |
(pop 1) |
| 48 |
|
| 49 |
(pop 1) |
| 50 |
(push 1) |
| 51 |
(assert (= x y)) |
| 52 |
(assert (= e1 e2)) |
| 53 |
(assert (set.member e1 x)) |
| 54 |
(assert (not (set.member e2 y))) |
| 55 |
(push 1) |
| 56 |
|
| 57 |
(assert true) |
| 58 |
|
| 59 |
(check-sat) |
| 60 |
|
| 61 |
(pop 1) |
| 62 |
|
| 63 |
(pop 1) |
| 64 |
(push 1) |
| 65 |
(assert (= x y)) |
| 66 |
(assert (= e1 e2)) |
| 67 |
(assert (set.member e1 (set.union x z))) |
| 68 |
(assert (not (set.member e2 (set.union y z)))) |
| 69 |
(push 1) |
| 70 |
|
| 71 |
(assert true) |
| 72 |
|
| 73 |
(check-sat) |
| 74 |
|
| 75 |
(pop 1) |
| 76 |
|
| 77 |
(pop 1) |
| 78 |
(push 1) |
| 79 |
(assert (set.member 5 (set.union (set.union (set.union (set.union (set.singleton 1) (set.singleton 2)) (set.singleton 3)) (set.singleton 4)) (set.singleton 5)))) |
| 80 |
(assert (set.member 5 (set.union (set.union (set.union (set.union (set.singleton 1) (set.singleton 2)) (set.singleton 3)) (set.singleton 4)) (as set.empty (Set Int))))) |
| 81 |
(push 1) |
| 82 |
|
| 83 |
(assert true) |
| 84 |
|
| 85 |
(check-sat) |
| 86 |
|
| 87 |
(pop 1) |
| 88 |
|
| 89 |
(pop 1) |
| 90 |
(check-sat-assuming ( (not (let ((_let_1 (set.member e1 z))) (and _let_1 (not _let_1)))) )) |