arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1105.1743cs.PL
收藏

抽象抽象机:高阶程序分析的系统方法

Abstracting Abstract Machines: A Systematic Approach to Higher-Order Program Analysis

David Van Horn, Matthew Might

摘要:

预测模型是设计可靠软件系统的基础。然而,对于现代高级程序设计语言来说,为程序的行为(静态分析)设计保守的、可计算的近似值仍然是一个困难且容易出错的过程。分析设计师需要的是一种原则性的方法,用于在语义和分析模型之间导航:分析设计师需要一种方法,可以驯服复杂语言功能的交互,例如高阶函数,递归,异常,延续,对象和动态分配。我们贡献了一个系统的方法程序分析,产生新颖的和透明的声音静态分析。我们的方法依赖于现有的派生技术,将高级语言语义转换为低级别的确定性状态转换系统(具有潜在的无限状态空间)。然后,我们进行了一系列简单的机器重构,以获得一个声音,可计算的近似,它采取的形式与有限的状态空间的非确定性状态转换系统。该方法统一地扩展到支持对实际语言特性的程序分析,包括高阶函数、尾调用、条件、副作用、异常、第一类延续,甚至垃圾回收。

英文摘要:

Predictive models are fundamental to engineering reliable software systems. However, designing conservative, computable approximations for the behavior of programs (static analyses) remains a difficult and error-prone process for modern high-level programming languages. What analysis designers need is a principled method for navigating the gap between semantics and analytic models: analysis designers need a method that tames the interaction of complex languages features such as higher-order functions, recursion, exceptions, continuations, objects and dynamic allocation. We contribute a systematic approach to program analysis that yields novel and transparently sound static analyses. Our approach relies on existing derivational techniques to transform high-level language semantics into low-level deterministic state-transition systems (with potentially infinite state spaces). We then perform a series of simple machine refactorings to obtain a sound, computable approximation, which takes the form of a non-deterministic state-transition systems with finite state spaces. The approach scales up uniformly to enable program analysis of realistic language features, including higher-order functions, tail calls, conditionals, side effects, exceptions, first-class continuations, and even garbage collection.

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

↑