OptionFuzz: Fuzzing SMT Solvers with Optimized Option Exploration via Large Language Models
Abstract
Satisfiability Modulo Theory (SMT) solvers play a crucial role in various domains and applications. Therefore, ensuring their correctness and robustness becomes increasingly vital. Fuzzing is an efficient and effective method for validating the quality of SMT solvers, utilizing inputs that consist of solving formulas and configuration options. However, existing fuzzing methods focus solely on generating formulas or simply combining options and formulas, neglecting the complex interactions between options. Yet, randomly combining multiple options can lead to a combinatorial explosion and result in numerous invalid inputs. To overcome these limitations, we propose OptionFuzz, a fuzzer that optimizes option exploration by identifying relationships between solver options, reducing invalid inputs and mitigating combinatorial explosion. OptionFuzz identifies option relationships using large language models (LLMs), which analyze official documentation of options. These identified relationships are transformed to a relation graph, enabling efficient traversal to derive related option combinations and generate high-quality fuzz inputs. To evaluate OptionFuzz's effectiveness, we conduct comprehensive evaluations on two state-of-the-art SMT solvers, Z3 and CVC5. OptionFuzz demonstrates its effectiveness by accurately extracting option relationships with an accuracy of <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$\mathbf{9 5. 2 3 \%}$</tex> and a recall rate of <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$\mathbf{9 0. 1 0 \%}$</tex>. Leveraging these relationships, OptionFuzz reduces the number of options combinations to be tested by <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$\mathbf{7 0. 1 1 \%}$</tex>. Notably, OptionFuzz has detected <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$\mathbf{3 4}$</tex> unique bugs, 20 of which have been fixed by developers, and 5 have been assigned CVE IDs due to their severity.
BibTeX
@misc{peng2025optionfuzz,
author = {Yong Peng and Jingzheng Wu and Xiang Ling and Zhiyuan Li and Tianyue Luo and Yanjun Wu},
title = {{OptionFuzz: Fuzzing SMT Solvers with Optimized Option Exploration via Large Language Models}},
year = {2025},
doi = {10.1109/icsme64153.2025.00032},
}Ask Althea to put this paper to the test.
Loading related content...