Scalable propagation-based call graph construction algorithms
Frank Tip, Jens Palsberg · ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA) · 2000
Propagation-based call graph construction algorithms have been studied intensively in the 199Os, and differ primarily in the number of sets that are used to approximate run-time values of expressions. In practice, algorithms such as RTA that use a single set for the whole program scale well. The scalability of algorithms such as 0-CFA that use one set per expression remains doubtful.In this paper, we investigate the design space between RTA and 0-CFA. We have implemented various novel algorithms in the context of Jax, an application extractor for Java, and shown that they all scale to a 325,000-line program. A key property of these algorithms is that they do not analyze values on the run-time stack, which makes them efficient and easy to implement. Surprisingly, for detecting unreachable methods, the inexpensive RTA algorithm does almost as well as the seemingly more powerful algorithms. However, for determining call sites with a single target, one of our new algorithms obtains the current best tradeoff between speed and precision.
Cited by 265 works. doi:10.1145/353171.353190
Authors
References
- Smalltalk-80: The Language and its Implementation
- Points-to analysis in almost linear time
- Two approaches to interprocedural data flow analysis
- A flexible approach to interprocedural data flow analysis and programs with recursive data structures
- Context-sensitive interprocedural points-to analysis in the presence of function pointers
- Optimization of Object-Oriented Programs Using Static Class Hierarchy Analysis
- Fast static analysis of C++ virtual function calls
- Fast and accurate flow-insensitive points-to analysis
- Object-oriented type inference
- Optimizing Java Bytecode Using the Soot Framework: Is It Feasible?