郝杰. 一种包含异常处理的粗粒度切片方法[J]. 微电子学与计算机, 2012, 29(7): 116-120.
引用本文: 郝杰. 一种包含异常处理的粗粒度切片方法[J]. 微电子学与计算机, 2012, 29(7): 116-120.
HAO Jie. An Approach to Calculating Coarse-Grained Slice with Exception Handling[J]. Microelectronics & Computer, 2012, 29(7): 116-120.
Citation: HAO Jie. An Approach to Calculating Coarse-Grained Slice with Exception Handling[J]. Microelectronics & Computer, 2012, 29(7): 116-120.

一种包含异常处理的粗粒度切片方法

An Approach to Calculating Coarse-Grained Slice with Exception Handling

  • 摘要: 在构造面向对象带有异常处理的系统依赖图的基础上,分析了异常处理结构对程序依赖性的影响.并且为了得到粗粒度程序切片,提出了一种把异常处理结构转化为一个类内部私有方法的有效方法来简化带有异常处理结构的系统依赖图.然后在简化的带有异常处理结构的系统依赖图上利用图可达性算法实现了包含异常处理结构的粗粒度切片.最后,通过一个切片标准对粗粒度切片和细粒度切片进行了比较.结果证明粗粒度切片完全包含细粒度切片,这样就降低了计算切片的复杂度.

     

    Abstract: Based on constructing Object-Oriented system dependence graph with exception handing, this paper analyzes the effects of exception handling constructs on program dependence.In order to get coarse-grained slice, this paper presents a practical approach that convert exception structure to private methods inside a class to simplify the system dependence graph with exception handling constructs.And using graph reachability algorithm on the simplified system dependence graph with exception handling constructs can get coarse-grained slice with exception structure.Finally, we compared coarse-grained slice with fine-grained slice through a slice standard.From the comparison, we can see that coarse-grained slice completely contains the fine-grained slice.Thus we succeed in reducing the complexity of calculating slice.

     

/

返回文章
返回