| # buf = m2 * LEB_SIZE, m2 = n2 + n1, subarray(buf, 0, n1 * LEB_SIZE) = lebs(avol, n0, n1), n1 < m2, ebm-vol-inv(avol), mapped-full?(avol, n0, m2), n0 + m2 ≤ # avol, n1 ≤ m2 ⊦ ⟪ebm_avol_read#(n0 + n1, 0, n1 * LEB_SIZE, LEB_SIZE, avol; buf; err); n := n1 + 1⟫ ( n ≤ m2 ∧ # buf = m2 * LEB_SIZE ∧ (err = ESUCCESS ∨ ⌊err⌋ ) ∧ (err = ESUCCESS → subarray(buf, 0, n * LEB_SIZE) = lebs(avol, n0, n)) ∧ m2 < n2 + n) |
# buf = (n2 + n1) * LEB_SIZE, subarray(buf, 0, n1 * LEB_SIZE) = lebs(avol, n0, n1), n2 ≠ 0, ebm-vol-inv(avol), mapped-full?(avol, n0, n2 + n1), n0 + n2 + n1 ≤ # avol ⊦ ⟪ebm_avol_read#(n0 + n1, 0, n1 * LEB_SIZE, LEB_SIZE, avol; buf; err); n := n1 + 1⟫ ( n ≤ n2 + n1 ∧ # buf = (n2 + n1) * LEB_SIZE ∧ (err = ESUCCESS ∨ ⌊err⌋ ) ∧ (err = ESUCCESS → subarray(buf, 0, n * LEB_SIZE) = lebs(avol, n0, n)) ∧ n1 < n)
Used simplifier rules: ⊦ m + n < m + n0 ↔ n < n0; (s)%c: ⊦ m + n = n + m; from specification nat-basic%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic% ⊦ m < m + n ↔ n ≠ 0; (s)% ⊦ m < n → m ≤ n; (s)