首页> 外文期刊>Higher-order and symbolic computation >Program Synthesis from Formal Requirements Specifications Using APTS
【24h】

Program Synthesis from Formal Requirements Specifications Using APTS

机译:使用APTS从正式需求规范中进行程序综合

获取原文
获取原文并翻译 | 示例

摘要

Formal specifications of software systems are extremely useful because they can be rigorously analyzed, verified, and validated, giving high confidence that the specification captures the desired behavior. To transfer this confidence to the actual source code implementation, a formal link is needed between the specification and the implementation. Generating the implementation directly from the specification provides one such link. A program transformation system such as Paige's APTS can be useful in developing a source code generator. This paper describes a case study in which APTS was used to produce code generators that construct C source code from a requirements specification in the SCR (Software Cost Reduction) tabular notation. In the study, two different code generation strategies were explored. The first strategy uses rewrite rules to transform the parse tree of an SCR specification into a parse tree for the corresponding C code. The second strategy associates a relation with each node of the specification parse tree. Each member of this relation acts as an attribute, holding the C code corresponding to the tree at the associated node; the root of the tree has the entire C program as its member of the relation. This paper describes the two code generators supported by APTS, how each was used to synthesize code for two example SCR requirements specifications, and what was learned about APTS from these implementations.
机译:软件系统的正式规范非常有用,因为可以对其进行严格的分析,验证和确认,从而使该规范具有捕获所需行为的高度可信度。为了将这种信心转移到实际的源代码实现中,需要在规范和实现之间建立正式的联系。直接从规范中生成实现可提供这样的链接。诸如Paige的APTS之类的程序转换系统可用于开发源代码生成器。本文描述了一个案例研究,其中使用APTS来生成代码生成器,该代码生成器根据SCR(软件成本降低)表格表示的需求规范来构造C源代码。在研究中,探索了两种不同的代码生成策略。第一种策略使用重写规则将SCR规范的解析树转换为相应C代码的解析树。第二种策略将一个关系与规范分析树的每个节点相关联。该关系的每个成员都作为一个属性,在关联的节点上保存与树对应的C代码。树的根将整个C程序作为其关系的成员。本文描述了APTS支持的两个代码生成器,如何将每个代码生成器用于两个示例SCR需求规范的代码合成,以及从这些实现中学到的关于APTS的知识。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号