Introduction
Satisfiability Modulo Theories (SMT) solvers are essential components in formal verification, used to prove the correctness of hardware circuits, smart contracts, and complex software systems. However, their internal complexity—often involving hundreds of thousands of lines of code—makes ensuring absolute correctness a significant challenge.
While traditional "input fuzzing" using randomized textual files (SMT-LIBv2) is a common bug-finding technique, it often misses bugs reachable only through the Application Programming Interface (API). Many developers integrate solvers directly into their tools via APIs, which can expose internal configurations and edge cases that textual interfaces cannot. Murxla is a modular, solver-agnostic API fuzzer designed to address this gap by generating valid sequences of API calls, successfully identifying over 100 new issues in state-of-the-art solvers like cvc5 and Bitwuzla.
Architecture and Methodology
Murxla employs model-based API fuzzing. Instead of generating random strings, it uses a model of the SMT-LIB standard to ensure it produces semantically valid sequences of operations. Its architecture is built around several key components:
- Weighted Finite State Machine (FSM): Murxla represents the solver's state (e.g., "Start," "Asserting," "Checking") as an FSM. Transitions between states represent API calls like
assertorcheck-sat. Weights allow developers to tune the frequency of specific actions to target different code paths. - Generation-based Approach: Unlike mutational fuzzers that modify existing files, Murxla builds expressions from the ground up, ensuring they respect the complex type systems (sorts) of SMT theories.
- Modular Wrappers: To maintain solver-agnosticism, Murxla uses a "Generic Solver API." Supporting a new solver requires only a small "wrapper" (typically 2k–4k lines of code) to map generic calls to the solver's specific API.
- Trace Minimizer: When a crash is detected, Murxla uses a "delta-debugging" tool to automatically shrink massive logs into the smallest possible sequence of calls that still triggers the bug, significantly reducing the manual effort required for debugging.
Evaluation and Key Results
The authors evaluated Murxla against four major SMT solvers: Bitwuzla, Boolector, cvc5, and Yices2.
Comparative Performance
In a head-to-head test on string problems (QF_SLIA), Murxla found 8 issues in cvc5, while state-of-the-art textual fuzzers like STORM and TypeFuzz found none. This highlights the unique capability of API fuzzing to reach deeper code paths.
The Power of Option Fuzzing
One of Murxla's most effective techniques is "option fuzzing" — randomly toggling internal solver heuristics, such as different bit-blasting strategies or rewrite rules. Enabling this feature increased Bitwuzla’s function coverage from 63.9% to 75.8% and tripled the number of issues discovered.
Real-World Impact
During its development, Murxla identified over 100 issues in cvc5 alone, many of which were critical soundness bugs where the solver provided incorrect answers. The automated trace minimizer proved highly efficient, reducing complex crash traces to less than 10% of their original size.
Conclusion and Future Work
Murxla demonstrates that modular API fuzzing is a powerful tool for improving the reliability of SMT solvers. While currently supporting four solvers, the framework's modularity allows for future expansion to others like Z3 or OpenSMT2. Future development will focus on expanding theory support (e.g., SyGuS), verifying formal proofs, and integrating Murxla into the continuous integration (CI) pipelines of major solvers to catch bugs as they are introduced.
Summary updated