fix(library/unifier): missing set_conflict
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
9588336c15
commit
fa342c8ea7
1 changed files with 5 additions and 2 deletions
|
@ -829,15 +829,18 @@ struct unifier_fn {
|
|||
return Continue;
|
||||
bool contains = occurs_meta(lhs, rhs);
|
||||
if (contains) {
|
||||
if (is_succ(rhs))
|
||||
if (is_succ(rhs)) {
|
||||
set_conflict(j);
|
||||
return Failed;
|
||||
else
|
||||
} else {
|
||||
return Continue;
|
||||
}
|
||||
}
|
||||
lean_assert(!m_subst.is_assigned(lhs));
|
||||
if (assign(lhs, rhs, j)) {
|
||||
return Solved;
|
||||
} else {
|
||||
set_conflict(j);
|
||||
return Failed;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue