%0 Conference Proceedings %T From Event-B Models to Dafny Code Contracts %+ University of Southampton %A Dalvandi, Mohammadsadegh %A Butler, Michael %A Rezazadeh, Abdolbaghi %< avec comité de lecture %( Lecture Notes in Computer Science %B 6th Fundamentals of Software Engineering (FSEN) %C Tehran, Iran %Y Mehdi Dastani %Y Marjan Sirjani %I Springer %3 Fundamentals of Software Engineering %V LNCS-9392 %P 308-315 %8 2015-04-22 %D 2015 %R 10.1007/978-3-319-24644-4_21 %K Event-B %K Dafny %K Formal Methods %K Program Verification %K Methodologies %Z Computer Science [cs]Conference papers %X 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. %G English %Z TC 2 %Z WG 2.2 %2 https://inria.hal.science/hal-01446608/document %2 https://inria.hal.science/hal-01446608/file/978-3-319-24644-4_21_Chapter.pdf %L hal-01446608 %U https://inria.hal.science/hal-01446608 %~ IFIP-LNCS %~ IFIP %~ IFIP-TC %~ IFIP-TC2 %~ IFIP-WG2-2 %~ IFIP-LNCS-9392 %~ IFIP-FSEN