作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (16): 86-88. doi: 10.3969/j.issn.1000-3428.2006.16.032

• 软件技术与数据库 • 上一篇    下一篇

程序中不可达路径的检测方法

陈 蕊1;张广梅1,2;李晓维1   

  1. 1. 中国科学院计算技术研究所信息网络室,北京 100080;2. 山东农业大学信息科学与工程学院,泰安 271000
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-08-20 发布日期:2006-08-20

Detection of Infeasible Path in Procedure

CHEN Rui1; ZHANG Guangmei1,2; LI Xiaowei1   

  1. 1. Network Division, Institute of Computer Technology, Chinese Academy of Sciences, Beijing 100080; 2. School of Information Science and Engineering, Shandong Agricultural University, Taian 271000
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-08-20 Published:2006-08-20

摘要: 对于大型软件来说,程序中不可达路径的存在增加了软件测试的耗费并严重影响了测试的准确性。通过在已生成的基本路径集中排除不可达路径的影响,有利于结构测试中各阶段的实现。提出了一种利用数据流分析信息检测不可达路径的方法。通过对条件分支相关性的探测进而确定了程序中的不可达路径,并通过适当地选取条件谓词,提高了检测分支的覆盖率。

关键词: 数据流, 不可达路径, 分支相关性

Abstract: To large-scale software, the existing of infeasible paths in procedure increases assumptions of software testing and impacts accuracy of testing seriously. Eliminating the impaction of infeasible paths is propitious to each steps of structure testing. A manner of applying information of dataflow to detection of infeasible paths is discussed in this paper. Determination of infeasible paths is implemented by detecting of branch correlation in control flow graph. Then the manner increases the rate of branches covered by selecting proper condition predication.

Key words: Dataflow, Infeasible paths, Branch correlation

中图分类号: