| m < align↑(datasize(buf, LEB_SIZE), EB_PAGE_SIZE), ubi-io-peb-inv(mkpeb(aehdr, avhdr, buf, m, false)) ⊦ |
⊦ ubi-io-peb-inv(apeb) ↔ # apeb.data = LEB_SIZE ∧ ( ¬ apeb.bad → (apeb.echdr = empty → apeb.vidhdr = empty) ∧ (apeb.echdr ≠ garbage ∧ apeb.vidhdr = empty → apeb.fill = 0) ∧ apeb.fill ≤ LEB_SIZE ∧ is-aligned(apeb.fill, EB_PAGE_SIZE) ∧ subarray(apeb.data, apeb.fill, LEB_SIZE - apeb.fill) = mkempbuf(LEB_SIZE - apeb.fill))
# mkpeb(aehdr, avhdr, buf, m, false).data = LEB_SIZE, m < align↑(datasize(buf, LEB_SIZE), EB_PAGE_SIZE), ¬ mkpeb(aehdr, avhdr, buf, m, false).bad → (mkpeb(aehdr, avhdr, buf, m, false).echdr = empty → mkpeb(aehdr, avhdr, buf, m, false).vidhdr = empty) ∧ ( mkpeb(aehdr, avhdr, buf, m, false).echdr ≠ garbage ∧ mkpeb(aehdr, avhdr, buf, m, false).vidhdr = empty → mkpeb(aehdr, avhdr, buf, m, false).fill = 0) ∧ mkpeb(aehdr, avhdr, buf, m, false).fill ≤ LEB_SIZE ∧ is-aligned(mkpeb(aehdr, avhdr, buf, m, false).fill, EB_PAGE_SIZE) ∧ subarray(mkpeb(aehdr, avhdr, buf, m, false).data, mkpeb(aehdr, avhdr, buf, m, false).fill, LEB_SIZE - mkpeb(aehdr, avhdr, buf, m, false).fill) = mkempbuf(LEB_SIZE - mkpeb(aehdr, avhdr, buf, m, false).fill) ⊦
Used terms: mkpeb(aehdr, avhdr, buf, m, false)