| gstore = crash(gstore0, gstore1, ginval0, nx), istore = remove-refsize0(crash(istore0, istore1)), remove-refsize0(gstore1) = gstore1, remove-refsize0(istore1) = istore1, elems nx ∩ ginval0 = ∅, dom gstore1 ∪ elems nx = dom gstore0 ∪ ginval0, inv(gstore0 \ ginval0), inv(gstore1), inv(istore0), inv(istore1), istore1 ⊑ istore0, ¬ dups(nx), pstate.journal? → nx ≠ [] ∧ pstate.lnum = nx.last ∧ pstate.lnum ∈ gstore0, pstate.index? → pstate.lnum ∈ istore0 ⊦ ⟪apersistence_recover#(; adr1, maxino1, nx1, ginval3, adr, nx, maxino, ginval1, istore, istore1, ginval0, gstore, gstore1; pstate0, syn0, err)⟫ ( err = ESUCCESS → syn0 ∧ inv(gstore \ ginval0) ∧ inv(gstore1) ∧ elems nx ∩ ginval0 = ∅ ∧ ¬ dups(nx) ∧ dom gstore1 ∪ elems nx = dom gstore ∪ ginval0 ∧ remove-refsize0(gstore1) = gstore1 ∧ inv(istore) ∧ inv(istore1) ∧ istore1 ⊑ istore ∧ remove-refsize0(istore1) = istore1 ∧ (pstate0.journal? → nx ≠ [] ∧ pstate0.lnum = nx.last ∧ pstate0.lnum ∈ gstore) ∧ (pstate0.index? → pstate0.lnum ∈ istore)) |
adr0 = adr1, ginval = ginval4, ginval0 = ginval2, ginval1 = ginval3, gstore = gstore1, gstore0 = gstore3, gstore3 = crash(gstore2, gstore1, ginval4, nx), istore = istore1, istore0 = istore3, istore3 = remove-refsize0(crash(istore2, istore1)), maxino0 = maxino1, nx0 = nx1, remove-refsize0(istore1) = istore1, remove-refsize0(gstore1) = gstore1, elems nx ∩ ginval4 = ∅, dom gstore1 ∪ elems nx = dom gstore2 ∪ ginval4, inv(istore1), inv(istore2), inv(gstore1), inv(gstore2 \ ginval4), istore1 ⊑ istore2, pstate.index? → pstate.lnum ∈ istore2, pstate.journal? → nx ≠ [] ∧ pstate.lnum = nx.last ∧ pstate.lnum ∈ gstore2 ⊦ ⟪fail_or_success#(; ; err); if err = ESUCCESS then pstate := unbuffered, syn := true, adr0 := adr, maxino0 := maxino, nx0 := nx, ginval1 := ginval0 else pstate := ?, syn := ?, adr := ?, istore0 := ?, istore := ?, ginval := ?, gstore0 := ?, gstore := ?, nx := ?, maxino := ?, ginval0 := ?, adr0 := ?, maxino0 := ?, nx0 := ?, ginval1 := ?⟫ ( err = ESUCCESS → syn ∧ inv(gstore0 \ ginval) ∧ inv(gstore) ∧ elems nx ∩ ginval = ∅ ∧ ¬ dups(nx) ∧ dom gstore ∪ elems nx = dom gstore0 ∪ ginval ∧ remove-refsize0(gstore) = gstore ∧ inv(istore0) ∧ inv(istore) ∧ istore ⊑ istore0 ∧ remove-refsize0(istore) = istore ∧ (pstate.journal? → nx ≠ [] ∧ pstate.lnum = nx.last ∧ pstate.lnum ∈ gstore0) ∧ (pstate.index? → pstate.lnum ∈ istore0)), dups(nx)
Used simplifier rules: recovery: ⊦ ;