The Design and Implementation of an Automated Model Checking Oriented Model Extractor

Author
WangDaWei
Advisor
ZhangDaFang
School
Hunan University
Major
Computer Science and Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2009
Downloads
105
Citations
0

Request the full text

Abstract

With the increasing complexity of computer software , and how to ensure the correctness and reliability become very pressing issue . Model checking is a formal methods of verifying finite state systems temporal logic properties have been obtained in the field of hardware circuits , drivers and security agreement was a great success . The difficulty of the application of model checking technology to high-level programming language implementation system to extract the abstract model , the usual way is to manually construct . However, this approach has some shortcomings , such as high cost , easy to introduce modeling error , strong demand therefore be extracted directly from the source code to validate the model . Bell Labs developed the SPIN model checking tools , modeling language PROMELA C language is the most widely used programming language in the world , the main contents of this paper is positioned in ANSI-C program model extraction technology SPIN automated model checking C programs , so as to achieve the purpose . This article has designed a set of ANSI-C program model extraction method to deal with most of the language features of C , in particular, several complex structures , such as recursive function , enumerated types and pointers . And the development of a model extraction tool C2Spin . From the the function , C2Spin divided into the front-end and back-end . The front end is a parser with C source code for lexical analysis and parsing functions . The back-end is a converter system conversion from C code to PROMELA code . Moreover, the speed model extraction in order to reduce the size of the model , or to improve the efficiency of the implementation of the model , C2Spin using some simple abstraction mechanisms and optimization techniques . C2Spin significantly reduces the overhead of modeling . The nature of the binding C2Spin, SPIN can automatically detect multiple errors in applications written in the C language , such as deadlock . The authors use C2Spin a certain number of test . Experiment rely on C2Spin generated model , we found a SPIN4.3.0 semantic errors , as well as Holzmann livelock error of two classic mutual exclusion algorithm implementations . Therefore, we believe the C2Spin has some practical value in the detection of the ANSI-C program .

Table of contents

Abstract 5-6 Abstract 6-10 the illustration index 10-12 the Schedule index 12-13 Chapter 1 Introduction 13-21 the background and significance of the 1.1 topics 13-16 1.1.1 Background 13-15 1.1.2 research significance 15-16 1.2 research status 16-18 1.2.1 abroad work 16-17 1.2.2 domestic 17-18 1.3 research content 18-19 1.4 of this article organizational structure 19-21 Chapter 2, the model checking tool SPIN 21-34 2.1 Overview of model checking 21-23 2.2 SPIN's basic principle 23-31 2.2.1 the SPIN About 23-25 2.2.2 automata theory 25-26 2.2.3 search algorithm 26-27 2.2.4 partial order reduction 27-30 2.2.5 Storage Optimization 30-31 2.3 linear temporal logic 31-32 2.4 Summary 32-34 Chapter 3 model extraction tools C2Spin 34-46 3.1 ANSI-C language standard 34 3.2 C2Spin design 34-36 3.3 C2Spin realization 36-42 3.3.1 overall structure 36-37 3.3.2 C2Spin parser implementations 37-41 3.3.3 C2Spin converter implementation 41-42 3.4 C2Spin the use 42-45 3.5 Summary 45-46 4th of Chapter C2Spin converter Design and Implementation 46-62 4.1 PROMELA language 46-49 4.1.1 data types 46-47 4.1.2 data structure 47 4.1.3 process 47 4.1.4 message pipe 47-48 4.1.5 Control flow 48-49 4.1.6 atomic sequence 49 4.2 C99 with PROMELA 49-50 4.3 conversion model 50-60 4.3.1 Basic data types 50-51 4.3.2 variable scope to manage 51 4.3.3 structure type 51-52 4.3.4 enum type 52 4.3.5 pointer model 52-54 4.3.6 Control statements model 54-55 4.3.7 Function Model 55-60 4.4 model optimization 60-61 4.5 Summary 61-62 Chapter 5, experiments and analysis 62-68 5.1 experimental environment 62 5.2 mutual exclusion algorithm 62-66 5.2.1 deadlock nature 62-64 5.2.2 livelock nature 64-66 5.3 SPIN's bug 66-67 5.4 Summary 67-68 concluded 68-70 the References 70-76 Acknowledgements 76-77 Appendix A to pursue a degree during the published papers 77-78 the Appendix B degree during participation in research activities 78

Related dissertations

  1. E-commerce Protocol Analysis and Verification Based on SPIN Model Checking
  2. Research of Ada Program Model Checking Based on Program Slicing
  3. The Spin Model Checker Research and Application
    WangQiaoLi ·Guizhou University ·2006 ·Master's thesis
  4. Security Protocol Analysis and Verification Based on Model Checker SPIN
    SunShouQing ·Lanzhou University ·2006 ·Master's thesis
  5. Process Modeling and Verification of Service Oriented Architecture
    ZhangXiaoYan ·Beijing Jiaotong University ·2010 ·Master's thesis
  6. The Verification Method of UML Interactive Charts Based on Model Checking
    ChenDong ·East China Normal University ·2009 ·Master's thesis
  7. SPIN model checker mechanism of formal analysis and application
    LiuQiaoWei ·Nanchang University ·2008 ·Master's thesis
  8. The Effective Analysis System of Network Security Protocol
    WuChang ·Nanchang University ·2008 ·Master's thesis
  9. Composition Abstraction Spin Model Checking Based on Promela and Its Application
    ChenDaoXi ·Suzhou University ·2009 ·Master's thesis
  10. Based on the design and implementation of model checking , model-driven development system
    GongAiMin ·East China Normal University ·2008 ·Master's thesis
  11. SPIN protocol based on formal analysis and verification
    FengJie ·Guizhou University ·2009 ·Master's thesis
  12. The Analysis of Model Checking and Verification System of Network Security Protocol
    ChengYing ·Nanchang University ·2010 ·Master's thesis
  13. Formal model checking based authentication protocol
  14. The Improvement and Application of the PPTL Model Checker
  15. The Socket Communication Program Analysis System Based on SPIN
    YuLiQuan ·Nanchang University ·2012 ·Master's thesis
  16. Trusted Transmission of VoIP Traffic and Formal Verification
    QinYing ·Beijing Jiaotong University ·2013 ·Master's thesis
  17. The Formal Modelling and Model Checking Research of Rail Transportation Train Control System
    YanFei ·Beijing Jiaotong University ·2006 ·Doctoral dissertation
  18. Computer communication network security protocol analysis
  19. Hierarchical Formal Modeling and Verification Train Control System
    LvJiDong ·Beijing Jiaotong University ·2011 ·Doctoral dissertation
  20. A Study on Formally Modeling and Verifying the Composition of Web Services
    BaoLi ·Dalian Maritime University ·2009 ·Doctoral dissertation