节点文献

基于LCC的测试程序控制流路径子集生成算法

Control Flow Paths Subset of Tested Program Generation Algorithm Based on LCC

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 陈宇李志蜀金虎何江

【Author】 CHEN Yu1, LI Zhi-shu1, JIN Hu1,2, HE Jiang1(1.School of Computer, Sichuan University, Chengdu 610064;2.Department of Computer Science, Chengdu University of Info.Tech., Chengdu 610041)

【机构】 四川大学计算机学院成都信息工程学院计算机系

【摘要】 针对路径覆盖测试技术中如何计算被测试程序的有效控制流路径子集的关键性问题,提出一种利用LCC编译器的前端结果来生成基于一次循环策略的测试程序控制流路径子集的算法。该算法通过引入邻接矩阵并借助自定义的堆栈数据结构来完成控制流路径子集的生成。通过实验程序对算法进行检验,结果表明,该方法能高效准确地计算出待测源程序片的控制流路径子集。

【Abstract】 To solve the key problem of how to calculate the effective subset of the control flow paths of the tested program, this paper proposes an algorithm for working out the subset of the whole control flow paths of the program with the help of the LCC compiler in software coverage testing.The control flow paths in the subset are based on the strategy that the loop statements in the program execute less than twice.Adjoining matrix is introduced by the algorithm to work out the subset of the control flow paths with the help of customized stack structure.The correctness of the algorithm is verified on a sample program, which indicates that the subset of the whole control flow paths of the tested program can be calculated efficiently and accurately with this method.

【关键词】 LCC编译器控制流路径邻接矩阵
【Key words】 LCC compilercontrol flow pathadjoining matrix
【基金】 四川省科技攻关基金资助项目“软件自动测试技术研究与自动测试工具开发”(05GG021-003-2);科技部科技型中小企业技术创新基金资助项目“软件自动测试工具WsSTKit”(0626225101730)
  • 【文献出处】 计算机工程 ,Computer Engineering , 编辑部邮箱 ,2009年07期
  • 【分类号】TP311.52
  • 【被引频次】1
  • 【下载频次】53
节点文献中: 

本文链接的文献网络图示:

本文的引文网络