Infeasible Path Identification and Its Application in Structural Test
- Author
- ChenRui
- Advisor
- LiXiaoWei
- School
- Institute of Computing Technology
- Major
- Computer System Architecture
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 139
- Citations
- 4
Abstract
Structural test is beneficial to evaluate whether the test is sufficient. However, it iscommon that testing is not sufficient, more test cases should be selected to improve thesufficiency of the test. Usually, each new test case selected need to be executed on some specialpaths. The first question encountered is how to decide if the path is feasible, which means thatthe path is feasible by some input. In the area of structural test, identification of infeasible pathbecomes more and more important. The earlier the infeasible path in the program wasidentified, the fewer the time spent. There exist some methods of infeasible path identification,which have their own disadvantages. This dissertation surveys the principle and the manner ofstructural test and shows the significance of infeasible path to the structural test. Then analysisthe reason of infeasible path generation, and surveys the recent development of identificationof infeasible path. A method of infeasible path identification is proposed based on control flowgraph (CFG), and the information of infeasible path was applied to optimized structural test,which can improve the accuracy of path test and data-flow test.The major contributions of this dissertation are summarized as follows.1. A method of infeasible path identification is proposed. This method is based onControl Flow Graph (CFG). We compute the define/used reach information of each basic blockby data-flow analysis, those information can be used to detect the branch correlation. Finally, arule of identifying infeasible path from path set is established according to the result of branchcorrelation analysis. We improve the rate of branches covered by selecting proper conditionpredication and decrease complexity of branch correlation by data-flow analysis.2. A generation method of relative basis set of path is proposed based on effect of branchcorrelation. In the method, we have considered the branch correlation in the process of pathgeneration, which improve the rate of paths covered in the relative basis set of path, whichfacilitate paths test. Relative basis set of path is a part of path set and has such attributes asfollow: (1) each path is one independent path and includes one edge at least which does notexist in any other paths. (2) All of edges in the program will be included. The relative basis setof path has the higher rate of edges covered in the CFG than the path set which has beenexcluded infeasible paths directly.3. A method of data-flow test based on infeasible path is proposed. We extend themethod proposed in [5], and add the effect of infeasible path into the method, so we can get thehigher veracity of fault detection in the software. And we propose a new set of manner of setcomputing to adapt to the infeasible path existing, so we can judge if the fault in the software isdue to infeasible path or not, and locate the fault effectively, which can provide more usefulinformation to programmer and tester to improve the performance of program.The proposed methods have been implemented on Open Resource Compiler (ORC),experimental results reveal their efficiency.
Table of contents
Summary 3-9
Chapter Introduction 9-13
1.1 Background and Significance nbsp 9-10
1.2 The main work; 10-11
1.3 papers organization 11-13
Chapter II Summary of structural testing 13-23
2.1 Structural Testing the concept and meaning nbsp to; 13-14
the 2.2 structural test methods outlined the 14-22
2.2.1 Program Structure Analysis the 14-18
2.2.1.1 Control Flow Analysis 14-16
2.2.1.2 Data Flow Analysis 16-18
2.2.2 logical overlay method 18-19
2.2.3 basic path coverage law 19-20
2.2.4 other structural test methods the 20-22 2.3 Chapter Summary
22-23
Chapter unreachable path Recognition Methods 23-29
3.1 at least predicate select up to path strategy 23-24
3.2 dynamically detect unreachable path method 24-25 <br / > the 3.3 static method detects not reachable path the 25-27 path
3.3.1 satisfiability 25-26
the 3.3.2 branch 26 - 27
3.4 several methods of analysis and comparison 27
3.5 Chapter Summary 27-29
Chapter based control flow graph unreachable path identification methods are found; 29-41
4.1 group concept 29-30
4.2 predicate select 30
4.3 unreachable path identification method 30-38
4.3.1 basic block setpoint / reference reaches the collection calculated 31-32
correlation between 4.3.2 basic block analysis 32-34
4.3.3 path based on the correlation determination unreachable 34-35
4.3.4 instance analysis 35-38
4.4 algorithm complexity analysis 38 <br / > 4.5 unreachable path identification method correctness proof 38-39
4.6 experimental program and experimental results
39 4.7 Chapter Summary 39-41 <br / Chapter based branch relative path set generation method 41-49
5.1 relative base path set concept the 41-42
5.2 choose sides Rules 42-43
a 5.3 relatively basic path set generation algorithm 43-44
5.4 algorithm complexity analysis 44-45
5.5 algorithm correctness proof 45-46
5.5.1 Each program paths are independent path 45
5.5.2 program up to the edge are access 45-46
the 5.6 experimental program and experimental results 46-47
5.7 Chapter Summary 47-49
Chapter VI of the data flow testing method based on unreachable path effects are found; 49-59
6.1 data-flow analysis method based on unreachable path effects 49-54
6.1.1 pseudo-collection operation law 50-51
6.1.2 Data flow analysis foundation 51-53
6.1.2.1 arrive - setting data flow analysis 51-52
6.1.2.2 active variable data flow analysis 52-53
6.1.3 pseudo the validity of the law of set operations proved the 53-54
6.2 software fault detection rules 54-56
6.2.1 the undetermined variable value fault detection 55
6.2.2 variable useless setting fault detection 55-56
6.3 experimental program and experimental results 56 < br /> 6.4 Chapter Summary 56-59
Chapter VII Summary and Outlook 59-61
7.1 The main contribution of this innovative 59-60 <br / > 7.2 for future work outlook to References 60-61
61-65
Acknowledgements 65-67
Author vita The 67
Related dissertations
- Design and Analysis of Structure on Massive-products Transportation
- Application of MIS software in structural test verification of performance of the
- Code Coverage Analysis and Path Selection Technology Research and Application
- Path Feasibility Detection Using Symbolic Execution and Data Mining
- Experimental Research on the Performance of Concrete Core Wall under Biaxially Cyclic Loadings
- Research on Software Testing and Reliability Evaluation Method
- Research on Test Suite Reduction and Construction
- Automatic analysis tool for software testing
- Probabilistic Load Flow Considering the Correlations Among Nodes
- Study on Program Analysis in Parallel Programming Language with Shard Resource Declaration
- Research and Implementation of Global Array Data-flow Analysis Technology