jc_0491: Reuse of variables within a single Stateflow scope
The same variable should not have multiple meanings (usages) within a single Stateflow state.
Variable of loop counter must not be used other than loop counter.
The meaning of the variable
i changes from
the index of the loop counter to the sum of
tempVar is defined as local scope in both
By Task > Modeling Standards for MAAB > Stateflow > Check reuse of Variables within a Stateflow scope
For check details, see Check reuse of variables within a Stateflow scope (Simulink Check).