Proving total correctness and generating preconditions for loop programs via symbolic-numeric computation methods
被引:3
|
作者:
论文数: 引用数:
h-index:
机构:
Lin, Wang
[1
,2
]
Wu, Min
论文数: 0引用数: 0
h-index: 0
机构:
E China Normal Univ, Shanghai Key Lab Trustworthy Comp, Shanghai 200062, Peoples R ChinaE China Normal Univ, Shanghai Key Lab Trustworthy Comp, Shanghai 200062, Peoples R China
Wu, Min
[1
]
Yang, Zhengfeng
论文数: 0引用数: 0
h-index: 0
机构:
E China Normal Univ, Shanghai Key Lab Trustworthy Comp, Shanghai 200062, Peoples R ChinaE China Normal Univ, Shanghai Key Lab Trustworthy Comp, Shanghai 200062, Peoples R China
Yang, Zhengfeng
[1
]
Zeng, Zhenbing
论文数: 0引用数: 0
h-index: 0
机构:
Shanghai Univ, Dept Math, Shanghai 200444, Peoples R ChinaE China Normal Univ, Shanghai Key Lab Trustworthy Comp, Shanghai 200062, Peoples R China
Zeng, Zhenbing
[3
]
机构:
[1] E China Normal Univ, Shanghai Key Lab Trustworthy Comp, Shanghai 200062, Peoples R China
[2] Wenzhou Univ, Coll Math & Informat Sci, Wenzhou 325035, Zhejiang, Peoples R China
[3] Shanghai Univ, Dept Math, Shanghai 200444, Peoples R China
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.