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

你的证明失败了?测试有助于找到原因

Your Proof Fails? Testing Helps to Find the Reason

Guillaume Petiot, Nikolai Kosmatov, Bernard Botella, Alain Giorgetti, Jacques Julliand

摘要:

应用演绎验证来正式证明程序遵守其形式规范是一项非常复杂和耗时的任务,特别是由于缺乏反馈的情况下,证明失败。除了代码与其规范之间的不一致性(由于至少其中一个错误),证明失败的可能原因包括调用函数或循环的规范缺失或太弱,以及缺乏时间或证明器无法完成特定证明。这项工作提出了一种新的方法,测试生成有助于确定证明失败的原因,并展示一个反例清楚地说明了这个问题。我们描述了如何将注释的C程序转换为适合测试的C代码,并说明了该方法的好处,全面的例子。该方法已在软件分析平台FRAMA-C的插件STADY中实现。初步实验表明,检测不合规和合同弱点可以精确诊断大多数证明失败。

英文摘要:

Applying deductive verification to formally prove that a program respects its formal specification is a very complex and time-consuming task due in particular to the lack of feedback in case of proof failures. Along with a non-compliance between the code and its specification (due to an error in at least one of them), possible reasons of a proof failure include a missing or too weak specification for a called function or a loop, and lack of time or simply incapacity of the prover to finish a particular proof. This work proposes a new methodology where test generation helps to identify the reason of a proof failure and to exhibit a counter-example clearly illustrating the issue. We describe how to transform an annotated C program into C code suitable for testing and illustrate the benefits of the method on comprehensive examples. The method has been implemented in STADY, a plugin of the software analysis platform FRAMA-C. Initial experiments show that detecting non-compliances and contract weaknesses allows to precisely diagnose most proof failures.

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

↑