3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-06 07:16:13 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-06-03 10:09:18 -07:00
parent a23ca1792b
commit 6e47499e26
13 changed files with 268 additions and 310 deletions

View file

@ -329,7 +329,7 @@ namespace datalog {
if (m_ctx.get_model_converter()) {
m_mc = alloc(qa_model_converter, m);
}
rule_set * result = alloc(rule_set, m_ctx);
scoped_ptr<rule_set> result = alloc(rule_set, m_ctx);
for (unsigned i = 0; i < sz; ++i) {
tail.reset();
@ -354,7 +354,6 @@ namespace datalog {
// proof converter: proofs are not necessarily preserved using this transformation.
if (m_old2new.empty()) {
dealloc(result);
dealloc(m_mc);
result = nullptr;
}
@ -363,7 +362,7 @@ namespace datalog {
}
m_mc = nullptr;
return result;
return result.detach();
}