@@ -242,31 +242,7 @@ TEST_CASE(
242242 REQUIRE (
243243 test.sent_commands ==
244244 std::vector<smt_commandt>{
245- smt_declare_function_commandt{nondet_int_a_term, {}},
246- smt_define_function_commandt{
247- " forty_two" , {}, smt_bit_vector_constant_termt{42 , 16 }},
248- smt_define_function_commandt{
249- " first_comparison" ,
250- {},
251- smt_core_theoryt::equal (nondet_int_a_term, forty_two_term)},
252- smt_declare_function_commandt{nondet_int_b_term, {}},
253- smt_define_function_commandt{
254- " second_comparison" ,
255- {},
256- smt_core_theoryt::make_not (
257- smt_core_theoryt::equal (nondet_int_b_term, forty_two_term))},
258- smt_define_function_commandt{
259- " third_comparison" ,
260- {},
261- smt_core_theoryt::equal (nondet_int_a_term, nondet_int_b_term)},
262- smt_define_function_commandt{
263- " comparison_conjunction" ,
264- {},
265- smt_core_theoryt::make_and (
266- smt_core_theoryt::make_and (
267- smt_identifier_termt{" first_comparison" , smt_bool_sortt{}},
268- smt_identifier_termt{" second_comparison" , smt_bool_sortt{}}),
269- smt_identifier_termt{" third_comparison" , smt_bool_sortt{}})},
245+ smt_declare_function_commandt{comparison_conjunction_term, {}},
270246 smt_assert_commandt{comparison_conjunction_term}});
271247 }
272248 SECTION (" Set with nondet_padding" )
@@ -326,8 +302,8 @@ TEST_CASE(
326302 REQUIRE (
327303 test.sent_commands ==
328304 std::vector<smt_commandt>{
329- smt_define_function_commandt {
330- " bar" , {}, smt_bit_vector_constant_termt{ 42 , 8 }},
305+ smt_declare_function_commandt {
306+ smt_identifier_termt{ " bar" , smt_bit_vector_sortt{ 8 }}, { }},
331307 smt_define_function_commandt{
332308 " B0" , {}, smt_identifier_termt{" bar" , smt_bit_vector_sortt{8 }}}});
333309 }
@@ -1210,19 +1186,9 @@ TEST_CASE(
12101186 test.procedure .set_to (equal_expr, true );
12111187
12121188 std::vector<smt_commandt> expected_commands{
1213- smt_define_function_commandt (
1214- inner_symbol_with_value.name ,
1215- {},
1216- smt_bit_vector_theoryt::concat (
1217- smt_bit_vector_constant_termt{10 , 32 },
1218- smt_bit_vector_constant_termt{23 , 16 })),
1219- smt_define_function_commandt (
1220- symbol_with_value.name ,
1221- {},
1222- smt_bit_vector_theoryt::concat (
1223- smt_bit_vector_constant_termt{1 , config.ansi_c .bool_width },
1224- smt_identifier_termt{
1225- inner_symbol_with_value.name , smt_bit_vector_sortt{48 }})),
1189+ smt_declare_function_commandt{
1190+ smt_identifier_termt{symbol_with_value.name , smt_bit_vector_sortt{56 }},
1191+ {}},
12261192 smt_assert_commandt{smt_core_theoryt::equal (
12271193 smt_identifier_termt{symbol_with_value.name , smt_bit_vector_sortt{56 }},
12281194 smt_identifier_termt{symbol_with_value.name , smt_bit_vector_sortt{56 }})}};
0 commit comments