Monitoring aspects for the customization of automatically generated code for big-step models

Author:

Esmaeilsabzali Shahram1,Fischer Bernd1,Atlee Joanne M.2

Affiliation:

1. University of Southampton, Southampton, United Kingdom

2. University of Waterloo, Waterloo, ON, Canada

Abstract

The output of a code generator is assumed to be correct and not usually intended to be read or modified; yet programmers are often interested in this, e.g., to monitor a system property. Here, we consider code customization for a family of code generators associated with big-step executable modelling languages (e.g., statecharts). We introduce a customization language that allows us to express customization scenarios for the generated code independently of a specific big-step execution semantics. These customization scenarios are all different forms of runtime monitors, which lend themselves to a principled, uniform implementation for observation and code extension. A monitor is given in terms of the enabledness and execution of the transitions of a model and a reachability relation between two states of the execution of the model during a big step. For each monitor, we generate the aspect code that is incorporated into the output of a code generator to implement the monitor at the generated-code level. Thus, we provide means for code analysis through using the vocabulary of a model, rather than the detail of the generated code. Our technique not only requires the code generators to reveal only limited information about their code generation mechanisms, but also keeps the structure of the generated code intact. We demonstrate how various useful properties of a model, or a language, can be checked using our monitors.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference28 articles.

1. A. Prout J. M. Atlee N. A. Day and P. Shaker " Semantically configurable code generation " in MoDELS'08 vol. 5301 of LNCS pp. 705 -- 720 2008 . 10.1007/978-3-540-87875-9_49 A. Prout J. M. Atlee N. A. Day and P. Shaker "Semantically configurable code generation " in MoDELS'08 vol. 5301 of LNCS pp. 705--720 2008. 10.1007/978-3-540-87875-9_49

2. Deconstructing the semantics of big-step modelling languages

3. Statecharts: a visual formalism for complex systems

4. M. von der Beeck " A comparison of Statecharts variants " in FTRTFT'94 vol. 863 of LNCS pp. 128 -- 148 Springer 1994 . M. von der Beeck "A comparison of Statecharts variants " in FTRTFT'94 vol. 863 of LNCS pp. 128--148 Springer 1994.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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