From Event-B Models to Dafny Code Contracts

Abstract : The constructive approach to software correctness aims at formal modelling and verification of the structure and behaviour of a system in different levels of abstraction. In contrast, the analytical approach to software verification focuses on code level correctness and its verification. Therefore it would seem that the constructive and analytical approaches should complement each other well. To demonstrate this idea we present a case for linking two existing verification methods, Event-B (constructive) and Dafny (analytical). This approach combines the power of Event-B abstraction and its stepwise refinement with the verification capabilities of Dafny. We presented a small case study to demonstrate this approach and outline of the rules for transforming Event-B events to Dafny contracts. Finally, a tool for automatic generation of Dafny contracts from Event-B formal models is presented.
Document type :
Conference papers
Complete list of metadatas

Cited literature [19 references]  Display  Hide  Download

https://hal.inria.fr/hal-01446608
Contributor : Hal Ifip <>
Submitted on : Thursday, January 26, 2017 - 10:43:47 AM
Last modification on : Saturday, June 8, 2019 - 2:20:03 PM
Long-term archiving on : Friday, April 28, 2017 - 6:01:28 AM

File

978-3-319-24644-4_21_Chapter.p...
Files produced by the author(s)

Licence


Distributed under a Creative Commons Attribution 4.0 International License

Identifiers

Citation

Mohammadsadegh Dalvandi, Michael Butler, Abdolbaghi Rezazadeh. From Event-B Models to Dafny Code Contracts. 6th Fundamentals of Software Engineering (FSEN), Apr 2015, Tehran, Iran. pp.308-315, ⟨10.1007/978-3-319-24644-4_21⟩. ⟨hal-01446608⟩

Share

Metrics

Record views

100

Files downloads

386