perf(library/metavar_util): do nothing if term does not contain assigned metavars
This commit is contained in:
parent
02904c5b87
commit
a2745aa273
1 changed files with 2 additions and 0 deletions
|
|
@ -194,6 +194,8 @@ public:
|
|||
|
||||
template<typename CTX>
|
||||
expr instantiate_mvars(CTX & ctx, expr const & e) {
|
||||
if (!has_assigned(ctx, e))
|
||||
return e;
|
||||
return instantiate_mvars_fn<CTX>(ctx)(e);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue