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

基于SMT的递归程序模型检验

SMT-based Model Checking for Recursive Programs

Anvesh Komuravelli, Arie Gurfinkel, Sagar Chaki

摘要:

提出了一种基于SMT的递归程序安全性验证的符号模型检验算法。该算法是模块化的,并单独分析程序。与其他基于SMT的方法不同,它既保持了程序摘要的“过度近似”,也保持了程序摘要的“欠近似”。欠近似用于分析过程调用,而无需内联。过近似用于阻止不可行的反例和检测收敛到一个证明。我们表明,程序和属性的可判定理论,该算法是保证找到一个反例,如果存在的。然而,效率依赖于用于量词消去(QE)的预言。对于布尔程序,该算法是一个多项式决策过程,匹配最佳BDD算法的最坏情况的界限。对于线性算术(整数和有理数),我们通过“懒惰地”应用QE给出了算法的有效实例。我们使用现有的插值技术来过度近似QE,并引入“基于模型的投影”来欠近似QE。在SV-COMP基准测试上的实验结果表明,该算法在最新水平上有了显著的改进。

英文摘要:

We present an SMT-based symbolic model checking algorithm for safety verification of recursive programs. The algorithm is modular and analyzes procedures individually. Unlike other SMT-based approaches, it maintains both "over-" and "under-approximations" of procedure summaries. Under-approximations are used to analyze procedure calls without inlining. Over-approximations are used to block infeasible counterexamples and detect convergence to a proof. We show that for programs and properties over a decidable theory, the algorithm is guaranteed to find a counterexample, if one exists. However, efficiency depends on an oracle for quantifier elimination (QE). For Boolean Programs, the algorithm is a polynomial decision procedure, matching the worst-case bounds of the best BDD-based algorithms. For Linear Arithmetic (integers and rationals), we give an efficient instantiation of the algorithm by applying QE "lazily". We use existing interpolation techniques to over-approximate QE and introduce "Model Based Projection" to under-approximate QE. Empirical evaluation on SV-COMP benchmarks shows that our algorithm improves significantly on the state-of-the-art.

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

↑