An Algorithm for Automated Generation of Invariants for Loops with Conditionals

  • Authors:
  • Laura Ildiko Kovacs;Tudor Jebelean

  • Affiliations:
  • Johannes Kepler University and Institute e-Austria;Johannes Kepler University and Institute e-Austria

  • Venue:
  • SYNASC '05 Proceedings of the Seventh International Symposium on Symbolic and Numeric Algorithms for Scientific Computing
  • Year:
  • 2005

Quantified Score

Hi-index 0.01

Visualization

Abstract

We present an algorithm that generates automatically (algebraic) invariant properties of a loop with conditionals. In the proposed algorithm program analysis is performed in order to transform the code into a form for which algebraic and combinatorial techniques can be applied to obtain invariant properties. These invariants are then used for verifying partial correctness of imperative programs in the Theorema system (www.theorema.org). The application of the method is demonstrated in few examples.