arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2206.11495cs.LO
收藏

基于代数推理的回路综合

Algebra-Based Reasoning for Loop Synthesis

Andreas Humenberger, Daneshvar Amrollahi, Nikolaj Bjørner, Laura Kovács

摘要:

可证明正确的软件是我们软件驱动社会的关键挑战之一。程序合成--构造满足给定规范的程序的任务--是实现这一目标的一种策略。这个任务的结果是一个设计正确的程序。在程序验证领域,处理循环是一个成功的综合过程的主要成分之一。我们提出了一个算法,合成循环满足给定的多项式循环不变。我们所考虑的一类循环可以用一个常系数的代数递归方程系统来建模,从而用程序变量之间的仿射运算对程序循环进行编码。我们把循环合成的任务转化为一个多项式约束问题,通过精确地描述满足给定不变量的所有循环的集合。我们证明了我们的方法的合理性,以及其完整性相对于一个先验的固定上限的程序变量的数量。我们的工作对合成循环满足一个给定的多项式循环不变,程序验证,以及从代数关系生成数列的应用。为了了解合成循环的方法和技巧的可行性,我们使用Absynth工具实现和评估该方法。

英文摘要:

Provably correct software is one of the key challenges of our software-driven society. Program synthesis -- the task of constructing a program satisfying a given specification -- is one strategy for achieving this. The result of this task is then a program which is correct by design. As in the domain of program verification, handling loops is one of the main ingredients to a successful synthesis procedure. We present an algorithm for synthesizing loops satisfying a given polynomial loop invariant. The class of loops we are considering can be modeled by a system of algebraic recurrence equations with constant coefficients, encoding thus program loops with affine operations among program variables. We turn the task of loop synthesis into a polynomial constraint problem, by precisely characterizing the set of all loops satisfying the given invariant. We prove soundness of our approach, as well as its completeness with respect to an a priori fixed upper bound on the number of program variables. Our work has applications towards synthesizing loops satisfying a given polynomial loop invariant, program verification, as well as generating number sequences from algebraic relations. To understand viability of the methodology and heuristics for synthesizing loops, we implement and evaluate the method using the Absynth tool.

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

↑