Slicing Execution for Verification of C Programs

Author
YiXiaoDong
Advisor
YangXueJun , WangZuo
School
National University of Defense Science and Technology
Major
Computer Science and Technology
Classification
TP312.1 Programming language ALGOL
Degree
Doctoral dissertation
Year
2006
Downloads
408
Citations
3

Request the full text

Abstract

With the wide using of computer systems, the trustworthy properties of the software are receiving more and more attentions. The formal verification of the software program is one of the effective methods to promise trustworthy. Therefore, more and more researchers are attracted to this area. However, the software programs usuallyhave complex logic and large scale, so how to increase the accuracy and the scalability of the program verification is the main research topic.The dissertation presents a novel method, namely slicing execution, to verify C programs with respect to temporal safety properties. It is basically a lightweight symbolic execution technical, and may automatically extract finite models from sequential and concurrent C programs. Slicing execution integrates several state space reduction techniques, including program slicing, abstraction of program semantics, symbolical representation, counterexample guided abstraction refinement andpartial-order reduction, etc. Therefore, the state spaces of the abstracted models can begreatly reduced, and the scalability of the verification can be improved correspondingly. The distinguished feature of slicing execution is that it may achieve the accuracy of path-sensitive simulation for verifying temporal safety properties, only with the cost close to standard flow-sensitive dataflow analysis. More than that, it supports arbitrary program structure including all kinds of program loops. It can also full-automatically abstract models and verify properties without any aid of people.Slicing execution is founded on the over-approximated program semantics of C programs by variable abstraction. It only symbolically executes the relevant statements under variable abstraction, and calculates the partial strongest post-conditions and the partial weakest preconditions to construct finite abstract models, which may be model checked with respect to temporal safety properties. Based on the verification reusing framework presented in the dissertation, slicing execution keeps refining the variable abstraction criteria according to the spurious counterexample paths until the property is proven or a feasible counterexample path is found. To verify concurrent C programs, a novel stateful dynamic partial-order reduction method is integrated into slicing execution, which greatly reduces the searching state space. A lightweight decision procedure is also integrated to efficiently decide the formulas generated during the verification of C programs. More thoroughly, the innovations of the dissertation are summarized into following five aspects: 1. The basic definitions and techniques for slicing execution. Based on the analysis of practical program verification, we present variable abstraction to only consider the variables and statements that are relevant to the given property. We then present the partial strongest post-condition, which represents the over-approximated program semantics. Finally, we present slicing execution as a lightweight symbolic execution.2. The temporal safety property oriented searching reusing framework and its application in slicing execution. Like counterexample guided abstraction refinement (CEGAR), the searching reusing framework also refines the abstracted model under the guidance of spurious counterexamples. However, it makes the searching information be reused among the models of different precision, and thus a great deal of redundant searching may be avoided.3. The definition of partial weakest precondition and its application in slicing execution. The partial weakest precondition is another way to represent the over-approximated program semantics, and its definition is also based on variable abstraction. In slicing execution, we may use partial weakest preconditions to replace part of partial strongest post-conditions to generate much weaker state formulas. As a result, we may greatly reduce the state space of the abstracted model without loss of accuracy.4. The stateful dynamic partial-order reduction technique and its application in slicing execution. After extending slicing execution to concurrent C programs, we present the stateful dynamic partial-order reduction technique to guide it not to search multiple interleaving transition sequences that has the same partial-order. We select several experiments including two practical program fragments and a concurrent SSL system. The experiments illustrate that the integration of slicing execution and stateful dynamic partial-order reduction leads to the reduction of the state space, as well as the reduction of the space cost of the verification.5. The lightweight decision procedure for the verification formulas of slicing execution. We define an extended class of integer linear first-order logic formula, which supports most integer linear and bit-wise expressions in C programs including integer division, integer modular and bit-wise operation. Experiment results show that the extended decision procedure supports most verification formulas met in slicing execution. Based on the experiment over the practical program openssl-0.9.6c, we find that the decision cost is 10.5 times less than the theorem prover Simplify.Our slicing execution tool prototype is implemented on the open-source project MAGIC. Each innovation is demonstrated by an experiment on the practical program openssl-0.9.6c. We also compare our experiment results with BLAST and MAGIC. All experiments are performed on machines of same hardware, using same practical program and verifying same properties. The comparing results show that slicing execution is even a bit more effective than the other two.

Table of contents

Abstract 9-11 ABSTRACT 11-14 first chapter 14-34 1.1 research background 14-16 1.1.1 software trusted nature 14-15 1.1.2 based on reliable and secure nature of the software source code, to ensure 15-16 120 research 16-25 1.2.1 static analysis methods 17-18 1.2.2 theorem proving method 18-19 1.2.3 Abstract interpretation 19-20 1.2.4 Model Checking 20-24 1.2.5 predicates is an abstract method 24-25 1.3 research ideas 25-30 1.3.1 work of summary and comparison of 25-27 1.3.2 research goal 27-28 1.3.3 research content 28-29 1.3.4 Project Technical Features 29-30 1.4 subject innovation 30-32 1.5 paper structure 32-34 slice implementation of the basic concepts and methods 34-57 2.1 The basic model and the concept of 35-37 2.1.1 C program model and the nature of temporal safety 35-36 2.1.2 strongest postcondition 36-37 2.2 based on a variable-abstract program is a conservative approximation of semantic 37-41 2.2.1 variable abstraction 37-38 2.2.2 part of the strongest post-conditions 38-41 2.3 slice execution 41-46 2.3.1 slice execution context 41-42 2.3.2 slice implementation of Figure 42-44 2.3.3 discuss 44-46 2.4 temporal safety properties verification 46-51 implementation of the graph model test 2.4.1 on slices 46 2.4.2 slicing execution with model checking of integrated 46-48 2.4.3 Refinement of abstract criteria 48-51 2.5 validation tools and experimental results 51-54 2.5.1 verification tools 51-52 2.5.2 Experimental results and analysis 52-54 2.6 work 54-56 2.7 Summary 56-57 Search reuse framework for implementation of the slice 57-70 3.1-oriented slice of searches performed reuse framework 57-59 3.2 Search reuse framework-based slicing execution 59-63 3.3 reliable state to determine 63-66 3.4 Experimental results 66-68 3.5 work 68-69 3.6 Summary 69-70 Chapter some of the weakest pre-conditions and its application to the slice execution 70-89 4.1 part of the weakest precondition 71-73 4.2 part of the weakest precondition slice execution 73-78 4.3 to avoid the exponential growth of part of the weakest precondition formulas scale 78-82 4.3.1 weakest precondition formulas scale of the exponential growth of problems and solutions 78-79 4.3.2 compact part of the weakest precondition to representation and calculation methods 79-82 4.4 deal with the pointer variable alias 82-84 4.5 Experimental results and analysis 84-87 4.6 work 87 4.7 Summary 87-89 state of dynamic partial order reduction method 89-112 5.1 concurrent C program models and stateless dynamic partial order reduction method 91-94 5.1.1 concurrent C program model 91-92 5.1.2 stateful dynamic partial order reduction methods 92-94 5.2 stateful dynamic partial order reduction method 94-100 5.2.1 overlap Information To summarize 94-98 5.2.2 stateful dynamic partial order reduction method 98-100 5.3 there is a state of dynamic partial order reduction to achieve 100-107 5.3.1 overlapping information summarized 100-102 5.3.2 stateful dynamic partial order reduction cycles the state space traversal process to achieve 102-107 5.4 Experimental results 107-110 5.5 research 110 5.6 Summary 110-112 Chapter VI of concurrent C program slicing execution 112-130 6.1 concurrent C program model and its conservative approximation of semantic 113-116 6.1.1 concurrent C program model 113-114 6.1.2 variable abstraction conservative approximation of semantic 114-116 6.2 concurrent C program slicing execution 116-117 6.3 Integrated stateless dynamic partial order reduction, slicing execution 117-121 6.3.1 clock vector 117-118 6.3.2 integrated stateful dynamic partial order reduction, slicing execution 118-121 6.4 integrated state of dynamic partial order reduction, slicing execution 121-125 6.4.1 clock vector-based stateful dynamic partial order reduction methods to achieve 121-122 6.4.2 integrated stateful dynamic partial order reduction method of slicing the implementation process . 122-125 6.5 modeling environment with the experimental results 125-128 6.5.1 Concurrent C program modeling environment 125-126 6.5.2 Experimental results 126-128 6.6 research 128-129 6.7 Summary 129-130 Chapter VII of the slice-oriented implementation of lightweight determine the process 130-143 7.1 complete integer linear formula to determine the method 131-134 7.2 for C source code verification to expand determine 134-136 7.3 slice implementation of the first-order logic verification formula to determine 136-139 7.4 validation tools and experimental results 139-141 7.5 work 141-142 7.6 Summary 142-143 Chapter VIII Conclusion 143-145 8.1 The summary of the work 143-144 8.2 Research Prospects 144-145 thank 145-147 References 147-156 author academic achievements obtained during the study period, 156-157

Related dissertations

  1. Research on Trustworthiness of Resource Adaptability for Internetware
    XiaZuo ·Anhui University of Engineering ·2013 ·Master's thesis
  2. Clocks Manipulation Applying to the Formal Verificationof Timed System
    GuiYaYun ·Shanghai University ·2013 ·Master's thesis
  3. Model Checking of FlexRay Communication Protocol
    GuoXiaoZuo ·Tianjin University ·2012 ·Master's thesis
  4. Research of Analysis Method in RBC Based on Model Checking
    SongHaiFeng ·Beijing Jiaotong University ·2014 ·Master's thesis
  5. Bread First Search Based Model Checking
  6. Research and Application on Key Technologies of Model Checking
    LiuZhiFeng ·Nanjing University ·2011 ·Doctoral dissertation
  7. Research on Safety Verification Techniques for Logic Control
    TianFengQi ·Northeastern University ·2010 ·Master's thesis
  8. The Research for State Reachability Relation of Uncertain Planning via Model Checking
    HuYuLong ·Xiangtan University ·2012 ·Master's thesis
  9. The Research of Effective Model Checking for Network Authentication Protocol
    TanZhiHua ·Hunan University ·2011 ·Master's thesis
  10. The Formal Modeling of Network Protocols and Discovery of Attacks Based on Model Checking
    MengGuoZhu ·Tianjin University ·2012 ·Master's thesis
  11. Research on Network Security Evalutation Technology Based on Attack Graph Model
    ChengYeXia ·Shanghai Jiaotong University ·2012 ·Master's thesis
  12. Formal model checking based authentication protocol
  13. The Improvement and Application of the PPTL Model Checker
  14. The Research on the Security of the RFID Mutal Authentication Protocol Base on EPC C1G2
    RongJiFang ·Hunan University ·2011 ·Master's thesis
  15. Toward Generating Optimization Actions of Twig Pattern
    LiuKe ·Beijing University of Technology ·2013 ·Master's thesis
  16. Process Calculus with Data Structure and Its Model Checking Algorithm
  17. Formal Modeling and Verification Research of Automatic Train Protection System
    XiongXiJiao ·East China Normal University ·2012 ·Master's thesis
  18. The Extension and Application of the Modeling,Simulation and Verification Tool
  19. Research on the Model Checking Algorithm Using Hadoop
    WeiGuang ·North China University of Technology ·2013 ·Master's thesis
  20. Research of Ada Program Model Checking Based on Program Slicing