Support boolean and/or in sequence expressions (#7285)

This commit is contained in:
Yilou Wang
2026-03-24 08:56:14 -04:00
committed by GitHub
parent 6873dc2f63
commit 0b2bf991a6
15 changed files with 558 additions and 30 deletions
+2
View File
@@ -823,6 +823,8 @@ private:
AstIf* const guardp = new AstIf{flp, condp, origStmtsp};
bodyp->addStmtsp(guardp);
nodep->replaceWith(pexprp);
// Don't iterate pexprp here -- it was already iterated when created
// (in visit(AstSExpr*)), so delays and disable iff are already processed.
} else if (nodep->isOverlapped()) {
nodep->replaceWith(new AstLogOr{flp, new AstLogNot{flp, lhsp}, rhsp});
} else {