RUS  ENG
Full version
JOURNALS // Modelirovanie i Analiz Informatsionnykh Sistem // Archive

Model. Anal. Inform. Sist., 2018 Volume 25, Number 6, Pages 623–636 (Mi mais653)

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.

UDC: 519.987

Received: 10.09.2018
Revised: 10.10.2018
Accepted: 01.11.2018

Language: English

DOI: 10.18255/1818-1015-623-636



© Steklov Math. Inst. of RAS, 2024