Shape Analysis with Structural Invariant Checkers

  • Bor-Yuh Evan Chang
  • Xavier Rival
  • George C. Necula
Conference paper

DOI: 10.1007/978-3-540-74061-2_24

Part of the Lecture Notes in Computer Science book series (LNCS, volume 4634)
Cite this paper as:
Chang BY.E., Rival X., Necula G.C. (2007) Shape Analysis with Structural Invariant Checkers. In: Nielson H.R., Filé G. (eds) Static Analysis. SAS 2007. Lecture Notes in Computer Science, vol 4634. Springer, Berlin, Heidelberg

Abstract

Developer-supplied data structure specifications are important to shape analyses, as they tell the analysis what information should be tracked in order to obtain the desired shape invariants. We observe that data structure checking code (eg, used in testing or dynamic analysis) provides shape information that can also be used in static analysis. In this paper, we propose a lightweight, automatic shape analysis based on these developer-supplied structural invariant checkers. In particular, we set up a parametric abstract domain, which is instantiated with such checker specifications to summarize memory regions using both notions of complete and partial checker evaluations. The analysis then automatically derives a strategy for canonicalizing or weakening shape invariants.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 2007

Authors and Affiliations

  • Bor-Yuh Evan Chang
    • 1
  • Xavier Rival
    • 1
    • 2
  • George C. Necula
    • 1
  1. 1.University of California, Berkeley, CaliforniaUSA
  2. 2.École Normale Supérieure, ParisFrance

Personalised recommendations