@@ -2032,10 +2032,10 @@ void NesterovBase::checkConsistency()
20322032 if (!log_->debugCheck (GPL, " checkConsistency" , 1 )) {
20332033 return ;
20342034 }
2035- auto block = pb_->db ()->getChip ()->getBlock ();
2035+ const auto block = pb_->db ()->getChip ()->getBlock ();
20362036 const int64_t tolerance = 10000 ;
20372037
2038- int64_t expected_white_space
2038+ const int64_t expected_white_space
20392039 = pb_->getDie ().coreArea () - pb_->nonPlaceInstsArea ();
20402040 if (std::abs (whiteSpaceArea_ - expected_white_space) > tolerance) {
20412041 log_->warn (utl::GPL, 319 , " Inconsistent white space area" );
@@ -2048,7 +2048,7 @@ void NesterovBase::checkConsistency()
20482048 block->dbuAreaToMicrons (pb_->nonPlaceInstsArea ()));
20492049 }
20502050
2051- int64_t expected_movable_area = whiteSpaceArea_ * targetDensity_;
2051+ const int64_t expected_movable_area = whiteSpaceArea_ * targetDensity_;
20522052 if (std::abs (movableArea_ - expected_movable_area) > tolerance) {
20532053 log_->warn (utl::GPL, 320 , " Inconsistent movable area 1" );
20542054 log_->report (
@@ -2060,7 +2060,7 @@ void NesterovBase::checkConsistency()
20602060 targetDensity_);
20612061 }
20622062
2063- int64_t expected_filler_area = movableArea_ - getNesterovInstsArea ();
2063+ const int64_t expected_filler_area = movableArea_ - getNesterovInstsArea ();
20642064 if (std::abs (totalFillerArea_ - expected_filler_area) > tolerance) {
20652065 log_->warn (utl::GPL, 321 , " Inconsistent filler area" );
20662066 log_->report (
@@ -3042,8 +3042,8 @@ bool NesterovBase::checkDivergence()
30423042 float hpwl_increase = (static_cast <float >(prev_hpwl_ - prev_reported_hpwl_))
30433043 / static_cast <float >(prev_reported_hpwl_);
30443044
3045- float overflow_acceptance = 0 .05f ;
3046- float hpwl_acceptance = 0 .25f ;
3045+ const float overflow_acceptance = 0 .05f ;
3046+ const float hpwl_acceptance = 0 .25f ;
30473047 if (overflow_change >= overflow_acceptance
30483048 && hpwl_increase >= hpwl_acceptance) {
30493049 isDiverged_ = true ;
0 commit comments