首页> 外文期刊>IEEE Transactions on Software Engineering >Automatic generation of path covers based on the control flow analysis of computer programs
【24h】

Automatic generation of path covers based on the control flow analysis of computer programs

机译:基于计算机程序的控制流分析自动生成路径覆盖

获取原文
获取原文并翻译 | 示例

摘要

Branch testing a program involves generating a set of paths that will cover every arc in the program flowgraph, called a path cover, and finding a set of program inputs that will execute every path in the path cover. This paper presents a generalized algorithm that finds a path cover for a given program flowgraph. The analysis is conducted on a reduced flowgraph, called a ddgraph, and uses graph theoretic principles differently than previous approaches. In particular, the relations of dominance and implication which form two trees of the arcs of the ddgraph are exploited. These relations make it possible to identify a subset of ddgraph arcs, called unconstrained arcs, having the property that a set of paths exercising all the unconstrained arcs also cover all the arcs in the ddgraph. In fact, the algorithm has been designed to cover all the unconstrained arcs of a given ddgraph: the paths are derived one at a time, each path covering at least one as yet uncovered unconstrained arc. The greatest merits of the algorithm are its simplicity and its flexibility. It consists in just visiting recursively in combination the dominator and the implied trees, and is flexible in the sense that it can derive a path cover to satisfy different requirements, according to the strategy adopted for the selection of the unconstrained arc to be covered at each recursive iteration. This feature of the algorithm can be employed to address the problem of infeasible paths, by adopting the most suitable selection strategy for the problem at hand. Embedding of the algorithm into a software analysis and testing tool is recommended.
机译:对程序进行分支测试涉及生成一组路径,该路径将覆盖程序流程图中的每个弧,称为路径覆盖,并找到一组程序输入,这些输入将执行路径覆盖中的每个路径。本文提出了一种通用算法,可以找到给定程序流程图的路径覆盖。该分析在称为ddgraph的简化流程图上进行,并且使用图论原理的方式与以前的方法不同。特别是,利用了形成ddgraph的两个弧形树的支配关系和蕴含关系。这些关系使得有可能识别ddgraph弧的子集,称为无约束弧,其特性是,行使所有无约束弧的一组路径也覆盖了ddgraph中的所有弧。实际上,该算法已被设计为覆盖给定ddgraph的所有不受约束的弧:路径一次导出一个,每个路径至少覆盖一个尚未发现的不受约束的弧。该算法的最大优点是它的简单性和灵活性。它包括根据支配者和隐含树的组合以递归方式访问,并且灵活性很强,它可以根据选择每个对象要覆盖的无约束弧的策略来得出满足不同要求的路径覆盖。递归迭代。通过针对手头的问题采用最​​合适的选择策略,该算法的这一特征可用于解决路径不可行的问题。建议将算法嵌入软件分析和测试工具中。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号