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

求解不可解循环的不变生成

Solving Invariant Generation for Unsolvable Loops

Daneshvar Amrollahi, Ezio Bartocci, George Kenison, Laura Kovács, Marcel Moosbrugger, Miroslav Stankovič

摘要:

自动生成不变量是计算机辅助分析概率和确定性程序以及编译器优化的关键,是一个具有挑战性的开放问题。虽然这个问题一般是不可判定的,但目标是解决限制类的循环。对于由Kapur和Rodríguez-Carbonell在2004年引入的可解循环类,人们可以从模拟循环行为的递归方程的封闭形式解自动计算不变量。在本文中,我们建立了一个技术不变的合成循环是不可解的,称为不可解循环。我们的方法自动分区的程序变量,并确定所谓的缺陷变量,解决方案。我们进一步提出了一种新的技术,自动合成多项式,在有缺陷的变量,承认封闭形式的解决方案,从而导致多项式循环不变。我们的实现和实验证明了我们的方法的可行性和适用性,确定性和概率的程序。

英文摘要:

Automatically generating invariants, key to computer-aided analysis of probabilistic and deterministic programs and compiler optimisation, is a challenging open problem. Whilst the problem is in general undecidable, the goal is settled for restricted classes of loops. For the class of solvable loops, introduced by Kapur and Rodríguez-Carbonell in 2004, one can automatically compute invariants from closed-form solutions of recurrence equations that model the loop behaviour. In this paper we establish a technique for invariant synthesis for loops that are not solvable, termed unsolvable loops. Our approach automatically partitions the program variables and identifies the so-called defective variables that characterise unsolvability. We further present a novel technique that automatically synthesises polynomials, in the defective variables, that admit closed-form solutions and thus lead to polynomial loop invariants. Our implementation and experiments demonstrate both the feasibility and applicability of our approach to both deterministic and probabilistic programs.

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

↑