Linear-time subtransitive control flow analysis
Linear-time subtransitive control flow analysis
复制标题
线性时间次传递控制流分析
DOI:
10.1145/258915.258939
复制
发表时间:
1997
期刊:
影响因子:
--
通讯作者:
David A. McAllester
中科院分区:
文献类型:
--
作者:
N. Heintze;David A. McAllester
We present a linear-time algorithm for bounded-type programs that builds a directed graph whose transitive closure gives exactly the results of the standard (cubic-time) Control-Flow Analysis (CFA) algorithm. Our algorithm can be used to list all functions calls from all call sites in (optimal) quadratic time. More importantly, it can be used to give linear-time algorithms for CFA-consuming applications such as:• effects analysis: find the side-effecting expressions in a program.• k-limited CFA: for each call-site, list the functions if there are only a few of them (≤ k) and otherwise output "many".• called-once analysis: identify all functions called from only one call-site.