期刊文献+

Monadically slicing programs with procedures

含过程程序的单子切片(英文)
下载PDF
导出
摘要 A two-phase monadic approach is presented for monadically slicing programs with procedures. In the monadic slice algorithm for interprocedural programs, phase 1 initializes the slice table of formal parameters in a procedure with the given labels, and then captures the callees' influence on callers when analyzing call statements. Phase 2 captures the callees' dependence on callers by replacing all given labels appearing in the corresponding sets of formal parameters. By the introduction of given labels, this slice method can obtain similar summary information in system-dependence-graph(SDG)-based algorithms for addressing the calling-context problem. With the use of the slice monad transformer, this monadic slicing approach achieves a high level of modularity and flexibility. It shows that the monadic interprocedural algorithm has less complexity and it is not less precise than SDG algorithms. 为解决含过程程序的单子切片问题,提出基于回填待定标号的两阶段单子切片算法.算法第1阶段用给定标号初始化子过程的形参切片表,并通过分析调用语句捕获被调者对调用者的影响.算法第2阶段主要是通过回填切片表中相应的待定标号来捕获施调者对被调者的影响.待定标号的引入使得所提切片算法可捕获类似基于系统依赖图(SDG)切片算法中的概要信息,且也可避免上下文调用问题.借助于切片单子转换器,所提单子切片算法将具有较高的模块性和适应性,且其复杂度不劣于基于SDG的切片算法.
出处 《Journal of Southeast University(English Edition)》 EI CAS 2008年第2期178-182,共5页 东南大学学报(英文版)
基金 The National Outstanding Young Scientist Foundation by NSFC(No.60703086,60503020)
关键词 program slicing monadic semantics interprocedural slicing calling-context problem 程序切片 单子语义 过程间切片 上下文调用问题
  • 相关文献

参考文献10

  • 1Zhang Y Z,Xu B W,Shi L,et al.Modular monadic program slicing[].Theth Annual International Computer Soft-ware and Applications Conference.2004 被引量:1
  • 2Zhang Y Z,Xu B W.A novel formal approach to program slicing[].Science in ChinaSer EInfo Sci.2008 被引量:1
  • 3Wansbrough K.A modular monadic action semantics[]..1997 被引量:1
  • 4Moggi E.An abstract view of programming languages[]..1989 被引量:1
  • 5Liang S.Modular monadic semantics and compilation[]..1998 被引量:1
  • 6Liang S,Hudak P,Jones M.Monad transformers and modular interpreters[].nd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages.1995 被引量:1
  • 7Weiser M.Program slicing[].IEEE Transactions on Software Engineering.1984 被引量:1
  • 8Tip F.A survey of program slicing techniques[].Journal of Programming Languages.1995 被引量:1
  • 9Gallagher K B,Lyle J R.Using program slicing in software maintenance[].IEEE Transactions on Software Engineering.1991 被引量:1
  • 10Ottenstein K J,Ottenstein L M.The program dependence graph in a software development environment[].ACM SIGPLAN Notices.1984 被引量:1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部