| avols[default-volid][m2] = mapped(buf0, n2), avol = abs(avols[default-volid]), err = err0, err = ESUCCESS, m2 < # avols[default-volid], ebm-cons(avols), ebm-vol-inv(abs(avols[default-volid])), is-aligned(n, EB_PAGE_SIZE), is-aligned(m1, EB_PAGE_SIZE), default-volid ∈ avols, n3 + n ≤ # buf, m1 + n ≤ LEB_SIZE, n2 ≤ m1, ⌊err0⌋ ∨ err0 = ESUCCESS ⊦ n = 0, m2 < # avols[default-volid] ∧ default-volid ∈ avols ∧ (0 + m1 ≤ # avols[default-volid][m2].data ∧ avols[default-volid][m2].mapped? ∧ m2 < # avols[default-volid] ∧ default-volid ∈ avols) ∧ n3 + n ≤ # buf ∧ LEB_SIZE - m1 ≥ n ∧ LEB_SIZE ≥ m1 |
avols[default-volid][m2] = mapped(buf0, n2), m2 < # avols[default-volid], ebm-cons(avols), ebm-vol-inv(abs(avols[default-volid])), is-aligned(n, EB_PAGE_SIZE), is-aligned(m1, EB_PAGE_SIZE), default-volid ∈ avols, n3 + n ≤ # buf, m1 + n ≤ LEB_SIZE, n2 ≤ m1, m1 ≤ LEB_SIZE, n2 ≤ LEB_SIZE ⊦ n = 0, ∃ buf, m. mapped(buf0, n2) = 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 ≠ 0; (s)%fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic%⊦ v ∈ avols ∧ m < # avols[v] ∧ avols[v][m] = mapped(buf, m0) ∧ ebm-cons(avols) → # buf = LEB_SIZE; (s)% ⊦ mapped(buf, m).data = buf; (s)%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)% ⊦ ¬ ⌊ESUCCESS⌋ ; (s)