System_Check_Func ()
{
  unsigned char GV_BMS_FltSta.0_1;
  unsigned char GV_BMS_TEMP_FAULT.1_2;
  unsigned char GV_BMS_Interlock.2_3;
  long unsigned int GV_MCU_FltSta.3_4;
  long unsigned int GV_MCU_Interlock.4_5;
  unsigned char GV_LDC_FltSta.5_6;
  unsigned char GV_LDC_TEMP_FAULT.6_7;
  unsigned char GV_OBC_Interlock.7_8;
  unsigned char GV_BMS_HVOn_STA.8_9;
  unsigned char GV_LDC_STA.9_10;
  unsigned char GV_VCU_Ignition.10_11;
  unsigned char GV_IG_Process_Status.11_12;
  unsigned char GV_IG_Process_Status.13_13;
  unsigned char GV_IG_Process_Status.15_14;
  unsigned char GV_IG_Process_Status.17_15;
  unsigned char GV_IG_Process_Status.19_16;
  unsigned char GV_IG_Process_Status.21_17;
  unsigned char GV_IG_Process_Status.23_18;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  GV_BMS_FltSta.0_1 = GV_BMS_FltSta;
  if (GV_BMS_FltSta.0_1 == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 6>; [50.00%]

  <bb 3> [local count: 536870913]:
  GV_BMS_TEMP_FAULT.1_2 = GV_BMS_TEMP_FAULT;
  if (GV_BMS_TEMP_FAULT.1_2 == 0)
    goto <bb 4>; [50.00%]
  else
    goto <bb 6>; [50.00%]

  <bb 4> [local count: 268435456]:
  GV_BMS_Interlock.2_3 = GV_BMS_Interlock;
  if (GV_BMS_Interlock.2_3 == 1)
    goto <bb 5>; [34.00%]
  else
    goto <bb 6>; [66.00%]

  <bb 5> [local count: 91268055]:
  # DEBUG BEGIN_STMT
  GV_BMS_Fault_Check = 0;
  goto <bb 7>; [100.00%]

  <bb 6> [local count: 982473770]:
  # DEBUG BEGIN_STMT
  GV_BMS_Fault_Check = 0;

  <bb 7> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  GV_MCU_FltSta.3_4 = GV_MCU_FltSta;
  if (GV_MCU_FltSta.3_4 == 0)
    goto <bb 8>; [50.00%]
  else
    goto <bb 10>; [50.00%]

  <bb 8> [local count: 536870913]:
  GV_MCU_Interlock.4_5 = GV_MCU_Interlock;
  if (GV_MCU_Interlock.4_5 == 0)
    goto <bb 9>; [50.00%]
  else
    goto <bb 10>; [50.00%]

  <bb 9> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  GV_MCU_Fault_Check = 0;
  goto <bb 11>; [100.00%]

  <bb 10> [local count: 805306369]:
  # DEBUG BEGIN_STMT
  GV_MCU_Fault_Check = 0;

  <bb 11> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  GV_LDC_FltSta.5_6 = GV_LDC_FltSta;
  if (GV_LDC_FltSta.5_6 == 0)
    goto <bb 12>; [50.00%]
  else
    goto <bb 14>; [50.00%]

  <bb 12> [local count: 536870913]:
  GV_LDC_TEMP_FAULT.6_7 = GV_LDC_TEMP_FAULT;
  if (GV_LDC_TEMP_FAULT.6_7 == 0)
    goto <bb 13>; [50.00%]
  else
    goto <bb 14>; [50.00%]

  <bb 13> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  GV_LDC_Fault_Check = 0;
  goto <bb 15>; [100.00%]

  <bb 14> [local count: 805306369]:
  # DEBUG BEGIN_STMT
  GV_LDC_Fault_Check = 1;

  <bb 15> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  GV_OBC_Interlock.7_8 = GV_OBC_Interlock;
  if (GV_OBC_Interlock.7_8 == 1)
    goto <bb 16>; [34.00%]
  else
    goto <bb 17>; [66.00%]

  <bb 16> [local count: 365072220]:
  # DEBUG BEGIN_STMT
  GV_OBC_Fault_Check = 0;
  goto <bb 18>; [100.00%]

  <bb 17> [local count: 708669605]:
  # DEBUG BEGIN_STMT
  GV_OBC_Fault_Check = 0;

  <bb 18> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  GV_BMS_HVOn_STA.8_9 = GV_BMS_HVOn_STA;
  if (GV_BMS_HVOn_STA.8_9 == 0)
    goto <bb 19>; [50.00%]
  else
    goto <bb 20>; [50.00%]

  <bb 19> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  GV_HV_Apply_Check = 0;
  goto <bb 21>; [100.00%]

  <bb 20> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  GV_HV_Apply_Check = 1;

  <bb 21> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  GV_LDC_STA.9_10 = GV_LDC_STA;
  if (GV_LDC_STA.9_10 == 0)
    goto <bb 22>; [50.00%]
  else
    goto <bb 23>; [50.00%]

  <bb 22> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  GV_LDC_Apply_Check = 0;
  goto <bb 24>; [100.00%]

  <bb 23> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  GV_LDC_Apply_Check = 1;

  <bb 24> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  GV_VCU_Ignition.10_11 = GV_VCU_Ignition;
  if (GV_VCU_Ignition.10_11 == 0)
    goto <bb 25>; [50.00%]
  else
    goto <bb 27>; [50.00%]

  <bb 25> [local count: 536870913]:
  GV_IG_Process_Status.11_12 = GV_IG_Process_Status;
  if (GV_IG_Process_Status.11_12 == 1)
    goto <bb 26>; [20.24%]
  else
    goto <bb 27>; [79.76%]

  <bb 26> [local count: 108662673]:
  # DEBUG BEGIN_STMT
  GV_CE_ON_CMD = 0;
  # DEBUG BEGIN_STMT
  GV_Key_Off_Level = 0;
  # DEBUG BEGIN_STMT
  Soc_Check_befor_IGN ();
  goto <bb 45>; [100.00%]

  <bb 27> [local count: 965079153]:
  # DEBUG BEGIN_STMT
  if (GV_VCU_Ignition.10_11 == 0)
    goto <bb 28>; [50.00%]
  else
    goto <bb 30>; [50.00%]

  <bb 28> [local count: 482539576]:
  GV_IG_Process_Status.13_13 = GV_IG_Process_Status;
  if (GV_IG_Process_Status.13_13 == 2)
    goto <bb 29>; [34.00%]
  else
    goto <bb 30>; [66.00%]

  <bb 29> [local count: 164063456]:
  # DEBUG BEGIN_STMT
  GV_IG_Process_Status = 0;
  goto <bb 45>; [100.00%]

  <bb 30> [local count: 801015696]:
  # DEBUG BEGIN_STMT
  if (GV_VCU_Ignition.10_11 == 1)
    goto <bb 31>; [34.00%]
  else
    goto <bb 33>; [66.00%]

  <bb 31> [local count: 272345336]:
  GV_IG_Process_Status.15_14 = GV_IG_Process_Status;
  if (GV_IG_Process_Status.15_14 == 1)
    goto <bb 32>; [20.24%]
  else
    goto <bb 33>; [79.76%]

  <bb 32> [local count: 55122696]:
  # DEBUG BEGIN_STMT
  GV_VCU_Ready = 1;
  # DEBUG BEGIN_STMT
  GV_CE_ON_CMD = 1;
  # DEBUG BEGIN_STMT
  SET_SW_VER ();
  # DEBUG BEGIN_STMT
  IG_OnCheck_HV_Status ();
  goto <bb 45>; [100.00%]

  <bb 33> [local count: 745893000]:
  # DEBUG BEGIN_STMT
  if (GV_VCU_Ignition.10_11 == 1)
    goto <bb 34>; [34.00%]
  else
    goto <bb 36>; [66.00%]

  <bb 34> [local count: 253603620]:
  GV_IG_Process_Status.17_15 = GV_IG_Process_Status;
  if (GV_IG_Process_Status.17_15 == 2)
    goto <bb 35>; [20.24%]
  else
    goto <bb 36>; [79.76%]

  <bb 35> [local count: 51329373]:
  # DEBUG BEGIN_STMT
  Key_on_Process_Func ();
  goto <bb 45>; [100.00%]

  <bb 36> [local count: 694563628]:
  # DEBUG BEGIN_STMT
  if (GV_VCU_Ignition.10_11 == 1)
    goto <bb 37>; [34.00%]
  else
    goto <bb 39>; [66.00%]

  <bb 37> [local count: 236151633]:
  GV_IG_Process_Status.19_16 = GV_IG_Process_Status;
  if (GV_IG_Process_Status.19_16 == 3)
    goto <bb 38>; [20.24%]
  else
    goto <bb 39>; [79.76%]

  <bb 38> [local count: 47797091]:
  # DEBUG BEGIN_STMT
  Drive_Mode_Func ();
  # DEBUG BEGIN_STMT
  Check_Charging_Status ();
  # DEBUG BEGIN_STMT
  Motor_Status ();
  # DEBUG BEGIN_STMT
  Est_Vehicle_Speed ();
  goto <bb 45>; [100.00%]

  <bb 39> [local count: 646766537]:
  # DEBUG BEGIN_STMT
  if (GV_VCU_Ignition.10_11 == 0)
    goto <bb 40>; [50.00%]
  else
    goto <bb 42>; [50.00%]

  <bb 40> [local count: 323383268]:
  GV_IG_Process_Status.21_17 = GV_IG_Process_Status;
  if (GV_IG_Process_Status.21_17 == 3)
    goto <bb 41>; [20.24%]
  else
    goto <bb 42>; [79.76%]

  <bb 41> [local count: 65452773]:
  # DEBUG BEGIN_STMT
  Read_LDC_Voltage ();
  # DEBUG BEGIN_STMT
  GV_IG_Process_Status = 0;
  goto <bb 45>; [100.00%]

  <bb 42> [local count: 581313764]:
  # DEBUG BEGIN_STMT
  if (GV_VCU_Ignition.10_11 == 0)
    goto <bb 43>; [50.00%]
  else
    goto <bb 45>; [50.00%]

  <bb 43> [local count: 290656882]:
  GV_IG_Process_Status.23_18 = GV_IG_Process_Status;
  if (GV_IG_Process_Status.23_18 == 0)
    goto <bb 44>; [33.00%]
  else
    goto <bb 45>; [67.00%]

  <bb 44> [local count: 95916771]:
  # DEBUG BEGIN_STMT
  GV_VCU_EPAM_Park_Request_to_EPC = 1;
  # DEBUG BEGIN_STMT
  GV_VCU_GearSelStat = 0;
  # DEBUG BEGIN_STMT
  Key_Off_Process_Func ();

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

}


