mirror of
https://github.com/Z3Prover/z3
synced 2025-09-07 18:21:23 +00:00
parent
a23ca1792b
commit
6e47499e26
13 changed files with 268 additions and 310 deletions
|
@ -841,11 +841,10 @@ namespace datalog {
|
|||
m_mc = smc.get();
|
||||
reset();
|
||||
saturate(src);
|
||||
rule_set* result = alloc(rule_set, m_ctx);
|
||||
scoped_ptr<rule_set> result = alloc(rule_set, m_ctx);
|
||||
declare_predicates(src, *result);
|
||||
if (m_predicates.empty()) {
|
||||
// nothing could be sliced.
|
||||
dealloc(result);
|
||||
return nullptr;
|
||||
}
|
||||
TRACE("dl", display(tout););
|
||||
|
@ -859,7 +858,7 @@ namespace datalog {
|
|||
}
|
||||
m_ctx.add_proof_converter(spc.get());
|
||||
m_ctx.add_model_converter(smc.get());
|
||||
return result;
|
||||
return result.detach();
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue