Bounded Model Checking by Unrolling

Translate a finite counterexample search into a constraint problem and interpret both a satisfying model and an unsatisfiable result.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Separate state copies by time
  2. The bound controls the claim

Separate state copies by time

For an initial predicate \(I\), transition \(T\) and undesirable predicate \(B\), a path of exactly \(k\) steps to a bad state is encoded by

\[ I(s_0)\land\bigwedge_{i<k}T(s_i,s_{i+1})\land B(s_k). \]

One satisfying assignment lists a concrete state sequence. To check all shorter lengths, query those bounds or use an encoding that can end at any step through the bound. Simply checking the final state in a system with dead ends can miss a shorter counterexample.

The bound controls the claim

Unsatisfiability excludes paths at the lengths represented. A complete claim needs a completeness threshold, induction, or a separate argument. For a modulo-eight counter initialized to zero and incremented by one, state seven cannot appear before step seven, even though it is reachable. Explicit-state exploration can compute all reachable states in this small example. Symbolic unrolling is useful when listing all states is costly.[1][2]

References

  1. Armin Biere et al., Symbolic Model Checking without BDDs ↩
  2. Benjamin C. Pierce et al., Software Foundations ↩