1 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Manoj noj G. Dixi xit, t,
Jointly with, Prof. . Palla lab Dasgupt pta, , IIT KGP and Dr. S. Ramesh, h, GM R&D
Early Time-Budgeting in Distributed Embedded Control Systems Manoj - - PowerPoint PPT Presentation
Early Time-Budgeting in Distributed Embedded Control Systems Manoj noj G. Dixi xit, t, Jointly with, Prof. . Palla lab Dasgupt pta, , IIT KGP and Dr. S. Ramesh, h, GM R&D CMI Workshop: Making Formal Verification Scalable and Usable
1 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Jointly with, Prof. . Palla lab Dasgupt pta, , IIT KGP and Dr. S. Ramesh, h, GM R&D
2 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
E.g. AUTOSAR based development
3 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Functional Specification Safety Requirement
4 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Functional Specification Safety Requirement
Standards/Statistical data Actual Implementation
Time Budgeting
5 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Increasing real-time interdependencies between components
7 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
8 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
9 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Parametric -time Specifications
Time-Budgeting: What values of x, y, w, z are good-enough?
Real-time Specifications
10 10 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Large component integration, multiple suppliers
Important to know, how a specific choice of timing specification for one component affects the other
EAST-ADL and TIMMO2 provides higher level
product line requirements
Timing requirements are refined across different levels
Event models – periodic, sporadic etc.
Delay, synchronization constraints
Source: Autosar timing spec from http://www.autosar.org Source: TIMMO Methodology presentation by Stephan Kuntz, Continental Automotive GmbH, 2010
11 11 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
We are
We are
Prop
Find constraints over parameter values
Design space exploration to select suitable valuation
Scalable
12 12 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
In pract ctic ice, , component ponent decomp mposi
ions ns are hierarchic ical: l: DAG
Methodology aligned for hierarchical specifications
Large e decompo mpositi ition
s:
Each feature component has 10s of requirements
Simultaneous budgeting does not seem to be scalable
Linear constraints are preferred
Requir iremen ents ts become me finer er and more comple plex x (or detaile led) d) as we move down the hierarchy archy
Handling ing large ge hierarchical archical decomp mposi
ions ns:
Split component time-budgeting into smaller sub- problems and repeat
Compositional approach
DF-traversal with back-tracking takes care of component re-use case
Specialized lized methods ds to analyze requirement ments s patterns rns
13 13 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Formal Analyzer of Parametric Specs
Feature Requirements (known-timing) Component Requirements (unknown-timing) Formalized Feature Requirements (Real-time) Formalized Component Requirements (Parametric-time) Design Constraints Optimization Decisions Linear Constraints On Parameters
Constraint Optimizer Component Time- Budget Time Budgeting Algorithm
gets converted to constraint solving, scalability is much better this way Constraint Solving, Optimization: Well known New Algorithms
14 14 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Informally: component requirements put-together should satisfy all feature requirements
We have the following reduction: Theorem: It is enough to analyze each pair separately, compute validity constraint. Any solution to conjoined constraint defines a suitable time-budget
15 15 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Parame
Extends well known Linear Temporal Logic
Semantics is defined by using a parameter valuation
16 16 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
The requirement decomposition pair is valid if and only if PLTL formula is valid.
17 17 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
x1
PLTL Formula Valid
Not Valid x2 x1
x2
Validity Region
18 18 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Scalable ble decisi sion
cedur ures for PLTL
Emptiness, universality conditions for a formula
Closed form representation of validity region possibly using linear constraints
Constraint computation involves dealing with large search space to compute boundary
Pattern n specif ific ic scalable ble constrain traint t computat utatio ion n techniqu iques
Requirement decomposition pairs modeled using bounded- response pattern
Suitable for specifying end-to-end response
Developi
ng modelin ling g guideli eline nes s for
cing the usabil ility ity
Model requirements at top level of hierarchy using bounded- response pattern
At lower level have more complex pattern
Whenever scalability issues are encountered in constraint computation, perform bounded-response based decomposition and then refine
Bounded-response pattern Model top requirements using bounded-response and then refine
CMI Workshop: Making Formal Verification Scalable and Usable Manoj Dixit 10th Jan 2013
20 20 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Our complexity: Earlier:
21 21 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
CMI Workshop: Making Formal Verification Scalable and Usable Manoj Dixit 10th Jan 2013
23 23 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Bounded-response formula in PLTL
24 24 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
We have defined a notion of an irreducible cover for Boolean formulae
25 25 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
CMI Workshop: Making Formal Verification Scalable and Usable Manoj Dixit 10th Jan 2013
27 27 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Include Point-at-infinity
Constraint definition using Corner-Points
Downward Closure Property Corner Points
Monotonicity of PLTL operators
28 28 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Find a corner point
Partition the further search
Obtain a farthest useful valuation along diagonal starting from a base
Decide sub-set of parameters for which max limit is reached
Fix them and re-iterate till all parameters are over
Partition and identify the region(s) where no corner-point can lie
Adjust new base valuation so that those regions get ignored from later search
Repeat Search step recursively for them
Iteration 1 Iteration 2 Max limit for x1 reached New base
CMI Workshop: Making Formal Verification Scalable and Usable Manoj Dixit 10th Jan 2013
30 30 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
31 31 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Adaptiv ive Cruis ise Control,
lisi sion
gatio tion
120+ + feature ure and compone
nt prope pertie ties
100+ + add-on n constr straint ints s in the design n space explor
tion
Budgeting ting for 3 feature ure combinatio binations: ns: ACC only, , CM only and ACC-CM CM
Bounded-Response Algorithm Corner Point Algorithm
32 32 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
33 33 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Presence of large constants lead to scalability of model checkers
34 34 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Integrates all of the below techniques
Non-triviality of the solution region
A specially tuned method for a widely used requirements pattern
Complex temporal relationships
Tool framework and demonstration on automotive features ACC and CM
35 35 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
36 36 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
CMI Workshop: Making Formal Verification Scalable and Usable Manoj Dixit 10th Jan 2013
38 38 CMI Workshop: Making Formal Verification Scalable and Usable
Manoj Dixit 10th Jan 2013
Source: Autosar timing and VFBspecs from http://www.autosar.org