| 1 |
; COMMAND-LINE: -i --sat-solver=cadical |
| 2 |
; DISABLE-TESTER: proof |
| 3 |
; EXPECT: sat |
| 4 |
; EXPECT: sat |
| 5 |
(set-logic ALL) |
| 6 |
(declare-fun s () String) |
| 7 |
; |
| 8 |
(declare-fun a () Bool) |
| 9 |
(declare-fun b () Bool) |
| 10 |
(assert (or (not a) b)) |
| 11 |
(assert (or (not b) a)) |
| 12 |
(assert (or a b)) |
| 13 |
; This part above is to force `a` to be a fixed assignment at user level 1, |
| 14 |
; so that the literal for `(= (str.len s) 0)` will be renotified and produce |
| 15 |
; the error |
| 16 |
(assert (or (not a) (= (str.len s) 0))) |
| 17 |
(push) |
| 18 |
(check-sat) |
| 19 |
(pop) |
| 20 |
(check-sat) |