mirror of
https://github.com/Z3Prover/z3
synced 2025-08-30 15:00:08 +00:00
remove using insert_if_not_there2
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
9ea1cf3c5c
commit
a884201d62
47 changed files with 172 additions and 208 deletions
|
@ -2357,10 +2357,10 @@ void context::init_rules(datalog::rule_set& rules, decl2rel& rels)
|
|||
func_decl* pred = dit->m_key;
|
||||
TRACE("spacer", tout << mk_pp(pred, m) << "\n";);
|
||||
SASSERT(!rels.contains(pred));
|
||||
auto *e = rels.insert_if_not_there2(pred, alloc(pred_transformer, *this,
|
||||
auto* pt = rels.insert_if_not_there(pred, alloc(pred_transformer, *this,
|
||||
get_manager(), pred));
|
||||
datalog::rule_vector const& pred_rules = *dit->m_value;
|
||||
for (auto rule : pred_rules) {e->get_data().m_value->add_rule(rule);}
|
||||
for (auto rule : pred_rules) {pt->add_rule(rule);}
|
||||
}
|
||||
|
||||
// Allocate predicate transformers for predicates that are used
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue