| # lpt1 = # avol, # lpt0 = # avol, # buf0 = gndx0.flashsize, # gndx0 = # lax0, (elems nx ∪ dom gstore0) ++ n = dom gstore ∪ ginval, gstore[n] = groupblock(gndx, lax, m0), lpt1[n] = mklp(m0, m1, LP_GROUP_NODES, m2), avol[n] = mapped(buf), adr = adr0, bleb = buffered((nx + n ').last), keyset(gch) = gc-heap(lpt1, nx + n '), log = nx + n ', lpt = lpt0, ns = ns0, remove-refsize0(istore0) = istore0, remove-refsize0(gstore0) = gstore0, ginval ∩ elems nx = ∅, ginval < # avol, n < # avol, LEB_SIZE < m1 + gndx0.flashsize, abs-gstore(avol, lpt1, gstore, ginval), abs-istore(avol, lpt1, istore), abs-nodes(buf0, m1, gndx0, lax0, false), awbuf-inv(avol, buffered(n)), bin-heap-inv(gch, lpt1), buf-ro-rw-mode(true, buffered(n), lpt1, avol), buf-ro-rw-mode(false, buffered(n), lpt1, avol), bufs-log-only(buffered(n), nx + n ', lpt1), flash-lpt-cons(lpt0, istore0, gstore0), freelist-cons(lpt1, freelist), inv(groupblock(gndx, lax, m0)), inv(istore0), inv(istore), inv(gstore0), inv(gstore \ ginval), log-group-block(nx + n ', lpt1), lpt-free-unref(lpt1), lpt-free-unref(lpt0), lpt-leb-size(lpt1), lpt-leb-size(lpt0), lpt-ram-flash(lpt1, lpt0, nx + n '), n ∈ gstore, istore0 ⊑ istore, isbuf1 → synced(avol) ⊦ ⟨pstate := journal((nx + n ').last); apersistence_add_gnds#(gndx0, adr0, istore, istore0, ginval, gstore0, nx + n ', m, ns0; ax0, gstore, pstate, isbuf1; err0)⟩ ( abs-gstore(avol, lpt1, gstore, ginval) ∧ ginval < # lpt1 ∧ (isbuf1 → synced(avol)) ∧ pstate ≠ unbuffered ∧ (pstate = readonly ↔ true) ∧ (pstate ≠ readonly → n = pstate.lnum) ∧ lax0.to-adr(n) = ax0 ∧ ENOSPC = err0), nx + n ' = [], gndx0 = [], dups(nx), n ∈ nx, n ∈ ginval |
# gndx0 = # lax0, # buf0 = gndx0.flashsize, # lpt0 = # avol, # lpt1 = # avol, (elems nx ∪ dom gstore0) ++ n = dom gstore ∪ ginval, avol[n] = mapped(buf), lpt1[n] = mklp(m0, m1, LP_GROUP_NODES, m2), gstore[n] = groupblock(gndx, lax, m0), adr = adr0, bleb = buffered((nx + n ').last), keyset(gch) = gc-heap(lpt1, nx + n '), log = nx + n ', lpt = lpt0, ns = ns0, pstate = journal((nx + n ').last), remove-refsize0(gstore0) = gstore0, remove-refsize0(istore0) = istore0, ginval ∩ elems nx = ∅, LEB_SIZE < m1 + gndx0.flashsize, n < # avol, ginval < # avol, abs-gstore(avol, lpt1, gstore, ginval), abs-istore(avol, lpt1, istore), abs-nodes(buf0, m1, gndx0, lax0, false), awbuf-inv(avol, buffered(n)), bin-heap-inv(gch, lpt1), buf-ro-rw-mode(false, buffered(n), lpt1, avol), buf-ro-rw-mode(true, buffered(n), lpt1, avol), bufs-log-only(buffered(n), nx + n ', lpt1), flash-lpt-cons(lpt0, istore0, gstore0), freelist-cons(lpt1, freelist), inv(gstore \ ginval), inv(gstore0), inv(istore), inv(istore0), inv(groupblock(gndx, lax, m0)), log-group-block(nx + n ', lpt1), lpt-free-unref(lpt0), lpt-free-unref(lpt1), lpt-leb-size(lpt0), lpt-leb-size(lpt1), lpt-ram-flash(lpt1, lpt0, nx + n '), n ∈ gstore, istore0 ⊑ istore, isbuf1 → synced(avol) ⊦ ⟨apersistence_add_gnds#(gndx0, adr0, istore, istore0, ginval, gstore0, nx + n ', m, ns0; ax0, gstore, pstate, isbuf1; err0)⟩ ( abs-gstore(avol, lpt1, gstore, ginval) ∧ ginval < # lpt1 ∧ (isbuf1 → synced(avol)) ∧ pstate ≠ unbuffered ∧ (pstate = readonly ↔ true) ∧ (pstate ≠ readonly → n = pstate.lnum) ∧ lax0.to-adr(n) = ax0 ∧ ENOSPC = err0), nx + n ' = [], gndx0 = [], dups(nx), n ∈ ginval, n ∈ nx