通过强Gröbner基求解等式位向量问题
Equational Bit-Vector Solving via Strong Gröbner Bases
AI总结:
本文利用强Gröbner基刻画位向量模算术的代数性质,改进乘法逆元计算并解决量化等式性质中的不变式生成问题,实验证明其在时间和内存上优于现有SMT求解方法。
摘要:
位向量是有限比特数内的整数,广泛存在于软件和硬件系统中。本文研究位向量的可满足性模理论(SMT)。与普通整数不同,位向量的算术在整数溢出时具有模运算性质。因此,位向量的SMT求解需要处理底层的模算术。现有文献中,两种主要的SMT求解方法是位爆炸(将SMT问题转化为布尔可满足性问题)和整数求解(将SMT问题转化为整数性质问题)。这两种方法都忽略了模算术的代数性质,因而无法利用这些性质来提高SMT求解的效率。本文考虑位向量的等式理论,并通过强Gröbner基刻画其背后的代数性质。首先,我们将强Gröbner基应用于位向量的无量词等式理论,并在模2的幂的乘法逆元这一关键计算中提出了一种新的算法改进。其次,我们通过强Gröbner基和线性同余求解,解决了量化等式位向量性质中不变式生成这一重要情形。在大量基准上的实验结果表明,我们的方法在时间效率和内存消耗方面均优于现有方法。
英文摘要:
Bit-vectors, which are integers in a finite number of bits, are ubiquitous in software and hardware systems. In this work, we consider the satisfiability modulo theories (SMT) of bit-vectors. Unlike normal integers, the arithmetics of bit-vectors are modular upon integer overflow. Therefore, the SMT solving of bit-vectors needs to resolve the underlying modular arithmetics. In the literature, two prominent approaches for SMT solving are bit-blasting (that transforms the SMT problem into boolean satisfiability) and integer solving (that transforms the SMT problem into integer properties). Both approaches ignore the algebraic properties of the modular arithmetics and hence could not utilize these properties to improve the efficiency of SMT solving. In this work, we consider the equational theory of bit-vectors and capture the algebraic properties behind them via strong Gröbner bases. First, we apply strong Gröbner bases to the quantifier-free equational theory of bit-vectors and propose a novel algorithmic improvement in the key computation of multiplicative inverse modulo a power of two. Second, we resolve the important case of invariant generation in quantified equational bit-vector properties via strong Gröbner bases and linear congruence solving. Experimental results over an extensive range of benchmarks show that our approach outperforms existing methods in both time efficiency and memory consumption.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。