@@ -1564,7 +1564,7 @@ std::vector<int> TritonCTS::getAllClockTreeLevels(Clock& clockNet)
15641564 std::set<int > uniqueLevels;
15651565
15661566 clockNet.forEachSubNet ([&](ClockSubNet& subNet) {
1567- if (!subNet.isLeafLevel ()){
1567+ if (!subNet.isLeafLevel ()) {
15681568 uniqueLevels.insert (subNet.getTreeLevel ());
15691569 }
15701570 });
@@ -1588,8 +1588,7 @@ int TritonCTS::applyNDRToClockLevels(Clock& clockNet,
15881588
15891589 // Check if the main clock net (level 0) is in the level list
15901590 if (std::find (targetLevels.begin (), targetLevels.end (), 0 )
1591- != targetLevels.end ())
1592- {
1591+ != targetLevels.end ()) {
15931592 odb::dbNet* clk_net = clockNet.getNetObj ();
15941593 clk_net->setNonDefaultRule (clockNDR);
15951594 ndrAppliedNets++;
@@ -1603,11 +1602,9 @@ int TritonCTS::applyNDRToClockLevels(Clock& clockNet,
16031602 clockNet.forEachSubNet ([&](ClockSubNet& subNet) {
16041603 int level = subNet.getTreeLevel ();
16051604 if (std::find (targetLevels.begin (), targetLevels.end (), level)
1606- != targetLevels.end ())
1607- {
1605+ != targetLevels.end ()) {
16081606 odb::dbNet* net = subNet.getNetObj ();
1609- if (!subNet.isLeafLevel ())
1610- {
1607+ if (!subNet.isLeafLevel ()) {
16111608 net->setNonDefaultRule (clockNDR);
16121609 ndrAppliedNets++;
16131610 std::string net_name = net->getName ();
@@ -1637,7 +1634,8 @@ int TritonCTS::applyNDRToClockLevelRange(Clock& clockNet,
16371634}
16381635
16391636// Function to apply NDR to the first half of clock tree levels
1640- int TritonCTS::applyNDRToFirstHalfLevels (Clock& clockNet, odb::dbTechNonDefaultRule* clockNDR)
1637+ int TritonCTS::applyNDRToFirstHalfLevels (Clock& clockNet,
1638+ odb::dbTechNonDefaultRule* clockNDR)
16411639{
16421640 // Get all unique levels in the design
16431641 const std::vector<int > allLevels = getAllClockTreeLevels (clockNet);
@@ -1712,7 +1710,8 @@ void TritonCTS::writeClockNDRsToDb(TreeBuilder* builder)
17121710 // clkNets = applyNDRToFirstHalfLevels(clockNet, clockNDR);
17131711
17141712 // Option 4: Apply NDR to all non-leaf clock nets (default)
1715- clkNets = applyNDRToClockLevels (clockNet, clockNDR, getAllClockTreeLevels (clockNet));
1713+ clkNets = applyNDRToClockLevels (
1714+ clockNet, clockNDR, getAllClockTreeLevels (clockNet));
17161715
17171716 logger_->info (CTS,
17181717 202 ,
0 commit comments