Benchmark

non-incremental/QF_BV/20230221-oisc-gurtner/SRAI-SAFE-24-24.smt2

Publications: "A Formally Verified Reduction of the RV32I ISA", Sonja Gurtner
(https://epub.jku.at/obvulihs/content/titleinfo/8237703)

The benchmarks come from the master thesis from Sonja Gurtner "A Formally Verified Reduction of the
RV32I ISA" about translating RISC-V instructions using only memory operations, jump, and sub. The
translation was done by Rosette, a tool to translate constraints from a Racket-like language to the
SMT-LIB.

There are two parameters in the translation:

- the bitwidth we are considering

- the upper bound on the number of loop iterations (for
correctness, it must be larger than the bitwidth)

One limitation of the work is that the translation was verified one replacement at a time. We verify
that addition (RISC-V instruction add) can be replaced by two subtraction (RISC-V instruction sub),
but subsequently use the usual addition. Thanks to this, verification scales up to large
bitwidth. Otherwise, the verification of such nested instructions is very challenging.


Naming convention: <instruction_to_replace>[-nested]-<bitwidth>-<upper_bound>[-<counterexample-cause>.smt2
Benchmark
Size139421
Compressed Size22684
License Creative Commons Attribution 4.0 International (CC-BY-4.0)
Categoryindustrial
First Occurrence2023-07-06
Generated BySonja Gurtner and Mathias Fleury
Generated On2023-02-19 00:00:00
GeneratorRosette
Dolmen OK1
strict Dolmen OK1
check-sat calls1
Query 1
Status unsat
Inferred Status unsat
Size 139412
Compressed Size22788
Max. Term Depth3
Asserts 4
Declared Functions0
Declared Constants140
Declared Sorts 0
Defined Functions0
Defined Recursive Functions 0
Defined Sorts0
Constants2528
Declared Datatypes0

Symbols

Bool1673 ite795 not206 or260
and429 =751 BitVec855 bvand1
bvor9 bvneg39 bvadd132 bvsmod2
bvult10 bvule4 bvslt1 bvsle12
bvshl116 bvlshr35 bvashr1

Evaluations

Evaluation Rating Solver Variant Result Wallclock CPU Time
SMT-COMP 2025 0.22 (7/9) Bitwuzla Bitwuzla unsat ✅ 5.12611 5.00721
Bitwuzla-MachBV-base unsat ✅ 8.08172 7.95999
Bitwuzla-MachBV Bitwuzla-MachBV unsat ✅ 5.14554 5.02209
BVDecide bv_decide unknown ❌ 1201.38600 1201.07236
bv_decide-nokernel unknown ❌ 1201.35094 1201.02326
cvc5 cvc5 unsat ✅ 11.48596 11.35402
SMTInterpol SMTInterpol unknown ❌ 1201.58314 1243.14500
Yices2 Yices2 unsat ✅ 7.57943 7.45550
Z3alpha Z3-alpha unsat ✅ 9.80257 37.75047
Z3 Z3-alpha-base unsat ✅ 3.60238 3.47371
Z3-Owl-base unsat ✅ 17.11607 16.99622
z3siri-base unsat ✅ 3.57123 3.44972
Z3-Owl Z3-Owl unsat ✅ 8.74190 8.60987