mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
delay detach
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
891ab8bac5
commit
cafe3acff1
|
@ -578,11 +578,10 @@ namespace q {
|
||||||
TRACE("q", tout << "add " << mk_pp(_q, m) << "\n");
|
TRACE("q", tout << "add " << mk_pp(_q, m) << "\n");
|
||||||
scoped_ptr<clause> c = clausify(_q);
|
scoped_ptr<clause> c = clausify(_q);
|
||||||
quantifier* q = c->q();
|
quantifier* q = c->q();
|
||||||
if (m_q2clauses.contains(q)) {
|
if (m_q2clauses.contains(q))
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
ensure_ground_enodes(*c);
|
ensure_ground_enodes(*c);
|
||||||
m_clauses.push_back(c.detach());
|
m_clauses.push_back(c.get());
|
||||||
m_q2clauses.insert(q, c->index());
|
m_q2clauses.insert(q, c->index());
|
||||||
ctx.push(pop_clause(*this));
|
ctx.push(pop_clause(*this));
|
||||||
init_watch(*c);
|
init_watch(*c);
|
||||||
|
@ -613,6 +612,7 @@ namespace q {
|
||||||
if (!unary)
|
if (!unary)
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
|
c.detach();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue