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

递归子程序的依赖性分析及其应用
引用本文:徐宝文,张挺,陈振强.递归子程序的依赖性分析及其应用[J].计算机学报,2001,24(11):1178-1184.
作者姓名:徐宝文  张挺  陈振强
作者单位:武汉大学;东南大学计算机科学与工程系,
基金项目:国家自然科学基金 ( 60 0 730 12 ),江苏省自然科学基金,江苏省“三三三”人才基金,高等学校重点实验室访问学者基金,南京大学软件新技术国家重点实验室基金资助
摘    要:程序依赖性是一种重要的程序分析、理解与维护方法,广泛应用于软件工程及软件逆向工程的各个方面,但递归子程序间的依赖分析一直是依赖性分析中的难点。为此,该文提出了一种新的递归子程序间的依赖性分析方法,它首先分析子程序内部的各种依赖关系;然后,结合子程序调用图分析子程序参数间的依赖关系;最后,通过模拟递归子程序的执行过程来分析它们之间的依赖关系。利用该文提供的方法可得到比较精确的递归子程序间的依赖关系。

关 键 词:程序分析  递归子程序  程序依赖性  软件工程  软件逆向工程
修稿时间:2000年3月21日

Dependence Analysis of Recursive Subprograms and Its Applications
XU Bao-Wen,ZHANG Ting,CHEN Zhen-Qiang.Dependence Analysis of Recursive Subprograms and Its Applications[J].Chinese Journal of Computers,2001,24(11):1178-1184.
Authors:XU Bao-Wen  ZHANG Ting  CHEN Zhen-Qiang
Abstract:Dependence analysis is an important approach to analyze, understand and maintain programs, which has been widely used in software engineering and reengineering. Of all the dependence analysis methods, an approach to analyze dependencies of recursive subprograms is one of the main difficulties. Therefore, the paper proposes a new approach to analyze dependencies among recursive subprograms. In this paper, firstly, we discuss methods to analyze the data dependence and control dependence of a single subprogram in detail. Then, according to the subprogram call graphs, we compute dependence relationships among formal parameters of subprograms i.e. the parameter dependence sets. Then, using the information obtained in the precious steps and by simulating the executions of the recursive subprograms,we propose methods to analyze dependencies among the recursive calls in two cases: direct recursive and indirect recursive calls. The proof of the correctness of our method is presented at the same time. We also present one of the most important applications of dependence analysis--program slicing, using the method presented in this paper. Our method can obtain more precise dependencies among recursive subprograms than any other methods we know.
Keywords:program analysis  recursive subprogram  program dependence  dependence graph
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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