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

Request the full text

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

  1. Aresearchbased on UML Diagrams and Dynamic Slicing of Regression Testing
    SongJianSheng ·Jiangnan University ·2012 ·Master's thesis
  2. Pointer Analysis Based Lock Set Analysis Tool
    ZhangDi ·Shanghai Jiaotong University ·2013 ·Master's thesis
  3. Continuous Online Program Slicing
    LuLongWen ·Shanghai Jiaotong University ·2013 ·Master's thesis
  4. Research on Software Debugging Techniques Based on the Combination of Machine Learning and Program Analysis
    ZhangCheng ·Shanghai Jiaotong University ·2013 ·Doctoral dissertation
  5. Research on Theory and Application of Program Slicing
    WangZhiXue ·Jilin University ·2012 ·Doctoral dissertation
  6. Research on Symbolic Analysis Based Static Defect Detection Technique
  7. Research on Vulnerability Detection Based on String Analysis
  8. Denotational Semantics and Program Analysis for ATLAS
    GuoDeGui ·Jilin University ·2007 ·Doctoral dissertation
  9. Research on Dependence Analysis and Software Testing
    ZuoLi ·Hunan University ·2006 ·Doctoral dissertation
  10. Program Slicing Techniques and Its Application in Object-Oriented Software Metrics and Software Test
    LiBiXin ·Nanjing University ·2000 ·Doctoral dissertation
  11. Research on Techniques of VLSI RT-Level Automatic Functional Vectors Generation
  12. Automatic path-oriented test data generation method
  13. On k-gram Based Dynamic Software Birthmarking
    BaiYaMeng ·Hunan University of Technology ·2008 ·Master's thesis
  14. The Research on Software Testing Based on Program Slicing
    WangLei ·Hebei University of Technology ·2007 ·Master's thesis
  15. The Research of Modeling in Model Checking Java Program
    LiJin ·Hunan Normal University ·2008 ·Master's thesis
  16. Concurrent Object-oriented Program Slicing and Its Application in Program Verification
    HeZhiXue ·Suzhou University ·2008 ·Master's thesis
  17. An Improved Similar Path Generation Algorithm and Its Application for Fault Location
    LeiZhiXiang ·Central China Normal University ·2008 ·Master's thesis
  18. Program Slicing Technology Based-on Procedure Blueprint
    ChenChunXiao ·Shantou University ·2007 ·Master's thesis
  19. On Slicing Specification Based Software Watermarking
    DengXiaoHong ·Hunan University of Technology ·2007 ·Master's thesis
  20. A Method for Localizing Program Faults Based on Similar Path Set Generation
    ZhuKai ·Central China Normal University ·2007 ·Master's thesis