3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 10:55:50 +00:00

fix build issue for debug mode

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-06-20 17:20:52 +02:00
parent 1827f98851
commit b1893f2a58
6 changed files with 40 additions and 8 deletions

View file

@ -169,6 +169,29 @@ 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
// -----------------------------------
//
// decl_info
@ -1814,7 +1837,6 @@ ast * ast_manager::register_node_core(ast * n) {
n->m_id = is_decl(n) ? m_decl_id_gen.mk() : m_expr_id_gen.mk();
TRACE("ast", tout << "Object " << n->m_id << " was created.\n";);
TRACE("mk_var_bug", tout << "mk_ast: " << n->m_id << "\n";);