| apebs[n] = mkpeb(aehdr, avhdr, buf0, m, false), n < # apebs, ubi-io-inv(apebs), n1 + n2 ≤ # buf, n0 + n2 ≤ LEB_SIZE ⊦ ⟨aubi_io_read_data#(n, n0, n1, n2, apebs; buf; bitflips, err)⟩ true |
apebs[n6] = mkpeb(aehdr, avhdr, buf1, m, false), buf0 = buf, n = n3, n0 = n4, n1 = n5, n2 = n6, n6 < # apebs, ubi-io-inv(apebs), n5 + n3 ≤ LEB_SIZE, n4 + n3 ≤ # buf ⊦ ⟨if ubi-io-read-data-pre(n2, n1, n0, n, buf0, apebs) then {fail_or_success#(; ; err); bitflips := ?; if err = ESUCCESS then buf0 := copy(apebs[n2].data, n1, 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-data: ⊦ ;