mirror of
https://github.com/Z3Prover/z3
synced 2025-06-19 12:23:38 +00:00
move to abstract symbols
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
78a1736bd2
commit
541658fe02
16 changed files with 117 additions and 93 deletions
|
@ -16,6 +16,11 @@ Author:
|
|||
Revision History:
|
||||
|
||||
--*/
|
||||
#if 0
|
||||
|
||||
// include "util/new_symbol.cpp"
|
||||
#else
|
||||
|
||||
#include "util/symbol.h"
|
||||
#include "util/mutex.h"
|
||||
#include "util/str_hashtable.h"
|
||||
|
@ -25,6 +30,7 @@ Revision History:
|
|||
#include <thread>
|
||||
|
||||
|
||||
|
||||
symbol symbol::m_dummy(TAG(void*, nullptr, 2));
|
||||
const symbol symbol::null;
|
||||
|
||||
|
@ -145,7 +151,7 @@ bool symbol::contains(char ch) const {
|
|||
}
|
||||
}
|
||||
|
||||
unsigned symbol::size() const {
|
||||
unsigned symbol::display_size() const {
|
||||
SASSERT(!is_marked());
|
||||
if (GET_TAG(m_data) == 0) {
|
||||
return static_cast<unsigned>(strlen(m_data));
|
||||
|
@ -183,3 +189,5 @@ bool lt(symbol const & s1, symbol const & s2) {
|
|||
SASSERT(cmp != 0);
|
||||
return cmp < 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue