首页 | 本学科首页   官方微博 | 高级检索  
     

符号执行中高语句覆盖率的路径调度
引用本文:李朝君,蒋凡.符号执行中高语句覆盖率的路径调度[J].计算机工程与应用,2010,46(14):66-68.
作者姓名:李朝君  蒋凡
作者单位:中国科学技术大学,计算机科学技术系,合肥,230027
摘    要:符号执行和约束求解相结合的软件测试方法采用深度优先搜索的路径调度算法会造成测试路径聚居性问题,实际软件中存在路径爆炸,使得采用该算法的测试语句覆盖率低下。提出一种新的PSHC路径调度算法。先将路径分为前缀和后缀两部分,每次测试总是试图寻找这样的路径,该路径与已存在的路径具有最短的相同前缀,并且包含尽可能多的尚未被访问过的基本块作为其后缀。基于Phoenix漏洞发掘工具的实验结果表明,PSHC算法可以迅速提高测试的语句覆盖率到100%,有效解决由于深度优先搜索的路径聚居性导致的测试代码的局部性问题,PSHC算法产生的路径数与循环深度无关,软件规模越大,该算法的表现越好。

关 键 词:符号执行  路径调度  约束求解  软件测试
收稿时间:2009-3-5
修稿时间:2009-6-1  

Path scheduling algorithm with high code coverage based on symbolic execution
LI Chao-jan,JIANG Fan.Path scheduling algorithm with high code coverage based on symbolic execution[J].Computer Engineering and Applications,2010,46(14):66-68.
Authors:LI Chao-jan  JIANG Fan
Affiliation:Department of Computer Science and Technology,University of Science and Technology of China,Hefei 230027,China
Abstract:Symbol execution and constraint solving with path scheduling algorithm based on Depth First Searching(DFS),which is used in common,is prone to path clustering problem.In practice,the problem of path exploding,which makes it impossible to test all the paths,always exits in software.Path clustering,path exploding and finite test time cause a low level of code coverage.A new path scheduling algorithm called PSHC(Path Scheduling Algorithm with High Code Coverage) is introduced.In this algorithm,a path composes ...
Keywords:symbolic execution  path scheduling  constraints solving  software testing
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机工程与应用》浏览原始摘要信息
点击此处可从《计算机工程与应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号