A Constructive State-based Semantics and Interpreter for a Synchronous Data-flow Language with State Machines

Author:

Colaço Jean-Louis1ORCID,Mendler Michael2ORCID,Pauget Baptiste3ORCID,Pouzet Marc4ORCID

Affiliation:

1. Ansys, France

2. The University of Bamberg, Germany

3. Ansys, France and Inria, France

4. ENS, France and PSL University, France and Inria, France

Abstract

Scade is a domain-specific synchronous functional language used to implement safety-critical real-time software for more than twenty years. Two main approaches have been considered for its semantics: (i) an indirect collapsing semantics based on a source-to-source translation of high-level constructs into a data-flow core language whose semantics is precisely specified and is the entry for code generation; a relational synchronous semantics , akin to Esterel, that applies directly to the source. It defines what is a valid synchronous reaction but hides, on purpose, if a semantics exists, is unique and can be computed; hence, it is not executable. This paper presents, for the first time, an executable , state-based semantics for a language that has the key constructs of Scade all together, in particular the arbitrary combination of data-flow equations and hierarchical state machines. It can apply directly to the source language before static checks and compilation steps. It is constructive in the sense that the language in which the semantics is defined is a statically typed functional language with call-by-value and strong normalization, e.g., it is expressible in a proof-assistant where all functions terminate. It leads to a reference, purely functional, interpreter. This semantics is modular and can account for possible errors, allowing to establish what property is ensured by each static verification performed by the compiler. It also clarifies how causality is treated in Scade compared with Esterel. This semantics can serve as an oracle for compiler testing and validation; to prototype novel language constructs before they are implemented, to execute possibly unfinished models or that are correct but rejected by the compiler; to prove the correctness of compilation steps. The semantics given in the paper is implemented as an interpreter in a purely functional style, in OCaml.

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Software

Reference51 articles.

1. Joaquín Aguado, Michael Mendler, Marc Pouzet, Partha S. Roop, and Reinhard von Hanxleden. 2018. Deterministic concurrency: A clock-synchronised shared memory approach. In ESOP. Thessaloniki, Greece, 86–113.

2. Denotational fixed-point semantics for constructive scheduling of synchronous concurrency;Aguado J.;Acta Informatica,2015

3. Ch. André. 1996. Representation and analysis of reactive behaviors: A synchronous approach. In CESA. IEEE-SMC, Lille.

4. A. Benveniste, T. Bourke, B. Caillaud, B. Pagano, and M. Pouzet. 2014. A type-based analysis of causality loops in hybrid systems modelers. In HSCC. ACM, Berlin, Germany.

5. The synchronous languages 12 years later

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3