Skip to content

Commit 9f1e88b

Browse files
committed
Fixed coverity CID 1619523 issue.
_____________________________________________________________________________________________ *** CID 1619523: Uninitialized members (UNINIT_CTOR) /src/rsz/src/Rebuffer.cc: 89 in rsz::Rebuffer::Rebuffer(rsz::Resizer *, est::EstimateParasitics *)() 83 } 84 85 Rebuffer::Rebuffer(Resizer* resizer, 86 est::EstimateParasitics* estimate_parasitics) 87 : resizer_(resizer), estimate_parasitics_(estimate_parasitics) 88 { >>> CID 1619523: Uninitialized members (UNINIT_CTOR) >>> Non-static class member "inserted_count_" is not initialized in this constructor nor in any functions that it calls. 89 } 90 91 void Rebuffer::annotateLoadSlacks(BnetPtr& tree, Vertex* root_vertex) 92 { 93 for (auto rf_index : RiseFall::rangeIndex()) { 94 arrival_paths_[rf_index] = nullptr; Signed-off-by: Jaehyun Kim <[email protected]>
1 parent 190ecfc commit 9f1e88b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/rsz/src/Rebuffer.hh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -139,27 +139,27 @@ class Rebuffer : public sta::dbStaState
139139

140140
Logger* logger_ = nullptr;
141141
dbNetwork* db_network_ = nullptr;
142-
Resizer* resizer_;
143-
est::EstimateParasitics* estimate_parasitics_;
142+
Resizer* resizer_ = nullptr;
143+
est::EstimateParasitics* estimate_parasitics_ = nullptr;
144144

145145
std::vector<BufferSize> buffer_sizes_;
146146
std::map<LibertyCell*, BufferSize*> buffer_sizes_index_;
147147

148-
Pin* pin_;
149-
float fanout_limit_;
150-
float drvr_pin_max_slew_;
151-
float drvr_load_high_water_mark_;
148+
Pin* pin_ = nullptr;
149+
float fanout_limit_ = 0.0f;
150+
float drvr_pin_max_slew_ = 0.0f;
151+
float drvr_load_high_water_mark_ = 0.0f;
152152
const Corner* corner_ = nullptr;
153153
LibertyPort* drvr_port_ = nullptr;
154-
Path* arrival_paths_[RiseFall::index_count];
154+
Path* arrival_paths_[RiseFall::index_count] = {0};
155155

156-
int resizer_max_wire_length_;
157-
int wire_length_step_;
156+
int resizer_max_wire_length_ = 0;
157+
int wire_length_step_ = 0;
158158

159-
double initial_design_area_;
160-
int print_interval_;
161-
int removed_count_;
162-
int inserted_count_;
159+
double initial_design_area_ = 0.0;
160+
int print_interval_ = 0;
161+
int removed_count_ = 0;
162+
int inserted_count_ = 0;
163163

164164
// margins in percent
165165
float slew_margin_ = 20.0f;

0 commit comments

Comments
 (0)