From dc049fdd745d2d1fea619097848fb381718ba4e0 Mon Sep 17 00:00:00 2001 From: github action Date: Wed, 6 Aug 2025 21:30:37 +0000 Subject: [PATCH] Apply 'make format' --- src/V3Const.cpp | 10 +++++----- src/V3Param.cpp | 4 ++-- test_regress/t/t_param_slice.py | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) mode change 100644 => 100755 test_regress/t/t_param_slice.py diff --git a/src/V3Const.cpp b/src/V3Const.cpp index 179f856b4..9b5ba8996 100644 --- a/src/V3Const.cpp +++ b/src/V3Const.cpp @@ -2792,11 +2792,11 @@ class ConstVisitor final : public VNVisitor { // required (m_required=true), call replaceWithSimulation() to compute // the slice via simulation. Otherwise just iterate the children. void visit(AstSliceSel* nodep) override { - // First constify or width any child nodes - iterateChildren(nodep); - if (!m_required) return; // Do nothing unless we are in parameter mode - // Fallback to simulation: this will invoke SimulateVisitor::visit(AstSliceSel*) - replaceWithSimulation(nodep); + // First constify or width any child nodes + iterateChildren(nodep); + if (!m_required) return; // Do nothing unless we are in parameter mode + // Fallback to simulation: this will invoke SimulateVisitor::visit(AstSliceSel*) + replaceWithSimulation(nodep); } void visit(AstCAwait* nodep) override { diff --git a/src/V3Param.cpp b/src/V3Param.cpp index a76fb208d..fa43d5ab4 100644 --- a/src/V3Param.cpp +++ b/src/V3Param.cpp @@ -737,8 +737,8 @@ class ParamProcessor final { // integer array and include it in the module name. Constantify nested // expressions before mangling the value number. V3Const::constifyParamsEdit(pinp->exprp()); - longnamer += "_" + paramSmallName(srcModp, modvarp) - + paramValueNumber(pinp->exprp()); + longnamer + += "_" + paramSmallName(srcModp, modvarp) + paramValueNumber(pinp->exprp()); any_overridesr = true; } else { V3Const::constifyParamsEdit(pinp->exprp()); diff --git a/test_regress/t/t_param_slice.py b/test_regress/t/t_param_slice.py old mode 100644 new mode 100755 index 125f07bb2..9a62155e4 --- a/test_regress/t/t_param_slice.py +++ b/test_regress/t/t_param_slice.py @@ -10,7 +10,7 @@ import vltest_bootstrap test.scenarios('vlt') -test.compile(verilator_flags2=['--exe','--main','--timing']) +test.compile(verilator_flags2=['--exe', '--main', '--timing']) test.execute()