Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 14 of 14

Feasibility of formal model checking in the Vitatron environment, pages 86 to 91

Pages 86 to 91 of 91: Chapter 8Conclusions; Bibliography

The original document is the PDF (6.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Vitatron EE244

Page 86

Chapter 8

Conclusions The feasibility of the application of model checking on Vitatron’s firmware designs like the DA+ pacemaker firmware design as an independent verification technique is certainly not confirmed. Nevertheless the investigations from this project have shown that it might be valuable to use model checking as a supplementary test technique besides the current test techniques in the future. The pacemaker firmware is highly time-dependent; besides the ordering in which external events are received, their timing has a great influence on the behavior of the firmware. Of course, this influence on the behavior also has an enlarging effect on the state space of any formal model that represents (a part of) the firmware. Furthermore, besides this direct influence on the state space, much timing information is stored in process variables whose values are used in determining the subsequent behavior. The model state space size thus is highly proportional to the timing diversity of the provided external inputs to the model. In our heart model approaches the external inputs were provided to the firmware by the formal heart model. We regulated the timing diversity of these external inputs by allowing different sets of optional atrial rates. In this way the time dependency of the firmware model became very clear; increasing the number of possible atrial rates had an exponentially increasing effect on the state space size. Because verification of a formal model becomes infeasible when the model state space becomes too large, we were forced to limit the diversity of the provided heart model behavior in order to make verification possible. Although the verifications that have been carried out in the presence of the heart model all were successful (all defined system requirements appeared to be true in the verified models), the conclusions for the firmware design that can be drawn from these successful verifications are very limited. This not only results from the limitations to the heart behavior, but also from the state space reductions (described in section 5.5) that we applied. Furthermore the firmware models are only analyzed and verified for one particular setting of the programmable parameters. These three types of reductions in the heart model approach make that we have only reached a minimal test coverage of the firmware system. Based on these considerations we can state that this model checking approach does not yet form a feasible and reliable verification technique for complete firmware designs. However, analysis and simulation of future firmware systems would be possible by using this approach, because these do not require the generation of the complete state space and may provide insight about the relations between the system components and about the external behavior.

85

Page 87

For verification of future firmware designs this approach can probably only be used if the modeled input behavior is limited; this might be useful when the design must be verified for some specific heart behavior (e.g. verifying the firmware behavior for some particular cardiac arrhythmia). However, the reliability of verification results from such approaches always must be carefully judged. Our investigation of the isolated RC approach (see section 6.4) has shown that the application of model checking on a part of a firmware design is probably always more feasible than any approach that verifies the complete design, either by means of a formal heart model or another environmental model. Models of design parts automatically have a smaller state space and less time dependencies which makes it possible to verify the parts more extensively. This approach appeared to be feasible on the RC part; we were able to place the RC part in the context of a complete environmental model that provides all possible timings of input event sequences and all possible values of input variables. Our verification results show that this model checking approach can lead to the discovery of a requirement violation in a model of a design part and that the consequences of such a violation can be investigated in a model of the complete design afterwards. Furthermore, these verification results are very reliable, because of the complete environmental model that is used in such an approach. However note that we have only verified the RC part for one particular setting of the programmable parameters. To verify the part even more completely, these parameters should be varied, but whether this would be feasible is left as a topic of future research. After this overview of our experiences from investigating the several model checking approaches, we give a summary of our recommendations to Vitatron and the academic world from chapter 7. • ‘Model checking aimed’-specification of firmware designs. – Apply as much determinism as possible (from implementation perspective) while specifying firmware designs. For instance, specify an explicit order of triggering processes and sending output events. – Specify future firmware designs in a more formal language or in a less ambiguous way in order to increase the clarity of the firmware design specifications. Make sure that the specified behavior for each possible incoming event to the system can be easily tracked in the design. – State an explicit and formal definition of the purpose and the interface of each component in the design specification. This will probably ease the invention and the formulation of requirements that can be verified by model checking. – Obey the ‘low coupling/high cohesion’ design pattern as much as possible in the specification of firmware designs. This will reduce the dependencies between design components which makes extensive verification of these components by model checking more feasible. • Translation of firmware designs to formal models. – Be alert on variable values that potentially ‘stay behind’ in the model state space while they are no longer influencing the behavior. 86

Page 88

– Be alert on potentially infinitely increasing variable values. Such variables can cause the state space to become infinite as well. • Model checking approach. – Apply model checking already during early design of firmware systems; this can either be done by formally modeling the firmware in the context of a simple heart model or by exploring the formal model of the firmware manually by using some simulator tool. This will provide early insight and understanding of the consequences of made design decisions and might prevent expensive corrections at the end of the design stage. – Apply model checking as a kind of unit testing technique. Selecting the analyzed and verified system parts is preferably done by a bottom-up approach; next it is recommendable that the applied abstraction level is initially chosen as high as possible. Later on the abstraction level possibly can be lowered if the resulting state space appears to be too large. – The comparison between mCRL2 and Uppaal in this project has shown that mCRL2 is preferably chosen as a model checking tool for firmware designs. However, it is also recommended to investigate the feasibility of other available model checking tools in the future. • Resources and skills. – Perform model checking on a machine with many resources. Although the availability of many resources is important, no super computer is required in order to apply model checking. The requirement violation in the RC part even had been found when the verification would have been carried out on a personal computer, because the state space of the corresponding model was relatively small. – Develop the skills of engineers that are going to apply model checking. General model checking knowledge is important, but knowledge about the specific model checker that is used is also very important. • Future research topics for the academic world. – Investigate the development of more efficient methods for obtaining formal models from system designs, e.g. tools which translate a system design to a formal model automatically. – Investigate how model checking can be performed more efficiently on systems with many programmable parameters. – Investigate the development of a higher-order language in which model requirements can be easier formulated than currently is the case with the modal µ-calculus. For the nearby future, it is recommended that Vitatron starts developing some experience with model checking. Furthermore it is recommended to investigate whether applying model checking during early design is indeed valuable and feasible for Vitatron. Initially these two goals can for instance be combined in some coming firmware design project by trying to apply model checking to design components of limited size. Especially design components that contain many collaborating state machines are good candidates to 87

Page 89

be formally verified. It is preferred that formal models of such design components are created by the firmware designers and during the design specification stage, because through formal modeling much insight can be obtained about the consequences of made design decisions. Furthermore it is recommended to state the requirements to the modeled design components also already during the design specification stage, so that these requirements can be verified ‘immediately’ on the concurrently developed formal models. Note that obeying our recommendation of explicitly specifying the purpose and interface of each component implies that the main requirements to the design components are available. Even if model checking is not applied immediately, it is anyhow recommended to obey our ‘model checking aimed’-specification recommendations. Specifying future firmware designs according to these recommendations increases the feasibility of the application of model checking later on.

88

Page 90

Bibliography [1] Hugo/RT, UML model translator for model checking, theorem proving, and code generation. Webpage: http://www.pst.informatik.uni-muenchen.de/projekte/hugo/. [2] mCRL2 toolset homepage. http://www.mcrl2.org/. [3] Uppaal homepage. http://www.uppaal.com/. [4] G. Behrmann, A. David, and K.G. Larsen. A tutorial on uppaal. In Marco Bernardo and Flavio Corradini, editors, Formal Methods for the Design of Real-Time Systems: 4th International School on Formal Methods for the Design of Computer, Communication, and Software Systems, SFM-RT 2004, number 3185 in LNCS, pages 200–236. Springer– Verlag, 2004. [5] J. Bengtsson and W. Yi. Timed automata: Semantics, algorithms and tools. In W. Reisig and G. Rozenberg, editors, Lecture Notes on Concurrency and Petri Nets, number 3098 in LNCS. Springer–Verlag, 2004. [6] E.M. Clarke, E.A. Emerson, and A.P. Sistla. Model checking. MIT Press, 2000. [7] F. Feith. Electrophysiology. Education Modules Vitatron: EMD 104-144, 1996. [8] F. Feith. Pathology. Education Modules Vitatron: EMD 105-145, 1996. [9] J.F. Groote, A.H.J. Mathijssen, S.C.W. Ploeger, M.A. Reniers, M.J. van Weerdenburg, and J. van der Wulp. Process Algebra and mCRL2. IPA Basic Course on Formal Methods, 2006. [10] J.F. Groote, A.H.J. Mathijssen, M.A. Reniers, Y.S. Usenko, and M.J. van Weerdenburg. The formal specification language mcrl2. In Methods for Modelling Software Systems, number 06351 in Dagstuhl Seminar Proceedings, 2007. [11] J.F. Groote and M.A. Reniers. Designing and understanding the behaviour of systems. Lecture notes for the TU/e course ”Requirement Analysis, Design and Verification” (2IW25), given by J.F. Groote. These notes are available at http://www.win.tue.nl/~jfg/educ/educ.html, 2007. [12] D.J. Hatley and I.A. Pirbhai. Strategies for real-time system specification. Dorset House Publishing, New York, 1987. [13] M. Hennessy and R. Milner. On observing nondeterminism and concurrency. In Proceedings of the 7th Colloquium on Automata, Languages and Programming, pages 299–309, London, UK, 1980. Springer-Verlag. 89

Page 91

[14] M.R.A. Huth and M.D. Ryan. Logic in Computer Science: Modelling and Reasoning about Systems. Cambridge University Press, second edition, 2004. [15] A. Lindgren and S. Jansson. Heart physiology and stimulation: an introduction. SiemensElema, 1992. [16] K.L. McMillan. Symbolic Model Checking: An Approach to the State Explosion Problem. PhD thesis, Carnegie Mellon University, 1992. [17] H.J.J. Wellens, K.I. Lie, and M.J. Janse. The conduction system of the heart: structure, function and clinical implications. Stenfert Kroese, 1976.

90