CEGAR:Counterexample-Guided Abstraction Refinement

Size: px
Start display at page:

Download "CEGAR:Counterexample-Guided Abstraction Refinement"

Transcription

1 CEGAR: Counterexample-guided Abstraction Refinement Sayan Mitra ECE/CS 584: Embedded System Verification November 13, 2012

2 Outline Finite State Systems: Abstraction Refinement CEGAR Validation Refinment based on counterexample analysis Cegar for Hybrid Systems

3 Preliminaries Finite state system (FSS) T Q - finite set of states Σ - transition labels q init - initial state Q Σ Q - transition function

4 Abstraction Definition Let T 1 and T 2 be two FSSs. T 2 is an abstraction of T 1 if there exists a function α : Q 1 Q 2 such that α(q1 init ) = q2 init and for a every q 1 1 q 2, α(q 1 ) a 2 α(q 2 ). Notation: T 1 T 2. Given an equivalence relation Q 1 Q 1, define an abstraction T 2 = T 1 / of T 1 as follows: Example Q 2 = Q 1 / a q 2 2 q 2 if there exists q 1 q 2 and q 1 q 2 such that a q 1 1 q 1.

5 Abstraction Why do we want/need to abstract?

6 Abstraction Why do we want/need to abstract? To obtain simpler systems Does an abstraction preserve all properties?

7 Abstraction Why do we want/need to abstract? To obtain simpler systems Does an abstraction preserve all properties? No. It preserves certain properties. Example: If the abstraction is safe, then the original system is safe. Can an abstraction always prove the safety of a safe system?

8 Abstraction Why do we want/need to abstract? To obtain simpler systems Does an abstraction preserve all properties? No. It preserves certain properties. Example: If the abstraction is safe, then the original system is safe. Can an abstraction always prove the safety of a safe system? No. It might not be the right abstraction. How do we search for a right abstraction?

9 Abstraction Why do we want/need to abstract? To obtain simpler systems Does an abstraction preserve all properties? No. It preserves certain properties. Example: If the abstraction is safe, then the original system is safe. Can an abstraction always prove the safety of a safe system? No. It might not be the right abstraction. How do we search for a right abstraction? Refinement!

10 Refinement Definition Let T 1 be a FSS and T 2 its abstraction. A refinement of T 2 is an FSS T 3 such that T 1 T 3 T 2. Example

11 Refinement Definition Let T 1 be a FSS and T 2 its abstraction. A refinement of T 2 is an FSS T 3 such that T 1 T 3 T 2. Example How do we refine? One approach - CEGAR

12 Counter-example guided abstraction refinement Reachability problem: Given a state q f, is it reachable from the initial state of T 1? Construct an abstraction T 2. Model check T 2 : Is α(q f ) is reachable from the initial state of T 2? Answer no T 1 is safe. Answer yes don t know. If yes, returns a path in T 2 which reaches α(q 2 ) - abstract counter-example. Check if the abstract counter-example has a corresponding concrete counter-example - validation If yes, you have found a counter-example, and can conclude that the system is unsafe. Otherwise, abstract counter-example is spurious. Use it to refine the abstraction.

13 CEGAR loop

14 Validation σ = q 1 Definition a 1 2 q 2 a 2 2 q 3 a 3 a k q k+1 : counter-example in T 2. a Validation: Does there exist σ = q 1 a 1 2 q 2 a 2 2 q 3 a 3 k qk+1 in T 1 such that q 1 = q1 init, q k+1 = q f and α(q i ) = q i for all i?

15 Validation σ = q 1 Definition a 1 2 q 2 a 2 2 q 3 a 3 a k q k+1 : counter-example in T 2. a Validation: Does there exist σ = q 1 a 1 2 q 2 a 2 2 q 3 a 3 k qk+1 in T 1 such that q 1 = q1 init, q k+1 = q f and α(q i ) = q i for all i? Validation procedure For 1 i k + 1, compute Reach i : set of all states which can mimic q i a i a k q k+1 and reach q f. Reach k+1 = {q f }. Reach i = α 1 (q i ) Pre(Reach i+1, a i ) for 1 i k. Proposition Concrete σ exists iff Reach 0.

16 Refinement using the counterexample analysis Let j be the largest integer such that Reach j =, i.e., first set in the backward computation which becomes empty. Post(α 1 (q j )) Reach j+1 =. Split q j+1 into two states, such that one contains Post(α 1 (q j )) and the other contains Reach j+1. This is the new abstraction T 3.

17 Related Work CEGAR used in software verification Clarke et. al Microsoft research: SLAM, boolean programs Abstraction mechanisms: Predicate abstraction

18 Review of CEGAR algorithm

19 Hybrid system H = (Loc, q 0, edges, Cont, Cont 0, flow, invariant, guard, reset): Loc - finite set of locations, l 0 Loc - initial location, edges Loc Loc, Cont = R n - set of continuous states, Cont 0 Cont - initial continuous states, flow : Loc Cont (R + Cont), invariant : Loc 2 Cont, guard : edges 2 Cont, and reset : edges 2 Cont Cont.

20 Example: thermostat Loc = {off, on}, l 0 = off, edges = {(off, on), (on, off )}, Cont = R, Cont 0 = {20}, flow(off, x, t) = xe 0.1t and flow(on, x, t) =, invariant(off ) = {x x 18} and invariant(on) =, guard(off, on) = {x x < 19} and guard(on, off ) =, and reset(off, on) = reset(on, off ) = {(x, x) x R}.

21 Semantics of a Hybrid Automaton [[H]] = (Q, Σ, q init, ): Q = Loc Cont, Σ = Actions {τ}, q init = {q 0 } Cont 0. (l, x) a (l, x ): Discrete transitions: a Actions, Continuous transitions: a = τ.

22 Semantics of HA Discrete transitions (l 1, x 1 ) a (l 2, x 2 ) iff edge = (l 1, a, l 2 ): x 1 guard(edge), and (x 1, x 2 ) reset(edge).

23 Semantics of HA Continuous transitions (l 1, x 1 ) τ (l 2, x 2 ) iff l 1 = l 2, t such that flow(l 1, x 1 )(t) = x 2, and for all t [0, t], flow(l 1, x 1 )(t ) invariant(l 1 ).

24 Discrete abstraction Definition Let H 1 and H 2 be two HSs. H 2 is an abstraction of H 1 if there exists a function α : Q 1 Q 2 such that α(q1 init ) = q2 init and for a every q 1 1 q 2, α(q 1 ) a 2 α(q 2 ).

25 Discrete abstraction Definition Let H 1 and H 2 be two HSs. H 2 is an abstraction of H 1 if there exists a function α : Q 1 Q 2 such that α(q1 init ) = q2 init and for a every q 1 1 q 2, α(q 1 ) a 2 α(q 2 ). Finite partition of the state space Construct the transitions - time transitions and discrete transitions

26 Challenges Defining the partition - by linear constraints, polynomial constraints, ellipsoids etc.

27 Challenges Defining the partition - by linear constraints, polynomial constraints, ellipsoids etc. Computing discrete transitions - computing weakest preconditions, intersections. P a P iff Pre(P, a) P.

28 Challenges Defining the partition - by linear constraints, polynomial constraints, ellipsoids etc. Computing discrete transitions - computing weakest preconditions, intersections. P a P iff Pre(P, a) P. Computing time transitions - computing time predecessors, intersections. Depends on the continuous dynamics P τ P iff t Pre(P, t) P.

29 Challenges Defining the partition - by linear constraints, polynomial constraints, ellipsoids etc. Computing discrete transitions - computing weakest preconditions, intersections. P a P iff Pre(P, a) P. Computing time transitions - computing time predecessors, intersections. Depends on the continuous dynamics P τ P iff t Pre(P, t) P. Often can only compute an approximation of t Pre(P, t). But still an abstraction!

30 CEGAR loop

31 Validation σ = q 1 a 1 2 q 2 a 2 2 q 3 Validation procedure a 3 a k q k+1 : counter-example in T 2. For 1 i k + 1, compute Reach i : set of all states which can mimic q i a i a k q k+1 and reach q f. Reach k+1 = {q f } inv(q f ). Reach i = α 1 (q i ) Pre(Reach i+1, a i ) for 1 i k.

32 Validation σ = q 1 a 1 2 q 2 a 2 2 q 3 Validation procedure a 3 a k q k+1 : counter-example in T 2. For 1 i k + 1, compute Reach i : set of all states which can mimic q i a i a k q k+1 and reach q f. Reach k+1 = {q f } inv(q f ). Reach i = α 1 (q i ) Pre(Reach i+1, a i ) for 1 i k. Cannot compute Reach i exactly. What do we do?

33 Validation σ = q 1 a 1 2 q 2 a 2 2 q 3 Validation procedure a 3 a k q k+1 : counter-example in T 2. For 1 i k + 1, compute Reach i : set of all states which can mimic q i a i a k q k+1 and reach q f. Reach k+1 = {q f } inv(q f ). Reach i = α 1 (q i ) Pre(Reach i+1, a i ) for 1 i k. Cannot compute Reach i exactly. What do we do? If validation fails, i.e., Reach k = for some k, continue to the refinement step. Otherwise, use better Pre computation. (After sometime, give up!) If Reach 0, cannot conclude anything. But can only conjecture that the design is probably not good.

34 Refinement Let k be the largest integer such that Reach k =, i.e., first set in the backward computation which becomes empty. Post(α 1 (q i )) Reach k+1 =. Split q k+1 into two states, such that one contains Post(α 1 (q i )) and the other contains Reach k+1. This is the new abstraction T 3. Add some constraint that splits the two sets of states. Alur et. al - find separating predicates for polyhedra.

35 Some remarks Need not terminate, unlike for the finite state case. Even upon termination due to validation of a counter-example, cannot conclude that the system is erroneous (due to overapproximations). In general, computing abstractions is expensive.

36 Hybrid Automata based CEGAR Main concept Abstract a hybrid automaton by another simpler hybrid automaton.

37 Hybrid Automata based CEGAR Main concept Abstract a hybrid automaton by another simpler hybrid automaton. Constructing abstractions may be easier, example, approximating a linear system by a rectangular system. Need different refinement methods. Hybrid Automata based CEGAR for rectangular hybrid automata - complete for the initialized fragment.

38 Abstraction α Loc : Loc 1 Loc 2. α edges : edges 1 edges 2. α Var : R Var 1 R Var 2.

39 Abstraction Example: α Loc : Loc 1 Loc 2. α edges : edges 1 edges 2. α Var : R Var 1 R Var 2. x 1, x 2, x 3 - variables in H 1. z 1, z 2 - variables in H 2. α Var (z 1 ) = x 1 + 3x 2 α Var (z 2 ) = x 1 x 3

40 CEGAR for rectangular hybrid automata Abstract a rectangular hybrid automata by another hybrid automata. Example

41 CEGAR for rectangular hybrid automata Abstract a rectangular hybrid automata by another hybrid automata. Example Focus on scaling/omitting variable abstractions. Refinement in rectangular hybrid automaton by adding or scaling variables. Completeness Can compute reach exactly. When the variable abstraction function corresponds to scaling/omitting variables, and the rectangular hybrid automaton is initialized rectangular, the CEGAR loop terminates always with the right answer. Abstracts initialized RHA to initialized RHA. IRHA have finite bisimilation (when converted to multirate automata).

42 Summary CEGAR for discrete systems. CEGAR for hybrid systems. Discrete abstractions Alur et. al - TACAS 2003 Clarke et. al - TACAS 2003 Hybrid abstractions Larsen et. al - FORMATS 2007, Prabhakar et. al - VMCAI CEGAR for stability Duggirala & Mitra ICCPS 2011, HSCC 2012

Lecture 6: Reachability Analysis of Timed and Hybrid Automata

Lecture 6: Reachability Analysis of Timed and Hybrid Automata University of Illinois at Urbana-Champaign Lecture 6: Reachability Analysis of Timed and Hybrid Automata Sayan Mitra Special Classes of Hybrid Automata Timed Automata ß Rectangular Initialized HA Rectangular

More information

Modeling and Analysis of Hybrid Systems

Modeling and Analysis of Hybrid Systems Modeling and Analysis of Hybrid Systems Algorithmic analysis for linear hybrid systems Prof. Dr. Erika Ábrahám Informatik 2 - Theory of Hybrid Systems RWTH Aachen University SS 2015 Ábrahám - Hybrid Systems

More information

Counterexample-Guided Abstraction Refinement

Counterexample-Guided Abstraction Refinement Counterexample-Guided Abstraction Refinement Edmund Clarke Orna Grumberg Somesh Jha Yuan Lu Helmut Veith Seminal Papers in Verification (Reading Group) June 2012 O. Rezine () Verification Reading Group

More information

Algorithmic Verification of Stability of Hybrid Systems

Algorithmic Verification of Stability of Hybrid Systems Algorithmic Verification of Stability of Hybrid Systems Pavithra Prabhakar Kansas State University University of Kansas February 24, 2017 1 Cyber-Physical Systems (CPS) Systems in which software "cyber"

More information

Abstractions and Decision Procedures for Effective Software Model Checking

Abstractions and Decision Procedures for Effective Software Model Checking Abstractions and Decision Procedures for Effective Software Model Checking Prof. Natasha Sharygina The University of Lugano, Carnegie Mellon University Microsoft Summer School, Moscow, July 2011 Lecture

More information

Predicate Abstraction: A Tutorial

Predicate Abstraction: A Tutorial Predicate Abstraction: A Tutorial Predicate Abstraction Daniel Kroening May 28 2012 Outline Introduction Existential Abstraction Predicate Abstraction for Software Counterexample-Guided Abstraction Refinement

More information

DryVR: Data-driven verification and compositional reasoning for automotive systems

DryVR: Data-driven verification and compositional reasoning for automotive systems DryVR: Data-driven verification and compositional reasoning for automotive systems Chuchu Fan, Bolun Qi, Sayan Mitra, Mahesh Viswannathan University of Illinois at Urbana-Champaign CAV 2017, Heidelberg,

More information

Software Verification using Predicate Abstraction and Iterative Refinement: Part 1

Software Verification using Predicate Abstraction and Iterative Refinement: Part 1 using Predicate Abstraction and Iterative Refinement: Part 1 15-414 Bug Catching: Automated Program Verification and Testing Sagar Chaki November 28, 2011 Outline Overview of Model Checking Creating Models

More information

The algorithmic analysis of hybrid system

The algorithmic analysis of hybrid system The algorithmic analysis of hybrid system Authors: R.Alur, C. Courcoubetis etc. Course teacher: Prof. Ugo Buy Xin Li, Huiyong Xiao Nov. 13, 2002 Summary What s a hybrid system? Definition of Hybrid Automaton

More information

Counterexample Guided Abstraction Refinement for Stability Analysis

Counterexample Guided Abstraction Refinement for Stability Analysis Counterexample Guided Abstraction Refinement for Stability Analysis Pavithra Prabhakar 1 and Miriam García Soto 2 1 Kansas State University, Manhattan, KS, USA pprabhakar@ksu.edu 2 IMDEA Software Institute

More information

Analysis of a Boost Converter Circuit Using Linear Hybrid Automata

Analysis of a Boost Converter Circuit Using Linear Hybrid Automata Analysis of a Boost Converter Circuit Using Linear Hybrid Automata Ulrich Kühne LSV ENS de Cachan, 94235 Cachan Cedex, France, kuehne@lsv.ens-cachan.fr 1 Introduction Boost converter circuits are an important

More information

Modeling and Analysis of Hybrid Systems

Modeling and Analysis of Hybrid Systems Modeling and Analysis of Hybrid Systems 5. Linear hybrid automata I Prof. Dr. Erika Ábrahám Informatik 2 - LuFG Theory of Hybrid Systems RWTH Aachen University Szeged, Hungary, 27 September - 06 October

More information

Modeling and Analysis of Hybrid Systems Linear hybrid automata I Prof. Dr. Erika Ábrahám Informatik 2 - LuFG Theory of Hybrid Systems RWTH Aachen University Szeged, Hungary, 27 September - 06 October 2017

More information

Software Verification with Abstraction-Based Methods

Software Verification with Abstraction-Based Methods Software Verification with Abstraction-Based Methods Ákos Hajdu PhD student Department of Measurement and Information Systems, Budapest University of Technology and Economics MTA-BME Lendület Cyber-Physical

More information

Timed Automata VINO 2011

Timed Automata VINO 2011 Timed Automata VINO 2011 VeriDis Group - LORIA July 18, 2011 Content 1 Introduction 2 Timed Automata 3 Networks of timed automata Motivation Formalism for modeling and verification of real-time systems.

More information

or simply: IC3 A Simplified Description

or simply: IC3 A Simplified Description Incremental Construction of Inductive Clauses for Indubitable Correctness or simply: IC3 A Simplified Description Based on SAT-Based Model Checking without Unrolling Aaron Bradley, VMCAI 2011 Efficient

More information

3-Valued Abstraction-Refinement

3-Valued Abstraction-Refinement 3-Valued Abstraction-Refinement Sharon Shoham Academic College of Tel-Aviv Yaffo 1 Model Checking An efficient procedure that receives: A finite-state model describing a system A temporal logic formula

More information

A Counterexample-Guided Approach to Parameter Synthesis for Linear Hybrid Automata

A Counterexample-Guided Approach to Parameter Synthesis for Linear Hybrid Automata A Counterexample-Guided Approach to Parameter Synthesis for Linear Hybrid Automata Goran Frehse 1, Sumit Kumar Jha 2, and Bruce H. Krogh 3 1 Verimag (UJF-CNRS-INPG), 2, av. de Vignate, 38610 Gières, France

More information

Model Checking: An Introduction

Model Checking: An Introduction Model Checking: An Introduction Meeting 3, CSCI 5535, Spring 2013 Announcements Homework 0 ( Preliminaries ) out, due Friday Saturday This Week Dive into research motivating CSCI 5535 Next Week Begin foundations

More information

Discrete abstractions of hybrid systems for verification

Discrete abstractions of hybrid systems for verification Discrete abstractions of hybrid systems for verification George J. Pappas Departments of ESE and CIS University of Pennsylvania pappasg@ee.upenn.edu http://www.seas.upenn.edu/~pappasg DISC Summer School

More information

Modeling & Control of Hybrid Systems. Chapter 7 Model Checking and Timed Automata

Modeling & Control of Hybrid Systems. Chapter 7 Model Checking and Timed Automata Modeling & Control of Hybrid Systems Chapter 7 Model Checking and Timed Automata Overview 1. Introduction 2. Transition systems 3. Bisimulation 4. Timed automata hs check.1 1. Introduction Model checking

More information

Verification of Hybrid Systems with Ariadne

Verification of Hybrid Systems with Ariadne Verification of Hybrid Systems with Ariadne Davide Bresolin 1 Luca Geretti 2 Tiziano Villa 3 1 University of Bologna 2 University of Udine 3 University of Verona An open workshop on Formal Methods for

More information

540 IEEE TRANSACTIONS ON AUTOMATIC CONTROL, VOL. 43, NO. 4, APRIL Algorithmic Analysis of Nonlinear Hybrid Systems

540 IEEE TRANSACTIONS ON AUTOMATIC CONTROL, VOL. 43, NO. 4, APRIL Algorithmic Analysis of Nonlinear Hybrid Systems 540 IEEE TRANSACTIONS ON AUTOMATIC CONTROL, VOL. 43, NO. 4, APRIL 1998 Algorithmic Analysis of Nonlinear Hybrid Systems Thomas A. Henzinger, Pei-Hsin Ho, Howard Wong-Toi Abstract Hybrid systems are digital

More information

Bounded Model Checking with SAT/SMT. Edmund M. Clarke School of Computer Science Carnegie Mellon University 1/39

Bounded Model Checking with SAT/SMT. Edmund M. Clarke School of Computer Science Carnegie Mellon University 1/39 Bounded Model Checking with SAT/SMT Edmund M. Clarke School of Computer Science Carnegie Mellon University 1/39 Recap: Symbolic Model Checking with BDDs Method used by most industrial strength model checkers:

More information

Verification of Nonlinear Hybrid Systems with Ariadne

Verification of Nonlinear Hybrid Systems with Ariadne Verification of Nonlinear Hybrid Systems with Ariadne Luca Geretti and Tiziano Villa June 2, 2016 June 2, 2016 Verona, Italy 1 / 1 Outline June 2, 2016 Verona, Italy 2 / 1 Outline June 2, 2016 Verona,

More information

Static-Dynamic Analysis of Security Metrics

Static-Dynamic Analysis of Security Metrics Static-Dynamic Analysis of Security Metrics for Cyber-Physical Systems Sayan Mitra (PI), Geir Dullerud (co-pi), Swarat Chaudhuri (co-pi) University of Illinois at Urbana Champaign NSA SoS Quarterly meeting,

More information

Refinement of Trace Abstraction

Refinement of Trace Abstraction Refinement of Trace Abstraction Matthias Heizmann, Jochen Hoenicke, and Andreas Podelski University of Freiburg, Germany Abstract. We present a new counterexample-guided abstraction refinement scheme.

More information

Tutorial 1: Modern SMT Solvers and Verification

Tutorial 1: Modern SMT Solvers and Verification University of Illinois at Urbana-Champaign Tutorial 1: Modern SMT Solvers and Verification Sayan Mitra Electrical & Computer Engineering Coordinated Science Laboratory University of Illinois at Urbana

More information

Models for Efficient Timed Verification

Models for Efficient Timed Verification Models for Efficient Timed Verification François Laroussinie LSV / ENS de Cachan CNRS UMR 8643 Monterey Workshop - Composition of embedded systems Model checking System Properties Formalizing step? ϕ Model

More information

Static Program Analysis

Static Program Analysis Static Program Analysis Lecture 16: Abstract Interpretation VI (Counterexample-Guided Abstraction Refinement) Thomas Noll Lehrstuhl für Informatik 2 (Software Modeling and Verification) noll@cs.rwth-aachen.de

More information

Parametric Verification and Test Coverage for Hybrid Automata Using the Inverse Method

Parametric Verification and Test Coverage for Hybrid Automata Using the Inverse Method Parametric Verification and Test Coverage for Hybrid Automata Using the Inverse Method Laurent Fribourg and Ulrich Kühne LSV ENS de Cachan, 94235 Cachan, France {kuehne,fribourg}@lsv.ens-cachan.fr Abstract.

More information

Timed Automata. Semantics, Algorithms and Tools. Zhou Huaiyang

Timed Automata. Semantics, Algorithms and Tools. Zhou Huaiyang Timed Automata Semantics, Algorithms and Tools Zhou Huaiyang Agenda } Introduction } Timed Automata } Formal Syntax } Operational Semantics } Verification Problems } Symbolic Semantics & Verification }

More information

Design of Distributed Systems Melinda Tóth, Zoltán Horváth

Design of Distributed Systems Melinda Tóth, Zoltán Horváth Design of Distributed Systems Melinda Tóth, Zoltán Horváth Design of Distributed Systems Melinda Tóth, Zoltán Horváth Publication date 2014 Copyright 2014 Melinda Tóth, Zoltán Horváth Supported by TÁMOP-412A/1-11/1-2011-0052

More information

Temporal Logic Model Checking

Temporal Logic Model Checking 18 Feb, 2009 Thomas Wahl, Oxford University Temporal Logic Model Checking 1 Temporal Logic Model Checking Thomas Wahl Computing Laboratory, Oxford University 18 Feb, 2009 Thomas Wahl, Oxford University

More information

Information Flow Analysis via Path Condition Refinement

Information Flow Analysis via Path Condition Refinement Information Flow Analysis via Path Condition Refinement Mana Taghdiri, Gregor Snelting, Carsten Sinz Karlsruhe Institute of Technology, Germany FAST September 16, 2010 KIT University of the State of Baden-Wuerttemberg

More information

Double Header. Model Checking. Model Checking. Overarching Plan. Take-Home Message. Spoiler Space. Topic: (Generic) Model Checking

Double Header. Model Checking. Model Checking. Overarching Plan. Take-Home Message. Spoiler Space. Topic: (Generic) Model Checking Double Header Model Checking #1 Two Lectures Model Checking SoftwareModel Checking SLAM and BLAST Flying Boxes It is traditional to describe this stuff (especially SLAM and BLAST) with high-gloss animation

More information

On Reachability for Hybrid Automata over Bounded Time

On Reachability for Hybrid Automata over Bounded Time On Reachability for Hybrid Automata over Bounded Time Thomas Brihaye, Laurent Doyen 2, Gilles Geeraerts 3, Joël Ouaknine 4, Jean-François Raskin 3, and James Worrell 4 Université de Mons, Belgium 2 LSV,

More information

Automata-theoretic analysis of hybrid systems

Automata-theoretic analysis of hybrid systems Automata-theoretic analysis of hybrid systems Madhavan Mukund SPIC Mathematical Institute 92, G N Chetty Road Chennai 600 017, India Email: madhavan@smi.ernet.in URL: http://www.smi.ernet.in/~madhavan

More information

Introduction to Abstract Interpretation. ECE 584 Sayan Mitra Lecture 18

Introduction to Abstract Interpretation. ECE 584 Sayan Mitra Lecture 18 Introduction to Abstract Interpretation ECE 584 Sayan Mitra Lecture 18 References Patrick Cousot,RadhiaCousot:Abstract Interpretation: A Unified Lattice Model for Static Analysis of Programs by Construction

More information

Progress on Reachability Analysis of Hybrid Systems Using Predicate Abstraction

Progress on Reachability Analysis of Hybrid Systems Using Predicate Abstraction University of Pennsylvania ScholarlyCommons Departmental Papers (CIS) Department of Computer & Information Science April 2003 Progress on Reachability Analysis of Hybrid Systems Using Predicate Abstraction

More information

Lecture Notes on Software Model Checking

Lecture Notes on Software Model Checking 15-414: Bug Catching: Automated Program Verification Lecture Notes on Software Model Checking Matt Fredrikson André Platzer Carnegie Mellon University Lecture 19 1 Introduction So far we ve focused on

More information

Hybrid systems and computer science a short tutorial

Hybrid systems and computer science a short tutorial Hybrid systems and computer science a short tutorial Eugene Asarin Université Paris 7 - LIAFA SFM 04 - RT, Bertinoro p. 1/4 Introductory equations Hybrid Systems = Discrete+Continuous SFM 04 - RT, Bertinoro

More information

Abstractions for Hybrid Systems

Abstractions for Hybrid Systems Abstractions for Hybrid Systems Ashish Tiwari (tiwari@csl.sri.com) SRI International, 333 Ravenswood Ave, Menlo Park, CA, U.S.A Abstract. We present a procedure for constructing sound finite-state discrete

More information

Symbolic Reachability Analysis of Lazy Linear Hybrid Automata. Susmit Jha, Bryan Brady and Sanjit A. Seshia

Symbolic Reachability Analysis of Lazy Linear Hybrid Automata. Susmit Jha, Bryan Brady and Sanjit A. Seshia Symbolic Reachability Analysis of Lazy Linear Hybrid Automata Susmit Jha, Bryan Brady and Sanjit A. Seshia Traditional Hybrid Automata Traditional Hybrid Automata do not model delay and finite precision

More information

Automatic Generation of Polynomial Invariants for System Verification

Automatic Generation of Polynomial Invariants for System Verification Automatic Generation of Polynomial Invariants for System Verification Enric Rodríguez-Carbonell Technical University of Catalonia Talk at EPFL Nov. 2006 p.1/60 Plan of the Talk Introduction Need for program

More information

Software Verification

Software Verification Software Verification Grégoire Sutre LaBRI, University of Bordeaux, CNRS, France Summer School on Verification Technology, Systems & Applications September 2008 Grégoire Sutre Software Verification VTSA

More information

IMITATOR: A Tool for Synthesizing Constraints on Timing Bounds of Timed Automata

IMITATOR: A Tool for Synthesizing Constraints on Timing Bounds of Timed Automata ICTAC 09 IMITATOR: A Tool for Synthesizing Constraints on Timing Bounds of Timed Automata Étienne ANDRÉ Laboratoire Spécification et Vérification LSV, ENS de Cachan & CNRS Étienne ANDRÉ (LSV) ICTAC 09

More information

Lecture 2: Symbolic Model Checking With SAT

Lecture 2: Symbolic Model Checking With SAT Lecture 2: Symbolic Model Checking With SAT Edmund M. Clarke, Jr. School of Computer Science Carnegie Mellon University Pittsburgh, PA 15213 (Joint work over several years with: A. Biere, A. Cimatti, Y.

More information

Unbounded, Fully Symbolic Model Checking of Timed Automata using Boolean Methods

Unbounded, Fully Symbolic Model Checking of Timed Automata using Boolean Methods Unbounded, Fully Symbolic Model Checking of Timed Automata using Boolean Methods Sanjit A. Seshia and Randal E. Bryant Computer Science Department Carnegie Mellon University Verifying Timed Embedded Systems

More information

Synthesising Certificates in Networks of Timed Automata

Synthesising Certificates in Networks of Timed Automata Synthesising Certificates in Networks of Timed Automata Bernd Finkbeiner Hans-Jörg Peter Saarland University {finkbeiner peter}@cs.uni-saarland.de Sven Schewe University of Liverpool sven.schewe@liverpool.ac.uk

More information

IC3 and Beyond: Incremental, Inductive Verification

IC3 and Beyond: Incremental, Inductive Verification IC3 and Beyond: Incremental, Inductive Verification Aaron R. Bradley ECEE, CU Boulder & Summit Middle School IC3 and Beyond: Incremental, Inductive Verification 1/62 Induction Foundation of verification

More information

From Non-Zenoness Verification to Termination

From Non-Zenoness Verification to Termination From Non-Zenoness Verification to Termination Pierre Ganty 1, Samir Genaim 2, Ratan Lal 1, and Pavithra Prabhakar 1 1 IMDEA Software Institute, Madrid, Spain 2 Universidad Complutense de Madrid, Spain

More information

Georgios E. Fainekos, Savvas G. Loizou and George J. Pappas. GRASP Lab Departments of CIS, MEAM and ESE University of Pennsylvania

Georgios E. Fainekos, Savvas G. Loizou and George J. Pappas. GRASP Lab Departments of CIS, MEAM and ESE University of Pennsylvania Georgios E. Fainekos, Savvas G. Loizou and George J. Pappas CDC 2006 Math free Presentation! Lab Departments of CIS, MEAM and ESE University of Pennsylvania Motivation Motion Planning 60 50 40 π 0 π 4

More information

Infinite-State Backward Exploration of Boolean Broadcast Programs

Infinite-State Backward Exploration of Boolean Broadcast Programs Infinite-State Backward Exploration of Boolean Broadcast Programs Peizun Liu and Thomas Wahl Northeastern University, Boston, USA FMCAD 2014 Lausanne, Switzerland October 24, 2014 This work is supported

More information

Disjunctive relational abstract interpretation for interprocedural program analysis

Disjunctive relational abstract interpretation for interprocedural program analysis Disjunctive relational abstract interpretation for interprocedural program analysis Nicolas Halbwachs, joint work with Rémy Boutonnet Verimag/CNRS, and Grenoble-Alpes University Grenoble, France R. Boutonnet,

More information

FMCAD 2013 Parameter Synthesis with IC3

FMCAD 2013 Parameter Synthesis with IC3 FMCAD 2013 Parameter Synthesis with IC3 A. Cimatti, A. Griggio, S. Mover, S. Tonetta FBK, Trento, Italy Motivations and Contributions Parametric descriptions of systems arise in many domains E.g. software,

More information

for System Modeling, Analysis, and Optimization

for System Modeling, Analysis, and Optimization Fundamental Algorithms for System Modeling, Analysis, and Optimization Stavros Tripakis UC Berkeley EECS 144/244 Fall 2013 Copyright 2013, E. A. Lee, J. Roydhowdhury, S. A. Seshia, S. Tripakis All rights

More information

Automatic Verification of Parameterized Data Structures

Automatic Verification of Parameterized Data Structures Automatic Verification of Parameterized Data Structures Jyotirmoy V. Deshmukh, E. Allen Emerson and Prateek Gupta The University of Texas at Austin The University of Texas at Austin 1 Outline Motivation

More information

Deductive Verification of Continuous Dynamical Systems

Deductive Verification of Continuous Dynamical Systems Deductive Verification of Continuous Dynamical Systems Dept. of Computer Science, Stanford University (Joint work with Ashish Tiwari, SRI International.) 1 Introduction What are Continuous Dynamical Systems?

More information

Geometric Programming Relaxations for Linear System Reachability

Geometric Programming Relaxations for Linear System Reachability Geometric Programg Relaxations for Linear System Reachability Hakan Yazarel and George J. Pappas Abstract One of the main obstacles in the safety analysis of continuous and hybrid systems has been the

More information

Extrapolation-based Path Invariants for Abstraction Refinement of Fifo Systems

Extrapolation-based Path Invariants for Abstraction Refinement of Fifo Systems Extrapolation-based Path Invariants for Abstraction Refinement of Fifo Systems Alexander Heußner, Grégoire Sutre, Tristan Le Gall To cite this version: Alexander Heußner, Grégoire Sutre, Tristan Le Gall.

More information

Integrating Induction, Deduction and Structure for Synthesis

Integrating Induction, Deduction and Structure for Synthesis Integrating Induction, Deduction and Structure for Synthesis Sanjit A. Seshia Associate Professor EECS Department UC Berkeley Students: S. Jha, W.Li, L. Dworkin, D. Sadigh Collaborators: A. Tiwari, S.

More information

Pushing to the Top FMCAD 15. Arie Gurfinkel Alexander Ivrii

Pushing to the Top FMCAD 15. Arie Gurfinkel Alexander Ivrii Pushing to the Top FMCAD 15 Arie Gurfinkel Alexander Ivrii Safety Verification Consider a verification problem (Init, Tr, Bad) The problem is UNSAFE if and only if there exists a path from an Init-state

More information

ESE601: Hybrid Systems. Introduction to verification

ESE601: Hybrid Systems. Introduction to verification ESE601: Hybrid Systems Introduction to verification Spring 2006 Suggested reading material Papers (R14) - (R16) on the website. The book Model checking by Clarke, Grumberg and Peled. What is verification?

More information

Modeling and Verifying a Temperature Control System using Continuous Action Systems

Modeling and Verifying a Temperature Control System using Continuous Action Systems Modeling and Verifying a Temperature Control System using Continuous Action Systems Ralph-Johan Back Cristina Cerschi Turku Centre for Computer Science (TUCS), Lemminkäisenkatu 14 A, FIN-20520, Turku,

More information

Abstractions of hybrid systems: formal languages to describe dynamical behaviour

Abstractions of hybrid systems: formal languages to describe dynamical behaviour Abstractions of hybrid systems: formal languages to describe dynamical behaviour Rebekah Carter, Eva M. Navarro-López School of Computer Science, The University of Manchester Oxford Road, Manchester, M13

More information

CDS 270 (Fall 09) - Lecture Notes for Assignment 8.

CDS 270 (Fall 09) - Lecture Notes for Assignment 8. CDS 270 (Fall 09) - Lecture Notes for Assignment 8. ecause this part of the course has no slides or textbook, we will provide lecture supplements that include, hopefully, enough discussion to complete

More information

Control of Industrial Systems to Avoid Failures: Application to Electrical System

Control of Industrial Systems to Avoid Failures: Application to Electrical System Control of Industrial Systems to Avoid Failures: Application to Electrical System Yamen EL TOUATI Department of Computer Science Faculty of Computing and Information Technology Northern Border University

More information

A new Abstraction-Refinement based Verifier for Modular Linear Hybrid Automata and its Implementation

A new Abstraction-Refinement based Verifier for Modular Linear Hybrid Automata and its Implementation A new Abstraction-Refinement based Verifier for Modular Linear Hybrid Automata and its Implementation Hao Ren 1 (ren@iastate.edu), Jing Huang 2 (freescaler@live.com), Shengbing Jiang 3 (shengbing.jiang@gm.com)

More information

User s Manual of Flow* Version 2.0.0

User s Manual of Flow* Version 2.0.0 User s Manual of Flow* Version 2.0.0 Xin Chen University of Colorado, Boulder 1 Introduction Flow* is a tool for safety verification of hybrid systems. Given a real-valued interval, a natural number m,

More information

Model Checking of Systems Employing Commutative Functions

Model Checking of Systems Employing Commutative Functions Model Checking of Systems Employing Commutative Functions A. Prasad Sistla, Min Zhou, and Xiaodong Wang University of Illinois at Chicago Abstract. The paper presents methods for model checking a class

More information

Formally Correct Monitors for Hybrid Automata. Verimag Research Report n o TR

Formally Correct Monitors for Hybrid Automata. Verimag Research Report n o TR Formally Correct Monitors for Hybrid Automata Goran Frehse, Nikolaos Kekatos, Dejan Nickovic Verimag Research Report n o TR-2017-5 September 20, 2017 Verimag, University of Grenoble Alpes, Grenoble, France.

More information

Non-Monotonic Refinement of Control Abstraction for Concurrent Programs

Non-Monotonic Refinement of Control Abstraction for Concurrent Programs Non-Monotonic Refinement of Control Abstraction for Concurrent Programs Ashutosh Gupta, Corneliu Popeea, and Andrey Rybalchenko Technische Universität München Abstract. Verification based on abstraction

More information

APPROXIMATE SIMULATION RELATIONS FOR HYBRID SYSTEMS 1. Antoine Girard A. Agung Julius George J. Pappas

APPROXIMATE SIMULATION RELATIONS FOR HYBRID SYSTEMS 1. Antoine Girard A. Agung Julius George J. Pappas APPROXIMATE SIMULATION RELATIONS FOR HYBRID SYSTEMS 1 Antoine Girard A. Agung Julius George J. Pappas Department of Electrical and Systems Engineering University of Pennsylvania Philadelphia, PA 1914 {agirard,agung,pappasg}@seas.upenn.edu

More information

EECS 144/244: System Modeling, Analysis, and Optimization

EECS 144/244: System Modeling, Analysis, and Optimization EECS 144/244: System Modeling, Analysis, and Optimization Continuous Systems Lecture: Hybrid Systems Alexandre Donzé University of California, Berkeley April 5, 2013 Alexandre Donzé: EECS 144/244 Hybrid

More information

Timed Automata with Observers under Energy Constraints

Timed Automata with Observers under Energy Constraints Timed Automata with Observers under Energy Constraints Patricia Bouyer-Decitre Uli Fahrenberg Kim G. Larsen Nicolas Markey LSV, CNRS & ENS Cachan, France Aalborg Universitet, Danmark /9 Introduction The

More information

TIMED automata, introduced by Alur and Dill in [3], have

TIMED automata, introduced by Alur and Dill in [3], have 1 Language Inclusion Checking of Timed Automata with Non-Zenoness Xinyu Wang, Jun Sun, Ting Wang, and Shengchao Qin Abstract Given a timed automaton P modeling an implementation and a timed automaton S

More information

HybridSAL Relational Abstracter

HybridSAL Relational Abstracter HybridSAL Relational Abstracter Ashish Tiwari SRI International, Menlo Park, CA. ashish.tiwari@sri.com Abstract. In this paper, we present the HybridSAL relational abstracter a tool for verifying continuous

More information

Timed Automata: Semantics, Algorithms and Tools

Timed Automata: Semantics, Algorithms and Tools Timed Automata: Semantics, Algorithms and Tools Johan Bengtsson and Wang Yi Uppsala University {johanb,yi}@it.uu.se Abstract. This chapter is to provide a tutorial and pointers to results and related work

More information

The Polyranking Principle

The Polyranking Principle The Polyranking Principle Aaron R. Bradley, Zohar Manna, and Henny B. Sipma Computer Science Department Stanford University Stanford, CA 94305-9045 {arbrad,zm,sipma}@theory.stanford.edu Abstract. Although

More information

ONR MURI AIRFOILS: Animal Inspired Robust Flight with Outer and Inner Loop Strategies. Calin Belta

ONR MURI AIRFOILS: Animal Inspired Robust Flight with Outer and Inner Loop Strategies. Calin Belta ONR MURI AIRFOILS: Animal Inspired Robust Flight with Outer and Inner Loop Strategies Provable safety for animal inspired agile flight Calin Belta Hybrid and Networked Systems (HyNeSs) Lab Department of

More information

Hierarchical Control of Piecewise Linear Hybrid Dynamical Systems Based on Discrete Abstractions Λ

Hierarchical Control of Piecewise Linear Hybrid Dynamical Systems Based on Discrete Abstractions Λ Hierarchical Control of Piecewise Linear Hybrid Dynamical Systems Based on Discrete Abstractions Λ Xenofon D. Koutsoukos Xerox Palo Alto Research Center 3333 Coyote Hill Road Palo Alto, CA 94304, USA Tel.

More information

Linear Temporal Logic and Büchi Automata

Linear Temporal Logic and Büchi Automata Linear Temporal Logic and Büchi Automata Yih-Kuen Tsay Department of Information Management National Taiwan University FLOLAC 2009 Yih-Kuen Tsay (SVVRL @ IM.NTU) Linear Temporal Logic and Büchi Automata

More information

Automata, Logic and Games: Theory and Application

Automata, Logic and Games: Theory and Application Automata, Logic and Games: Theory and Application 1. Büchi Automata and S1S Luke Ong University of Oxford TACL Summer School University of Salerno, 14-19 June 2015 Luke Ong Büchi Automata & S1S 14-19 June

More information

Simplification of finite automata

Simplification of finite automata Simplification of finite automata Lorenzo Clemente (University of Warsaw) based on joint work with Richard Mayr (University of Edinburgh) Warsaw, November 2016 Nondeterministic finite automata We consider

More information

Scalable and Accurate Verification of Data Flow Systems. Cesare Tinelli The University of Iowa

Scalable and Accurate Verification of Data Flow Systems. Cesare Tinelli The University of Iowa Scalable and Accurate Verification of Data Flow Systems Cesare Tinelli The University of Iowa Overview AFOSR Supported Research Collaborations NYU (project partner) Chalmers University (research collaborator)

More information

Generation of. Polynomial Equality Invariants. by Abstract Interpretation

Generation of. Polynomial Equality Invariants. by Abstract Interpretation Generation of Polynomial Equality Invariants by Abstract Interpretation Enric Rodríguez-Carbonell Universitat Politècnica de Catalunya (UPC) Barcelona Joint work with Deepak Kapur (UNM) 1 Introduction

More information

Introduction. Büchi Automata and Model Checking. Outline. Büchi Automata. The simplest computation model for infinite behaviors is the

Introduction. Büchi Automata and Model Checking. Outline. Büchi Automata. The simplest computation model for infinite behaviors is the Introduction Büchi Automata and Model Checking Yih-Kuen Tsay Department of Information Management National Taiwan University FLOLAC 2009 The simplest computation model for finite behaviors is the finite

More information

EFFICIENT PREDICATE ABSTRACTION OF PROGRAM SUMMARIES

EFFICIENT PREDICATE ABSTRACTION OF PROGRAM SUMMARIES EFFICIENT PREDICATE ABSTRACTION OF PROGRAM SUMMARIES Arie Gurfinkel, Sagar Chaki and Samir Sapra Carnegie Mellon Uni In NFM11 Presented by Nimrod Partush OUTLINE Introduction Predicate Abstraction CEGAR

More information

Verification Constraint Problems with Strengthening

Verification Constraint Problems with Strengthening Verification Constraint Problems with Strengthening Aaron R. Bradley and Zohar Manna Computer Science Department Stanford University Stanford, CA 94305-9045 {arbrad,manna}@cs.stanford.edu Abstract. The

More information

Verifying Safety Properties of Hybrid Systems.

Verifying Safety Properties of Hybrid Systems. Verifying Safety Properties of Hybrid Systems. Sriram Sankaranarayanan University of Colorado, Boulder, CO. October 22, 2010. Talk Outline 1. Formal Verification 2. Hybrid Systems 3. Invariant Synthesis

More information

Axiomatic Semantics: Verification Conditions. Review of Soundness and Completeness of Axiomatic Semantics. Announcements

Axiomatic Semantics: Verification Conditions. Review of Soundness and Completeness of Axiomatic Semantics. Announcements Axiomatic Semantics: Verification Conditions Meeting 12, CSCI 5535, Spring 2009 Announcements Homework 4 is due tonight Wed forum: papers on automated testing using symbolic execution 2 Questions? Review

More information

Bisimulations for Input-Output Stability of Hybrid Systems

Bisimulations for Input-Output Stability of Hybrid Systems Bisimulations for Input-Output Stability of Hybrid Systems Pavithra Prabhakar Computing and Information Sciences Kansas State University Manhattan, KS, USA pprabhakar@ksu.edu Jun Liu Applied Mathematics

More information

A practical introduction to active automata learning

A practical introduction to active automata learning A practical introduction to active automata learning Bernhard Steffen, Falk Howar, Maik Merten TU Dortmund SFM2011 Maik Merten, learning technology 1 Overview Motivation Introduction to active automata

More information

Topics in Timed Automata

Topics in Timed Automata 1/32 Topics in Timed Automata B. Srivathsan RWTH-Aachen Software modeling and Verification group 2/32 Timed Automata A theory of timed automata R. Alur and D. Dill, TCS 94 2/32 Timed Automata Language

More information

Deductive Verification

Deductive Verification Deductive Verification Mooly Sagiv Slides from Zvonimir Rakamaric First-Order Logic A formal notation for mathematics, with expressions involving Propositional symbols Predicates Functions and constant

More information

Integrating Induction, Deduction and Structure for Synthesis

Integrating Induction, Deduction and Structure for Synthesis Integrating Induction, Deduction and Structure for Synthesis Sanjit A. Seshia Associate Professor EECS Department UC Berkeley Students & Postdocs: S. Jha, W.Li, A. Donze, L. Dworkin, B. Brady, D. Holcomb,

More information

Zone-based Synthesis of Timed Models with Strict Phased Fault Recovery

Zone-based Synthesis of Timed Models with Strict Phased Fault Recovery Zone-based Synthesis of Timed Models with Strict Phased Fault Recovery Fathiyeh Faghih and Borzoo Bonakdarpour School of Computer Science, University of Waterloo, Canada TECHNICAL REPORT CS-2013-05 Abstract.

More information

Easy Parameterized Verification of Biphase Mark and 8N1 Protocols

Easy Parameterized Verification of Biphase Mark and 8N1 Protocols Easy Parameterized Verification of Biphase Mark and 8N1 Protocols Geoffrey M. Brown, Indiana University geobrown@cs.indiana.edu Lee Pike (Presenting), Galois Connections 1 leepike@galois.com March 27,

More information

New Complexity Results for Some Linear Counting Problems Using Minimal Solutions to Linear Diophantine Equations

New Complexity Results for Some Linear Counting Problems Using Minimal Solutions to Linear Diophantine Equations New Complexity Results for Some Linear Counting Problems Using Minimal Solutions to Linear Diophantine Equations (Extended Abstract) Gaoyan Xie, Cheng Li and Zhe Dang School of Electrical Engineering and

More information