fix(kernel/expr_eq_fn): take local pp name into account when annotations are considered in the equality test

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-07-10 18:56:50 +01:00
parent 405e57eb2d
commit 6af7e7f794

View file

@ -40,6 +40,7 @@ bool expr_eq_fn::apply(expr const & a, expr const & b) {
return
mlocal_name(a) == mlocal_name(b) &&
apply(mlocal_type(a), mlocal_type(b)) &&
(!m_compare_binder_info || local_pp_name(a) == local_pp_name(b));
(!m_compare_binder_info || local_info(a) == local_info(b));
case expr_kind::App:
m_counter++;