| avol[m2] = mapped(buf1), buf0 = buf, m = m1, m0 = m2, n = n1, n0 = n2, m2 < # avol, ebm-vol-inv(avol), m1 + n1 ≤ LEB_SIZE, n2 + n1 ≤ # buf ⊦ ⟪fail_or_success#(; ; err); if err = ESUCCESS then buf0 := copy(avol[m0].data + mkempbuf(LEB_SIZE - # avol[m0].data), m, buf0, n0, n) else choose buf with # buf = # buf0 ∧ range=(buf0, 0, buf, 0, n0) ∧ range=(buf0, n0 + n, buf, n0 + n, # buf0 - n0 + n) in buf0 := buf⟫ true |
avol[m2] = mapped(buf1), m2 < # avol, ebm-vol-inv(avol), n2 + n1 ≤ # buf, m1 + n1 ≤ LEB_SIZE ⊦ ⟪fail_or_success#(; ; err); if err = ESUCCESS then buf := copy(avol[m2].data + mkempbuf(LEB_SIZE - # avol[m2].data), m1, buf, n2, n1) else choose buf1 with # buf1 = # buf ∧ range=(buf, 0, buf1, 0, n2) ∧ range=(buf, n2 + n1, buf1, n2 + n1, # buf - n2 + n1) in buf := buf1⟫ true