CFA2: a Context-Free Approach to Control-Flow Analysis
Authors:
- Dimitrios VardoulakisDVDimitrios Vardoulakis
- Olin ShiversOSOlin Shivers
Open Access
- 1 May 2011
- journal article
- Published by Centre pour la Communication Scientifique Directe (CCSD) in Logical Methods in Computer Science
- Vol. ume 7, Iss
Abstract
In a functional language, the dominant control-flow mechanism is function call and return. Most higher-order flow analyses, including k-CFA, do not handle call and return well: they remember only a bounded number of pending calls because they approximate programs with control-flow graphs. Call/return mismatch introduces precision-degrading spurious control-flow paths and increases the analysis time. We describe CFA2, the first flow analysis with precise call/return matching in the presence of higher-order functions and tail calls. We formulate CFA2 as an abstract interpretation of programs in continuation-passing style and describe a sound and complete summarization algorithm for our abstract semantics. A preliminary evaluation shows that CFA2 gives more accurate data-flow information than 0CFA and 1CFA.Keywords
All Related Versions
This publication has 24 references indexed in Scilit:
- SnugglebugACM SIGPLAN Notices, 2009
- Type-based flow analysis and context-free language reachabilityMathematical Structures in Computer Science, 2008
- Subcubic algorithms for recursive state machinesACM SIGPLAN Notices, 2008
- Analysis of recursive state machinesACM Transactions on Programming Languages and Systems, 2005
- The Cartesian Product Algorithm2000
- Interprocedural control flow analysis of first-order programs with tail-call optimizationACM Transactions on Programming Languages and Systems, 1997
- Reachability analysis of pushdown automata: Application to model-checking1997
- A Direct Symbolic Approach to Model Checking Pushdown Systems (extended abstract)Electronic Notes in Theoretical Computer Science, 1997
- Lambda, the ultimate label or a simple optimizing compiler for SchemeACM SIGPLAN Lisp Pointers, 1994
- The essence of compiling with continuationsACM SIGPLAN Notices, 1993