Loop invariants

Very simple verification example in which a loop invariant is used to prove correctness of a single while-loop (provided that it terminates).

General Information

  • Backend: Silicon
  • Language: PVL
  • Features: Loop invariants
  • Path to Example File: manual/loop.pvl
  • Should Verify: Yes
  • Date: 2017-06-20
  • Lines of Code: 16 (comments not included)
  • Lines of Specification: 7 (43.8% of total)
  • Computation Time: 18.3 seconds