ACM SIGPLAN Notices · 2008 · 42 citations · 10 references
ComputingComputer ScienceData StructuresParallel ComputingTheory Of ComputationAbstract InterpretationData-flow AnalysisSorting AlgorithmsSymbolic ExecutionAbstract SemanticsData Dependence AnalysisDependency AnalysisInsertion SortProgram Property AnalysisSymbolic Analysis
Array bound checking and array dependency analysis have been widely studied, but fewer results exist on analyzing properties of array contents. The paper proposes using abstract interpretation to discover properties about array contents in restricted cases: one‑dimensional arrays traversed by simple for loops. The approach partitions arrays into symbolic intervals, associates each with abstract variables, and applies relational abstract properties pointwise on each interval, with the resulting abstract semantics implemented in a prototype tool. The method can, for example, prove that insertion sort produces a sorted array and that a sentinel‑guarded traversal keeps the index within bounds.
Array bound checking and array dependency analysis (for parallelization) have been widely studied. However, there are much less results about analyzing properties of array contents. In this paper, we propose a way of using abstract interpretation for discovering properties about array contents in some restricted cases: one-dimensional arrays, traversed by simple "for" loops. The basic idea, borrowed from [GRS05], consists in partitioning arrays into symbolic intervals (e.g., [1,i -- 1], [i,i], [i + 1,n]), and in associating with each such interval I and each array A an abstract variable AI; the new idea is to consider relational abstract properties ψ(AI, BI, ...) about these abstract variables, and to interpret such a property pointwise on the interval I: ∀l ∈ I, ψ(A[l], B[l],...). The abstract semantics of our simple programs according to these abstract properties has been defined and implemented in a prototype tool. The method is able, for instance, to discover that the result of an insertion sort is a sorted array, or that, in an array traversal guarded by a "sentinel", the index stays within the bounds.
10
Automatic discovery of linear restraints among variables of a program
Patrick Cousot, Nicolas Halbwachs · 1978 · 1.6K citations
Model-Checking in Dense Real-Time
Rajeev Alur, Costas Courcoubetis, David L. Dill · Information and Computation · 1993 · 829 citations
A static analyzer for large safety-critical software
Bruno Blanchet, Patrick Cousot, Radhia Cousot et al. · 2003 · 312 citations · Full text
Predicate abstraction for software verification
Cormac Flanagan, Shaz Qadeer · 2002 · 280 citations
C. A. R. Hoare · Communications of the ACM · 1971 · 178 citations · Full text