Support passing constraints to --xml-only output (still otherwise unsupported) (#4683)

This commit is contained in:
Wilson Snyder
2023-11-11 20:20:37 -05:00
committed by GitHub
parent 673f086e87
commit 99dbd23f1b
33 changed files with 1114 additions and 299 deletions
+4
View File
@@ -358,6 +358,10 @@ private:
addPrePostCall(nodep, funcp, "post_randomize");
nodep->user1(false);
}
void visit(AstConstraint* nodep) override {
nodep->v3warn(CONSTRAINTIGN, "Constraint ignored (unsupported)");
if (!v3Global.opt.xmlOnly()) VL_DO_DANGLING(pushDeletep(nodep->unlinkFrBack()), nodep);
}
void visit(AstRandCase* nodep) override {
// RANDCASE
// CASEITEM expr1 : stmt1