| LEB_SIZE = (n0 + n4) + n5, apebs[n] = mkpeb(aehdr, avhdr, buf0, m, false), aehdr.valid?, avhdr.valid?, n < # apebs, is-aligned(n5, EB_PAGE_SIZE), is-aligned(n4, EB_PAGE_SIZE), ubi-io-inv(apebs), ubi-io-peb-inv(mkpeb(aehdr, avhdr, buf0, m, false)), m ≤ n5, n5 + n4 ≤ LEB_SIZE, n1 + n4 ≤ # buf, m ≤ LEB_SIZE, n5 ≤ LEB_SIZE, n4 + n5 ≤ LEB_SIZE ⊦ (aehdr = empty → avhdr = empty) ∧ (aehdr ≠ garbage ∧ avhdr = empty → n5 + n4 = 0) ∧ subarray(mkempbuf(n0), 0, LEB_SIZE - n5 + n4) = mkempbuf(LEB_SIZE - n5 + n4) |
LEB_SIZE = (n0 + n4) + n5, LEB_SIZE = n2 + n5 + n4, apebs[n] = mkpeb(aehdr, avhdr, buf0, m, false), avhdr.valid?, aehdr.valid?, n < # apebs, is-aligned(n4, EB_PAGE_SIZE), is-aligned(n5, EB_PAGE_SIZE), ubi-io-inv(apebs), ubi-io-peb-inv(mkpeb(aehdr, avhdr, buf0, m, false)), n4 + n5 ≤ LEB_SIZE, n5 ≤ LEB_SIZE, m ≤ LEB_SIZE, n1 + n4 ≤ # buf, n5 + n4 ≤ LEB_SIZE, m ≤ n5 ⊦ (aehdr = empty → avhdr = empty) ∧ (aehdr ≠ garbage ∧ avhdr = empty → n5 + n4 = 0) ∧ subarray(mkempbuf(n0), 0, n2) = mkempbuf(n2)
Used simplifier rules: n ≤ m ⊦ n0 = m - n ↔ m = n0 + n; (elim) Used terms: LEB_SIZE, n5 + n4, n2