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

On Benchmarking the Capability of Symbolic Execution Tools with Logic Bombs

Hui Xu, Zirui Zhao, Yangfan Zhou, Michael R. LyuarXiv 2017

Introduction

Symbolic execution (SE) has emerged as a cornerstone of automated software testing and vulnerability discovery. By treating program inputs as mathematical symbols, SE tools can systematically explore execution paths to find deep-seated bugs. However, the evaluation of these tools has traditionally relied on "macro" metrics, such as total code coverage or the number of bugs found in large-scale applications. While useful, these metrics fail to pinpoint the specific technical reasons why a tool might fail to explore a particular path. This paper addresses this gap by introducing a "micro" benchmarking approach using "logic bombs"—minimalist code snippets designed to isolate and test specific symbolic reasoning and path-exploration challenges.

The Need for Fine-Grained Benchmarking

Current benchmarking practices are often "noisy." A failure to find a bug in a 100,000-line program could stem from a variety of factors: solver timeouts, memory exhaustion, or an inability to model a specific language feature. Without isolating these variables, developers cannot easily identify which components of their SE engine require improvement.

Comparison of the proposed benchmark scope against previous literature across 12 technical challenges.

As shown in the comparison above, previous evaluation efforts have typically focused on a limited subset of challenges. This work systematizes 12 core challenges identified from a decade of SE literature, providing a more comprehensive landscape for tool assessment, including symbolic variable declarations and covert propagations.

Methodology: Logic Bomb Design

The authors propose a "unit test" philosophy for SE. The core of this approach is the Logic Bomb Dataset, which consists of over 60 small programs. Each program contains a "bomb"—a specific return value or crash—guarded by one of 12 technical challenges. These challenges are divided into two categories:

  1. Symbolic-reasoning challenges: These test the math engine's ability to handle complex data types and operations, such as floating-point numbers, symbolic jumps, and buffer overflows.
  2. Path-explosion challenges: These test the tool's ability to manage state space when faced with loops, cryptographic functions, or external library calls.
Examples of logic bombs (a-l) designed to test specific symbolic execution challenges like parallel execution and symbolic memory.

The figure above illustrates the minimalist design of these bombs. For instance, snippet (c) tests buffer overflows, while (k) focuses on loop handling. If a tool can generate an input that triggers the BOMB_ENDING, it is considered to have "passed" that specific challenge. The framework includes an automated pipeline to run these tests and verify the results by replaying generated inputs.

Key Results and Insights

The authors evaluated three prominent SE tools: KLEE, Angr, and Triton. The results revealed significant, often undocumented, limitations:

  • Angr emerged as the most capable, solving 21 out of 62 cases. It demonstrated strength in handling symbolic jumps and certain floating-point operations that could be simplified into integer logic.
  • KLEE solved 9 out of 62 cases. While its integration with the STP solver made it robust for symbolic memory (arrays and pointers), it struggled with assembly-level tricks and modern C++ features.
  • Triton solved only 3 cases, highlighting major gaps in its handling of external functions and complex data propagation (e.g., failing on basic functions like atoi).

Crucially, all tools failed on challenges involving symbolic variable declarations (e.g., inputs from getpid()), parallel executions (multi-threading), and cryptographic functions (e.g., SHA1).

Conclusion

By moving from macro to micro evaluation, this work provides a clearer diagnostic tool for SE developers. The findings suggest that even state-of-the-art tools struggle with fundamental challenges like environment modeling and complex data flows. Future work will focus on expanding the dataset to include nested challenges and developing continuous integration drivers to help prevent regressions in SE engine development.

Summary updated

BibTeX
@misc{xu2017benchmarking,
  author = {Hui Xu and Zirui Zhao and Yangfan Zhou and Michael R. Lyu},
  title = {{On Benchmarking the Capability of Symbolic Execution Tools with Logic Bombs}},
  year = {2017},
  eprint = {1712.01674},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1712.01674},
}
Figure