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

使用程序合成进行程序分析

Using Program Synthesis for Program Analysis

Cristina David, Daniel Kroening, Matt Lewis

摘要:

在本文中,我们确定了一个片段的二阶逻辑与限制量化,是表现力足以捕捉众多的静态分析问题(如安全证明,错误发现,终止和非终止证明,超优化)。我们将该片段称为{ \it合成片段}。合成片段中公式的可满足性在有限域上是可判定的;具体地说,判定问题是NEXPTIME完全的。如果这个片段中的公式是可满足的,则解由从二阶变量到\emph{functions over finite domains}的满足赋值组成。为了具体地找到这些解决方案,我们合成了计算函数的\emph{programs}。我们的程序合成算法对于有限状态程序是完全的,即有限域上的每个\emph{function}都是由我们可以合成的\emph{program}计算的。因此,我们可以使用我们的合成器作为二阶逻辑合成片段的决策过程,这反过来又允许我们使用它作为许多程序分析任务的强大后端。为了显示我们的方法的易处理性,我们评估了几个静态分析问题的程序合成器。

英文摘要:

In this paper, we identify a fragment of second-order logic with restricted quantification that is expressive enough to capture numerous static analysis problems (e.g. safety proving, bug finding, termination and non-termination proving, superoptimisation). We call this fragment the {\it synthesis fragment}. Satisfiability of a formula in the synthesis fragment is decidable over finite domains; specifically the decision problem is NEXPTIME-complete. If a formula in this fragment is satisfiable, a solution consists of a satisfying assignment from the second order variables to \emph{functions over finite domains}. To concretely find these solutions, we synthesise \emph{programs} that compute the functions. Our program synthesis algorithm is complete for finite state programs, i.e. every \emph{function} over finite domains is computed by some \emph{program} that we can synthesise. We can therefore use our synthesiser as a decision procedure for the synthesis fragment of second-order logic, which in turn allows us to use it as a powerful backend for many program analysis tasks. To show the tractability of our approach, we evaluate the program synthesiser on several static analysis problems.

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

↑