| buf0 = buf, m = m1, m0 = m2, m2 < # avols[v], ebm-cons(avols), ebm-cons(avols0), v ∈ avols, m1 + n ≤ LEB_SIZE, n0 + n ≤ # buf, avols ⊆ avols0 ⊦ ⟨if v ∈ avols ∧ m0 < # avols[v] ∧ m + n ≤ LEB_SIZE ∧ n0 + n ≤ # buf0 then {fail_or_success#(; ; err); if err = ESUCCESS then if ¬ avols[v][m0].mapped? then buf0 := fill(buf0, empty, n0, n) else buf0 := copy(avols[v][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 |
buf0 = buf, m = m1, m0 = m2, m2 < # avols[v], ebm-cons(avols0), ebm-cons(avols), v ∈ avols, n0 + n ≤ # buf, m1 + n ≤ LEB_SIZE, avols ⊆ avols0 ⊦ ⟨fail_or_success#(; ; err); if err = ESUCCESS then if ¬ avols[v][m0].mapped? then buf0 := fill(buf0, empty, n0, n) else buf0 := copy(avols[v][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⟩ true