Presentation is loading. Please wait.

Presentation is loading. Please wait.

About ACTL-W and the implementation of a BDD based model checker ISTI, Pisa Robert Meolic Faculty of EE&CS, Maribor, Slovenia Friday, Februar 13, 2004.

Similar presentations


Presentation on theme: "About ACTL-W and the implementation of a BDD based model checker ISTI, Pisa Robert Meolic Faculty of EE&CS, Maribor, Slovenia Friday, Februar 13, 2004."— Presentation transcript:

1 About ACTL-W and the implementation of a BDD based model checker ISTI, Pisa Robert Meolic Faculty of EE&CS, Maribor, Slovenia Friday, Februar 13, 2004

2 2/27 About our work on this project 4 definition of new action-based temporal logic, 4 fixed point characterisation, global model checking, witnesses and counterexamples, 4 EST - a free, open source tool incorporating ACTL-W. About ACTL-W and the implementation of a BDD based model checker About this presentation  an introduction of ACTL-W,  ACTL-W versus ACTL proposed in 1990,  a short overview of a BDD-based ACTL-W model checker  demonstration of EST under Windows.

3 3/27 Labelled Transition System States: p 0, p 1, p 2, p 3 Actions: a!, b!, c!,  A labelled transition system is a 4-tuple L = (S, A , , s 0 ) where: S is a non-empty set of states; A  is a finite, non-empty set of actions containing visible actions and silent action  not visible to an external observer;  S  A   S is the transition relation; s 0 is the initial state.

4 4/27 A path  in the LTS st ( , 0) is the first state on the path , st ( , i ) is a state reached after the i-th transition on  (i  1), act ( , i ) is an action executed during the i-th transition on  (i  1).

5 5/27 Action-based temporal logic  - state  - transition(  ’,  ’) - transition A state where state formula  holds is called  -state; a transition (p, a, q) where action formula  holds for action a is called  -transiton; a  -transition (p, a, q) where state formula  holds in state q is called ( ,  )-transition.

6 6/27 Computation Tree Logic (CTL)

7 7/27 The idea of Action CTL E [  {  } U {  ’}  ’] A [  {  } U {  ’}  ’] EX {  }  AX {  } 

8 8/27 The idea of Action CTL (cont.) EX {  }  EF {  }  EG  {  }

9 9/27 Definition of ACTL-W (2003) U = Until W = Unless (Weak Until) ACTL-W = Action CTL with Unless Operator

10 10/27 ACTL-W operators

11 11/27 Deadlocked states In a deadlocked state, formulae E [  {  } W {  ’}  ’], A [  {  } W {  ’}  ’], EG  {  }, and AG  {  } hold iff the state is a  -state. Formulae E [  {  } U {  ’}  ’], A [  {  } U {  ’}  ’], EX {  } , AX {  } , EF {  } , and AF {  } , do not hold in a deadlocked state. If there exists a finite fullpath starting in state p which is an empty fullpath or consists only of ( ,  ) -transitions, then ACTL formulae E [  {  } W {  ’}  ’] and EG  {  } hold in state p iff p is a  -state. If there exists a finite fullpath starting in state p which is an empty fullpath or consists only of transitions which are not (  ’,  ’) -transitions, then ACTL formulae A [  {  } U {  ’}  ’] and AF {  ’}  ’ do not hold in state p.

12 12/27 Even better definition of ACTL-W Strict ACTL-W operators allow a more elegant definition of semantics and also more structured model checking algorithms. E [  {  } U {  ’}  ’] =   E [ {  }  U {  ’}  ’] E [  {  } W {  ’}  ’] =   E [ {  }  W {  ’}  ’] EG  {  } =   EG {  }   :== [ {  }  U {  ’}  ’] | [ {  }  W {  ’}  ’]

13 13/27 Useful abbreviations Equal to CTL !

14 14/27 Adequate sets of ACTL-W operators 1. By definition: EU, EW, AU, AW 2. An important adequate set: EU, EG, AW, AF CTL: CTL: Usually used adequate set has 3 elements (EX, EG, EU) Minimal adequate set has 2 elements (EU >, AU > ) ACTL-W: ACTL-W: Minimal adequate set has 4 elements! we do not have a formal proof, yet

15 15/27 ACTL-W Model Checking E [  {  } U {  ’}  ’] is valid if there exists the following path: EG  {  } is valid if there exists the following path:

16 16/27 ACTL-W Model Checking (cont.) A [  {  } W {  ’}  ’] is not valid if there exists the following path: AF {  }  is not valid if there exists the following path:

17 17/27 ACTL-W versus ACTL The converse is not true: There exists a path consisting only of  -transitions such that in all states on this path action a can be performed. EG ( EX { a }) {  } we do not have a formal proof, yet ACTL was introduced by R. De Nicola and F. Vaandrager in 1990; ACTL-W can render all formulae expressible in ACTL.

18 18/27 Conclusion of the first part http://lms.uni-mb.si/EST/ Efficient Symbolic Tools GNU General Public License, Linux, MS Windows, Solaris ACTL-W is a new, enriched variant of Action CTL. Using ACTL-W, the properties can be expressed with patterns similar to those used with CTL. ACTL-W model checking and counterexamples generation can be implemented using fixed point calculation. We have incorporated ACTL-W in a BDD-based tool EST.

19 19/27 A BDD based model checker You have: 4 a BDD package with: Bdd_ITE (f, g, h), Bdd_Cmp (f, g), Bdd_E (f, var), Bdd_A(f, var), Bdd_Rename(f, var1, var2), Bdd_Restrict(f, var, const), Bdd_Compose(f, var, g) 4 a process algebra package (or LTS package) with: Pa_ReadProcess (FILE), Pa_EncodeProcess (name), Pa_ExtractState (set), Pa_ExtractTransition (set) 4 transitions encoded as (r, a, s) You want to implement symbolic model checker.

20 20/27 BNF for ACTL-W ::= 'FALSE' | 'TRUE' ::= 'E' '[' 'U' ']' ::= 'A' '[' 'U' ']' ::= 'E' '[' 'W' ']' ::= 'A' '[' 'W' ']' ::= 'EX' | 'AX' ::= 'EF' | 'AF' ::= 'EG' | 'AG' ::= '(' ')' | 'NOT' | 'AND' | 'OR' | 'EQV' | 'IMPL' ::= | '{' '}' | '{' '}' ::= 'FALSE' | 'TRUE' | 'TAU' | visible_action ::= '(' ')' | 'NOT' | 'AND' | 'OR' | 'IMPL' | 'EQV'

21 21/27 Symbolic model checking operations on LTSs operations on Boolean functions operations on BDDs

22 22/27 Function Mc_CheckEEU: E [  {  } U {  ’}  ’] Bdd_Edge Mc_CheckEEU (Bdd_Edge D, Bdd_Edge s1, Bdd_Edge a1, Bdd_Edge a2, Bdd_Edge s2) { Bdd_Edge last,Z,tmp1,tmp2,tmp3; /* IF THERE ARE NO TRANSITIONS IN THE PROCESS */ if (Bdd_Cmp(D,bdd_termFalse)) return bdd_termFalse; /* LEAST FIXED POINT CALCULATION */ last = bdd_termNull; Z = bdd_termFalse; while (!Bdd_Cmp(Z,last)) { last = Z; tmp1 = Bdd_AND(a1,Z); tmp2 = Bdd_AND(a2,s2); tmp3 = Bdd_OR(tmp1,tmp2); tmp3 = Bdd_R2S(tmp3); tmp3 = Bdd_AND_ExAS(D,tmp3); tmp3 = Bdd_AND(s1,tmp3); Z = tm3; } return Z; } transition relation   ’’ ’’  z  ’  ’ EX + (… V …) S 

23 23/27 Function Mc_CheckEEU - some details Let L = (S, A , , s 0 ) be a finite-state LTS. We introduce a formula EX +  V  ’  ’), which holds in a state p iff there exists either a ( ,  ) -transition or a ( ,  ) -transition from state p. This new operator help us to express a fixed point formula for EU :

24 24/27 EST - An example The crossing consists of two barriers and train traffic lights. 1. The barriers have to be kept down when the train crosses. 2. The train can cross only if the traffic lights are green, otherwise it has to stop. A crossing of a road and a railway

25 25/27 EST - An example (cont.)

26 26/27 Conclusion My work during my stay at ISTI : 4 to study ACTL, mu-ACTL and ACTL-W in details; 4 to give an axiomatisation for ACTL-W (based on work of S. Gnesi); 4 to study counterexample and witnesses for ACTL, its subsets and extensions, especially interested in counterexample and witness automata for CTL, ACTL (based on work of A. Fantechi); 4 to implement a BDD-based algorithms for counterexample and witness automata and to integrate it into EST and JACK.

27 27/27 About ACTL-W and the implementation of a BDD based model checker Thank you!


Download ppt "About ACTL-W and the implementation of a BDD based model checker ISTI, Pisa Robert Meolic Faculty of EE&CS, Maribor, Slovenia Friday, Februar 13, 2004."

Similar presentations


Ads by Google