
Analyzing function: GetStatistics/31
;; 1 loops found
;;
;; Loop 0
;;  header 0, latch 1
;;  depth 0, outer -1
;;  nodes: 0 1 2
;; 2 succs { 1 }

Analyzing function body size: GetStatistics

IPA function summary for GetStatistics/31 inlinable
  global time:     54.000000
  self size:       19
  global size:     0
  min size:       0
  self stack:      0
  global stack:    0
    size:4.000000, time:4.000000
    size:3.000000, time:2.000000,  executed if:(not inlined)
  calls:
    Eth_43_PFE_GetTxErrorCounterValues/41 function body not available
      loop depth: 0 freq:1.00 size: 3 time: 12
       op1 is compile time invariant
    Eth_43_PFE_GetTxStats/40 function body not available
      loop depth: 0 freq:1.00 size: 3 time: 12
       op1 is compile time invariant
    Eth_43_PFE_GetRxStats/39 function body not available
      loop depth: 0 freq:1.00 size: 3 time: 12
       op1 is compile time invariant
    Eth_43_PFE_GetCounterValues/38 function body not available
      loop depth: 0 freq:1.00 size: 3 time: 12
       op1 is compile time invariant


Analyzing function: main/30
;; 3 loops found
;;
;; Loop 0
;;  header 0, latch 1
;;  depth 0, outer -1
;;  nodes: 0 1 2 3 15 14 4 5 6 7 8 9 11 13 12
;;
;; Loop 2
;;  header 13, latch 11
;;  depth 1, outer 0
;;  nodes: 13 11 8 9 6 7 4 5
;;
;; Loop 1
;;  header 3, latch 15
;;  depth 1, outer 0
;;  nodes: 3 15
;; 2 succs { 3 }
;; 3 succs { 15 14 }
;; 15 succs { 3 }
;; 14 succs { 13 }
;; 4 succs { 5 6 }
;; 5 succs { 6 }
;; 6 succs { 7 8 }
;; 7 succs { 8 }
;; 8 succs { 9 11 }
;; 9 succs { 11 }
;; 11 succs { 13 }
;; 13 succs { 4 12 }
;; 12 succs { 1 }

Analyzing function body size: main

IPA function summary for main/30 inlinable
  global time:     199.216617
  self size:       26
  global size:     0
  min size:       0
  self stack:      0
  global stack:    0
    size:16.000000, time:115.127018
    size:3.000000, time:2.000000,  executed if:(not inlined)
  calls:
    GetStatistics/31 function not considered for inlining
      loop depth: 1 freq:2.67 size: 1 time: 10callee size: 9 stack: 0
    SampleAppTask2/37 function body not available
      loop depth: 1 freq:1.64 size: 2 time: 11
    Eth_43_PFE_MainFunction/35 function body not available
      loop depth: 1 freq:1.64 size: 1 time: 10
    SampleAppInitTask/33 function body not available
      loop depth: 0 freq:1.00 size: 2 time: 11
    Mpu_Configuration/32 function body not available
      loop depth: 0 freq:1.00 size: 1 time: 10

Symbol table:

Eth_43_PFE_GetTxErrorCounterValues/41 (Eth_43_PFE_GetTxErrorCounterValues) @0936d8c0
  Type: function
  Visibility: external public
  References: 
  Referring: 
  Availability: not_available
  Function flags: optimize_size
  Called by: GetStatistics/31 (1073741824 (estimated locally),1.00 per call) 
  Calls: 
Eth_43_PFE_GetTxStats/40 (Eth_43_PFE_GetTxStats) @0936d700
  Type: function
  Visibility: external public
  References: 
  Referring: 
  Availability: not_available
  Function flags: optimize_size
  Called by: GetStatistics/31 (1073741824 (estimated locally),1.00 per call) 
  Calls: 
Eth_43_PFE_GetRxStats/39 (Eth_43_PFE_GetRxStats) @0936d620
  Type: function
  Visibility: external public
  References: 
  Referring: 
  Availability: not_available
  Function flags: optimize_size
  Called by: GetStatistics/31 (1073741824 (estimated locally),1.00 per call) 
  Calls: 
Eth_43_PFE_GetCounterValues/38 (Eth_43_PFE_GetCounterValues) @0936d540
  Type: function
  Visibility: external public
  References: 
  Referring: 
  Availability: not_available
  Function flags: optimize_size
  Called by: GetStatistics/31 (1073741824 (estimated locally),1.00 per call) 
  Calls: 
SampleAppTask2/37 (SampleAppTask2) @0936d2a0
  Type: function
  Visibility: external public
  References: 
  Referring: 
  Availability: not_available
  Function flags: optimize_size
  Called by: main/30 (193419554 (estimated locally),1.64 per call) 
  Calls: 
sendFrames/36 (sendFrames) @0936a510
  Type: variable
  Body removed by symtab_remove_unreachable_nodes
  Visibility: external public
  References: 
  Referring: main/30 (read)main/30 (write)
  Availability: not_available
  Varpool flags:
Eth_43_PFE_MainFunction/35 (Eth_43_PFE_MainFunction) @0936d1c0
  Type: function
  Visibility: external public
  References: 
  Referring: 
  Availability: not_available
  Function flags: optimize_size
  Called by: main/30 (193419554 (estimated locally),1.64 per call) 
  Calls: 
pfeMainFunction/34 (pfeMainFunction) @0936a480
  Type: variable
  Body removed by symtab_remove_unreachable_nodes
  Visibility: external public
  References: 
  Referring: main/30 (read)main/30 (write)
  Availability: not_available
  Varpool flags:
SampleAppInitTask/33 (SampleAppInitTask) @0936d0e0
  Type: function
  Visibility: external public
  References: 
  Referring: 
  Availability: not_available
  Function flags: optimize_size
  Called by: main/30 (118111600 (estimated locally),1.00 per call) 
  Calls: 
Mpu_Configuration/32 (Mpu_Configuration) @0936d000
  Type: function
  Visibility: external public
  References: 
  Referring: 
  Availability: not_available
  Function flags: optimize_size
  Called by: main/30 (118111600 (estimated locally),1.00 per call) 
  Calls: 
GetStatistics/31 (GetStatistics) @0932dc40
  Type: function definition analyzed
  Visibility: externally_visible public
  References: getStatisticsFromCtrl/29 (read)pfeCounterValues/25 (addr)getStatisticsFromCtrl/29 (read)pfeRxStats/26 (addr)getStatisticsFromCtrl/29 (read)pfeTxStats/27 (addr)getStatisticsFromCtrl/29 (read)pfeTxErrorCounterValues/28 (addr)
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: main/30 (315357969 (estimated locally),2.67 per call) 
  Calls: Eth_43_PFE_GetTxErrorCounterValues/41 (1073741824 (estimated locally),1.00 per call) Eth_43_PFE_GetTxStats/40 (1073741824 (estimated locally),1.00 per call) Eth_43_PFE_GetRxStats/39 (1073741824 (estimated locally),1.00 per call) Eth_43_PFE_GetCounterValues/38 (1073741824 (estimated locally),1.00 per call) 
main/30 (main) @0932d9a0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: pfeMainFunction/34 (read)pfeMainFunction/34 (write)sendFrames/36 (read)sendFrames/36 (write)getStatisticsFromCtrl/29 (read)getStatisticsFromCtrl/29 (write)
  Referring: 
  Availability: available
  Function flags: count:118111600 (estimated locally) body only_called_at_startup executed_once optimize_size
  Called by: 
  Calls: GetStatistics/31 (315357969 (estimated locally),2.67 per call) SampleAppTask2/37 (193419554 (estimated locally),1.64 per call) Eth_43_PFE_MainFunction/35 (193419554 (estimated locally),1.64 per call) SampleAppInitTask/33 (118111600 (estimated locally),1.00 per call) Mpu_Configuration/32 (118111600 (estimated locally),1.00 per call) 
getStatisticsFromCtrl/29 (getStatisticsFromCtrl) @0932a900
  Type: variable definition analyzed
  Visibility: force_output externally_visible public
  References: 
  Referring: GetStatistics/31 (read)GetStatistics/31 (read)GetStatistics/31 (read)GetStatistics/31 (read)main/30 (read)main/30 (write)
  Availability: available
  Varpool flags: initialized
pfeTxErrorCounterValues/28 (pfeTxErrorCounterValues) @0932a870
  Type: variable definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: GetStatistics/31 (addr)
  Availability: available
  Varpool flags:
pfeTxStats/27 (pfeTxStats) @0932a7e0
  Type: variable definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: GetStatistics/31 (addr)
  Availability: available
  Varpool flags:
pfeRxStats/26 (pfeRxStats) @0932a750
  Type: variable definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: GetStatistics/31 (addr)
  Availability: available
  Varpool flags:
pfeCounterValues/25 (pfeCounterValues) @0932a6c0
  Type: variable definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: GetStatistics/31 (addr)
  Availability: available
  Varpool flags:
pfeTxErrorCtr/24 (pfeTxErrorCtr) @0932a630
  Type: variable definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Varpool flags: initialized
pfeTxConfCtr/23 (pfeTxConfCtr) @0932a5a0
  Type: variable definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Varpool flags: initialized
pfeTxCtr/22 (pfeTxCtr) @0932a510
  Type: variable definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Varpool flags: initialized
pfeRxCtr/21 (pfeRxCtr) @0932a480
  Type: variable definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Varpool flags: initialized
GetStatistics ()
{
  unsigned char getStatisticsFromCtrl.3_1;
  unsigned char getStatisticsFromCtrl.4_2;
  unsigned char getStatisticsFromCtrl.5_3;
  unsigned char getStatisticsFromCtrl.6_4;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  getStatisticsFromCtrl.3_1 ={v} getStatisticsFromCtrl;
  Eth_43_PFE_GetCounterValues (getStatisticsFromCtrl.3_1, &pfeCounterValues);
  # DEBUG BEGIN_STMT
  getStatisticsFromCtrl.4_2 ={v} getStatisticsFromCtrl;
  Eth_43_PFE_GetRxStats (getStatisticsFromCtrl.4_2, &pfeRxStats);
  # DEBUG BEGIN_STMT
  getStatisticsFromCtrl.5_3 ={v} getStatisticsFromCtrl;
  Eth_43_PFE_GetTxStats (getStatisticsFromCtrl.5_3, &pfeTxStats);
  # DEBUG BEGIN_STMT
  getStatisticsFromCtrl.6_4 ={v} getStatisticsFromCtrl;
  Eth_43_PFE_GetTxErrorCounterValues (getStatisticsFromCtrl.6_4, &pfeTxErrorCounterValues);
  return;

}


main ()
{
  Std_ReturnType ret;
  unsigned char pfeMainFunction.0_1;
  unsigned char sendFrames.1_2;
  unsigned char getStatisticsFromCtrl.2_3;

  <bb 2> [local count: 118111600]:
  # DEBUG BEGIN_STMT
  # DEBUG ret => 0
  # DEBUG BEGIN_STMT
  Mpu_Configuration ();
  # DEBUG BEGIN_STMT
  ret_13 = SampleAppInitTask ();
  # DEBUG ret => ret_13
  # DEBUG BEGIN_STMT

  <bb 3> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  if (ret_13 != 0)
    goto <bb 15>; [89.00%]
  else
    goto <bb 14>; [11.00%]

  <bb 15> [local count: 955630223]:
  goto <bb 3>; [100.00%]

  <bb 14> [local count: 118111601]:
  goto <bb 13>; [100.00%]

  <bb 4> [local count: 955630211]:
  # DEBUG BEGIN_STMT
  pfeMainFunction.0_1 ={v} pfeMainFunction;
  if (pfeMainFunction.0_1 == 1)
    goto <bb 5>; [20.24%]
  else
    goto <bb 6>; [79.76%]

  <bb 5> [local count: 193419554]:
  # DEBUG BEGIN_STMT
  Eth_43_PFE_MainFunction ();
  # DEBUG BEGIN_STMT
  pfeMainFunction ={v} 0;

  <bb 6> [local count: 955630211]:
  # DEBUG BEGIN_STMT
  sendFrames.1_2 ={v} sendFrames;
  if (sendFrames.1_2 == 1)
    goto <bb 7>; [20.24%]
  else
    goto <bb 8>; [79.76%]

  <bb 7> [local count: 193419554]:
  # DEBUG BEGIN_STMT
  ret_18 = SampleAppTask2 ();
  # DEBUG ret => ret_18
  # DEBUG BEGIN_STMT
  sendFrames ={v} 0;

  <bb 8> [local count: 955630211]:
  # ret_4 = PHI <0(6), ret_18(7)>
  # DEBUG ret => ret_4
  # DEBUG BEGIN_STMT
  getStatisticsFromCtrl.2_3 ={v} getStatisticsFromCtrl;
  if (getStatisticsFromCtrl.2_3 <= 2)
    goto <bb 9>; [33.00%]
  else
    goto <bb 11>; [67.00%]

  <bb 9> [local count: 315357969]:
  # DEBUG BEGIN_STMT
  GetStatistics ();
  # DEBUG BEGIN_STMT
  getStatisticsFromCtrl ={v} 3;

  <bb 11> [local count: 955630212]:
  # ret_14 = PHI <ret_4(8), ret_4(9)>

  <bb 13> [local count: 1073741811]:
  # ret_5 = PHI <ret_14(11), 0(14)>
  # DEBUG ret => ret_5
  # DEBUG BEGIN_STMT
  if (ret_5 == 0)
    goto <bb 4>; [89.00%]
  else
    goto <bb 12>; [11.00%]

  <bb 12> [local count: 118111599]:
  # DEBUG BEGIN_STMT
  return 0;

}


