Quantitative. Kim G. Larsen DENMARK

Size: px
Start display at page:

Download "Quantitative. Kim G. Larsen DENMARK"

Transcription

1 Quantitative Verification i and Synthesis, of Embedded Systemss Kim G. Larsen CISS Aalborg University DENMARK

2 Embedded Systems sensors Plant Controller Program Continuous actuators Discrete Eg.: Realtime Protocols Quantities: Pump Control timing Air Bags Robots energy Cruise Control memory ABS bandwidth CD Players uncertainties Production Lines Kim Larsen [2]

3 Verification Plant Continuous sensors Controller Program Discrete actuators Model of tasks (automatic? Model a b c 3 4 a 1 2 non-determinism) SATa?? b c 3 b c 3 4 of environment (user-supplied / UPPAAL Model Kim Larsen [3]

4 Synthesis Plant Continuous sensors actuators Controller Program?? Discrete Synthesis of tasks (automatic) Model of environment (user-supplied) b a c a b c Partial UPPAAL Model SAT!! a b c 3 4 Kim Larsen [4]

5 Embedded Systems Embedded Systems Scheduling Tasks: Computation times Deadlines Dependencies Arrival patterns uncertainties Scheduling Principles (OS) EDF, FPS, RMS, DVS,.. Resources Execution platform PE, Memory Networks Drivers uncertainties Kim Larsen [5]

6 Approach Timed Automata Tasks SP Res. Schedulability Analysis Verify that given SP ensures deadlines. Performance Evaluation Estimate resources (e.g. energy) required by given SP. CLASSIC Scheduling & Synthesis CORA Synthesize (optimal) SP ensuring given objective. TIGA Scheduling: SP controls everything (including TRON ex.time). TALK: Synthesis: What can scheduling we do? under uncertainties (e.g. execution time, availability of resources). What can we do efficiently? What would we like to do? What can not be done? Kim Larsen [6]

7 Overview Scheduling Timed Automata Optimal Scheduling Priced Timed Automata Schedulability Analysis Stop-watch Automata Safety Criticial JAVA (FPGA) Synthesis Timed Game Automata Kim Larsen [7]

8 Timed Automata

9 UPPAAL (1995- Kim G Larsen Gerd Behrman Arne Skou Brian Nielsen Alexandre David Jacob I. Rasmussen Marius Mikucionis Shuhao Total Do ownloads Wang Yi Paul Pettersson 5000 John Håkansson 0 Anders Hessel Pavel Krcal Leonid Mokrushin Shi Xiaochun UPPAAL Downloads y = x x YYMM Kim Larsen [9]

10 Timed Automata [Alur & Dill 89] Resource Synchronization Reset Clock Guard Clock Invariant Semantics: ( Idle, x=0 ) d(2.5) ( Idle, x=2.5) use? ( InUse, x=0 ) d(5) ( InUse, x=5) done! ( Idle, x=5) Kim Larsen [10]

11 Composition Resource Synchronization Task Shared variable Semantics: ( Idle, Init, B=0, x=0) d(3.1415) ( Idle, Init, B=0, x= ) use ( InUse, Using, B=6, x=0 ) d(6) ( InUse, Using, B=6, x=6 ) done ( Idle, Done, B=6, x=6 ) Kim Larsen [11]

12 Task Graph Scheduling Example A 1 B C D + 2 * Compute : (D * ( C * ( A + B )) + (( A + B ) + ( C * D )) using 2 processors C * + 5 D * P1 6 P2 1 + P1 (fast) P2 (slow) + * 2ps 3ps + * 5ps 7ps Kim Larsen [12] time

13 Task Graph Scheduling Example A 1 B C D + 2 * Compute : (D * ( C * ( A + B )) + (( A + B ) + ( C * D )) using 2 processors 3 4 C * + 5 D * P1 P2 6 + P1 (fast) P2 (slow) + * 2ps 3ps + * 5ps 7ps Kim Larsen [13] time

14 Task Graph Scheduling P 2 P 1 2,3 16,10 2,3 6,6 10,16 P 6 P 3 P 4 2,2 P 7 8,2 P 5 M = {M 1,M 2 } Kim Larsen [14]

15 Task Graph Scheduling P 2 P 1 2,3 16,10 2,3 6,6 10,16 P 6 P 3 P 4 2,2 P 7 8,2 P 5 E<> (Task1 End and and Task7 End) M = {M 1,M 2 } E<> (Task1.End and and Task7.End) Kim Larsen [15]

16 Experimental Results Symbolic A* Branch-&-Bound 60 sec Abdeddaïm, Kerbaa, Maler Kim Larsen [16]

17 Zones From infinite to finite State (n, x=3.2, y=2.5 ) y y Symbolic state (set) (n, 1 x 4, 1 y 3) Zone: conjunction of x-y<=n, x<=>n x x Kim Larsen [17]

18 Zones - Operations (n, 2 x 4 Æ 1 y 3 Æ y-x 0 ) (n, 2 x Æ y y 1 y Æ -3 y-x 0 ) y (n, 2 x Æ 1 y 3 Æ y-x 0 ) x x x Delay Delay (stopwatch) y y y (n, x=0 Æ 1 y 3 ) (n, 2 x 4Æ 1 y ) 2 x x x Reset Extrapolation Convex Hull Kim Larsen [18]

19 Datastructures for Zones Difference Bounded Matrices (DBMs) Minimal Constraint Form [RTSS97] Clock Difference Diagrams [CAV99] PW List [SPIN03] x1-4 4 x x0 1 5 x3 2 Kim Larsen [19]

20 Datastructures for Zones Difference Bounded Matrices (DBMs) Minimal Constraint Form [RTSS97] Clock Difference Diagrams Alexandre [CAV99] David x1-4 4 x Elegant x0 RUBY bindings x3 for 1 easy implementations 5 2 PW List [SPIN03] Kim Larsen [20]

21 Case Studies: Controllers Gearbox Controller [TACAS 98] Bang & Olufsen Power Controller [RTPS 99,FTRTFT 2k] SIDMAR Steel Production Plant [RTCSA 99, DSVV 2k] Real-Time RCX Control-Programs [ECRTS 2k] Terma, Verification of Memory Management for Radar (2001) Scheduling Lacquer Production (2005) Memory Arbiter Synthesis and Verification for a Radar Memory Interface Card [NJC 05] Adapting the UPPAAL Model of a Distributed Lift System, 2007 Analyzing a χ model of a turntable system using Spin, CADP and Uppaal, 2006 Designing, Modelling and Verifying a Container Terminal System Using UPPAAL, 2008 Model-based system analysis using Chi and Uppaal: An industrial case study, 2008 Kim Larsen [21]

22 Case Studies: Protocols Philips Audio Protocol [HS 95, CAV 95, RTSS 95, CAV 96] Bounded Retransmission Protocol [TACAS 97] Bang & Olufsen Audio/Video Protocol [RTSS 97] TDMA Protocol [PRFTS 97] Lip-Synchronization Protocol [FMICS 97] ATM ABR Protocol [CAV 99] ABB Fieldbus Protocol [ECRTS 2k] IEEE 1394 Firewire Root Contention (2000) Distributed Agreement Protocol [Formats05] Leader Election for Mobile Ad Hoc Networks [Charme05] Analysis of a protocol for dynamic configuration of IPv4 link local addresses using Uppaal, 2006 Formalizing i SHIM6, a Proposed Internet Standard d in UPPAAL, 2007 Verifying the distributed real-time network protocol RTnet using Uppaal, 2007 Analysis of the Zeroconf protocol using UPPAAL, 2009 Analysis of a Clock Synchronization Protocol for Wireless Sensor Networks, 2009 Kim Larsen [22]

23 Using UPPAAL as Back-end Vooduu: verification of object-oriented designs using Uppaal, 2004 Moby/RT: A Tool for Specification and Verification of Real-Time Systems, 2000 Formalising the ARTS MPSOC Model in UPPAAL, 2007 Timed automata t translator t for Uppaal to PVS Component-Based Design and Analysis of Embedded Systems with UPPAAL PORT, 2008 Verification of COMDES-II Systems Using UPPAAL with Model Transformation, 2008 Kim Larsen [23]

24 Priced Timed Automata

25 Task Graph Scheduling Revisited A 1 B C D + 2 * Compute : (D * ( C * ( A + B )) + (( A + B ) + ( C * D )) using 2 processors 3 4 C * + 5 D * P1 P2 6 + P1 (fast) P2 (slow) + * Idle 2ps 3ps 1oW + * Idle 5ps 7ps 20W ENERGY: 5 10 In use 90W 30W In use Kim Larsen [25] time

26 Task Graph Scheduling Revisited A 1 B C D + 2 * Compute : (D * ( C * ( A + B )) + (( A + B ) + ( C * D )) using 2 processors 3 4 C * + 5 D * P1 P2 6 + P1 (fast) P2 (slow) + * Idle 2ps 3ps 10W + * Idle 5ps 7ps 20W ENERGY: 5 10 In use 90W 30W In use Kim Larsen [26] time

27 Optimal Task Graph Scheduling Energy-rates: C : M N Compute schedule with minimum completion-cost?? 16,10 2,3 P 2 P 1 2,3 6,6 10,16 P 6 P 3 P 4 2,22 P 7 8,2 P 5 4W 3W Kim Larsen [27]

28 Priced Timed Automata Timed Automata + COST variable Behrmann, Fehnker, et all (HSCC 01) Alur, Torre, Pappas (HSCC 01) cost rate l l 1 2 x 2 l 3 3 y 0 y 4 c =4 c =2 x:=0 c+=4 c+=1 x:=0 y 4 cost update Kim Larsen [28]

29 Priced Timed Automata Timed Automata + COST variable Behrmann, Fehnker, et all (HSCC 01) Alur, Torre, Pappas (HSCC 01) cost rate TRACES l l 1 2 x 2 l 3 3 y 0 y 4 c =4 c =2 x:=0 c+=4 c+=1 x:=0 y 4 cost update (3) (l 1,x=y=0) (l 1,x=y=3) (l 2,x=0,y=3) (l 3,_,_) c=17 Kim Larsen [29]

30 Priced Timed Automata Timed Automata + COST variable Behrmann, Fehnker, et all (HSCC 01) Alur, Torre, Pappas (HSCC 01) cost rate TRACES l l 1 2 x 2 l 3 3 y 0 y 4 c =4 c =2 x:=0 c+=4 c+=1 x:=0 y 4 cost update (3) (l 1,x=y=0) (l 1,x=y=3) (l 2,x=0,y=3) (l 3,_,_) c=17 (2.5) (l 1,x=y=0) (l 1,x=y=2.5) (l 2,x=0,y=2.5) (l 2,x=0.5,y=3) x=05y=3) (l 3,_,_) (3) (l 1,x=y=0) (l 2,x=0,y=0) (l 2,x=3,y=3) (l 2,x=0,y=3) (l 3,_,_) (.5) c=16 c=11 Kim Larsen [30]

31 Cost-Optimality Reachability Behrmann, Fehnker, et all (HSCC 01) Alur, Torre, Pappas (HSCC 01) Cost of step n c 3 c 1 c 2 3 c n GOAL Value Competitive of path : with val( ) and = Complementary c 1 + c c to MILP n Optimal Schedule * : val( * ) = inf val( ) Kim Larsen [31]

32 Optimal Infinite Scheduling Maximize throughput: i.e. maximize Reward / Time in the long run! Kim Larsen [32]

33 Optimal Infinite Scheduling Minimize Energy Consumption: i.e. minimize Cost / Time in the long run Kim Larsen [33]

34 Optimal Infinite Scheduling Maximize throughput: i.e. maximize Reward / Cost in the long run Kim Larsen [34]

35 Mean Pay-Off Optimality Bouyer, Brinksma, Larsen: HSCC04,FMSD07 Accumulated cost c 3 c n c 1 c 2 r 3 r n r 1 r 2 BAD Accumulated reward Value of path : val( ) = lim n c n /r n Optimal Schedule * : val( * ) = inf val( ) Kim Larsen [35]

36 Discount Optimality 1 : discounting factor Larsen, Fahrenberg: INFINITY 08 Cost of time t n ) c(t 3) c(t n ) c(t 1 ) c(t 2) t 1 t 2 t 3 t n BAD Time of step n Value of path : val( ) = Optimal Schedule * : val( * ) = inf val( ) Kim Larsen [36]

37 Consuming & Harvesting Energy Bouyer, Fahrenberg, Larsen, Markey, Srba: FORMATS 2008 Maximize throughput while respecting: 0 E MAX Kim Larsen [37]

38 Energy-Bounded Infinite Runs Bouyer, Fahrenberg, Larsen, Markey, Srba: FORMATS 2008 Cost of time t n c(t c(t 4 ) c(t n ) c(t 1 ) 2) t 4 t n t 1 t 2 BAD Time of step n MAX t 1 t 2 t 3 t 4 Kim Larsen [38]

39 Multiple Objective Scheduling 16,10 P 2 P 1 2,3 2,3 cost 1 ==4 cost 2 ==3 1 cost 2 6,6 10,16 P 6 P 3 P 4 Pareto Frontier P 7 P 5 2,22 8,2 4W 3W cost1 Kim Larsen [39]

40 Schedulability Analysis

41 Task Scheduling utilization of CPU T 1 T 2 ready done P(i), [E(i), L(i)],.. : period or earliest/latest arrival or.. for T i C(i): execution time for T i D(i): deadline for T i Scheduler T n stop run T 2 is running { T 4, T 1, T 3 } ready ordered according to some given priority: (e.g. Fixed Priority, Earliest Deadline,..) Kim Larsen [41]

42 Modeling Task T 1 T 2 T n ready done stop run Scheduler Kim Larsen [42]

43 Modeling Scheduler T 1 T 2 T n ready done stop run Scheduler Kim Larsen [43]

44 Modeling Queue In UPPAAL 4.0 User Defined Function T 1 T 2 T n ready done stop run Scheduler Kim Larsen [44]

45 Schedulability = Safety Property May be extended with preemption (Task0.Error E or Task1.Error or ) A (Task0.Error or Task1.Error or ) Kim Larsen [45]

46 Preemption Stopwatches! Scheduler Task Defeating undecidability Kim Larsen [46]

47 Handling realistic applications? Jan Madsen / DTU Smart phone: MP3 Decoder [Application from Marcus Schmitz, TU Linkoping] Kim Larsen [47]

48 Smart phone MP3 Decoder Tasks: 114 Deadlines: [0.02: 02: 0.5] sec Execution: [52 : ] cycles Platform: 6 processors, 25 MHz 1 bus Verified in 1.5 hours! Kim Larsen [48]

49 Safety Critical Java Schedulability Analysis With Bent Thomsen Petur Olesen Thomas Bøghholm

50 A Safety Critical System Kim Larsen [50]

51 Hardware JOP (Java Optimized Processor) Native execution of Java Bytecode Bytecode implemented in Microcode Avoid unpredictable data-cache Time predictable Developed new method and stack cache Implemented in FPGA Kim Larsen [51]

52 Java Optimizing Processor FPGA Martin Schöberl University of Tech., Vienna Kim Larsen [52]

53 JOP Block Diagram FPGA 3-4 different FPGAs 6 different boards Kim Larsen [53]

54 Safety Critical Java Min interarrival Tasks public static void main(string[] args) { new SporadicPushMotor( new SporadicParameters(4, 4000, 60), 0); new SporadicPushMotor( new SporadicParameters(2, 4000, 60), 1); PeriodicMotorSpooler motorspooler = new PeriodicMotorSpooler( new PeriodicParameters(4000)); new PeriodicReadSensor( new PeriodicParameters(2000), motorspooler); Deadline } RealtimeSystem.start(); Kim Larsen [54]

55 Byte code Micro code Method: run ()Z 0: aload_0 1: getfield 4: ifeq -> 20 7: aload_0 8: dup protected boolean run() if i<5 { i = i + 4; } else{ 9: getfield i = i * 4; } return true; } 12: iconst_1 13: iadd 14: putfield 17: goto -> 30 20: aload_0 21: dup 22: getfield 25: iconst_1 26: isub 27: putfield 30: iconst_1 31: ireturn Kim Larsen [55]

56 Byte code Timed Automata protected boolean run() if i<5 { i = i + 4; }else{ i = i * 4; } return true; } Data abstracted Timing = WCET from microcode Kim Larsen [56]

57 SARTS from Safety Critical Java public static void main(string[] args) { new SporadicPushMotor( new SporadicParameters(4, 4000, 60), 0); new SporadicPushMotor( private void handlebrick() { new SporadicParameters(2, Sensors.synchronizedReadSensors(); private void 4000, handlebrick() 60), 1); { int Sensors.synchronizedReadSensors(); input private = (Sensors.getBufferedSensor(0) void handlebrick() { + Sensors.getBufferedSensor(1)) >> 1; PeriodicMotorSpooler motorspooler int Sensors.synchronizedReadSensors(); input private = = (Sensors.getBufferedSensor(0) void handlebrick() { + Sensors int input Sensors.synchronizedReadSensors(); = (Sensors.getBufferedSensor(0).getBufferedSensor(1)) >> 1; + Sensors new PeriodicMotorSpooler( if (awaitingbrick) int input private i = { (Sensors.getBufferedSensor(0).getBufferedSensor(1)) void idhandlebrick() dlbik(){ >> 1; + Sensors new PeriodicParameters(4000)); if (awaitingbrick) Sensors.synchronizedReadSensors(); if (input {.getbufferedsensor(1)) > lastread) { >> 1; if (awaitingbrick) int input if private (input = {(Sensors.getBufferedSensor(0) > void lastread) handlebrick() { = input; { + Sensors new PeriodicReadSensor( if (awaitingbrick) } else Sensors.synchronizedReadSensors(); if if (input ((lastread {.getbufferedsensor(1)) > lastread) - input) { = >= input; TRESHOLD) >> 1; { new PeriodicParameters(2000), } int else motorspooler); input if (input ((lastread = (Sensors.getBufferedSensor(0) awaitingbrick > lastread) - input) = { >= input; false; TRESHOLD) + { Sensors if (awaitingbrick) } else if ((lastread if (lastread { awaitingbrick.getbufferedsensor(1)) aitingbrick lastread - input) > BRICK_DETECTED) >= = false; input; TRESHOLD) >> 1; { { } else if if (input ((lastread brickfound(lastread); RealtimeSystem.start(); if (lastread awaitingbrick > lastread) - input) > BRICK_DETECTED) { = >= false; TRESHOLD) { if (awaitingbrick) } if (lastread { awaitingbrick lastread > brickfound(lastread); BRICK_DETECTED) = input; false; { } } } else } if if (input ((lastread if (lastread > lastread) - input) brickfound(lastread); > BRICK_DETECTED) { >= TRESHOLD) { { } } awaitingbrick lastread brickfound(lastread); = input; false; } } else } if ((lastread if (lastread - input) > BRICK_DETECTED) >= TRESHOLD) { { } awaitingbrick brickfound(lastread); = false; TASKS } if (lastread > BRICK_DETECTED) { } brickfound(lastread); } } METHODS Kim Larsen [57]

58 SARTS to Timed Automata 18 methods + 4 tasks = 76 components Detection of Deadline Violation Integrated SARTS w ECLIPSE Visualize WCET in ECLIPSE Kim Larsen [58]

59 METAMOC Modular Execution Time Analysis using Model Chekcing With Rene R Hansen Andreas Dalsgaard Mads Olesen Martin Toft

60 WCET: Worst Case Execution Time Isolated, non-blocking code Annotation with loop counts. Cache used for speeding up access of memory blocks. Full associatively. LRU replacement strategy. var A; var B; var C; var D; var E; while (E < 11) 10 { output B; output C; output A; output D; output C } Kim Larsen [60]

61 WCET: Worst Case Execution Time Probability BCET WCET In general: hard or impossible to predict Minimum execution time observed JOP: No data caching No pipelining No branch prediction Maximal observed execution time Kim Larsen [61] Time Sound Upper Bound

62 Tool Chain Kim Larsen [62]

63 Disassembler - Dissy Kim Larsen [63]

64 Model Creation - pyuppaal Kim Larsen [64]

65 Prototype Implementation Kim Larsen [65]

66 Experiments Kim Larsen [66]

67 Experiments Kim Larsen [67]

68 Future Work Still work in progress UPPAAL provides flexible framework for modularization Analysis times acceptable. Integration of abstract caches Better value analysis Integration ti of WCET and Schedulability Analysis Kim Larsen [68]

69 More Information Kim Larsen [69]

70 Timed Games

71 Scheduling When you are under Uncertainty ( Task1.End Task2.End Task3._id2 Task4.End Task5._id0 Task6._id0 Task7._id0 M1._id4 M2._id7 ) f1=1 f2=1 f3=0 f4=1 f5=0 f6=0 f7=0 f0=1 B1=0 B2=6 (4<=x2 && time==18 && x2<=8), Take transition Task6._id0->Task6._id1 { a == 1 && b == 1, use1!, B1 := D1 } M1._id4->M1._id5 { 1, use1?, x1 := 0 } When you are in (Task1 Task1.End Task2.End Task3.End Task4.End Task5._id0 Task6._id1 Task7._id0 M1._id5 M2._id6 ) f1=1 f2=1 f3=1 f4=1 f5=0 f6=0 f7=0 f0=1 B1=3 B2=10 (18<=time && x1<=6 && time<=22 && time-x1<=18), Take transition Task5._id0->Task5._id2 { a == 1 && b == 1, use2!, B2 := D2 } M2._id6->M2. M2._id7 { 1, use2?, x2 := 0 } When you are in ( Task1.End Task2.End Task3.End Task4._id0 Task5._id0 Task6._id1 Task7._id0 M1._id5 M2._id6 ) f1=1 f2=1 f3=1 f4=0 f5=0 f6=0 f7=0 f0=1 B1=3 B2=2 (x1-time==-10 && time==10), Take transition Task4._id0->Task4._id2 { a == 1 && b == 1, use2!, B2 := D2 } M2._id6->M2._id7 { 1, use2?, x2 := 0 } When you are in (Task1 Task1.End Task2.End Task3.End Task4.End Task5._id1 Task6._id0 Task7._id0 M1._id5 M2._id6 ) f1=1 f2=1 f3=1 f4=1 f5=0 f6=0 f7=0 f0=1 B1=8 B2=8 CONCUR05, (x1<=3 && x1-time==-18) (20<=time && x1-time<=-12 && time<=21 && time-x1<18), Take transition CAV07, Task6._id0->Task6._id2 { a == 1 && b == 1, use2!, B2 := D2 } M2. _ id6->m2. _ id7 { 1, use2?, x2 := 0 } FORMATS07 When you are in... Kim Larsen [71]

72 Optimal Scheduling under Uncertainty Decidable with 1 clock [BLMR06] Acyclic [LTMM02] Bounded length [ABM04] Strong non-zeno cost-behaviour [BCFL04] Undecidable with 3 clocks or more [BBR05, BBM06] Open problem with 2 clocks, cost =4, cost =3 Kim Larsen [72]

73 Model Checking (ex Train Gate) Controller Environment Never two trains at the crossing at the same time Kim Larsen [73]

74 Synthesis (ex Train Gate)? Controller Environment Never two trains at the crossing at the same time Kim Larsen [74]

75 Synthesis Controllable Uncontrollable Controller Environment Find strategy for controllable actions st behaviour satisfies Never two trains at the crossing at the same time Kim Larsen [75]

76 Timed Games Reachability Memoryless strategy: F : Q E c x>1 1 x!= 1 : x=1 : c x<1 x 1 Winning Run: States( ) Å G Ø x<2 : x 2 : c 2 x 2 x<1 Winning Strategy: Runs(F) WinRuns x 1 Uncontrollable Controllable Kim Larsen [76] 3 x:=0 4 x<1 : x 1 : c x!= 1 : x=1 : c

77 UPPAAL Tiga Synthesis of winning strategies for TIMED GAMES CONCUR05, CAV07, FORMATS07 Efficient on-the-fly generation of winning strategies for safety & liveness objectives Kim Larsen [77]

78 Synthesis of Hydralic Controller Quasimodo (Cassez, Jessen Larsen, Rainier, Raskin - HSCC09) Tool Chain Synthesis: UPPAAL TIGA Verification: PHAVer Performance: SIMULINK 40% improvement of existing solutions.. Kim Larsen [78]

79 Oil Pump Control Problem R1: stay within safe interval [ 5, 25 ] R2: minimize average/overall erall oil volume Kim Larsen [79]

80 Tool Chain Synthesis TIGA Performance Evaluation SIMULINK Guaranteed Correctness Robustness Verification PHAVER with 40% Improvement Kim Larsen [80]

81 Conclusion & Open Problems Effic iency Decidabi ility Priced Timed Games Reachability & Model Checking Energy-Bounded Prb. Safety Probabilistic Priced Timed Automata Timed Automata Fully Symbolic (CDD) Static Analysis & Slicing of C-code Timed Games Partial Observability Alternating Logics CEGAR Priced Timed Automata Optimal Infinite Schedules for PTA (zone Thanks based) for your Multi-Objective Optimal Scheduling attention! Code Generation From TA models of controllers From stategies APPLICATIONS Live Sequence Charts Gantt Chart Probabilistic Timed Automata Us sability Kim Larsen [81]

Priced Timed Automata and Timed Games. Kim G. Larsen Aalborg University, DENMARK

Priced Timed Automata and Timed Games. Kim G. Larsen Aalborg University, DENMARK Priced Timed Automata and Timed Games Kim G. Larsen Aalborg University, DENMARK Scheduling Priced Timed Automata and Synthesis Timed Games Kim G. Larsen Aalborg University, DENMARK Overview Timed Automata

More information

Kim Guldstrand Larsen

Kim Guldstrand Larsen Validation, Synthesis and Performance Evaluation of Embedded Systems using UPPAAL Kim Guldstrand Larsen Timed Automata UPPAAL (1995- ) @AALborg Kim G Larsen Alexandre David Gerd Behrman Marius Mikucionis

More information

Testing and Verification

Testing and Verification Final Review Brussels, December 12th, 2008 Achievements and Perspectives : Testing and Verification Cluster leader : Kim Guldstrand Larsen CISS, Aalborg University, DENMARK Core Partners of the Cluster

More information

From Timed Automata to Stochastic Hybrid Games

From Timed Automata to Stochastic Hybrid Games From Timed Automata to Stochastic Hybrid Games Model Checking, Performance Analysis, Optimization, Synthesis, and Machine Learning Kim G. Larsen Aalborg University, DENMARK Topics Timed Automata Decidability

More information

Real Time Model Checking

Real Time Model Checking Real Time Model Checking using UPPAAL Kim G Larsen Collaborators @UPPsala Wang Yi Paul Pettersson John Håkansson Anders Hessel Pavel Krcal Leonid Mokrushin Shi Xiaochun @Elsewhere @AALborg Kim G Larsen

More information

Real Time Model Checking

Real Time Model Checking Real Time Model Checking using UPPAAL Kim G Larsen Collaborators @UPPsala Wang Yi Paul Pettersson John Håkansson Anders Hessel Pavel Krcal Leonid Mokrushin Shi Xiaochun @Elsewhere @AALborg Kim G Larsen

More information

Formal Verification and Performance Analysis of Embedded Systems

Formal Verification and Performance Analysis of Embedded Systems Formal Verification and Performance Analysis of Embedded Systems Kim G. Larsen CISS, Aalborg U., DK Michael R. Hansen IMM, Technical U. of Denmark, DK DaNES Challenges Application Environment Stepw. Refinem.

More information

Formal Methods in CPS

Formal Methods in CPS Formal Methods in CPS A Computer Science Perspective Kim G. Larsen Aalborg University, DENMARK From Timed Automata to Stochastic Hybrid Games Model Checking, Performance Evaluation and Synthesis Kim G.

More information

Overview. Leader Election Protocol. Dynamic Voltage Scaling. Optimal Reconfiguration of FPGA. Memory Interface. UCb

Overview. Leader Election Protocol. Dynamic Voltage Scaling. Optimal Reconfiguration of FPGA. Memory Interface. UCb APPLICATIONS UC b Overview Leader Election Protocol Dynamic Voltage Scaling Optimal Reconfiguration of FPGA Memory Interface Leader Election Protocol UC b Leader Election 2 1 0 3 Protocol by Leslie Lamport

More information

UPPAAL Tutorial. UPPAAL Family

UPPAAL Tutorial. UPPAAL Family UPPAAL Tutorial Beyond UPPAAL Alexandre David Paul Pettersson RTSS 05 Classic : real-time verification Cora: real-time scheduling Tron: online real-time testing Tiga: timed game Times: schedulability analysis

More information

Real Time Software PROBLEM SETTING. Real Time Systems. Real Time Systems. Who is Who in Timed Systems. Real Time Systems

Real Time Software PROBLEM SETTING. Real Time Systems. Real Time Systems. Who is Who in Timed Systems. Real Time Systems Schedulability Analysis of Timed Systems with contributions from PROBLEM SETTING Tobias Amnell, Elena Fersma, John Håkansson, Pavel Kracal, Leonid Mokrushine, Christer Nordström, Paul Pettersson and Anders

More information

Model-based GUI testing using Uppaal at NOVO Nordisk

Model-based GUI testing using Uppaal at NOVO Nordisk Model-based GUI testing using Uppaal at NOVO Nordisk Ulrik H. Hjort 2, Jacob Illum 1, Kim G. Larsen 1, Michael A. Petersen 2, and Arne Skou 1 1 Department of Computer Science, Aalborg University, Denmark

More information

Validation and Performance Analysis

Validation and Performance Analysis Validation and Performance Analysis of CPS in UPPAAL Kim G. Larsen Aalborg University, DENMARK Cyber Physical Systems Discrete OPTIMAL: finding a controller for a given system such that a certain optimality

More information

An Introduction to UPPAAL. Purandar Bhaduri Dept. of CSE IIT Guwahati

An Introduction to UPPAAL. Purandar Bhaduri Dept. of CSE IIT Guwahati An Introduction to UPPAAL Purandar Bhaduri Dept. of CSE IIT Guwahati Email: pbhaduri@iitg.ernet.in OUTLINE Introduction Timed Automata UPPAAL Example: Train Gate Example: Task Scheduling Introduction UPPAAL:

More information

Developing Uppaal over 15 Years

Developing Uppaal over 15 Years Developing Uppaal over 15 Years Gerd Behrmann 1, Alexandre David 2, Kim Guldstrand Larsen 2, Paul Pettersson 3, and Wang Yi 4 1 NORDUnet A/S, Copenhagen, Denmark 2 Department of Computer Science, Aalborg

More information

A Test Case Generation Algorithm for Real-Time Systems

A Test Case Generation Algorithm for Real-Time Systems A Test Case Generation Algorithm for Real-Time Systems Anders Hessel and Paul Pettersson Department of Information Technology Uppsala University, P.O. Box 337 SE-751 05 Uppsala, Sweden {hessel,paupet}@it.uu.se

More information

Quantitative analysis of real-time systems

Quantitative analysis of real-time systems Quantitative analysis of real-time systems Patricia Bouyer bouyer@lsv.ens-cachan.fr Kim G. Larsen kgl@cs.aau.dk LSV CNRS & ENS Cachan 6 avenue du Président Wilson 9 Cachan France Uli Fahrenberg uli@cs.aau.dk

More information

Editor. Analyser XML. Scheduler. generator. Code Generator Code. Scheduler. Analyser. Simulator. Controller Synthesizer.

Editor. Analyser XML. Scheduler. generator. Code Generator Code. Scheduler. Analyser. Simulator. Controller Synthesizer. TIMES - A Tool for Modelling and Implementation of Embedded Systems Tobias Amnell, Elena Fersman, Leonid Mokrushin, Paul Pettersson, and Wang Yi? Uppsala University, Sweden Abstract. Times is a new modelling,

More information

Statistical Model Checking in UPPAAL

Statistical Model Checking in UPPAAL Statistical Model Checking in UPPAAL Alexandre David, Kim G. Larsen, Axel Legay, Marius Mikucionis Wang Zheng, Peter Bulychev, Jonas van Vliet, Danny Poulsen, Dehui Du, Guangyuan Li CAV 11, PDMC 11,FORMATS

More information

TIMES A Tool for Modelling and Implementation of Embedded Systems

TIMES A Tool for Modelling and Implementation of Embedded Systems TIMES A Tool for Modelling and Implementation of Embedded Systems Tobias Amnell, Elena Fersman, Leonid Mokrushin, Paul Pettersson, and Wang Yi Uppsala University, Sweden. {tobiasa,elenaf,leom,paupet,yi}@docs.uu.se.

More information

Statistical Model Checking in UPPAAL

Statistical Model Checking in UPPAAL Statistical Model Checking in UPPAAL Alexandre David, Kim G. Larsen, Marius Mikucionis Axel Legay, Wang Zheng, Peter Bulychev, Jonas van Vliet, Danny Poulsen, Dehui Du, Guangyuan Li CAV 11, PDMC 11,FORMATS

More information

UPPAAL. Verification Engine, Options & Patterns. Alexandre David

UPPAAL. Verification Engine, Options & Patterns. Alexandre David UPPAAL Verification Engine, Options & Patterns Alexandre David 1.2.05 Outline UPPAAL Modelling Language Specification Language UPPAAL Verification Engine Symbolic exploration algorithm Zones & DBMs Verification

More information

Verifikation af realtids systemer i UPPAAL. Kim G. Larsen

Verifikation af realtids systemer i UPPAAL. Kim G. Larsen Verifikation af realtids systemer i UPPAAL BRICS@Aalborg Research Profile Distributed Systems & Semantics Unit Semantic Models concurrency, mobility, objects real-time, hybrid systems Validation & Verification

More information

A game-theoretic approach to real-time system testing David, Alexandre; Larsen, Kim Guldstrand; Li, Shuhao; Nielsen, Brian

A game-theoretic approach to real-time system testing David, Alexandre; Larsen, Kim Guldstrand; Li, Shuhao; Nielsen, Brian Aalborg Universitet A game-theoretic approach to real-time system testing David, Alexandre; Larsen, Kim Guldstrand; Li, Shuhao; Nielsen, Brian Published in: Design, Automation and Test in Europe DOI (link

More information

Timed Automata with Asynchronous Processes: Schedulability and Decidability

Timed Automata with Asynchronous Processes: Schedulability and Decidability Timed Automata with Asynchronous Processes: Schedulability and Decidability Elena Fersman, Paul Pettersson and Wang Yi Uppsala University, Sweden Abstract. In this paper, we exend timed automata with asynchronous

More information

Verification in Continuous Time Recent Advances

Verification in Continuous Time Recent Advances Verification in Continuous Time Recent Advances Hongyang Qu Department of Automatic Control and Systems Engineering University of Sheffield 10 March 2017 Outline Motivation Probabilistic models Real-time

More information

We are looking for Post Doc Fellows and new Ph.D. Students in Uppsala. Networks of Real-Time Components (abstract view) Real Time Systems

We are looking for Post Doc Fellows and new Ph.D. Students in Uppsala. Networks of Real-Time Components (abstract view) Real Time Systems Commercial!! We are looking for Post Doc Fellows and new Ph.D. Students in Uppsala Send me a message if you are interested Wang Yi: yi@it.uu.se Schedulability Analysis of Timed Systems Wang Yi Uppsala

More information

Timed Automata From Theory to Implementation

Timed Automata From Theory to Implementation Timed Automata From Theory to Implementation Patricia Bouyer LSV CNRS & ENS de Cachan France Chennai january 2003 Timed Automata From Theory to Implementation p.1 Roadmap Timed automata, decidability issues

More information

COMP 763. Eugene Syriani. Ph.D. Student in the Modelling, Simulation and Design Lab School of Computer Science. McGill University

COMP 763. Eugene Syriani. Ph.D. Student in the Modelling, Simulation and Design Lab School of Computer Science. McGill University Eugene Syriani Ph.D. Student in the Modelling, Simulation and Design Lab School of Computer Science McGill University 1 OVERVIEW In the context In Theory: Timed Automata The language: Definitions and Semantics

More information

Towards Compositional Testing of Real-Time Systems

Towards Compositional Testing of Real-Time Systems Towards Compositional Testing of Real-Time Systems Kim G Larsen, Axel Legay, Marius Mikucionis, Brian Nielsen, Ulrik Nyman Aalborg University, DENMARK Compositional Testing Integration of fully conformant

More information

plant OUTLINE The Same Goal: Reliable Controllers Who is Who in Real Time Systems

plant OUTLINE The Same Goal: Reliable Controllers Who is Who in Real Time Systems OUTLINE Introduction Lecture 1: Motivation, examples, problems to solve Modeling and Verication of Timed Systems Lecture 2: Timed automata, and timed automata in UAAL Lecture 3: Symbolic verification:

More information

M. De Wulf, L. Doyen,J.-F. Raskin Université Libre de Bruxelles Centre Fédéré en Vérification

M. De Wulf, L. Doyen,J.-F. Raskin Université Libre de Bruxelles Centre Fédéré en Vérification Systematic Implementation of Real-Time Models M. De Wulf, L. Doyen,J.-F. Raskin Université Libre de Bruxelles Centre Fédéré en Vérification Model-based Development for Controllers Make a model of the environment

More information

Single-Path Programming on a Chip-Multiprocessor System

Single-Path Programming on a Chip-Multiprocessor System Single-Path Programming on a Chip-Multiprocessor System Martin Schoeberl, Peter Puschner, and Raimund Kirner Vienna University of Technology, Austria mschoebe@mail.tuwien.ac.at, {peter,raimund}@vmars.tuwien.ac.at

More information

want turn==me wait req2==0

want turn==me wait req2==0 Uppaal2k: Small Tutorial Λ 16 October 2002 1 Introduction This document is intended to be used by new comers to Uppaal and verification. Students or engineers with little background in formal methods should

More information

Overview of Timed Automata and UPPAAL

Overview of Timed Automata and UPPAAL Overview of Timed Automata and UPPAAL Table of Contents Timed Automata Introduction Example The Query Language UPPAAL Introduction Example Editor Simulator Verifier Conclusions 2 Introduction to Timed

More information

The UPPAAL Model Checker. Julián Proenza Systems, Robotics and Vision Group. UIB. SPAIN

The UPPAAL Model Checker. Julián Proenza Systems, Robotics and Vision Group. UIB. SPAIN The UPPAAL Model Checker Julián Proenza Systems, Robotics and Vision Group. UIB. SPAIN The aim of this presentation Introduce the basic concepts of model checking from a practical perspective Describe

More information

Quasimodo. under uncertainty. Alexandre David & K.G Larsen & Aalborg University, DK.

Quasimodo. under uncertainty. Alexandre David & K.G Larsen & Aalborg University, DK. Quasimodo Testing real-time systems under uncertainty Alexandre David & K.G Larsen & & Shuhaoh Li & Bi Brian Nielsen Aalborg University, DK bnielsen@cs.aau.dk FMCO, Graz, December 1, 2010 Page 1 Automated

More information

opaal: A Lattice Model Checker

opaal: A Lattice Model Checker opaal: A Lattice Model Checker Andreas Engelbredt Dalsgaard, René Rydhof Hansen, Kenneth Yrke Jørgensen, Kim Gulstrand Larsen, Mads Chr. Olesen, Petur Olsen, and Jiří Srba Department of Computer Science,

More information

Symbolic and Statistical Model Checking in UPPAAL

Symbolic and Statistical Model Checking in UPPAAL Symbolic and Statistical Model Checking in UPPAAL Alexandre David Kim G. Larsen Marius Mikucionis, Peter Bulychev, Axel Legay, Dehui Du, Guangyuan Li, Danny B. Poulsen, Amélie Stainer, Zheng Wang CAV11,

More information

Uppaal Stratego. Alexandre David Peter Gjøl Jensen Kim Guldstrand Larsen Marius Mikucionis Jakob Haahr Taankvist

Uppaal Stratego. Alexandre David Peter Gjøl Jensen Kim Guldstrand Larsen Marius Mikucionis Jakob Haahr Taankvist Uppaal Stratego Alexandre David Peter Gjøl Jensen Kim Guldstrand Larsen Marius Mikucionis Jakob Haahr Taankvist Department of Computer Science, Aalborg University, Selma Lagerlöfs Vej 300, 9220 Aalborg

More information

Efficient Synthesis of Production Schedules by Optimization of Timed Automata

Efficient Synthesis of Production Schedules by Optimization of Timed Automata Efficient Synthesis of Production Schedules by Optimization of Timed Automata Inga Krause Institute of Automatic Control Engineering Technische Universität München inga.krause@mytum.de Joint Advanced Student

More information

UPPAAL. Validation and Verication of Real Time Systems. Status & Developments y. Abstract

UPPAAL. Validation and Verication of Real Time Systems. Status & Developments y. Abstract UPPAAL Validation and Verication of Real Time Systems Status & Developments y Kim G Larsen z Paul Pettersson x Wang Yi x Abstract Uppaal is a tool box for validation (via graphical simulation) and verication

More information

Schedulability Analysis of Herschel/Planck Software Using Uppaal

Schedulability Analysis of Herschel/Planck Software Using Uppaal Schedulability Analysis of Herschel/Planck Software Using Uppaal Marius Mikučionis and Kim G. Larsen and Brian Nielsen Abstract This chapter shows how UPPAAL is applied in schedulability analysis of satellite

More information

To Store or Not To Store

To Store or Not To Store To Store or Not To Store Radek Pelánek Masaryk University, Brno Gerd Behrmann, Kim G. Larsen Aalborg University To Store or Not To Store p.1/24 Reachability Problem Model: networks of timed automata with

More information

Certifiable Java for Embedded Systems

Certifiable Java for Embedded Systems Certifiable Java for Embedded Systems Objectives of the Project Embedded systems are increasingly becoming part of our daily life. Some of these systems, for example the control of the Copenhagen Metro,

More information

An MTBDD-based Implementation of Forward Reachability for Probabilistic Timed Automata

An MTBDD-based Implementation of Forward Reachability for Probabilistic Timed Automata An MTBDD-based Implementation of Forward Reachability for Probabilistic Timed Automata Fuzhi Wang and Marta Kwiatkowska School of Computer Science, University of Birmingham, Birmingham B15 2TT, United

More information

Reasoning about Timed Systems Using Boolean Methods

Reasoning about Timed Systems Using Boolean Methods Reasoning about Timed Systems Using Boolean Methods Sanjit A. Seshia EECS, UC Berkeley Joint work with Randal E. Bryant (CMU) Kenneth S. Stevens (Intel, now U. Utah) Timed System A system whose correctness

More information

A Real-Time Animator for Hybrid Systems

A Real-Time Animator for Hybrid Systems A Real-Time Animator for Hybrid Systems Tobias Amnell, Alexandre David Wang Yi Department of Computer Systems, Uppsala University {adavid, tobiasa, yi} @docsuuse Abstract In this paper, we present a real

More information

Technical Report

Technical Report Technical Report 2014-619 Title: Synthesis of a Reconfiguration Service for Mixed-Criticality Multi-Core Systems Authors: Md Tawhid Bin Waez, Andrzej Wasowski, Juergen Dingel, Karen Rudie School of Computing

More information

Automatic Synthesis of Robust and Optimal Controllers An Industrial Case Study

Automatic Synthesis of Robust and Optimal Controllers An Industrial Case Study Automatic Synthesis of Robust and Optimal Controllers An Industrial Case Study Franck Cassez 1, Jan J. Jessen 2, Kim G. Larsen 2, Jean-François Raskin 3, Pierre-Alain Reynier 4 1 National ICT Australia

More information

Test and Verification Of Real-Time Systems using UPPAAL Brian Nielsen

Test and Verification Of Real-Time Systems using UPPAAL Brian Nielsen Test and Verification Of Real-Time Systems using UPPAAL Brian Nielsen bnielsen@cs.aau.dk Verifikation og Test Model /* Wait for events */ void /* Wait OS_Waitvoid; for events */ void OS_Waitvoid; /* Operating

More information

An Analysis Tool for UML Models with SPT Annotations

An Analysis Tool for UML Models with SPT Annotations An Analysis Tool for UML Models with SPT Annotations John Håkansson, Leonid Mokrushin, Paul Pettersson, and Wang Yi Uppsala University Department of Information Technology P.O. Box 337, SE-75 05 Uppsala,

More information

TAPAS. Tests and Proofs and Synthesis. Kim G Larsen Aalborg University, DENMARK

TAPAS. Tests and Proofs and Synthesis. Kim G Larsen Aalborg University, DENMARK TAPAS Tests and Proofs and Synthesis Kim G Larsen Aalborg University, DENMARK TAPAS From Testing and Verification to Performance Analysis and Synthesis of Cyber-Physical Systems Kim G Larsen Aalborg University,

More information

Further Topics in Modelling & Verification

Further Topics in Modelling & Verification Further Topics in Modelling & Verification Thursday Oct 09, 2014 Philipp Rümmer Uppsala University Philipp.Ruemmer@it.uu.se 1/34 Recap: Timed automata (TA) 2/34 Recap: Properties 3/34 Questions about TA

More information

MODEL-BASED DESIGN OF CODE FOR PLC CONTROLLERS

MODEL-BASED DESIGN OF CODE FOR PLC CONTROLLERS Krzysztof Sacha Warsaw University of Technology, Nowowiejska 15/19, 00-665 Warszawa, Poland k.sacha@ia.pw.edu.pl Keywords: Abstract: Automatic program generation, Model verification, Finite state machine,

More information

RT-Studio: A tool for modular design and analysis of realtime systems using Interpreted Time Petri Nets

RT-Studio: A tool for modular design and analysis of realtime systems using Interpreted Time Petri Nets RT-Studio: A tool for modular design and analysis of realtime systems using Interpreted Time Petri Nets Rachid Hadjidj and Hanifa Boucheneb Abstract. RT-Studio (Real Time Studio) is an integrated environment

More information

Intro to UPPAAL. Gerd Behrmann Kim Larsen. BRICS & Aalborg University. Intro to UPPAAL p.1/23

Intro to UPPAAL. Gerd Behrmann Kim Larsen. BRICS & Aalborg University. Intro to UPPAAL p.1/23 Intro to UPPAAL p.1/23 Intro to UPPAAL Gerd Behrmann Kim Larsen BRICS & Aalborg University Intro to UPPAAL p.2/23 Plan of the Lecture 1. UPPAAL Architecture 2. UPPAAL Features 3. Train Gate Example 4.

More information

-- the Timing Problem & Possible Solutions

-- the Timing Problem & Possible Solutions ARTIST Summer School in Europe 2010 Autrans (near Grenoble), France September 5-10, 2010 Towards Real-Time Applications on Multicore -- the Timing Problem & Possible Solutions Wang Yi Uppsala University,

More information

Certified Memory Usage Analysis

Certified Memory Usage Analysis Certified Memory Usage Analysis David Cachera, Thomas Jensen, David Pichardie, Gerardo Schneider IRISA, ENS Cachan Bretagne, France Context Embedded devices (smart cards, mobile phones) memory is limited

More information

Overall Structure of RT Systems

Overall Structure of RT Systems Course Outline Introduction Characteristics of RTS Real Time Operating Systems (RTOS) OS support: scheduling, resource handling Real Time Programming Languages Language support, e.g. Ada tasking Scheduling

More information

SCHEDULING LACQUER PRODUCTION BY REACHABILITY ANALYSIS - A CASE STUDY 1

SCHEDULING LACQUER PRODUCTION BY REACHABILITY ANALYSIS - A CASE STUDY 1 SCHEDULING LACQUER PRODUCTION BY REACHABILITY ANALYSIS - A CASE STUDY 1 Gerd Behrmann Ed Brinksma Martijn Hendriks Angelika Mader Aalborg University, Denmark University of Twente, The Netherlands University

More information

A Single-Path Chip-Multiprocessor System

A Single-Path Chip-Multiprocessor System A Single-Path Chip-Multiprocessor System Martin Schoeberl, Peter Puschner, and Raimund Kirner Institute of Computer Engineering Vienna University of Technology, Austria mschoebe@mail.tuwien.ac.at, {peter,raimund}@vmars.tuwien.ac.at

More information

PRISM An overview. automatic verification of systems with stochastic behaviour e.g. due to unreliability, uncertainty, randomisation,

PRISM An overview. automatic verification of systems with stochastic behaviour e.g. due to unreliability, uncertainty, randomisation, PRISM An overview PRISM is a probabilistic model checker automatic verification of systems with stochastic behaviour e.g. due to unreliability, uncertainty, randomisation, Construction/analysis of probabilistic

More information

A Toolchain for Home Automation Controller Development

A Toolchain for Home Automation Controller Development A Toolchain for Home Automation Controller Development Peter H. Dalsgaard, Thibaut Le Guilly, Daniel Middelhede, Petur Olsen, Thomas Pedersen, Anders P. Ravn, Arne Skou Department of Computer Science Aalborg

More information

Schedulability Analysis of Herschel/Planck Software using UPPAAL

Schedulability Analysis of Herschel/Planck Software using UPPAAL Schedulability Analysis of Herschel/Planck Software using UPPAAL Terma Case Study Marius Mikučionis, Kim G. Larsen, Jacob I. Rasmussen, Arne Skou, Brian Nielsen, Steen Palm, Jan Pedersen, Poul Hougaard

More information

Time-Optimal Test Cases for Real-Time Systems

Time-Optimal Test Cases for Real-Time Systems Time-Optimal Test Cases for Real-Time Systems Anders Hessel 1, Kim G. Larsen 2, Brian Nielsen 2, Paul Pettersson 1, and Arne Skou 2 1 Department of Information Technology, Uppsala University, P.O. Box

More information

Evaluation and Validation

Evaluation and Validation 12 Evaluation and Validation Peter Marwedel TU Dortmund, Informatik 12 Germany Graphics: Alexandra Nolte, Gesine Marwedel, 2003 2010 年 12 月 05 日 These slides use Microsoft clip arts. Microsoft copyright

More information

Design and Analysis of Time-Critical Systems Introduction

Design and Analysis of Time-Critical Systems Introduction Design and Analysis of Time-Critical Systems Introduction Jan Reineke @ saarland university ACACES Summer School 2017 Fiuggi, Italy computer science Structure of this Course 2. How are they implemented?

More information

Static Program Analysis

Static Program Analysis Static Program Analysis Thomas Noll Software Modeling and Verification Group RWTH Aachen University https://moves.rwth-aachen.de/teaching/ws-1617/spa/ Recap: Taking Conditional Branches into Account Extending

More information

Opaal Dalsgaard, Andreas Engelbredt; Hansen, Rene Rydhof; Jørgensen, Kenneth Yrke; Larsen, Kim Guldstrand; Olesen, Mads Chr.; Olsen, Petur; Srba, Jiri

Opaal Dalsgaard, Andreas Engelbredt; Hansen, Rene Rydhof; Jørgensen, Kenneth Yrke; Larsen, Kim Guldstrand; Olesen, Mads Chr.; Olsen, Petur; Srba, Jiri Aalborg Universitet Opaal Dalsgaard, Andreas Engelbredt; Hansen, Rene Rydhof; Jørgensen, Kenneth Yrke; Larsen, Kim Guldstrand; Olesen, Mads Chr.; Olsen, Petur; Srba, Jiri Published in: Lecture Notes in

More information

Program verification. Generalities about software Verification Model Checking. September 20, 2016

Program verification. Generalities about software Verification Model Checking. September 20, 2016 Program verification Generalities about software Verification Model Checking Laure Gonnord David Monniaux September 20, 2016 1 / 43 The teaching staff Laure Gonnord, associate professor, LIP laboratory,

More information

Timing Analysis of Parallel Software Using Abstract Execution

Timing Analysis of Parallel Software Using Abstract Execution Timing Analysis of Parallel Software Using Abstract Execution Björn Lisper School of Innovation, Design, and Engineering Mälardalen University bjorn.lisper@mdh.se 2014-09-10 EACO Workshop 2014 Motivation

More information

Beyond Model Checking: Parameters Everywhere

Beyond Model Checking: Parameters Everywhere Beyond Model Checking: Parameters Everywhere Étienne André 1, Benoît Delahaye 2, Peter Habermehl 3, Claude Jard 2, Didier Lime 4, Laure Petrucci 1, Olivier H. Roux 4, Tayssir Touili 3 1 Université Paris

More information

Promela and SPIN. Mads Dam Dept. Microelectronics and Information Technology Royal Institute of Technology, KTH. Promela and SPIN

Promela and SPIN. Mads Dam Dept. Microelectronics and Information Technology Royal Institute of Technology, KTH. Promela and SPIN Promela and SPIN Mads Dam Dept. Microelectronics and Information Technology Royal Institute of Technology, KTH Promela and SPIN Promela (Protocol Meta Language): Language for modelling discrete, event-driven

More information

Timed Automata Based Scheduling for a Miniature Pipeless Plant with Mobile Robots *

Timed Automata Based Scheduling for a Miniature Pipeless Plant with Mobile Robots * Timed Automata Based Scheduling for a Miniature Pipeless Plant with Mobile Robots * Christian Schoppmeyer, Martin Hüfner, Subanatarajan Subbiah, and Sebastian Engell Abstract In this contribution we present

More information

Hardware-Software Codesign. 9. Worst Case Execution Time Analysis

Hardware-Software Codesign. 9. Worst Case Execution Time Analysis Hardware-Software Codesign 9. Worst Case Execution Time Analysis Lothar Thiele 9-1 System Design Specification System Synthesis Estimation SW-Compilation Intellectual Prop. Code Instruction Set HW-Synthesis

More information

Basic Research in Computer Science BRICS RS-99-8 Havelund et al.: Formal Verification of a Power Controller Using UPPAAL

Basic Research in Computer Science BRICS RS-99-8 Havelund et al.: Formal Verification of a Power Controller Using UPPAAL BRICS Basic Research in Computer Science BRICS RS-99-8 Havelund et al.: Formal Verification of a Power Controller Using UPPAAL Formal Verification of a Power Controller Using the Real-Time Model Checker

More information

HW/SW Codesign. WCET Analysis

HW/SW Codesign. WCET Analysis HW/SW Codesign WCET Analysis 29 November 2017 Andres Gomez gomeza@tik.ee.ethz.ch 1 Outline Today s exercise is one long question with several parts: Basic blocks of a program Static value analysis WCET

More information

Formal verification of the Brain Fuck Scheduler

Formal verification of the Brain Fuck Scheduler Formal verification of the Brain Fuck Scheduler Meng Xuan Xia meng.xia@mail.mcgill.ca November 2014 Abstract We modelled a simplified version of the Brain Fuck Scheduler (BFS) using Uppaal, an integrated

More information

Towards Generation of Adaptive Test Cases from Partial Models of Determinized Timed Automata

Towards Generation of Adaptive Test Cases from Partial Models of Determinized Timed Automata Towards Generation of Adaptive Test Cases from Partial Models of Determinized Timed Automata Bernhard K. Aichernig and Florian Lorber Institute for Software Technology, Graz University of Technology, Austria

More information

Real Time Operating Systems and Middleware

Real Time Operating Systems and Middleware Real Time Operating Systems and Middleware Introduction to Real-Time Systems Luca Abeni abeni@disi.unitn.it Credits: Luigi Palopoli, Giuseppe Lipari, Marco Di Natale, and Giorgio Buttazzo Scuola Superiore

More information

Java byte code verification

Java byte code verification Java byte code verification SOS Master Science Informatique U. Rennes 1 Thomas Jensen SOS Java byte code verification 1 / 26 Java security architecture Java: programming applications with code from different

More information

Design and Analysis of Real-Time Systems Microarchitectural Analysis

Design and Analysis of Real-Time Systems Microarchitectural Analysis Design and Analysis of Real-Time Systems Microarchitectural Analysis Jan Reineke Advanced Lecture, Summer 2013 Structure of WCET Analyzers Reconstructs a control-flow graph from the binary. Determines

More information

ARTIST-Relevant Research from Linköping

ARTIST-Relevant Research from Linköping ARTIST-Relevant Research from Linköping Department of Computer and Information Science (IDA) Linköping University http://www.ida.liu.se/~eslab/ 1 Outline Communication-Intensive Real-Time Systems Timing

More information

Hardware-Software Codesign

Hardware-Software Codesign Hardware-Software Codesign 8. Performance Estimation Lothar Thiele 8-1 System Design specification system synthesis estimation -compilation intellectual prop. code instruction set HW-synthesis intellectual

More information

A Generic Approach to Schedulability Analysis of Real-Time Tasks

A Generic Approach to Schedulability Analysis of Real-Time Tasks A Generic Approach to Schedulability Analysis of Real-Time Tasks Elena Fersman and Wang Yi Uppsala University Department of Information Technology P.O. Box 337, S-751 05 Uppsala, Sweden Email: felenaf,yig@it.uu.se

More information

Automated Formal Methods for Embedded Systems

Automated Formal Methods for Embedded Systems Automated Formal Methods for Embedded Systems Bernd Finkbeiner Universität des Saarlandes Reactive Systems Group 2011/02/03 Bernd Finkbeiner (UdS) Embedded Systems 2011/02/03 1 / 48 Automated Formal Methods

More information

Specification and Analysis of Real-Time Systems Using Real-Time Maude

Specification and Analysis of Real-Time Systems Using Real-Time Maude Specification and Analysis of Real-Time Systems Using Real-Time Maude Peter Csaba Ölveczky1,2 and José Meseguer 1 1 Department of Computer Science, University of Illinois at Urbana-Champaign 2 Department

More information

Shared Mutable State SWEN-220

Shared Mutable State SWEN-220 Shared Mutable State SWEN-220 The Ultimate Culprit - Shared, Mutable State Most of your development has been in imperative languages. The fundamental operation is assignment to change state. Assignable

More information

Department of Computer Science Institute for System Architecture, Operating Systems Group REAL-TIME MICHAEL ROITZSCH OVERVIEW

Department of Computer Science Institute for System Architecture, Operating Systems Group REAL-TIME MICHAEL ROITZSCH OVERVIEW Department of Computer Science Institute for System Architecture, Operating Systems Group REAL-TIME MICHAEL ROITZSCH OVERVIEW 2 SO FAR talked about in-kernel building blocks: threads memory IPC drivers

More information

Fachgebiet Softwaretechnik, Heinz Nixdorf Institut, Universität Paderborn. 2.3 Timed Automata and Real-Time Statecharts

Fachgebiet Softwaretechnik, Heinz Nixdorf Institut, Universität Paderborn. 2.3 Timed Automata and Real-Time Statecharts 2.3 Timed Automata and Real-Time Statecharts Develop a BOOK RATING APP and win awesome prizes! The creators of the best submissions will be invited to an exclusive party in February

More information

Verification Options. To Store Or Not To Store? Inside the UPPAAL tool. Inactive (passive) Clock Reduction. Global Reduction

Verification Options. To Store Or Not To Store? Inside the UPPAAL tool. Inactive (passive) Clock Reduction. Global Reduction Inside the UPPAAL tool Data Structures DBM s (Difference Bounds Matrices) Canonical and Minimal Constraints Algorithms Reachability analysis Liveness checking Termination Verification Otions Verification

More information

Modeling and Analysis of Real -Time Systems with Mutex Components

Modeling and Analysis of Real -Time Systems with Mutex Components Modeling and Analysis of Real -Time Systems with Mutex Components APDCM Guoqiang Li, Xiaojuan Cai,Shoji Yuen 2 BASICS, Shanghai Jiao Tong University 2 Graduate School of Information Science, Nagoya University

More information

Energy consumption in embedded systems; abstractions for software models, programming languages and verification methods

Energy consumption in embedded systems; abstractions for software models, programming languages and verification methods Energy consumption in embedded systems; abstractions for software models, programming languages and verification methods Florence Maraninchi orcid.org/0000-0003-0783-9178 thanks to M. Moy, L. Mounier,

More information

Automatic synthesis of switching controllers for linear hybrid systems: Reachability control

Automatic synthesis of switching controllers for linear hybrid systems: Reachability control Automatic synthesis of switching controllers for linear hybrid systems: Reachability control Massimo Benerecetti and Marco Faella Università di Napoli Federico II, Italy Abstract. We consider the problem

More information

Model-Checking and Simulation for Stochastic Timed Systems

Model-Checking and Simulation for Stochastic Timed Systems Model-Checking and Simulation for Stochastic Timed Systems QUASIMODO FMCO 2010, Graz Universität des Saarlandes Outline 1. Stochastic Timed Automata STA Submodels Modest 2. Model-Checking mcpta PTA Case

More information

Design and Analysis of Real-Time Systems Predictability and Predictable Microarchitectures

Design and Analysis of Real-Time Systems Predictability and Predictable Microarchitectures Design and Analysis of Real-Time Systems Predictability and Predictable Microarcectures Jan Reineke Advanced Lecture, Summer 2013 Notion of Predictability Oxford Dictionary: predictable = adjective, able

More information

Temporal Refinement Using SMT and Model Checking with an Application to Physical-Layer Protocols

Temporal Refinement Using SMT and Model Checking with an Application to Physical-Layer Protocols Temporal Refinement Using SMT and Model Checking with an Application to Physical-Layer Protocols Lee Pike (Presenting), Galois, Inc. leepike@galois.com Geoffrey M. Brown, Indiana University geobrown@cs.indiana.edu

More information

Model-based Analysis of Event-driven Distributed Real-time Embedded Systems

Model-based Analysis of Event-driven Distributed Real-time Embedded Systems Model-based Analysis of Event-driven Distributed Real-time Embedded Systems Gabor Madl Committee Chancellor s Professor Nikil Dutt (Chair) Professor Tony Givargis Professor Ian Harris University of California,

More information

System Design and Methodology/ Embedded Systems Design (Modeling and Design of Embedded Systems)

System Design and Methodology/ Embedded Systems Design (Modeling and Design of Embedded Systems) Design&Methodologies Fö 1&2-1 Design&Methodologies Fö 1&2-2 Course Information Design and Methodology/ Embedded s Design (Modeling and Design of Embedded s) TDTS07/TDDI08 Web page: http://www.ida.liu.se/~tdts07

More information