An assume guarantee approach for checking quantified array assertions

  • Authors:
  • Mohamed Nassim Seghir

  • Affiliations:
  • University of Freiburg

  • Venue:
  • AMAST'10 Proceedings of the 13th international conference on Algebraic methodology and software technology
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present an assume-guarantee method for the verification of quantified array assertions based on a program transformation. A quantified array assertion expresses a property over an array segment such as "all elements of an array are sorted". Given a program Pn annotated with assertion ϕn, our method rewrites Pn to either Pn-1; C or C; Pn-1 where C is a code fragment. The validity of the assertion is then proven by induction: assuming that ϕn-1 holds for Pn-1 and proving that ϕn holds for Pn. The program transformation allows to reduce the complexity of the code as well as the assertion to be verified. Experimental results on both text book and real life examples taken from system code show performance improvement compared to our previous approach for checking quantified assertions. Moreover, this new technique enables us to verify challenging programs which are not handled by our previous method and many exiting tools as well.