Skip to content

Commit

Permalink
Make 2nd argument the same as 3rd
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
  • Loading branch information
RRozak committed Jan 20, 2025
1 parent 692996c commit 629da03
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/VlcTop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,13 @@ void VlcTop::writeInfo(const string& filename) {
int point_num = 0;
for (const auto& point : sc.points()) {
os << "BRDA:" << sc.lineno() << ",";
os << sc.lineno() << "_" << point->column() << ",";
const string cmt = point->comment().substr(0, point->comment().find("="));

if (cmt.rfind("toggle_", 0) != 0) {
std::string typeStr = cmt.substr(0, cmt.find("_"));
os << typeStr << "_" << point_num;
std::string typeStr = cmt.substr(0, cmt.find("_")) + "_" + std::to_string(point_num);
os << typeStr << "," << typeStr;
} else {
os << cmt;
os << cmt << "," << cmt;
}
os << ",";
os << point->count() << "\n";
Expand Down

0 comments on commit 629da03

Please sign in to comment.