| 1 |
; EXPECT: sat |
| 2 |
; DISABLE-TESTER: model |
| 3 |
(set-logic QF_ALL) |
| 4 |
|
| 5 |
(declare-sort Loc 0) |
| 6 |
(declare-heap (Loc Loc)) |
| 7 |
|
| 8 |
(declare-const w Loc) |
| 9 |
(declare-const u1 Loc) |
| 10 |
(declare-const u2 Loc) |
| 11 |
(declare-const u3 Loc) |
| 12 |
(declare-const nil Loc) |
| 13 |
|
| 14 |
(declare-const w1 Loc) |
| 15 |
(declare-const w2 Loc) |
| 16 |
(declare-const w3 Loc) |
| 17 |
(declare-const w4 Loc) |
| 18 |
|
| 19 |
; allocated (not nil) |
| 20 |
(assert (not (= w nil))) |
| 21 |
(assert (not (= u1 nil))) |
| 22 |
(assert (not (= u2 nil))) |
| 23 |
(assert (not (= u3 nil))) |
| 24 |
(assert (not (= w1 nil))) |
| 25 |
(assert (not (= w2 nil))) |
| 26 |
(assert (not (= w4 nil))) |
| 27 |
|
| 28 |
; from model |
| 29 |
;(assert (= w1 u3)) |
| 30 |
;(assert (= w2 u2)) |
| 31 |
;(assert (= w3 u1)) |
| 32 |
;(assert (= w4 u1)) |
| 33 |
|
| 34 |
(assert (sep (pto w u1) (pto u1 u2) (pto u2 u3) (pto u3 nil))) |
| 35 |
(assert (and (sep (sep (pto w4 w1) (pto w1 w2) (pto w2 nil)) (pto w w3)) (sep (pto w w4) true))) |
| 36 |
|
| 37 |
(check-sat) |