Experiments with SAT-Based Symbolic Simulation Using Reparameterization in the Abstraction Refinement Framework

Pankaj Chauhan, Edmund M. Clarke, Daniel Kroening2004

TL;DR

This paper explores a novel approach to verifying large industrial circuits by replacing the standard Bounded Model Checking (BMC) step in abstraction refinement with a SAT-based symbolic simulator. This aims to overcome the state-space explosion problem inherent in BMC, showing significant performance improvements and enabling the verification of larger circuits.

What Problem Does This Paper Address?

Verifying the safety of complex digital circuits is crucial for their reliability. Model checking is a powerful technique for this, but it struggles with the sheer size of modern circuits, leading to a "state-space explosion." Abstraction refinement (specifically, Counterexample Guided Abstraction Refinement or CEGAR) is a common strategy to tackle this. CEGAR works by creating a simplified "abstract" model of the circuit, verifying properties on it, and then refining the abstraction if a potential error (a "counterexample") is found.

However, a bottleneck in existing CEGAR frameworks is the step where they try to validate a counterexample found on the abstract model against the original, unabstracted circuit. This validation typically uses SAT-based Bounded Model Checking (BMC). The problem is that BMC unwinds the circuit for a certain number of steps (the length of the counterexample), and this unwound model can still be prohibitively large, especially for industrial circuits. This paper addresses this simulation bottleneck by proposing a more efficient alternative.

Methods

The core innovation is replacing the SAT-based BMC step with a SAT-based symbolic simulator that employs reparameterization.

Here's a breakdown:

  • Symbolic Simulation: Instead of concrete values, symbolic simulation uses symbolic representations (like Boolean functions) to track the possible states of the circuit. This allows it to handle multiple states simultaneously.
  • Reparameterization: As symbolic simulation progresses, the complexity of the symbolic representations can grow exponentially. Reparameterization is a technique to simplify these representations by finding a new, equivalent parametric form that uses fewer variables. This is crucial for keeping the simulation manageable.
  • SAT-Based Approach: The reparameterization process itself is driven by SAT solvers. This allows for efficient manipulation and simplification of the symbolic equations.
  • Integration into CEGAR: This SAT-based symbolic simulation with reparameterization is plugged into the existing CEGAR framework as a replacement for the BMC step used for counterexample validation. When a counterexample is found on the abstract model, the symbolic simulator is used to trace it on the concrete model. If the simulation fails, it indicates a spurious counterexample, and the CEGAR loop continues to refine the abstraction.

The paper also discusses how to compute fixed points by introducing self-loops into the transition relation, allowing the symbolic simulator to find states reachable in k or fewer steps, which is important for certain types of properties.

Datasets

The paper evaluates its approach on a set of industrial circuits. These are categorized into:

  • D and M series: Processor benchmarks.
  • IU circuits: Models of the picoJava microprocessor.
  • ISCAS89 sequential benchmarks: A standard suite of benchmark circuits.

The D, M, and IU series circuits come with pre-defined properties. For the ISCAS89 circuits, the authors used random simulation to infer reasonable properties.

Key Insights and Ideas

  • Symbolic Simulation as a BMC Replacement: The primary insight is that symbolic simulation, particularly with efficient reparameterization, can be a more scalable alternative to BMC for validating counterexamples in CEGAR.
  • Addressing the Capacity Problem: The paper demonstrates that the symbolic simulator, by avoiding the explicit unwinding of the entire circuit for each simulation step, can overcome the memory and time limitations that plague BMC on large instances.
  • Reparameterization Quality: While reparameterization helps manage complexity, it can lead to a loss of some refinement information from earlier simulation steps. The paper investigates whether this loss significantly impacts the quality of refinement, finding it to be "insignificant for most circuits" but a problem in a few cases.
  • Trade-offs in Refinement: The new technique doesn't always outperform the old. In some cases, the quality of refinement information extracted from the truncated simulation (due to reparameterization) is lower, leading to worse performance or even failure to verify. This suggests a need for users to choose between techniques.

Key Results

The experimental results show significant performance improvements for the SAT-based symbolic simulation approach compared to the traditional SAT-based BMC approach in CEGAR.

  • Speedup: For many circuits, the "sim. time" (time spent in simulation) is drastically reduced. For example, circuit D19 shows a reduction from 4348 to 1329 seconds.
  • Enabling Verification: The new technique successfully verified circuits (like IUp1 and IUp3) that timed out or exceeded memory limits with the BMC-based approach.
  • Mixed Results: For some medium-sized circuits (M3 and M4), the new approach performed worse. This was attributed to issues with BDD variable ordering derived from the new refinement information, and in one case, the abstract model checking timing out.
  • Refinement Iterations: The number of refinement iterations (# refn) was often comparable or sometimes slightly higher with the new method, but the overall time was still reduced due to faster simulation.
  • Reparameterizations: The number of reparameterizations (# rep) varied, indicating the dynamic nature of managing symbolic representation complexity.

Limitations and Future Work

  • Refinement Information Quality: The paper acknowledges that reparameterization can lead to a loss of refinement information, which can negatively impact performance on certain circuits. This is a key limitation.
  • No Clear Dominance: The authors conclude that the new technique is not "clearly dominant" over the old one, and users should have a choice.
  • Future Work:
    • Investigate criteria to predict when each simulation technique will be more successful.
  • Develop automated ways to decide which technique to use.
  • Explore the performance impact of different refinement algorithms.
  • The fixed-point computation extension is theoretically sound but found to be too expensive in practice for the circuits tested due to large diameters.

Summary updated

Abstract

This paper presents experimental results on the performance effect of using symbolic simulation with SAT-based reparametrization within the Counterexample Guided Abstraction Refinement framework.Abstraction refinement has been applied successfully to prove safety properties of large industrial circuits.However, all existing abstraction refinement frameworks simply use SAT-based Bounded Model Checking (BMC) to refute the property.The model used for the BMC instance is not abstracted, and thus is susceptible to the state space explosion problem.We address this issue by using a symbolic simulator with a SAT-based reparametrization algorithm as a replacement for BMC within the abstraction refinement framework.The reparametrization is performed as soon as the equations maintained by the symbolic simulator become too large.We discuss the quality of the refinement information that is extracted from the symbolic simulator.
BibTeX
@misc{chauhan2004experiments,
  author = {Pankaj Chauhan and Edmund M. Clarke and Daniel Kroening},
  title = {{Experiments with SAT-Based Symbolic Simulation Using Reparameterization in the Abstraction Refinement Framework}},
  year = {2004},
  doi = {10.21236/ada457878},
}
Figure