From b70e9344e55e3b31ad1d7a44a96d93ec6b17cd55 Mon Sep 17 00:00:00 2001 From: Yilou Wang Date: Sun, 1 Mar 2026 17:01:25 +0100 Subject: [PATCH] fix failing test in ci --- src/V3Randomize.cpp | 2 +- test_regress/t/t_randomize.out | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/V3Randomize.cpp b/src/V3Randomize.cpp index 94f251c20..b0550736d 100644 --- a/src/V3Randomize.cpp +++ b/src/V3Randomize.cpp @@ -3344,7 +3344,7 @@ class RandomizeVisitor final : public VNVisitor { FileLine* const fl = distp->fileline(); // Collect buckets and compute effective weights - struct BucketInfo { + struct BucketInfo final { AstNodeExpr* rangep; // Points into distItem (will be cloned, not unlinked) uint64_t effectiveWeight; }; diff --git a/test_regress/t/t_randomize.out b/test_regress/t/t_randomize.out index 0bc25bf43..acfddcaef 100644 --- a/test_regress/t/t_randomize.out +++ b/test_regress/t/t_randomize.out @@ -1,11 +1,7 @@ -%Warning-CONSTRAINTIGN: t/t_randomize.v:22:14: Constraint expression ignored (imperfect distribution) - : ... note: In instance 't' - 22 | length dist { [0:1], [2:5] :/ 2, 6 := 6, 7 := 10, 1}; - | ^~~~ - ... For warning description see https://verilator.org/warn/CONSTRAINTIGN?v=latest - ... Use "/* verilator lint_off CONSTRAINTIGN */" and lint_on around source to disable this message. %Warning-CONSTRAINTIGN: t/t_randomize.v:43:23: Constraint expression ignored (imperfect distribution) : ... note: In instance 't' 43 | constraint order { solve length before header; } | ^~~~~ + ... For warning description see https://verilator.org/warn/CONSTRAINTIGN?v=latest + ... Use "/* verilator lint_off CONSTRAINTIGN */" and lint_on around source to disable this message. %Error: Exiting due to