fix(library/equations_compiler/wf_rec): do not generate code for auxiliary *._pack functions added by equation compiler

In the new equation compiler, we should not generate code in the
equation compiler.
This commit is contained in:
Leonardo de Moura 2018-09-12 22:05:52 -07:00
parent 20f31c85bf
commit 23e5136ea2

View file

@ -311,7 +311,9 @@ struct wf_rec_fn {
fn = mk_fix(fn);
expr fn_type = ctx.infer(fn);
expr r;
std::tie(m_env, r) = mk_aux_definition(m_env, get_options(), m_mctx, m_lctx, header,
equations_header new_header = header;
new_header.m_gen_code = false;
std::tie(m_env, r) = mk_aux_definition(m_env, get_options(), m_mctx, m_lctx, new_header,
head(header.m_fn_names), head(header.m_fn_actual_names),
fn_type, fn);
return r;