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

Full-Program Induction:无循环不变式的可编程数组程序

Full-Program Induction: Verifying Array Programs sans Loop Invariants

Supratik Chakraborty, Ashutosh Gupta, Divyesh Unadkat

摘要:

数组通常用于各种软件中,以循环方式存储和处理数据。自动证明这些程序的安全属性,操纵数组是具有挑战性的。我们提出了一种新的验证技术,称为全程序归纳,证明(一个子类)量化以及量化器的参数大小$N$的数组操纵程序的自由属性。我们的技术不是在单个循环上进行归纳,而是直接通过程序参数$N$在整个程序(可能包含多个循环)上进行归纳。该技术在归纳步骤中执行给定程序和先决条件的非平凡变换。通过将具有多个循环的程序转换为具有更少和更简单的循环或无循环的程序,转换有助于有效地减少断言检查问题。值得注意的是,完整程序归纳不需要生成或使用特定于循环的不变量。为了评估我们的技术的有效性,我们开发了一个名为Vajra的原型工具。我们展示了金刚相对于几个国家的最先进的工具,从国际软件验证比赛(SV-COMP)的数组操作基准和几个程序的启发,执行多项式计算的代数函数的性能。

英文摘要:

Arrays are commonly used in a variety of software to store and process data in loops. Automatically proving safety properties of such programs that manipulate arrays is challenging. We present a novel verification technique, called full-program induction, for proving (a sub-class of) quantified as well as quantifier-free properties of programs manipulating arrays of parametric size $N$. Instead of inducting over individual loops, our technique inducts over the entire program (possibly containing multiple loops) directly via the program parameter $N$. The technique performs non-trivial transformations of the given program and pre-conditions during the inductive step. The transformations assist in effectively reducing the assertion checking problem by transforming a program with multiple loops to a program which has fewer and simpler loops or is loop-free. Significantly, full-program induction does not require generation or use of loop-specific invariants. To assess the efficacy of our technique, we have developed a prototype tool called Vajra. We demonstrate the performance of Vajra vis-a-vis several state-of-the-art tools on a large set of array manipulating benchmarks from the international software verification competition (SV-COMP) and on several programs inspired by algebraic functions that perform polynomial computations.

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

↑