Skip to content

Commit d2a9558

Browse files
committed
clang format
Signed-off-by: arthurjolo <[email protected]>
1 parent 58b0af4 commit d2a9558

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

src/cts/src/TechChar.cpp

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Copyright (c) 2019-2025, The OpenROAD Authors
33

44
#include "TechChar.h"
5-
#include <spdlog/spdlog.h>
65

76
#include <algorithm>
87
#include <bitset>
@@ -956,7 +955,8 @@ std::vector<TechChar::SolutionData> TechChar::createPatterns(
956955
// For each possible topology...
957956
for (unsigned solutionCounterInt = 0; solutionCounterInt < numberOfTopologies;
958957
solutionCounterInt++) {
959-
debugPrint(logger_, CTS, "tech char", 1, "**topology {}", solutionCounterInt + 1);
958+
debugPrint(
959+
logger_, CTS, "tech char", 1, "**topology {}", solutionCounterInt + 1);
960960
std::stringstream tmp;
961961
tmp << "***IN ";
962962
// Creates a bitset that represents the buffer locations.
@@ -994,7 +994,7 @@ std::vector<TechChar::SolutionData> TechChar::createPatterns(
994994
} else {
995995
// Buffer, need to create the instance and a new net.
996996
nodesWithoutBuf++;
997-
for(auto i = 0; i < nodesWithoutBuf - 1; i++) {
997+
for (int i = 0; i < nodesWithoutBuf - 1; i++) {
998998
tmp << "-- ";
999999
}
10001000
tmp << "-> ";
@@ -1045,7 +1045,7 @@ std::vector<TechChar::SolutionData> TechChar::createPatterns(
10451045
odb::dbBPin* outPortPin = odb::dbBPin::create(outPort);
10461046
// Updates the topology with the output port, old new, possible instances
10471047
// and other attributes.
1048-
for(auto i = 0; i < nodesWithoutBuf; i++) {
1048+
for (int i = 0; i < nodesWithoutBuf; i++) {
10491049
tmp << "-- ";
10501050
}
10511051
tmp << "OUT";
@@ -1353,8 +1353,8 @@ void TechChar::updateBufferTopologies(TechChar::SolutionData& solution)
13531353

13541354
std::vector<size_t> TechChar::getCurrConfig(const SolutionData& solution)
13551355
{
1356-
if(solution.isPureWire) {
1357-
debugPrint(logger_, CTS, "tech char", 1,"**currConfig is a pure wire");
1356+
if (solution.isPureWire) {
1357+
debugPrint(logger_, CTS, "tech char", 1, "**currConfig is a pure wire");
13581358
return {};
13591359
}
13601360
std::vector<size_t> config;
@@ -1574,7 +1574,8 @@ void TechChar::create()
15741574
int64_t topologiesCreated = 0;
15751575
for (unsigned setupWirelength : wirelengthsToTest_) {
15761576
// Creates the topologies for the current wirelength.
1577-
debugPrint(logger_, CTS, "tech char", 1, "Wirelength = {}", setupWirelength);
1577+
debugPrint(
1578+
logger_, CTS, "tech char", 1, "Wirelength = {}", setupWirelength);
15781579
std::vector<SolutionData> topologiesVector
15791580
= createPatterns(setupWirelength);
15801581
// Creates an OpenSTA instance.
@@ -1623,7 +1624,7 @@ void TechChar::create()
16231624
r1,
16241625
c1,
16251626
piExists);
1626-
1627+
16271628
// clang-format off
16281629
debugPrint(logger_, CTS, "tech char", 1, "*# bufs = {}; "
16291630
"# nodes with buf = {}",
@@ -1753,7 +1754,12 @@ unsigned TechChar::getBufferingCombo(size_t numBuffers, size_t numNodes)
17531754
std::pair iPair(numBuffers, numNodes);
17541755
auto iter = bufferingComboTable_.find(iPair);
17551756
if (iter != bufferingComboTable_.end()) {
1756-
debugPrint(logger_, CTS, "tech char", 1,"**Monotonic entries are already hashed: {}", iter->second);
1757+
debugPrint(logger_,
1758+
CTS,
1759+
"tech char",
1760+
1,
1761+
"**Monotonic entries are already hashed: {}",
1762+
iter->second);
17571763
return iter->second;
17581764
}
17591765

@@ -1786,7 +1792,8 @@ unsigned TechChar::getBufferingCombo(size_t numBuffers, size_t numNodes)
17861792
}
17871793
debugPrint(logger_, CTS, "tech char", 1, tmp.str());
17881794
}
1789-
debugPrint(logger_, CTS, "tech char", 1, "**Monotonic entries: {}", numMonotonic);
1795+
debugPrint(
1796+
logger_, CTS, "tech char", 1, "**Monotonic entries: {}", numMonotonic);
17901797
// insert new result into hash table
17911798
bufferingComboTable_[iPair] = numMonotonic;
17921799
return numMonotonic;

0 commit comments

Comments
 (0)