jc_0804: Prohibited use of recursive calls with graphical functions
Sub ID Recommendations
NA-MAAB — a
JMAAB — a
Sub ID a
Calls from a graphical function to itself and calls between graphical functions shall be prohibited.
Processing is performed within the graphical function.
The graphical function is calling itself.
Graphical functions are calling each other.
Sub ID a:
Readability decreases. Deviation from the rule can cause unintended overflows and infinite loops.
Adherence to this modeling guideline cannot be verified by using a Model Advisor check. For more information, see Check usage of graphical functions in Stateflow (Simulink Check).
JMAAB guideline jc_0804, which is available in Control Algorithm Modeling Guidelines Using MATLAB, Simulink, and Stateflow on the MathWorks® website.
How Stateflow Objects Interact During Execution (Stateflow)
Introduced in R2020a