Revert 'Fix --x-initial and --x-assign random stability (#2662) (#5958).' See (#6018).

Reverts 4581023805 plus line in Changes file
This commit is contained in:
Wilson Snyder
2025-05-17 20:27:03 -04:00
parent 647404ec1e
commit 640339ec36
36 changed files with 45 additions and 675 deletions
+4 -3
View File
@@ -359,9 +359,10 @@ class UnknownVisitor final : public VNVisitor {
nodep->fileline(),
new AstVarRef{nodep->fileline(), newvarp, VAccess::WRITE},
new AstOr{nodep->fileline(), new AstConst{nodep->fileline(), numb1},
new AstAnd{
nodep->fileline(), new AstConst{nodep->fileline(), numbx},
new AstVarRef{nodep->fileline(), newvarp, VAccess::READ}}}}};
new AstAnd{nodep->fileline(),
new AstConst{nodep->fileline(), numbx},
new AstRand{nodep->fileline(), AstRand::Reset{},
nodep->dtypep(), true}}}}};
// Add inits in front of other statement.
// In the future, we should stuff the initp into the module's constructor.
AstNode* const afterp = m_modp->stmtsp()->unlinkFrBackWithNext();