期刊文献+

无用代码的检测

The study of dead code detection
在线阅读 下载PDF
导出
摘要 程序中的无用代码意味着算法设计、代码实现中存在着问题。无用代码的存在增加了软件开发、测试、使用中的开销,对正确进行程序测试评估产生影响。在对无用代码的表现形式进行分析的基础上,对影响无用代码检测所要进行的数据流分析的各种因素进行了讨论。文中关于到达定值数据流分析过程中的常数传播、谓词表达式的变换、程序插装等的关于谓词表达式的求解方法为无效分支的检测提供了依据。 The occurrence of dead codes in programs implies that there is something wrong with arithmetic designing and coding. It will increase the cost that has to be spent on program design, coding, maintenance and testing. Bases on the analysis of dead codes' appearance, the factors that have effect on the data-flow analysis associated with the dead codes detection are discussed in this paper. Moreover, the contest propagation during the reach-define data-flow analysis, the predicate express mutation method, and the program instrumentation are discussed. It will help to detect dead codes in a program.
出处 《北京化工大学学报(自然科学版)》 CAS CSCD 北大核心 2007年第A01期93-96,共4页 Journal of Beijing University of Chemical Technology(Natural Science Edition)
关键词 无用代码 数据流分析 谓词相关 程序插装 dead code data-flow analysis predicate correlation program instrumentation
  • 相关文献

参考文献7

  • 1MALEVRIS N,YATE D F.Predictive metric for likely feasibility of program paths[J].Information and Software Technology,1990,32(2):115-118.
  • 2BODIK R,GUPTA R.Interprocedural conditional branch elimination[C]//Conference on Programming Language Design and Implementation,Las Vegas,Nevada,United States,1997:146-158.
  • 3SWEENEY P F,TIP F T.A study of dead data member in C++ applications[C]//Conference on Programming Language Design and Implementation.Montreal,Quebec,Canada,1998:324-332.
  • 4XI Hongwei.Dead code elimination through dependent types[C]∥Proceedings of First International Workshop on Practical Aspects of Declarative Languages,San Antonio,Jan,1999:228-242.
  • 5YONG C.Static correlated branch prediction[J].ACM Transactions on Programming Languages and Systems,1999,21(5):1028-1075.
  • 6GOLDBERG A T C,WANG T CI.Applications of Feasible Path Analysis to Program Testing[C]∥Proceedings of the 1994 International Symposium on Software Testing and Analysis.Seattle,Washington,United States,1994:95-107.
  • 7BODIK R,GUPTA R,SOFFA M L.Refining data flow information using infeasible paths[J].Software Engineering Notes,1997,22(6):361-377.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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