Inference of polynomial invariants for imperative programs: a farewell to gröbner bases

  • Authors:
  • David Cachera;Thomas Jensen;Arnaud Jobin;Florent Kirchner

  • Affiliations:
  • ENS Cachan Bretagne, IRISA, Rennes, France;Inria Rennes - Bretagne Atlantique, France;Université Rennes 1, IRISA, Rennes, France;CEA, LIST, Gif-sur-Yvette, France

  • Venue:
  • SAS'12 Proceedings of the 19th international conference on Static Analysis
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

We propose a static analysis for computing polynomial invariants for imperative programs. The analysis is derived from an abstract interpretation of a backwards semantics, and computes pre-conditions for equalities like g=0 to hold at the end of execution. A distinguishing feature of the technique is that it computes polynomial loop invariants without resorting to Gröbner base computations. The analysis uses remainder computations over parameterized polynomials in order to handle conditionals and loops efficiently. The algorithm can analyse and find a large majority of loop invariants reported previously in the literature, and executes significantly faster than implementations using Gröbner bases.