Asm2C++: A tool for code generation from abstract state machines to Arduino

Authors Silvia Bonfanti
Marco Carissoni
Angelo Gargantini
Atif Mashkoor
Editors Clark Barrett
Misty Davies
Temesghen Kahsai
Title Asm2C++: A tool for code generation from abstract state machines to Arduino
Booktitle NASA Formal Methods - Proc. NFM 2017
Type in proceedings
Publisher Springer
Series ecture Notes in Computer Science
Volume 10227
ISBN 978-3-319-57287-1
DOI 10.1007/978-3-319-57288-8_21
Month April
Year 2017
Pages 295-301
SCCH ID# 17011
Abstract

This paper presents Asm2C++, a tool that automatically generates executable C++ code for Arduino from a formal specification given as Abstract State Machines (ASMs). The code generation process follows the model-driven engineering approach, where the code is obtained from a formal abstract model by applying certain transformation rules. The translation process is highly configurable in order to correctly integrate the underlying hardware. The advantage of the Asm2C++ tool is that it is part of the Asmeta framework that allows to analyze, verify, and validate the correctness of a formal model.