Presentation is loading. Please wait.

Presentation is loading. Please wait.

Evidence-Based Verification Li Tan Computer Science Department Stony Brook Joint work with Rance Cleaveland Augest 2002.

Similar presentations


Presentation on theme: "Evidence-Based Verification Li Tan Computer Science Department Stony Brook Joint work with Rance Cleaveland Augest 2002."— Presentation transcript:

1 Evidence-Based Verification Li Tan Computer Science Department Stony Brook Joint work with Rance Cleaveland Augest 2002

2 Evidence-Based Verification Outline Part I. Evidence-based Verification. 1. Motivations. 2. The general framework. 3. Applications. Part II. Evidence-based Model Checking. 1. Introducing support set as checker-independent evidence. 2. Extracting support set from existing checkers. 3. Post-model-checking analysis based on support sets. 1. Efficiently certifying verification result. 2. Generating the diagnostic information. 3. Evaluating the quality of model-checking process. 4. Prototype work on the Concurrency Workbench (CWB-NC).

3 Evidence-Based Verification Automatic Verification Verification algorithm (checker) decides in a fully automatic fashion whether or not a transition system satisfies a property. A simple "Yes/No" may not satisfy users. Why does my design go wrong [CGMZ95]? Could my design satisfy the property trivially [KV99]? Can I trust the verification result [Nam01]?

4 Evidence-Based Verification Understanding the verification result To answer these questions, users may demand, 1. Diagnostic information. A diag. routine usually reuse the proof already computed by a checker, 1. Implementation requires the understanding of checkers. 2. Migrating a diag. routine onto a different checker requires changes on both diag. routine and checker. 3. Proof used for one diagnostic schema may not be suitable for a different schema. 2. Measurement on how well a system has been checked. 1. Currently we use “trial and error” strategy to find out unchecked subformula. 3. Evidence to support verification result. Currently we lack of the proof of correctness which is, 1. Independent of the checker, and 2. Able to be verified efficiently.

5 Evidence-Based Verification Checker 1Checker n Verifier Diagnostic schema 1..k Invalid Proof Checker 2 Certification of result Evaluating verification process … … Let the result carry its own certifiable and check- independent proof Portable Proof of Correctness

6 Evidence-Based Verification The general framework Defining abstract proof structures (APS). APS encodes the proof structures of different checkers in a standard form. APS may be used as the certification for correctness of result. APS is rich enough to support a variety of analyses, while still abstract enough to save the space. APS can be verified independently and efficiently. Extracting APS from existing checkers. Extraction should NOT compromise the complexities of checkers. Utilizing support set to perform diagnoses. Certifying verification result. Generating diagnostic information. Measuring the quality of verification process

7 Evidence-Based Verification Part II. Evidence-based Model Checking: An introduction by case study

8 Evidence-Based Verification Boolean Equation System=Temporal Property+Transition System

9 Evidence-Based Verification Support Set

10 Evidence-Based Verification Support Set

11 Evidence-Based Verification Support Sets (Continue) Support set reflects how a checker “reasons” model- checking problem. By properties 1 and 2, support set implies a fixpoint solution for BES. By property 3, support set respects the semantics of fixpoint operators in BES. Theorem 1 [TanCle02] There exists a support set  =, [ E ](X)=r.

12 Evidence-Based Verification Support sets for other temporal logics Boolean equation system (BES)=transition system + temporal property. Model checkers explicitly or implicitly construct BES. Variables in BES stands for pairs of subformula and state in transition system. Decorated support set, where  =, resolves subformulas and states associated with the variables in  In our example,  T (X 0 )= s 0 ……   (X 0 )= AG(a ) AF b) ……

13 Evidence-Based Verification Extracting Support Set The extraction is, practical. Support sets can be extracted from a wide range of existing checkers, Boolean-Graph algorithm [And92], Linear Alternation- Free algorithms[CleSte91], On-the-fly algorithms for full  -calculus LAFP [LRS98] and SLP [TanCle02b], Automaton-based model checkers([BhaCle96a] and [KVW00]). efficient. The overhead doesn't affect the original complexities of these checkers. simply. We only need to record the immediate dependency of variables.

14 Evidence-Based Verification Application I: Certifying model-checking results Checking (a) and (b) can be done in linear time. Checking (c) can be reduced to even- loop problem (a O(n log ad) problem[KKV01]). Model checking is a NP Å co-NP problem [EmeJutSis93]. The cost of certifying results < The cost of model checking.

15 Evidence-Based Verification Application II: Generating Counterexample 1. Reducing a support set to a linear support set, Support Set h r, X,  i is linear if |  (X i )| · 1 for every X i defined on .

16 Evidence-Based Verification Application II: Generating Counterexample (Cont.) A counterexample can be generated by, “Projecting” linear support set on states Removing the redundant steps, h s, X’ i should be removed if … h s, X i, h s, X’ i is not interleaved with a modal operator.

17 Evidence-Based Verification Application III: Evaluate the quality of MC A positive result may hide the problem T may pass AG(c ) AF b) trivially because c never occurs in T. Is there the status of a state (Minicoverage [CKV01]) or a subformula (Vacuity [KV99]) irrelevant to the result? Coverage problem of support set. Has support set covered all the states and properties?

18 Evidence-Based Verification Evaluate the quality of Model-checking process (Cont.) 1. The support set for s 0 ² AG(c ) AF b) is like, 2. AF b is not covered ) AF b is not checked.

19 Evidence-Based Verification Furture Work I: A Client-Server Model for model checking Server: checkers Inputting system and properties encoded in some temporal logic. Outputting support set. Client: user interface, diagnostic generation, and evidence-verifier. Design Systems and Properties Abstract Proof Structures

20 Evidence-Based Verification Future Work II: Proof-Carrying Code Mobile code [Nec97] carries its own proof attesting to its safeness. Currently compilers are modified to produce the proof for a predefined set of safety rules. Integrate support-set-ready model checkers with compilers. Certifying compiler enjoy the richness of temporal logics.

21 Evidence-Based Verification A Prototype on CWB-NC

22 Evidence-Based Verification Conclusion C heckers produce abstract proof structures as evidence. Extracting APS won't affect the complexities of checkers. APS provides the portable evidence for justifying verification result. Applications of APS. Efficiently certifying the verification result. Evaluating the quality of verification. Generating a wide range of diagnostic information. APSs are defined for Model checking, Equiv. checking, and Preordering Checking.

23 Evidence-Based Verification A Prototype on CWB-NC

24 Evidence-Based Verification Conclusion C heckers produce support sets as evidence. Support set is independent of checker. Extracting support sets won't affect the complexities of checkers. Support set justifies the correctness of result. Support set attests to the quality of verification. A wide range of diagnostic information can be built on support set. Linear Counterexample and witness. Synthesizing winning strategy for model-checking game. Vacuity Detection and Coverage Metrics.


Download ppt "Evidence-Based Verification Li Tan Computer Science Department Stony Brook Joint work with Rance Cleaveland Augest 2002."

Similar presentations


Ads by Google