TESTCOM/FATES 20081 Test Plan Generation for Concurrent Real-Time Systems based on Zone Coverage Analysis Farn Wang Dept. of Electrical Eng. National Taiwan.

Slides:



Advertisements
Similar presentations
Model Checking Lecture 4. Outline 1 Specifications: logic vs. automata, linear vs. branching, safety vs. liveness 2 Graph algorithms for model checking.
Advertisements

An improved on-the-fly tableau construction for a real-time temporal logic Marc Geilen 12 July 2003 /e.
Analyzing Regression Test Selection Techniques
CS 267: Automated Verification Lecture 8: Automata Theoretic Model Checking Instructor: Tevfik Bultan.
Partial Order Reduction: Main Idea
SAT Based Abstraction/Refinement in Model-Checking Based on work by E. Clarke, A. Gupta, J. Kukula, O. Strichman (CAV’02)
1 Fault Diagnosis for Timed Automata Stavros Tripakis VERIMAG.
1 Model checking. 2 And now... the system How do we model a reactive system with an automaton ? It is convenient to model systems with Transition systems.
Automatic Verification Book: Chapter 6. What is verification? Traditionally, verification means proof of correctness automatic: model checking deductive:
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
UPPAAL Introduction Chien-Liang Chen.
Hybrid Systems Presented by: Arnab De Anand S. An Intuitive Introduction to Hybrid Systems Discrete program with an analog environment. What does it mean?
Timed Automata.
Testing Concurrent/Distributed Systems Review of Final CEN 5076 Class 14 – 12/05.
UPPAAL Andreas Hadiyono Arrummaisha Adrifina Harya Iswara Aditya Wibowo Juwita Utami Putri.
CSE 522 UPPAAL – A Model Checking Tool Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee
Rigorous Software Development CSCI-GA Instructor: Thomas Wies Spring 2012 Lecture 13.
CS 267: Automated Verification Lecture 10: Nested Depth First Search, Counter- Example Generation Revisited, Bit-State Hashing, On-The-Fly Model Checking.
Compatibility between shared variable valuations in timed automaton network model- checking Zhao Jianhua, Zhou Xiuyi, Li Xuandong, Zheng Guoliang Presented.
Hybrid Approach to Model-Checking of Timed Automata DAT4 Project Proposal Supervisor: Alexandre David.
Model Checking for Probabilistic Timed Systems Jeremy Sproston Università di Torino VOSS Dagstuhl seminar 9th December 2002.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Model Checking. Used in studying behaviors of reactive systems Typically involves three steps: Create a finite state model (FSM) of the system design.
1 Deciding separation formulas with SAT Ofer Strichman Sanjit A. Seshia Randal E. Bryant School of Computer Science, Carnegie Mellon University.
A Schedulability-Preserving Transformation of BDF to Petri Nets Cong Liu EECS 290n Class Project December 10, 2004.
Scheduling Using Timed Automata Borzoo Bonakdarpour Wednesday, April 13, 2005 Selected Topics in Algorithms and Complexity (CSE960)
Model-based Testing.
Sanjit A. Seshia and Randal E. Bryant Computer Science Department
1 Predicates and quantifiers Chapter 8 Formal Specification using Z.
CSE115/ENGR160 Discrete Mathematics 03/31/11
Tirgul 13. Unweighted Graphs Wishful Thinking – you decide to go to work on your sun-tan in ‘ Hatzuk ’ beach in Tel-Aviv. Therefore, you take your swimming.
Theory of Computing Lecture 22 MAS 714 Hartmut Klauck.
1 Efficient Verification of Timed Automata Kim Guldstrand Larsen Paul PetterssonMogens Nielsen
Penn ESE535 Spring DeHon 1 ESE535: Electronic Design Automation Day 8: February 13, 2008 Retiming.
Cheng/Dillon-Software Engineering: Formal Methods Model Checking.
 2004 SDU Introduction to the Theory of Computation My name: 冯好娣 My office: 计算中心 430
Timed UML State Machines Ognyana Hristova Tutor: Priv.-Doz. Dr. Thomas Noll June, 2007.
Verifying Concurrent Message- Passing C Programs with Recursive Calls Sagar Chaki, Edmund Clarke, Nicholas Kidd, Thomas Reps, and Tayssir Touili.
Constraint-based Invariant Inference. Invariants Dictionary Meaning: A function, quantity, or property which remains unchanged Property (in our context):
Hardware Supported Time Synchronization in Multi-Core Architectures 林孟諭 Dept. of Electrical Engineering National Cheng Kung University Tainan, Taiwan,
CEFRIEL Consorzio per la Formazione e la Ricerca in Ingegneria dell’Informazione Politecnico di Milano Model Checking UML Specifications of Real Time Software.
CS4231 Parallel and Distributed Algorithms AY 2006/2007 Semester 2 Lecture 3 (26/01/2006) Instructor: Haifeng YU.
1 Levi Lúcio © A Test Selection Language for CO-OPN Specifications Levi Lúcio, Luis Pedro and Didier Buchs University of Geneva.
Analysis of a Protocol for Dynamic Configuration of IPv4 Link Local Addresses Using Uppaal Miaomiao Zhang Frits W. Vaandrager Department of Computer Science.
Lecture51 Timed Automata II CS 5270 Lecture 5.
Lecture 81 Regional Automaton CS 5270 Lecture 8. Lecture 82 What We Need to Do Problem: –We need to analyze the timed behavior of a TTS. –The timed behavior.
Timed I/O Automata: A Mathematical Framework for Modeling and Analyzing Real-Time Systems Frits Vaandrager, University of Nijmegen joint work with Dilsun.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Lazy Annotation for Program Testing and Verification Speaker: Chen-Hsuan Adonis Lin Advisor: Jie-Hong Roland Jiang November 26,
Lecture 81 Optimizing CTL Model checking + Model checking TCTL CS 5270 Lecture 9.
1 Outline:  Optimization of Timed Systems  TA-Modeling of Scheduling Tasks  Transformation of TA into Mixed-Integer Programs  Tree Search for TA using.
Predicates and Quantified Statements
Towards Interoperability Test Generation of Time Dependent Protocols: a Case Study Zhiliang Wang, Jianping Wu, Xia Yin Department of Computer Science Tsinghua.
1 Model Checking of of Timed Systems Rajeev Alur University of Pennsylvania.
Toward Unbounded Model Checking for Region Automata Fang Yu, Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan.
/ PSWLAB Evidence-Based Analysis and Inferring Preconditions for Bug Detection By D. Brand, M. Buss, V. C. Sreedhar published in ICSM 2007.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
The Time-abstracting Bisimulation Equivalence  on TA states: Preserve discrete state changes. Abstract exact time delays. s1s2 s3  a s4  a 11 s1s2.
Farn Wang. ICFEM'2005-Manchester
SS 2017 Software Verification Timed Automata
(xy)(yz)(xz)(zy)
Instructor: Rajeev Alur
Automatic Verification
Gabor Madl Ph.D. Candidate, UC Irvine Advisor: Nikil Dutt
On Using Linearly Priced Timed Automata for Flow Analysis
Alternating tree Automata and Parity games
Applied Discrete Mathematics Week 9: Integer Properties
Course: CS60030 FORMAL SYSTEMS
Presentation transcript:

TESTCOM/FATES Test Plan Generation for Concurrent Real-Time Systems based on Zone Coverage Analysis Farn Wang Dept. of Electrical Eng. National Taiwan University joint work w. G.-D. Huang

TESTCOM/FATES Background Testing is still the main verification technique. CRTS (Concurrent Real-Time Systems) imposes challenges to test coverage. –concurrency  event ordering –event time instances –appropriate coverage mertics for CRTS ? states ? regions ? zones ?

TESTCOM/FATES Proposal CTA (communicating timed automata) for the model of CRTS AZC (Active Zone Coverage) –Estimate how big a zone is. –Only active variables are used in determining zones Testplan for efficient AZC gains Experiments

TESTCOM/FATES Related work (1/2) Classic: –statement coverage, visited-state, transition coverage TA (timed automata) reachability –arc coverage, trigger coverage –region coverage, estimation technique of regions in a zone. UPPAAL –time-optimal testplans –edge coverage, location coverage, dataflow coverage

TESTCOM/FATES Related work (2/2) event-recording automata  reachability graph of equivalence classes  test plan –arc coverage, location coverage, domain analysis, dataflow coverage uniformly priced timed automata  test plans with a minimum cost Test plan based on fault-detection rate for regression testing Test case with region coverage annotations for timed automata model

TESTCOM/FATES CTA Communicating Timed Automata wait retry x<=52 ?cd !end x1==808 idle busy collision x<26 ?begin x3<26 x3=0; ?begin x3=0; ?end Sender 1 Sender 2 Bus !begin x1=0; !cd Sender1,Sender2, and Bus are all PTAs. ?cd send x1<=808 !begin x1=0; 4 ?cd 3 5 wait retry x<=52 ?cd !end x2== !begin x2=0; ?cd send x2<=808 !begin x2=0; 11 ?cd 10 12

TESTCOM/FATES CTA LGT (legitimate global transitions) synchronized: for every event e, every !e is received by exactly a ?e. minimal: it cannot be decomposed to more than one legitimate global transitions

TESTCOM/FATES CTA LGT (legitimate global transitions) wait retry x<=52 ?cd !end x1==808 idle busy collision x<26 ?begin x3<26 x3=0; ?begin x3=0; ?end Sender 1 Sender 2 Bus !begin x1=0; !cd ?cd send x1<=808 !begin x1=0; 4 ?cd 3 5 wait retry x<=52 ?cd !end x2== !begin x2=0; ?cd send x2<=808 !begin x2=0; 11 ?cd (1,15) is an LGT.(8,15) is an LGT. (4,13,18) is an LGT. (1,8,15) is not. not sync’d (4) is not. not sync’d (4,18) is not. not sync’d (19,8,15) is not. not minimal 19

TESTCOM/FATES CTA states and transitions state, a valuation from propositions to {true, false} from clocks to non-negative reals +t, a state identical to except that for all clocks x, ( +t)(x) = (x)+t, transitions  g ’ satisfies the trigger of g. ’ is identical to except that clocks are reset according to g.

TESTCOM/FATES Regions & Zones Zones: convex space characterizable with constraints of the form x-y<c, x-y≤c –x,y: clocks or zeros, –c: an integer with |c| ≤ the biggest timing constant used in the model and property. Regions: the smallest non-empty zones Region-equivalence is fine enough for TCTL model-checking. Zone-equivalence can also be fine enough and efficient for the same purpose.

TESTCOM/FATES Symbolic postcondition  ’ = post( ,g): the zone for the timed postcondition  ’ of zone  after LGT g. post( ,g)={ | ’ , t  R, t≥0, ’+t  g }

TESTCOM/FATES Zone Forest construct the reachability graph ZoneForest(A,  ) { Rewrite the initial condition of A in DN  1  …   n R:={  1, …,  n }; V:=R; Φ:=R; K:=  ;  :=  1  …   n ; While  , { Pick a zone  from  ; let  :=  – {  }; For each LGT g { Let  ’ := post( , g); If  ’   is satisfiable, {  :=    ’;  :=   {  ’}; V:=V  {  ’ }; K:=K  {( ,g,  ’)}. } } } return (V,R,K); } The reachability predicate already- reachables are not explored.

TESTCOM/FATES Active zones (1/2) A variable x is active in a state iff there is a run from along which x is read before ever written to.  (Write(x)  Read(x)) U Read(x) Write(x), the disjunction of triggers of all LGT g which writes to x. Read(x), –the disjunction of triggers of all LGT g which reads x in either triggers or the RHS of actions –the invariance condiitons –the risk conditions

TESTCOM/FATES Active zones (2/2) ActiveZone (  ) { for every clock x, if    (Write(x)  Read(x)) U Read(x) is unsatisfiable,  :=  x(  ); return  ; } Reduce the representation sizes of reachable spaces! Improve performance in ZoneForest construction! Gain more regions in coverage!

TESTCOM/FATES Prioritized Test Plan Generation TestPlan(A,  ) { Let  be the set of root-to-leaf paths in ZoneForest(A,  ); Let  be an empty sequence;  := false. While    { Pick a  1 …  n   s.t.   ’ 1 …  ’ m   RCM(ActiveZone(  1  …   n   )) ≥ RCM(ActiveZone(  ’ 1  …   ’ m   ))  :=  - {  1 …  n };  :=  testcase(  1 …  n );  :=    1  …   n ; } return  } The region coverage estimation technique in FORTE 2003, by Wang, Hwang, Yu. Sequence concatenation.

TESTCOM/FATES Experiments RED, version 7.0 –model-checker for TCTL and TAs –simulation-checker for TAs –parametric analyzer for LHAs –In sourceforge project REDLIB. BLUETOOTH, L2CAP Linux, REDHAT 9, 3.2GHz We did not compare with other tools. previous state-based coverage for timed systems ? could have to concoct some SUTs that show our performance.

TESTCOM/FATES AZC estimation for zone forest construction

TESTCOM/FATES AZC gain for prioritized test plan

TESTCOM/FATES Future work The strength of state-based coverage for timed systems ? New state-based coverage metrics for timed systems Cost of testcases ?