Skip to content

Commit a819a11

Browse files
authored
Merge pull request #3198 from diffblue/unicode-types
unicode characters for common sets of numbers
2 parents c6a220c + 4c94d85 commit a819a11

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
@@ -89,6 +89,14 @@ std::ostream &format_rec(std::ostream &os, const typet &type)
8989
return os << "floatbv[" << to_floatbv_type(type).get_width() << ']';
9090
else if(id == ID_c_bool)
9191
return os << "c_bool[" << to_c_bool_type(type).get_width() << ']';
92+
else if(id == ID_bool)
93+
return os << "\xf0\x9d\x94\xb9"; // u+1D539, 'B'
94+
else if(id == ID_integer)
95+
return os << "\xe2\x84\xa4"; // u+2124, 'Z'
96+
else if(id == ID_natural)
97+
return os << "\xe2\x84\x95"; // u+2115, 'N'
98+
else if(id == ID_rational)
99+
return os << "\xe2\x84\x9a"; // u+211A, 'Q'
92100
else
93101
return os << id;
94102
}

0 commit comments

Comments
 (0)