A Proving the Termination of Loops Based on the Generation of Invariants

XING Jian-ying,LI Meng-jun,LI Zhou-jun
DOI: https://doi.org/10.3969/j.issn.1007-130x.2012.04.021
2012-01-01
Abstract:Proving the termination of loops is a difficult part of program verification.Program invariants can describe the relations of program variables.Linear invariants can describe the linear relations of variables,and the relations of variables in the loops can be presented by loop invariants.By generating linear invariants and polynomial loop invariants,we transform proving the termination of loops to solving an optimization problem,then we present a practical framework of proving termination.Using the framework,the termination of loops can be proved automatically,and the complexity bounds of loops can be computed.The experimental results show the practicality of the method.
What problem does this paper attempt to address?