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

一种包含异常处理的粗粒度切片方法
引用本文:郝杰. 一种包含异常处理的粗粒度切片方法[J]. 微电子学与计算机, 2012, 29(7): 116-120
作者姓名:郝杰
作者单位:徐州医学院医学信息学院,江苏徐州,221004
基金项目:国家自然科学基金,教育部科学技术研究重点项目,江苏省自然科学基金,江苏省“青蓝工程”
摘    要:在构造面向对象带有异常处理的系统依赖图的基础上,分析了异常处理结构对程序依赖性的影响.并且为了得到粗粒度程序切片,提出了一种把异常处理结构转化为一个类内部私有方法的有效方法来简化带有异常处理结构的系统依赖图.然后在简化的带有异常处理结构的系统依赖图上利用图可达性算法实现了包含异常处理结构的粗粒度切片.最后,通过一个切片标准对粗粒度切片和细粒度切片进行了比较.结果证明粗粒度切片完全包含细粒度切片,这样就降低了计算切片的复杂度.

关 键 词:程序切片  粗粒度切片  系统依赖图  简化的系统依赖图  异常处理

An Approach to Calculating Coarse-Grained Slice with Exception Handling
HAO Jie. An Approach to Calculating Coarse-Grained Slice with Exception Handling[J]. Microelectronics & Computer, 2012, 29(7): 116-120
Authors:HAO Jie
Affiliation:HAO Jie(College of Medical Informatics,Xuzhou Medical College,Xuzhou 221004,China)
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.
Keywords:program slicing  coarse-grained slice  system dependence graph  simplified system dependence graph  exception handling
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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