perf(library/type_context): small optimization

This commit is contained in:
Leonardo de Moura 2016-02-02 15:36:53 -08:00
parent bc86e9f179
commit b508cf813c

View file

@ -743,8 +743,8 @@ bool type_context::is_def_eq_proof_irrel(expr const & e1, expr const & e2) {
if (!m_env.prop_proof_irrel()) if (!m_env.prop_proof_irrel())
return false; return false;
expr e1_type = infer(e1); expr e1_type = infer(e1);
expr e2_type = infer(e2);
if (is_prop(e1_type)) { if (is_prop(e1_type)) {
expr e2_type = infer(e2);
scope s(*this); scope s(*this);
if (is_def_eq_core(e1_type, e2_type)) { if (is_def_eq_core(e1_type, e2_type)) {
s.commit(); s.commit();