期刊文献+

一种基于逆向程序流的程序切片算法 被引量:3

Algorithm of program slicing based on reverse program flow
下载PDF
导出
摘要 传统的程序切片方法一般基于程序依赖图(PDG)和系统依赖图(SDG)的可达性算法,但是在建立PDG和SDG的过程中会计算一些与切片无关的数据依赖,造成时空资源的浪费及切片效率的降低。提出了一种基于程序逆向流的切片算法,它事先建立逆向程序流,再从切片点开始沿逆向程序流扫描程序以获得程序切片,只计算与切片相关的数据依赖,从而提高了切片计算的时空效率。通过实验发现该算法具有一定的可行性和实用性。本算法适用于包括Fortran、C等编程语言在内的命令式程序的切片生成。 The traditional method of program slicing was based on reachability algorithm of program dependence graph(PDG) and system dependence graph(SDG).However,to construct PDG and SDG,some data dependenced which were irrelevant to the slicing may be computed.The redundant computing wasted time and memory,and reduced slicing efficiency.To address this problem,this paper presented a slicing algorithm based on reverse program flow.It firstly constructed reverse flow of the program,then scaned the program along revers...
出处 《计算机应用研究》 CSCD 北大核心 2009年第3期920-922,926,共4页 Application Research of Computers
基金 国家自然科学基金重大研究计划资助项目(90718021)
关键词 程序切片 程序逆向流 谓词依赖集 过程内切片 过程间切片 program slicing reverse program flow predicate dependence set(PDS) intraprocedural slicing interprocedu-ral slicing
  • 相关文献

参考文献2

二级参考文献5

共引文献47

同被引文献44

  • 1马伟,张毅坤.基于UML时序图的集成测试序列自动生成[J].计算机工程与应用,2005,41(19):108-111. 被引量:7
  • 2卢炎生,王曦,谢晓东,毛澄映.基于依赖性分析的UML状态图切片技术[J].计算机工程,2006,32(15):81-83. 被引量:6
  • 3Harrold M J,Gupta R,Soffa M L.A methodology for controlling the size of a test suite[J].ACM Transaction on Software Engineer ing and Methodology,1993,2(3):270-285. 被引量:1
  • 4Chvatal V.A rgreedy heuristic for the set-covering problem[J].Mathematics of Operations Research,1974,4(3):233-235. 被引量:1
  • 5Chen T Y,Lau M F.A new heuristic for test suite reduction[J].Information and Software Technology,1998,40(5/6):47-354. 被引量:1
  • 6Chen T Y,Lau M F.On the completeness of a test suite reduction strategy[J].The Computer Journal,1999,42(5):30-440. 被引量:1
  • 7Chen T Y,Lau M F.Dividing strategies for the optimization of a test suite[J].Information Processing Letters,1996,60(3):35-141. 被引量:1
  • 8Mansour N,Fakin K E.Simulated annealing and genetic algo rithms for optimal regression testing[J].Journal of Software Main tenance:Research and Practice,1999,11(1):19-34. 被引量:1
  • 9Rothermel G,Harrold M J,Ostrin J,et al.An empirical study of the effects of minimization on the fault detection capabilities of test suites[J].Software Maintenance,1998(11):34-43. 被引量:1
  • 10Wong W E,Horgan J R,London S,et al.Effect of test set mini mization on fault detection effectiveness[J].Software:Practice and Experience,1998,28(4):347-369. 被引量:1

引证文献3

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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