Context-, flow-, and field-sensitive data-flow analysis using synchronized Pushdown systems.

PACMPL(2019)

引用 60|浏览60
暂无评分
摘要
Precise static analyses are context-, field- and flow-sensitive. Context- and field-sensitivity are both expressible as context-free language (CFL) reachability problems. Solving both CFL problems along the same data-flow path is undecidable, which is why most flow-sensitive data-flow analyses over-approximate field-sensitivity through k-limited access-path, or through access graphs. Unfortunately, as our experience and this paper show, both representations do not scale very well when used to analyze programs with recursive data structures. Any single CFL-reachability problem is efficiently solvable, by means of a pushdown system. This work thus introduces the concept of synchronized pushdown systems (SPDS). encode both procedure calls/returns and field stores/loads as separate but “synchronized” CFL reachability problems. An solves both individual problems precisely, and approximation occurs only in corner cases that are apparently rare in practice: at statements where both problems are satisfied but not along the same data-flow path. SPDS are also efficient: formal complexity analysis shows that shift the complexity from |F|3k under k-limiting to |S||F|2, where F is the set of fields and S the set of statements involved in a data-flow. Our evaluation using DaCapo shows this shift to pay off in practice: are almost as efficient as k-limiting with k=1 although their precision equals k=∞. For a typestate analysis accelerate the analysis up to 83× for data-flows of objects that involve many field accesses but span rather few methods. We conclude that can provide high precision and further improve scalability, in particularly when used in analyses that expose rather local data flows.
更多
查看译文
关键词
access paths,aliasing,data-flow,pushdown system,static analysis
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要