A precise inter-procedural data flow algorithm

Eugene M. Myers

1981 · 210 citations · 12 references

DOIFull text

Open access

Concepts

TL;DR

Data flow analysis is well understood intra‑procedurally, but inter‑procedural features such as recursion, nesting, and aliasing make the problems substantially harder. The avail, live, and must‑summary data flow problems become NP‑complete with aliasing, yet the authors present an O(SET·EDGE) algorithm that is practical because SET is typically small, on the order of the program’s variable count.

Abstract

Data flow analysis is well understood at the intra-procedural level and efficient algorithms are available. When inter-procedural mechanisms such as recursion, procedure nesting, and pass-by-reference aliasing are introduced, the data flow problems become much more difficult. The avail, live, and must-summary data flow problems are shown to be NP-complete in the presence of aliasing. However, an algorithm is presented with O(SET*EDGE) time performance where EDGE is the size of the program's flow graph and SET is a possible exponential number which reflects the number of aliasing patterns of the program. It is argued that in practice SET is small and on the order of the number of variables of the program.

References

12