jc_0711: Division in Stateflow
Sub ID Recommendations
NA-MAAB — a1/a2
JMAAB — a1/a2
Sub ID a1
Variables, constants, or parameters in Stateflow® Chart (Stateflow) shall not be used to perform division operations.
Division is performed outside of the Stateflow Chart.
Division occurs within the Stateflow Chart.
Sub ID a2
When division occurs in a Stateflow Chart (Stateflow), the process shall prevent division by zero.
The process is defined to prevent division by zero.
The process does not prevent division by zero.
Sub ID a1, a2:
Deviation from the rule can cause unintended operation and code generation results.
Model Advisor check: Adherence to this modeling guideline cannot be verified by using a Model Advisor check.
JMAAB guideline jc_0711, which is available in Control Algorithm Modeling Guidelines Using MATLAB, Simulink, and Stateflow on the MathWorks® website.
Fixed-Point Operations in Stateflow Charts (Stateflow)