Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Jul 6, 2021
1 parent ca05c66 commit af5b2a4
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/smt/qi_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,11 +401,9 @@ namespace smt {
}

bool result = true;
bool has_delayed = false;
for (unsigned i = 0; i < m_delayed_entries.size(); i++) {
entry & e = m_delayed_entries[i];
TRACE("qi_queue", tout << e.m_qb << ", cost: " << e.m_cost << ", instantiated: " << e.m_instantiated << "\n";);
has_delayed |= !e.m_instantiated;
if (!e.m_instantiated && e.m_cost <= m_params.m_qi_lazy_threshold) {
TRACE("qi_queue",
tout << "lazy quantifier instantiation...\n" << mk_pp(static_cast<quantifier*>(e.m_qb->get_data()), m) << "\ncost: " << e.m_cost << "\n";);
Expand All @@ -415,20 +413,6 @@ namespace smt {
instantiate(e);
}
}
if (result && has_delayed) {
for (unsigned i = 0; i < m_delayed_entries.size(); i++) {
entry& e = m_delayed_entries[i];
if (e.m_instantiated)
continue;
TRACE("qi_queue",
tout << "lazy quantifier instantiation...\n" << mk_pp(static_cast<quantifier*>(e.m_qb->get_data()), m) << "\ncost: " << e.m_cost << "\n";);
result = false;
m_instantiated_trail.push_back(i);
m_stats.m_num_lazy_instances++;
instantiate(e);
break;
}
}
return result;
}

Expand Down

0 comments on commit af5b2a4

Please sign in to comment.