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;
|
return Continue;
|
||||||
bool contains = occurs_meta(lhs, rhs);
|
bool contains = occurs_meta(lhs, rhs);
|
||||||
if (contains) {
|
if (contains) {
|
||||||
if (is_succ(rhs))
|
if (is_succ(rhs)) {
|
||||||
|
set_conflict(j);
|
||||||
return Failed;
|
return Failed;
|
||||||
else
|
} else {
|
||||||
return Continue;
|
return Continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
lean_assert(!m_subst.is_assigned(lhs));
|
lean_assert(!m_subst.is_assigned(lhs));
|
||||||
if (assign(lhs, rhs, j)) {
|
if (assign(lhs, rhs, j)) {
|
||||||
return Solved;
|
return Solved;
|
||||||
} else {
|
} else {
|
||||||
|
set_conflict(j);
|
||||||
return Failed;
|
return Failed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue