perf(library/unifier): simple optimization
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
1230e942aa
commit
c3e8e83e50
1 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ bool context_check(expr const & e, buffer<expr> const & locals) {
|
||||||
failed = true;
|
failed = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return has_local(e);
|
||||||
});
|
});
|
||||||
return !failed;
|
return !failed;
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ lbool occurs_context_check(expr const & e, expr const & m, buffer<expr> const &
|
||||||
} else {
|
} else {
|
||||||
// we only need to continue exploring e if it contains
|
// we only need to continue exploring e if it contains
|
||||||
// metavariables and/or local constants.
|
// metavariables and/or local constants.
|
||||||
return has_metavar(e) || has_local(e);
|
return has_expr_metavar(e) || has_local(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return r;
|
return r;
|
||||||
|
|
Loading…
Reference in a new issue