From 4b6bc1ff83d7a265f4c02fe7bbd7b02d9387003a Mon Sep 17 00:00:00 2001 From: github action Date: Sat, 4 Apr 2026 18:32:27 +0000 Subject: [PATCH] Apply 'make format' --- src/V3AstNodes.cpp | 4 ++-- src/V3Randomize.cpp | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/V3AstNodes.cpp b/src/V3AstNodes.cpp index df7ffb03e..5465f876a 100644 --- a/src/V3AstNodes.cpp +++ b/src/V3AstNodes.cpp @@ -1014,8 +1014,8 @@ bool AstNodeDType::similarDType(const AstNodeDType* samep) const { bool AstNodeDType::isFourstate() const { return basicp() && basicp()->isFourstate(); } bool AstNodeDType::isNonPackedArray() const { - return VN_IS(this, UnpackArrayDType) || VN_IS(this, DynArrayDType) - || VN_IS(this, QueueDType) || VN_IS(this, AssocArrayDType); + return VN_IS(this, UnpackArrayDType) || VN_IS(this, DynArrayDType) || VN_IS(this, QueueDType) + || VN_IS(this, AssocArrayDType); } class AstNodeDType::CTypeRecursed final { diff --git a/src/V3Randomize.cpp b/src/V3Randomize.cpp index 54fdadd3c..c603eebbf 100644 --- a/src/V3Randomize.cpp +++ b/src/V3Randomize.cpp @@ -1311,8 +1311,7 @@ class ConstraintExprVisitor final : public VNVisitor { methodp->addPinsp(varRefp); } AstNodeDType* tmpDtypep = varp->dtypep(); - while (tmpDtypep->isNonPackedArray()) - tmpDtypep = tmpDtypep->subDTypep(); + while (tmpDtypep->isNonPackedArray()) tmpDtypep = tmpDtypep->subDTypep(); const size_t width = tmpDtypep->width(); methodp->addPinsp( new AstConst{varp->dtypep()->fileline(), AstConst::Unsized64{}, width}); @@ -4390,8 +4389,7 @@ class RandomizeVisitor final : public VNVisitor { } AstNodeDType* tmpDtypep = arrVarp->dtypep(); - while (tmpDtypep->isNonPackedArray()) - tmpDtypep = tmpDtypep->subDTypep(); + while (tmpDtypep->isNonPackedArray()) tmpDtypep = tmpDtypep->subDTypep(); const size_t width = tmpDtypep->width(); methodp->addPinsp(new AstConst{fl, AstConst::Unsized64{}, width});