From 5ef2a2956d799d8dcb0018a64b14953861ad4f42 Mon Sep 17 00:00:00 2001 From: Matthew Ballance Date: Wed, 25 Feb 2026 23:22:36 +0000 Subject: [PATCH] Revert V3EmitV.cpp and V3LinkInc.cpp to funccov-minimal merge base These changes are not required for functional coverage support and should not be included in the upstream patch. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/V3EmitV.cpp | 7 ++++++- src/V3LinkInc.cpp | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/V3EmitV.cpp b/src/V3EmitV.cpp index 0272c62db..1cc1245f3 100644 --- a/src/V3EmitV.cpp +++ b/src/V3EmitV.cpp @@ -227,6 +227,12 @@ class EmitVBaseVisitorConst VL_NOT_FINAL : public VNVisitorConst { iterateAndNextConstNull(nodep->rhsp()); if (!m_suppressSemi) puts(";\n"); } + void visit(AstAssignDly* nodep) override { + iterateAndNextConstNull(nodep->lhsp()); + putfs(nodep, " <= "); + iterateAndNextConstNull(nodep->rhsp()); + puts(";\n"); + } void visit(AstAlias* nodep) override { putbs("alias "); iterateConst(nodep->itemsp()); @@ -267,7 +273,6 @@ class EmitVBaseVisitorConst VL_NOT_FINAL : public VNVisitorConst { if (nodep->sensp()) puts(" "); iterateChildrenConst(nodep); } - void visit(AstCReset* /*nodep*/) override { puts("/*CRESET*/"); } void visit(AstCase* nodep) override { putfs(nodep, ""); if (nodep->priorityPragma()) puts("priority "); diff --git a/src/V3LinkInc.cpp b/src/V3LinkInc.cpp index a770b7017..3fbb7999a 100644 --- a/src/V3LinkInc.cpp +++ b/src/V3LinkInc.cpp @@ -309,7 +309,6 @@ class LinkIncVisitor final : public VNVisitor { AstVar* const varp = new AstVar{ fl, VVarType::BLOCKTEMP, name, VFlagChildDType{}, new AstRefDType{fl, AstRefDType::FlagTypeOfExpr{}, readp->cloneTree(true)}}; - varp->lifetime(VLifetime::AUTOMATIC_EXPLICIT); if (m_ftaskp) varp->funcLocal(true); // Declare the variable