| # buf3 = n5 + n1, # avol0 = # avol1, # lpt0 = # avol1, # buf2 = EB_PAGE_SIZE, n1 + n5 = n4 + min(n1, n2), LEB_SIZE = n0 + # buf0 + # buf, avol0[m2] = mapped(buf0 + buf), avol1[m2] = mapped(buf0 + buf), subarray(buf2, 0, n2 + n3) = subarray(buf, 0, n2 + n3), n < n1 + n5, n3 < n0 + # buf, (n3 + # buf0) + n2 < LEB_SIZE, n3 < EB_PAGE_SIZE, m2 < # avol1, n2 + n3 < EB_PAGE_SIZE, n3 < # buf, # buf0 < LEB_SIZE, # buf0 + 1 < LEB_SIZE, n3 + n2 < # buf, n < n5 + n1, n < min(n1, n2), awbuf-inv(avol1, buffered(m2)), ebm-vol-inv(avol0), is-aligned(# buf0, EB_PAGE_SIZE), n3 + n1 ≤ # buf + n0, n3 + min(n1, n2) ≤ EB_PAGE_SIZE, min(n1, n2) ≤ n1 + n5 ⊦ # buf = 1, EB_PAGE_SIZE = 1, buf2[n3 + n] = (buf + mkempbuf(n0))[n3 + n], n3 = 0 |
⊦ n < # buf + # buf0 → (buf + buf0)[n] = (n < # buf ⊃ buf[n];buf0[n - # buf])
# buf2 = EB_PAGE_SIZE, # lpt0 = # avol1, # avol0 = # avol1, # buf3 = n5 + n1, n1 + n5 = n4 + min(n1, n2), LEB_SIZE = n0 + # buf0 + # buf, avol1[m2] = mapped(buf0 + buf), avol0[m2] = mapped(buf0 + buf), subarray(buf2, 0, n2 + n3) = subarray(buf, 0, n2 + n3), n < min(n1, n2), n < n5 + n1, n3 + n2 < # buf, # buf0 + 1 < LEB_SIZE, # buf0 < LEB_SIZE, n3 < # buf, n2 + n3 < EB_PAGE_SIZE, m2 < # avol1, n3 < EB_PAGE_SIZE, (n3 + # buf0) + n2 < LEB_SIZE, n3 < n0 + # buf, n < n1 + n5, n3 + n < # buf + # mkempbuf(n0), awbuf-inv(avol1, buffered(m2)), ebm-vol-inv(avol0), is-aligned(# buf0, EB_PAGE_SIZE), min(n1, n2) ≤ n1 + n5, n3 + min(n1, n2) ≤ EB_PAGE_SIZE, n3 + n1 ≤ # buf + n0 ⊦ # buf = 1, EB_PAGE_SIZE = 1, buf2[n3 + n] = (n3 + n < # buf ⊃ buf[n3 + n];mkempbuf(n0)[n3 + n - # buf]), n3 = 0
Used simplifier rules: ⊦ # mkempbuf(n) = n; (s)% ⊦ m < n ↔ ¬ n ≤ m; (ss)%c: ⊦ m + n = n + m; from specification nat-basic%fle: ⊦ m < n ∧ n ≤ n0 → m < n0; (forward) from specification nat%let: ⊦ n ≤ n0 ∧ n0 ≤ n1 → n ≤ n1; (forward) from specification nat% ⊦ m < m + n ↔ n ≠ 0; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic% ⊦ m + n ≤ m + n0 ↔ n ≤ n0; (s)%fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat% ⊦ ¬ n < min(n, m); (s)%# buf = n ⊦ subarray(buf, 0, n) = buf; (s) Used terms: n3 + n, mkempbuf(n0), buf