[Imprint][Data Privacy Statement][E-Mail]



View long theorem info. View the proof. Back to main index. View the specification. View theorem base summary, View theorem base listing, the used properties by spec, the dependency list, the symbol table,

Proof step 8 from proof inv-read-gblock-nodes (previous step)

# gndx = # lax, # lpt = # avol, # lpt0 = # avol, avol[m5] = mapped(buf1), buf = mkbuf(LEB_SIZE), buf0 = buf, log = log0, m = m4, m0 = 0, m1 = m5, n = LEB_SIZE, m5 < # avol, abs-nodes(buf1, gndx, lax, true), awbuf-inv(avol, bleb), buf-ro-rw-mode(isbuf, bleb, lpt0, avol), bufs-log-only(bleb, log0, lpt0), lpt-free-unref(lpt), lpt-leb-size(lpt), lpt-ram-flash(lpt0, lpt, log0) ⊦ ⟪if m1 < # avol ∧ n ≤ # buf0 ∧ m0 + n ≤ LEB_SIZE ∧ avol[m1].mapped? then {fail_or_success#(; ; err); if err = ESUCCESS then buf0 := copy(avol[m1].data + mkempbuf(LEB_SIZE - # avol[m1].data), m0, buf0, 0, n) else choose buf with # buf = # buf0 ∧ range=(buf, n, buf0, n, # buf0 - n) in buf0 := buf} else abort; m3 := m5; m2 := LEB_SIZE; m0 := 0; gndx0 := gndx1; ax := ax0; buf := buf0; while err = ESUCCESS ∧ m0 < m2 do {/* (inv-read-gblock-nodes : invariant (err = ESUCCESS ∨ err = ENOENT ∨ ⌊err⌋ ) ∧ (err = ESUCCESS ∨ err = ENOENT → read-gblock-inv(m3, m0, ax, gndx0, ax`, gndx0`, avol[m3].data, err = ENOENT)) wfbound (err ≠ ESUCCESS ⊃ 0;m2 - m0)) */; if ¬ m0 + NODE_HEADER_SIZE ≤ # buf ∨ isempty(buf, m0, NODE_HEADER_SIZE) then err := ENOENT else let ndhd = ? in {decode_header#(m0, buf; ndhd; err); if err ≠ ESUCCESS then debug#("persistence: read_gblock_nodes could not decode header in LEB " + m3.toString + " at offset " + m0.toString) else let m = 2 * NODE_HEADER_SIZE + align↑(ndhd.size, 2 * NODE_HEADER_SIZE) in {if m2 < m0 + m then {debug# ( "persistence: read_gblock_nodes ignoring node of size " + m.toString + " at offset " + m0.toString + " in LEB " + m3.toString); err := ENOENT} else if ¬ range=(buf, m0 + NODE_HEADER_SIZE + align↑(ndhd.size, 2 * NODE_HEADER_SIZE), validtrailer, 0, NODE_HEADER_SIZE) then {err := ENOENT; debug#("persistence: read_gblock_nodes partial node at offset " + m0.toString + " in LEB " + m3.toString)} else if ¬ ndhd.ispadding then let gnd = ? in {decode_group_node#(m0, m, buf; gnd; err); if err ≠ ESUCCESS then debug# ( "persistence: read_gblock_nodes could not decode node at offset " + m0.toString + " in LEB " + m3.toString) else {gndx0 := gndx0 + gnd '; ax := ax + @(m3, m0, m) '}}; if err = ESUCCESS then m0 := m0 + m}}}; if err = ENOENT then err := ESUCCESS⟫ ((err = ESUCCESS ∨ ⌊err⌋ ) ∧ (err = ESUCCESS → ax = ax0 + lax.to-adr(m5) ∧ gndx0 = gndx1 + gndx))

Heuristic symbolic execution applied rule if positive right

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Used simplifier rules: ⊦ # mkbuf(n) = n; (s)% ⊦ m ≤ m; (s)% ⊦ n + 0 = n; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic% ⊦ mapped(buf).mapped?; (s)