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

基于AIG求解器的一阶逻辑规范的模型检验

Model Checking Software Programs with First Order Logic Specifications using AIG Solvers

Fadi A. Zaraket, Mohamad Noureddine

摘要:

静态验证技术利用布尔公式可满足性求解器(诸如分别对合取范式和一阶逻辑公式进行操作的SAT和SMT求解器)来验证程序。它们强制限制变量范围和执行时间,并将程序及其规范转换为布尔公式。由于以下原因,它们仅限于相对较低复杂性的程序。(1)边界的小幅增加可能会导致转换公式的大小大幅增加。(2)布尔可满足性求解器仅限于使用在公式级别应用的优化。最后,(3)布尔公式通常需要重新生成更高的界限,以确保翻译的正确性。我们提出了一种方法,使用时序电路,布尔公式与记忆元素和层次结构,和时序电路综合和验证框架来验证程序。(1)时序电路比没有存储器元素的布尔公式简洁得多,并且保留了程序的高级结构。(2)将问题编码为时序电路,可以使用许多强大的自动分析技术,这些技术对于其他布尔公式没有对应物。我们的方法需要一个命令式的程序与一阶逻辑规范组成的一个前提条件和一个后置条件对,和一个绑定的程序变量范围,并产生一个时序电路与指定的输出是真的,当程序违反了规范。

英文摘要:

Static verification techniques leverage Boolean formula satisfiability solvers such as SAT and SMT solvers that operate on conjunctive normal form and first order logic formulae, respectively, to validate programs. They force bounds on variable ranges and execution time and translate the program and its specifications into a Boolean formula. They are limited to programs of relatively low complexity for the following reasons. (1) A small increase in the bounds can cause a large increase in the size of the translated formula. (2) Boolean satisfiability solvers are restricted to using optimizations that apply at the level of the formula. Finally, (3) the Boolean formulae often need to be regenerated with higher bounds to ensure the correctness of the translation. We present a method that uses sequential circuits, Boolean formulae with memory elements and hierarchical structure, and sequential circuit synthesis and verification frameworks to validate programs. (1) Sequential circuits are much more succinct than Boolean formulae with no memory elements and preserve the high-level structure of the program. (2) Encoding the problem as a sequential circuit enables the use of a number of powerful automated analysis techniques that have no counterparts for other Boolean formulae. Our method takes an imperative program with a first order logic specification consisting of a precondition and a postcondition pair, and a bound on the program variable ranges, and produces a sequential circuit with a designated output that is true when the program violates the specification.

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

↑