arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.14748cs.PLcs.SE
收藏

Diffy:基于差分不变量的数组程序归纳推理

Diffy: Inductive Reasoning of Array Programs using Difference Invariants

Supratik Chakraborty, Ashutosh Gupta, Divyesh Unadkat

摘要:

我们提出了一种新的验证技术来证明有趣的性质的一类数组程序的符号参数N表示数组的大小。该技术依赖于构造同一程序的两个稍微不同的版本。推导了两个程序版本的联合控制流图关键控制点上相应变量之间的差异关系。然后通过引入程序参数$N$来证明所需的后置条件,其中差分不变量在归纳步骤中至关重要。这与依赖于为程序中的每个循环找到潜在的复杂循环不变量的经典技术形成对比。我们的归纳推理和寻找简单差异不变量的协同组合有助于证明程序的属性,即使是SV-COMP 2021的数组子类别的获胜者也无法证明这些属性。我们已经实现了一个名为diffy的原型工具来演示这些想法。我们目前的结果比较diffy的性能与国家的最先进的工具。

英文摘要:

We present a novel verification technique to prove interesting properties of a class of array programs with a symbolic parameter N denoting the size of arrays. The technique relies on constructing two slightly different versions of the same program. It infers difference relations between the corresponding variables at key control points of the joint control-flow graph of the two program versions. The desired post-condition is then proved by inducting on the program parameter $N$, wherein the difference invariants are crucially used in the inductive step. This contrasts with classical techniques that rely on finding potentially complex loop invaraints for each loop in the program. Our synergistic combination of inductive reasoning and finding simple difference invariants helps prove properties of programs that cannot be proved even by the winner of Arrays sub-category from SV-COMP 2021. We have implemented a prototype tool called diffy to demonstrate these ideas. We present results comparing the performance of diffy with that of state-of-the-art tools.

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

↑