Precise interprocedural analysis using random interpretation
Authors:
Open Access
- 12 January 2005
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 40 (1) , 324-337
Abstract
We describe a unified framework for random interpretation that generalizes previous randomized intraprocedural analyses, and also extends naturally to efficient interprocedural analyses. There is no such natural extension known for deterministic algorithms. We present a general technique for extending any intraprocedural random interpreter to perform a context-sensitive interprocedural analysis with only polynomial increase in running time. This technique involves computing random summaries of procedures, which are complete and probabilistically sound.As an instantiation of this general technique, we obtain the first polynomial-time randomized algorithm that discovers all linear relationships interprocedurally in a linear program. We also obtain the first polynomial-time randomized algorithm for precise interprocedural value numbering over a program with unary uninterpreted functions.We present experimental evidence that quantifies the precision and relative speed of the analysis for discovering linear relationships along two dimensions: intraprocedural vs. interprocedural, and deterministic vs. randomized. We also present results that show the variation of the error probability in the randomized analysis with changes in algorithm parameters. These results suggest that the error probability is much lower than the existing conservative theoretical bounds.Keywords
This publication has 12 references indexed in Scilit:
- Precise interprocedural analysis through linear algebra2004
- A Polynomial-Time Algorithm for Global Value Numbering2004
- Discovering affine equalities using random interpretation2003
- On the sequential nature of interprocedural program-analysis problemsActa Informatica, 1996
- Precise interprocedural dataflow analysis with applications to constant propagationTheoretical Computer Science, 1996
- Precise interprocedural dataflow analysis via graph reachability1995
- Undecidability of static analysisACM Letters on Programming Languages and Systems, 1992
- Efficiently computing static single assignment form and the control dependence graphACM Transactions on Programming Languages and Systems, 1991
- Abstract interpretation: a unified lattice model for static analysis of programs by construction or approximation of fixpoints1977
- A unified approach to global program optimization1973