2008 · 158 citations · 9 references
ComputingComputer ScienceData StructuresFormal MethodsProgramming LanguagesAbstract InterpretationData AbstractionData RepresentationData TypesData-flow AnalysisShape AnalysisHeap ModelingInvariantsRed-black TreesShapeStructural InvariantsWidening Operators
Shape analyses are concerned with precise abstractions of the heap to capture detailed structural properties. To do so, they need to build and decompose summaries of disjoint memory regions. Unfortunately, many data structure invariants require relations be tracked across disjoint regions, such as intricate numerical data invariants or structural invariants concerning back and cross pointers. In this paper, we identify issues inherent to analyzing relational structures and design an abstract domain that is parameterized both by an abstract domain for pure data properties and by user-supplied specifications of the data structure invariants to check. Particularly, it supports hybrid invariants about shape and data and features a generic mechanism for materializing summaries at the beginning, middle, or end of inductive structures. Around this domain, we build a shape analysis whose interesting components include a pre-analysis on the user-supplied specifications that guides the abstract interpretation and a widening operator over the combined shape and data domain. We then demonstrate our techniques on the proof of preservation of the red-black tree invariants during insertion.
9
Patrick Cousot, Radhia Cousot · 1977 · 6.2K citations
Separation logic: a logic for shared mutable data structures
John Reynolds · 2003 · 2.2K citations
Antoine Miné · LISP and Symbolic Computation · 2006 · 698 citations
Affine relationships among variables of a program
Michael Karr · Acta Informatica · 1976 · 433 citations