| # buf = PEB_SIZE, m0 + 1 = # pebs, PEB_SIZE = n0 + EB_PAGE_SIZE, pebs[m0] = mkpeb(buf, EB_PAGE_SIZE, false), abs(subarray(pebs, 0, m0), apebs), is-encoded(echdr(n), subarray(buf, 0, EB_PAGE_SIZE)), range=(buf, EB_PAGE_SIZE, emptypeb, EB_PAGE_SIZE, n0), ubi-io-initial(apebs), ubi-io-initial(pebs), EB_PAGE_SIZE ≤ PEB_SIZE ⊦ ∃ apebs. abs(pebs, apebs) ∧ ubi-io-initial(apebs) |
# buf = PEB_SIZE, m0 + 1 = # pebs, pebs[m0] = mkpeb(buf, EB_PAGE_SIZE, false), abs(subarray(pebs, 0, m0), apebs), is-encoded(echdr(n), subarray(buf, 0, EB_PAGE_SIZE)), range=(buf, EB_PAGE_SIZE, emptypeb, EB_PAGE_SIZE, LEB_SIZE + EB_PAGE_SIZE), ubi-io-initial(apebs), ubi-io-initial(pebs), EB_PAGE_SIZE ≤ PEB_SIZE ⊦ ∃ apebs. abs(pebs, apebs) ∧ ubi-io-initial(apebs)
Used simplifier rules: mult-c: ⊦ m * n = n * m; from specification nat-mult%mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult% ⊦ LEB_SIZE + 2 * EB_PAGE_SIZE = PEB_SIZE; (s)% ⊦ m + m = 2 * m; (s)%c: ⊦ m + n = n + m; from specification nat-basic%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%pebsize-minus-eb-page-size: ⊦ PEB_SIZE = n + EB_PAGE_SIZE → n = LEB_SIZE + EB_PAGE_SIZE; (forward) from specification eraseblock