Computing Static Slice for Java Programs
- 作者
- Martin Ngobye
- 导师
- Zhang Dafang
- 学校
- 湖南大学
- 专业
- 计算机科学与技术
- 分类号
- TP311.11 程序设计方法
- 学位
- 硕士学位论文
- 年份
- 2005
- 下载次数
- 36
- 被引次数
- 0
摘要
Software development is becoming more and more sophisticated due to increasedcomplexity of software composition. This pauses increased possibilities of software bugsand crashes therefore the continuous development of tools to handle the risks.This dissertation presents an efficient way of accurately computing a static slice of Javaprograms using Java system dependence graph which extends previous dependence basedrepresentations to represent various types of program dependences in Java software.Slicing is an analysis technique that reduces programs to those statements that arerelevant for a particular computation.Java is an Object oriented language designed with many features such as inheritance,polymorphism, and dynamic binding which must be represented in order to accuratelydetermine a precise slice for any Java program.A modified algorithm here will be discussed which improves the preciseness of the slicesobtained especially those from a Java program. A Java slicing Analysis toolkit isproposed to illustrate the modified algorithm.
目录
Signature Page 4-5
Dedication 5-6
Acknowledgement 6-7
Abstract 7-11
List of Figures 11-12
List of Tables 12-13
List of Abbreviations 13-14
1. INTRODUCTION 14-17
1.1 Goals 15-16
1.2 Organization of the Thesis 16-17
2. BACKGROUND 17-26
2.1 Control flow 18-20
2.2 Data flow analysis 20-22
2.2.1 Iterative Data flow analysis 20-21
2.2.2 Syntax - directed Data flow analysis 21-22
2.3 Static Slicing 22-24
2.4 Dynamic Slicing 24-26
3. PROGRAM DEPENDENCES IN JAVA 26-34
3.1 Program Dependence Graph 26-29
3.2 Control and Data Dependence 29-31
3.3 Call and Parameter Dependence 31-32
3.4 Membership Dependence 32-34
3.4.1 Class membership dependence 32
3.4.2 Interface membership 32
3.4.3 Package membership dependence 32
3.4.4 Inheritance membership dependence 32-34
4. THE SOFTWARE DEPENDENCE GRAPH FOR JAVA 34-48
4.1 Method Dependence Graph 36-39
4.2 Class Dependence Graph 39-42
4.2.1 Class interaction 40-41
4.2.2 Class extending 41
4.2.3 Polymorphism 41-42
4.3 Interface Dependence Graph 42-46
4.3.1 Single interfaces 42-43
4.3.2 Interface extending 43-46
4.4 Package Dependence Graph 46-47
4.5 Constructing the graph 47-48
5 SLICING JAVA PROGRAMS 48-62
5.1 Slicing 48-49
5.2 Slicing java programs 49
5.3 The Modified Algorithm 49-51
5.4 Size of the SDG and cost of the algorithm computing a slice 51-52
5.5 Comparison with previous work 52-53
5.6 Experimental results 53-55
5.7 Applications of Slicing 55-62
5.7.1 Debugging and program analysis 55-57
5.7.2 Program differencing and integration 57
5.7.3 Software maintenance 57-58
5.7.4 Testing 58-59
5.7.5 Compiler Tuning 59-60
5.7.6 Parallelization 60-61
5.7.7 Software Quality and Assurance 61-62
6 JAVA ANAYLSIS TOOLKIT 62-86
6.1 Syntax Analysis Module 62-79
6.1.1 Java Compiler Compiler 63-67
6.1.1.1 Special features of JavaCC 63-66
6.1.1.2 JavaCC compilation process 66-67
6.1.2 Java Tree Builder 67-79
6.1.2.1 Calling the parser and visitor 78-79
6.2 Component Architecture 79-80
6.3 Data structures 80-83
6.4 Analysis and graph creation 83-86
7 RELATED WORK 86-87
8 CONCLUSION 87-88
9 REFERENCES 88-91
10 APPENDIX 91-99
相关论文
- 基于UML图和程序切片的回归测试研究
- 基于指针别名分析的高效锁集分析工具
- 连续在线程序切片算法的研究
- 基于机器学习和程序分析相结合的程序调试技术研究
- 程序切片技术理论与应用研究
- 基于符号分析的静态缺陷检测技术研究
- 基于字符串分析的脆弱性检测方法研究
- ATLAS语言指称语义及程序分析技术
- 依赖性分析及其在软件测试中的应用
- 程序切片技术及其在面向对象软件度量和软件测试中的应用
- VLSI RTL级模拟矢量自动生成技术研究
- 面向路径的测试数据自动生成方法研究
- 基于k-gram的动态软件胎记研究
- 基于程序切片的软件测试研究
- Java程序模型验证中的程序建模问题研究
- 面向对象并发程序切片技术及其在程序验证中的应用
- 一种改进的相似路径算法及其在故障定位中的应用
- 基于过程蓝图的程序切片技术研究
- 基于程序切片规则的软件水印研究
- 一种基于相似路径集生成的程序故障定位方法