;; 1 loops found
;;
;; Loop 0
;;  header 0, latch 1
;;  depth 0, outer -1
;;  nodes: 0 1

Symbols to be put in SSA form
{ D.11282 }
Incremental SSA update started at block: 0
Number of blocks in CFG: 16
Number of blocks to update: 15 ( 94%)


configure_emacs.constprop (pfe_ct_phy_if_id_t hif_id)
{
  void * pfe_platform;
  struct pfe_phy_if_t * phy_if_emac;
  struct pfe_phy_if_t * phy_if_hif;
  struct pfe_log_if_t * log_if_emac;
  uint8 mac_addr[6];
  struct pfe_ct_if_m_args_t match_arguments;
  pfe_ct_phy_if_id_t emac_id;
  int _5;
  int _7;
  int _8;
  int _9;
  int _10;
  int _11;
  int _12;
  int _13;

  <bb 15> [local count: 1073741824]:
  # DEBUG emac_id => 1

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  mac_addr = "\xd8\xcb\x8a\xa3}\xcf";
  # DEBUG BEGIN_STMT
  # DEBUG match_rules => 0
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  pfe_platform_1 = Eth_43_PFE_GetPlatform ();
  # DEBUG pfe_platform => pfe_platform_1
  # DEBUG BEGIN_STMT
  if (pfe_platform_1 == 0B)
    goto <bb 14>; [0.91%]
  else
    goto <bb 3>; [99.09%]

  <bb 3> [local count: 1063970774]:
  # DEBUG BEGIN_STMT
  phy_if_emac_2 = pfe_platform_get_phy_if_by_id (pfe_platform_1, 1);
  # DEBUG phy_if_emac => phy_if_emac_2
  # DEBUG BEGIN_STMT
  if (phy_if_emac_2 == 0B)
    goto <bb 14>; [0.91%]
  else
    goto <bb 4>; [99.09%]

  <bb 4> [local count: 1054288640]:
  # DEBUG BEGIN_STMT
  phy_if_hif_4 = pfe_platform_get_phy_if_by_id (pfe_platform_1, hif_id_3(D));
  # DEBUG phy_if_hif => phy_if_hif_4
  if (phy_if_hif_4 == 0B)
    goto <bb 14>; [0.91%]
  else
    goto <bb 5>; [99.09%]

  <bb 5> [local count: 1044694613]:
  # DEBUG BEGIN_STMT
  _5 = pfe_phy_if_set_op_mode (phy_if_emac_2, 3);
  if (_5 != 0)
    goto <bb 14>; [2.09%]
  else
    goto <bb 6>; [97.91%]

  <bb 6> [local count: 1022860495]:
  # DEBUG BEGIN_STMT
  log_if_emac_6 = pfe_log_if_create (phy_if_emac_2, &log_if_name);
  # DEBUG log_if_emac => log_if_emac_6
  if (log_if_emac_6 == 0B)
    goto <bb 14>; [0.91%]
  else
    goto <bb 7>; [99.09%]

  <bb 7> [local count: 1013552465]:
  # DEBUG BEGIN_STMT
  # DEBUG match_rules => 1024
  # DEBUG BEGIN_STMT
  _7 = pfe_log_if_set_match_rules (log_if_emac_6, 1024, &match_arguments);
  if (_7 != 0)
    goto <bb 14>; [2.09%]
  else
    goto <bb 8>; [97.91%]

  <bb 8> [local count: 992369217]:
  # DEBUG BEGIN_STMT
  _8 = pfe_log_if_set_match_or (log_if_emac_6);
  if (_8 != 0)
    goto <bb 14>; [2.09%]
  else
    goto <bb 9>; [97.91%]

  <bb 9> [local count: 971628700]:
  # DEBUG BEGIN_STMT
  _9 = pfe_platform_register_log_if (pfe_platform_1, log_if_emac_6);
  if (_9 != 0)
    goto <bb 14>; [2.09%]
  else
    goto <bb 10>; [97.91%]

  <bb 10> [local count: 951321660]:
  # DEBUG BEGIN_STMT
  _10 = pfe_log_if_add_egress_if (log_if_emac_6, phy_if_hif_4);
  if (_10 != 0)
    goto <bb 14>; [2.09%]
  else
    goto <bb 11>; [97.91%]

  <bb 11> [local count: 931439037]:
  # DEBUG BEGIN_STMT
  _11 = pfe_log_if_add_mac_addr (log_if_emac_6, &mac_addr, hif_id_3(D));
  if (_11 != 0)
    goto <bb 14>; [2.09%]
  else
    goto <bb 12>; [97.91%]

  <bb 12> [local count: 911971961]:
  # DEBUG BEGIN_STMT
  _12 = pfe_log_if_enable (log_if_emac_6);
  if (_12 != 0)
    goto <bb 13>; [1.04%]
  else
    goto <bb 14>; [98.96%]

  <bb 13> [local count: 9484508]:
  # DEBUG BEGIN_STMT

  <bb 14> [local count: 1073741821]:
  # _13 = PHI <-1(2), -1(3), -1(4), -1(5), -1(6), -1(7), -1(8), -1(9), -1(10), -1(11), 0(12), -1(13)>
  mac_addr ={v} {CLOBBER};
  match_arguments ={v} {CLOBBER};
  return _13;

}


configure_minihif_hw ()
{
  int _1;
  int _2;
  int _3;
  int _4;
  <unnamed type> _5;
  int _6;
  int _7;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  _1 = pfe_minihif_drv_create (&minihif, 9, 0);
  if (_1 != 0)
    goto <bb 10>; [51.12%]
  else
    goto <bb 3>; [48.88%]

  <bb 3> [local count: 524845004]:
  # DEBUG BEGIN_STMT
  _2 = pfe_minihif_drv_attach_ring (&minihif, 1, 873529344B, 873537536B, 104);
  if (_2 != 0)
    goto <bb 5>; [51.12%]
  else
    goto <bb 4>; [48.88%]

  <bb 4> [local count: 256544238]:
  _3 = pfe_minihif_drv_attach_ring (&minihif, 0, 873533440B, 873539584B, 16);
  if (_3 != 0)
    goto <bb 5>; [51.12%]
  else
    goto <bb 6>; [48.88%]

  <bb 5> [local count: 399446180]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  goto <bb 10>; [100.00%]

  <bb 6> [local count: 125398823]:
  # DEBUG BEGIN_STMT
  _4 = pfe_minihif_drv_init (&minihif);
  if (_4 != 0)
    goto <bb 10>; [51.12%]
  else
    goto <bb 7>; [48.88%]

  <bb 7> [local count: 61294945]:
  # DEBUG BEGIN_STMT
  _5 = pfe_minihif_get_hif_id (&minihif);
  _6 = configure_emacs (_5, 1);
  if (_6 != 0)
    goto <bb 10>; [51.12%]
  else
    goto <bb 8>; [48.88%]

  <bb 8> [local count: 29960969]:
  # DEBUG BEGIN_STMT
  _7 = pfe_minihif_drv_start_rx (&minihif);
  if (_7 != 0)
    goto <bb 10>; [51.12%]
  else
    goto <bb 9>; [48.88%]

  <bb 9> [local count: 14644922]:
  # DEBUG BEGIN_STMT
  pfe_minihif_drv_start_tx (&minihif);

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

}


