| # buf2 = EB_PAGE_SIZE, # lpt0 = # avol1, # avol0 = # avol1, # buf3 = n4 + n2, n1 + n5 = n4 + n2, (n0 + # buf4) + n3 + n2 = LEB_SIZE, avol1[m2] = mapped(buf4 + subarray(buf2, 0, n2 + n0)), avol0[m2] = mapped(buf4), n0 < EB_PAGE_SIZE, n2 + n0 < EB_PAGE_SIZE, m2 < # avol1, n6 < n4, n2 + n6 < # mkempbuf(n1) + # subarray(buf3, n1, n5), awbuf-inv(avol1, buffered(m2)), ebm-vol-inv(avol0), is-aligned(# buf4, EB_PAGE_SIZE), n2 ≤ n1, # buf4 ≤ LEB_SIZE, n1 ≤ n2 + n3 ⊦ (n2 + n6 < # mkempbuf(n1) ⊃ mkempbuf(n1)[n2 + n6];subarray(buf3, n1, n5)[n2 + n6 - # mkempbuf(n1)]) = (n6 + n2 < n1 ⊃ (subarray(buf2, 0, n2 + n0) + mkempbuf(n3))[n0 + n6 + n2];subarray(buf3, n1, n5)[n6 + n2 - n1]), EB_PAGE_SIZE = 1, n0 = 0 |
# buf3 = n4 + n2, # avol0 = # avol1, # lpt0 = # avol1, # buf2 = EB_PAGE_SIZE, (n0 + # buf4) + n3 + n2 = LEB_SIZE, n1 + n5 = n4 + n2, avol0[m2] = mapped(buf4), avol1[m2] = mapped(buf4 + subarray(buf2, 0, n2 + n0)), n6 < n4, m2 < # avol1, n2 + n0 < EB_PAGE_SIZE, n0 < EB_PAGE_SIZE, awbuf-inv(avol1, buffered(m2)), ebm-vol-inv(avol0), is-aligned(# buf4, EB_PAGE_SIZE), n1 ≤ n2 + n3, # buf4 ≤ LEB_SIZE, n2 ≤ n1 ⊦ (n2 + n6 < n1 ⊃ empty;subarray(buf3, n1, n5)[n2 + n6 - n1]) = (n6 + n2 < n1 ⊃ (subarray(buf2, 0, n2 + n0) + mkempbuf(n3))[n0 + n6 + n2];subarray(buf3, n1, n5)[n6 + n2 - n1]), EB_PAGE_SIZE = 1, n0 = 0
Used simplifier rules: ⊦ m = m0 + n0 ∧ n < n0 → m0 + n < m; (s)%c: ⊦ m + n = n + m; from specification nat-basic%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic% ⊦ # subarray(buf, m, n) = n; (s)% ⊦ m < n → mkempbuf(n)[m] = empty; (s)% ⊦ # mkempbuf(n) = n; (s)