Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/util/format_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ std::ostream &format_rec(std::ostream &os, const typet &type)
return os << "floatbv[" << to_floatbv_type(type).get_width() << ']';
else if(id == ID_c_bool)
return os << "c_bool[" << to_c_bool_type(type).get_width() << ']';
else if(id == ID_bool)
return os << "\xf0\x9d\x94\xb9"; // u+1D539, 'B'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that UTF-8 encoding? If so you might like to use u8"\U0001D539" in future rather than directly quote the encoded form

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(\uNNNN for BMP characters like the three below)

else if(id == ID_integer)
return os << "\xe2\x84\xa4"; // u+2124, 'Z'
else if(id == ID_natural)
return os << "\xe2\x84\x95"; // u+2115, 'N'
else if(id == ID_rational)
return os << "\xe2\x84\x9a"; // u+211A, 'Q'
else
return os << id;
}