We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72d129e commit fca44ffCopy full SHA for fca44ff
src/ast/recfun_decl_plugin.cpp
@@ -355,11 +355,7 @@ namespace recfun {
355
util & u;
356
find(util & u) : u(u) {}
357
bool operator()(expr * e) override {
358
- //return is_app(e) ? u.owns_app(to_app(e)) : false;
359
- if (! is_app(e)) return false;
360
-
361
- app * a = to_app(e);
362
- return u.is_defined(a);
+ return is_app(e) && u.is_defined(to_app(e));
363
}
364
};
365
find f(u);
@@ -467,6 +463,8 @@ namespace recfun {
467
463
scores.insert(e, 0);
468
464
// walk deepest terms first.
469
465
for (unsigned i = max_depth; i > 0; --i) {
466
+ if (!by_depth.contains(i))
+ continue;
470
for (expr* t : by_depth[i]) {
471
unsigned score = 0;
472
for (expr* parent : parents[t]) {
0 commit comments