fix(kernel/expr): bug in m_free_var_range let-expr field

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-05-14 14:28:47 -07:00
parent 956b775c48
commit 893e4d4ae2

View file

@ -171,7 +171,7 @@ expr_let::expr_let(name const & n, expr const & t, expr const & v, expr const &
t.has_local() || v.has_local() || b.has_local(),
t.has_param_univ() || v.has_param_univ() || b.has_param_univ(),
std::max({get_depth(t), get_depth(v), get_depth(b)}) + 1,
std::max({get_free_var_range(t), dec(get_free_var_range(v)), dec(get_free_var_range(b))})),
std::max({get_free_var_range(t), get_free_var_range(v), dec(get_free_var_range(b))})),
m_name(n),
m_type(t),
m_value(v),