Computing Static Slice for Java Programs
- Author
- Martin Ngobye
- Advisor
- Zhang Dafang
- School
- Hunan University
- Major
- Computer Science and Technology
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 36
- Citations
- 0
Abstract
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.
Table of contents
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 < br /> 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 <br / > 3.4.2 Interface membership 32
3.4.3 Package membership dependence 32
3.4.4 Inheritance membership dependence 32-34 < br /> 4. THE SOFTWARE DEPENDENCE GRAPH FOR JAVA 34-48
4.1 Method Dependence Graph 36-39
4.2 Class Dependence Graph 39-42 <br / > 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 <br / > 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 <br / > 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
Related dissertations
- Aresearchbased on UML Diagrams and Dynamic Slicing of Regression Testing
- Pointer Analysis Based Lock Set Analysis Tool
- Continuous Online Program Slicing
- Research on Software Debugging Techniques Based on the Combination of Machine Learning and Program Analysis
- Research on Theory and Application of Program Slicing
- Research on Symbolic Analysis Based Static Defect Detection Technique
- Research on Vulnerability Detection Based on String Analysis
- Denotational Semantics and Program Analysis for ATLAS
- Research on Dependence Analysis and Software Testing
- Program Slicing Techniques and Its Application in Object-Oriented Software Metrics and Software Test
- Research on Techniques of VLSI RT-Level Automatic Functional Vectors Generation
- Automatic path-oriented test data generation method
- On k-gram Based Dynamic Software Birthmarking
- The Research on Software Testing Based on Program Slicing
- The Research of Modeling in Model Checking Java Program
- Concurrent Object-oriented Program Slicing and Its Application in Program Verification
- An Improved Similar Path Generation Algorithm and Its Application for Fault Location
- Program Slicing Technology Based-on Procedure Blueprint
- On Slicing Specification Based Software Watermarking
- A Method for Localizing Program Faults Based on Similar Path Set Generation