1313
1414TEST_CASE (" Test smt_indext to string conversion" , " [core][smt2_incremental]" )
1515{
16- CHECK (smt_to_smt2_string (smt_symbol_indext{" green" }) == " | green| " );
16+ CHECK (smt_to_smt2_string (smt_symbol_indext{" green" }) == " green" );
1717 CHECK (smt_to_smt2_string (smt_numeral_indext{42 }) == " 42" );
1818}
1919
@@ -36,7 +36,7 @@ TEST_CASE(
3636{
3737 CHECK (
3838 smt_to_smt2_string (smt_bit_vector_theoryt::extract (7 , 3 )(
39- smt_bit_vector_constant_termt{0 , 8 })) == " ((_ | extract| 7 3) (_ bv0 8))" );
39+ smt_bit_vector_constant_termt{0 , 8 })) == " ((_ extract 7 3) (_ bv0 8))" );
4040}
4141
4242TEST_CASE (
@@ -55,7 +55,7 @@ TEST_CASE(
5555 {
5656 CHECK (
5757 smt_to_smt2_string (smt_identifier_termt{" abc" , smt_bool_sortt{}}) ==
58- " | abc| " );
58+ " abc" );
5959 CHECK (
6060 smt_to_smt2_string (smt_identifier_termt{" \\ " , smt_bool_sortt{}}) ==
6161 " |&92;|" );
@@ -67,7 +67,7 @@ TEST_CASE(
6767 " foo" ,
6868 smt_bool_sortt{},
6969 {smt_symbol_indext{" bar" }, smt_numeral_indext{42 }}}) ==
70- " (_ | foo| | bar| 42)" );
70+ " (_ foo bar 42)" );
7171 }
7272}
7373
@@ -78,8 +78,7 @@ TEST_CASE(
7878 CHECK (
7979 smt_to_smt2_string (smt_core_theoryt::equal (
8080 smt_identifier_termt{" foo" , smt_bit_vector_sortt{32 }},
81- smt_identifier_termt{" bar" , smt_bit_vector_sortt{32 }})) ==
82- " (|=| |foo| |bar|)" );
81+ smt_identifier_termt{" bar" , smt_bit_vector_sortt{32 }})) == " (= foo bar)" );
8382}
8483
8584TEST_CASE (
@@ -102,7 +101,7 @@ TEST_CASE(
102101{
103102 CHECK (
104103 smt_to_smt2_string (smt_get_value_commandt{
105- smt_identifier_termt{" foo" , smt_bool_sortt{}}}) == " (get-value (| foo| ))" );
104+ smt_identifier_termt{" foo" , smt_bool_sortt{}}}) == " (get-value (foo))" );
106105}
107106
108107TEST_CASE (
@@ -138,7 +137,7 @@ TEST_CASE(
138137 smt_to_smt2_string (smt_declare_function_commandt{
139138 smt_identifier_termt{" f" , smt_bit_vector_sortt{31 }},
140139 {smt_bit_vector_sortt{32 }, smt_bit_vector_sortt{33 }}}) ==
141- " (declare-fun |f| ((_ BitVec 32) (_ BitVec 33)) (_ BitVec 31))" );
140+ " (declare-fun f ((_ BitVec 32) (_ BitVec 33)) (_ BitVec 31))" );
142141}
143142
144143TEST_CASE (
@@ -151,8 +150,8 @@ TEST_CASE(
151150 CHECK (
152151 smt_to_smt2_string (smt_define_function_commandt{
153152 " f" , {g, h}, smt_core_theoryt::equal (g, h)}) ==
154- " (define-fun |f| ((|g| (_ BitVec 32)) (|h| (_ BitVec 32))) Bool (|=| |g| "
155- " |h| ))" );
153+ " (define-fun f ((g (_ BitVec 32)) (h (_ BitVec 32))) Bool (= g "
154+ " h ))" );
156155}
157156
158157TEST_CASE (
0 commit comments