首页> 外文期刊>SIGCSE bulletin >Studying Program Correctness by Constructing Contracts
【24h】

Studying Program Correctness by Constructing Contracts

机译:通过订立合同研究程序的正确性

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

摘要

Because the concept of program correctness is generally taught as an activity independent of the programming process, most introductory computer science (CS) students perceive it as unnecessary and even irrelevant. The concept of contracts, on the other hand, is generally taught as an integral part of the programming process. As such, most introductory CS students have little difficulty understanding the need to establish contracts via preconditions and postconditions. In order to improve teaching program correctness concepts, we implemented ProVIDE, an enhanced integrated development environment (IDE) for Java. ProVIDE supports a modified version of the "design by contract" methodology that assists its student programmers in contract construction. Rather than asking for both a precondition and postcondition for each of his/her methods, ProVIDE asks the student to simply supply a postcondition. ProVIDE then helps the student construct the appropriate precondition by leading him/her through an axiomatic proof of the correctness of the method. Thus, the proof of correctness of the method is a side-effect of the student's need to construct an appropriate precondition.
机译:由于程序正确性的概念通常是作为一种独立于程序设计过程的活动来教授的,因此大多数计算机科学入门(CS)学生都认为它是不必要的,甚至是无关紧要的。另一方面,合同的概念通​​常作为编程过程的组成部分来教授。这样,大多数入门级CS学生都很难理解通过先决条件和后置条件建立合同的必要性。为了改善教学计划的正确性概念,我们实施了ProVIDE,这是一种针对Java的增强的集成开发环境(IDE)。 ProVIDE支持“按合同设计”方法的修改版本,以协助其学生程序员进行合同构建。 ProVIDE要求学生简单地提供一个后置条件,而不是为每种方法都要求一个前提条件和后置条件。然后,ProVIDE通过引导他/她通过方法的正确性的公理证据来帮助学生构建适当的前提条件。因此,该方法的正确性证明是学生构造适当的前提条件的副作用。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号