Skip to content

Commit e2d9556

Browse files
author
Daniel Kroening
committed
format(type) now pretty-prints signedbv, unsignedbv, floatbv, c_bool
1 parent a23f455 commit e2d9556

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/util/format_type.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ std::ostream &format_rec(std::ostream &os, const typet &type)
8181
return os << "c_enum " << to_c_enum_tag_type(type).get_identifier();
8282
else if(id == ID_symbol_type)
8383
return os << "symbol_type " << to_symbol_type(type).get_identifier();
84+
else if(id == ID_signedbv)
85+
return os << "signedbv[" << to_signedbv_type(type).get_width() << ']';
86+
else if(id == ID_unsignedbv)
87+
return os << "unsignedbv[" << to_unsignedbv_type(type).get_width() << ']';
88+
else if(id == ID_floatbv)
89+
return os << "floatbv[" << to_floatbv_type(type).get_width() << ']';
90+
else if(id == ID_c_bool)
91+
return os << "c_bool[" << to_c_bool_type(type).get_width() << ']';
8492
else
8593
return os << id;
8694
}

0 commit comments

Comments
 (0)