We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 199b231 commit faf21d0Copy full SHA for faf21d0
src/solvers/smt2/smt2_conv.cpp
@@ -2214,6 +2214,10 @@ void smt2_convt::convert_typecast(const typecast_exprt &expr)
2214
convert_typecast(tmp);
2215
}
2216
2217
+ else if(src_type.id() == ID_empty)
2218
+ {
2219
+ convert_expr(src);
2220
+ }
2221
else
2222
{
2223
std::ostringstream e_str;
@@ -4626,6 +4630,11 @@ void smt2_convt::convert_type(const typet &type)
4626
4630
4627
4631
convert_type(c_bit_field_replacement_type(to_c_bit_field_type(type), ns));
4628
4632
4633
+ else if(type.id() == ID_empty)
4634
4635
+ // the NONDET(void) is in fact of type char
4636
+ out << "(_ BitVec " << boolbv_width(char_type()) << " )";
4637
4629
4638
4639
4640
UNEXPECTEDCASE("unsupported type: "+type.id_string());
0 commit comments