Debian Codegraph @

test/regress/cli/regress1/sep/sl-standard.smt2

raw
1 (set-logic QF_ALL)
2 (set-info :source | CVC4 - Andrew Reynolds |)
3 (set-info :smt-lib-version 2.6)
4 (set-info :category "crafted")
5 (set-info :status unsat)
6
7 (declare-sort Loc 0)
8
9 (declare-heap (Loc Loc))
10
11 (declare-const loc0 Loc)
12
13 (declare-const u Loc)
14 (declare-const v Loc)
15 (declare-const y Loc)
16 (declare-const y0 Loc)
17 (declare-const y00 Loc)
18 (declare-const t Loc)
19 (declare-const t0 Loc)
20 (declare-const t00 Loc)
21
22 (define-fun pos2 ((x Loc) (a Loc) (i Int)) Bool (or (and (pto x a) (= i 0)) (sep (pto x a) (or (and (pto a y) (= (- i 1) 0)) (sep (pto a y) (or (and (pto y y0) (= (- (- i 1) 1) 0)) (sep (pto y y0) (and (pto y0 y00) (= (- (- (- i 1) 1) 1) 0)))))))))
23
24 (define-fun neg2 ((z Loc) (b Loc) (j Int)) Bool (or (and (not (pto z b)) (= j 0)) (sep (pto z b) (or (and (not (pto b t)) (= (- j 1) 0)) (sep (pto b t) (or (and (not (pto t t0)) (= (- (- j 1) 1) 0)) (sep (pto t t0) (and (not (pto t0 t00)) (= (- (- (- j 1) 1) 1) 0)))))))))
25
26 ;------- f -------
27 (assert (= t y))
28 (assert (= t0 y0))
29 (assert (not (= t00 y00)))
30 ;-----------------
31
32 (assert (pos2 u v 3))
33 (assert (not (neg2 u v 3)))
34
35 (check-sat)