PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
October 11, 2025Proceedings of the ACM on Programming Languages2 citationsOpen Access

Validating SMT Rewriters via Rewrite Space Exploration Supported by Generative Equality Saturation

View Full Paper
MSMaolin SunYYYibiao YangJWJiangchang Wu

Key Points

  • Aries identifies bugs in SMT solver rewrite systems, revealing 27 new issues through thorough validation efforts.
  • Utilizing mimetic mutation, the technique effectively reshapes input formulas to enhance rewrite opportunities and validation.
  • The approach leverages generative equality saturation to explore the rewrite space and produce semantically equivalent mutants.
  • The successful validation of rewrite systems in leading SMT solvers indicates the method's strong contribution to automated reasoning.

Abstract

Satisfiability Modulo Theories (SMT) solvers are widely used for program analysis and other applications that require automated reasoning. Rewrite systems, as crucial integral components of SMT solvers, are responsible for simplifying and transforming formulas to optimize the solving process. The effectiveness of an SMT solver heavily depends on the robustness of its rewrite system, making its validation crucial. Despite ongoing advancements in SMT solver testing, rewrite system validation remains largely unexplored. Our empirical analysis reveals that developers invest significant effort in ensuring the correctness and reliability of rewrite systems. However, existing testing techniques do not adequately address this aspect. In this paper, we introduce Aries, a novel technique designed to validate SMT solver rewrite systems. First, Aries employs mimetic mutation, a targeted strategy that actively reshapes input formulas to provoke and diversify rewrite opportunities. By aligning mutated terms with known rewrite patterns, Aries can conduct a thorough exploration of the rewrite space in the following phase. Second, Aries utilizes deductive rewriting, leveraging generative equality saturation to effectively explore rewrite space and produce semantically equivalent mutants for the purpose of validation. We implemented Aries as a practical validation tool and evaluated it on leading SMT solvers, including Z3 and cvc5. Our experiments demonstrate that Aries effectively identifies bugs, with 27 new issues detected, of which 22 have been confirmed or fixed by developers. Most of these issues involve the rewrite systems, highlighting Aries's strength in exploring the rewrite space.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Sun et al. (2025) studied this question.

synapsesocial.com/papers/68e9b1d9ba7d64b6fc132d37https://doi.org/10.1145/3763093
Ask AI
Helpful
Bookmark
Share
View Full Paper