| # buf2 = EB_PAGE_SIZE, LEB_SIZE = n1 + logoff0, LEB_SIZE = n0 + # buf0, avol[m5] = mapped(buf0), subarray(buf0 + mkempbuf(n0), logoff0, EB_PAGE_SIZE) = emptypage, # buf0 < n1 + logoff0 + EB_PAGE_SIZE, logoff0 < LEB_SIZE, m5 < # avol, LEB_SIZE < n1 + logoff0 + EB_PAGE_SIZE, logoff0 < # buf0, ebm-vol-inv(avol), is-aligned(logoff0, EB_PAGE_SIZE), is-encoded(log, subarray(buf0, 0, logoff0)), is-encoded(log0, buf0), logoff0 + EB_PAGE_SIZE ≤ LEB_SIZE, # buf0 ≤ LEB_SIZE, logoff0 + EB_PAGE_SIZE ≤ # buf0 → buf0 = buf + buf1 + buf3 ∧ # buf = logoff0 ∧ # buf1 = EB_PAGE_SIZE ⊦ # buf0 = logoff0, log0 = log, n1 = 0, logoff0 + EB_PAGE_SIZE ≤ # buf0 |
# buf2 = EB_PAGE_SIZE, LEB_SIZE = n0 + # buf0, LEB_SIZE = n1 + logoff0, avol[m5] = mapped(buf0), subarray(buf0 + mkempbuf(n0), logoff0, EB_PAGE_SIZE) = emptypage, 2 < n1 + EB_PAGE_SIZE, logoff0 < # buf0, LEB_SIZE < n1 + logoff0 + EB_PAGE_SIZE, m5 < # avol, logoff0 < LEB_SIZE, # buf0 < n1 + logoff0 + EB_PAGE_SIZE, # buf0 < logoff0 + EB_PAGE_SIZE, # buf0 + 1 < n1 + logoff0 + EB_PAGE_SIZE, # buf0 < LEB_SIZE, logoff0 + 1 < LEB_SIZE, ebm-vol-inv(avol), is-aligned(logoff0, EB_PAGE_SIZE), is-encoded(log0, buf0), is-encoded(log, subarray(buf0, 0, logoff0)), logoff0 + EB_PAGE_SIZE ≤ LEB_SIZE ⊦ # buf0 = logoff0, EB_PAGE_SIZE = 1, log0 = log, n0 = 0, n1 = 1, n1 = 0
Used simplifier rules: ⊦ m + n = 1 ↔ m = 0 ∧ n = 1 ∨ n = 0 ∧ m = 1; (ws)%lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic% ⊦ m < n → m ≤ n; (s)% ⊦ m < m + n ↔ n ≠ 0; (s)% ⊦ EB_PAGE_SIZE ≠ 0; (s)% ⊦ 1 < m ↔ ¬(m = 0 ∨ m = 1); (s)% ⊦ m + n < m + n0 ↔ n < n0; (s)% ⊦ m +1 = m + 1; (s)%c: ⊦ m + n = n + m; from specification nat-basic%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic% ⊦ EB_PAGE_SIZE + n = 0 ↔ false; (s)%transitivity: ⊦ n < n0 ∧ n0 < n1 → n < n1; (forward) from specification oelem[nat-set]%lf: ⊦ m < n ∧ n < n0 → m +1 < n0; (forward) from specification nat-basic%fle: ⊦ m < n ∧ n ≤ n0 → m < n0; (forward) from specification nat%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic% ⊦ m < n → (n ≤ m ↔ false); (s)% ⊦ m ≤ n ↔ ¬ n < m; (ss)