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

一种基于模块单子语义的动态程序切片方法
引用本文:张迎周,徐宝文. 一种基于模块单子语义的动态程序切片方法[J]. 计算机学报, 2006, 29(4): 526-534
作者姓名:张迎周  徐宝文
作者单位:东南大学计算机科学与工程系,南京,210096;南京邮电大学计算机学院,南京,210003;东南大学计算机科学与工程系,南京,210096;武汉大学软件工程国家重点实验室,武汉,430072
基金项目:国家重点基础研究发展计划(973计划);中国科学院资助项目;科技部科研项目;高等学校博士学科点专项科研项目;江苏省高校自然科学基金
摘    要:提出一种基于程序模块单子语义的新动态切片方法--模块单子动态切片.首先通过单子转换器,将切片这一类计算抽象成独立于具体语言的实体:切片单子转换器.然后,将该切片转换器作为模块加载到实际程序中,并给出相应的模块单子动态切片算法.据此,可直接在抽象语法结构上计算动态切片,不必记录程序执行历史;相应单子切片器也无需显式地构造诸如依赖图的中间结构.这种模块化抽象机制使得文中的动态切片算法具有很强的可扩展性和重用性.

关 键 词:程序切片  动态切片  单子  单子转换器  模块单子语义
收稿时间:2004-04-13
修稿时间:2004-04-132005-11-14

An Approach to Dynamic Program Slicing Based on Modular Monadic Semantics
ZHANG Ying-Zhou,XU Bao-Wen. An Approach to Dynamic Program Slicing Based on Modular Monadic Semantics[J]. Chinese Journal of Computers, 2006, 29(4): 526-534
Authors:ZHANG Ying-Zhou  XU Bao-Wen
Affiliation:1.Department of Computer Science and Engineering, Southeast University, Nanjing 210096;2.College of Computer, Nanjing University of Posts and Telecommunications, Nanjing 210003;3.State Key Laboratory of Software Engineering, Wuhan University, Wuhan 430072
Abstract:This paper presents a new dynamic slicing method, the modular monadic approach, which is based on modular monadic semantics. With the use of monad transformers, each representing a single notion of computation, the computation of program slicing can be abstracted as an entity that is independent of the language being analyzed, dynamic-slice monad transformer. Its definition and correctness proofs are provided in this paper. This paper also gives and illustrates dynamic slicing algorithm based on modular monadic semantics. The algorithm allows dynamic slices to be computed directly on abstract syntax, without recording an execution history or explicitly constructing intermediate structures, such as dependence graphs, in the corresponding monadic slicers. It is showed to be an appropriate approach to program slicing with excellent flexibility and modularity properties.
Keywords:program slicing   dynamic slicing   monads   monad transformers   modular monadic semantics
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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