| # buf1 = EB_PAGE_SIZE, pebs[m0] = mkpeb(buf0, 0, false), aehdr.valid?, m0 < # pebs, is-encoded(echdr(aehdr.ec), buf1), mtd-cons(pebs) ⊦ ⟪mtd_asm_write#(m0, 0, 0, EB_PAGE_SIZE, buf1; pebs; err)⟫ mtd-cons(pebs) |
mtd-cons(pebs), m < # pebs, ¬ pebs[m].bad, pebs[m].fill ≤ m0, m0 + n ≤ PEB_SIZE, n0 + n ≤ # buf, is-aligned(m0, EB_PAGE_SIZE), is-aligned(n, EB_PAGE_SIZE) ⊦ ⟪mtd_asm_write#(m, m0, n0, n, buf; pebs; err)⟫ mtd-cons(pebs)
Used simplifier rules: ⊦ n + 0 = n; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic% ⊦ m ≤ 0 ↔ m = 0; (s)% ⊦ EB_PAGE_SIZE ≠ 0; (s)%n ≠ 0 ⊦ is-aligned(n, n); (s)%n ≠ 0 ⊦ is-aligned(0, n); (s)% ⊦ mkpeb(buf, m, boolvar).bad ↔ boolvar; (s)% ⊦ mkpeb(buf, m, boolvar).fill = m; (s)% ⊦ m ≤ m; (s)% ⊦ m ≤ n ↔ ¬ n < m; (ss)% ⊦ ¬ PEB_SIZE < EB_PAGE_SIZE; (s)