Proving total correctness and generating preconditions for loop programs via symbolic-numeric computation methods
Proving total correctness and generating preconditions for loop programs via symbolic-numeric computation methods
摘要
我们在场一个符号数字的混合方法,基于 sum-of-squares (求救) 松驰和合理向量恢复,为证明正确性全部并且为程序产生前提计算不平等 invariants 和评价函数。求救松驰方法被用来计算近似 invariants 并且接近与浮点系数评价功能。然后,高斯牛顿精炼和合理向量恢复被用于近似多项式与合理系数获得候选人多项式,它确切满足 invariants 的条件,评价工作。最后,几个例子被给显示出我们的方法的有效性。
We present a symbolic-numeric hybrid method, based on sum-of-squares (SOS) relaxation and rational vec- tor recovery, to compute inequality invariants and ranking functions for proving total correctness and generating pre- conditions for programs. The SOS relaxation method is used to compute approximate invariants and approximate rank- ing functions with floating point coefficients. Then Gauss- Newton refinement and rational vector recovery are applied to approximate polynomials to obtain candidate polynomials with rational coefficients, which exactly satisfy the conditions of invariants and ranking functions. In the end, several exam- ples are given to show the effectiveness of our method.
关键词
数值计算方法
循环程序
证明
不变量
混合方法
排序功能
SOS
松弛法
symbolic computation, sum-of-squares relax-ation, semidefinite programming, total correctness, precon-dition generation.
二级参考文献21
-
1Turing A, On computable numbers, with an application to the entscheidungsproblem, Proc. of the London Mathematical Society, 1937, $2-42(1): 230-265.
-
2Tiwari A, Termination of linear programs, Computer Aided Verification (ed. by Alur R and Peled D), Springer-Verlag, Lecture Notes in Computer Science, 2004, 3114: 70-82.
-
3Braverman M, Termination of integer linear programs, Computer Aided Verification (ed. by Ball T and Jones R B), Springer-Verlag, Lecture Notes in Computer Science, 2006 4144: 372-385.
-
4Bradley A R, Manna Z, and Sipma H B, Termination of polynomial programs, Verification, Model Checking, and Abstract Interpretation (ed. by Cousot R), Springer, Lecture Notes in Computer Science, 2005, 3385:113 129.
-
5Babic D, Hu A J, Rakamaric Z, and Cook engineering and formal methods, IEEE, 2007, B, Proving termination by divergence: Software 93-102.
-
6ColSn M and Sipma H B, Synthesis of linear ranking functions, Tools and Algorithms for the Construction and Analysis of Systems (ed. by Margaria T and Yi W), Springer-Verlag, Lecture Notes in Computer Science, 2001, 2031: 67-81.
-
7Col6n M and Sipma H B, Practical methods for proving program termination, Computer Aided Verification (ed. by Brinksma E and Larsen K G), Springer-Verlag, Lecture Notes in Computer Science, 2002, 2404: 442-454.
-
8Podelski A and Rybalchenko A, A complete method for the synthesis of linear ranking functions, Verification, Model Checking, and Abstract Interpretation (ed. by Steffen B and Levi G), Springer, Lecture Notes in Computer Science, 2004, 2937:239- 251.
-
9Bradley A R, Manna Z, and Sipma H B, Termination analysis of integer linear loops, Concurrency Theory, 16th International Conference, Springer-Verlag, Lecture Notes in Computer Science, 2005, 3653: 488-502.
-
10Chen Y, Xia B, Yang L, Zhan N, and Zhou C, Discovering non-linear ranking functions by solving semi-algebraic systems, Theoretical Aspects of Computing, Springer-Verlag, Lecture Notes in Computer Science, 2007, 4711: 34-49.
共引文献7
-
1袁月,李轶.基于Dixon结式和逐次差分代换的多项式秩函数探测方法[J].计算机应用,2019,39(7):2065-2073.
-
2李轶,蔡天训,樊建峰,吴文渊,冯勇.基于SVM的多项式循环程序秩函数生成[J].软件学报,2019,30(7):1903-1915. 被引量:1
-
3谭旺,李轶.循环程序的界函数合成[J].计算机应用,2022,42(2):565-573.
-
4LIN Wang,YANG Zhengfeng,DING Zuohua.Reachable Set Estimation and Safety Verification of Nonlinear Systems via Iterative Sums of Squares Programming[J].Journal of Systems Science & Complexity,2022,35(3):1154-1172.
-
5林开鹏,梅国泉,林望,丁佐华.基于深度学习和反例制导的循环程序秩函数生成[J].软件学报,2022,33(8):2918-2929.
-
6王垚,李轶.基于迭代轨迹划分的单分支循环程序终止性分析[J].计算机科学,2023,50(9):108-116.
-
7李轶,唐桐.单分支线性约束循环程序的终止性分析[J].软件学报,2024,35(3):1307-1320.
-
1王杰生,李舟军,李梦君.用描述逻辑进行语义Web服务组合[J].软件学报,2008,19(4):967-980. 被引量:34
-
2李庆华,朱春霖,李肯立,潘军.线性规划的一种并行修正松弛算法[J].小型微型计算机系统,2004,25(10):1772-1775.
-
3张建军,徐周斌,张静波.线性规划的一种并行修正松弛算法[J].海军工程大学学报,2004,16(5):37-42.
-
4匡锦瑜,Haluk Derin.一种用于图象分割和恢复的MAP松弛算法[J].北京师范大学学报(自然科学版),1986,22(2):19-26.
-
5快速DC/DC控制器[J].电子元器件应用,2005,7(2).
-
6凌特快速DC/DC控制器具有裕度、跟踪和PLL功能[J].国际电子变压器,2005(2):77-78.
-
7彭延军,胡建国,周艳明.限界分枝松驰算法[J].山东科技大学学报(自然科学版),2000,19(3):91-93.
-
8吕聪颖,胡平,刘炯.求解多约束0-1背包问题的遗传算法的改进[J].计算机与现代化,2012(9):140-142. 被引量:1
-
9李海超,张广军.基于旋转不变的角点匹配方法[J].红外与激光工程,2008,37(3):561-564. 被引量:7
-
10AwadheshKumarSingh,AnupKumarBandyopadhyay.Verifying Mutual Exclusion and Liveness Properties with Split Preconditions[J].Journal of Computer Science & Technology,2004,19(6):795-802.