[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 5 from proof prepost-decode-lpt (previous step)

# buf = lptsize(# lpt, LEB_SIZE), buf0 = buf, err = ESUCCESS, lpt0 = lpt, n = 0 ⊦ ⟪while err = ESUCCESS ∧ n < # lpt do {/* (prepost-decode-lpt : invariant n ≤ # lpt ∧ # buf = lptsize(# lpt, LEB_SIZE) ∧ # lpt = # lpt` ∧ (err = ESUCCESS ∨ ⌊err⌋ ) ∧ (err = ESUCCESS → is-encoded(lpt, buf, n)) wfbound # lpt - n) */; let m = ? in decode_lprops#(n * ENCODED_LPROPS_SIZE, buf; lpt[n], m; err); n := n + 1}⟫ ((err = ESUCCESS ∨ ⌊err⌋ ) ∧ # buf = # buf0 ∧ (err = ESUCCESS → is-encoded(lpt, buf) ∧ # lpt = # lpt0))

Heuristic annotation applied rule annotation right

And obtained the following new goals

Rule argument

rule: invariant right arg: bound: # lpt - n inv: n ≤ # lpt ∧ # buf = lptsize(# lpt, LEB_SIZE) ∧ # lpt = # lpt` ∧ (err = ESUCCESS ∨ ⌊err⌋ ) ∧ (err = ESUCCESS → is-encoded(lpt, buf, n)) fmapos: right 1 pos: right 1

Additional information

Used formulas: n ≤ # lpt ∧ # buf = lptsize(# lpt, LEB_SIZE) ∧ # lpt = # lpt` ∧ (err = ESUCCESS ∨ ⌊err⌋ ) ∧ (err = ESUCCESS → is-encoded(lpt, buf, n)), # lpt - n = # lpt - n