mirror of
https://github.com/Z3Prover/z3
synced 2025-08-10 13:10:50 +00:00
minor simplifications to symbol class
This commit is contained in:
parent
0d4b4b30b1
commit
fc8193828d
2 changed files with 7 additions and 27 deletions
|
@ -83,8 +83,7 @@ public:
|
|||
// It is the inverse of c_ptr().
|
||||
// It was made public to simplify the implementation of the C API.
|
||||
static symbol mk_symbol_from_c_ptr(void const * ptr) {
|
||||
symbol s(ptr);
|
||||
return s;
|
||||
return symbol(ptr);
|
||||
}
|
||||
unsigned hash() const {
|
||||
if (m_data == nullptr) return 0x9e3779d9;
|
||||
|
@ -93,7 +92,7 @@ public:
|
|||
}
|
||||
bool contains(char c) const;
|
||||
unsigned size() const;
|
||||
char const * bare_str() const { SASSERT(!is_numerical()); return is_numerical() ? "" : m_data; }
|
||||
char const * bare_str() const { SASSERT(!is_numerical()); return m_data; }
|
||||
friend std::ostream & operator<<(std::ostream & target, symbol s) {
|
||||
SASSERT(!s.is_marked());
|
||||
if (GET_TAG(s.m_data) == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue