Skip to content

Commit

Permalink
fix #5874
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Mar 2, 2022
1 parent 5f79a97 commit bbadd17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/muz/transforms/dl_mk_rule_inliner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ namespace datalog {
break;
}

rule* r2 = acc[j].get();
rule* r2 = acc.get(j);

// check that the head of r2 only unifies with this single body position.
TRACE("dl", output_predicate(m_context, r2->get_head(), tout << "unify head: "); tout << "\n";);
Expand Down Expand Up @@ -801,7 +801,7 @@ namespace datalog {
if (num_tail_unifiers == 1) {
TRACE("dl", tout << "setting invalid: " << j << "\n";);
valid.set(j, false);
datalog::del_rule(m_mc, *r2, l_false);
datalog::del_rule(m_mc, *r2, l_undef);
del_rule(r2, j);
}

Expand Down

0 comments on commit bbadd17

Please sign in to comment.