Download presentation

Presentation is loading. Please wait.

Published byArron Morgan Modified about 1 year ago

1
© Anvesh Komuravelli IC3/PDR Overview of IC3/PDR Anvesh Komuravelli Carnegie Mellon University

2
© Anvesh Komuravelli IC3/PDR (

3
© Anvesh Komuravelli IC3/PDR (

4
© Anvesh Komuravelli IC3/PDR (

5
© Anvesh Komuravelli IC3/PDR Strengthen P ! reachable states

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

7
© Anvesh Komuravelli IC3/PDR Forward-Reachability in a nutshell Initial States Over-approximations Also, w.l.o.g., assume that : No counterexample of length (k-1) from F n No counterexample of length (k-1)+1 from F n-1 … No counterexample of length (k-1) from F n No counterexample of length (k-1)+1 from F n-1 …

8
© Anvesh Komuravelli IC3/PDR Formalizing BMC + Interpolation RuleConditionTransition Init − Unfold Refine Unsafe return UNSAFE Safe return SAFE Abstract Transition System

9
© Anvesh Komuravelli IC3/PDR Formalizing BMC + Interpolation RuleConditionTransition Init − Unfold Refine Unsafe return UNSAFE Safe return SAFE Abstract Transition System State triple

10
© Anvesh Komuravelli IC3/PDR Formalizing BMC + Interpolation RuleConditionTransition Init − Unfold Refine Unsafe return UNSAFE Safe return SAFE Downsides Blow-up in SAT formula size as k gets big Resolution proof of UNSAT is non-trivial to obtain Abstract Transition System

11
© Anvesh Komuravelli IC3/PDR … ? ? A different search strategy Let us restrict to 1-reachable queries

12
© Anvesh Komuravelli IC3/PDR ? … A different search strategy Let us restrict to 1-reachable queries

13
© Anvesh Komuravelli IC3/PDR A different search strategy Let us restrict to 1-reachable queries …

14
© Anvesh Komuravelli IC3/PDR A different search strategy Let us restrict to 1-reachable queries

15
© Anvesh Komuravelli IC3/PDR Formalizing the new search strategy RuleConditionTransition Init − Unfold Candidate Decide Conflict Unsafe return UNSAFE Safe return SAFE

16
© Anvesh Komuravelli IC3/PDR Formalizing the new search strategy RuleConditionTransition Init − Unfold Candidate Decide Conflict Unsafe return UNSAFE Safe return SAFE Checks k-reachability by explicit state backward search !

17
© Anvesh Komuravelli IC3/PDR CDCL – Local Interpolants Given Find Use algorithms to minimize cores (MUS)

18
© Anvesh Komuravelli IC3/PDR … CDCL – Local Interpolants Given Find t

19
© Anvesh Komuravelli IC3/PDR … Strengthen F i+1 CDCL – Local Interpolants Given Find

20
© Anvesh Komuravelli IC3/PDR … Strengthen F i+1 CDCL – Local Interpolants Hence,

21
© Anvesh Komuravelli IC3/PDR … Strengthen F i CDCL – Local Interpolants Hence,

22
© Anvesh Komuravelli IC3/PDR RuleConditionTransition Init − Unfold Candidate Decide Conflict Unsafe return UNSAFE Safe return SAFE Formalizing the new search strategy

23
© Anvesh Komuravelli IC3/PDR … Forward Propagation t is bad for F i+2 as well! Can we reuse φ? t

24
© Anvesh Komuravelli IC3/PDR Forward Inductive Propagation Given Find

25
© Anvesh Komuravelli IC3/PDR Forward Inductive Propagation Given Find unsat

26
© Anvesh Komuravelli IC3/PDR Forward Inductive Propagation Given Find unsat

27
© Anvesh Komuravelli IC3/PDR RuleConditionTransition Init − Unfold Candidate Decide Conflict Induction Unsafe return UNSAFE Safe return SAFE Formalizing the new search strategy

28
© Anvesh Komuravelli IC3/PDR … Forward Propagation Block φ or s at F i+2, F i+3, …

29
© Anvesh Komuravelli IC3/PDR … Long Counterexamples! k m … Block φ or s at F i+2, F i+3, …

30
© Anvesh Komuravelli IC3/PDR RuleConditionTransition Init − Unfold Candidate Decide Conflict Induction Unsafe return UNSAFE Safe return SAFE Formalizing the new search strategy

31
© Anvesh Komuravelli IC3/PDR cube Generalizing Predecessors Given Find

32
© Anvesh Komuravelli IC3/PDR cube Generalizing Predecessors Given Find cube

33
© Anvesh Komuravelli IC3/PDR Generalizing Predecessors Given Find T T − − − … − − − − − − … − − − Ternary Simulation …

34
© Anvesh Komuravelli IC3/PDR … ? Generalizing Predecessors

35
© Anvesh Komuravelli IC3/PDR … ? Generalizing Predecessors

36
© Anvesh Komuravelli IC3/PDR … … Generalizing Predecessors

37
© Anvesh Komuravelli IC3/PDR RuleConditionTransition Init − Unfold Candidate Decide Conflict Induction Unsafe return UNSAFE Safe return SAFE Formalizing the new search strategy

38
© Anvesh Komuravelli IC3/PDR RuleConditionTransition Init − Unfold Candidate Decide Conflict Induction Unsafe return UNSAFE Safe return SAFE IC3/PDR !

39
© Anvesh Komuravelli IC3/PDR To summarize… 1-step reachability queries Generalizing Predecessors Local Interpolants Forward Inductive Propagation Reusing Counterexamples 1-step reachability queries Generalizing Predecessors Local Interpolants Forward Inductive Propagation Reusing Counterexamples F i is in CNF

40
© Anvesh Komuravelli IC3/PDR To summarize… Competitive with variants of McMillan’s Interpolation 3 rd 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 Competitive with variants of McMillan’s Interpolation 3 rd 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
© Anvesh Komuravelli IC3/PDR F i is in CNF Efficient Implementation of IC3/PDR SAT Context C …

42
© Anvesh Komuravelli IC3/PDR Decide/Conflict Rules Assumptions A YN Ternary Simulation

43
© Anvesh Komuravelli IC3/PDR least j ≥ i such that If none, add to F ∞ MUS extraction to get Conflict Rule ✗ Additionally, pushing the clause to higher levels

44
© Anvesh Komuravelli IC3/PDR Induction Rule Similar to Conflict Rule, with repeated checks!

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

46
© Anvesh Komuravelli IC3/PDR References 1.SAT-Based Model Checking without Unrolling, Bradley, VMCAI Efficient Implementation of Property Directed Reachability, Een, Mishchenko and Brayton, FMCAD An Incremental Approach to checking Progress Properties, Bradley et al., FMCAD Understanding IC3, Bradley, SAT Generalized Property Directed Reachability, Hoder and Bjorner, SAT Incremental, Inductive CTL Model Checking, Hassan et al., CAV SAT-Based Model Checking without Unrolling, Bradley, VMCAI Efficient Implementation of Property Directed Reachability, Een, Mishchenko and Brayton, FMCAD An Incremental Approach to checking Progress Properties, Bradley et al., FMCAD Understanding IC3, Bradley, SAT Generalized Property Directed Reachability, Hoder and Bjorner, SAT Incremental, Inductive CTL Model Checking, Hassan et al., CAV 2012

Similar presentations

© 2016 SlidePlayer.com Inc.

All rights reserved.

Ads by Google