| # lpt1 = # avol0, # lpt = # avol0, # avol = # avol0, # lpt2 = # avol0, # lpt0 = # avol0, keyset(gch1) = gc-heap(cleanup-lpt(lpt), []), keyset(gch0) = gc-heap(lpt2, []), keyset(gch) = gc-heap(lpt2, log1), remove-refsize0(gstore0) = gstore0, remove-refsize0(istore0) = istore0, dom remove-refsize0(gstore) ∩ ginval = ∅, elems log1 ∩ ginval = ∅, dom gstore0 ∪ elems log1 = dom gstore ∪ ginval, pstate ≠ readonly, ginval < # avol0, abs-gstore(avol, lpt2, gstore, ginval), abs-istore(avol, lpt2, istore), avol-cleanup-lpt-unchanged(avol, avol0, lpt), awbuf-inv(avol0, nobuffer), awbuf-inv(avol, nobuffer), awbuf-inv(avol, bleb0), bin-heap-inv(gch1, lpt1), bin-heap-inv(gch0, lpt), bin-heap-inv(gch, lpt2), buf-ro-rw-mode(false, bleb0, lpt2, avol), bufs-log-only(bleb0, log1, lpt2), flash-lpt-cons(lpt0, istore0, gstore0), freelist-cons(cleanup-lpt(lpt), freelist0), freelist-cons(lpt2, freelist), id-idx(cleanup-lpt(lpt), lpt1), id-idx(lpt2, lpt), inv(gstore \ ginval), inv(gstore0), inv(istore), inv(istore0), log-group-block(log1, lpt2), lpt-free-unref(lpt0), lpt-free-unref(lpt2), lpt-leb-size(cleanup-lpt(lpt)), lpt-leb-size(lpt0), lpt-leb-size(lpt2), lpt-ram-flash(lpt1, lpt2, []), lpt-ram-flash(lpt2, lpt0, log1), synced(avol0), synced(avol), istore0 ⊑ istore, ¬ dups(log1), pstate = unbuffered → bleb0 = nobuffer, pstate.journal? → log1 ≠ [] ∧ pstate.lnum = log1.last ∧ pstate.lnum ∈ gstore, pstate.index? → pstate.lnum ∈ istore, pstate ≠ unbuffered → bleb0 = buffered(pstate.lnum), ∀ n. n ∈ log1 → n < # avol0 ∧ lpt2[n].flags = LP_GROUP_NODES ⊦ ⟨ns1 := ns2; apersistence_commit#(adr2, m2, true; ns2, istore, ginval, gstore, adr3, istore0, gstore0, log1, maxino, ns4; pstate, err1)⟩ ( abs-istore(avol0, cleanup-lpt(lpt), istore) ∧ abs-gstore(avol0, cleanup-lpt(lpt), gstore, ginval) ∧ adr3 = adr2 ∧ maxino = m2 ∧ log1 = [] ∧ ginval < # avol0 ∧ ns4 = ns1 ∧ flash-lpt-cons(lpt2, istore0, gstore0) ∧ pstate = unbuffered ∧ ns0 = ns2 ∧ ESUCCESS = err1) |
# lpt0 = # avol0, # lpt2 = # avol0, # avol = # avol0, # lpt = # avol0, # lpt1 = # avol0, keyset(gch) = gc-heap(lpt2, log1), keyset(gch0) = gc-heap(lpt2, []), keyset(gch1) = gc-heap(cleanup-lpt(lpt), []), ns1 = ns2, remove-refsize0(istore0) = istore0, remove-refsize0(gstore0) = gstore0, elems log1 ∩ ginval = ∅, dom remove-refsize0(gstore) ∩ ginval = ∅, dom gstore0 ∪ elems log1 = dom gstore ∪ ginval, ginval < # avol0, abs-gstore(avol, lpt2, gstore, ginval), abs-istore(avol, lpt2, istore), avol-cleanup-lpt-unchanged(avol, avol0, lpt), awbuf-inv(avol, bleb0), awbuf-inv(avol, nobuffer), awbuf-inv(avol0, nobuffer), bin-heap-inv(gch, lpt2), bin-heap-inv(gch0, lpt), bin-heap-inv(gch1, lpt1), buf-ro-rw-mode(false, bleb0, lpt2, avol), bufs-log-only(bleb0, log1, lpt2), flash-lpt-cons(lpt0, istore0, gstore0), freelist-cons(lpt2, freelist), freelist-cons(cleanup-lpt(lpt), freelist0), id-idx(lpt2, lpt), id-idx(cleanup-lpt(lpt), lpt1), inv(istore0), inv(istore), inv(gstore0), inv(gstore \ ginval), log-group-block(log1, lpt2), lpt-free-unref(lpt2), lpt-free-unref(lpt0), lpt-leb-size(lpt2), lpt-leb-size(lpt0), lpt-leb-size(cleanup-lpt(lpt)), lpt-ram-flash(lpt2, lpt0, log1), lpt-ram-flash(lpt1, lpt2, []), synced(avol), synced(avol0), istore0 ⊑ istore, pstate ≠ unbuffered → bleb0 = buffered(pstate.lnum), pstate.index? → pstate.lnum ∈ istore, pstate.journal? → log1 ≠ [] ∧ pstate.lnum = log1.last ∧ pstate.lnum ∈ gstore, pstate = unbuffered → bleb0 = nobuffer, ∀ n. n ∈ log1 → n < # avol0 ∧ lpt2[n].flags = LP_GROUP_NODES ⊦ ⟨apersistence_commit#(adr2, m2, true; ns2, istore, ginval, gstore, adr3, istore0, gstore0, log1, maxino, ns4; pstate, err1)⟩ ( abs-istore(avol0, cleanup-lpt(lpt), istore) ∧ abs-gstore(avol0, cleanup-lpt(lpt), gstore, ginval) ∧ adr3 = adr2 ∧ maxino = m2 ∧ log1 = [] ∧ ginval < # avol0 ∧ ns4 = ns1 ∧ flash-lpt-cons(lpt2, istore0, gstore0) ∧ pstate = unbuffered ∧ ns0 = ns2 ∧ ESUCCESS = err1), pstate = readonly, dups(log1)