The Design and Implementation of Software Comprehension Aid System Based on Program Slicing

Author
SunHongHao
Advisor
WangShuYi
School
Dalian University of Technology
Major
Computer System Architecture
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2007
Downloads
104
Citations
3

Request the full text

Abstract

With the development of computer technology and the increment of size of software system, the software today has aggregated a lot of knowledge of specific field, including the system requirements, design and rules. So the maintenance of software becomes more and more important. Before one maintaining the system, one must understand it thoroughly. Unless gets a full comprehension of old system, one can’t maintain the system efficiently and improve the old system. In one word, software comprehension plays an important role in the process of software maintenance.Program slicing is a technique for program analysis proposed by Mark Weiser, which analyze the system by computing a related statement set of particular variable of program, and the set is called program slice. The theory bases of both software analysis and comprehension are richened by the emergence of program slicing. Program slicing is widely used in every field of software engineering such as software debugging, testing and metrics and so on. The system designed and implemented in this paper is based on the program slicing technique, and this paper adopts the dataflow iteration algorithm which is proposed by Mark Weiser.Due to widely use of pointers in the program written by C, if a conservative estimate is taken, the exactness can be greatly harmed. This paper gives a description of the representation of points-to analysis, the complexity of the problem and the classification of it. After an introduction of an inter-procedural and context-sensitive pointer analysis algorithm, an improvement of analysis of function calls via function pointers is given in this paper.The design of system is given in this paper. In the preprocessor of the front-end of system, the inclusion of system head files are discarded. After the process of lexical analyzer and parser, the intermediate codes produced by the intermediate code generator are greatly decreased. At the back-end of system, a program slicer, a cross-referencer, a modular cohesion metrics analyzer and a dependence displayer of files and functions are given. Techniques such as Lex, YACC, dom4j, Java Swing and so on are used in the implementation. Due to the intermediate codes are represented by xml files, it is convenient to develop new back-end tools. The system provided by this paper can help people focus on the variables which they are interested in and give a hand to them for the understanding of programs.

Related dissertations

  1. Research on Points-to Analysis for Java
    LiZuo ·Nanjing University ·2012 ·Doctoral dissertation
  2. Strategy Research of the Process Optimization of the Workshop Job Based on TOC-MES
    ChenXiangWen ·Chengdu University of Technology ·2013 ·Master's thesis
  3. Research on Field Management about EMU Assembly Unit Based on LP
    MaTao ·Beijing Jiaotong University ·2012 ·Master's thesis
  4. Multiple Perspectives"You Are the One" Program Study
    ZhangHaiYan ·Shanxi University ·2012 ·Master's thesis
  5. An Integration of Several Data Flow Analysis Techniques for Program Verification
    XingYuChen ·Nanjing University ·2013 ·Master's thesis
  6. The Processing of External Enviroments in Symbolic Execution
  7. Comparison and Checking between Requrement Models and Programs for Behavioral Consistency
    LingXiang ·Wuhan University ·2013 ·Doctoral dissertation
  8. Research on Key Technologies of Improving the Accuracy of Static Defect Detecting
  9. Research on Suspicious Program Analysis Technologies Based on Guidance of Control Flow Information
    YouChao ·PLA Information Engineering University ·2013 ·Master's thesis
  10. The Study of Directional Complement in Teaching Chinese as a Second Language
    ZuoJie ·Bohai University ·2013 ·Master's thesis
  11. Research on Warranty Audit System Improvement of Tianjin Faw Company Based on Toyota Management
    ZhaoXueMing ·Tianjin University ·2012 ·Master's thesis
  12. Exception Propagation Analysis and Its Applications
    JiangShuJuan ·Southeast University ·2006 ·Doctoral dissertation
  13. Adaptability of program analysis techniques
    LianRuiZuo ·Institute of Computing Technology ·2000 ·Doctoral dissertation
  14. Research on Dependence Analysis and Software Testing
    ZuoLi ·Hunan University ·2006 ·Doctoral dissertation
  15. Program Slicing Techniques and Its Application in Object-Oriented Software Metrics and Software Test
    LiBiXin ·Nanjing University ·2000 ·Doctoral dissertation
  16. Object-Oriented Reverse Engineering and Software Comprehension
    ZhangZhiMeng ·Zhejiang University ·2004 ·Doctoral dissertation
  17. Constraint Based Prolog Semantics and Its Applications in the Testing, Analysis and Verification of Prolog Programs
  18. Research on Static Analysis of Memory Errors in C Programs
  19. Research on Compile Techniques of Fault Tolerance for Soft Errors
  20. Study on Water Resources Optimum Allocation in Typical Arid Basin
    HeYing ·Xinjiang Agricultural University ·2010 ·Doctoral dissertation