There is increasing interest in applying verification tools to programs that have bitvector operations. SMT solvers, which serve as a foundation for these tools, have thus increased support for bitvector reasoning through bit-blasting and linear arithmetic approximations. Still, verification tools are limited on termination and LTL verification of bitvector programs. In this work, we show that similar linear arithmetic approximation of bitvector operations can be done at the source level through transformations. Specifically, we introduce new paths that over-approximate bitvector operations with linear conditions/constraints, increasing branching but allowing us to better exploit the well-developed integer reasoning and interpolation of verification tools. We present two sets of rules, namely rewriting rules and weakening rules, that can be implemented as bitwise branching of program transformation, the branching path can facilitate verification tools widen verification tasks over bitvector programs. Our experiment shows this exploitation of integer reasoning and interpolation enables competitive termination verification of bitvector programs and leads to the first effective technique for LTL verification of bitvector programs.
翻译:人们越来越有兴趣将核查工具应用到具有比特矢量操作的程序上。 SMT 解答器作为这些工具的基础,因此增加了对比特矢量推理的支持,通过比特矢量和线性计算近似值,增加了对比特矢量推理的支持。不过,在终止和LTL对比特矢量程序核查方面,核查工具是有限的。在这项工作中,我们显示,比特矢量操作的类似线性算术近似可以在源一级通过变换来完成。具体地说,我们引入了新的路径,使比特量操作与线性条件/约束的比特体操作过近,增加分支,并使我们能够更好地利用完善的整数推理法和核查工具的内推法。我们提出了两套规则,即重写规则和削弱规则,可以作为程序转换的比特项分支化分支执行,分解路径可以促进核查工具扩大比比比特矢量程序核查任务的范围。我们的实验展示了对整数推理和内推法的利用,从而对比特源程序进行竞争性终止核查,并导致对比特源程序进行首次有效的技术。