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

Request the full text

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

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