节点文献
非线性循环不变式的自动生成
Automatic generation of non-linear loop invariants
【摘要】 提出了一个自动生成非线性循环不变式的算法。循环不变式可以表示成一个带参数的多项式的形式,根据断言的归纳特性,将循环不变式的生成问题转变成一个约束求解问题,这个约束求解问题的每个解对应于一个循环不变式,如果约束求解问题仅有零解,则说明不存在该参数多项式形式的循环不变式。该算法在Maple中得到了实现,并通过一些实例说明了该算法的有效性。
【Abstract】 This paper proposed an approach to automatically generate non-linear loop invariants.An invariant of a loop was hypothesized as a parameterized polynomial.Based on the inductive assertion’s properties,we reduced the non-linear loop invariant problem to a numerical constraint solving problem.All the solutions to these constraints were the non-linear loop invariants of the program.The approach has been implemented in Maple.The implementation has been used to automatically discover nontrivial invariants for many programs.
【关键词】 程序验证;
循环不变式;
变迁系统;
约束求解问题;
【Key words】 program verification; loop invariant; transition system; constraint solving problem;
【Key words】 program verification; loop invariant; transition system; constraint solving problem;
【基金】 国家自然科学基金资助项目(90718041);国家973计划项目(2004CB318003);国家863计划项目(2007AA010302);华东师范大学2008年优秀博士生培养基金资助项目(20080029)
- 【文献出处】 计算机应用 ,Journal of Computer Applications , 编辑部邮箱 ,2008年07期
- 【分类号】TP311.11
- 【被引频次】6
- 【下载频次】157