| # lpt = # avol, # buf0 + n0 = align↓(# buf0 + n, EB_PAGE_SIZE), avol[m1] = mapped(buf0), m = buffered(m1).leb, buffered(m1).isbuf?, m1 < # avol, awbuf-inv(avol, buffered(m1)), avol0 ↓ avol[m1, mapped(buf0 + subarray(buf, 0, n))], EB_PAGE_SIZE ≤ # buf0 % EB_PAGE_SIZE + n, # buf0 + n ≤ LEB_SIZE, n ≤ # buf ⊦ (∀ n1. (n1 ≠ 0 → n1 < n → avol[m].mapped? ∧ m < # avol) ∧ ¬(n1 ≠ 0 ∧ n1 < n ∧ is-aligned(# avol[m].data + n1, EB_PAGE_SIZE))) ∧ ⟨skip; isbuf := true⟩ (synced(avol) ∧ avol0 ↓ avol), ∃ n1. (n1 ≠ 0 → n1 < n → avol[m].mapped? ∧ m < # avol) ∧ (n1 ≠ 0 ∧ n1 < n ∧ is-aligned(# avol[m].data + n1, EB_PAGE_SIZE)) ∧ ⟨avol[m] := mapped(avol[m].data + subarray(buf, 0, n1)); isbuf := true⟩ (synced(avol) ∧ avol0 ↓ avol), is-aligned(# buf0 + n, EB_PAGE_SIZE), synced(avol) ∧ avol0 ↓ avol |
# lpt = # avol, # buf0 + n0 = align↓(# buf0 + n, EB_PAGE_SIZE), avol[m1] = mapped(buf0), m1 < # avol, awbuf-inv(avol, buffered(m1)), avol0 ↓ avol[m1, mapped(buf0 + subarray(buf, 0, n))], n ≤ # buf, # buf0 + n ≤ LEB_SIZE, EB_PAGE_SIZE ≤ # buf0 % EB_PAGE_SIZE + n, ¬ is-aligned(# buf0 + n, EB_PAGE_SIZE) ⊦ (n1 ≠ 0 → n1 < n → avol[m1].mapped?) ∧ (n1 = 0 ∨ ¬ n1 < n ∨ ¬ is-aligned(# avol[m1].data + n1, EB_PAGE_SIZE)) ∧ ⟨skip; isbuf := true⟩ (synced(avol) ∧ avol0 ↓ avol), avol[m1].mapped? ∧ (∃ n2. n2 ≠ 0 ∧ n2 < n ∧ is-aligned(# avol[m1].data + n2, EB_PAGE_SIZE) ∧ ⟨avol[buffered(m1).leb] := mapped(avol[buffered(m1).leb].data + subarray(buf, 0, n2)); isbuf := true⟩ (synced(avol) ∧ avol0 ↓ avol)), synced(avol) ∧ avol0 ↓ avol
Used simplifier rules: ⊦ buffered(m).leb = m; (s)% ⊦ buffered(m).isbuf?; (s)