| ginval = ginval3, gstore = gstore3, remove-refsize0(gstore2) = gstore2, remove-refsize0(istore1) = istore1, elems nx0 ∩ ginval3 = ∅, dom gstore2 ∪ elems nx0 = dom gstore3 ∪ ginval3, btree-inv(rp, adr, istore2, istore1, zh, fi, fi0), inv(gstore3 \ ginval3), inv(gstore2), inv(istore2), inv(istore1), ri-inj(fi), ri-inj(fi0), n ∈ gstore3, n ∈ gstore2, istore1 ⊑ istore2, ¬ dups(nx0), ¬ n ∈ nx0, pstate.journal? → nx0 ≠ [] ∧ pstate.lnum = nx0.last ∧ pstate.lnum ∈ gstore3, pstate.index? → pstate.lnum ∈ istore2 ⊦ ⟨index_deallocate_gnd#(n, fi, fi0, gstore2, nx0, maxino0, ginval2, true; ginval3, gstore3; err1)⟩ (ginval3 = ginval ++ n ∧ gstore3 = gstore -- n ∧ ESUCCESS = err1) |
syn ↔ true, fi = fi1, fi0 = fi2, ginval = ginval3, ginval0 = ginval2, ginval1 = ginval3, gstore = gstore3, gstore0 = gstore2, gstore1 = gstore3, maxino = maxino0, nx = nx0, remove-refsize0(istore1) = istore1, remove-refsize0(gstore2) = gstore2, elems nx0 ∩ ginval3 = ∅, dom gstore2 ∪ elems nx0 = dom gstore3 ∪ ginval3, btree-inv(rp, adr, istore2, istore1, zh, fi2, fi1), inv(istore1), inv(istore2), inv(gstore2), inv(gstore3 \ ginval3), ri-inj(fi1), ri-inj(fi2), n ∈ gstore2, n ∈ gstore3, istore1 ⊑ istore2, pstate.index? → pstate.lnum ∈ istore2, pstate.journal? → nx0 ≠ [] ∧ pstate.lnum = nx0.last ∧ pstate.lnum ∈ gstore3 ⊦ ⟨if syn ∧ n ∈ gstore ∧ ¬ n ∈ nx then {fail_or_success#(; ; err); if err = ESUCCESS then gstore := gstore -- n, ginval := ginval ++ n} else abort⟩ (ginval = ginval1 ++ n ∧ gstore = gstore1 -- n ∧ ESUCCESS = err), dups(nx0), n ∈ nx0
Used simplifier rules: index_deallocate_gnd# (N, PRI, PFI, PSTORE0, PNL, PMAXINO, P_OS, ISYNCED ; PINVAL, PSTORE ; ERR ) {if ISYNCED ∧ N ∈ PSTORE ∧ ¬ N ∈ PNL then {fail_or_success#(; ; ERR); if ERR = ESUCCESS then PSTORE := PSTORE -- N, PINVAL := PINVAL ++ N} else abort };