feat(library/compiler/util): do not consider constructors to be cost zero

This commit is contained in:
Leonardo de Moura 2018-09-26 08:48:06 -07:00
parent 7fed0b5cb0
commit 21b8199bc4

View file

@ -363,8 +363,6 @@ unsigned get_lcnf_size(environment const & env, expr e) {
e = app_fn(e);
}
return r;
} else if (is_constructor_app(env, e)) {
return 0;
} else {
return 1;
}