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

An Approach to Calculating Coarse-Grained Slice with Exception Handling

在线阅读下载全文

作  者:郝杰[1] 

机构地区:[1]徐州医学院医学信息学院,江苏徐州221004

出  处:《微电子学与计算机》2012年第7期116-120,共5页Microelectronics & Computer

基  金:国家自然科学基金(60970032);教育部科学技术研究重点项目(108063);江苏省自然科学基金(BK2008124);江苏省"青蓝工程"

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

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

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象