arXiv:2610.12649cs.SEOct 2026

Manuscript Offprint

arXiv:2610.12649

Quantifying SMT Solver Instability for Formal Verification

Daniel Evans, Rylie Hansen, John Shorter

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Program verification has become commonplace in software development projects, and much of its feasibility can be attributed to the potential of SMT solvers to automate model checking and other verification techniques. However, SMT instability, a phenomenon where semantically equivalent permutations of source code take much longer to solve or timeout, has been found to interrupt workflows and make software engineers more likely to avoid verification. Previous efforts to measure SMT instability have had difficulty quantifying it due to the abnormal runtime distributions it produces. In this paper, we use the coefficient of variation to model instability across an extensive dataset of SMT queries from three software domains. Our results show that SMT instability is significant in each area, and that it increases for queries that take longer on average. However, using a novel method to quantify instability, we show that a different approach is possible: if a solution were to optimize the structure of queries for runtime, rather than variance, instability could be mitigated while also improving overall solver performance.

Introduction

Satisfiable Modulo Theories (SMT) is a class of problems that seek to determine whether or not a solution to a formula exists. As an expressive method

*Copyright ©2022 by the Consortium for Computing Sciences in Colleges. Permission to copy without fee all or part of this material is granted provided that the copies are not made or distributed for direct commercial advantage, the CCSC copyright notice and the title of the publication and its date appear, and notice is given that copying is by permission of the Consortium for Computing Sciences in Colleges. To copy otherwise, or to republish, requires a fee and/or specific permission.

for representing formal logic problems, they are useful for software engineering tools such as model checkers, symbolic executors, and proof-oriented programming languages, which structure facts about software as SMT queries and solve them using programs called SMT solvers [1], [2]. Solving an SMT query is an NP-complete problem, and the solving process can be a time consuming step for formal verification tools; thus, many solvers use heuristics to navigate the solution space [3].

Heuristics make the problem more feasible, but they also introduce a phenomenon referred to as the butterfly effect, proof brittleness, or proof instability [4]. Small changes to source code or logically equivalent permutations to an SMT query can lead to significantly different runtimes for the solver [5]. This is a widely recognized problem in academia and large-scale software production because any small modification to a script—for example, editing a naming convention—has the potential to make verification intractable [6].

While the existence of proof instability has been well documented, the full scope of the problem is not well known, and most methods of mitigating it are either ad-hoc or incomplete [7]. In this work, we use the coefficient of variation (CV) and other statistical methods to quantify instability within an extensive benchmark study of 60,000 SMT query forms across three software domains. We find that instability is significant for complete samples, and our results provide strong evidence that instability continues to be a problem for distributions with timeouts. Finally, we demonstrate that intelligently mitigating instability—while optimizing for runtime—can reduce average solver runtime, a step toward addressing instability.