期刊文献+

基于抽象域和数值熵协同的数值程序分析

Value range analysis based on abstract domain and value entropy
下载PDF
导出
摘要 在软件日益丰富的信息时代,程序的正确性验证问题需要深入地研究。提出了基于抽象解释和数值熵协同的数值程序正确性分析方法。利用抽象解释理论框架对数值程序进行抽象解释分析,提取不变量的抽象域区间;在抽象域区间上进行数值熵运算;运行程序获取数值变量的实际取值,计算数值熵;将抽象域区间数值熵和实际数值熵信息进行对比分析,准确地判断程序的正确性等性质。单纯的抽象解释分析只可以近似得到数值变量的取值范围,而引入数值熵算法,在取值范围的基础上对程序静态分析的准确性进一步检验,同时也做到了对程序的正确性验证。通过C语言程序实例,对抽象解释基础上的熵值分析方法进行了验证,证明了该分析方法的可行性和正确性。 In the information age, software is highly dependent, thus the correctness of the program validation issues need to be further studied. This paper introduces the value range analysis method based on abstract interpretation and value information entropy. The value program is analyzed by the abstract interpretation which is an important method of the static analysis, to obtain the abstract interpretation domain. Then it calculates the value information entropy, and runs the program to get the real values, in order to calculate the entropy. It compares the domain's entropy with the values' entropy, to accurately judge the correctness of the program, etc. The abstract interpretation analysis can only acquire the scope of variables, by introducing the value information entropy, this paper can make further inspection of the program static analysis based on the value range, and also verifies the correctness of the program. Through validating this method with C program,it verifies the practicality and correctness of this method.
出处 《计算机工程与应用》 CSCD 北大核心 2015年第6期55-58,119,共5页 Computer Engineering and Applications
基金 国家自然科学基金(No.60674100) 南京航空航天大学基本科研业务费专项科研项目(No.NS2010069)
关键词 数值程序分析 正确性 抽象解释 数值信息熵 value range analysis validity abstract interpretation value information entropy
  • 相关文献

参考文献16

  • 1Harrison W H.Compiler analysis of the value ranges for variables[J].IEEE Transactions on Software Engineering,1977,3(3):243-250.
  • 2Nielson F,Nielson H R,Hankin C.Principle of program analysis[M].Berlin:Springer-Verlag,1999:211-282.
  • 3李梦君,李舟军,陈火旺.基于抽象解释理论的程序验证技术[J].软件学报,2008,19(1):17-26. 被引量:30
  • 4杨波,张明义,谢刚.抽象解释理论框架及其应用[J].计算机工程与应用,2010,46(8):16-20. 被引量:5
  • 5Cousot P,Cousot R.Abstract interpretation:a unified lattice model for static analysis of programs by construction or approximation of fix points[C]//Proc of the 4th POPL,1977:17-19.
  • 6姬孟洛,王怀民,李梦君,董威,齐治昌.一种基于抽象解释和通用单调数据流框架的值范围分析方法[J].计算机研究与发展,2006,43(11):2020-2026. 被引量:10
  • 7Nguyen T B,Delaunay M,Robach C.Testability analysis of data-flow software[J].Electronic in Theoretical Computer Science,2005,116:213-225.
  • 8Cousot P.Abstract interpretation based formal methods and future challenges[M]//Informatics 10 Years Back,10Years Ahead.London:Springer-Verlag,2001:138-156.
  • 9Guo Mingming,Dou Jianhua,Yang Bin.Entropy-based complexity measure for aspect oriented program[J].Journal of Nanjing University:Natural Sciences,2007,43(5):509-519.
  • 10常硕,赵彬,辛文逵.抽象解释技术在嵌入式软件测试中的应用[J].中国测试技术,2007,33(6):93-95. 被引量:4

二级参考文献85

  • 1姬孟洛,齐治昌.基于抽象解释自动导出针对WCET分析的程序流信息的方法[J].计算机工程与科学,2006,28(12):114-117. 被引量:1
  • 2高鹰,陈意云.基于抽象解释的代码迷惑有效性比较框架[J].计算机学报,2007,30(5):806-814. 被引量:16
  • 3Cousot P,Cousot R.Abstract interpretation:A unified lattice model for static analysis of programs by construction or approximation of fixpoints[C]//Proc of the 4th POPL,January 17-19,1977.Los Angeles:ACM Press, 1977:238-252.
  • 4Cousot P,Cousot R.Basic concepts of abstract interpretation[M]// Rene J.Building the Information Society.Toulouse:Kluwer Academic Publishers, 2004: 359-366.
  • 5Cousot P.Constructive design of a hierarchy of semantics of a transition system by abstract interpretation[J].Theoretical Computer Science, 2002,277(1/2) :47-103.
  • 6Hoare C A R,He Ji-feng.Unifying theories of programming[M]. London:Prentice Hall Europe, 1998.
  • 7Cousot P,Cousot R.Comparing the Galois connection and Widening/Narrowing approaches to abstract interpretation[C]//Bruynooghe M,Wirsing M.LNCS 631:Proc of the Fourth International Symposium, PLILP' 92, Leuven, Belgium.Berlin: Springer-Verlag, 1992: 269- 295.
  • 8Cousot P,Cousot R.Systematic design of program analysis frameworks[C]//Conference Record of the Sixth Annual ACM SIGPLANSIGACT Symposium on Principles of Programming Languages,San Antonio,Texas.New York:ACM Press, 1979:269-282.
  • 9Blancher B,Cousot P.A static analyzer for large safety-critical softare[C]//Proc of ACM SIGPLAN'2003 Conf PLDI,San Diego.New York: ACM Press, 2003 : 196-207.
  • 10Cousot P,Cousot R,Feret J,et al.The ASTREE analyzer[C]//Sagiv M.LNCS 3444:Proc of the European Symp on Programming.Edinburgh: Springer-Verlag, 2005 : 21-30.

共引文献36

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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