Software Engineering
Researchers quantify SMT solver instability problem in program verification
A new study measures inconsistent performance in SMT solvers and proposes query optimization as a path forward.
Program verification tools have become essential across software development, largely thanks to SMT solvers that automate model checking and other verification tasks. But these solvers suffer from a vexing problem: semantically identical code written in different ways can take vastly different amounts of time to verify, sometimes timing out entirely. This unpredictability disrupts developer workflows and discourages engineers from using verification tools.
The instability problem#
The phenomenon, known as SMT instability, has been difficult to measure precisely. Unlike most runtime variations that follow predictable distributions, SMT solver performance produces unusual patterns that resist conventional analysis. This has hampered efforts to understand just how widespread and serious the problem is.
New measurement approach#
Researchers from the arXiv cs.SE community analyzed SMT instability across a large dataset of queries from three different software domains. Rather than relying on standard statistical methods, they applied the coefficient of variation—a normalized measure of spread—to quantify instability in a way that accounts for the solver's irregular performance characteristics.
Key findings#
Their analysis reveals that SMT instability is pervasive across all three domains studied. More concerning, the instability grows worse as queries become more computationally demanding, meaning the most difficult verification problems are also the least predictable.
Path forward#
The researchers propose an alternative strategy: instead of optimizing query structure primarily for speed, systems could prioritize restructuring queries to reduce runtime variance. Early evidence suggests this approach could simultaneously lower instability and boost overall solver performance, offering a promising avenue to make program verification more reliable and accessible to developers.