Check for recursive function calls
Check ID:
            mathworks.misra.RecursionCompliance
Identify recursive function calls in Stateflow® charts.
Description
Following the recommendations of this check increases the likelihood of generating MISRA C:2012 compliant code for embedded applications. The check flags charts that have recursive function calls.
Available with Embedded Coder® and Simulink® Check™.
Note
Stateflow license is needed if the model contains Stateflow elements.
Results and Recommended Actions
| Condition | Recommended Action | 
|---|---|
| Chart has a recursive function call. | Remove recursive function call. | 
See Also
- MISRA C:2012, Rule 17.2 
- Resolve Unintended Recursive Behavior (Stateflow)