fix(library/equations_compiler/pack_domain): nested recursive calls

This commit is contained in:
Leonardo de Moura 2017-05-23 21:49:58 -07:00
parent bebdba1004
commit a1cfe0367b

View file

@ -89,6 +89,8 @@ struct sigma_packer_fn {
virtual expr visit_app(expr const & e) override {
buffer<expr> args;
expr const & fn = get_app_args(e, args);
for (expr & arg : args)
arg = visit(arg);
auto fnidx = get_fn_idx(fn);
if (!fnidx) return replace_visitor_with_tc::visit_app(e);
expr new_fn = m_ues.get_fn(*fnidx);