Skip to main content
QUICK REVIEW

[Paper Review] Software Model Checking via Large-Block Encoding

Dirk Beyer, Alessandro Cimatti|ArXiv.org|Apr 29, 2009
Formal Methods in VerificationComputer Science11 references88 citations
TL;DR

This paper proposes large-block encoding (LBE) as a symbolic model checking technique that replaces single-block program transitions with larger, summarized program fragments, drastically reducing the number of paths explored in the abstract reachability tree (ART). By leveraging SMT solvers for symbolic successor computation with Boolean predicate abstraction, LBE achieves exponential reductions in ART size and outperforms traditional single-block encoding (SBE) and state-of-the-art tools like Blast in both performance and scalability.

ABSTRACT

The construction and analysis of an abstract reachability tree (ART) are the basis for a successful method for software verification. The ART represents unwindings of the control-flow graph of the program. Traditionally, a transition of the ART represents a single block of the program, and therefore, we call this approach single-block encoding (SBE). SBE may result in a huge number of program paths to be explored, which constitutes a fundamental source of inefficiency. We propose a generalization of the approach, in which transitions of the ART represent larger portions of the program; we call this approach large-block encoding (LBE). LBE may reduce the number of paths to be explored up to exponentially. Within this framework, we also investigate symbolic representations: for representing abstract states, in addition to conjunctions as used in SBE, we investigate the use of arbitrary Boolean formulas; for computing abstract-successor states, in addition to Cartesian predicate abstraction as used in SBE, we investigate the use of Boolean predicate abstraction. The new encoding leverages the efficiency of state-of-the-art SMT solvers, which can symbolically compute abstract large-block successors. Our experiments on benchmark C programs show that the large-block encoding outperforms the single-block encoding.

Motivation & Objective

  • To address the scalability bottleneck in software model checking caused by the explosion of program paths in single-block encoding (SBE).
  • To reduce the number of abstract reachability tree (ART) nodes by summarizing larger program fragments into single transitions.
  • To improve efficiency by replacing explicit path enumeration with symbolic successor computation using SMT solvers.
  • To evaluate the trade-off between Boolean abstraction (precise but expensive) and Cartesian abstraction (efficient but less precise) in the context of large-block encoding.
  • To demonstrate that symbolic, large-block analysis can outperform traditional, path-based model checking in practice.

Proposed method

  • Large-block encoding (LBE) summarizes sequences of program operations into single transitions in the ART, reducing the number of paths to explore.
  • Abstract states are represented using arbitrary Boolean combinations of predicates, not just conjunctions, to capture complex relationships across large code blocks.
  • Symbolic successor computation is performed using Boolean predicate abstraction, enabling the SMT solver to compute successors over entire code blocks.
  • The approach leverages SMT solvers to perform efficient symbolic reasoning over large program fragments, avoiding explicit enumeration of paths.
  • The method integrates interpolation and predicate abstraction techniques to refine abstractions only when necessary, supporting incremental verification.
  • The implementation uses CPAchecker as a foundation, comparing LBE against SBE and Blast using standard C program benchmarks.

Experimental results

Research questions

  • RQ1Can summarizing larger program fragments into single transitions reduce the size of the abstract reachability tree (ART) and improve scalability?
  • RQ2Does symbolic successor computation using Boolean predicate abstraction over large blocks outperform traditional Cartesian abstraction in SBE?
  • RQ3Can LBE achieve significant performance improvements over SBE and state-of-the-art tools like Blast in verifying both correct and buggy programs?
  • RQ4To what extent does the use of SMT solvers mitigate the exponential blowup in path enumeration seen in SBE?
  • RQ5How does the trade-off between abstraction precision and computational cost manifest in LBE versus SBE?

Key findings

  • LBE reduced the number of ART nodes to a constant, even in deeply nested conditional structures, while SBE exhibited exponential growth in node count.
  • In the presence of nested conditionals, SBE timed out on 14 out of 24 benchmarks, while LBE solved all 24 within reasonable time.
  • For the s3_srvr benchmark suite, LBE solved all 16 benchmarks with a total time of 188.67 seconds, while SBE solved only 10 out of 16, with a total time of 5747.10 seconds.
  • LBE outperformed the best Blast configuration (using -dfs -predH 7) on all benchmarks, solving all 24 safe and 16 buggy programs where Blast failed or was significantly slower.
  • The LBE approach achieved exponential reduction in ART size due to summarization, avoiding the path explosion problem inherent in SBE.
  • Despite the higher cost of Boolean abstraction, the reduction in the number of successor computations made LBE significantly more efficient overall than SBE.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.