From 2737a22793e04f2b1fc9ca55b38af1161ccd0499 Mon Sep 17 00:00:00 2001 From: github action Date: Sat, 24 Jan 2026 03:01:38 +0000 Subject: [PATCH] Apply 'make format' --- src/V3SenExprBuilder.h | 31 ++++++++++++++------------ test_regress/t/t_class_trigger_null.py | 0 2 files changed, 17 insertions(+), 14 deletions(-) mode change 100644 => 100755 test_regress/t/t_class_trigger_null.py diff --git a/src/V3SenExprBuilder.h b/src/V3SenExprBuilder.h index a9d1dcd8b..20b09d0ef 100644 --- a/src/V3SenExprBuilder.h +++ b/src/V3SenExprBuilder.h @@ -131,8 +131,8 @@ private: if (!baseClassRefp) return stmtp; AstNodeExpr* const nullp = new AstConst{flp, AstConst::Null{}}; // const_cast safe: cloneTree doesn't modify the source - AstNodeExpr* const checkp = new AstNeq{ - flp, const_cast(baseClassRefp)->cloneTree(false), nullp}; + AstNodeExpr* const checkp + = new AstNeq{flp, const_cast(baseClassRefp)->cloneTree(false), nullp}; return new AstIf{flp, checkp, stmtp}; } @@ -143,8 +143,8 @@ private: if (!baseClassRefp) return exprp; AstNodeExpr* const nullp = new AstConst{flp, AstConst::Null{}}; // const_cast safe: cloneTree doesn't modify the source - AstNodeExpr* const checkp = new AstNeq{ - flp, const_cast(baseClassRefp)->cloneTree(false), nullp}; + AstNodeExpr* const checkp + = new AstNeq{flp, const_cast(baseClassRefp)->cloneTree(false), nullp}; AstNodeExpr* const falsep = new AstConst{flp, AstConst::BitFalse{}}; AstNodeExpr* const condp = new AstCond{flp, checkp, exprp, falsep}; condp->dtypeSetBit(); @@ -220,9 +220,8 @@ private: m_results.m_postUpdates.push_back( wrapStmtWithNullCheck(flp, cmhp->makeStmt(), baseClassRefp)); } else { - m_results.m_postUpdates.push_back( - wrapStmtWithNullCheck(flp, new AstAssign{flp, wrPrev(), rdCurr()}, - baseClassRefp)); + m_results.m_postUpdates.push_back(wrapStmtWithNullCheck( + flp, new AstAssign{flp, wrPrev(), rdCurr()}, baseClassRefp)); } } @@ -256,17 +255,21 @@ private: resultp->dtypeSetBit(); return {wrapExprWithNullCheck(flp, resultp, baseClassRefp), true}; } - return {wrapExprWithNullCheck(flp, new AstNeq{flp, currp(), prevp()}, baseClassRefp), true}; + return {wrapExprWithNullCheck(flp, new AstNeq{flp, currp(), prevp()}, baseClassRefp), + true}; case VEdgeType::ET_BOTHEDGE: // - return {wrapExprWithNullCheck(flp, lsb(new AstXor{flp, currp(), prevp()}), baseClassRefp), - false}; + return { + wrapExprWithNullCheck(flp, lsb(new AstXor{flp, currp(), prevp()}), baseClassRefp), + false}; case VEdgeType::ET_POSEDGE: // - return {wrapExprWithNullCheck(flp, lsb(new AstAnd{flp, currp(), new AstNot{flp, prevp()}}), - baseClassRefp), + return {wrapExprWithNullCheck(flp, + lsb(new AstAnd{flp, currp(), new AstNot{flp, prevp()}}), + baseClassRefp), false}; case VEdgeType::ET_NEGEDGE: // - return {wrapExprWithNullCheck(flp, lsb(new AstAnd{flp, new AstNot{flp, currp()}, prevp()}), - baseClassRefp), + return {wrapExprWithNullCheck(flp, + lsb(new AstAnd{flp, new AstNot{flp, currp()}, prevp()}), + baseClassRefp), false}; case VEdgeType::ET_EVENT: { UASSERT_OBJ(v3Global.hasEvents(), senItemp, "Inconsistent"); diff --git a/test_regress/t/t_class_trigger_null.py b/test_regress/t/t_class_trigger_null.py old mode 100644 new mode 100755