From 223ef58db963fd6b3e83d20d7bb1d0f8aec73325 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Fri, 27 Mar 2015 10:44:09 -0700 Subject: [PATCH] fix(kernel/equiv_manager): typo --- src/kernel/equiv_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/equiv_manager.cpp b/src/kernel/equiv_manager.cpp index 39e22fe00..644aaee80 100644 --- a/src/kernel/equiv_manager.cpp +++ b/src/kernel/equiv_manager.cpp @@ -56,7 +56,7 @@ auto equiv_manager::to_node(expr const & e) -> node_ref { bool equiv_manager::is_equiv_core(expr const & a, expr const & b) { if (is_eqp(a, b)) return true; if (m_use_hash && a.hash() != b.hash()) return false; - if (is_var(a)) return var_idx(a) == var_idx(b); + if (is_var(a) && is_var(b)) return var_idx(a) == var_idx(b); node_ref r1 = find(to_node(a)); node_ref r2 = find(to_node(b)); if (r1 == r2)