arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1804.05989cs.LO
收藏

一种基于约束Horn子句的迭代前提推理方法

An iterative approach to precondition inference using constrained Horn clauses

Bishoksan Kafle, John P. Gallagher, Graeme Gange, Peter Schachte, Harald Sondergaard, Peter J. Stuckey

摘要:

我们提出了一种方法,用于自动推理的条件上的初始状态的程序,保证在程序中的安全断言不被违反。约束霍恩条款(CHCs)被用来建模的程序和断言在一个统一的方式,我们使用标准的抽象解释,得出一个过度近似的不安全的初始状态。前提条件则是对应于该集合的补集的约束,欠近似安全初始状态的集合。这种互补的想法并不新鲜,但以前试图利用它的尝试已经失去了精确性。在这里,我们开发了一种迭代专门化算法,以提供更精确的,在某些情况下最佳的安全条件。该算法结合了现有的转换,即约束专业化,部分评估和消除痕迹的转换。这些转换中的最后两个执行多变量专门化,从而导致提高精度的析取约束。该算法的实现和测试的基准套件的程序从文献中的前提推理和软件验证比赛。

英文摘要:

We present a method for automatic inference of conditions on the initial states of a program that guarantee that the safety assertions in the program are not violated. Constrained Horn clauses (CHCs) are used to model the program and assertions in a uniform way, and we use standard abstract interpretations to derive an over-approximation of the set of unsafe initial states. The precondition then is the constraint corresponding to the complement of that set, under-approximating the set of safe initial states. This idea of complementation is not new, but previous attempts to exploit it have suffered from the loss of precision. Here we develop an iterative specialisation algorithm to give more precise, and in some cases optimal safety conditions. The algorithm combines existing transformations, namely constraint specialisation, partial evaluation and a trace elimination transformation. The last two of these transformations perform polyvariant specialisation, leading to disjunctive constraints which improve precision. The algorithm is implemented and tested on a benchmark suite of programs from the literature in precondition inference and software verification competitions.

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

↑