Skip to main content

Artigo em periódicoOpen Access

Verification and refutation of C programs based on k-induction and invariant inference

ALHAWI, OMAR M.2020ALHAWI, OMAR M.; ROCHA, HERBERT; GADELHA, MIKHAIL R.; CORDEIRO, LUCAS C.; BATISTA, EDDIE

2020 • International Journal on Software Tools for Technology Transfer • 14 citações

Resumo

Resumo

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 BMC and k -induction for software verification, in the following ways. (1) The proposed method outperforms the existing implementations that use k -induction with an interval-invariant 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.

Autoria

Autores do grupo (1)

A lista completa de autores está no topo da página. Abaixo, apenas os pesquisadores do e-Controls vinculados a esta publicação.

palavras-chave

Palavras-chave

k-inductioninvariant inferencebounded model checkingC program verificationsafety propertiesESBMCmultithreaded programsloop invariantsconcurrency safetyembedded softwareproperty directed reachabilitySMT-based model checking

Volume

23

Número

2

Páginas

115-135

Editora

Springer Science and Business Media LLC

Status

Published

links

Artigo em periódico