Skip to main navigation Skip to search Skip to main content

Verification and Refutation of C Programs based on k-Induction and Invariant Inference

  • Omar Alhawi
  • , Herbert Rocha
  • , Mikhail R Gadelha
  • , Lucas Cordeiro
  • , Eddie Batista
  • Federal University of Roraima
  • SIDIA Instituto de Ciência e Tecnologia
  • TP Vision

Research output: Contribution to journalArticlepeer-review

Abstract

DepthK is a source-to-source transformation tool that employs bounded model checking (BMC) to verify and falsify safety properties in single- and multi-threaded C programs, without manual annotation of loop invariants. Here, we describe and evaluate a proof-by-induction algorithm that combines k-induction with invariant inference to prove and refute safety properties. We apply two invariant generators to produce program invariants and feed these into a k-induction-based verification algorithm implemented in DepthK, which uses the efficient SMT-based context-bounded model checker (ESBMC) as sequential verification back-end. A set of C benchmarks from the international competition on software verification (SV-COMP) and embedded-system applications extracted from the available literature are used to evaluate the effectiveness of the proposed approach. Experimental results show that k-induction with invariants can handle a wide variety of safety properties, in typical programs with loops and embedded software applications from the telecommunications, control systems, and medical domains. The results of our comparative evaluation
extend the knowledge about approaches that rely on both BMCand k-induction for software verification, in the following ways. (1) The proposed method outperforms the existing implementations that use k-induction with an intervalinvariant generator (e.g., 2LS and ESBMC), in the category ConcurrencySafety, and overcame, in others categories, such as SoftwareSystems, other software verifiers that use plain BMC (e.g., CBMC). Also, (2) it is more precise than other verifiers based on the property-directed reachability (PDR) algorithm (i.e., SeaHorn, Vvt and CPAchecker-CTIGAR).
This way, our methodology demonstrated improvement over existing BMC and k-induction-based approaches.
Original languageEnglish
Pages (from-to)115-135
JournalInternational Journal on Software Tools for Technology Transfer
Volume23
DOIs
Publication statusPublished - 18 May 2020

Fingerprint

Dive into the research topics of 'Verification and Refutation of C Programs based on k-Induction and Invariant Inference'. Together they form a unique fingerprint.

Cite this