callgraph:

Port_Ipw_RefreshPortDirection/12 (Port_Ipw_RefreshPortDirection) @060737e0
  Type: function
  Visibility: external public
  References: 
  Referring: 
  Availability: not_available
  Function flags: optimize_size
  Called by: Port_RefreshPortDirection/5 (301440132 (estimated locally),0.28 per call) 
  Calls: 
Port_Ipw_SetPinMode/11 (Port_Ipw_SetPinMode) @06073620
  Type: function
  Visibility: external public
  References: 
  Referring: 
  Availability: not_available
  Function flags: optimize_size
  Called by: Port_SetPinMode/4 (198994816 (estimated locally),0.19 per call) 
  Calls: 
Port_Ipw_SetPinDirection/10 (Port_Ipw_SetPinDirection) @06073460
  Type: function
  Visibility: external public
  References: 
  Referring: 
  Availability: not_available
  Function flags: optimize_size
  Called by: Port_SetPinDirection/3 (297007189 (estimated locally),0.28 per call) 
  Calls: 
Port_Ipw_Init/9 (Port_Ipw_Init) @060732a0
  Type: function
  Visibility: external public
  References: 
  Referring: 
  Availability: not_available
  Function flags: optimize_size
  Called by: Port_Init/2 (169868104 (estimated locally),0.16 per call) 
  Calls: 
Det_ReportError/7 (Det_ReportError) @060731c0
  Type: function
  Visibility: external public
  References: 
  Referring: 
  Availability: not_available
  Function flags: optimize_size
  Called by: Port_GetVersionInfo/6 (187153200 (estimated locally),0.17 per call) Port_RefreshPortDirection/5 (585148493 (estimated locally),0.54 per call) Port_RefreshPortDirection/5 (187153200 (estimated locally),0.17 per call) Port_SetPinMode/4 (40276551 (estimated locally),0.04 per call) Port_SetPinMode/4 (198994816 (estimated locally),0.19 per call) Port_SetPinMode/4 (196024745 (estimated locally),0.18 per call) Port_SetPinMode/4 (292574246 (estimated locally),0.27 per call) Port_SetPinMode/4 (187153200 (estimated locally),0.17 per call) Port_SetPinDirection/3 (60114255 (estimated locally),0.06 per call) Port_SetPinDirection/3 (297007189 (estimated locally),0.28 per call) Port_SetPinDirection/3 (292574246 (estimated locally),0.27 per call) Port_SetPinDirection/3 (187153200 (estimated locally),0.17 per call) Port_Init/2 (329743967 (estimated locally),0.31 per call) Port_Init/2 (574129754 (estimated locally),0.53 per call) 
  Calls: 
Port_GetVersionInfo/6 (Port_GetVersionInfo) @05e928c0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: Det_ReportError/7 (187153200 (estimated locally),0.17 per call) 
Port_RefreshPortDirection/5 (Port_RefreshPortDirection) @05e92540
  Type: function definition analyzed
  Visibility: externally_visible public
  References: Port_pConfig/1 (read)
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: Port_Ipw_RefreshPortDirection/12 (301440132 (estimated locally),0.28 per call) Det_ReportError/7 (585148493 (estimated locally),0.54 per call) Det_ReportError/7 (187153200 (estimated locally),0.17 per call) 
Port_SetPinMode/4 (Port_SetPinMode) @05e92d20
  Type: function definition analyzed
  Visibility: externally_visible public
  References: Port_pConfig/1 (read)
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: Det_ReportError/7 (40276551 (estimated locally),0.04 per call) Port_Ipw_SetPinMode/11 (198994816 (estimated locally),0.19 per call) Det_ReportError/7 (198994816 (estimated locally),0.19 per call) Det_ReportError/7 (196024745 (estimated locally),0.18 per call) Det_ReportError/7 (292574246 (estimated locally),0.27 per call) Det_ReportError/7 (187153200 (estimated locally),0.17 per call) 
Port_SetPinDirection/3 (Port_SetPinDirection) @05e92a80
  Type: function definition analyzed
  Visibility: externally_visible public
  References: Port_pConfig/1 (read)
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: Det_ReportError/7 (60114255 (estimated locally),0.06 per call) Port_Ipw_SetPinDirection/10 (297007189 (estimated locally),0.28 per call) Det_ReportError/7 (297007189 (estimated locally),0.28 per call) Det_ReportError/7 (292574246 (estimated locally),0.27 per call) Det_ReportError/7 (187153200 (estimated locally),0.17 per call) 
Port_Init/2 (Port_Init) @05e927e0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: Port_Config/8 (read)Port_Config/8 (addr)Port_pConfig/1 (write)Port_Config/8 (addr)
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: Port_Ipw_Init/9 (169868104 (estimated locally),0.16 per call) Det_ReportError/7 (329743967 (estimated locally),0.31 per call) Det_ReportError/7 (574129754 (estimated locally),0.53 per call) 
Clearing variable flags:

Promotable global:Port_pConfig (uid=5752)

Function name:Port_GetVersionInfo/6:
  locals read: 
  locals written: 
Function name:Port_RefreshPortDirection/5:
  locals read: Port_pConfig 
  locals written: 
Function name:Port_SetPinMode/4:
  locals read: Port_pConfig 
  locals written: 
Function name:Port_SetPinDirection/3:
  locals read: Port_pConfig 
  locals written: 
Function name:Port_Init/2:
  locals read: 
  locals written: Port_pConfig 

 ordered call graph: reduced
Port_GetVersionInfo/6 (Port_GetVersionInfo) @05e928c0
  Type: function definition analyzed
  Visibility: externally_visible public
  Aux: @05d78010
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: Det_ReportError/7 (187153200 (estimated locally),0.17 per call) 
Port_RefreshPortDirection/5 (Port_RefreshPortDirection) @05e92540
  Type: function definition analyzed
  Visibility: externally_visible public
  Aux: @05d77ff0
  References: Port_pConfig/1 (read)
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: Port_Ipw_RefreshPortDirection/12 (301440132 (estimated locally),0.28 per call) Det_ReportError/7 (585148493 (estimated locally),0.54 per call) Det_ReportError/7 (187153200 (estimated locally),0.17 per call) 
Port_SetPinMode/4 (Port_SetPinMode) @05e92d20
  Type: function definition analyzed
  Visibility: externally_visible public
  Aux: @05d78110
  References: Port_pConfig/1 (read)
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: Det_ReportError/7 (40276551 (estimated locally),0.04 per call) Port_Ipw_SetPinMode/11 (198994816 (estimated locally),0.19 per call) Det_ReportError/7 (198994816 (estimated locally),0.19 per call) Det_ReportError/7 (196024745 (estimated locally),0.18 per call) Det_ReportError/7 (292574246 (estimated locally),0.27 per call) Det_ReportError/7 (187153200 (estimated locally),0.17 per call) 
Port_SetPinDirection/3 (Port_SetPinDirection) @05e92a80
  Type: function definition analyzed
  Visibility: externally_visible public
  Aux: @05d781f0
  References: Port_pConfig/1 (read)
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: Det_ReportError/7 (60114255 (estimated locally),0.06 per call) Port_Ipw_SetPinDirection/10 (297007189 (estimated locally),0.28 per call) Det_ReportError/7 (297007189 (estimated locally),0.28 per call) Det_ReportError/7 (292574246 (estimated locally),0.27 per call) Det_ReportError/7 (187153200 (estimated locally),0.17 per call) 
Port_Init/2 (Port_Init) @05e927e0
  Type: function definition analyzed
  Visibility: externally_visible public
  Aux: @05d780d0
  References: Port_Config/8 (read)Port_Config/8 (addr)Port_pConfig/1 (write)Port_Config/8 (addr)
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: Port_Ipw_Init/9 (169868104 (estimated locally),0.16 per call) Det_ReportError/7 (329743967 (estimated locally),0.31 per call) Det_ReportError/7 (574129754 (estimated locally),0.53 per call) 


Function name:Port_Init/2:
    locals read: 
    locals written: Port_pConfig 
  globals read: ALL
  globals written: ALL

Function name:Port_SetPinDirection/3:
    locals read: Port_pConfig 
    locals written: 
  globals read: ALL
  globals written: ALL

Function name:Port_SetPinMode/4:
    locals read: Port_pConfig 
    locals written: 
  globals read: ALL
  globals written: ALL

Function name:Port_RefreshPortDirection/5:
    locals read: Port_pConfig 
    locals written: 
  globals read: ALL
  globals written: ALL

Function name:Port_GetVersionInfo/6:
    locals read: 
    locals written: 
  globals read: ALL
  globals written: ALL
Port_GetVersionInfo (struct Std_VersionInfoType * versioninfo)
{
  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  if (versioninfo_2(D) == 0B)
    goto <bb 3>; [17.43%]
  else
    goto <bb 4>; [82.57%]

  <bb 3> [local count: 187153200]:
  # DEBUG BEGIN_STMT
  Det_ReportError (124, 0, 3, 16);
  goto <bb 5>; [100.00%]

  <bb 4> [local count: 886588625]:
  # DEBUG BEGIN_STMT
  versioninfo_2(D)->vendorID = 43;
  # DEBUG BEGIN_STMT
  versioninfo_2(D)->moduleID = 124;
  # DEBUG BEGIN_STMT
  versioninfo_2(D)->sw_major_version = 1;
  # DEBUG BEGIN_STMT
  versioninfo_2(D)->sw_minor_version = 0;
  # DEBUG BEGIN_STMT
  versioninfo_2(D)->sw_patch_version = 0;

  <bb 5> [local count: 1073741824]:
  return;

}


Port_RefreshPortDirection ()
{
  const struct Port_ConfigType * Port_pConfig.9_1;
  const uint8 * _2;
  unsigned char _3;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  Port_pConfig.9_1 = Port_pConfig;
  if (Port_pConfig.9_1 == 0B)
    goto <bb 3>; [17.43%]
  else
    goto <bb 4>; [82.57%]

  <bb 3> [local count: 187153200]:
  # DEBUG BEGIN_STMT
  Det_ReportError (124, 0, 2, 15);
  goto <bb 7>; [100.00%]

  <bb 4> [local count: 886588625]:
  # DEBUG BEGIN_STMT
  _2 = Port_pConfig.9_1->pau8Port_PartitionList;
  _3 = *_2;
  if (_3 != 1)
    goto <bb 5>; [66.00%]
  else
    goto <bb 6>; [34.00%]

  <bb 5> [local count: 585148493]:
  # DEBUG BEGIN_STMT
  Det_ReportError (124, 0, 2, 240);
  goto <bb 7>; [100.00%]

  <bb 6> [local count: 301440132]:
  # DEBUG BEGIN_STMT
  Port_Ipw_RefreshPortDirection (Port_pConfig.9_1);

  <bb 7> [local count: 1073741824]:
  return;

}


Port_SetPinMode (Port_PinType Pin, Port_PinModeType Mode)
{
  uint8 u8PinModeError;
  const struct Port_ConfigType * Port_pConfig.4_1;
  short unsigned int _2;
  long unsigned int _3;
  const uint32 * _4;
  long unsigned int _5;
  const uint32 * _6;
  long unsigned int _7;
  long unsigned int _8;
  const struct Port_PinConfigType * _9;
  long unsigned int _10;
  const struct Port_PinConfigType * _11;
  _Bool _12;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG u8PinModeError => 0
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  Port_pConfig.4_1 = Port_pConfig;
  if (Port_pConfig.4_1 == 0B)
    goto <bb 3>; [17.43%]
  else
    goto <bb 4>; [82.57%]

  <bb 3> [local count: 187153200]:
  # DEBUG BEGIN_STMT
  Det_ReportError (124, 0, 4, 15);
  goto <bb 12>; [100.00%]

  <bb 4> [local count: 886588625]:
  # DEBUG BEGIN_STMT
  _2 = Port_pConfig.4_1->u16NumPins;
  _3 = (long unsigned int) _2;
  if (_3 <= Pin_15(D))
    goto <bb 5>; [33.00%]
  else
    goto <bb 6>; [67.00%]

  <bb 5> [local count: 292574246]:
  # DEBUG BEGIN_STMT
  Det_ReportError (124, 0, 4, 10);
  goto <bb 12>; [100.00%]

  <bb 6> [local count: 594014379]:
  # DEBUG BEGIN_STMT
  _4 = Port_pConfig.4_1->pau32Port_PinToPartitionMap;
  _5 = Pin_15(D) * 4;
  _6 = _4 + _5;
  _7 = *_6;
  _8 = _7 & 1;
  if (_8 == 0)
    goto <bb 7>; [33.00%]
  else
    goto <bb 8>; [67.00%]

  <bb 7> [local count: 196024745]:
  # DEBUG BEGIN_STMT
  Det_ReportError (124, 0, 4, 240);
  goto <bb 12>; [100.00%]

  <bb 8> [local count: 397989633]:
  # DEBUG BEGIN_STMT
  _9 = Port_pConfig.4_1->pUsedPadConfig;
  _10 = Pin_15(D) * 20;
  _11 = _9 + _10;
  _12 = _11->bMC;
  if (_12 != 0)
    goto <bb 10>; [50.00%]
  else
    goto <bb 9>; [50.00%]

  <bb 9> [local count: 198994816]:
  # DEBUG BEGIN_STMT
  Det_ReportError (124, 0, 4, 14);
  goto <bb 12>; [100.00%]

  <bb 10> [local count: 198994816]:
  # DEBUG BEGIN_STMT
  u8PinModeError_18 = Port_Ipw_SetPinMode (Pin_15(D), Mode_16(D), Port_pConfig.4_1);
  # DEBUG u8PinModeError => u8PinModeError_18
  # DEBUG BEGIN_STMT
  if (u8PinModeError_18 == 13)
    goto <bb 11>; [20.24%]
  else
    goto <bb 12>; [79.76%]

  <bb 11> [local count: 40276551]:
  # DEBUG BEGIN_STMT
  Det_ReportError (124, 0, 4, 13);

  <bb 12> [local count: 1073741824]:
  return;

}


Port_SetPinDirection (Port_PinType Pin, Port_PinDirectionType Direction)
{
  Std_ReturnType ErrStatus;
  const struct Port_ConfigType * Port_pConfig.0_1;
  short unsigned int _2;
  long unsigned int _3;
  const uint32 * _4;
  long unsigned int _5;
  const uint32 * _6;
  long unsigned int _7;
  long unsigned int _8;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  Port_pConfig.0_1 = Port_pConfig;
  if (Port_pConfig.0_1 == 0B)
    goto <bb 3>; [17.43%]
  else
    goto <bb 4>; [82.57%]

  <bb 3> [local count: 187153200]:
  # DEBUG BEGIN_STMT
  Det_ReportError (124, 0, 1, 15);
  goto <bb 10>; [100.00%]

  <bb 4> [local count: 886588625]:
  # DEBUG BEGIN_STMT
  _2 = Port_pConfig.0_1->u16NumPins;
  _3 = (long unsigned int) _2;
  if (_3 <= Pin_11(D))
    goto <bb 5>; [33.00%]
  else
    goto <bb 6>; [67.00%]

  <bb 5> [local count: 292574246]:
  # DEBUG BEGIN_STMT
  Det_ReportError (124, 0, 1, 10);
  goto <bb 10>; [100.00%]

  <bb 6> [local count: 594014379]:
  # DEBUG BEGIN_STMT
  _4 = Port_pConfig.0_1->pau32Port_PinToPartitionMap;
  _5 = Pin_11(D) * 4;
  _6 = _4 + _5;
  _7 = *_6;
  _8 = _7 & 1;
  if (_8 == 0)
    goto <bb 7>; [50.00%]
  else
    goto <bb 8>; [50.00%]

  <bb 7> [local count: 297007189]:
  # DEBUG BEGIN_STMT
  Det_ReportError (124, 0, 1, 240);
  goto <bb 10>; [100.00%]

  <bb 8> [local count: 297007189]:
  # DEBUG BEGIN_STMT
  ErrStatus_14 = Port_Ipw_SetPinDirection (Pin_11(D), Direction_12(D), Port_pConfig.0_1);
  # DEBUG ErrStatus => ErrStatus_14
  # DEBUG BEGIN_STMT
  if (ErrStatus_14 == 1)
    goto <bb 9>; [20.24%]
  else
    goto <bb 10>; [79.76%]

  <bb 9> [local count: 60114255]:
  # DEBUG BEGIN_STMT
  Det_ReportError (124, 0, 1, 11);

  <bb 10> [local count: 1073741824]:
  return;

}


Port_Init (const struct Port_ConfigType * ConfigPtr)
{
  const uint8 * _1;
  unsigned char _2;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG pLocalConfigPtr => ConfigPtr_4(D)
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  if (ConfigPtr_4(D) != 0B)
    goto <bb 3>; [53.47%]
  else
    goto <bb 4>; [46.53%]

  <bb 3> [local count: 574129754]:
  # DEBUG BEGIN_STMT
  Det_ReportError (124, 0, 0, 12);
  goto <bb 7>; [100.00%]

  <bb 4> [local count: 499612071]:
  # DEBUG BEGIN_STMT
  # DEBUG pLocalConfigPtr => &Port_Config
  # DEBUG BEGIN_STMT
  _1 = Port_Config.pau8Port_PartitionList;
  _2 = *_1;
  if (_2 != 1)
    goto <bb 5>; [66.00%]
  else
    goto <bb 6>; [34.00%]

  <bb 5> [local count: 329743967]:
  # DEBUG BEGIN_STMT
  Det_ReportError (124, 0, 0, 240);
  goto <bb 7>; [100.00%]

  <bb 6> [local count: 169868104]:
  # DEBUG BEGIN_STMT
  Port_Ipw_Init (&Port_Config);
  # DEBUG BEGIN_STMT
  Port_pConfig = &Port_Config;

  <bb 7> [local count: 1073741824]:
  return;

}


