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
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
- Research on Points-to Analysis for Java
- Strategy Research of the Process Optimization of the Workshop Job Based on TOC-MES
- Research on Field Management about EMU Assembly Unit Based on LP
- Multiple Perspectives"You Are the One" Program Study
- An Integration of Several Data Flow Analysis Techniques for Program Verification
- The Processing of External Enviroments in Symbolic Execution
- Comparison and Checking between Requrement Models and Programs for Behavioral Consistency
- Research on Key Technologies of Improving the Accuracy of Static Defect Detecting
- Research on Suspicious Program Analysis Technologies Based on Guidance of Control Flow Information
- The Study of Directional Complement in Teaching Chinese as a Second Language
- Research on Warranty Audit System Improvement of Tianjin Faw Company Based on Toyota Management
- Exception Propagation Analysis and Its Applications
- Adaptability of program analysis techniques
- Research on Dependence Analysis and Software Testing
- Program Slicing Techniques and Its Application in Object-Oriented Software Metrics and Software Test
- Object-Oriented Reverse Engineering and Software Comprehension
- Constraint Based Prolog Semantics and Its Applications in the Testing, Analysis and Verification of Prolog Programs
- Research on Static Analysis of Memory Errors in C Programs
- Research on Compile Techniques of Fault Tolerance for Soft Errors
- Study on Water Resources Optimum Allocation in Typical Arid Basin