@@ -75,7 +75,7 @@ class AbcTest : public ::testing::Test
7575 sta_ = std::unique_ptr<sta::dbSta>(sta::makeDbSta ());
7676 sta_->initVars (Tcl_CreateInterp (), db_.get (), &logger_);
7777 auto path = std::filesystem::canonical (" ./Nangate45/Nangate45_typ.lib" );
78- library_ = sta_->readLiberty (path.string (). c_str (),
78+ library_ = sta_->readLiberty (path.c_str (),
7979 sta_->findCorner (" default" ),
8080 /* min_max=*/ sta::MinMaxAll::all (),
8181 /* infer_latches=*/ false );
@@ -87,10 +87,9 @@ class AbcTest : public ::testing::Test
8787 = std::filesystem::canonical (" ./Nangate45/Nangate45_tech.lef" );
8888 auto stdcell_lef
8989 = std::filesystem::canonical (" ./Nangate45/Nangate45_stdcell.lef" );
90- odb::dbTech* tech
91- = lef_reader.createTech (" nangate45" , tech_lef.string ().c_str ());
90+ odb::dbTech* tech = lef_reader.createTech (" nangate45" , tech_lef.c_str ());
9291 odb::dbLib* lib
93- = lef_reader.createLib (tech, " nangate45" , stdcell_lef.string (). c_str ());
92+ = lef_reader.createLib (tech, " nangate45" , stdcell_lef.c_str ());
9493
9594 sta_->postReadLef (/* tech=*/ nullptr , lib);
9695
@@ -174,7 +173,7 @@ class AbcTestSky130 : public AbcTest
174173 sta_->initVars (Tcl_CreateInterp (), db_.get (), &logger_);
175174 auto path = std::filesystem::canonical (
176175 " ./sky130/sky130_fd_sc_hd__ss_n40C_1v40.lib" );
177- library_ = sta_->readLiberty (path.string (). c_str (),
176+ library_ = sta_->readLiberty (path.c_str (),
178177 sta_->findCorner (" default" ),
179178 /* min_max=*/ sta::MinMaxAll::all (),
180179 /* infer_latches=*/ false );
@@ -185,10 +184,8 @@ class AbcTestSky130 : public AbcTest
185184 auto tech_lef = std::filesystem::canonical (" ./sky130/sky130hd.tlef" );
186185 auto stdcell_lef
187186 = std::filesystem::canonical (" ./sky130/sky130hd_std_cell.lef" );
188- odb::dbTech* tech
189- = lef_reader.createTech (" sky130" , tech_lef.string ().c_str ());
190- odb::dbLib* lib
191- = lef_reader.createLib (tech, " sky130" , stdcell_lef.string ().c_str ());
187+ odb::dbTech* tech = lef_reader.createTech (" sky130" , tech_lef.c_str ());
188+ odb::dbLib* lib = lef_reader.createLib (tech, " sky130" , stdcell_lef.c_str ());
192189
193190 sta_->postReadLef (/* tech=*/ nullptr , lib);
194191
@@ -220,7 +217,7 @@ class AbcTestAsap7 : public AbcTest
220217
221218 for (const std::string& liberty_path : liberty_paths) {
222219 auto path = std::filesystem::canonical (liberty_path);
223- library_ = sta_->readLiberty (path.string (). c_str (),
220+ library_ = sta_->readLiberty (path.c_str (),
224221 sta_->findCorner (" default" ),
225222 /* min_max=*/ sta::MinMaxAll::all (),
226223 /* infer_latches=*/ false );
@@ -233,10 +230,8 @@ class AbcTestAsap7 : public AbcTest
233230 = std::filesystem::canonical (" ./asap7/asap7_tech_1x_201209.lef" );
234231 auto stdcell_lef
235232 = std::filesystem::canonical (" ./asap7/asap7sc7p5t_28_R_1x_220121a.lef" );
236- odb::dbTech* tech
237- = lef_reader.createTech (" asap7" , tech_lef.string ().c_str ());
238- odb::dbLib* lib
239- = lef_reader.createLib (tech, " asap7" , stdcell_lef.string ().c_str ());
233+ odb::dbTech* tech = lef_reader.createTech (" asap7" , tech_lef.c_str ());
234+ odb::dbLib* lib = lef_reader.createLib (tech, " asap7" , stdcell_lef.c_str ());
240235
241236 sta_->postReadLef (/* tech=*/ nullptr , lib);
242237
@@ -667,7 +662,9 @@ TEST_F(AbcTestSky130, EnsureThatSky130MultiOutputConstCellsAreMapped)
667662 std::vector<sta::Net*> primary_outputs = {flop_net};
668663 sta::InstanceSet cut_instances (network);
669664 cut_instances.insert (flop_input_instance);
670- LogicCut cut (primary_inputs, primary_outputs, cut_instances);
665+ LogicCut cut (std::move (primary_inputs),
666+ std::move (primary_outputs),
667+ std::move (cut_instances));
671668
672669 // Create abc network that matches the underlying LogicCut
673670 utl::UniquePtrWithDeleter<abc::Abc_Ntk_t> abc_network (
0 commit comments