arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.10434cs.LO
收藏

SMT求解器中与位宽无关的证明

Towards Bit-Width-Independent Proofs in SMT Solvers

Aina Niemetz, Mathias Preiner, Andrew Reynolds, Yoni Zohar, Clark Barrett, Cesare Tinelli

摘要:

许多SMT求解器实现了有效的基于SAT的过程来求解固定大小的位向量公式。然而,这些方法不能直接用于推理符号位宽的位向量。为了解决这个缺点,我们提出了一个翻译从位向量公式的非固定位宽的公式在逻辑支持SMT求解器,包括非线性整数运算,未解释的功能,和通用量化。虽然这种逻辑是不可判定的,但这种方法仍然可以通过利用SMT解决非线性算术和通用量化公式的进步来解决许多公式。我们提供了几个案例研究中,我们已经应用这种方法与有前途的结果,包括位宽独立的可逆性条件,编译器优化,位向量重写验证。

英文摘要:

Many SMT solvers implement efficient SAT-based procedures for solving fixed-size bit-vector formulas. These approaches, however, cannot be used directly to reason about bit-vectors of symbolic bit-width. To address this shortcoming, we propose a translation from bit-vector formulas of non-fixed bit-width to formulas in a logic supported by SMT solvers that includes non-linear integer arithmetic, uninterpreted functions, and universal quantification. While this logic is undecidable, this approach can still solve many formulas by capitalizing on advancements in SMT solving for non-linear arithmetic and universally quantified formulas. We provide several case studies in which we have applied this approach with promising results, including the bit-width independent verification of invertibility conditions, compiler optimizations, and bit-vector rewrites.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑