期刊文献+

一种基于符号执行的测试用例生成方法

A Test Case Generation Method Based on Symbolic Execution
下载PDF
导出
摘要 针对符号执行中存在的路径爆炸问题,提出一种冗余路径删除方法,该方法利用Hoare逻辑中的后置条件引导符号执行以生成有效的测试用例。首先利用最弱前置条件来计算已探索的路径,然后通过后置条件引导符号执行以识别程序中多个共享的路径后缀,并在测试用例生成时进行消除。最后通过对多个基准程序进行实验,结果表明论文方法在一定程度上能够减少程序的路径探索数目和执行时间,削弱了符号执行中的路径爆炸问题。 Aiming at the problem of path explosion existing in the execution of symbols,a redundant path deletion method is proposed,which uses the postconditions in the Hoare logic to guide symbol execution to generate effective test cases. The weakened preconditions are first used to calculate the explored paths and then the postconditions are used to guide the execution of the symbols to identify multiple shared path suffixes in the program and eliminate them as test cases are generated. Finally,by testing a number of benchmark programs,the results show that this method can reduce the number of program exploration and execution time to a cer. tain extent,and weaken the path explosion in symbol execution.
作者 郑华利 刘钊远 田野 ZHENG Huali;LIU Zhaoyuan;TIAN Ye(School of Computer,Xi'an University of Posts and Telecommunications,Xi'an 710061)
出处 《计算机与数字工程》 2019年第9期2327-2331,共5页 Computer & Digital Engineering
关键词 符号执行 路径爆炸 后置条件 最弱前置条件 symbolic execution path explosion postconditions weakest preconditions
  • 相关文献

参考文献3

二级参考文献50

  • 1沈昌祥,张焕国,王怀民,王戟,赵波,严飞,余发江,张立强,徐明迪.可信计算的研究与发展[J].中国科学:信息科学,2010,40(2):139-166. 被引量:252
  • 2James C K.Symbolic execution and program testing[J].Communications of the ACM,1976,19(7):385-394.
  • 3Richard Hamlet.Random testing[C] ∥Encyclopedia ofSoftware Engineering.New York:Wiley,1994:970-978.
  • 4Godefroid P,Klarlund N,Sen K.DART:directed auto-mated random testing[C] ∥PLDI 2005.New York:ACMPress,2005:213-223.
  • 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.
  • 6Saswat Anand,Patrice Godefroid,Nikolai Tillmann.De-mand-driven compositional symbolic execution[C] ∥TACAS 2008.Heidelberg:Springer-Verlag,2008:367-381.
  • 7Patrice Godefroid.Compositional dynamic test generation[C] ∥POPL 2007.New York:ACM Press,2007:47-54.
  • 8Clark Barrett,Cesare Tinelli.CVC3[C] ∥CAV 2007.Berlin:Springer-Berlin,2007:298-302.
  • 9Cifuentes C,Hoermann C,Keynes N,et al.BegBunch:benchmarking for C bug detection tools[C] ∥DEFECTS2009.New York:ACM Press,2009:16-20.
  • 10Wang R, Feng DG, Yang Y, Su PR. Semantics-Based malware behavior signature extraction and detection method. Ruan Jian Xue Bao/Joumal of Software, 2012,23(2):378-393 (in Chinese with English abstract), http://www.jos.org.cn/1000-9825/3953.htm [doi: 10.3724/SP.J.1001.2012.03953].

共引文献13

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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