From 65667356b62241cd88024187661a191ac048ba07 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 21 May 2023 12:24:00 -0400 Subject: [PATCH] wip --- src/V3Simulate.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/V3Simulate.h b/src/V3Simulate.h index 05fac3e7a..1feb44580 100644 --- a/src/V3Simulate.h +++ b/src/V3Simulate.h @@ -880,6 +880,14 @@ private: checkNodeInfo(nodep); iterateChildrenConst(nodep); } + void visit(AstExprStmt* nodep) override { + if (jumpingOver(nodep)) return; + checkNodeInfo(nodep); + iterateAndNextConstNull(nodep->stmtsp()); + if (!optimizable()) return; + iterateAndNextConstNull(nodep->resultp()); + newValue(nodep, fetchValue(nodep->resultp())); + } void visit(AstJumpBlock* nodep) override { if (jumpingOver(nodep)) return;