| istore1 = remove-refsize0(crash(istore, istore0)), remove-refsize0(gstore0) = gstore0, remove-refsize0(istore0) = istore0, elems nx ∩ ginval = ∅, dom gstore0 ∪ elems nx = dom gstore ∪ ginval, inv(gstore \ ginval), inv(gstore0), inv(istore), inv(istore0), istore0 ⊑ istore, ¬ dups(nx), pstate.journal? → nx ≠ [] ∧ pstate.lnum = nx.last ∧ pstate.lnum ∈ gstore, pstate.index? → pstate.lnum ∈ istore ⊦ ⟨apersistence_allocate_ind#(adr0, istore0, ginval, gstore, gstore0, nx, maxino0, ginval2, true; istore, pstate; err)⟩ (istore1 = remove-refsize0(crash(istore, istore0))) |
syn ↔ true, adr = adr0, ginval = ginval2, ginval0 = ginval1, gstore = gstore1, gstore0 = gstore2, istore1 = remove-refsize0(crash(istore, istore0)), maxino = maxino0, remove-refsize0(istore0) = istore0, remove-refsize0(gstore1) = gstore1, elems nx ∩ ginval1 = ∅, dom gstore1 ∪ elems nx = dom gstore2 ∪ ginval1, inv(istore0), inv(istore), inv(gstore1), inv(gstore2 \ ginval1), istore0 ⊑ istore, pstate.index? → pstate.lnum ∈ istore, pstate.journal? → nx ≠ [] ∧ pstate.lnum = nx.last ∧ pstate.lnum ∈ gstore2 ⊦ ⟨if syn then {fail_or_success#(; ; err); if err = ESUCCESS then choose n with ¬ n ∈ istore in istore[n] := indexblock([], [], 0), pstate := index(n)} else abort⟩ (istore1 = remove-refsize0(crash(istore, istore0))), dups(nx)
Used simplifier rules: allocate-ind: ⊦ ;