首页> 外文会议>International Conference on Quality Software >A Comparative Study of Invariants Generated by Daikon and User-Defined Design Contracts
【24h】

A Comparative Study of Invariants Generated by Daikon and User-Defined Design Contracts

机译:Daikon和用户定义的设计合同生成的不变量的比较研究

获取原文

摘要

A lot of progress has been made towards reverse-engineering program specification under the form of contracts. Ensuring the quality of such reverse-engineered contracts, referred to as likely invariants when using Daikon, is paramount since those contracts are used in several other contexts. One aspect that can influence the "quality" of the reverse-engineered contracts is the configuration being used when executing Daikon. In this paper we evaluate the impact of two such configuration parameters which help the user control in two different ways how many variables of the program are considered by Daikon when inferring likely invariants. We perform a case study with a program equipped with test cases and high-level design contracts (i.e., design contracts produced before implementation) and systematically compare likely invariants reverse-engineered by Daikon to those contracts, thanks to a comparison framework we devised. Results confirm and complement previous works, whereby we show that: a good proportion of design contracts are correctly identified by Daikon as likely invariants, many design contracts are not discovered by Daikon, looking for design contract in the set of likely invariants amounts to searching for a needle in a haystack. Our experiment also allows us to suggest a cost-effective configuration when running Daikon.
机译:在合同形式下的逆向工程规范方面已经取得了很多进展。确保这种反向工程合同的质量(在使用Daikon时被称为不变式)至关重要,因为这些合同还用于其他几种情况。可以影响反向工程合同“质量”的一个方面是执行Daikon时使用的配置。在本文中,我们评估了两个这样的配置参数的影响,这两个参数可以帮助用户以两种不同的方式控制Daikon在推断可能的不变量时考虑了多少个程序变量。我们使用包含测试用例和高级设计合同(即在实施之前生成的设计合同)的程序进行案例研究,并由于我们设计的比较框架而将Daikon反向工程的可能不变式系统地与这些合同进行了系统比较。结果证实并补充了以前的工作,从而表明:Daikon正确地将很大比例的设计合同识别为可能的不变式,Daikon未发现很多设计合同,在可能的不变式集中寻找设计合同就等于在寻找大海捞针。我们的实验还允许我们在运行Daikon时提出一种经济高效的配置。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号