mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
scoping th solver to avoid memory leak during cancellation exposed by #3431
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d1f6470805
commit
70a1786061
5 changed files with 10 additions and 6 deletions
|
@ -51,6 +51,9 @@ namespace smt {
|
|||
{
|
||||
}
|
||||
|
||||
conflict_resolution::~conflict_resolution() {
|
||||
}
|
||||
|
||||
/**
|
||||
\brief Mark all enodes in a 'proof' tree branch starting at n
|
||||
n -> ... -> root
|
||||
|
@ -1044,7 +1047,7 @@ namespace smt {
|
|||
TRACE("proof_gen_bug", tout << "js2pr_cached: #" << js << "\n";);
|
||||
return pr;
|
||||
}
|
||||
SASSERT(js != 0);
|
||||
SASSERT(js != nullptr);
|
||||
TRACE("proof_gen_bug", tout << js << "\n";);
|
||||
m_todo_pr.push_back(tp_elem(js));
|
||||
return nullptr;
|
||||
|
|
|
@ -208,7 +208,7 @@ namespace smt {
|
|||
vector<watch_list> & watches
|
||||
);
|
||||
|
||||
virtual ~conflict_resolution() {}
|
||||
virtual ~conflict_resolution();
|
||||
|
||||
virtual bool resolve(b_justification conflict, literal not_l);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue