Main Content

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

ConditionRecommended Action

Chart has a recursive function call.

Remove recursive function call.

See Also