| # 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)) |
# 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), range=(buf1, 0, emptypeb, 0, PEB_SIZE), ubi-io-inv(apebs), EB_PAGE_SIZE ≤ PEB_SIZE ⊦ avhdr = empty ∧ abs-echdr(buf2, aechdr(m3))
Used simplifier rules: ⊦ m - 0 = m; (s)%n ≠ 0 ⊦ is-aligned(0, n); (s)% ⊦ EB_PAGE_SIZE ≠ 0; (s)% ⊦ 0 ≤ m; (s)% ⊦ mkpeb(buf, m, boolvar).fill = m; (s)% ⊦ mkpeb(buf, m, boolvar).bad ↔ boolvar; (s)%n < # pebs ⊦ pebs[n] = mkpeb(buf, m, boolvar) ∧ mtd-cons(pebs) → # buf = PEB_SIZE; (s)% ⊦ m < n → (n ≤ m ↔ false); (s)% ⊦ m < n ↔ ¬ n ≤ m; (ss)% ⊦ mkpeb(buf, m, boolvar).data = buf; (s)%⊦ mtd-valid-peb(peb) ↔ # peb.data = PEB_SIZE ∧ ( ¬ peb.bad → peb.fill ≤ PEB_SIZE ∧ is-aligned(peb.fill, EB_PAGE_SIZE) ∧ range= (peb.data, peb.fill, emptypeb, peb.fill, PEB_SIZE - peb.fill)); (s)