Code generation between r2024a and r2024b

Hi,
With the r2024a version, my Simulink model was generating code.
This model has a variant subsystem with two configurations, set with expression->code compile.
With the r2024b version, the generation is giving an error:
CGIR assertion 'B:\matlab\src\cgir_support\dom_core\analysis\modRef\FunctionModRefInfo.cpp(422): In isEdgeCaseForParamInfoQuery: Assertion failed: fType == REGULAR || fType == PROTOTYPE_WITH_FIDELITY ' failed in 'B:\matlab\src\cgir_support\dom_core\analysis\modRef\FunctionModRefInfo.cpp:422'
[ 0] 0x00007ffb9936a1e5 C:\Program Files\MATLAB\R2024b\bin\win64\cg_ir.dll+06332901 CG::operator<<=+00000101
[ 1] 0x00007ffb8da99644 C:\Program Files\MATLAB\R2024b\bin\win64\cgir_support.dll+02922052 CG::FunctionModRefInfo::isEdgeCaseForParamInfoQuery+00000180
[ 2] 0x00007ffb8da9911f C:\Program Files\MATLAB\R2024b\bin\win64\cgir_support.dll+02920735 CG::FunctionModRefInfo::getParameterInfo+00000159
[ 3] 0x00007ffb8da912b8 C:\Program Files\MATLAB\R2024b\bin\win64\cgir_support.dll+02888376 CG::GenericTagCategory<CG::TagForEachVar,0>::numberOfTags+00004984
[ 4] 0x00007ffb8da903d9 C:\Program Files\MATLAB\R2024b\bin\win64\cgir_support.dll+02884569 CG::GenericTagCategory<CG::TagForEachVar,0>::numberOfTags+00001177
[ 5] 0x00007ffb8da8d5de C:\Program Files\MATLAB\R2024b\bin\win64\cgir_support.dll+02872798 CG::TagForEachVar::clone+00002254
[ 6] 0x00007ffb8da8dd69 C:\Program Files\MATLAB\R2024b\bin\win64\cgir_support.dll+02874729 CG::TagForEachVar::clone+00004185
[ 7] 0x00007ffb8da9d8e3 C:\Program Files\MATLAB\R2024b\bin\win64\cgir_support.dll+02939107 CG::FunctionModRefInfo::updateSideEffectFlags+00011107
[ 8] 0x00007ffb8da9ef32 C:\Program Files\MATLAB\R2024b\bin\win64\cgir_support.dll+02944818 CG::FunctionModRefInfo::updateSideEffectFlags+00016818
[ 9] 0x00007ffb8da9db4a C:\Program Files\MATLAB\R2024b\bin\win64\cgir_support.dll+02939722 CG::FunctionModRefInfo::updateSideEffectFlags+00011722
[ 10] 0x00007ffb8dab11fa C:\Program Files\MATLAB\R2024b\bin\win64\cgir_support.dll+03019258 CG::ModRefManager::updateScope+00000154
[ 11] 0x00007ffb8dab0824 C:\Program Files\MATLAB\R2024b\bin\win64\cgir_support.dll+03016740 CG::ModRefManager::isResultValidForScope+00003524
[ 12] 0x00007ffb8dab08ef C:\Program Files\MATLAB\R2024b\bin\win64\cgir_support.dll+03016943 CG::ModRefManager::update+00000047
[ 13] 0x00007ffb8d8ce095 C:\Program Files\MATLAB\R2024b\bin\win64\cgir_support.dll+01040533 CG::UseDef::UseDef+00000133
[ 14] 0x00007ffb8d7fbdbc C:\Program Files\MATLAB\R2024b\bin\win64\cgir_support.dll+00179644 CG::analysis::AnalysisManager::getUseDef+00000252
[ 15] 0x00007ffb964bedf2 C:\Program Files\MATLAB\R2024b\bin\win64\cgir_xform.dll+04845042 CG::transform::ConvertIfTreesToSwitchStatementsPredicate::isVarMacro+00015634
### Build procedure for myModel aborted due to an error.
Unexpected or internal error encountered in "in CGIR: B:\matlab\src\cgir_support\dom_core\analysis\modRef\FunctionModRefInfo.cpp line 422: B:\matlab\src\cgir_support\dom_core\analysis\modRef\FunctionModRefInfo.cpp(422): In isEdgeCaseForParamInfoQuery: Assertion failed: fType == REGULAR || fType == PROTOTYPE_WITH_FIDELITY
". Please report this to MathWorks if you can cause it to recur
I don't know what to do, my whole team has converted to r2024b, and they have the same issue.
Do you have a workaround to this issue?
Regard,
Jean

 Accepted Answer

Sorry to hear that you are having problems. It is highly unlikely that anyone in this forum is going to be able to help you with this. May I suggest that you contact technical support. Start at Contact Support - MATLAB & Simulink. click on Product Usage and take ot from there

2 Comments

Any Update on that?
R2024b Update 10
When I searched the Bug Reports for bugs reported in release R2024b in Simulink that included the word "variant" (there wasn't a lot of information in the original post, so I'm not 100% certain that variant subsystems are a necessary factor to cause the assertion, but it is a way to narrow the search parameters) I found 24 hits. Skim through the titles to see if one of those bug reports appear relevant.
If none appear relevant or applying the recommended fixes for ones that do appear relevant doesn't resolve the problem, I recommend you do as Mike Croucher suggested and contact Technical Support with more details about your model and the specific assertion you're receiving. Mention that you've reviewed these Bug Reports in your support case so they know what you've already investigated / considered.

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2024b

Asked:

on 25 Feb 2025

Commented:

on 11 Nov 2026 at 16:58

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!