期刊文献+

基于参数约束的分支覆盖符号执行优化算法

Optimization of branch covering symbol execution based on constraints
下载PDF
导出
摘要 软件质量检测常用的方法是软件测试,符号执行作为主流的测试技术已被广泛应用于学术界与工业界中。但是随着程序规模的增大和函数调用的增加,因某些路径约束条件的特殊性,而难以生成正确的测试用例,从而导致符号执行不能对所有路径做到全覆盖。为了提高符号执行在特殊约束条件对路径的覆盖率等问题,本文提出了基于参数约束的符号执行优化算法。首先,该算法通过搜索收集程序代码中函数的特殊参数,然后利用这些特殊参数作为约束条件,最后将约束条件添加到路径的约束集中。该算法使符号执行生成的测试用例更加精确,从而实现覆盖特殊约束条件下的路径分支,以提高符号执行的精确性和路径覆盖率。在开源符号执行平台CREST中实验并验证上述优化算法,验证及测试结果表明本文提出的算法能够提高符号执行在特殊约束条件下对路径的覆盖率。 A common method for software quality inspection is software testing.Symbol execution as a mainstream testing technology has been widely used in academia and industry.However,with the increase in program size and function calls,due to the special nature of certain path constraints,it is difficult to generate correct test cases,which results in symbolic execution not being able to cover all paths.In order to improve the problem of symbol execution on the path coverage under special constraints,this paper proposes a symbolic execution optimization algorithm based on parameter constraints.Firstly,the algorithm collects special parameters of functions in the program code by searching,then uses these special parameters as constraints,and finally adds constraints to the constraint set of the path.This algorithm makes the test cases generated by symbol execution more accurate,so as to achieve path branch coverage under special constraints,to improve the accuracy of symbol execution and path coverage.Experiment is carried out to verify the above optimization algorithm in the open source symbol execution platform CREST.The results of verification and testing show that the algorithm proposed in this paper can improve the path coverage of symbol execution under special constraints.
作者 於家伟 李世明 毕雪洁 李秋月 高胜花 Yu Jiawei;Li Shiming;Bi Xuejie;Li Qiuyue;Gao Shenghua(College of Computer Science and Information Engineering,Harbin Normal University,Harbin 150025,China;Shanghai Key Laboratory of Information Security Management Technology Research,Shanghai 200240,China)
出处 《信息技术与网络安全》 2020年第1期14-18,共5页 Information Technology and Network Security
基金 上海市信息安全管理技术研究重点实验室开放课题(AGK2015003)
关键词 符号执行 参数约束 测试用例 软件测试 symbolic execution parameter constraint test case software test
  • 相关文献

参考文献6

二级参考文献97

  • 1陈火旺,王戟,董威.高可信软件工程技术[J].电子学报,2003,31(z1):1933-1938. 被引量:115
  • 2James C K.Symbolic execution and program testing[J].Communications of the ACM,1976,19(7):385-394. 被引量:1
  • 3Richard Hamlet.Random testing[C] ∥Encyclopedia ofSoftware Engineering.New York:Wiley,1994:970-978. 被引量:1
  • 4Godefroid P,Klarlund N,Sen K.DART:directed auto-mated random testing[C] ∥PLDI 2005.New York:ACMPress,2005:213-223. 被引量:1
  • 5Sen K,Marinov D,Agha G.CUTE:a concolic unit tes-ting engine for C[C] ∥ESEC/FSE 2005.New York:ACM Press,2005:263-272. 被引量:1
  • 6Saswat Anand,Patrice Godefroid,Nikolai Tillmann.De-mand-driven compositional symbolic execution[C] ∥TACAS 2008.Heidelberg:Springer-Verlag,2008:367-381. 被引量:1
  • 7Patrice Godefroid.Compositional dynamic test generation[C] ∥POPL 2007.New York:ACM Press,2007:47-54. 被引量:1
  • 8Clark Barrett,Cesare Tinelli.CVC3[C] ∥CAV 2007.Berlin:Springer-Berlin,2007:298-302. 被引量:1
  • 9Cifuentes C,Hoermann C,Keynes N,et al.BegBunch:benchmarking for C bug detection tools[C] ∥DEFECTS2009.New York:ACM Press,2009:16-20. 被引量:1
  • 10赵云山,宫云战.基于符号分析的静态缺陷检测技术研究[博士学位论文].北京:北京邮电大学,2012. 被引量:1

共引文献117

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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