| 1 |
; EXPECT: unsat |
| 2 |
; EXPECT: sat |
| 3 |
; EXPECT: unsat |
| 4 |
; EXPECT: sat |
| 5 |
; EXPECT: unsat |
| 6 |
; EXPECT: unsat |
| 7 |
; EXPECT: unsat |
| 8 |
; EXPECT: unsat |
| 9 |
|
| 10 |
;;;;; iteEvalThen(true) |
| 11 |
(set-logic ALL) |
| 12 |
(declare-fun a () Bool) |
| 13 |
(declare-fun b () Bool) |
| 14 |
(declare-fun c () Bool) |
| 15 |
(assert a) |
| 16 |
(assert b) |
| 17 |
(assert (not (ite a b c))) |
| 18 |
(check-sat) |
| 19 |
|
| 20 |
(reset) |
| 21 |
|
| 22 |
;;;;; iteEvalThen(false) |
| 23 |
(set-logic ALL) |
| 24 |
(declare-fun a () Bool) |
| 25 |
(declare-fun b () Bool) |
| 26 |
(declare-fun c () Bool) |
| 27 |
(declare-fun d () Bool) |
| 28 |
(assert a) |
| 29 |
(assert (not b)) |
| 30 |
(assert (or (ite a b c) d)) |
| 31 |
(check-sat) |
| 32 |
|
| 33 |
(reset) |
| 34 |
|
| 35 |
;;;;; iteEvalElse(true) |
| 36 |
(set-logic ALL) |
| 37 |
(declare-fun a () Bool) |
| 38 |
(declare-fun b () Bool) |
| 39 |
(declare-fun c () Bool) |
| 40 |
(assert (not a)) |
| 41 |
(assert c) |
| 42 |
(assert (not (ite a b c))) |
| 43 |
(check-sat) |
| 44 |
|
| 45 |
(reset) |
| 46 |
|
| 47 |
;;;;; iteEvalElse(false) |
| 48 |
(set-logic ALL) |
| 49 |
(declare-fun a () Bool) |
| 50 |
(declare-fun b () Bool) |
| 51 |
(declare-fun c () Bool) |
| 52 |
(declare-fun d () Bool) |
| 53 |
(assert (not a)) |
| 54 |
(assert (not c)) |
| 55 |
(assert (or (ite a b c) d)) |
| 56 |
(check-sat) |
| 57 |
|
| 58 |
(reset) |
| 59 |
|
| 60 |
(set-logic ALL) |
| 61 |
(declare-fun a () Bool) |
| 62 |
(declare-fun b () Bool) |
| 63 |
(declare-fun c () Bool) |
| 64 |
(declare-fun d () Bool) |
| 65 |
(assert a) |
| 66 |
(assert b) |
| 67 |
(assert (=> a c)) |
| 68 |
(assert (=> b (not c))) |
| 69 |
(check-sat) |
| 70 |
|
| 71 |
(reset) |
| 72 |
|
| 73 |
(set-logic ALL) |
| 74 |
(assert false) |
| 75 |
(check-sat) |
| 76 |
|
| 77 |
(reset) |
| 78 |
|
| 79 |
(set-logic ALL) |
| 80 |
(declare-fun x () Bool) |
| 81 |
(declare-fun z () Bool) |
| 82 |
(assert (= x z)) |
| 83 |
(assert (not x)) |
| 84 |
(assert z) |
| 85 |
(check-sat) |
| 86 |
|
| 87 |
(reset) |
| 88 |
|
| 89 |
(set-logic ALL) |
| 90 |
(declare-fun x3 () Bool) |
| 91 |
(declare-fun x9 () Bool) |
| 92 |
(assert (not x3)) |
| 93 |
(assert (or x3 (and x9 x3))) |
| 94 |
(check-sat) |