| avol[0] = mapped(buf1), buf = mkbuf(LEB_SIZE), err = err0, err = ESUCCESS, avol[0].mapped?, 0 < # avol, ebm-vol-inv(avol), is-encoded(sb0, buf1), 0 + LEB_SIZE ≤ #(avol[0].data + mkempbuf(LEB_SIZE - # avol[0].data)), 0 + LEB_SIZE ≤ # buf, LEB_SIZE ≥ # avol[0].data, ⌊err0⌋ ∨ err0 = ESUCCESS ⊦ ⟪decode_superblock#(0, copy(avol[0].data + mkempbuf(LEB_SIZE - # avol[0].data), 0, buf, 0, LEB_SIZE), EB_PAGE_SIZE; sb, m; err)⟫ ((err = ESUCCESS ∨ ⌊err⌋ ) ∧ (err = ESUCCESS → sb = sb0)), # avol = 0 |
avol[0] = mapped(buf1), # avol ≠ 0, ebm-vol-inv(avol), is-encoded(sb0, buf1), # buf1 ≤ LEB_SIZE, LEB_SIZE ≤ # buf1 + (LEB_SIZE - # buf1) ⊦ ⟪decode_superblock#(0, copy(avol[0].data + mkempbuf(LEB_SIZE - # avol[0].data), 0, mkbuf(LEB_SIZE), 0, LEB_SIZE), EB_PAGE_SIZE; sb, m; err)⟫ ((err = ESUCCESS ∨ ⌊err⌋ ) ∧ (err = ESUCCESS → sb = sb0))
Used simplifier rules: ⊦ m ≤ m + n; (s)% ⊦ mapped(buf).data = buf; (s)% ⊦ mapped(buf) = mapped(buf0) ↔ buf = buf0; (s)%let: ⊦ n ≤ n0 ∧ n0 ≤ n1 → n ≤ n1; (forward) from specification nat% ⊦ ¬ ⌊ESUCCESS⌋ ; (s)% ⊦ aleb.mapped? ↔ (∃ buf. aleb = mapped(buf)); (as)% ⊦ 0 < m ↔ m ≠ 0; (s)%append-a: ⊦ (buf + buf0) + buf1 = buf + buf0 + buf1; from specification array-splice[buffer]% ⊦ # mkempbuf(n) = n; (s)% ⊦ #(buf + buf0) = # buf + # buf0; (s)% ⊦ m ≤ m; (s)% ⊦ # mkbuf(n) = 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)% ⊦ n ≥ m ↔ m ≤ n; (s)% ⊦ m < n → n ≠ 0; (s)