| remove-refsize0(gstore0) = gstore0, remove-refsize0(istore0) = istore0, elems nx ∩ ginval = ∅, dom gstore0 ∪ elems nx = dom gstore ∪ ginval, btree-inv(rp, adr, istore, istore0, zh, ri, fi), inv(gstore \ ginval), inv(gstore0), inv(istore), inv(istore0), maxino ∈ gstore, istore0 ⊑ istore, ¬ dups(nx), pstate.journal? → nx ≠ [] ∧ pstate.lnum = nx.last ∧ pstate.lnum ∈ gstore, pstate.index? → pstate.lnum ∈ istore, pstate = unbuffered → syn ⊦ ⟪btree_set_gblock_refsize#(maxino, n, adr, istore, istore0, ginval, gstore0, nx, maxino0, ginval0, pstate, syn; gstore)⟫ ( inv(gstore \ ginval) ∧ dom gstore0 ∪ elems nx = dom gstore ∪ ginval ∧ (pstate.journal? → nx ≠ [] ∧ pstate.lnum = nx.last ∧ pstate.lnum ∈ gstore) ∧ (pstate.index? → pstate.lnum ∈ istore) ∧ (pstate = unbuffered → syn)) |
ginval = ginval1, ginval0 = ginval2, istore = istore1, istore0 = istore2, maxino = maxino1, maxino0 = maxino2, remove-refsize0(istore1) = istore1, remove-refsize0(gstore0) = gstore0, elems nx ∩ ginval2 = ∅, dom gstore0 ∪ elems nx = dom gstore ∪ ginval2, btree-inv(rp, adr, istore2, istore1, zh, ri, fi), inv(istore1), inv(istore2), inv(gstore0), inv(gstore \ ginval2), maxino2 ∈ gstore, istore1 ⊑ istore2, pstate = unbuffered → syn, pstate.index? → pstate.lnum ∈ istore2, pstate.journal? → nx ≠ [] ∧ pstate.lnum = nx.last ∧ pstate.lnum ∈ gstore ⊦ ⟪if maxino0 ∈ gstore then apersistence_set_gblock_refsize#(maxino0, n, adr, istore0, istore, ginval0, gstore0, nx, maxino, ginval, pstate, syn; gstore) else abort⟫ ( inv(gstore \ ginval2) ∧ dom gstore0 ∪ elems nx = dom gstore ∪ ginval2 ∧ (pstate.journal? → nx ≠ [] ∧ pstate.lnum = nx.last ∧ pstate.lnum ∈ gstore) ∧ (pstate.index? → pstate.lnum ∈ istore2) ∧ (pstate = unbuffered → syn)), dups(nx)
Used simplifier rules: set-gblock-refsize: ⊦ ;