| # buf2 = EB_PAGE_SIZE, pebs[m2] = mkpeb(buf1, 0, false), apebs[m2] = mkpeb(empty, avhdr, subarray(buf1, 2 * EB_PAGE_SIZE, LEB_SIZE), m1, false), m2 < # apebs, m2 < # pebs, abs(pebs, apebs), abs-echdr(subarray(buf1, 0, EB_PAGE_SIZE), empty), abs-vidhdr(subarray(buf1, EB_PAGE_SIZE, EB_PAGE_SIZE), avhdr), is-encoded(echdr(m3), buf2), mtd-cons(pebs), ubi-io-inv(apebs), EB_PAGE_SIZE ≤ PEB_SIZE ⊦ avhdr = empty ∧ abs-echdr(buf2, aechdr(m3)) |
⊦ n < # pebs → (mtd-cons(pebs) ↔ mtd-valid-peb(pebs[n]) ∧ mtd-cons(pebs))
# buf2 = EB_PAGE_SIZE, apebs[m2] = mkpeb(empty, avhdr, subarray(buf1, 2 * EB_PAGE_SIZE, LEB_SIZE), m1, false), pebs[m2] = mkpeb(buf1, 0, false), m2 < # apebs, m2 < # pebs, abs(pebs, apebs), abs-echdr(subarray(buf1, 0, EB_PAGE_SIZE), empty), abs-vidhdr(subarray(buf1, EB_PAGE_SIZE, EB_PAGE_SIZE), avhdr), is-encoded(echdr(m3), buf2), mtd-cons(pebs), mtd-valid-peb(pebs[m2]), ubi-io-inv(apebs), EB_PAGE_SIZE ≤ PEB_SIZE ⊦ avhdr = empty ∧ abs-echdr(buf2, aechdr(m3))
Used terms: m2, pebs