Analysis and Application of Software Model Checking Based on JPF

Author
YinChuanWen
Advisor
XiaoMeiHua
School
Nanchang University
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2009
Downloads
62
Citations
1

Request the full text

Abstract

Formal method is one of the most important ways to promote the safety and reliability of concurrent system. Model checking is a method for formally verifying finite-state concurrent systems, and has been used to verify the safety and reliability of various software. The biggest problem in software model checking is how to constrain the state space explosion.JPF(Java Pathfinder) is a kind of explicit state model checker for Java bytecode. It’s a good method using JPF to implement a software model checker, especially for the concurrent programs, where there are some potential defects like deadlock and data-race, JPF can find those defects efficiently. Moreover, the unhandled exception can also be checked successfully, which is Java runtime related. As we know, JPF workes on the JVM which can search and manage the system states, and produces transitons by the Heuritic Choice Generator. JPF’s flexibility is achieved by an architecture that provides a large number of extension points, of which the most important ones are SearchListener, VMListener, MJI, Bytecode factories and Publishers. According to the features of Java codes, JPF provides a series of available approaches, such as Partial Order Reduction, Symmetry Reduction, Predicate Abstraction and so on.Based on the introduction of the theory and implement of JPF, this paper proposed a general kind of strategy for designing a software model checker, include state management, searching strategy, environment simulation ect. And it developed a verifying platform on Eclipse as a Java model checker, with which programmers can verify their codes when they have finished designing a Java-Class. Futher more, in the case of focousing only on the location where errors happen, here add an extended function to the platform by ignoring the details of a counterexample, in order to speed the progress of Java model checking. Though verifying a series of instances of Java program, the results showed that the general strategy we suggested for designing a software model checker is effective, and the Java model checking platform mentioned above is quit reliable.JPF has played a very import role in improve the safety, quanlity and bugs-finding of software in Java, which will be very popular in future. It’s worthy forus to do more research on it.

Table of contents

Abstract 3-4 ABSTRACT 4-9 Chapter 1 Introduction 9-13 1.1 topics background 9-10 < br /> 1.2 related technical brief 10-12 1.2.1 formal verification methods 10 1.2.2 JPF 10-12 1.3 the main contents 12-13 Chapter 2 basic theory 13-25 2.1 model checking 13-16 2.1.1 model Checking process 13-14 2.1.2 model represents 14-15 2.1.3 describe the nature and LTL logic 15 2.1.4 model Checking algorithm 15-16 2.2 software model checking 16-21 2.2.1 predicate abstraction 16-18 2.2.2 counterexample guided abstraction refinement 18-19 2.2.3 source code for software model checking 19-21 2.2.4 software model checking tools 21 2.3 Java model checking 21-24 2.3.1 Java program features 22-23 2.3.2 state explosion feasible solutions 23-24 <br / > 2.4 Summary 24-25 Chapter 3 JPF -based Java program verification 25-35 3.1 JPF works 25-27 3.2 JPF architecture 27-29 3.3 JPF key technology 29-34 3.3.1 explicitly state backtracking 29 3.3. two strategies to reduce the number of states 29-30 3.3.3 partial order and symmetry Statute Statute 30-32 3.3.4 kernel extension , state matching and running path configuration 32-33 3.3.5 symbolic execution 33-34 3.4 Summary 34-35 Chapter 4 software model checking tool design strategy 35-51 4.1 generic kernel component 35-40 4.1.1 state management 35-38 4.1.2 Search strategy 38 < br /> 4.1.3 environmental Simulation 38-40 4.2 system submenu 40-47 4.2.1 object Factory 40-42 4.2.2 process Model Interface 42-43 4.2.3 listener 43-46 4.2.4 reporting System 46-47 4.3 system interaction 47-50 4.3.1 code label 48 4.3.2 open Authentication API 48-50 4.4 Summary 50-51 Chapter 5 Java programming model checking platform development 51-62 5.1 JPF function expansion method 51-52 5.1.1 static configuration 51-52 5.1.2 dynamic configuration 52 5.2 design and Implementation 52-60 5.2.1 OSGI 53-54 5.2.2 Eclipse plug-in development 54-56 5.2.3 JPF 's Eclipse -based model checking platform 56-60 5.3 lightweight custom error trace listener 60-61 5.4 Summary 61-62 Chapter 6 platform application examples 62-70 6.1 parallel correlator 62-65 6.1.1 deadlock 62-63 6.1.2 data competition 63-65 6.2 unhandled exception 65 - 66 6.3 other 66-69 6.3.1 random Number problem 66-68 6.3.2 dining philosophers problem 68-69 < br /> 6.4 Summary 69-70 Chapter 7 Conclusion and Outlook 70-73 7.1 Conclusion 70-72 7.2 for further work direction 72-73 Thanks 73-74 References 74-77 Appendix A configuration file 77-79 < br /> during the study for a degree of research 79

Related dissertations

  1. Model checking method based on memory and state management
  2. Software Performance Analysis Based on Stochastic Petri Nets
    LiZuoZuo ·China University of Petroleum ·2007 ·Master's thesis
  3. Modeling and Analysis of Ethernet and CAN Bus With DSPN
    ZhuHongLi ·Tianjin University ·2004 ·Master's thesis
  4. AJAX technology in dyeing intelligent optimization and business information systems
    WangDong ·Zhejiang University ·2006 ·Master's thesis
  5. Design and Validation of Credit Card System for Department Stores
    XiaoJingLei ·East China Normal University ·2009 ·Master's thesis
  6. Petri net -based research network protocols
    GuMingJia ·Jiangnan University ·2009 ·Master's thesis
  7. Research on Abstraction for Model Checking Cache Coherence Protocol
  8. Research on Verification of Web Service Based on Abstraction Refinement and Combination Technology
    RenQiang ·Suzhou University ·2011 ·Master's thesis