| avols[default-volid][m2] = mapped(buf0, n4), avol = abs(avols[default-volid]), err = err0, m = m1, m0 = m2, n0 = n, n1 = n3, v = default-volid, n2 < n0, m2 < # avols[default-volid], ebm-cons(avols), ebm-vol-inv(abs(avols[default-volid])), is-aligned(n2, EB_PAGE_SIZE), is-aligned(n, EB_PAGE_SIZE), is-aligned(m1, EB_PAGE_SIZE), default-volid ∈ avols, n3 + n ≤ # buf, m1 + n ≤ LEB_SIZE, n4 ≤ m1, ⌊err0⌋ ∨ err0 = ESUCCESS ⊦ err = ESUCCESS, n2 = 0, m0 < # avols[v] ∧ v ∈ avols ∧ (0 + m ≤ # avols[v][m0].data ∧ avols[v][m0].mapped? ∧ m0 < # avols[v] ∧ v ∈ avols) ∧ n1 + n2 ≤ # buf ∧ LEB_SIZE - m ≥ n2 ∧ LEB_SIZE ≥ m |
avols[default-volid][m2] = mapped(buf0, n4), n2 < n, m2 < # avols[default-volid], ebm-cons(avols), ebm-vol-inv(abs(avols[default-volid])), is-aligned(n2, EB_PAGE_SIZE), is-aligned(n, EB_PAGE_SIZE), is-aligned(m1, EB_PAGE_SIZE), default-volid ∈ avols, n3 + n ≤ # buf, m1 + n ≤ LEB_SIZE, n4 ≤ m1, m1 ≤ LEB_SIZE, n2 + m1 ≤ LEB_SIZE, n3 + n2 ≤ # buf, n4 ≤ LEB_SIZE, ⌊err0⌋ ⊦ n2 = 0, ∃ buf, m. mapped(buf0, n4) = mapped(buf, m)
Used simplifier rules: elim-mapped: ⊦ leb.mapped? ↔ (∃ buf, m. leb = mapped(buf, m));%let: ⊦ n ≤ n0 ∧ n0 ≤ n1 → n ≤ n1; (forward) from specification nat% ⊦ ¬ m + n < m; (s)% ⊦ m < n → ¬ n < m; (s)% ⊦ m + n < m + n0 ↔ n < n0; (s)%fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat%⊦ v ∈ avols ∧ m < # avols[v] ∧ avols[v][m] = mapped(buf, m0) ∧ ebm-cons(avols) → # buf = LEB_SIZE; (s)% ⊦ mapped(buf, m).data = buf; (s)% ⊦ m < n → n ≠ 0; (s)%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic%n0 ≤ n ⊦ m ≤ n - n0 ↔ m + n0 ≤ n; (s)% ⊦ m < n → (n ≤ m ↔ false); (s)% ⊦ m ≤ n ↔ ¬ n < m; (ss)% ⊦ n ≥ m ↔ m ≤ n; (s)%c: ⊦ m + n = n + m; from specification nat-basic%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic% ⊦ n + 0 = n; (s)% ⊦ ⌊err⌋ → err ≠ ESUCCESS; (s)