| n = n1, remove-refsize0(gstore2) = gstore2, remove-refsize0(istore1) = istore1, elems nx0 ∩ ginval0 = ∅, dom gstore2 ∪ elems nx0 = dom gstore0 ∪ ginval0, btree-inv(rp, adr, istore2, istore1, zh, fi, fi0), inv(gstore0 \ ginval0), inv(gstore2), inv(istore2), inv(istore1), ri-inj(fi), ri-inj(fi0), istore1 ⊑ istore2, ¬ dups(nx0), pstate.journal? → nx0 ≠ [] ∧ pstate.lnum = nx0.last ∧ pstate.lnum ∈ gstore0, pstate.index? → pstate.lnum ∈ istore2, pstate = unbuffered → syn0, ∀ n0. ¬ n0 ∈ gstore0 ∨ n0 ∈ nx0 ⊦ ⟨index_get_gc_block#(fi, fi0, ginval0, gstore0, gstore2, nx0, maxino0, ginval2, syn0; n1; err0)⟩ (n = n1 ∧ ENOSPC = err0) |
syn ↔ syn0, fi = fi1, fi0 = fi2, ginval = ginval2, gstore = gstore2, maxino = maxino0, n = n1, n0 = n1, nx = nx0, remove-refsize0(istore1) = istore1, remove-refsize0(gstore2) = gstore2, elems nx0 ∩ ginval0 = ∅, dom gstore2 ∪ elems nx0 = dom gstore0 ∪ ginval0, btree-inv(rp, adr, istore2, istore1, zh, fi2, fi1), inv(istore1), inv(istore2), inv(gstore2), inv(gstore0 \ ginval0), ri-inj(fi1), ri-inj(fi2), istore1 ⊑ istore2, pstate = unbuffered → syn0, pstate.index? → pstate.lnum ∈ istore2, pstate.journal? → nx0 ≠ [] ∧ pstate.lnum = nx0.last ∧ pstate.lnum ∈ gstore0, ∀ n0. ¬ n0 ∈ gstore0 ∨ n0 ∈ nx0 ⊦ ⟨err := ENOSPC or choose n with n ∈ dom gstore0 ∧ ¬ n ∈ nx in {n0 := n; err := ESUCCESS} ifnone err := ENOSPC⟩ (n = n0 ∧ ENOSPC = err), dups(nx0)
Used simplifier rules: index_get_gc_block# (PRI, PFI, PINVAL, PSTORE, PSTORE0, PNL, PMAXINO, P_OS, ISYNCED ; N ; ERR ) { ERR := ENOSPC or choose N0 with N0 ∈ dom PSTORE ∧ ¬ N0 ∈ PNL in {N := N0; ERR := ESUCCESS} ifnone ERR := ENOSPC };