3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

test variants for seq_solver

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2016-05-30 18:15:10 -07:00
parent f03032bd09
commit 39acd3594a
4 changed files with 23 additions and 20 deletions

View file

@ -1575,19 +1575,6 @@ bool ast_manager::are_equal(expr * a, expr * b) const {
return false;
}
void ast_manager::inc_ref(ast * n) {
if (n) {
n->inc_ref();
}
}
void ast_manager::dec_ref(ast* n) {
if (n) {
n->dec_ref();
if (n->get_ref_count() == 0)
delete_node(n);
}
}
bool ast_manager::are_distinct(expr* a, expr* b) const {
if (is_app(a) && is_app(b)) {

View file

@ -1571,9 +1571,19 @@ public:
void debug_ref_count() { m_debug_ref_count = true; }
void inc_ref(ast * n);
void dec_ref(ast * n);
void inc_ref(ast * n) {
if (n) {
n->inc_ref();
}
}
void dec_ref(ast* n) {
if (n) {
n->dec_ref();
if (n->get_ref_count() == 0)
delete_node(n);
}
}
template<typename T>
void inc_array_ref(unsigned sz, T * const * a) {