NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Abstraction-driven Concolic Testing

Przemyslaw Daca, Ashutosh Gupta, Thomas A. Henzinger

TL;DR

Researchers have developed a way to "supercharge" concolic testing by using model checking to provide a global map of a program's logic. By iteratively building a "monitor" that prunes away impossible execution paths, their tool, CRABS, achieves significantly higher code coverage on complex software than traditional testing methods alone.

What Problem Does This Paper Address?

Ensuring software reliability often requires high "code coverage"—executing as many branches and statements as possible during testing. This is especially critical for safety-standard certifications like those in avionics.

Currently, engineers rely on two main automated approaches, both of which have flaws:

  1. Concolic Testing: This combines concrete execution (running the code with real inputs) and symbolic execution (treating inputs as variables to solve for new paths). While it scales well to large programs, it suffers from path explosion. It has a "local view," blindly exploring exponentially many paths and often getting stuck in deep loops or complex logic.
  2. Model Checking (CEGAR): This uses mathematical abstractions to explore programs exhaustively. It has a "global view" and can prove certain parts of a program are unreachable, but it often fails to scale to large, complex programs because maintaining high precision becomes too computationally expensive.

The authors ask: Can we use the "global map" provided by a model checker to guide a concolic tester toward difficult-to-reach code?

Methods

The authors introduce a novel framework called Abstraction-driven Concolic Testing, implemented in a tool named CRABS (built on top of the CREST tester and the CpaChecker model checker).

The core of their method is an iterative loop:

  • Phase 1: Concolic Testing. Run a standard concolic tester for a set time budget to cover "easy" goals.
  • Phase 2: Abstraction Refinement. If goals remain, the model checker analyzes the program. It builds an Abstract Reachability Graph (ARG)—a simplified map of all possible program executions.
  • Phase 3: Monitor Construction. This is the "secret sauce." The tool converts the model checker's ARG into a monitor. This monitor is essentially a refined version of the program's control-flow graph that explicitly encodes which paths are proven to be infeasible.
  • Phase 4: Guided Testing. The concolic tester is then run on a "product" of the original program and the monitor. Because the monitor has pruned away dead ends and impossible paths, the tester is forced to spend its time exploring paths that might actually reach the remaining uncovered goals.
A simple program (a) and its standard control-flow graph (b). Standard testers often get stuck in the loop at node 2, failing to reach the 'foo()' call at node 8.

Datasets

The authors evaluated CRABS against several benchmarks:

  • Hand-crafted examples: Small programs designed to trip up standard search heuristics (e.g., "simple-while", "branches").
  • nsichneu: A complex benchmark that simulates a Petri net, characterized by a massive number of if-then-else statements inside a loop—a nightmare for most testing tools.
  • SV-COMP Benchmarks: Real-world-style benchmarks from the Competition on Software Verification, including device driver components (ddv-machzwd) and system utilities (parport, cdaudio1).

Key Insights and Ideas

  • Global vs. Local: The main insight is that testing is a "local" search that needs a "global" map. By using a model checker to provide that map (the monitor), the tester avoids wasting time on "spurious" paths that can never reach a goal.
  • Pruning the Search Space: The monitor doesn't just find one path; it proves that entire regions of the program's execution space are irrelevant to the current testing goals.
  • The Power of Alternation: The tool is highly configurable. You can adjust the ratio of time spent on model checking versus testing. As shown in Figure 3, there is a "sweet spot" (around 70-80% testing time) where coverage is maximized.
The relationship between the time ratio (testing vs. model checking) and the resulting code coverage.

Key Results

CRABS consistently outperformed standard concolic testing and bounded model checking:

  • Significant Coverage Boost: On the difficult "nsichneu" benchmark, CRABS improved branch coverage from 48% (using standard CREST) to 63%.
  • SV-COMP Success: On a suite of 13 device driver benchmarks, CRABS achieved an average coverage of 71%, compared to 66% for standard concolic testing.
  • Proving Unreachability: Unlike pure testing tools, CRABS can actually prove that certain code branches are mathematically impossible to reach, allowing developers to stop searching for tests that don't exist.
The refined abstraction (a) and the resulting monitor (b) that guides the tester. The dashed lines in (a) show how the model checker groups similar program states to simplify the search.

Limitations and Future Work

  • Sensitivity to Optimizations: The method is highly dependent on the specific optimizations used in the model checker. For example, "lazy abstraction" can sometimes lead to less precise monitors in later iterations, which can stall progress.
  • Tool Integration: Currently, the communication between the tester and the model checker is via the monitor. The authors suggest that deeper, more "synergistic" integration—where the tools share internal heuristics in real-time—could further improve performance.
  • Array Handling: The current implementation struggled with large arrays in some benchmarks, requiring manual preprocessing to replace them with individual variables. Improving automated array abstraction is a clear next step.

Summary updated

BibTeX
@inproceedings{daca2016abstraction,
  author = {Przemyslaw Daca and Ashutosh Gupta and Thomas A. Henzinger},
  title = {{Abstraction-driven Concolic Testing}},
  booktitle = {VMCAI},
  year = {2016},
  doi = {10.1007/978-3-662-49122-5\_16},
}
Figure