Modular verification of software components in C

Sagar Chaki, E. M. Clarke, Alex Groce, Sumit Kumar Jha, H. Veith

25th International Conference on Software Engineering, 2003. Proceedings. · 2003 · 130 citations · 14 references

Concepts

TL;DR

The paper proposes a new methodology for automatically verifying C programs against finite state machine specifications. The method decomposes verification into manageable subproblems using weak simulation, extracts finite models from C code via predicate abstraction and theorem proving, and checks conformance by reducing weak simulation to SAT, implemented in the tool MAGIC which integrates with existing theorem provers and SAT solvers. Experimental evaluation on Linux kernel, OpenSSL, and industrial benchmarks demonstrates the approach’s practicality.

Abstract

We present a new methodology for automatic verification of C programs against finite state machine specifications. Our approach is compositional, naturally enabling us to decompose the verification of large software systems into subproblems of manageable complexity. The decomposition reflects the modularity in the software design. We use weak simulation as the notion of conformance between the program and its specification. Following the counterexample guided abstraction refinement (CEGAR) paradigm, our tool MAGIC first extracts a finite model from C source code using predicate abstraction and theorem proving. Subsequently, weak simulation is checked via a reduction to Boolean satisfiability. MAGIC has been interfaced with several publicly available theorem provers and SAT solvers. We report experimental results with procedures from the Linux kernel, the OpenSSL toolkit, and several industrial strength benchmarks.

References

14