期刊文献+

循环程序的界函数合成

Synthesis of loop bound functions for loop programs
下载PDF
导出
摘要 作为循环程序终止性分析的主流方法,当前的秩函数方法大多局限于线性或多项式秩函数的求解。针对循环程序若不存在对应的线性或多项式秩函数,现有秩函数方法就无法证明其终止性的问题,提出一个新的方法来合成给定循环程序对应的界函数。对于给定的循环程序,倘若能找到其界函数,则表明该循环程序是可终止的。首先将界函数的求解问题转化为一个线性二分类问题,并在选定界函数模板后,根据模板建立映射关系以构建训练集;然后利用所得训练集通过支持向量机(SVM)获取分类超平面进而求解得到模板系数,从而得到候选的界函数;最后利用现有的符号验证工具Redlog对该候选界函数进行验证。实验结果表明,相较于现有的秩函数方法,所提方法不仅能够应用于更多的循环程序,而且所得界函数在形式上相较于秩函数更加简化。具体表现为,对于某些没有线性秩函数的循环,该方法可以得到其对应的线性界函数;同时,对于某些只有多阶段线性秩函数的循环,该方法可以求解得到全局的线性界函数。 As the mainstream methods of loop program termination analysis,most existing ranking function methods are limited to the solution of linear or polynomial ranking functions.Concerning that the existing ranking function methods cannot prove the termination if there are no corresponding linear or polynomial ranking functions for the loop programs,a new method was proposed to synthesize the loop bound function for the given loop program.The existence of loop bound function of a given loop program implies the termination of this loop function.Firstly,the problem of solving the loop bound functions was transformed into a linear binary classification problem.Once the function’s template was selected,the mapping relationship was established according to the template to construct the training set.After that,the obtained training set was used to obtain the classification hyperplane through Support Vector Machine(SVM)to find the template coefficients,thereby obtaining the candidate loop bound function.Finally,the existing symbol verification tool Redlog was used to verify this candidate loop bound function.Experimental results show that compared with the existing ranking function methods,the proposed method not only can be applied to more loop programs,but also has the obtained loop bound functions more simplified in form than the ranking functions.Specifically,for some loops without linear ranking functions,the corresponding linear loop bound functions can be solved by the proposed method;at the same time,for some loops with only multiphase linear ranking functions,the global linear loop bound functions can be solved by the proposed method.
作者 谭旺 李轶 TAN Wang;LI Yi(Chongqing Institute of Green and Intelligent Technology,Chinese Academy of Sciences,Chongqing 400714,China;School of Computer Science and Technology,University of Chinese Academy of Sciences,Beijing 101408,China)
出处 《计算机应用》 CSCD 北大核心 2022年第2期565-573,共9页 journal of Computer Applications
基金 国家自然科学基金资助项目(11771421) 中国科学院“西部之光” 国家重点研发计划项目(2020YFA07123000) 重庆市自然科学基金资助项目(cstc2019jcyj-msxmX0638)。
关键词 程序验证 循环程序终止性 支持向量机 界函数 秩函数 program verification loop program termination Support Vector Machine(SVM) loop bound function ranking function
  • 相关文献

参考文献1

二级参考文献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

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部