Solving shape-analysis problems in languages with destructive updating
Mooly Sagiv, Thomas Reps, Reinhard Wilhelm · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · 1996
This paper concerns the static analysis of programs that perform destructive updating on heap-allocated storage. We give an algorithm that conservatively solves this problem by using a finite shape-graph to approximate the possible "shapes" that heap-allocated structures in a program can take on. In contrast with previous work, our method is even accurate for certain programs that update cyclic data structures. For example, our method can determine that when the input to a program that searches a list and splices in a new element is a possibly circular list, the output is a possibly circular list.
Cited by 109 works. doi:10.1145/237721.237725 Open-access PDF
Authors
References
- The Art of Computer Programming
- Abstract interpretation
- A precise inter-procedural data flow algorithm
- Analysis of pointers and structures
- Flow analysis and optimization of LISP-like structures
- Two approaches to interprocedural data flow analysis
- A flexible approach to interprocedural data flow analysis and programs with recursive data structures
- Detecting conflicts between structure accesses
- Dependence analysis for pointer variables
- Efficient flow-sensitive interprocedural computation of pointer-induced aliases and side effects