static void mdlSetWorkWidths_c31_adcs_v15_integral_Power_nom(SimStruct *S) { if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { int_T chartIsInlinable = (int_T)sf_is_chart_inlinable("adcs_v15_integral_Power_nom", "adcs_v15_integral_Power_nom",31); ssSetStateflowIsInlinable(S,chartIsInlinable); ssSetRTWCG(S,sf_rtw_info_uint_prop("adcs_v15_integral_Power_nom", "adcs_v15_integral_Power_nom",31,"RTWCG")); ssSetEnableFcnIsTrivial(S,1); ssSetDisableFcnIsTrivial(S,1); ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop( "adcs_v15_integral_Power_nom","adcs_v15_integral_Power_nom",31, "gatewayCannotBeInlinedMultipleTimes")); if (chartIsInlinable) { ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL); ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL); sf_mark_chart_expressionable_inputs(S,"adcs_v15_integral_Power_nom", "adcs_v15_integral_Power_nom",31,2); sf_mark_chart_reusable_outputs(S,"adcs_v15_integral_Power_nom", "adcs_v15_integral_Power_nom",31,1); } sf_set_rtw_dwork_info(S,"adcs_v15_integral_Power_nom", "adcs_v15_integral_Power_nom",31); ssSetHasSubFunctions(S,!(chartIsInlinable)); ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE); } else { sf_set_sfun_dwork_info(S); } ssSetChecksum0(S,(879351951U)); ssSetChecksum1(S,(3790118364U)); ssSetChecksum2(S,(4250711417U)); ssSetChecksum3(S,(1688137038U)); ssSetmdlDerivatives(S, NULL); ssSetExplicitFCSSCtrl(S,1); }
static void mdlSetWorkWidths_c27_ArregloSeisPorSeis(SimStruct *S) { if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { mxArray *infoStruct = load_ArregloSeisPorSeis_optimization_info(); int_T chartIsInlinable = (int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct, 27); ssSetStateflowIsInlinable(S,chartIsInlinable); ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(), infoStruct,27,"RTWCG")); ssSetEnableFcnIsTrivial(S,1); ssSetDisableFcnIsTrivial(S,1); ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S, sf_get_instance_specialization(),infoStruct,27, "gatewayCannotBeInlinedMultipleTimes")); if (chartIsInlinable) { ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL); ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL); ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL); sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(), infoStruct,27,3); sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(), infoStruct,27,1); } sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,27); ssSetHasSubFunctions(S,!(chartIsInlinable)); } else { } ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE); ssSetChecksum0(S,(2281720516U)); ssSetChecksum1(S,(4132229721U)); ssSetChecksum2(S,(175296108U)); ssSetChecksum3(S,(991465833U)); ssSetmdlDerivatives(S, NULL); ssSetExplicitFCSSCtrl(S,1); }
static void mdlSetWorkWidths_c1_QPSK_Transmit_v5_w_FIFO(SimStruct *S) { if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { mxArray *infoStruct = load_QPSK_Transmit_v5_w_FIFO_optimization_info(); int_T chartIsInlinable = (int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct, 1); ssSetStateflowIsInlinable(S,chartIsInlinable); ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(), infoStruct,1,"RTWCG")); ssSetEnableFcnIsTrivial(S,1); ssSetDisableFcnIsTrivial(S,1); ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S, sf_get_instance_specialization(),infoStruct,1, "gatewayCannotBeInlinedMultipleTimes")); if (chartIsInlinable) { ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL); sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(), infoStruct,1,1); sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(), infoStruct,1,1); } sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,1); ssSetHasSubFunctions(S,!(chartIsInlinable)); } else { } ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE); ssSetChecksum0(S,(1382727465U)); ssSetChecksum1(S,(1826769868U)); ssSetChecksum2(S,(2925688491U)); ssSetChecksum3(S,(2188971603U)); ssSetmdlDerivatives(S, NULL); ssSetExplicitFCSSCtrl(S,1); ssSupportsMultipleExecInstances(S,1); }
static void mdlSetWorkWidths_c8_WorkstationModel(SimStruct *S) { if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { mxArray *infoStruct = load_WorkstationModel_optimization_info(); int_T chartIsInlinable = (int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct, 8); ssSetStateflowIsInlinable(S,chartIsInlinable); ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(), infoStruct,8,"RTWCG")); ssSetEnableFcnIsTrivial(S,1); ssSetDisableFcnIsTrivial(S,1); ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S, sf_get_instance_specialization(),infoStruct,8, "gatewayCannotBeInlinedMultipleTimes")); if (chartIsInlinable) { ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL); ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL); sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(), infoStruct,8,2); sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(), infoStruct,8,1); } sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,8); ssSetHasSubFunctions(S,!(chartIsInlinable)); } else { } ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE); ssSetChecksum0(S,(357763525U)); ssSetChecksum1(S,(3399102434U)); ssSetChecksum2(S,(2626699010U)); ssSetChecksum3(S,(3249110271U)); ssSetmdlDerivatives(S, NULL); ssSetExplicitFCSSCtrl(S,1); }
static void mdlSetWorkWidths_c19_adcs_v15_integral_Power(SimStruct *S) { if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { int_T chartIsInlinable = (int_T)sf_is_chart_inlinable("adcs_v15_integral_Power", "adcs_v15_integral_Power",19); ssSetStateflowIsInlinable(S,chartIsInlinable); ssSetRTWCG(S,sf_rtw_info_uint_prop("adcs_v15_integral_Power", "adcs_v15_integral_Power",19,"RTWCG")); ssSetEnableFcnIsTrivial(S,1); ssSetDisableFcnIsTrivial(S,1); ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop("adcs_v15_integral_Power", "adcs_v15_integral_Power",19,"gatewayCannotBeInlinedMultipleTimes")); if (chartIsInlinable) { ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL); ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL); sf_mark_chart_expressionable_inputs(S,"adcs_v15_integral_Power", "adcs_v15_integral_Power",19,2); sf_mark_chart_reusable_outputs(S,"adcs_v15_integral_Power", "adcs_v15_integral_Power",19,4); } sf_set_rtw_dwork_info(S,"adcs_v15_integral_Power","adcs_v15_integral_Power", 19); ssSetHasSubFunctions(S,!(chartIsInlinable)); ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE); } else { sf_set_sfun_dwork_info(S); } ssSetChecksum0(S,(2325183243U)); ssSetChecksum1(S,(1124782313U)); ssSetChecksum2(S,(3778958781U)); ssSetChecksum3(S,(3844299426U)); ssSetmdlDerivatives(S, NULL); ssSetExplicitFCSSCtrl(S,1); }
static void mdlSetWorkWidths_c7_adcs_v15_integral_Power_dist(SimStruct *S) { if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { int_T chartIsInlinable = (int_T)sf_is_chart_inlinable("adcs_v15_integral_Power_dist", "adcs_v15_integral_Power_dist",7); ssSetStateflowIsInlinable(S,chartIsInlinable); ssSetRTWCG(S,sf_rtw_info_uint_prop("adcs_v15_integral_Power_dist", "adcs_v15_integral_Power_dist",7,"RTWCG")); ssSetEnableFcnIsTrivial(S,1); ssSetDisableFcnIsTrivial(S,1); ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop( "adcs_v15_integral_Power_dist","adcs_v15_integral_Power_dist",7, "gatewayCannotBeInlinedMultipleTimes")); if (chartIsInlinable) { ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL); sf_mark_chart_expressionable_inputs(S,"adcs_v15_integral_Power_dist", "adcs_v15_integral_Power_dist",7,1); sf_mark_chart_reusable_outputs(S,"adcs_v15_integral_Power_dist", "adcs_v15_integral_Power_dist",7,1); } sf_set_rtw_dwork_info(S,"adcs_v15_integral_Power_dist", "adcs_v15_integral_Power_dist",7); ssSetHasSubFunctions(S,!(chartIsInlinable)); ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE); } else { sf_set_sfun_dwork_info(S); } ssSetChecksum0(S,(3765657755U)); ssSetChecksum1(S,(3892594898U)); ssSetChecksum2(S,(2218658498U)); ssSetChecksum3(S,(3604933180U)); ssSetmdlDerivatives(S, NULL); ssSetExplicitFCSSCtrl(S,1); }
static void mdlSetWorkWidths_c14_test(SimStruct *S) { if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { mxArray *infoStruct = load_test_optimization_info(); int_T chartIsInlinable = (int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct, 14); ssSetStateflowIsInlinable(S,chartIsInlinable); ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(), infoStruct,14,"RTWCG")); ssSetEnableFcnIsTrivial(S,1); ssSetDisableFcnIsTrivial(S,1); ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S, sf_get_instance_specialization(),infoStruct,14, "gatewayCannotBeInlinedMultipleTimes")); if (chartIsInlinable) { ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL); sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(), infoStruct,14,1); sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(), infoStruct,14,1); } sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,14); ssSetHasSubFunctions(S,!(chartIsInlinable)); } else { } ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE); ssSetChecksum0(S,(3719952874U)); ssSetChecksum1(S,(3080967292U)); ssSetChecksum2(S,(1156275868U)); ssSetChecksum3(S,(83615345U)); ssSetmdlDerivatives(S, NULL); ssSetExplicitFCSSCtrl(S,1); ssSupportsMultipleExecInstances(S,1); }
static void mdlSetWorkWidths_c3_ErdMond(SimStruct *S) { if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { mxArray *infoStruct = load_ErdMond_optimization_info(); int_T chartIsInlinable = (int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct, 3); ssSetStateflowIsInlinable(S,chartIsInlinable); ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(), infoStruct,3,"RTWCG")); ssSetEnableFcnIsTrivial(S,1); ssSetDisableFcnIsTrivial(S,1); ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S, sf_get_instance_specialization(),infoStruct,3, "gatewayCannotBeInlinedMultipleTimes")); if (chartIsInlinable) { ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL); sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(), infoStruct,3,1); sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(), infoStruct,3,1); } sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,3); ssSetHasSubFunctions(S,!(chartIsInlinable)); } else { } ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE); ssSetChecksum0(S,(3937887197U)); ssSetChecksum1(S,(3357586017U)); ssSetChecksum2(S,(2777667438U)); ssSetChecksum3(S,(527445158U)); ssSetmdlDerivatives(S, NULL); ssSetExplicitFCSSCtrl(S,1); }
static void mdlSetWorkWidths_c10_dynamics_kinematics(SimStruct *S) { if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { mxArray *infoStruct = load_dynamics_kinematics_optimization_info(); int_T chartIsInlinable = (int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct, 10); ssSetStateflowIsInlinable(S,chartIsInlinable); ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(), infoStruct,10,"RTWCG")); ssSetEnableFcnIsTrivial(S,1); ssSetDisableFcnIsTrivial(S,1); ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S, sf_get_instance_specialization(),infoStruct,10, "gatewayCannotBeInlinedMultipleTimes")); if (chartIsInlinable) { ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL); sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(), infoStruct,10,1); sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(), infoStruct,10,1); } sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,10); ssSetHasSubFunctions(S,!(chartIsInlinable)); } else { } ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE); ssSetChecksum0(S,(3513034449U)); ssSetChecksum1(S,(1851740193U)); ssSetChecksum2(S,(3113117094U)); ssSetChecksum3(S,(3357094068U)); ssSetmdlDerivatives(S, NULL); ssSetExplicitFCSSCtrl(S,1); }
static void mdlSetWorkWidths_c25_CusakisME4901arcs2(SimStruct *S) { /* Actual parameters from chart: m mb mt */ const char_T *rtParamNames[] = { "m", "mb", "mt" }; ssSetNumRunTimeParams(S,ssGetSFcnParamsCount(S)); /* registration for m*/ ssRegDlgParamAsRunTimeParam(S, 0, 0, rtParamNames[0], SS_DOUBLE); /* registration for mb*/ ssRegDlgParamAsRunTimeParam(S, 1, 1, rtParamNames[1], SS_DOUBLE); /* registration for mt*/ ssRegDlgParamAsRunTimeParam(S, 2, 2, rtParamNames[2], SS_DOUBLE); if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { mxArray *infoStruct = load_CusakisME4901arcs2_optimization_info(); int_T chartIsInlinable = (int_T)sf_is_chart_inlinable(S,sf_get_instance_specialization(),infoStruct, 25); ssSetStateflowIsInlinable(S,chartIsInlinable); ssSetRTWCG(S,sf_rtw_info_uint_prop(S,sf_get_instance_specialization(), infoStruct,25,"RTWCG")); ssSetEnableFcnIsTrivial(S,1); ssSetDisableFcnIsTrivial(S,1); ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop(S, sf_get_instance_specialization(),infoStruct,25, "gatewayCannotBeInlinedMultipleTimes")); sf_update_buildInfo(S,sf_get_instance_specialization(),infoStruct,25); if (chartIsInlinable) { ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL); sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(), infoStruct,25,1); sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(), infoStruct,25,1); } { unsigned int outPortIdx; for (outPortIdx=1; outPortIdx<=1; ++outPortIdx) { ssSetOutputPortOptimizeInIR(S, outPortIdx, 1U); } } { unsigned int inPortIdx; for (inPortIdx=0; inPortIdx < 1; ++inPortIdx) { ssSetInputPortOptimizeInIR(S, inPortIdx, 1U); } } sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,25); ssSetHasSubFunctions(S,!(chartIsInlinable)); } else { } ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE); ssSetChecksum0(S,(2702245221U)); ssSetChecksum1(S,(3247048464U)); ssSetChecksum2(S,(4066746145U)); ssSetChecksum3(S,(3712905929U)); ssSetmdlDerivatives(S, NULL); ssSetExplicitFCSSCtrl(S,1); ssSupportsMultipleExecInstances(S,1); }
static void mdlSetWorkWidths_c10_experiment_lib2(SimStruct *S) { /* Actual parameters from chart: a */ const char_T *rtParamNames[] = { "a" }; ssSetNumRunTimeParams(S,ssGetSFcnParamsCount(S)); /* registration for a*/ ssRegDlgParamAsRunTimeParam(S, 0, 0, rtParamNames[0], SS_DOUBLE); if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { mxArray *infoStruct = load_experiment_lib2_optimization_info(); int_T chartIsInlinable = (int_T)sf_is_chart_inlinable(sf_get_instance_specialization(),infoStruct, 10); ssSetStateflowIsInlinable(S,chartIsInlinable); ssSetRTWCG(S,sf_rtw_info_uint_prop(sf_get_instance_specialization(), infoStruct,10,"RTWCG")); ssSetEnableFcnIsTrivial(S,1); ssSetDisableFcnIsTrivial(S,1); ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop (sf_get_instance_specialization(),infoStruct,10, "gatewayCannotBeInlinedMultipleTimes")); sf_update_buildInfo(sf_get_instance_specialization(),infoStruct,10); if (chartIsInlinable) { ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL); ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL); sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(), infoStruct,10,2); sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(), infoStruct,10,1); } { unsigned int outPortIdx; for (outPortIdx=1; outPortIdx<=1; ++outPortIdx) { ssSetOutputPortOptimizeInIR(S, outPortIdx, 1U); } } { unsigned int inPortIdx; for (inPortIdx=0; inPortIdx < 2; ++inPortIdx) { ssSetInputPortOptimizeInIR(S, inPortIdx, 1U); } } sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,10); ssSetHasSubFunctions(S,!(chartIsInlinable)); } else { } ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE); ssSetChecksum0(S,(324921852U)); ssSetChecksum1(S,(3643253733U)); ssSetChecksum2(S,(2128199589U)); ssSetChecksum3(S,(3048879468U)); ssSetmdlDerivatives(S, NULL); ssSetExplicitFCSSCtrl(S,1); ssSupportsMultipleExecInstances(S,1); }
static void mdlSetWorkWidths_c4_MON_sl_after_replacement3(SimStruct *S) { /* Actual parameters from chart: Primary_Side */ const char_T *rtParamNames[] = { "Primary_Side" }; ssSetNumRunTimeParams(S,ssGetSFcnParamsCount(S)); /* registration for Primary_Side*/ ssRegDlgParamAsRunTimeParam(S, 0, 0, rtParamNames[0], SS_BOOLEAN); ssMdlUpdateIsEmpty(S, 1); if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { mxArray *infoStruct = load_MON_sl_after_replacement3_optimization_info (sim_mode_is_rtw_gen(S), sim_mode_is_modelref_sim(S), sim_mode_is_external (S)); int_T chartIsInlinable = (int_T)sf_is_chart_inlinable(sf_get_instance_specialization(),infoStruct,4); ssSetStateflowIsInlinable(S,chartIsInlinable); ssSetRTWCG(S,1); ssSetEnableFcnIsTrivial(S,1); ssSetDisableFcnIsTrivial(S,1); ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop (sf_get_instance_specialization(),infoStruct,4, "gatewayCannotBeInlinedMultipleTimes")); sf_set_chart_accesses_machine_info(S, sf_get_instance_specialization(), infoStruct, 4); sf_update_buildInfo(S, sf_get_instance_specialization(),infoStruct,4); if (chartIsInlinable) { ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL); ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL); ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL); ssSetInputPortOptimOpts(S, 3, SS_REUSABLE_AND_LOCAL); sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(), infoStruct,4,4); sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(), infoStruct,4,1); } { unsigned int outPortIdx; for (outPortIdx=1; outPortIdx<=1; ++outPortIdx) { ssSetOutputPortOptimizeInIR(S, outPortIdx, 1U); } } { unsigned int inPortIdx; for (inPortIdx=0; inPortIdx < 4; ++inPortIdx) { ssSetInputPortOptimizeInIR(S, inPortIdx, 1U); } } sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,4); ssSetHasSubFunctions(S,!(chartIsInlinable)); } else { } ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE); ssSetChecksum0(S,(645941136U)); ssSetChecksum1(S,(444472430U)); ssSetChecksum2(S,(1231278852U)); ssSetChecksum3(S,(2586291620U)); ssSetmdlDerivatives(S, NULL); ssSetExplicitFCSSCtrl(S,1); ssSupportsMultipleExecInstances(S,1); }
static void mdlSetWorkWidths_c1_MON_sl_after_replacement3(SimStruct *S) { /* Actual parameters from chart: BRAKE_PRESSURE_LO BRAKE_PRESSURE_MAX BRAKE_PRESSURE_MED LO MANUAL MAX MED */ const char_T *rtParamNames[] = { "BRAKE_PRESSURE_LO", "BRAKE_PRESSURE_MAX", "BRAKE_PRESSURE_MED", "LO", "MANUAL", "MAX", "MED" }; ssSetNumRunTimeParams(S,ssGetSFcnParamsCount(S)); /* registration for BRAKE_PRESSURE_LO*/ ssRegDlgParamAsRunTimeParam(S, 0, 0, rtParamNames[0], SS_INT32); /* registration for BRAKE_PRESSURE_MAX*/ ssRegDlgParamAsRunTimeParam(S, 1, 1, rtParamNames[1], SS_INT32); /* registration for BRAKE_PRESSURE_MED*/ ssRegDlgParamAsRunTimeParam(S, 2, 2, rtParamNames[2], SS_INT32); /* registration for LO*/ ssRegDlgParamAsRunTimeParam(S, 3, 3, rtParamNames[3], SS_UINT8); /* registration for MANUAL*/ ssRegDlgParamAsRunTimeParam(S, 4, 4, rtParamNames[4], SS_UINT8); /* registration for MAX*/ ssRegDlgParamAsRunTimeParam(S, 5, 5, rtParamNames[5], SS_UINT8); /* registration for MED*/ ssRegDlgParamAsRunTimeParam(S, 6, 6, rtParamNames[6], SS_UINT8); ssMdlUpdateIsEmpty(S, 1); if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { mxArray *infoStruct = load_MON_sl_after_replacement3_optimization_info (sim_mode_is_rtw_gen(S), sim_mode_is_modelref_sim(S), sim_mode_is_external (S)); int_T chartIsInlinable = (int_T)sf_is_chart_inlinable(sf_get_instance_specialization(),infoStruct,1); ssSetStateflowIsInlinable(S,chartIsInlinable); ssSetRTWCG(S,1); ssSetEnableFcnIsTrivial(S,1); ssSetDisableFcnIsTrivial(S,1); ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop (sf_get_instance_specialization(),infoStruct,1, "gatewayCannotBeInlinedMultipleTimes")); sf_set_chart_accesses_machine_info(S, sf_get_instance_specialization(), infoStruct, 1); sf_update_buildInfo(S, sf_get_instance_specialization(),infoStruct,1); if (chartIsInlinable) { ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL); ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL); sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(), infoStruct,1,2); sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(), infoStruct,1,1); } { unsigned int outPortIdx; for (outPortIdx=1; outPortIdx<=1; ++outPortIdx) { ssSetOutputPortOptimizeInIR(S, outPortIdx, 1U); } } { unsigned int inPortIdx; for (inPortIdx=0; inPortIdx < 2; ++inPortIdx) { ssSetInputPortOptimizeInIR(S, inPortIdx, 1U); } } sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,1); ssSetHasSubFunctions(S,!(chartIsInlinable)); } else { } ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE); ssSetChecksum0(S,(626213442U)); ssSetChecksum1(S,(1109451330U)); ssSetChecksum2(S,(1601872295U)); ssSetChecksum3(S,(3799355706U)); ssSetmdlDerivatives(S, NULL); ssSetExplicitFCSSCtrl(S,1); ssSupportsMultipleExecInstances(S,1); }