static void chart_debug_initialization(SimStruct *S, unsigned int
  fullDebuggerInitialization)
{
  if (!sim_mode_is_rtw_gen(S)) {
    SFc2_DYNctl_ver4_etud_nonlineaireInstanceStruct *chartInstance;
    ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
    ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
    chartInstance = (SFc2_DYNctl_ver4_etud_nonlineaireInstanceStruct *)
      chartInfo->chartInstance;
    if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {
      /* do this only if simulation is starting */
      {
        unsigned int chartAlreadyPresent;
        chartAlreadyPresent = sf_debug_initialize_chart
          (sfGlobalDebugInstanceStruct,
           _DYNctl_ver4_etud_nonlineaireMachineNumber_,
           2,
           1,
           1,
           0,
           2,
           0,
           0,
           0,
           0,
           0,
           &(chartInstance->chartNumber),
           &(chartInstance->instanceNumber),
           (void *)S);

        /* Each instance must initialize its own list of scripts */
        init_script_number_translation
          (_DYNctl_ver4_etud_nonlineaireMachineNumber_,
           chartInstance->chartNumber,chartInstance->instanceNumber);
        if (chartAlreadyPresent==0) {
          /* this is the first instance */
          sf_debug_set_chart_disable_implicit_casting
            (sfGlobalDebugInstanceStruct,
             _DYNctl_ver4_etud_nonlineaireMachineNumber_,
             chartInstance->chartNumber,1);
          sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,
            _DYNctl_ver4_etud_nonlineaireMachineNumber_,
            chartInstance->chartNumber,
            0,
            0,
            0);
          _SFD_SET_DATA_PROPS(0,1,1,0,"angle");
          _SFD_SET_DATA_PROPS(1,2,0,1,"f");
          _SFD_STATE_INFO(0,0,2);
          _SFD_CH_SUBSTATE_COUNT(0);
          _SFD_CH_SUBSTATE_DECOMP(0);
        }

        _SFD_CV_INIT_CHART(0,0,0,0);

        {
          _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);
        }

        _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);

        /* Initialization of MATLAB Function Model Coverage */
        _SFD_CV_INIT_EML(0,1,1,1,0,0,0,0,0,2,1);
        _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,123);
        _SFD_CV_INIT_EML_IF(0,1,0,53,95,105,122);

        {
          static int condStart[] = { 56, 77 };

          static int condEnd[] = { 73, 95 };

          static int pfixExpr[] = { 0, 1, -2 };

          _SFD_CV_INIT_EML_MCDC(0,1,0,56,95,2,0,&(condStart[0]),&(condEnd[0]),3,
                                &(pfixExpr[0]));
        }

        _SFD_CV_INIT_EML_RELATIONAL(0,1,0,56,73,-1,5);
        _SFD_CV_INIT_EML_RELATIONAL(0,1,1,77,95,-1,3);
        _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
          (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL);
        _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
          (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)c2_sf_marshallIn);
        _SFD_SET_DATA_VALUE_PTR(0U, chartInstance->c2_angle);
        _SFD_SET_DATA_VALUE_PTR(1U, chartInstance->c2_f);
      }
    } else {
      sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,
        _DYNctl_ver4_etud_nonlineaireMachineNumber_,chartInstance->chartNumber,
        chartInstance->instanceNumber);
    }
  }
}
static void chart_debug_initialization(SimStruct *S, unsigned int
  fullDebuggerInitialization)
{
  if (!sim_mode_is_rtw_gen(S)) {
    SFc7_NMPC_ControllerInstanceStruct *chartInstance;
    ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
    ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
    chartInstance = (SFc7_NMPC_ControllerInstanceStruct *)
      chartInfo->chartInstance;
    if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {
      /* do this only if simulation is starting */
      {
        unsigned int chartAlreadyPresent;
        chartAlreadyPresent = sf_debug_initialize_chart
          (sfGlobalDebugInstanceStruct,
           _NMPC_ControllerMachineNumber_,
           7,
           1,
           1,
           0,
           2,
           0,
           0,
           0,
           0,
           0,
           &(chartInstance->chartNumber),
           &(chartInstance->instanceNumber),
           (void *)S);

        /* Each instance must initialize its own list of scripts */
        init_script_number_translation(_NMPC_ControllerMachineNumber_,
          chartInstance->chartNumber,chartInstance->instanceNumber);
        if (chartAlreadyPresent==0) {
          /* this is the first instance */
          sf_debug_set_chart_disable_implicit_casting
            (sfGlobalDebugInstanceStruct,_NMPC_ControllerMachineNumber_,
             chartInstance->chartNumber,1);
          sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,
            _NMPC_ControllerMachineNumber_,
            chartInstance->chartNumber,
            0,
            0,
            0);
          _SFD_SET_DATA_PROPS(0,1,1,0,"u");
          _SFD_SET_DATA_PROPS(1,2,0,1,"y");
          _SFD_STATE_INFO(0,0,2);
          _SFD_CH_SUBSTATE_COUNT(0);
          _SFD_CH_SUBSTATE_DECOMP(0);
        }

        _SFD_CV_INIT_CHART(0,0,0,0);

        {
          _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);
        }

        _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);

        /* Initialization of MATLAB Function Model Coverage */
        _SFD_CV_INIT_EML(0,1,1,4,0,0,0,0,0,8,4);
        _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,395);
        _SFD_CV_INIT_EML_IF(0,1,0,145,164,196,219);
        _SFD_CV_INIT_EML_IF(0,1,1,196,219,253,369);
        _SFD_CV_INIT_EML_IF(0,1,2,253,276,311,369);
        _SFD_CV_INIT_EML_IF(0,1,3,311,334,-1,334);

        {
          static int condStart[] = { 148, 158 };

          static int condEnd[] = { 154, 164 };

          static int pfixExpr[] = { 0, 1, -3 };

          _SFD_CV_INIT_EML_MCDC(0,1,0,148,164,2,0,&(condStart[0]),&(condEnd[0]),
                                3,&(pfixExpr[0]));
        }

        {
          static int condStart[] = { 203, 213 };

          static int condEnd[] = { 209, 219 };

          static int pfixExpr[] = { 0, 1, -3 };

          _SFD_CV_INIT_EML_MCDC(0,1,1,203,219,2,2,&(condStart[0]),&(condEnd[0]),
                                3,&(pfixExpr[0]));
        }

        {
          static int condStart[] = { 260, 270 };

          static int condEnd[] = { 266, 276 };

          static int pfixExpr[] = { 0, 1, -3 };

          _SFD_CV_INIT_EML_MCDC(0,1,2,260,276,2,4,&(condStart[0]),&(condEnd[0]),
                                3,&(pfixExpr[0]));
        }

        {
          static int condStart[] = { 318, 328 };

          static int condEnd[] = { 324, 334 };

          static int pfixExpr[] = { 0, 1, -3 };

          _SFD_CV_INIT_EML_MCDC(0,1,3,318,334,2,6,&(condStart[0]),&(condEnd[0]),
                                3,&(pfixExpr[0]));
        }

        _SFD_CV_INIT_EML_RELATIONAL(0,1,0,148,154,-1,4);
        _SFD_CV_INIT_EML_RELATIONAL(0,1,1,158,164,-1,4);
        _SFD_CV_INIT_EML_RELATIONAL(0,1,2,203,209,-1,4);
        _SFD_CV_INIT_EML_RELATIONAL(0,1,3,213,219,-1,2);
        _SFD_CV_INIT_EML_RELATIONAL(0,1,4,260,266,-1,2);
        _SFD_CV_INIT_EML_RELATIONAL(0,1,5,270,276,-1,2);
        _SFD_CV_INIT_EML_RELATIONAL(0,1,6,318,324,-1,2);
        _SFD_CV_INIT_EML_RELATIONAL(0,1,7,328,334,-1,4);

        {
          unsigned int dimVector[1];
          dimVector[0]= 3;
          _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,
            1.0,0,0,(MexFcnForType)c7_b_sf_marshallOut,(MexInFcnForType)NULL);
        }

        _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
          (MexFcnForType)c7_sf_marshallOut,(MexInFcnForType)c7_sf_marshallIn);
        _SFD_SET_DATA_VALUE_PTR(0U, *chartInstance->c7_u);
        _SFD_SET_DATA_VALUE_PTR(1U, chartInstance->c7_y);
      }
    } else {
      sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,
        _NMPC_ControllerMachineNumber_,chartInstance->chartNumber,
        chartInstance->instanceNumber);
    }
  }
}
static void chart_debug_initialization(SimStruct *S, unsigned int
                                       fullDebuggerInitialization)
{
    if (!sim_mode_is_rtw_gen(S)) {
        SFc3_Engine_Vehicle_CVT_Wit_System1_trial1InstanceStruct *chartInstance;
        ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
        ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
        chartInstance = (SFc3_Engine_Vehicle_CVT_Wit_System1_trial1InstanceStruct *)
                        chartInfo->chartInstance;
        if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {
            /* do this only if simulation is starting */
            {
                unsigned int chartAlreadyPresent;
                chartAlreadyPresent = sf_debug_initialize_chart
                                      (sfGlobalDebugInstanceStruct,
                                       _Engine_Vehicle_CVT_Wit_System1_trial1MachineNumber_,
                                       3,
                                       0,
                                       5,
                                       0,
                                       4,
                                       0,
                                       0,
                                       0,
                                       0,
                                       0,
                                       &(chartInstance->chartNumber),
                                       &(chartInstance->instanceNumber),
                                       (void *)S);

                /* Each instance must initialize its own list of scripts */
                init_script_number_translation
                (_Engine_Vehicle_CVT_Wit_System1_trial1MachineNumber_,
                 chartInstance->chartNumber,chartInstance->instanceNumber);
                if (chartAlreadyPresent==0) {
                    /* this is the first instance */
                    sf_debug_set_chart_disable_implicit_casting
                    (sfGlobalDebugInstanceStruct,
                     _Engine_Vehicle_CVT_Wit_System1_trial1MachineNumber_,
                     chartInstance->chartNumber,1);
                    sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,
                                                        _Engine_Vehicle_CVT_Wit_System1_trial1MachineNumber_,
                                                        chartInstance->chartNumber,
                                                        0,
                                                        0,
                                                        0);
                    _SFD_SET_DATA_PROPS(0,1,1,0,"Engine_RPM");
                    _SFD_SET_DATA_PROPS(1,1,1,0,"RPM_Clutch_THLD");
                    _SFD_SET_DATA_PROPS(2,1,1,0,"RPM_Clutch_Hist_THLD");
                    _SFD_SET_DATA_PROPS(3,2,0,1,"ClutchON");
                    _SFD_CH_SUBSTATE_COUNT(0);
                    _SFD_CH_SUBSTATE_DECOMP(0);
                }

                _SFD_CV_INIT_CHART(0,0,0,0);
                _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);
                _SFD_CV_INIT_TRANS(2,0,NULL,NULL,0,NULL);
                _SFD_CV_INIT_TRANS(3,0,NULL,NULL,0,NULL);
                _SFD_CV_INIT_TRANS(1,0,NULL,NULL,0,NULL);
                _SFD_CV_INIT_TRANS(4,0,NULL,NULL,0,NULL);

                /* Initialization of MATLAB Function Model Coverage */
                _SFD_CV_INIT_EML(2,0,0,1,0,0,0,0,0,0,0);
                _SFD_CV_INIT_EML_IF(2,0,0,1,30,1,30);
                _SFD_CV_INIT_EML_RELATIONAL(2,0,0,2,30,-1,4);
                _SFD_CV_INIT_EML(3,0,0,0,0,0,0,0,0,0,0);
                _SFD_CV_INIT_EML(1,0,0,1,0,0,0,0,0,0,0);
                _SFD_CV_INIT_EML_IF(1,0,0,1,52,1,48);
                _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
                                             (MexFcnForType)c3_b_sf_marshallOut,(MexInFcnForType)NULL);
                _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
                                             (MexFcnForType)c3_b_sf_marshallOut,(MexInFcnForType)NULL);
                _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
                                             (MexFcnForType)c3_b_sf_marshallOut,(MexInFcnForType)NULL);
                _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
                                             (MexFcnForType)c3_b_sf_marshallOut,(MexInFcnForType)c3_b_sf_marshallIn);
                _SFD_SET_DATA_VALUE_PTR(0U, chartInstance->c3_Engine_RPM);
                _SFD_SET_DATA_VALUE_PTR(1U, chartInstance->c3_RPM_Clutch_THLD);
                _SFD_SET_DATA_VALUE_PTR(2U, chartInstance->c3_RPM_Clutch_Hist_THLD);
                _SFD_SET_DATA_VALUE_PTR(3U, chartInstance->c3_ClutchON);
            }
        } else {
            sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,
                    _Engine_Vehicle_CVT_Wit_System1_trial1MachineNumber_,
                    chartInstance->chartNumber,chartInstance->instanceNumber);
        }
    }
}
static void chart_debug_initialization(SimStruct *S, unsigned int
  fullDebuggerInitialization)
{
  if (!sim_mode_is_rtw_gen(S)) {
    SFc3_NMPC_ControllerInstanceStruct *chartInstance;
    ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
    ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
    chartInstance = (SFc3_NMPC_ControllerInstanceStruct *)
      chartInfo->chartInstance;
    if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {
      /* do this only if simulation is starting */
      {
        unsigned int chartAlreadyPresent;
        chartAlreadyPresent = sf_debug_initialize_chart
          (sfGlobalDebugInstanceStruct,
           _NMPC_ControllerMachineNumber_,
           3,
           1,
           1,
           0,
           2,
           0,
           0,
           0,
           0,
           0,
           &(chartInstance->chartNumber),
           &(chartInstance->instanceNumber),
           (void *)S);

        /* Each instance must initialize its own list of scripts */
        init_script_number_translation(_NMPC_ControllerMachineNumber_,
          chartInstance->chartNumber,chartInstance->instanceNumber);
        if (chartAlreadyPresent==0) {
          /* this is the first instance */
          sf_debug_set_chart_disable_implicit_casting
            (sfGlobalDebugInstanceStruct,_NMPC_ControllerMachineNumber_,
             chartInstance->chartNumber,1);
          sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,
            _NMPC_ControllerMachineNumber_,
            chartInstance->chartNumber,
            0,
            0,
            0);
          _SFD_SET_DATA_PROPS(0,1,1,0,"u");
          _SFD_SET_DATA_PROPS(1,2,0,1,"etaLat");
          _SFD_STATE_INFO(0,0,2);
          _SFD_CH_SUBSTATE_COUNT(0);
          _SFD_CH_SUBSTATE_DECOMP(0);
        }

        _SFD_CV_INIT_CHART(0,0,0,0);

        {
          _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);
        }

        _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);

        /* Initialization of MATLAB Function Model Coverage */
        _SFD_CV_INIT_EML(0,1,1,2,0,0,0,0,0,0,0);
        _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,106);
        _SFD_CV_INIT_EML_IF(0,1,0,37,46,-1,69);
        _SFD_CV_INIT_EML_IF(0,1,1,72,82,-1,105);
        _SFD_CV_INIT_EML_RELATIONAL(0,1,0,41,45,-1,4);
        _SFD_CV_INIT_EML_RELATIONAL(0,1,1,76,81,-1,2);
        _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
          (MexFcnForType)c3_sf_marshallOut,(MexInFcnForType)NULL);
        _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
          (MexFcnForType)c3_sf_marshallOut,(MexInFcnForType)c3_sf_marshallIn);
        _SFD_SET_DATA_VALUE_PTR(0U, chartInstance->c3_u);
        _SFD_SET_DATA_VALUE_PTR(1U, chartInstance->c3_etaLat);
      }
    } else {
      sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,
        _NMPC_ControllerMachineNumber_,chartInstance->chartNumber,
        chartInstance->instanceNumber);
    }
  }
}