|
Program Semantics, Specification and Verification
Translation from Event-B into Eiffel
S. Reznikova, V. Rivera, J. Y. Lee, M. Mazzara Innopolis University,
1 Universitetskaya St., Innopolis 420500, Russia
Abstract:
Formal modelling languages play a key role in the development of software: they enable users to specify functional requirements that serve as documentation as well; they enable users to prove the correctness of system properties, especially for critical systems. However, there is still an open question on how to map formal models to a specific programming language. In order to propose a solution, this paper presents a source-to-source mapping between Event-B models, a formal modelling language for reactive systems, and Eiffel programs, an Object Oriented (O-O) programming language. The mapping not only generates an actual Eiffel code of the Event-B model, but also translates model properties as contracts. The contracts follow the Design by Contract principle and are natively supported by the programming language. The mapping is implemented in the freely available Rodin plug-in EB2Eiffel. Thus, users can develop systems (i) starting with the modelling of functional requirements (properties) in Event-B, then (ii) formally proving the correctness of such properties in Rodin and finally (iii) by using EB2Eiffel to translate the model into Eiffel. In Eiffel, users can extend/customise the implementation of the model and formally prove it against the initial model. This paper also presents different Event-B models from the literature to test EB2Eiffel and its limitations. The article is published in the authors’ wording.
Keywords:
stepwise refinement, Design-by-Contract, formal modelling, reactive systems, Event-B, Eiffel.
Received: 10.09.2018 Revised: 10.10.2018 Accepted: 01.11.2018
Citation:
S. Reznikova, V. Rivera, J. Y. Lee, M. Mazzara, “Translation from Event-B into Eiffel”, Model. Anal. Inform. Sist., 25:6 (2018), 623–636
Linking options:
https://www.mathnet.ru/eng/mais653 https://www.mathnet.ru/eng/mais/v25/i6/p623
|
|