| 1 |
; COMMAND-LINE: --incremental |
| 2 |
; EXPECT: sat |
| 3 |
; EXPECT: unsat |
| 4 |
|
| 5 |
(set-logic QF_UFLIA) |
| 6 |
|
| 7 |
(declare-fun _n () Int) |
| 8 |
(declare-fun _f (Int) Bool) |
| 9 |
(declare-fun _g (Int) Bool) |
| 10 |
|
| 11 |
(assert (not (= _n 0))) |
| 12 |
|
| 13 |
(push 1) |
| 14 |
(assert (or (_g 1) (or (not (_g _n)) (not (_f _n))))) |
| 15 |
(check-sat) |
| 16 |
(pop 1) |
| 17 |
|
| 18 |
|
| 19 |
(assert |
| 20 |
(or (and (_g _n) (_f _n)) |
| 21 |
(not (or (not (_g _n)) (not (_f _n)))))) |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
(assert (or (not (_g _n)) (not (_g 0)))) |
| 26 |
(assert (or (not (_g _n)) (_g 0))) |
| 27 |
|
| 28 |
(check-sat) |