
Marking local functions:


Marking externally visible functions: Ram_Ip_InitRamSection


Marking externally visible variables:

Clearing variable flags:

Reclaiming functions:
Reclaiming variables:
Clearing address taken flags:
Symbol table:

Ram_Ip_InitRamSection/0 (Ram_Ip_InitRamSection) @06a0b540
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:114863534 (estimated locally) body optimize_size
  Called by: 
  Calls: 
Ram_Ip_InitRamSection (const struct Ram_Ip_RamConfigType * Ram_Ip_pRamConfigPtr)
{
  Ram_Ip_RamSizeType RamCounterLimit;
  Ram_Ip_RamIndexType RamCounter;
  Ram_Ip_StatusType RamStatus;
  Ram_Ip_RamSizeType * _1;
  long unsigned int _2;
  long unsigned int _3;
  long unsigned int _4;
  long long unsigned int _5;
  uint8[1] * _6;
  unsigned char _7;
  long long unsigned int _8;
  uint8[1] * _9;
  short unsigned int _10;
  long long unsigned int _11;
  uint8[1] * _12;
  long unsigned int _13;
  uint8[1] * _14;
  long long unsigned int _15;
  long unsigned int _16;
  long long unsigned int _17;
  unsigned char _18;
  uint8[1] * _19;
  unsigned char _20;
  long long unsigned int _21;
  short unsigned int _22;
  uint8[1] * _23;
  short unsigned int _24;
  long long unsigned int _25;
  long unsigned int _26;
  uint8[1] * _27;
  long unsigned int _28;
  long long unsigned int _29;
  uint8[1] * _30;
  long long unsigned int _31;

  <bb 2> [local count: 114863534]:
  # DEBUG BEGIN_STMT
  # DEBUG RamStatus => 0
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  _1 = Ram_Ip_pRamConfigPtr_42(D)->RamSize;
  _2 = (long unsigned int) _1;
  _3 = Ram_Ip_pRamConfigPtr_42(D)->RamWriteSize;
  RamCounterLimit_43 = _2 / _3;
  # DEBUG RamCounterLimit => RamCounterLimit_43
  # DEBUG BEGIN_STMT
  # DEBUG RamStatus => 0
  # DEBUG BEGIN_STMT
  # DEBUG RamCounter => 0
  # DEBUG BEGIN_STMT
  goto <bb 9>; [100.00%]

  <bb 3> [local count: 958878293]:
  # DEBUG BEGIN_STMT
  _4 = Ram_Ip_pRamConfigPtr_42(D)->RamWriteSize;
  switch (_4) <default: <L31> [20.00%], case 1: <L1> [20.00%], case 2: <L2> [20.00%], case 4: <L3> [20.00%], case 8: <L4> [20.00%]>

  <bb 4> [local count: 191775658]:
<L1>:
  # DEBUG BEGIN_STMT
  _5 = Ram_Ip_pRamConfigPtr_42(D)->u64RamDefaultValue;
  _6 = Ram_Ip_pRamConfigPtr_42(D)->pu8RamBaseAddr;
  _7 = (unsigned char) _5;
  *_6[RamCounter_37] = _7;
  # DEBUG BEGIN_STMT
  goto <bb 8>; [100.00%]

  <bb 5> [local count: 191775658]:
<L2>:
  # DEBUG BEGIN_STMT
  _8 = Ram_Ip_pRamConfigPtr_42(D)->u64RamDefaultValue;
  _9 = Ram_Ip_pRamConfigPtr_42(D)->pu8RamBaseAddr;
  _10 = (short unsigned int) _8;
  MEM[(uint16[1] *)_9][RamCounter_37] = _10;
  # DEBUG BEGIN_STMT
  goto <bb 8>; [100.00%]

  <bb 6> [local count: 191775658]:
<L3>:
  # DEBUG BEGIN_STMT
  _11 = Ram_Ip_pRamConfigPtr_42(D)->u64RamDefaultValue;
  _12 = Ram_Ip_pRamConfigPtr_42(D)->pu8RamBaseAddr;
  _13 = (long unsigned int) _11;
  MEM[(uint32[1] *)_12][RamCounter_37] = _13;
  # DEBUG BEGIN_STMT
  goto <bb 8>; [100.00%]

  <bb 7> [local count: 191775658]:
<L4>:
  # DEBUG BEGIN_STMT
  _14 = Ram_Ip_pRamConfigPtr_42(D)->pu8RamBaseAddr;
  _15 = Ram_Ip_pRamConfigPtr_42(D)->u64RamDefaultValue;
  MEM[(uint64[1] *)_14][RamCounter_37] = _15;
  # DEBUG BEGIN_STMT

  <bb 8> [local count: 958878293]:
  # RamStatus_32 = PHI <0(4), 0(5), 0(6), 0(7), 1(3)>
<L31>:
  # DEBUG RamStatus => RamStatus_32
  # DEBUG BEGIN_STMT
  RamCounter_48 = RamCounter_37 + 1;
  # DEBUG RamCounter => RamCounter_48

  <bb 9> [local count: 1073741824]:
  # RamStatus_33 = PHI <0(2), RamStatus_32(8)>
  # RamCounter_37 = PHI <0(2), RamCounter_48(8)>
  # DEBUG RamCounter => RamCounter_37
  # DEBUG RamStatus => RamStatus_33
  # DEBUG BEGIN_STMT
  if (RamCounter_37 < RamCounterLimit_43)
    goto <bb 10>; [94.50%]
  else
    goto <bb 11>; [5.50%]

  <bb 10> [local count: 1014686025]:
  if (RamStatus_33 == 0)
    goto <bb 3>; [94.50%]
  else
    goto <bb 11>; [5.50%]

  <bb 11> [local count: 114863532]:
  # RamStatus_50 = PHI <RamStatus_33(9), RamStatus_33(10)>
  # DEBUG BEGIN_STMT
  if (RamStatus_50 == 0)
    goto <bb 25>; [50.00%]
  else
    goto <bb 24>; [50.00%]

  <bb 25> [local count: 57431766]:
  goto <bb 22>; [100.00%]

  <bb 12> [local count: 479439145]:
  # DEBUG BEGIN_STMT
  _16 = Ram_Ip_pRamConfigPtr_42(D)->RamWriteSize;
  switch (_16) <default: <L32> [20.00%], case 1: <L12> [20.00%], case 2: <L15> [20.00%], case 4: <L18> [20.00%], case 8: <L21> [20.00%]>

  <bb 13> [local count: 95887829]:
<L12>:
  # DEBUG BEGIN_STMT
  _17 = Ram_Ip_pRamConfigPtr_42(D)->u64RamDefaultValue;
  _18 = (unsigned char) _17;
  _19 = Ram_Ip_pRamConfigPtr_42(D)->pu8RamBaseAddr;
  _20 = *_19[RamCounter_38];
  if (_18 != _20)
    goto <bb 14>; [66.00%]
  else
    goto <bb 21>; [34.00%]

  <bb 14> [local count: 63285967]:
  # DEBUG BEGIN_STMT
  # DEBUG RamStatus => 1
  goto <bb 21>; [100.00%]

  <bb 15> [local count: 95887829]:
<L15>:
  # DEBUG BEGIN_STMT
  _21 = Ram_Ip_pRamConfigPtr_42(D)->u64RamDefaultValue;
  _22 = (short unsigned int) _21;
  _23 = Ram_Ip_pRamConfigPtr_42(D)->pu8RamBaseAddr;
  _24 = MEM[(uint16[1] *)_23][RamCounter_38];
  if (_22 != _24)
    goto <bb 16>; [66.00%]
  else
    goto <bb 21>; [34.00%]

  <bb 16> [local count: 63285967]:
  # DEBUG BEGIN_STMT
  # DEBUG RamStatus => 1
  goto <bb 21>; [100.00%]

  <bb 17> [local count: 95887829]:
<L18>:
  # DEBUG BEGIN_STMT
  _25 = Ram_Ip_pRamConfigPtr_42(D)->u64RamDefaultValue;
  _26 = (long unsigned int) _25;
  _27 = Ram_Ip_pRamConfigPtr_42(D)->pu8RamBaseAddr;
  _28 = MEM[(uint32[1] *)_27][RamCounter_38];
  if (_26 != _28)
    goto <bb 18>; [66.00%]
  else
    goto <bb 21>; [34.00%]

  <bb 18> [local count: 63285967]:
  # DEBUG BEGIN_STMT
  # DEBUG RamStatus => 1
  goto <bb 21>; [100.00%]

  <bb 19> [local count: 95887829]:
<L21>:
  # DEBUG BEGIN_STMT
  _29 = Ram_Ip_pRamConfigPtr_42(D)->u64RamDefaultValue;
  _30 = Ram_Ip_pRamConfigPtr_42(D)->pu8RamBaseAddr;
  _31 = MEM[(uint64[1] *)_30][RamCounter_38];
  if (_29 != _31)
    goto <bb 20>; [66.00%]
  else
    goto <bb 21>; [34.00%]

  <bb 20> [local count: 63285967]:
  # DEBUG BEGIN_STMT
  # DEBUG RamStatus => 1

  <bb 21> [local count: 479439145]:
  # RamStatus_34 = PHI <1(14), 1(16), 1(18), 1(20), 1(12), 0(13), 0(15), 0(17), 0(19)>
<L32>:
  # DEBUG RamStatus => RamStatus_34
  # DEBUG BEGIN_STMT
  RamCounter_49 = RamCounter_38 + 1;
  # DEBUG RamCounter => RamCounter_49

  <bb 22> [local count: 536870911]:
  # RamStatus_35 = PHI <RamStatus_34(21), 0(25)>
  # RamCounter_38 = PHI <RamCounter_49(21), 0(25)>
  # DEBUG RamCounter => RamCounter_38
  # DEBUG RamStatus => RamStatus_35
  # DEBUG BEGIN_STMT
  if (RamCounter_38 < RamCounterLimit_43)
    goto <bb 23>; [94.50%]
  else
    goto <bb 24>; [5.50%]

  <bb 23> [local count: 507343011]:
  if (RamStatus_35 == 0)
    goto <bb 12>; [94.50%]
  else
    goto <bb 24>; [5.50%]

  <bb 24> [local count: 114863532]:
  # RamStatus_36 = PHI <RamStatus_50(11), RamStatus_35(22), RamStatus_35(23)>
  # DEBUG RamStatus => RamStatus_36
  # DEBUG BEGIN_STMT
  return RamStatus_36;

}


