paperbot · PL 论文追踪

全部论文 待读 收藏

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

通过生成式等式饱和支持的改写空间探索验证 SMT 重写器
OOPSLA 9(OOPSLA2)2025匹配度 3/10 · 该论文关注 SMT 求解器重写系统的验证与缺陷发现,属于形式化方法与程序分析基础设施,但与用户画像中 LLM/Agent 与静态分析/形式化验证的交叉、浮点程序分析、贝叶斯程序分析等核心方向无直接关联。引用 2 inbox
Maolin Sun, Yibiao Yang, Jiangchang Wu, Yuming Zhou
crossref: 2026-09-10

AI 速览

一句话:提出 Aries,用拟态变异与生成式等式饱和探索 SMT 重写空间,验证重写系统并发现真实缺陷。

SMT 求解器广泛用于程序分析等自动推理任务,其重写系统负责简化与变换公式,对求解性能至关重要,但重写系统验证长期缺乏专门测试技术。本文提出 Aries:首先采用拟态变异,针对性地重塑输入公式,使其匹配已知重写模式,从而触发并多样化重写机会;随后利用演绎重写,借助生成式等式饱和探索重写空间,并生成语义等价的变异体用于验证。作者实现工具并在 Z3、cvc5 等主流求解器上评估,发现 27 个新问题,其中 22 个已被确认或修复,且多数涉及重写系统,表明该方法能有效探索重写空间并暴露真实缺陷。

问题
SMT 求解器的重写系统对求解效果至关重要,但其正确性验证仍是测试研究的空白,现有技术不足以充分检验重写系统。
方法
提出 Aries,通过拟态变异重塑输入公式以触发多样化重写机会,并利用生成式等式饱和进行演绎重写,探索重写空间并生成语义等价变异体。
评估
在 Z3、cvc5 等主流 SMT 求解器上实现并评估 Aries,发现 27 个新问题,其中 22 个已被开发者确认或修复,多数涉及重写系统。
原文摘要(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.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot2974,
  title = {Validating SMT Rewriters via Rewrite Space Exploration Supported by Generative Equality Saturation},
  author = {Maolin Sun and Yibiao Yang and Jiangchang Wu and Yuming Zhou},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {OOPSLA2},
  year = {2025},
  doi = {10.1145/3763093}
}