| pebs[m0] = mkpeb(buf0, 2 * EB_PAGE_SIZE, false), m = EB_PAGE_SIZE, m0 < # pebs, is-aligned(n, EB_PAGE_SIZE), mtd-cons(pebs), n ≤ LEB_SIZE, n ≤ # buf ⊦ ⟪if m0 < # pebs ∧ ¬ pebs[m0].bad ∧ pebs[m0].fill = 2 * EB_PAGE_SIZE ∧ n ≤ LEB_SIZE ∧ n ≤ # buf ∧ is-aligned(n, EB_PAGE_SIZE) then mtd_asm_write#(m0, 2 * m, 0, n, buf; pebs; err) else abort⟫ mtd-cons(pebs) |
pebs[m0] = mkpeb(buf0, 2 * EB_PAGE_SIZE, false), m = EB_PAGE_SIZE, m0 < # pebs, is-aligned(n, EB_PAGE_SIZE), mtd-cons(pebs), n ≤ # buf, n ≤ LEB_SIZE ⊦ ⟪mtd_asm_write#(m0, 2 * m, 0, n, buf; pebs; err)⟫ mtd-cons(pebs)
Used simplifier rules: ⊦ mkpeb(buf, m, boolvar).bad ↔ boolvar; (s)% ⊦ mkpeb(buf, m, boolvar).fill = m; (s)