File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
unit/solvers/smt2_incremental Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#include < util/mp_arith.h>
4
4
5
+ #include < solvers/smt2_incremental/smt_bit_vector_theory.h>
5
6
#include < solvers/smt2_incremental/smt_commands.h>
6
7
#include < solvers/smt2_incremental/smt_core_theory.h>
7
8
#include < solvers/smt2_incremental/smt_logics.h>
@@ -29,6 +30,15 @@ TEST_CASE(
29
30
CHECK (smt_to_smt2_string (smt_bit_vector_constant_termt{0 , 8 }) == " (_ bv0 8)" );
30
31
}
31
32
33
+ TEST_CASE (
34
+ " Test smt_bit_vector extract to string conversion" ,
35
+ " [core][smt2_incremental]" )
36
+ {
37
+ CHECK (
38
+ smt_to_smt2_string (smt_bit_vector_theoryt::extract (7 , 3 )(
39
+ smt_bit_vector_constant_termt{0 , 8 })) == " ((_ |extract| 7 3) (_ bv0 8))" );
40
+ }
41
+
32
42
TEST_CASE (
33
43
" Test smt_bool_literal_termt to string conversion" ,
34
44
" [core][smt2_incremental]" )
You can’t perform that action at this time.
0 commit comments