From b2ced6ff1d931315f25c9fca58b99fde916de350 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 16 Mar 2023 19:42:13 -0400 Subject: [PATCH] Add more debug info to --report-unoptflat graph (#4039) --- src/V3SchedAcyclic.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/V3SchedAcyclic.cpp b/src/V3SchedAcyclic.cpp index 5e085f59d..412ac0070 100644 --- a/src/V3SchedAcyclic.cpp +++ b/src/V3SchedAcyclic.cpp @@ -68,12 +68,16 @@ public: : V3GraphVertex{graphp} , m_logicp{logicp} , m_scopep{scopep} {} + virtual V3GraphVertex* clone(V3Graph* graphp) const { + return new LogicVertex{graphp, logicp(), scopep()}; + } + AstNode* logicp() const { return m_logicp; } AstScope* scopep() const { return m_scopep; } // LCOV_EXCL_START // Debug code string name() const override { return m_logicp->fileline()->ascii(); }; - string dotShape() const override { return "rectangle"; } + string dotShape() const override { return "rectangle2"; } // LCOV_EXCL_STOP }; @@ -86,6 +90,7 @@ public: , m_vscp{vscp} {} AstVarScope* vscp() const { return m_vscp; } AstVar* varp() const { return m_vscp->varp(); } + virtual V3GraphVertex* clone(V3Graph* graphp) const { return new VarVertex{graphp, vscp()}; } // LCOV_EXCL_START // Debug code string name() const override { return m_vscp->name(); }