Verified Resource Guarantees for Heap Manipulating Programs

  • Elvira Albert
  • Richard Bubel
  • Samir Genaim
  • Reiner Hähnle
  • Guillermo Román-Díez
Conference paper

DOI: 10.1007/978-3-642-28872-2_10

Part of the Lecture Notes in Computer Science book series (LNCS, volume 7212)
Cite this paper as:
Albert E., Bubel R., Genaim S., Hähnle R., Román-Díez G. (2012) Verified Resource Guarantees for Heap Manipulating Programs. In: de Lara J., Zisman A. (eds) Fundamental Approaches to Software Engineering. FASE 2012. Lecture Notes in Computer Science, vol 7212. Springer, Berlin, Heidelberg

Abstract

Program properties that are automatically inferred by static analysis tools are generally not considered to be completely trustworthy, unless the tool implementation or the results are formally verified. Here we focus on the formal verification of resource guarantees inferred by automatic cost analysis. Resource guarantees ensure that programs run within the indicated amount of resources which may refer to memory consumption, to number of instructions executed, etc. In previous work we studied formal verification of inferred resource guarantees that depend only on integer data. In realistic programs, however, resource consumption is often bounded by the size of heap-allocated data structures. Bounding their size requires to perform a number of structural heap analyses. The contributions of this paper are (i) to identify what exactly needs to be verified to guarantee sound analysis of heap manipulating programs, (ii) to provide a suitable extension of the program logic used for verification to handle structural heap properties in the context of resource guarantees, and (iii) to improve the underlying theorem prover so that proof obligations can be automatically discharged.

Copyright information

© Springer-Verlag Berlin Heidelberg 2012

Authors and Affiliations

  • Elvira Albert
    • 2
  • Richard Bubel
    • 1
  • Samir Genaim
    • 2
  • Reiner Hähnle
    • 1
  • Guillermo Román-Díez
    • 3
  1. 1.CSEChalmers University of TechnologySweden
  2. 2.DSICComplutense University of Madrid (UCM)Spain
  3. 3.DLSIISTechnical University of Madrid (UPM)Spain

Personalised recommendations