| pebs[m] = mkpeb(buf0, m1, false), m < # pebs, mtd-cons(pebs), n0 + n ≤ # buf, m0 + n ≤ PEB_SIZE ⊦ ⟪mtd_asm_read#(m, m0, n0, n, pebs; buf; bitflips, err)⟫ true |
pebs[m3] = mkpeb(buf1, m1, false), buf0 = buf, m = m2, m0 = m3, m3 < # pebs, mtd-cons(pebs), m2 + n ≤ PEB_SIZE, n0 + n ≤ # buf ⊦ ⟪if m0 < # pebs ∧ ¬ pebs[m0].bad ∧ m + n ≤ PEB_SIZE ∧ n0 + n ≤ # buf0 then {fail_or_success#(; ; err); bitflips := ?; if err = ESUCCESS then buf0 := copy(pebs[m0].data, m, buf0, n0, n) else choose buf with # buf = # buf0 ∧ range=(buf, 0, buf0, 0, n0) ∧ range=(buf, n0 + n, buf0, n0 + n, # buf0 - n0 + n) in buf0 := buf} else abort⟫ true
Used simplifier rules: read: ⊦ ;