Model checking method based on memory and state management
- Author
- WangYongHu
- Advisor
- WuLiJun
- School
- University of Electronic Science and Technology
- Major
- Information and Communication Engineering
- Classification
- TP274 Data processing, data processing system
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 21
- Citations
- 0
Abstract
Model checking is an automated formal verification technology, mainly used fordetection of hardware and software design models, in which model specification isgiven by the temporal logic formula. Model checking takes the model described by theuser as input, and then found if the assumption of the model which the user asserts isvalid or not. If not, it can produce a counter-example of the running trajectory.Due to the existence of sate space explosion problem, there is no enough memoryto hold all the states of some system needed to be verified. This is the bottleneck inlarge-scale concurrent system verification.on-the-fly model checking,Applying automata theory to model checking, in manycases may not be needed to construct the entire system state space. This is becausewhile checking the emptiness of the language accepted by both automata, the state ofsystem automata A is constructed only when needed.The advantage of on-the-fly model checking, when detecting the language acceptedby system automata A and property automaton Sis that some state of A would never begenerated at all. Another advantage is that, before completing the delivery construct ofthe two automata, we may have found a counter-example. Once you find a counterexample, there is no need to continue to construct the product automaton.During on-the-fly model checking, product automaton’s statesare generateddynamically by the double depth first research algorithm。We analyze the memory usageof the double depth-first algorithm in the checking process.In the process, two stacks areneeded to conduct the search progress.If the system is large, searching path may be verylong, whichmeans that there are a lot of states are stored in stacks.By using database, we can store states that temporally not needed in to externalmemory, and then reduced the memory needed.Therefore we increased the ability ofspin in model checking.We present two ways to utilize the database:a static state and memory managementmethod and a dynamic state and memory management method.When use the strategydescribed above, memory thrashing may be occur during transferring states between memory and disk. We provide memory state management strategies to solve thisproblem.We implement our algorithm on the basis of SPIN, motivated by utilizing datastructure, states manipulating strategy and input and output methods of SPIN.In the last,we analysis the result of experiments we do, to find out the practical effect of thedynamic management of memory in t the algorithm. Besides, we give theadvantage inthe actual operation of the algorithm and future work.
Table of contents
Summary 4-6
ABSTRACT 6-11
Chapter 1 Introduction 11-15
1.1 Background and Significance 11 - 12
1.2 topics of research status major work 12-13
1.3 papers organizational structure 13-14
1.4 article 14 - 15
Chapter II model testing and related technology temporal logic 15-30
2.1 linear 15-20
2.1.1 LTL syntax 15-16
2.1.2 LTL semantics 16-18
important equivalence between 2.1.3 LTL formula 18-19
2.1.4 LTL appropriate conjunctions 19-20
2.2 model checking 20-23
2.2.1 MC overview 20
2.2.2 MC process 20-21
2.2.3 LTL model checking algorithm 21-23
2.3 Büchi automata 23-27
2.3.1 general Büchi automaton 23-24
2.3.2 detects an empty set 24-27
2.4 On-the-fly model checking 27-29
2.5 Summary 29-30
Chapter SPIN structural analysis and briefing 30-40
3.1 Overview 30-31
3.1.1 SPIN history 30-31
3.1.2 SPIN advantage of 31
3.2 SPIN theoretical foundation basic structure 31-33
3.2.1 SPIN 's 31-32
3.2.2 SPIN works 32-33
3.3 SPIN basic data structures 33-35
3.3.1 state vector 33-35
3.3.2 DFS stack 35
3.3.3 has traversed the state set 35
3.4 SPIN input language 35 -39
3.4.1 Promela Language Introduction 35-39
3.5 Summary 39-40
Chapter IV algorithm description and analysis 40-57
4.1 memory management techniques and state 40-47
4.1.1 fixed memory management technology 40-44
4.1.2 dynamic memory management technology 44-47
4.2 based on dynamic memory path search algorithms and state management 47-52
4.2.1 Search counterexample path 47-50
4.2.2 counterexample the path calculation 50
4.2.3 correctness of the algorithm 50-52
4.3 fixed memory based path search algorithms and state management 52-55 <br / > Search 4.3.1 path 52-54
4.3.2 calculate counterexample path 54-55
4.3.3 algorithm correctness proof 55
4.4 Summary 55-57
Chapter algorithm and experimental 57-74
5.1 algorithm 57-67
5.1. a development environment 58
5.1.2 data structure introduced 58-59
5.1.3 function description and analysis 59-60
5.1.4 state handling 60
5.1.5 design and implementation 60-67
5.2 experiment 67-72
5.2.1 design experiments 67 -68
5.2.2 Bakery (8), P3 68-70
5.2.3 Peterson (4), P4 70-71
5.2.4 Elevator2 (16), P4 71-72
5.3 Summary 72-74
Chapter VI Conclusion 74-75
Thanks 75 -76
References 76-78
Related dissertations
- Research on Abstraction for Model Checking Cache Coherence Protocol
- Research on Trustworthiness of Resource Adaptability for Internetware
- Clocks Manipulation Applying to the Formal Verificationof Timed System
- Model Checking of FlexRay Communication Protocol
- Research of Analysis Method in RBC Based on Model Checking
- Bread First Search Based Model Checking
- Research and Application on Key Technologies of Model Checking
- Research on Safety Verification Techniques for Logic Control
- The Research for State Reachability Relation of Uncertain Planning via Model Checking
- The Research of Effective Model Checking for Network Authentication Protocol
- The Formal Modeling of Network Protocols and Discovery of Attacks Based on Model Checking
- Research on Network Security Evalutation Technology Based on Attack Graph Model
- Formal model checking based authentication protocol
- The Improvement and Application of the PPTL Model Checker
- The Research on the Security of the RFID Mutal Authentication Protocol Base on EPC C1G2
- Toward Generating Optimization Actions of Twig Pattern
- Process Calculus with Data Structure and Its Model Checking Algorithm
- Formal Modeling and Verification Research of Automatic Train Protection System
- The Extension and Application of the Modeling,Simulation and Verification Tool
- Research on the Model Checking Algorithm Using Hadoop