Research and Implementation of Embedded Program Invariant for Static Testing Based on Abstract Interpretation
- Author
- SuQingQin
- Advisor
- LiuJiuFu
- School
- Nanjing University of Aeronautics and Astronautics
- Major
- Precision instruments and machinery
- Classification
- TP311.53 Software Maintenance
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 46
- Citations
- 0
Abstract
The static testing of embedded software does not run the program and less depend the specificity,real-time, embedded of software, so it is the important measures to guarantee the embedded softwarequality and cut back the cost of embedded software. Software attributes as an important test object canreveal potential errors and improve the accuracy of the testing, while little work do about it.Programinvariant is data contract with unchanging nature.It can demonstrate the associated properties of eachvariable of the software, update documentation, algorithms, data structures and other aspects ofinformation of software systems and determine the location of the error. So the static testing ofembedded software about software attributes can use program invariant.The thesis propose a static detection method for program invariant of embedded C source codebased on the theory of abstract interpretation.The program under test through the fundamentalanalysis can obtain the corresponding abstract domain graph, then abstract execute by traversingabstract domain graph to get the executable path of the program, and symbolic execute the executablepath of the program to detect the initial program invariants with function relation and collectionrelation which takes into account the repeatability of the program invariant.This method caneffectively solve the approximate solution of complex problems and reduce system overhead.The thesis propose a test method with program invariant based on the study of the relationship ofpolynomial relation and program invariant.It determines polynomial program and weakestpreconditions by the executable path of the program, and program invariants transfer to polynomialrelations, and abstract analyzes polynomial relation at destination node of polynomial program to findit correct or not, so the verification of correctness of program invariants is completed. It detectsnormative errors through lexical and parsing analysis, then detects the correct program invariant withthe software documentation to find the consistency static errors such as range of values, in addition tothe zero of the documentation, ect. This method eliminates likelihood program invariants andimproves accuracy and efficiency of the detection.Finally, the thesis has used VC++2005to realize static testing system with program invariant andcompleted testing codes of the embedded Linux platform. It verifies the practicality and correctness ofour method by comparing actual results with expected expectations.
Table of contents
Summary 4-5
ABSTRACT 5-13
first chapter 13-18
1.1 Introduction 13
1.2 background and Significance topics Status 1.3 static test of 13-14
Status 1.3.1 foreign studies 14-15
14-15
1.3 .2 domestic research status 15
1.4 dissertation research 15-16
1.5 dissertation research organization structure 16-18
Chapter II embedded software testing and procedures are not static variables 18-29
2.1 Introduction 18
2.2 software testing Overview 18-22
2.2.1 software testing defined 18
classification 2.2.2 software testing 18-22
2.3 Overview of static testing of embedded software 22-27
2.3.1 embedded conceptual software static testing 22-23
2.3.2 static testing of embedded software analysis techniques 23-26
2.3.3 static embedded software testing tools 26-27
2.4 program invariants Overview basic concepts of 27-28
2.4.1 program invariants 27
2.4.2 program invariants Category 27-28
2.4.3 program invariants for technical 28
2.4.4 program invariant relationships with software testing 28
2.5 Summary 28-29
Chapter III study abstract interpretation 29-43
3.1 Introduction 29
3.2 abstract interpretation theory 29-33
3.2.1 abstract theory to explain the basic concepts 29-30
3.2.2 abstract theoretical framework to explain 30-31
3.2.3 interval abstract domain 31-33
3.3 abstract interpretation analysis techniques 33-40
3.3.1 data Structure Interface 33-34
3.3.2 variable interval conversion and storage 34-35
3.3.3 Boolean satisfiability problem 35-37
3.3.4 procedures tend to 37-40
3.4 abstract extended interpretation applied 40-42
3.4.1 program invariants and polynomial transformation of the relationship 40
3.4.2 polynomial relations correctness 40-41
3.4.3 polynomial relations prove the correctness of abstract 41-42
3.5 Summary 42-43
Chapter IV program invariants static test system design 43-57
4.1 Introduction 43
4.2 overall system design 43-44
4.3 program invariants get subsystem design 44-53
4.3.1 -tier architecture 44-45
4.3.2 constructed to achieve 45-53
4.4 program invariants mortem test subsystem design 53 - 56
4.4.1 hierarchical structure 53-54
4.4.2 constructed to achieve 54-56
4.5 Summary 56-57 <br / > Chapter static test research program invariant system algorithm 57-81
5.1 Introduction 57
5.2 does not get variable algorithm subsystem 57-77
5.2.1 Based on the analysis layer algorithm 57-67
5.2.2 abstract interpretation layer algorithm 67-75
5.2.3 symbolic execution layer algorithm 75-77
5.3 program invariant measure subsystem testing algorithm 77-80
5.3.1 authentication layer algorithm 77-78
5.3.2 static error detection layer algorithm 78-80
5.4 Summary 80-81
Chapter VI program invariants static test system validation 81-93 <br / > 6.1 Introduction 81
6.2 test environment construction 81-82
6.3 main interface 82
6.4 program invariants get subsystem verification 82-86
6.5 program invariants mortem test subsystem verification 86-92
6.6 summary 92-93
nbsp Chapter VII summary and Outlook ; 93-95
7.1 This article summarizes 93-94
7.2 Prospect 94-95
References 95-98 <br / > Thanks 98-99
during school research and published papers 99
Related dissertations
- The Design and Realization of the Power Assisted Servo System
- Research and Application on Domain-oriented Embedded System Software Requirement Model
- Embedded Software Static Testing Based on Rules
- The Simulation Environment of Embedded Binary Software Defect Detection System
- Test Cases Generating and Prioritizating of Embedded Software Defect Detecting
- Research on Test Technologies of Embedded Software Used for Safety-related System
- The Development of Tower Crane Safety Surveillance System
- The Design and Implement of Tedting Radiotheraphy Motion Control System
- Research on Technologies of Control Flow Reconstruction and Control Structure Recovery in Decompilation
- A Requirements Verification Supporting Tool for Embedded Systems
- Research of the Instrumentation in Embeded Software Coverage Testing
- Design and Development of Automated Testing Tool for Wireless Communication Module
- The Research and Implementation of Path Sensitive Methods Summary in DTS
- Reliability Modeling and Evaluation of the Embedded Software Based on AADL
- Research and Implementation of Automated Testing for Communication-based Train Control Platform
- Research on Self-Healing Strategy of Embedded Software
- Embedded Software Design and Implementation of Gait Monitoring System
- Research on the Way of Quality Evaluation of Embedded Software in Electronic Metrology Products
- Research and Development of Embedded Education System with Electronics and Related Majors as Oriented
- Research on Key Technologies of Improving the Accuracy of Static Defect Detecting