3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-21 15:57:35 +00:00

fix build

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-06-03 15:12:08 -07:00
parent d50fc6976b
commit f986ae97bd
5 changed files with 12 additions and 12 deletions

View file

@ -51,13 +51,12 @@ namespace datalog {
}
rule_set * mk_unfold::operator()(rule_set const & source) {
rule_set* rules = alloc(rule_set, m_ctx);
rule_set::iterator it = source.begin(), end = source.end();
for (; it != end; ++it) {
expand_tail(**it, 0, source, *rules);
scoped_ptr<rule_set> rules = alloc(rule_set, m_ctx);
for (rule* r : source) {
expand_tail(*r, 0, source, *rules);
}
rules->inherit_predicates(source);
return rules;
return rules.detach();
}
};