fix(library/blast/congruence_closure): cannot assume all subterms have been internalized

This commit is contained in:
Daniel Selsam 2016-01-16 11:54:06 -08:00 committed by Leonardo de Moura
parent 19bfbe2df8
commit b2554dcb8f

View file

@ -1881,7 +1881,9 @@ expr congruence_closure::get_next(name const & R, expr const & e) const {
}
bool congruence_closure::eq_class_heterogeneous(expr const & e) const {
return has_heq_proofs(get_root(get_eq_name(), e));
expr root = get_root(get_eq_name(), e);
if (auto e = m_entries.find(eqc_key(get_eq_name(), root))) return e->m_heq_proofs;
else return false;
}
unsigned congruence_closure::get_mt(name const & R, expr const & e) const {