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

高阶程序的内省下推分析

Introspective Pushdown Analysis of Higher-Order Programs

Christopher Earl, Ilya Sergey, Matthew Might, David Van Horn

摘要:

在函数式程序的静态分析中,下推流分析和抽象垃圾回收恰好在可靠性和可判定性的边界内。单独使用,每种方法都可以减少分析时间,并将精度提高几个数量级。这项工作阐明并克服了理论上的挑战,这些挑战阻碍了将这些技术的力量结合起来。结合这些技术的挑战并不微妙:计算下推系统的可达控制状态依赖于在转换到堆栈顶部期间限制访问;另一方面,抽象垃圾回收需要完全访问整个堆栈来计算根集,就像具体收集一样。\emph{Introspective}下推系统可解决此冲突。内省下推系统提供了对堆栈的足够访问,以允许抽象垃圾回收,但它们仍然受到足够的限制,以计算控制状态的可达性,从而实现下推分析和抽象垃圾回收的可靠和精确的产品。实验揭示了这些技术之间的协同作用,融合展示了“优于两个世界”的精度。

英文摘要:

In the static analysis of functional programs, pushdown flow analysis and abstract garbage collection skirt just inside the boundaries of soundness and decidability. Alone, each method reduces analysis times and boosts precision by orders of magnitude. This work illuminates and conquers the theoretical challenges that stand in the way of combining the power of these techniques. The challenge in marrying these techniques is not subtle: computing the reachable control states of a pushdown system relies on limiting access during transition to the top of the stack; abstract garbage collection, on the other hand, needs full access to the entire stack to compute a root set, just as concrete collection does. \emph{Introspective} pushdown systems resolve this conflict. Introspective pushdown systems provide enough access to the stack to allow abstract garbage collection, but they remain restricted enough to compute control-state reachability, thereby enabling the sound and precise product of pushdown analysis and abstract garbage collection. Experiments reveal synergistic interplay between the techniques, and the fusion demonstrates "better-than-both-worlds" precision.

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

↑