summaryrefslogtreecommitdiff
path: root/test/regress/regress2/bv_to_int2.smt2
diff options
context:
space:
mode:
authoryoni206 <yoni206@users.noreply.github.com>2020-09-23 06:00:59 -0700
committerGitHub <noreply@github.com>2020-09-23 08:00:59 -0500
commit9967954ba1b7b405b6d92d83ebc0adc43f6623b9 (patch)
treed2c08b4b644a23e1092f31a4d242949f3c5a293f /test/regress/regress2/bv_to_int2.smt2
parentcfe0fc1346c41048fa76f7e0fc582afbe95364a2 (diff)
bv2int: new options for bvand translation (#5096)
Currently, (bvand x y) is translated into a sum of ITEs. This PR introduces two more options for the translation of (bvand x y): bv: cast the integer translations of x and y back to bit-vectors, do a bvand, and cast the result to integers. iand: use the builtin iand operator. These options are added to many of the tests, and some new tests are added. In addition, some tests are cleaned up (e.g., removing --no-check-unsat-cores for satisfiable benchmarks). Finally, some tests are moved from regress0 to regress2 because they take several seconds to complete (2 -- 10 seconds).
Diffstat (limited to 'test/regress/regress2/bv_to_int2.smt2')
-rw-r--r--test/regress/regress2/bv_to_int2.smt210
1 files changed, 10 insertions, 0 deletions
diff --git a/test/regress/regress2/bv_to_int2.smt2 b/test/regress/regress2/bv_to_int2.smt2
new file mode 100644
index 000000000..4c1ca0c00
--- /dev/null
+++ b/test/regress/regress2/bv_to_int2.smt2
@@ -0,0 +1,10 @@
+; COMMAND-LINE: --solve-bv-as-int=sum --bvand-integer-granularity=1
+; COMMAND-LINE: --solve-bv-as-int=sum --bvand-integer-granularity=5
+; COMMAND-LINE: --solve-bv-as-int=sum --bvand-integer-granularity=8
+; EXPECT: sat
+(set-logic QF_BV)
+(declare-fun a () (_ BitVec 8))
+(declare-fun b () (_ BitVec 8))
+(assert (bvult (bvshl a b) (bvlshr a b)))
+
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback