| 1 |
; COMMAND-LINE: -q |
| 2 |
; EXPECT: sat |
| 3 |
; EXPECT: unsat |
| 4 |
; EXPECT: unsat |
| 5 |
; EXPECT: sat |
| 6 |
; EXPECT: unsat |
| 7 |
(set-option :incremental true) |
| 8 |
(set-logic ALL) |
| 9 |
(declare-fun x () Real) |
| 10 |
(declare-fun y () Real) |
| 11 |
(declare-fun z () Real) |
| 12 |
|
| 13 |
(push) |
| 14 |
(assert (= (sqrt 1.0) 1.0)) |
| 15 |
(check-sat) |
| 16 |
(pop) |
| 17 |
|
| 18 |
(push) |
| 19 |
(assert (= (sqrt 1.0) (- 1.0))) |
| 20 |
(check-sat) |
| 21 |
(pop) |
| 22 |
|
| 23 |
(push) |
| 24 |
(assert (= x 1.0)) |
| 25 |
(assert (not (= (sqrt 1.0) (sqrt x)))) |
| 26 |
(check-sat) |
| 27 |
(pop) |
| 28 |
|
| 29 |
(push) |
| 30 |
(assert (< x 0.0)) |
| 31 |
(assert (= (sqrt 1.0) (sqrt x))) |
| 32 |
(check-sat) |
| 33 |
(pop) |
| 34 |
|
| 35 |
(push) |
| 36 |
(assert (= (sqrt y) z)) |
| 37 |
(assert (= (sqrt x) (sqrt y))) |
| 38 |
(assert (not (= (sqrt x) z))) |
| 39 |
(check-sat) |
| 40 |
(pop) |