Skip to content
Preprint

Metamorphic Testing for Floating-Point Performance Issues in SMT Solvers

Sep 2026 · 0 citations · 35 references
Computer Science

TL;DR

A metamorphic testing approach that uses semantics-preserving rewrite rules, focusing on floating-point special values and peep-hole optimizations, to uncover meaningful performance issues in SMT solvers' handling of floating-point formulas is proposed.

Abstract

SMT solvers are essential in various domains, including program verification and synthesis. Although their correctness and performance have been extensively studied, performance testing for the floating-point theory remains limited, particularly for real-world queries. We propose a metamorphic testing approach that uses semantics-preserving rewrite rules, focusing on floating-point special values and peep-hole optimizations, to uncover meaningful performance issues in SMT solvers'handling of floating-point formulas. Using real-world test inputs, our approach is able to identify for every solver tested SMT queries for which solving time increases when the queries are simplified; we see slowdowns of up to 33.4x for Z3, 5.6x for MathSAT, 4.5x for cvc5, and 1.8x for Bitwuzla. We further observe that the approach is less successful when using input files that were randomly generated from a grammar.

View source

Similar papers

Book Open access Oct 2026

Numerical Abstract Domains for Trustworthy Code Transpilation (Keynote)

A retrospective on numerical abstract domains developed to soundly reason about floating-point semantics is presented, tracing the evolution from interval abstractions to richer domains, such as zonotopes and floating-point polyhedra, and explores how these static analyses can be incorporated into LLM-based code transp...

Laura Titolo · 0 citations
Preprint Oct 2026

Quantifying SMT Solver Instability for Formal Verification

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...

Daniel Evans, Rylie Hansen, John Shorter · 0 citations
Sep 2026

A Deeper Look at Depth: Stable Generation Accounting for Quantifier Reasoning

SMT solvers make automated verification convenient. At the same time, solvers suffer from instability, whereby seemingly inconsequential changes to the input may cause a previously quickly produced proof to fail or time out. This paper addresses a common cause of outcome instability (i.e., unsat/unknown fluctuations) i...

Can Cebeci, Nikolaj S. Bjørner, George Candea et al. · 1 citation
#software testing Open access Oct 2026

Random Testing via Runtime Abstract Interpretation

A lightweight form of constraint solving and propagation that enables randomized testing of programs with complex preconditions is obtained, and a generator DSL whose monadic semantics are parametric over abstract domains is formalized.

Zain K. Aamer, Benjamin C. Pierce · 1 citation
#artificial intelligence Preprint Sep 2026

SOVER: Formal Certification of Optimization Reformulations via LLM-Assisted SMT Verification

SOVER, an LLM-assisted SMT framework that separates semantic mapping from formal certification, is introduced, and Z3 checks domain cross-feasibility and global objective-order preservation for mixed-integer linear formulations, while dReal provides tolerance-aware feasibility/range and $\epsilon$-argmin checks for con...

Swapnil Bhattacharyya, Mayank Baranwal · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.