Properties Description and Verification of C Program Based on Specification Patterns

Author
ZuoChunHua
Advisor
ZhangGuangQuan
School
Suzhou University
Major
Applied Computer Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2007
Downloads
48
Citations
0

Request the full text

Abstract

With the increasing complexity of software applications continues to expand, it is increasingly urgent demand for software reliability, and how to ensure the reliability of the software to become a focus of the field of software engineering. Traditional software testing can only find an error, and can not guarantee that the program is correct. Formal methods is considered to be an effective way to address the reliability of the software, but the formal language is more difficult to grasp, the average developer direct writing is more difficult. Based on this, based on the Statute of the model used to describe the nature of the C program semi-formal language C-PDL conversion process from C-PDL to the model checker SPIN input language, and finally SPIN verification C whether the program to meet the nature of the C-PDL description. Statute mode according to the commonly used temporal logic formula made of a semi-formal abstract expression pattern, with its description of the nature of the corresponding LTL expression. The semantics of the existing Statute mode than the vague, resulting in its description of the nature of LTL expression corresponding to different, there are two versions of the SPS and Prospec. SPS standards to verify LTL expression SPIN-based tool, and correct the Statute of the semantics of the model, based on validation results to ensure that they are consistent. C program is described in a series of state transitions, the introduction of the Statute mode to describe the nature of the program. More intuitive to express the nature of the program and find exactly the wrong path, this extension of the traditional state, so that it includes not only the value of the variable, also includes location information, location information can be targeted to specific lines of code. This paper presents the C-PDL is a semi-formal language to describe the nature of the C program the Statute mode, the extended state of the constituent elements and increase description assertion expression patterns, able to describe the dynamic of sequential programs and concurrent programs the nature and procedures of invariants. Spin can not verify the nature of the C-PDL description, the paper studies the conversion process from C-PDL to SPIN input language. In this paper, the alternating-bit and producer-consumer on the basis of the above work, for example, using the C-PDL description of the procedural nature and properties omitted independent code based on SPIN C program meets these properties. To prove the correctness of the ability to express C-PDL language conversion process as well as input from the C-PDL to SPIN Through this process, at the same time it can be seen, this method can not only ensure the correct procedure for certain properties, but also to facilitate Looking for a wrong path.

Table of contents

Chinese Abstract 3-4 ABSTRACT 4-5 Chart Index 5-8 The first chapter 8-12 1.1 Background 8-9 1.2 Research 9-10 1.3 This research 10-11 1.4 This organizational structure 11-12 Chapter II model checker SPIN Profile 12-23 2.1 model checking technology overview 12 2.2 SPIN Tools Overview 12-13 2.3 PROMELA Language Introduction 13-19 2.4 Linear Temporal Logic Introduction 19-21 2.5 verify the results of the format 21-22 2.6 Chapter Summary 22-23 Chapter III of the Statute pattern analysis and verification 23-44 3.1 Statute of the model outlined 23-29 3.1.1 nature and mode of manifestation semantic description 23-24 3.1.2 Time Range mode manifestations and semantic description 24-25 3.1.3 Statute mode corresponding LTL expression 25-29 3.2 of the Statute of the SPIN model-based verification 29-40 3.2.1 verify the nature of the data model selection method 30-32 3.2.2 Data verification time range mode selection method 32-34 3.2.3 partial validation results 34-40 3.3 Statute mode precise semantic description 40-42 3.3.1 describe the nature of the semantic model 40-41 3.3.2 Time Range mode semantic description 41-42 3.4 Summary 42-44 Chapter IV describes the nature of the C program language C-PDL 44-57 4.1 Nature Description Language Overview 44 4.2 Nature Description Language C-PDL 44-48 4.2.1 C-PDL overall structure 45 4.2.2 HornDeclPart part 45-47 4.2.3 WherePart part 47-48 4.2.4 AssertionPart part 48 4.3 ALTERNATING-BIT nature of the agreement described 48-52 4.3.1 alternating-bit protocol corresponding C program 49-51 4.3.2 C-PDL-based description of the nature 51-52 4.4 C-PDL to SPIN input language conversion rules 52-56 4.4.1 HornDeclPart conversion rules 53-54 4.4.2 WherePart conversion rules 54 4.4.3 AssertionPart conversion rules 54-55 4.4.4 alternating-bit protocol properties corresponding LTL expression 55-56 4.5 Chapter Summary 56-57 Chapter C-PDL-based C program examples formal verification 57-76 5.1 ALTERNATING-BIT agreements formal verification 57-70 5.1.1 Promela model 57-61 5.1.2 SPIN based verification results 61-70 5.2 PRODUCER-CONSUMER formal verification 70-74 5.2.1 producer-consumer corresponding C program 70 5.2.2 producer-consumer nature of the description 70-71 5.2.3 Promela model 71-72 5.2.4 SPIN based verification results 72-74 5.3 Chapter Summary 74-76 Chapter Summary 76-77 6.1 thesis work summarizes 76 6.2 Looking further 76-77 References 77-81 participate in research projects during the master's degree and published (hiring) papers 81-82 Thanks 82-84 detailed summary 84-86

Related dissertations

  1. The Formal Verification and Improvement of 802.1X Protocol Based on SPIN
  2. Research on AADL model transformation and verification
    LiuZuo ·Shaanxi Normal University ·2013 ·Master's thesis
  3. Functional Verification of YHFT-DX High Performance DSP
  4. Measurement of Extremely Feeblest Magnetic Information in Magnetic Exchange Force Microscopy Using Ferromagnetic Resonance
    XueHui ·University of North ·2014 ·Master's thesis
  5. First-principles Study of Cr-doping NiAs-type and Zinc-blend-type MnTe
    ZhangSi ·Shenyang Normal ·2014 ·Master's thesis
  6. The Search of Parallel and Complete Model Checking Technology
  7. Formal model checking based authentication protocol
  8. The Improvement and Application of the PPTL Model Checker
  9. Formal Verification of Real-time Operating System in Binary Code Level
    ShiJianZuo ·East China Normal University ·2012 ·Doctoral dissertation
  10. A Requirements Verification Supporting Tool for Embedded Systems
    WangMengJia ·Jilin University ·2012 ·Master's thesis
  11. Research of Ada Program Model Checking Based on Program Slicing
  12. Software Trustworthiness Mesurement Based on Model Checking
    HanZuo ·Beijing University of Technology ·2012 ·Master's thesis
  13. The Socket Communication Program Analysis System Based on SPIN
    YuLiQuan ·Nanchang University ·2012 ·Master's thesis
  14. Analysis and Verification of Security Authorization for Role Based Access Control System
    ZhangZuo ·Hunan University ·2011 ·Master's thesis
  15. Research on Methodology of Formal Design and Verification for Security Operating System
    QianZhenJiang ·Nanjing University ·2013 ·Doctoral dissertation
  16. Application of model checking to the formal verification of security protocols
  17. A Research Approach to Model Abstraction Based on Assertion Graph
  18. Lattice-valued Quantitative Verification of State Transition Systems
    PanHaiYu ·East China Normal University ·2012 ·Doctoral dissertation
  19. Research on Property and Application of Spiking Neural P Systems
    PengXianWu ·Central South University ·2013 ·Doctoral dissertation
  20. Research on Coal Gas Detection and Communication Protocol in WSN
    FanXue ·Jiangnan University ·2012 ·Master's thesis