首页    期刊浏览 2024年12月01日 星期日
登录注册

文章基本信息

  • 标题:Imposing assertions in Maude via program transformation
  • 本地全文:下载
  • 作者:María Alpuente ; Demis Ballis ; Julia Sapiña
  • 期刊名称:MethodsX
  • 印刷版ISSN:2215-0161
  • 电子版ISSN:2215-0161
  • 出版年度:2019
  • 卷号:6
  • 页码:2577-2583
  • DOI:10.1016/j.mex.2019.10.035
  • 语种:English
  • 出版社:Elsevier
  • 摘要:Graphical abstractDisplay OmittedAbstractProgram transformation is widely used for producing correct mutations of a given program so as to satisfy the user’s intent that can be expressed by means of some sort of specification (e.g. logical assertions, functional specifications, reference implementations, summaries, examples). This paper describes an automated correction methodology for Maude programs that is based on program transformation and can be used to enforce a safety policy, given by a setAof system assertions, in a Maude programRthat might disprove some of the assertions. The outcome of the technique is a safe program refinementR'ofRin which every computation is a good run, i.e., it satisfies the assertions inA. Furthermore, the transformation ensures that no good run ofRis removed fromR'. Advantages of this correction methodology can be summarized as follows.•A fully automatic program transformation featuring both program diagnosis and repair that preserves all executability requirements.•A simple logical notation to declaratively express invariant properties and other safety constraints through assertions.•No dynamic information is required to infer program fixes: the methodology is static and does not need to collect any error symptom at runtime.
  • 关键词:Assertion enforcement;Automated program transformation;Program repair;Equational rewriting;Rewriting logic, Maude
国家哲学社会科学文献中心版权所有