期刊文献+

基于符号执行的软件静态测试研究 被引量:2

Software Static Test Research Based on Symbolic Execution
下载PDF
导出
摘要 文中基于符号执行理论,设计了一种面向C语言的静态分析方法。通过词法分析和语法分析构建了程序的抽象语法树,并在此过程中对源代码进行规范性检查,再根据函数调用关系与抽象语法树来确定程序分析层次,并通过约束求解器确定程序中每一条可执行路径,最后依照程序的可执行路径得到每个变量最终的符号执行结果。该方法支持基于C语言文法的程序规范性检查,便于代码质量度量。利用该方法得到的抽象语法树,可开展静态构架分析,同时利用变量值的符号表达式可辅助测试用例生成,有助于提高测试的效率和质量。 Design a C static analysis method based on analyzed symbolic execution theory. It constructs the program's abstract syntax tree by using lexical analysis and grammatical analysis and does regular inspect for the source code in the process ;then according to the function calls relationship and abstract syntax tree to determine program analysis level and the executable path is determined by the constraint solver;eventually get the final symbolic execution results of each variable through the executable path. It is helpful for measuring code quality by regular inspecting on the source based on C language grammar. It is convenient for anglicizing the static structure of program by using SAT. The symbolic expressions, which were generated by this method can assist generating of test data and improve efficiency and quality of software test.
出处 《计算机技术与发展》 2013年第6期42-45,178,共5页 Computer Technology and Development
基金 国家自然科学基金资助项目(60674100) 南京航空航天大学青年科学创新基金(NS2010069)
关键词 静态分析 符号执行 抽象语法树 可执行路径 static analysis symbolic execution abstract syntax tree executable path
  • 相关文献

参考文献10

二级参考文献74

  • 1樊玮,陈增强,袁著祉.基于Agent的分布式数据库设计及其在飞行计划系统中的应用[J].南开大学学报(自然科学版),2004,37(3):49-54. 被引量:3
  • 2余建军,韩双霞,黄云龙.软件安全性的静态分析[J].计算机工程与设计,2006,27(8):1411-1414. 被引量:5
  • 3夏一民,罗军,张民选.基于静态分析的安全漏洞检测技术研究[J].计算机科学,2006,33(10):279-282. 被引量:29
  • 4Richard M Stallman.GNU Compiler Collection Internals.Available at:http://gcc.gnu.org/onlinedocs/gccint
  • 5Alfred V Aho,Ravi Sethi,Jeffrey D Ullman.编译原理技术与工具[M].北京:人民邮电出版社,2002
  • 6GCC Command Options.Available at:http://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_3.html
  • 7gasta homepage.Available at:http://gasta.sourceforge.net/gastaDocs/gastaDocs.html
  • 8[1]Brooks F P Jr.The Mythical Man-Month: Essays on Software Engineering,Anniversary Edition,(2nd ed.)Addison-Wesley 1995
  • 9[2]Fewster M,Graham D.Software Test Automation.Addison -Wesley,1999
  • 10[3]PurifyPlus.http://www.rational.com/products/pqc/index.jsp

共引文献83

同被引文献6

引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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