message: address clang scan warning
  Result of operation is garbage or undefined.
  1st function call argument is an uninitialized value.
diff: using namespace std;
  using namespace pcm;
  -const uint32 max_sockets = 256;
  +constexpr uint32 max_sockets = 256;
  uint32 max_imc_channels = ServerUncoreCounterState::maxChannels;
  const uint32 max_edc_channels = ServerUncoreCounterState::maxChannels;
  const uint32 max_imc_controllers = ServerUncoreCounterState::maxControllers;
  @@ -336,13 +336,13 @@ void display_bandwidth(PCM *m, memdata_t *md, const uint32 no_columns, const boo
  \r|-- DDR4 Channel Monitoring --||-- MCDRAM Channel Monitoring --|\n\
  \r|---------------------------------------||---------------------------------------|\n\
  \r";
  - uint32 max_channels = max_imc_channels <= max_edc_channels ? max_edc_channels : max_imc_channels;
  + const uint32 max_channels = (std::max)(max_edc_channels, max_imc_channels);
  if (show_channel_output)
  {
  float iMC_Rd, iMC_Wr, EDC_Rd, EDC_Wr;
  for (uint64 channel = 0; channel < max_channels; ++channel)
  {
  - if (channel <= max_imc_channels)
  + if (channel < max_imc_channels)
  {
  iMC_Rd = md->iMC_Rd_socket_chan[skt][channel];
  iMC_Wr = md->iMC_Wr_socket_chan[skt][channel];
  @@ -352,7 +352,7 @@ void display_bandwidth(PCM *m, memdata_t *md, const uint32 no_columns, const boo
  iMC_Rd = -1.0;
  iMC_Wr = -1.0;
  }
  - if (channel <= max_edc_channels)
  + if (channel < max_edc_channels)
  {
  EDC_Rd = md->EDC_Rd_socket_chan[skt][channel];
  EDC_Wr = md->EDC_Wr_socket_chan[skt][channel];
  @@ -640,7 +640,7 @@ void calculate_bandwidth(PCM *m, const ServerUncoreCounterState uncState1[], con
  md.PMM = PMM;
  md.PMMMixedMode = PMMMixedMode;
  - for(uint32 skt = 0; skt < m->getNumSockets(); ++skt)
  + for(uint32 skt = 0; skt < max_sockets; ++skt)
  {
  md.iMC_Rd_socket[skt] = 0.0;
  md.iMC_Wr_socket[skt] = 0.0;
  @@ -654,6 +654,10 @@ void calculate_bandwidth(PCM *m, const ServerUncoreCounterState uncState1[], con
  {
  md.M2M_NM_read_hit_rate[skt][i] = 0.;
  }
  + }
  +
  + for(uint32 skt = 0; skt < m->getNumSockets(); ++skt)
  + {
  const uint32 numChannels1 = (uint32)m->getMCChannels(skt, 0); // number of channels in the first controller
  auto toBW = [&elapsedTime](const uint64 nEvents)
  