diff --git a/src/V3AstNodeExpr.h b/src/V3AstNodeExpr.h index 2709539b9..9f460a0fd 100644 --- a/src/V3AstNodeExpr.h +++ b/src/V3AstNodeExpr.h @@ -1026,8 +1026,8 @@ public: string emitSimpleOperator() override { V3ERROR_NA_RETURN(""); } bool cleanOut() const override { V3ERROR_NA_RETURN(""); } int instrCount() const override { V3ERROR_NA_RETURN(0); } - bool sameNode(const AstNode* samep) const override { - return m_unbounded == VN_DBG_AS(samep, ConsRep)->m_unbounded; + bool sameNode(const AstNode* samep) const override { // LCOV_EXCL_LINE + return m_unbounded == VN_DBG_AS(samep, ConsRep)->m_unbounded; // LCOV_EXCL_LINE } bool unbounded() const { return m_unbounded; } }; diff --git a/src/V3AstNodes.cpp b/src/V3AstNodes.cpp index a669cd777..a77aad311 100644 --- a/src/V3AstNodes.cpp +++ b/src/V3AstNodes.cpp @@ -448,14 +448,14 @@ void AstConsDynArray::dumpJson(std::ostream& str) const { dumpJsonGen(str); } -void AstConsRep::dump(std::ostream& str) const { +void AstConsRep::dump(std::ostream& str) const { // LCOV_EXCL_START this->AstNodeExpr::dump(str); if (unbounded()) str << " [unbounded]"; } void AstConsRep::dumpJson(std::ostream& str) const { dumpJsonBoolFuncIf(str, unbounded); dumpJsonGen(str); -} +} // LCOV_EXCL_STOP void AstConsQueue::dump(std::ostream& str) const { this->AstNodeExpr::dump(str); if (lhsIsValue()) str << " [LVAL]"; diff --git a/src/verilog.y b/src/verilog.y index cedb51a0b..e7ab6f60f 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -6818,7 +6818,7 @@ sexpr: // ==IEEE: sequence_expr (The name sexpr is important as reg { $$ = new AstConsRep{$2, $1, $3}; } // // [*N:M] range | ~p~sexpr/*sexpression_or_dist*/ yP_BRASTAR constExpr ':' constExpr ']' - { $$ = new AstConsRep{$2, $1, $3, $5, false}; } + { $$ = new AstConsRep{$2, $1, $3, $5, false}; } // LCOV_EXCL_LINE // // [+] = [*1:$] | ~p~sexpr/*sexpression_or_dist*/ yP_BRAPLUSKET { $$ = new AstConsRep{$2, $1,