How testing helps to diagnose proof failures
Open Access
- 12 June 2018
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Formal Aspects of Computing
- Vol. 30 (6) , 629-657
Abstract
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 methodology where test generation helps to identify the reason of a proof failure and to exhibit a counterexample clearly illustrating the issue. We define the categories of proof failures, introduce two subcategories of contract weaknesses (single and global ones), and examine their properties. We describe how to transform a C program formally specified in an executable specification language 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.Keywords
This publication has 40 references indexed in Scilit:
- Program Checking with Less HassleLecture Notes in Computer Science, 2014
- Efficient generation of restricted growth wordsInformation Processing Letters, 2013
- An Optimized Memory Monitoring for Runtime Assertion Checking of C Programs2013
- Integrating Testing and Interactive Theorem ProvingElectronic Proceedings in Theoretical Computer Science, 2011
- Counterexample-guided focusACM SIGPLAN Notices, 2010
- Compositional may-must program analysisACM SIGPLAN Notices, 2010
- Could We Have Chosen a Better Loop Invariant or Method Contract?Lecture Notes in Computer Science, 2009
- Finding Loop Invariants for Programs over Arrays Using a Theorem Prover2009
- Understanding Counterexamples with explain2004
- Counterexample-guided abstraction refinement for symbolic model checkingJournal of the ACM, 2003