Proving total correctness and generating preconditions for loop programs via symbolic-numeric computation methods
作者:Wang Lin, Min Wu, Zhengfeng Yang, Zhenbing Zeng
摘要
We present a symbolic-numeric hybrid method, based on sum-of-squares (SOS) relaxation and rational vector recovery, to compute inequality invariants and ranking functions for proving total correctness and generating preconditions for programs. The SOS relaxation method is used to compute approximate invariants and approximate ranking 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 examples are given to show the effectiveness of our method.
论文关键词:symbolic computation, sum-of-squares relaxation, semidefinite programming, total correctness, precondition generation
论文评审过程:
论文官网地址:https://doi.org/10.1007/s11704-014-3150-6