@@ -140,8 +140,9 @@ void Restructure::getBlob(unsigned max_depth)
140140
141141void Restructure::runABC ()
142142{
143- input_blif_file_name_ = work_dir_name_ + std::string (block_->getConstName ())
144- + " _crit_path.blif" ;
143+ const std::string prefix
144+ = work_dir_name_ + std::string (block_->getConstName ());
145+ input_blif_file_name_ = prefix + " _crit_path.blif" ;
145146 std::vector<std::string> files_to_remove;
146147
147148 debugPrint (logger_,
@@ -183,15 +184,14 @@ void Restructure::runABC()
183184 for (size_t curr_mode_idx = 0 ; curr_mode_idx < modes.size ();
184185 curr_mode_idx++) {
185186 output_blif_file_name_
186- = work_dir_name_ + std::string (block_->getConstName ())
187- + std::to_string (curr_mode_idx) + " _crit_path_out.blif" ;
187+ = prefix + std::to_string (curr_mode_idx) + " _crit_path_out.blif" ;
188188
189189 opt_mode_ = modes[curr_mode_idx];
190190
191191 const std::string abc_script_file
192- = work_dir_name_ + std::to_string (curr_mode_idx) + " ord_abc_script.tcl" ;
192+ = prefix + std::to_string (curr_mode_idx) + " ord_abc_script.tcl" ;
193193 if (logfile_ == " " ) {
194- logfile_ = work_dir_name_ + " abc.log" ;
194+ logfile_ = prefix + " abc.log" ;
195195 }
196196
197197 debugPrint (logger_,
@@ -226,8 +226,7 @@ void Restructure::runABC()
226226 }
227227
228228 output_blif_file_name_
229- = work_dir_name_ + std::string (block_->getConstName ())
230- + std::to_string (curr_mode_idx) + " _crit_path_out.blif" ;
229+ = prefix + std::to_string (curr_mode_idx) + " _crit_path_out.blif" ;
231230 const std::string abc_log_name = logfile_ + std::to_string (curr_mode_idx);
232231
233232 int level_gain = 0 ;
0 commit comments