mirror of
https://github.com/Z3Prover/z3
synced 2025-08-23 19:47:52 +00:00
remove tracing, fix doctext
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1ae0769af5
commit
cbe52e298b
10 changed files with 16 additions and 36 deletions
|
@ -169,28 +169,6 @@ bool family_manager::has_family(symbol const & s) const {
|
|||
return m_families.contains(s);
|
||||
}
|
||||
|
||||
#if 0
|
||||
static unsigned s_count = 0;
|
||||
void ast::inc_ref() {
|
||||
SASSERT(m_ref_count < UINT_MAX);
|
||||
m_ref_count ++;
|
||||
if (get_id() == 1) {
|
||||
s_count++;
|
||||
if (s_count >= 36530) {
|
||||
TRACE("rc", tout << "inc_ref " << m_ref_count << "\n";);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ast::dec_ref() {
|
||||
SASSERT(m_ref_count > 0);
|
||||
m_ref_count --;
|
||||
if (get_id() == 1 && s_count >= 36530) {
|
||||
TRACE("rc", tout << "dec_ref " << m_ref_count << "\n";);
|
||||
// IF_VERBOSE(0, verbose_stream() << "dec_rc " << s_count << "\n";);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// -----------------------------------
|
||||
//
|
||||
|
|
|
@ -482,7 +482,6 @@ protected:
|
|||
void * m_mark2_owner;
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
void inc_ref() {
|
||||
SASSERT(m_ref_count < UINT_MAX);
|
||||
m_ref_count ++;
|
||||
|
@ -492,12 +491,6 @@ protected:
|
|||
SASSERT(m_ref_count > 0);
|
||||
m_ref_count --;
|
||||
}
|
||||
#else
|
||||
void inc_ref();
|
||||
|
||||
void dec_ref();
|
||||
|
||||
#endif
|
||||
|
||||
ast(ast_kind k):m_id(UINT_MAX), m_kind(k), m_mark1(false), m_mark2(false), m_mark_shared_occs(false), m_ref_count(0) {
|
||||
DEBUG_CODE({
|
||||
|
|
|
@ -121,9 +121,9 @@ void expr_substitution::erase(expr * c) {
|
|||
}
|
||||
expr * def = nullptr;
|
||||
if (m_subst.find(c, def)) {
|
||||
m_manager.dec_ref(c);
|
||||
m_manager.dec_ref(def);
|
||||
m_subst.erase(c);
|
||||
m_manager.dec_ref(c);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -43,6 +43,8 @@ public:
|
|||
~justified_expr() {
|
||||
m.dec_ref(m_fml);
|
||||
m.dec_ref(m_proof);
|
||||
m_fml = nullptr;
|
||||
m_proof = nullptr;
|
||||
}
|
||||
|
||||
expr* get_fml() const { return m_fml; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue