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