semantic guidance for unbounded symbolic reachability
play

Semantic guidance for unbounded symbolic reachability Martin Suda - PowerPoint PPT Presentation

Semantic guidance for unbounded symbolic reachability Martin Suda Max Planck Institute fr Informatik VTSA 2012 b b b b b b b b b b b b Symbolic reachability The algorithm Conclusion Transition system ? G I Reachability Does


  1. Semantic guidance for unbounded symbolic reachability Martin Suda Max Planck Institute für Informatik VTSA 2012

  2. b b b b b b b b b b b b Symbolic reachability The algorithm Conclusion Transition system ? G I Reachability Does there exist a finite path from an I -state to a G -state? VTSA 2012 1/6

  3. b b b b b b b b b b b b Symbolic reachability The algorithm Conclusion Symbolically represented transition system S = (Σ , ϕ, τ, ψ ) Σ ...prop. signature ϕ ...fla over Σ ? τ ...fla over Σ ∪ Σ ′ G ψ ...fla over Σ I = { s | s | = ϕ } I → = { ( s, s ′ ) | ( s, s ′ ) | = τ } G = { s | s | = ψ } Reachability Does there exist a finite path from an I -state to a G -state? VTSA 2012 1/6

  4. Symbolic reachability The algorithm Conclusion Fixed length reachability via SAT Does there exist a path from an I -state to a G -state of length k ? We can use a SAT-solver to answer such question: VTSA 2012 2/6

  5. Symbolic reachability The algorithm Conclusion Fixed length reachability via SAT Does there exist a path from an I -state to a G -state of length k ? We can use a SAT-solver to answer such question: Σ ′ Σ (2) Σ ... Σ ( k ) VTSA 2012 2/6

  6. Symbolic reachability The algorithm Conclusion Fixed length reachability via SAT Does there exist a path from an I -state to a G -state of length k ? We can use a SAT-solver to answer such question: Σ ′ Σ (2) Σ ... Σ ( k ) τ VTSA 2012 2/6

  7. Symbolic reachability The algorithm Conclusion Fixed length reachability via SAT Does there exist a path from an I -state to a G -state of length k ? We can use a SAT-solver to answer such question: Σ ′ Σ (2) Σ ... Σ ( k ) τ τ τ τ τ τ τ τ τ VTSA 2012 2/6

  8. Symbolic reachability The algorithm Conclusion Fixed length reachability via SAT Does there exist a path from an I -state to a G -state of length k ? We can use a SAT-solver to answer such question: Σ ′ Σ (2) ... Σ ( k ) Σ ϕ ψ τ τ τ τ τ τ τ τ τ VTSA 2012 2/6

  9. Symbolic reachability The algorithm Conclusion Fixed length reachability via SAT Does there exist a path from an I -state to a G -state of length k ? We can use a SAT-solver to answer such question: Σ ′ Σ (2) ... Σ ( k ) Σ ϕ ψ τ τ τ τ τ τ τ τ τ Now just run the solver: A push button technology! VTSA 2012 2/6

  10. Symbolic reachability The algorithm Conclusion Fixed length reachability via SAT Does there exist a path from an I -state to a G -state of length k ? We can use a SAT-solver to answer such question: Σ ′ Σ (2) ... Σ ( k ) Σ ϕ ψ τ τ τ τ τ τ τ τ τ Now just run the solver: A push button technology! Bounded model checking Iterate the above for increasing values of k = 0 , 1 , 2 , . . . If one of them is SAT, we have an answer! But how do we know when to terminate in the other case? VTSA 2012 2/6

  11. b b b b b Symbolic reachability The algorithm Conclusion Opening the blackbox We need more control over what’s happening inside the solver Let’s control the way the model is constructed: ϕ τ τ τ τ τ τ τ τ τ ψ VTSA 2012 3/6

  12. b b b b b Symbolic reachability The algorithm Conclusion Opening the blackbox We need more control over what’s happening inside the solver Let’s control the way the model is constructed: ϕ τ τ τ τ τ τ τ τ τ ψ VTSA 2012 3/6

  13. b b b b b Symbolic reachability The algorithm Conclusion Opening the blackbox We need more control over what’s happening inside the solver Let’s control the way the model is constructed: ϕ τ τ τ τ τ τ τ τ τ ψ VTSA 2012 3/6

  14. b b b b b Symbolic reachability The algorithm Conclusion Opening the blackbox We need more control over what’s happening inside the solver Let’s control the way the model is constructed: ϕ τ τ τ τ τ τ τ τ τ ψ VTSA 2012 3/6

  15. b b b b b Symbolic reachability The algorithm Conclusion Opening the blackbox We need more control over what’s happening inside the solver Let’s control the way the model is constructed: ϕ τ τ τ τ τ τ τ τ τ ψ VTSA 2012 3/6

  16. b b b b b b b Symbolic reachability The algorithm Conclusion Opening the blackbox We need more control over what’s happening inside the solver Let’s control the way the model is constructed: ? ϕ ψ τ τ τ τ τ τ τ τ τ VTSA 2012 3/6

  17. b b b b b Symbolic reachability The algorithm Conclusion Opening the blackbox We need more control over what’s happening inside the solver Let’s control the way the model is constructed: ϕ τ τ τ τ τ τ τ τ τ ψ { C } If the model cannot be extended, a conflict clause is derived, VTSA 2012 3/6

  18. b b b b b Symbolic reachability The algorithm Conclusion Opening the blackbox We need more control over what’s happening inside the solver Let’s control the way the model is constructed: ϕ τ τ τ τ τ τ τ τ τ ψ { C } If the model cannot be extended, a conflict clause is derived, which forces the search to take a different path. VTSA 2012 3/6

  19. b b b b b b b b b b Symbolic reachability The algorithm Conclusion Opening the blackbox We need more control over what’s happening inside the solver Let’s control the way the model is constructed: ϕ τ τ τ τ τ τ τ τ τ ψ { C } If the model cannot be extended, a conflict clause is derived, which forces the search to take a different path. As with BMC we either finish with the full model, VTSA 2012 3/6

  20. b b b b b Symbolic reachability The algorithm Conclusion Opening the blackbox We need more control over what’s happening inside the solver Let’s control the way the model is constructed: ϕ τ τ τ τ τ τ τ τ τ ψ ... {⊥} ... { C } { D , E } If the model cannot be extended, a conflict clause is derived, which forces the search to take a different path. As with BMC we either finish with the full model, or discover inconsistency in a form of the empty clause ⊥ . VTSA 2012 3/6

  21. Symbolic reachability The algorithm Conclusion Dependency We say that a conflict clause C depends on another clause D if D was used as an assumption in the proof of C . VTSA 2012 4/6

  22. Symbolic reachability The algorithm Conclusion Dependency We say that a conflict clause C depends on another clause D if D was used as an assumption in the proof of C . Dependency in action Typically, the empty clause depends both on ϕ and ψ in our runs, otherwise we can directly terminate with UNSAT: VTSA 2012 4/6

  23. Symbolic reachability The algorithm Conclusion Dependency We say that a conflict clause C depends on another clause D if D was used as an assumption in the proof of C . Dependency in action Typically, the empty clause depends both on ϕ and ψ in our runs, otherwise we can directly terminate with UNSAT: Empty clause depending only on ϕ : there is no path of length k starting in a ϕ -state. Empty clause depending only on ψ : there is no path of length k ending in a ψ -state. Empty clause depending on neither: there is no path of lenght k . VTSA 2012 4/6

  24. Symbolic reachability The algorithm Conclusion Defining layers Let L i be the set of clauses that depend on ψ and were inserted j steps before the goal formula ψ . ϕ τ τ τ τ τ τ τ τ τ ψ . . . L 2 L 1 L 0 L k VTSA 2012 5/6

  25. Symbolic reachability The algorithm Conclusion Defining layers Let L i be the set of clauses that depend on ψ and were inserted j steps before the goal formula ψ . ϕ τ τ τ τ τ τ τ τ τ ψ . . . L 2 L 1 L 0 L k Properties of layers ( L i ) ′ ∧ τ | = L i + 1 (The way they get derived.) L i ∧ ϕ | = ⊥ (That’s how it ended when k = i .) Once L i = L j for i � = j , the whole instance is UNSAT. (Cut and paste argmument over the proof.) VTSA 2012 5/6

  26. Symbolic reachability The algorithm Conclusion Summary of the method SAT-solver builds a model path for left to right Failure to proceed is recorded as a clause at that position Repeating pattern of such clauses entails overall UNSAT VTSA 2012 6/6

  27. Symbolic reachability The algorithm Conclusion Summary of the method SAT-solver builds a model path for left to right Failure to proceed is recorded as a clause at that position Repeating pattern of such clauses entails overall UNSAT Related work BMC [Biere, Cimatti, Clarke, Zhu 1999] k -induction [Sheeran, Singh, Stålmarck 2000] Interpolation [McMillan 2003] IC3/PDR [Bradley 2011] VTSA 2012 6/6

  28. Symbolic reachability The algorithm Conclusion Summary of the method SAT-solver builds a model path for left to right Failure to proceed is recorded as a clause at that position Repeating pattern of such clauses entails overall UNSAT Related work BMC [Biere, Cimatti, Clarke, Zhu 1999] k -induction [Sheeran, Singh, Stålmarck 2000] Interpolation [McMillan 2003] IC3/PDR [Bradley 2011] Thank you for attention Comments? Questions? Suggestions? VTSA 2012 6/6

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend