Title :
A generic worklist algorithm for graph reachability problems in program analysis
Author :
Rayside, Derek ; Kontogiannis, Kostas
Author_Institution :
Dept. of Electr. & Comput. Eng., Waterloo Univ., Ont., Canada
Abstract :
Many program analyses involve, or can be expressed in terms of, a graph reachability problem. We present a generic worklist-style algorithm capable of expressing and solving the graph reachability components of many such analyses. We compare our framework with the language reachability framework proposed by Thomas Reps. (1998), and show that some problems are expressible in both frameworks, and some problems can be expressed in only one of the frameworks. Our two main case studies are Choi et al.´s escape analysis and Bacon-Sweeney´s rapid type analysis. The reachability problems in these analyses can be directly expressed in the framework of our algorithm, but not in the language reachability framework. We discuss why this is the case, but important future work remains to formally characterize the kinds of problems that are amenable to our approach. The paper also summarizes our experimental work with an implementation of RTA based on our generic algorithm
Keywords :
context-free grammars; programming theory; reachability analysis; context free grammars; escape analysis; generic worklist algorithm; graph reachability; language reachability; program analysis; rapid type analysis; Algorithm design and analysis; Data analysis; Formal languages; Software algorithms; Software maintenance;
Conference_Titel :
Software Maintenance and Reengineering, 2002. Proceedings. Sixth European Conference on
Conference_Location :
Budapest
Print_ISBN :
0-7695-1438-3
DOI :
10.1109/CSMR.2002.995791