arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1009.1560cs.PL
收藏

高阶程序的堆栈汇总控制流分析

Stack-Summarizing Control-Flow Analysis of Higher-Order Programs

Christopher Earl, Matthew Might, David Van Horn

摘要:

高阶流分析中有两个汇会消耗精度:(1)在过程调用时合并参数值,以及(2)在过程返回时合并返回值。为了防止精度损失,这两个汇已被独立处理。在过程调用的情况下,抽象垃圾回收减少了参数合并;而在过程返回的情况下,上下文无关方法消除了返回值合并。很自然地,人们期望综合分析可以享受这两种方法之间的互利互动。这项工作的核心贡献是抽象的垃圾回收与上下文无关的分析的直接产品。要克服的主要挑战是下推系统的核心约束和垃圾回收的需求之间的冲突:下推系统只能看到堆栈的顶部,而垃圾回收需要在收集期间看到整个堆栈。为了使直接产品可计算,我们开发了“堆栈摘要”,在每个控制状态下推分析高阶程序跟踪堆栈属性的方法。

英文摘要:

Two sinks drain precision from higher-order flow analyses: (1) merging of argument values upon procedure call and (2) merging of return values upon procedure return. To combat the loss of precision, these two sinks have been addressed independently. In the case of procedure calls, abstract garbage collection reduces argument merging; while in the case of procedure returns, context-free approaches eliminate return value merging. It is natural to expect a combined analysis could enjoy the mutually beneficial interaction between the two approaches. The central contribution of this work is a direct product of abstract garbage collection with context-free analysis. The central challenge to overcome is the conflict between the core constraint of a pushdown system and the needs of garbage collection: a pushdown system can only see the top of the stack, yet garbage collection needs to see the entire stack during a collection. To make the direct product computable, we develop "stack summaries," a method for tracking stack properties at each control state in a pushdown analysis of higher-order programs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑