arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0101009cs.PLcs.SE
收藏

带逻辑前置条件和后置条件的生成与证明

Generation of and Debugging with Logical Pre and Postconditions

Angel Herrranz-Nieva Juan Jose Moreno Navarro

摘要:

本文介绍了SLAM系统提供的调试工具。SLAM系统包括i)规约语言,其使用面向对象的模型来集成代数规范和基于模型的规范。类操作是通过使用规则来定义的,每个规则都有逻辑上的前置条件和后置条件,但都有函数的味道。ii)一种开发环境,除了其他特征之外,该开发环境能够以高级面向对象语言生成可读代码。iii)生成的代码包括(部分)前置和后置条件作为断言,可以在程序的调试模式执行中自动检查。我们专注于最后一个方面。SLAM语言的表达能力足以描述许多有用的属性,这些属性被翻译成Prolog程序,该程序(通过适当的接口)与用户程序链接。程序的调试执行与负责检查属性的Prolog引擎交互。

英文摘要:

This paper shows the debugging facilities provided by the SLAM system. The SLAM system includes i) a specification language that integrates algebraic specifications and model-based specifications using the object oriented model. Class operations are defined by using rules each of them with logical pre and postconditions but with a functional flavour. ii) A development environment that, among other features, is able to generate readable code in a high level object oriented language. iii) The generated code includes (part of) the pre and postconditions as assertions, that can be automatically checked in the debug mode execution of programs. We focus on this last aspect. The SLAM language is expressive enough to describe many useful properties and these properties are translated into a Prolog program that is linked (via an adequate interface) with the user program. The debugging execution of the program interacts with the Prolog engine which is responsible for checking properties.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑