| avols[default-volid][m2] = mapped(buf0, n2), avol = abs(avols[default-volid]), n ≠ 0, m2 < # avols[default-volid], ebm-cons(avols), ebm-vol-inv(abs(avols[default-volid])), is-aligned(m1, EB_PAGE_SIZE), is-aligned(n, EB_PAGE_SIZE), default-volid ∈ avols, n2 ≤ LEB_SIZE, m1 ≤ LEB_SIZE, n + m1 ≤ LEB_SIZE, n2 ≤ m1, m1 + n ≤ LEB_SIZE, n3 + n ≤ # buf ⊦ ⟨ebm_avol_write#(m2, m1, n3, n, buf; avol; err1)⟩ ( avol = abs (avols[default-volid] [m2, mapped(subarray(avols[default-volid][m2].data, 0, m1) + subarray(buf, n3, n) + mkempbuf(LEB_SIZE - m1 - n), m1 + n) ]) ∧ ESUCCESS = err1) |
LEB_SIZE - m1 = n0 + n, avols[default-volid][m2] = mapped(buf0, n2), avol = abs(avols[default-volid]), m2 < # avols[default-volid], ebm-cons(avols), ebm-vol-inv(abs(avols[default-volid])), is-aligned(n, EB_PAGE_SIZE), is-aligned(m1, EB_PAGE_SIZE), default-volid ∈ avols, n3 + n ≤ # buf, m1 + n ≤ LEB_SIZE, n2 ≤ m1, n + m1 ≤ LEB_SIZE, m1 ≤ LEB_SIZE, n2 ≤ LEB_SIZE, n ≤ LEB_SIZE - m1 ⊦ ⟨ebm_avol_write#(m2, m1, n3, n, buf; avol; err1)⟩ ( avol = abs(avols[default-volid][m2, mapped(subarray(avols[default-volid][m2].data, 0, m1) + subarray(buf, n3, n) + mkempbuf(n0), m1 + n)]) ∧ ESUCCESS = err1), n = 0
Used simplifier rules: ⊦ m ≤ n ↔ ¬ n < m; (ss)% ⊦ m ≤ n → (n < m ↔ false); (s)%n0 ≤ n ⊦ m ≤ n - n0 ↔ m + n0 ≤ n; (s)%c: ⊦ m + n = n + m; from specification nat-basic%n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: LEB_SIZE - m1, n, n0