Lecture 1: Introduction to model checking
- B. Srivathsan
Chennai Mathematical Institute
Model Checking and Systems Verification January - April 2015
1/25
Lecture 1: Introduction to model checking B. Srivathsan Chennai - - PowerPoint PPT Presentation
Lecture 1: Introduction to model checking B. Srivathsan Chennai Mathematical Institute Model Checking and Systems Verification January - April 2015 1 / 25 What are we interested in? 2 / 25 What are we interested in? Software Controllers Code
Model Checking and Systems Verification January - April 2015
1/25
2/25
2/25
3/25
◮ Aircrafts ◮ Medical devices ◮ Cars ◮ Nuclear power plants ◮ Space missions ◮ Railway signalling systems ◮ and many more ...
4/25
◮ Aircrafts ◮ Medical devices ◮ Cars ◮ Nuclear power plants ◮ Space missions ◮ Railway signalling systems ◮ and many more ...
4/25
5/25
◮ Igor Walukiewicz’s slides (4 - 7) ◮ Yogananda Jeppu’s slides (22 - 38)
6/25
7/25
8/25
8/25
8/25
9/25
Edmund Clarke Allen Emerson Joseph Sifakis
9/25
10/25
10/25
11/25
11/25
l1 l2 x < 200 x := x+1
m1 m2 x > 0 x:=x-1
n1 n2 x = 200 x:=0
11/25
l1,m1,n1 l2,m1,n1 l1,m2,n1 l1,m1,n2 l2,m2,n1 l2,m1,n2 l1,m2,n2 l2,m2,n2
x<200 x>0 x=200 x:=x+1 x:=x-1 x:=0 x>0 x:=x-1 x=200 x:=0 x<200 x:=x+1 x=200 x:=0 x<200 x:=x+1 x>0 x:=x-1 x=200 x:=0 x>0 x:=x-1 x<200 x:=x+1 12/25
l1,m1,n1 l2,m1,n1 l1,m2,n1 l1,m1,n2 l2,m2,n1 l2,m1,n2 l1,m2,n2 l2,m2,n2
x<200 x>0 x=200 x:=x+1 x:=x-1 x:=0 x>0 x:=x-1 x=200 x:=0 x<200 x:=x+1 x=200 x:=0 x<200 x:=x+1 x>0 x:=x-1 x=200 x:=0 x>0 x:=x-1 x<200 x:=x+1 12/25
l1,m1,n1 l2,m1,n1 l1,m2,n1 l1,m1,n2 l2,m2,n1 l2,m1,n2 l1,m2,n2 l2,m2,n2
x<200 x>0 x=200 x:=x+1 x:=x-1 x:=0 x>0 x:=x-1 x=200 x:=0 x<200 x:=x+1 x=200 x:=0 x<200 x:=x+1 x>0 x:=x-1 x=200 x:=0 x>0 x:=x-1 x<200 x:=x+1
Is the value of x always between 0 and 200? No
12/25
13/25
14/25
AG safe F p ∧ q
14/25
AG safe F p ∧ q
14/25
15/25
15/25
15/25
16/25
◮ Uses SCADE Suite (developed by Esterel Technologies) to develop
◮ Significant decrease of coding errors due to extensive use of
◮ Major productivity improvement, which is particularly significant
Source: Website of Esterel Technologies
17/25
◮ Many companies, including industry leaders such as AT&T,
◮ In many cases, these groups began by demonstrating the effectiveness
Source: Acceptance of formal methods: Lessons from hardware design, by D. Dill and J. Rushby
18/25
◮ Since 2011, engineers at Amazon Web Services (AWS) have used
Source: How Amazon Web Services Uses Formal Methods, by C. Newcombe et al.
19/25
◮ Avionics:
◮ Automobiles:
◮ Space:
◮ Others:
◮ Model-checking solutions:
20/25
◮ Avionics:
◮ Automobiles:
◮ Space:
◮ Others:
◮ Model-checking solutions:
20/25
◮ Edsger Dijkstra (1972) ◮ Donald Knuth (1974) ◮ Rabin and Scott (1976) ◮ Tony Hoare (1980) ◮ Ritchie and Thompson (1983) ◮ Hopcroft and Tarjan (1986) ◮ Rivest, Shamir, Adleman (2002)
21/25
22/25
23/25
◮ Software control many safety-critical systems ◮ Accidents do occur due to software errors ◮ Model-checking is an additional verification method ◮ Model-checking has been successful
24/25
◮ Part 1: (Srivathsan) Basic concepts, Automata-theoretic methods ◮ Part 2: (Srivas) Advanced concepts, Symbolic model-checking
25/25