| # lpt = # avol, # buf1 = EB_PAGE_SIZE, rofs ↔ false, avol[m4] = mapped(buf), buf2 = copy(buf3, 0, copy(buf1, 0, mkbuf(align↓(m2 + n3, EB_PAGE_SIZE)), 0, m2), m2, align↓(m2 + n3, EB_PAGE_SIZE) - m2), err = err0, m0 = m3, m1 = buffered(m4).leb, n0 = align↓(m2 + n3, EB_PAGE_SIZE), n1 = 0, wbuf = mkwbuf(buf1, m3, m2), buffered(m4).isbuf?, m4 < # avol, ebm-vol-inv(avol), is-aligned(m3, EB_PAGE_SIZE), wbuf-cons(mkwbuf(buf1, m3, m2), mapped(buf), false), m3 + align↓(m2 + n3, EB_PAGE_SIZE) ≤ LEB_SIZE, # buf ≤ m3, n3 ≤ # buf3, m3 + m2 + n3 ≤ LEB_SIZE, align↓(m2 + n3, EB_PAGE_SIZE) ≤ # buf3 + m2, m2 ≤ EB_PAGE_SIZE, m2 ≤ align↓(m2 + n3, EB_PAGE_SIZE), EB_PAGE_SIZE ≤ m2 + n3, 0 + (align↓(m2 + n3, EB_PAGE_SIZE) - m2) ≤ # buf3, m2 + (align↓(m2 + n3, EB_PAGE_SIZE) - m2) ≤ # copy(buf1, 0, mkbuf(align↓(m2 + n3, EB_PAGE_SIZE)), 0, m2), 0 + m2 ≤ # buf1, 0 + m2 ≤ # mkbuf(align↓(m2 + n3, EB_PAGE_SIZE)), align↓(m2 + n3, EB_PAGE_SIZE) ≥ m2, ∀ n. ¬(n < n0 ∧ is-aligned(n, EB_PAGE_SIZE)), ⌊err0⌋ ∨ err0 = ESUCCESS ⊦ err = ESUCCESS, # wbuf.content = EB_PAGE_SIZE ∧ m4 < # avol ∧ wbuf-cons(wbuf, avol[m4], true) |
# lpt = # avol, # buf1 = EB_PAGE_SIZE, avol[m4] = mapped(buf), m4 < # avol, ebm-vol-inv(avol), is-aligned(m3, EB_PAGE_SIZE), wbuf-cons(mkwbuf(buf1, m3, m2), mapped(buf), false), m3 + align↓(m2 + n3, EB_PAGE_SIZE) ≤ LEB_SIZE, # buf ≤ m3, n3 ≤ # buf3, m3 + m2 + n3 ≤ LEB_SIZE, align↓(m2 + n3, EB_PAGE_SIZE) ≤ # buf3 + m2, m2 ≤ EB_PAGE_SIZE, m2 ≤ align↓(m2 + n3, EB_PAGE_SIZE), EB_PAGE_SIZE ≤ m2 + n3, ⌊err0⌋ , ∀ n. ¬ n < align↓(m2 + n3, EB_PAGE_SIZE) ∨ ¬ is-aligned(n, EB_PAGE_SIZE) ⊦ wbuf-cons(mkwbuf(buf1, m3, m2), mapped(buf), true)
Used simplifier rules: ⊦ mapped(buf).mapped?; (s)%wbuf-cons-mapped: ⊦ wbuf-cons(wbuf, aleb, boolvar) → aleb.mapped?; (forward) from specification wbuf-base% ⊦ mkwbuf(buf, m, m0).content = buf; (s)% ⊦ ⌊err⌋ → err ≠ ESUCCESS; (s)% ⊦ buffered(m).isbuf?; (s)%n0 ≤ n ⊦ n - n0 ≤ m ↔ n ≤ m + n0; (s)% ⊦ m ≤ m; (s)% ⊦ m + n ≤ m + n0 ↔ n ≤ n0; (s)%n ≤ m ⊦ (m - n) + m0 ≤ n0 ↔ m + m0 ≤ n0 + n; (s)% ⊦ m ≤ n → (n < m ↔ false); (s)% ⊦ m ≤ n ↔ ¬ n < m; (ss)% ⊦ # copy(buf, m, buf0, m0, n) = # buf0; (s)% ⊦ # mkbuf(n) = n; (s)%c: ⊦ m + n = n + m; from specification nat-basic%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic% ⊦ n + 0 = n; (s)% ⊦ n ≥ m ↔ m ≤ n; (s)