fix(library/unifier): potentially changing flag from l_false ==> l_undef
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
301c395e59
commit
35481cb045
1 changed files with 6 additions and 2 deletions
|
@ -84,8 +84,12 @@ lbool occurs_context_check(substitution & s, expr const & e, expr const & m, buf
|
|||
}
|
||||
return false; // do not visit type
|
||||
} else if (is_meta(e)) {
|
||||
if (!context_check(e, locals) || s.occurs(m, e))
|
||||
r = l_undef;
|
||||
if (r == l_true) {
|
||||
if (!context_check(e, locals))
|
||||
r = l_undef;
|
||||
if (s.occurs(m, e))
|
||||
r = l_undef;
|
||||
}
|
||||
if (get_app_fn(e) == m)
|
||||
r = l_false;
|
||||
return false; // do not visit children
|
||||
|
|
Loading…
Reference in a new issue