RestructureCFG: introduce soft failure

Soft fail for `ContinueBackedges` size.
This commit is contained in:
Andrea Gussoni
2025-06-20 14:04:51 +02:00
parent abbca85036
commit a5100a32ce
+5
View File
@@ -793,7 +793,12 @@ bool restructureCFG(Function &F, ASTTree &AST) {
}
}
// The following should be an assert, but since the backend is in
// maintenance mode, we have an early return to propagate an early failure.
// Verify that we found at least one backedge
if (not(ContinueBackedges.size() > 0)) {
return false;
}
revng_assert(ContinueBackedges.size() > 0);
revng_assert(Head != nullptr);