| LEB_SIZE = (n5 + n0) + n1 + n4, avols[default-volid][m2] = mapped(buf0, n4), m2 < # avols[default-volid], n0 < n, ebm-cons(avols), ebm-vol-inv(abs(avols[default-volid])), is-aligned(n1, EB_PAGE_SIZE), is-aligned(n, EB_PAGE_SIZE), is-aligned(n0, EB_PAGE_SIZE), default-volid ∈ avols, (n1 + n4) + n ≤ LEB_SIZE, n3 + n ≤ # buf, n4 ≤ LEB_SIZE, n1 + n4 ≤ LEB_SIZE, n3 + n0 ≤ # buf, n0 + n1 + n4 ≤ LEB_SIZE, ⌊err1⌋ ⊦ n0 = 0, #(subarray(buf0, 0, n4) + mkempbuf(n1)) = # subarray(buf0, 0, n1 + n4) ∧ (∀ n. n < #(subarray(buf0, 0, n4) + mkempbuf(n1)) → (subarray(buf0, 0, n4) + mkempbuf(n1))[n] = subarray(buf0, 0, n1 + n4)[n]) |
LEB_SIZE = (n5 + n0) + n1 + n4, avols[default-volid][m2] = mapped(buf0, n4), n0 < n, m2 < # avols[default-volid], n2 < n4 + n1, n2 < LEB_SIZE, ebm-cons(avols), ebm-vol-inv(abs(avols[default-volid])), is-aligned(n0, EB_PAGE_SIZE), is-aligned(n, EB_PAGE_SIZE), is-aligned(n1, EB_PAGE_SIZE), default-volid ∈ avols, n0 + n1 + n4 ≤ LEB_SIZE, n3 + n0 ≤ # buf, n1 + n4 ≤ LEB_SIZE, n4 ≤ LEB_SIZE, n3 + n ≤ # buf, (n1 + n4) + n ≤ LEB_SIZE, ⌊err1⌋ ⊦ (subarray(buf0, 0, n4) + mkempbuf(n1))[n2] = buf0[n2], n0 = 0
Used simplifier rules: ⊦ LEB_SIZE ≠ 0; (s)%lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic% ⊦ m < n → n ≠ 0; (s)%fle: ⊦ m < n ∧ n ≤ n0 → m < n0; (forward) from specification nat%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic% ⊦ n + 0 = n; (s)% ⊦ n0 < n → subarray(buf, m, n)[n0] = buf[m + n0]; (s)%c: ⊦ m + n = n + m; from specification nat-basic%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic% ⊦ m + n = m + n0 ↔ n = n0; (s)%append-a: ⊦ (buf + buf0) + buf1 = buf + buf0 + buf1; from specification array-splice[buffer]% ⊦ # mkempbuf(n) = n; (s)% ⊦ # subarray(buf, m, n) = n; (s)% ⊦ #(buf + buf0) = # buf + # buf0; (s)