3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-05-19 13:40:03 -07:00
parent 72d129eb75
commit fca44ff3f2

View file

@ -355,11 +355,7 @@ namespace recfun {
util & u;
find(util & u) : u(u) {}
bool operator()(expr * e) override {
//return is_app(e) ? u.owns_app(to_app(e)) : false;
if (! is_app(e)) return false;
app * a = to_app(e);
return u.is_defined(a);
return is_app(e) && u.is_defined(to_app(e));
}
};
find f(u);
@ -467,6 +463,8 @@ namespace recfun {
scores.insert(e, 0);
// walk deepest terms first.
for (unsigned i = max_depth; i > 0; --i) {
if (!by_depth.contains(i))
continue;
for (expr* t : by_depth[i]) {
unsigned score = 0;
for (expr* parent : parents[t]) {