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

组合程序分析的代数框架

An Algebraic Framework for Compositional Program Analysis

Azadeh Farzan, Zachary Kincaid

摘要:

程序分析的目的是为一个程序计算一个近似其动态行为的抽象意义。组合式程序分析用分而治之的策略来完成这个任务:通过将程序划分为子程序,计算它们的含义,然后组合结果来计算程序的含义。组合程序分析是理想的,因为它们可以产生可伸缩的(并且容易并行化的)程序分析。本文提出了一种用于设计、实现和证明组合程序分析正确性的代数框架。一种程序分析在我们的框架定义的代数结构配备了排序,选择和迭代操作。从分析设计的角度来看,一个特别有趣的结果是,通过将迭代运算符应用于循环体来计算循环的含义。这种类型的组合循环分析可以产生一些有趣的方法来计算不能迭代定义的循环不变量。我们确定了一类算法,即所谓的路径表达式算法[Tarjan 1981,Scholz 2007],它可以用于在我们的框架中有效地实现分析。最后,我们开发了一个理论,证明分析的正确性,通过建立一个近似关系之间的代数定义一个具体的语义和代数定义的分析。

英文摘要:

The purpose of a program analysis is to compute an abstract meaning for a program which approximates its dynamic behaviour. A compositional program analysis accomplishes this task with a divide-and-conquer strategy: the meaning of a program is computed by dividing it into sub-programs, computing their meaning, and then combining the results. Compositional program analyses are desirable because they can yield scalable (and easily parallelizable) program analyses. This paper presents algebraic framework for designing, implementing, and proving the correctness of compositional program analyses. A program analysis in our framework defined by an algebraic structure equipped with sequencing, choice, and iteration operations. From the analysis design perspective, a particularly interesting consequence of this is that the meaning of a loop is computed by applying the iteration operator to the loop body. This style of compositional loop analysis can yield interesting ways of computing loop invariants that cannot be defined iteratively. We identify a class of algorithms, the so-called path-expression algorithms [Tarjan1981,Scholz2007], which can be used to efficiently implement analyses in our framework. Lastly, we develop a theory for proving the correctness of an analysis by establishing an approximation relationship between an algebra defining a concrete semantics and an algebra defining an analysis.

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

↑