Model Checking Embedded C Software Using k-Induction and Invariants

  • Herbert Rocha UFRR
  • Hussama Ismail UFRR
  • Lucas Cordeiro UFRR
  • Raimundo Barreto UFRR

Resumo


We present a proof by induction algorithm, which combines k-induction with invariants to model check embedded C software with bounded and unbounded loops. The k-induction algorithm consists of three cases: in the base case, we aim to find a counterexample with up to k loop unwindings, in the forward condition, we check whether loops have been fully unrolled and that the safety property ø holds in all states reachable within k unwindings, and in the inductive step, we check that whenever ø holds for k unwindings, it also holds after the next unwinding of the system. For each step of the k-induction algorithm, we infer invariants using affine constraints (i.e., polyhedral) to specify pre-and post-conditions. Experimental results show that our approach can handle a wide variety of safety properties in typical embedded software applications from telecommunications, control systems, and medical devices, we demonstrate an improvement of the induction algorithm effectiveness if compared to other approaches.
Palavras-chave: Safety, Software algorithms, Model checking, Software, Computer bugs, Hardware, Algorithm design and analysis, Model Checking, C Program, k-Induction, Invariants
Publicado
03/11/2015
ROCHA, Herbert; ISMAIL, Hussama; CORDEIRO, Lucas; BARRETO, Raimundo. Model Checking Embedded C Software Using k-Induction and Invariants. In: SIMPÓSIO BRASILEIRO DE ENGENHARIA DE SISTEMAS COMPUTACIONAIS (SBESC), 5. , 2015, Foz do Iguaçu/PR. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2015 . p. 708-797. ISSN 2237-5430.