Code Generation for Event-B

被引:0
|
作者
Furst, Andreas [1 ]
Hoang, Thai Son [1 ]
Basin, David [1 ]
Desai, Krishnaji [2 ]
Sato, Naoto [3 ]
Miyazaki, Kunihiko [3 ]
机构
[1] Swiss Fed Inst Technol, Inst Informat Secur, Zurich, Switzerland
[2] Hitachi India Pvt Ltd, New Delhi, India
[3] Yokohama Res Lab, Hitachi Ltd, Yokohama, Kanagawa, Japan
来源
关键词
Event-B; code generation; correct-by-construction;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present an approach to generating program code from Event-B models that is correct-by-construction. Correctness is guaranteed by the combined use of well-definedness restrictions, refinement, and assertions. By enforcing the well-definedness of the translated model, we prevent runtime errors that originate from semantic differences between the target language and Event-B, such as different interpretations of the range of integer values. Using refinement, we show that the generated code correctly implements the original Event-B model. We provide a simple yet powerful scheduling language that allows one to specify an execution sequence of the model's guarded events where assertions are used to express properties established by the event execution sequence, which are necessary for well-definedness and refinement proofs.
引用
收藏
页码:323 / 338
页数:16
相关论文
共 50 条
  • [1] Code generation for Event-B
    Rivera, Victor
    Catano, Nestor
    Wahls, Tim
    Rueda, Camilo
    INTERNATIONAL JOURNAL ON SOFTWARE TOOLS FOR TECHNOLOGY TRANSFER, 2017, 19 (01) : 31 - 52
  • [2] Code generation for Event-B
    Víctor Rivera
    Néstor Cataño
    Tim Wahls
    Camilo Rueda
    International Journal on Software Tools for Technology Transfer, 2017, 19 : 31 - 52
  • [3] Templates for Event-B Code Generation
    Edmunds, Andrew
    ABSTRACT STATE MACHINES, ALLOY, B, TLA, VDM, AND Z, ABZ 2014, 2014, 8477 : 284 - 289
  • [4] A Case Study on Code Generation of an ERP System from Event-B
    Catano, Nestor
    Wahls, Tim
    2015 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE SECURITY AND RELIABILITY (QRS 2015), 2015, : 183 - 188
  • [5] Event-B Formalization of Event-B Contexts
    Bodeveix, Jean-Paul
    Filali, Mamoun
    RIGOROUS STATE-BASED METHODS, ABZ 2021, 2021, 12709 : 66 - 80
  • [6] Generation of Structural VHDL Code with Library Components from Formal Event-B Models
    Ostroumov, Sergey
    Tsiopoulos, Leonidas
    Sere, Kaisa
    Plosila, Juha
    16TH EUROMICRO CONFERENCE ON DIGITAL SYSTEM DESIGN (DSD 2013), 2013, : 111 - 118
  • [7] From Event-B Models to Dafny Code Contracts
    Dalvandi, Mohammadsadegh
    Butler, Michael
    Rezazadeh, Abdolbaghi
    FUNDAMENTALS OF SOFTWARE ENGINEERING, FSEN 2015, 2015, 9392 : 308 - 315
  • [8] EventB2Java']Java: A Code Generator for Event-B
    Catano, Nestor
    Rivera, Victor
    NASA FORMAL METHODS, NFM 2016, 2016, 9690 : 166 - 171
  • [9] Automatic Generation of DistAlgo Programs from Event-B Models
    Grall, Alexis
    RIGOROUS STATE-BASED METHODS, ABZ 2020, 2020, 12071 : 414 - 417
  • [10] Core Hybrid Event-B I: Single Hybrid Event-B machines
    Banach, Richard
    Butler, Michael
    Qin, Shengchao
    Verma, Nitika
    Zhu, Huibiao
    SCIENCE OF COMPUTER PROGRAMMING, 2015, 105 : 92 - 123