A Technique of Program Slicing Based on JAVA
- Author
- PanHaiYan
- Advisor
- ZhangChangHai
- School
- Jilin University
- Major
- Applied Computer Technology
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2004
- Downloads
- 140
- Citations
- 0
- Special mechanism
- Source
- Fragment handling
- Reachability
- Partial evaluation technology
- Auto - generation tool
- Data stream
- Range of values
- Range
- Procedures for extraction
Abstract
Program slicing is a technology of extracting programs; it works in each field of program analysis and understanding and software engineering project. Since it was proposed in 1979, drawing people’s extensive concern, the technology has been already very mature at present. Especially static slicing and dynamic slicing, whose algorithms have already been mature,. The algorithms mainly include dataflow algorithm that Mark Weiser puts forward, and K.J.Ottendtein, L.M. Ottendtein and Horwitz’s picture reach ability algorithm based on system dependence graph information flow algorithm that Bergeretti puts forward, etc... Along with static slicing becoming mature, people begin to develop new fields to study: at first, aiming at algorithms of different language, such as the picture showing form to C ++ language of Larsen and Harrold, and at JAVA system special mechanism method of Kovacs et al and Zhao; secondly, enlarging concept of slicing, which makes conditioned slicing and amorphous slicing possible, etc. With the wide application of object oriented language, people begin to study the slicing for O.O. language, but there are some special mechanisms such as inherit, polymorphism, dynamic binding in O.O. language, which traditional methods can’t solve, and people have proposed some new methods to solve these problems. According to the present research state, some technologies have been put forward aiming at OO language, but relative tools are still few. The slicing for Java also belongs to the beginning stage. Based on such a situation, we decide to develop a slicing system for Java, which can deal with various kinds of special mechanisms of Java with high efficiency. Conditioned slicing is a newly put-forward concept. As a <WP=64>kind of totally static extraction static slicing considers no input, so the results of this are inexact, while the dynamic slicing considers all inputs, which can get the only results under the condition of a certain input. People find both of these are very extreme, and usually people require extracting results under special conditions, which make conditioned slicing necessary. Conditioned slicing lies between static slicing and dynamic slicing and has become future focus already. Because it isn’t a long time since this concept has been put forward, it is immature yet, especially when it is concerning about some special languages. Then we integrate conditioned slicing into the slicing for JAVA, hoping this good beginning, and in the following research, we try to perfect the conditioned slicing algorithm in this system to maturate conditioned slicing algorithm. This system can be divided into two parts: first, static slicing of Java, where the algorithm based on JAVA system dependence graph (JSDG) is adopted; second, partial dealing of conditioned slicing.Since the results of static slicing can be used in conditioned slicing, we can deal with separately the two parts above. In the course of static slicing of JAVA, we deal with basic types in Java and most mechanisms, including following major works: Carry on pretreatment aiming at source program and get each mark of sentences of source program, which is the bridge connecting JSDG and source program. Build JSDG to show structure of Java, mechanism through each side and node, and at the end of this course we get figure expression of the source program. Carry on slicing algorithm according to the user input <WP=65>slicing criterion to receive slicing results based on the JSDG.Turn the result of picture into the result of program. Second part is conditioned slicing about which we adopt the method of integration of partial evaluation technology and symbolic execution. The detailed steps include: first, some program conditions collections are given by users, which restrain the fetching value range of some variables; secondly, we get those unknown according to these variables we already know; thirdly, judge the expression formula in Java according to gotten variable range value, and keep those we can judge,
Table of contents
Chapter 1 Introduction 6-14
1.1 program slicing
1.2 Program Slicing history of the development
1.3 program slicing Category 6-9
1.4 procedures for the application of the slice 9
1.5 studies the status quo 9-11
1.6 prior knowledge 11 -12
1.7 in this article to complete the work 12-14
Chapter II program slicing 14-16
2.1 data flow equation method 14-15
2.2 map up 15
2.3 object-oriented slice 15-16
Chapter III conditions fragmentation 16-18
3.1 conditions for the application of the concept of fragmentation 16
3.2 Conditional piece 16-17
3.3 Conditional film 17-18
Chapter static slice of the JAVA programming language to achieve 18-33
4.1 Java language static slicing criteria 18
4.2 system uses method 18-33
Chapter condition slicing algorithm 33-41
5.1 Java language conditional fragmentation analysis 33
5.2 prior knowledge 33-36
5.3 technology used 36-38
5.4 deal specifically with 38-39
5.5 conditions method to achieve 39-41
sixth slice of the Java language to achieve 41-53
6.1 deal with the language 41
6.2 to achieve environmental 41 < br /> 6.3 data structures 41-46
6.4 slicing algorithm 46-51
6.5 dependency graph to slice program conversion 51-52 < br /> 6.6 the future work of 52-53
Conclusion 53-54
Appendix 54-57
References 57 - 59
Acknowledgement 59-60
Chinese Abstract 60-63
Abstract 63-66
Related dissertations
- A Study on the Reasonable Range of China’s Foreign Exchange Reserves
- Executives Change, Management Equity and Team Stability
- The Nonparametric Conditional Autoregressive Range Model and Its Application
- Study of Cluster Algorithm of Data Stream
- Study on Clustering Algorithm Adapt to High-speed Data Stream
- Research on Mining Frequent Itemsets Over Data Stream
- Study on the algorithm for mining frequent patterns in data stream
- Research on Processing Methods of Data Stream Based on Parallel Computing
- A Mining Method Based on Utility Pattern from Data Stream
- Research of Sequential Pattern Algorithm over Data Streams Based on Prefix Sequence Tree
- A Batch-based Algorithm for Mining Weighted Sequential Patterns in Data Streams
- Research on Classification and Clustering Algorithms for Data Stream Mining
- Research on Count-based Algorithm for Mining Frequent Items Over Data Stream
- Research and Implementation of Information Fusion Based on OPC
- Research on Data Stream Clustering Algorithm Based on Extenic Dependent Function
- Pattern Mining Algorithms Over Data Streams
- Several Data Flow Reconstruction Method Based on Compressed Sensing
- The Design and Development of Wafer Alignment Software System of Lithography Tool
- An Empirical Research on Classroom Assessment Knowledge of Primary and Middle School Teachers and Its Origin
- Research on Network Reforming and Implementation of Modern Distance Education System Upgrade