Can a Model Checker Generate Tests for Non-Deterministic Systems?
Sergiy Boroday, Alexandre Petrenko
CRIM, Montreal, Canada
Roland Groz
INPG, France MBT 2007
Can a Model Checker Generate Tests for Non-Deterministic Systems? - - PowerPoint PPT Presentation
Can a Model Checker Generate Tests for Non-Deterministic Systems? Sergiy Boroday, Alexandre Petrenko CRIM, Montreal, Canada Roland Groz INPG, France MBT 2007 Outline Motivation Weak and Strong Tests Test Generation Model
Sergiy Boroday, Alexandre Petrenko
CRIM, Montreal, Canada
Roland Groz
INPG, France MBT 2007
2
3
sin(x)=f(x)
4
Module 1/1 0/0 Mealy FSM (transducer) 1/1 0/0 Kripke Structure v1,v2
∅
5
1/1 0/0 0/0 1/0 0/1 1/1 0/0 1/0 0/1
6
7
8
9
Module S Module M
1/1 0/0 w 1 w2 w3 1/0 0/0 w1 2 1 /1 w
Input sequence 00 10 1 M 11 1 S 11 1
10
11
12
Output
Model Checker
property holds property does not hold Input Counter-example Test Mutant conforms to Spec
13
Strong and weak tests coincide Test could be built from counterexample to S || M' |= AG out = out'
Module S 1/ 1 0/0 Module S || M' 1/10 0/00 1 /11 1/0 0/ 1 /1 Module M
14
Weak test could be built from counterexample to S || M' |= AG out = out' Weak tests are not necessarily strong
Module S
1/ 1 0/0
Module S || M'
1/10 0/00 1 /11 1/0 0/ 1 /1
Module M
15
Module S || M' 1/10 0/00 1 /11 1/0 0/ 1 /1 1/10 1 /11 Module S = Module M
16
17
Counterexample to Obs(S) || M |= AG sink (fragment of Obs(S) || M )
w 3
S
1/1 0/0 w1 2 1/0 w
M
w 4 0/0 1 w 2 0 /1 1/1 w
Observer S (fragment)
11/0/ 00/0/ 1 0/0/ 01/1/ 10/1/ w 5 01/1/1 w5 w4
0 is a weak test, but not strong
18
x y z y w z
19
20
Counterexample to EG out = out' (fragment of Env || HideOut(S || M ) 11 is a strong test Counterexample Environment Env
w 3
S M
w 4 0/0 1 w 2 0 /1 1/1 1/1 0/0 w 1 2 1/0 w w
HideOut (S || M )
1/11/ 0/00/ 1 /01/ 0/01/ w 1 1/11/ 1 /01/ w 2 w 3 w 2 w 2
21
22