From 0fd2ad3217bf976e3775266f4a1b704018e7ad0b Mon Sep 17 00:00:00 2001 From: dsengupta0628 Date: Mon, 29 Jun 2026 15:39:27 +0000 Subject: [PATCH] isSequential update Signed-off-by: dsengupta0628 --- liberty/test/cpp/TestLibertyClasses.cc | 2 +- liberty/test/cpp/TestLibertyStaBasics.cc | 6 +++--- liberty/test/cpp/TestLibertyStaBasicsB.cc | 4 ++-- liberty/test/cpp/TestLibertyStaCallbacks.cc | 4 ++-- power/test/cpp/TestPower.cc | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/liberty/test/cpp/TestLibertyClasses.cc b/liberty/test/cpp/TestLibertyClasses.cc index 9201380c..27f5143c 100644 --- a/liberty/test/cpp/TestLibertyClasses.cc +++ b/liberty/test/cpp/TestLibertyClasses.cc @@ -3230,7 +3230,7 @@ TEST(TestCellTest, HasInferedRegTimingArcs) { TEST(TestCellTest, HasSequentials) { LibertyLibrary lib("test_lib", "test.lib"); TestCell cell(&lib, "CELL1", "test.lib"); - EXPECT_FALSE(cell.hasSequentials()); + EXPECT_FALSE(cell.isSequential()); } TEST(TestCellTest, SequentialsEmpty) { diff --git a/liberty/test/cpp/TestLibertyStaBasics.cc b/liberty/test/cpp/TestLibertyStaBasics.cc index a999e68b..7ed177bc 100644 --- a/liberty/test/cpp/TestLibertyStaBasics.cc +++ b/liberty/test/cpp/TestLibertyStaBasics.cc @@ -810,7 +810,7 @@ TEST_F(StaLibertyTest, LibraryDelayModelType) { TEST_F(StaLibertyTest, CellHasSequentials) { LibertyCell *dff = lib_->findLibertyCell("DFF_X1"); if (dff) { - EXPECT_TRUE(dff->hasSequentials()); + EXPECT_TRUE(dff->isSequential()); auto &seqs = dff->sequentials(); EXPECT_GT(seqs.size(), 0u); } @@ -3266,10 +3266,10 @@ TEST_F(StaLibertyTest, CellIsInverter2) { TEST_F(StaLibertyTest, CellHasSequentials2) { LibertyCell *buf = lib_->findLibertyCell("BUF_X1"); ASSERT_NE(buf, nullptr); - EXPECT_FALSE(buf->hasSequentials()); + EXPECT_FALSE(buf->isSequential()); LibertyCell *dff = lib_->findLibertyCell("DFF_X1"); if (dff) { - EXPECT_TRUE(dff->hasSequentials()); + EXPECT_TRUE(dff->isSequential()); } } diff --git a/liberty/test/cpp/TestLibertyStaBasicsB.cc b/liberty/test/cpp/TestLibertyStaBasicsB.cc index 0d72b5db..9834e42b 100644 --- a/liberty/test/cpp/TestLibertyStaBasicsB.cc +++ b/liberty/test/cpp/TestLibertyStaBasicsB.cc @@ -2166,14 +2166,14 @@ TEST_F(StaLibertyTest, CellSetClockGateType) { TEST_F(StaLibertyTest, CellHasSequentialsBuf) { LibertyCell *buf = lib_->findLibertyCell("BUF_X1"); ASSERT_NE(buf, nullptr); - EXPECT_FALSE(buf->hasSequentials()); + EXPECT_FALSE(buf->isSequential()); } // LibertyCell::hasSequentials on DFF TEST_F(StaLibertyTest, CellHasSequentialsDFF) { LibertyCell *dff = lib_->findLibertyCell("DFF_X1"); ASSERT_NE(dff, nullptr); - EXPECT_TRUE(dff->hasSequentials()); + EXPECT_TRUE(dff->isSequential()); } // LibertyCell::sequentials diff --git a/liberty/test/cpp/TestLibertyStaCallbacks.cc b/liberty/test/cpp/TestLibertyStaCallbacks.cc index 52f0d155..1b14c7c9 100644 --- a/liberty/test/cpp/TestLibertyStaCallbacks.cc +++ b/liberty/test/cpp/TestLibertyStaCallbacks.cc @@ -3688,7 +3688,7 @@ library(test_r11_latch) { LibertyCell *cell = lib->findLibertyCell("LATCH1"); EXPECT_NE(cell, nullptr); if (cell) { - EXPECT_TRUE(cell->hasSequentials()); + EXPECT_TRUE(cell->isSequential()); } } remove(tmp_path.c_str()); @@ -4338,7 +4338,7 @@ library(test_mbff_statetable) { // But it has a statetable, so it IS sequential. EXPECT_NE(mbff->statetable(), nullptr); // hasSequentials() must return true for statetable-only cells. - EXPECT_TRUE(mbff->hasSequentials()) + EXPECT_TRUE(mbff->isSequential()) << "MBFF2 uses statetable (no ff/latch) but hasSequentials() " "returned false — statetable cells are misclassified as " "combinational"; diff --git a/power/test/cpp/TestPower.cc b/power/test/cpp/TestPower.cc index f5ee8a83..e50ae4ef 100644 --- a/power/test/cpp/TestPower.cc +++ b/power/test/cpp/TestPower.cc @@ -1326,7 +1326,7 @@ TEST_F(PowerDesignTest, SequentialCellClassification) { Instance *inst = child_iter->next(); LibertyCell *cell = network->libertyCell(inst); ASSERT_NE(cell, nullptr); - if (cell->hasSequentials()) { + if (cell->isSequential()) { seq_count++; } else { comb_count++;