| m < # avols[default-volid], ebm-cons(avols), ebm-vol-inv(abs(avols[default-volid])), is-aligned(n, EB_PAGE_SIZE), default-volid ∈ avols, n ≤ LEB_SIZE, n ≤ # buf ⊦ ⟪fail_or_success#(; ; err); avol := abs(avols[default-volid]); if err = ESUCCESS then avols[default-volid][m] := mapped(subarray(buf, 0, n) + mkempbuf(LEB_SIZE - n), n)⟫ ⟨ebm_avol_change#(m, n, buf; avol; err0)⟩ (avol = abs(avols[default-volid]) ∧ err = err0) |
m < # avols[default-volid], ebm-cons(avols), ebm-vol-inv(abs(avols[default-volid])), is-aligned(n, EB_PAGE_SIZE), default-volid ∈ avols, n ≤ # buf, n ≤ LEB_SIZE ⊦ ⟪choose err0 with ⌊err0⌋ ∨ err0 = ESUCCESS in err := err0; avol := abs(avols[default-volid]); if err = ESUCCESS then avols[default-volid][m] := mapped(subarray(buf, 0, n) + mkempbuf(LEB_SIZE - n), n)⟫ ⟨ebm_avol_change#(m, n, buf; avol; err0)⟩ (avol = abs(avols[default-volid]) ∧ err = err0)
Used simplifier rules: fail_or_success#(; ; ERR) {choose ERR0 with ⌊ERR0⌋ ∨ ERR0 = ESUCCESS in ERR := ERR0};