基于Farkas引理的仿射析取不变量生成
Affine Disjunctive Invariant Generation with Farkas' Lemma
AI总结:
本文提出利用Farkas引理与控制流变换自动生成仿射while循环的析取不变量,并通过不变量传播和循环摘要扩展至嵌套循环,实验证明其有效性。
摘要:
在循环程序的验证中,析取不变量对于捕捉阶段和模式变化等复杂循环动态至关重要。本文提出了一种新方法,利用线性不等式的基本定理——Farkas引理,为仿射while循环自动生成仿射析取不变量。主要贡献有两点。第一,将Farkas引理与简洁的控制流变换相结合,从循环中的条件分支推导析取不变量。第二,提出一种不变量传播技术,通过尽可能将已求解的不变量传播到尚未求解的位置,最小化不变量计算开销。此外,解决了此前未被处理的Farkas引理应用中的不可行性检查问题,并通过循环摘要将方法扩展到嵌套循环。在100多个仿射while循环(大部分来自SV-COMP 2023)上的实验评估表明,该方法有望在仿射程序上生成紧致线性不变量。
英文摘要:
In the verification of loop programs, disjunctive invariants are essential to capture complex loop dynamics such as phase and mode changes. In this work, we develop a novel approach for the automated generation of affine disjunctive invariants for affine while loops via Farkas' Lemma, a fundamental theorem on linear inequalities. Our main contributions are two-fold. First, we combine Farkas' Lemma with a succinct control flow transformation to derive disjunctive invariants from the conditional branches in the loop. Second, we propose an invariant propagation technique that minimizes the invariant computation effort by propagating previously solved invariants to yet unsolved locations as much as possible. Furthermore, we resolve the infeasibility checking in the application of Farkas' Lemma which has not been addressed previously, and extend our approach to nested loops via loop summary. Experimental evaluation over more than 100 affine while loops (mostly from SV-COMP 2023) demonstrates that our approach is promising to generate tight linear invariants over affine programs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。