| # lpt1 = # avol, # lpt2 = # avol, isbuf ↔ isbuf0, LEB_SIZE = n1 + m1, lpt2[n2] = mklp(m0, m1, lpf, m2), adr = adr0, gstore = gstore1, gstore0 = gstore2, istore = istore1, istore0 = istore2, keyset(gch) = gc-heap(lpt2, log1), log = log1, maxino = m, ns = ns0, remove-refsize0(istore1) = istore1, remove-refsize0(gstore1) = gstore1, elems log1 ∩ ginval = ∅, dom gstore1 ∪ elems log1 = dom gstore2 ∪ ginval, n2 < # avol, ginval < # avol, abs-gstore(avol, lpt2, gstore2, ginval), abs-istore(avol, lpt2, istore2), awbuf-inv(avol, buffered(n2)), bin-heap-inv(gch, lpt2), buf-ro-rw-mode(pstate = readonly, buffered(n2), lpt2, avol), bufs-log-only(buffered(n2), log1, lpt2), flash-lpt-cons(lpt1, istore1, gstore1), freelist-cons(lpt2, freelist), inv(istore1), inv(istore2), inv(gstore1), inv(gstore2 \ ginval), log-group-block(log1, lpt2), lpt-free-unref(lpt1), lpt-free-unref(lpt2), lpt-leb-size(lpt1), lpt-leb-size(lpt2), lpt-ram-flash(lpt2, lpt1, log1), m1 ≤ LEB_SIZE, istore1 ⊑ istore2, isbuf0 → synced(avol), pstate.index? → pstate.lnum ∈ istore2, pstate.journal? → log1 ≠ [] ∧ pstate.lnum = log1.last ∧ pstate.lnum ∈ gstore2, pstate ≠ readonly → n2 = pstate.lnum ⊦ ∃ n. n ≤ LEB_SIZE ∧ ⟨n0 := n⟩ ((isbuf0 → synced(avol)) ∧ (pstate ≠ readonly → n2 = pstate.lnum) ∧ n1 = n0), pstate = unbuffered, dups(log1) |
# lpt1 = # avol, # lpt2 = # avol, LEB_SIZE = n1 + m1, lpt2[n2] = mklp(m0, m1, lpf, m2), keyset(gch) = gc-heap(lpt2, log1), remove-refsize0(istore1) = istore1, remove-refsize0(gstore1) = gstore1, elems log1 ∩ ginval = ∅, dom gstore1 ∪ elems log1 = dom gstore2 ∪ ginval, pstate ≠ unbuffered, n2 < # avol, ginval < # avol, abs-gstore(avol, lpt2, gstore2, ginval), abs-istore(avol, lpt2, istore2), awbuf-inv(avol, buffered(n2)), bin-heap-inv(gch, lpt2), buf-ro-rw-mode(pstate = readonly, buffered(n2), lpt2, avol), bufs-log-only(buffered(n2), log1, lpt2), flash-lpt-cons(lpt1, istore1, gstore1), freelist-cons(lpt2, freelist), inv(istore1), inv(istore2), inv(gstore1), inv(gstore2 \ ginval), log-group-block(log1, lpt2), lpt-free-unref(lpt1), lpt-free-unref(lpt2), lpt-leb-size(lpt1), lpt-leb-size(lpt2), lpt-ram-flash(lpt2, lpt1, log1), m1 ≤ LEB_SIZE, istore1 ⊑ istore2, ¬ dups(log1), isbuf0 → synced(avol), pstate.index? → pstate.lnum ∈ istore2, pstate.journal? → log1 ≠ [] ∧ pstate.lnum = log1.last ∧ pstate.lnum ∈ gstore2, pstate ≠ readonly → n2 = pstate.lnum ⊦ ∃ n. n ≤ LEB_SIZE ∧ ⟨n0 := n⟩ ((isbuf0 → synced(avol)) ∧ (pstate ≠ readonly → n2 = pstate.lnum) ∧ n1 = n0)
Used simplifier rules: inv-buf-in-vol: ⊦ awbuf-inv(avol, buffered(n)) → n < # avol; (forward) from specification awbuf-inv%lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic