| # buf1 = EB_PAGE_SIZE, pebs[m0] = mkpeb(buf0, EB_PAGE_SIZE, false), avhdr.valid?, m0 < # pebs, is-encoded(vidhdr(avhdr.vol, avhdr.leb, avhdr.sqn, avhdr.size, avhdr.checksum), buf1), mtd-cons(pebs) ⊦ ⟪mtd_asm_write#(m0, EB_PAGE_SIZE, 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 + m = 2 * m; (s)% ⊦ EB_PAGE_SIZE ≠ 0; (s)%n ≠ 0 ⊦ is-aligned(n, n); (s)% ⊦ mkpeb(buf, m, boolvar).bad ↔ boolvar; (s)% ⊦ mkpeb(buf, m, boolvar).fill = m; (s)% ⊦ m ≤ n → (n ≤ m ↔ m = n); (s)% ⊦ m ≤ m; (s)% ⊦ m ≤ n ↔ ¬ n < m; (ss)% ⊦ ¬ PEB_SIZE < 2 * EB_PAGE_SIZE; (s)%mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult%mult-c: ⊦ m * n = n * m; from specification nat-mult