1 / 46

Overview of IC3/PDR

Overview of IC3/PDR. Anvesh Komuravelli Carnegie Mellon University. SAT-Based Bounded Model Checking (BMC). Is there an execution leading to error in < k steps, beginning in I ?. (< k )-reachable ?. BMC + k -Induction.

miller
Download Presentation

Overview of IC3/PDR

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Overview of IC3/PDR AnveshKomuravelli Carnegie Mellon University

  2. SAT-Based Bounded Model Checking (BMC) Is there an execution leading to error in < ksteps, beginning in I ? (<k)-reachable?

  3. BMC + k-Induction Is there an execution leading to error in < ksteps, beginning in I ? Is there an execution leading to error in ksteps, beginning in P? (<k)-reachable? k-inductive?

  4. Downside of k-Induction P may not be inductive for any k ! (<k)-reachable? k-inductive?

  5. Strengthen P ! reachable states

  6. BMC + Interpolation (McMillan ‘03) Many improvements followed (k-1) k-reachable? … (k-1) Approximate Forward-Reachability! If abstract counterexample found, start all over again with a bigger k k-reachable?

  7. Forward-Reachability in a nutshell Initial States Over-approximations No counterexample of length (k-1) from Fn No counterexample of length (k-1)+1 from Fn-1 … Also, w.l.o.g., assume that :

  8. Formalizing BMC + Interpolation Abstract Transition System

  9. Formalizing BMC + Interpolation State triple Abstract Transition System

  10. Formalizing BMC + Interpolation Abstract Transition System Downsides • Blow-up in SAT formula size as k gets big • Resolution proof of UNSAT is non-trivial to obtain

  11. A different search strategy Let us restrict to 1-reachable queries ? ? …

  12. A different search strategy Let us restrict to 1-reachable queries … ?

  13. A different search strategy Let us restrict to 1-reachable queries …

  14. A different search strategy Let us restrict to 1-reachable queries

  15. Formalizing the new search strategy

  16. Formalizing the new search strategy Checks k-reachability by explicit state backward search !

  17. CDCL – Local Interpolants Given Find Use algorithms to minimize cores (MUS)

  18. CDCL – Local Interpolants Given Find t …

  19. CDCL – Local Interpolants Given Find … Strengthen Fi+1

  20. CDCL – Local Interpolants Hence, … Strengthen Fi+1

  21. CDCL – Local Interpolants Hence, … Strengthen Fi

  22. Formalizing the new search strategy

  23. Forward Propagation t is bad for Fi+2 as well! Can we reuse φ? t …

  24. Forward Inductive Propagation Given Find

  25. Forward Inductive Propagation Given Find unsat

  26. Forward Inductive Propagation Given Find unsat

  27. Formalizing the new search strategy

  28. Forward Propagation Block φ or s at Fi+2, Fi+3, … …

  29. Long Counterexamples! Block φ or s at Fi+2, Fi+3, … … k … m

  30. Formalizing the new search strategy

  31. Generalizing Predecessors Given Find cube

  32. Generalizing Predecessors Given Find cube cube

  33. Generalizing Predecessors Given Find Ternary Simulation T − − − − − − … … … − − − − − −

  34. Generalizing Predecessors ? …

  35. Generalizing Predecessors ? …

  36. Generalizing Predecessors … …

  37. Formalizing the new search strategy

  38. IC3/PDR !

  39. To summarize… Fi is in CNF • 1-step reachability queries • Generalizing Predecessors • Local Interpolants • Forward Inductive Propagation • Reusing Counterexamples

  40. To summarize… • Competitive with variants of McMillan’s Interpolation • 3rd place in HWMCC’10 – competing with well-established tools • Well received by hardware industry • Implemented in Berkeley’s ABC tool • Extensions to progress and CTL properties • Extensions to LRA – implemented in Z3

  41. Efficient Implementation of IC3/PDR Fi is in CNF

  42. Decide/Conflict Rules Assumptions A Y N Ternary Simulation

  43. Conflict Rule ✗ MUS extraction to get If none, add to F∞ pushing the clause to higher levels Additionally, least j ≥ i such that

  44. Induction Rule Similar to Conflict Rule, with repeated checks!

  45. Extending to First-order Theories ∞ state Generalizing Predecessors can do some theory-generalization Local Interpolants ? LRA : Linear combination of literals (Hoder and Bjorner, 2012)

  46. References SAT-Based Model Checking without Unrolling, Bradley, VMCAI 2011 Efficient Implementation of Property Directed Reachability, Een, Mishchenkoand Brayton, FMCAD 2011 An Incremental Approach to checking Progress Properties, Bradley et al., FMCAD 2011 Understanding IC3, Bradley, SAT 2012 Generalized Property Directed Reachability, Hoderand Bjorner, SAT 2012 Incremental, Inductive CTL Model Checking, Hassan et al., CAV 2012

More Related