Statechart Checks : (C1005) Arrays with an out of range index

(C1005) Arrays with an out of range index

Arrays or bit-arrays are used with an index value that is out of the defined index range.
Error In:
Correctness
Example:
A is an integer array from 1 to 100. The model contains the following action:

A(101)=1

 

Erroneous Elements:
Data-items, fields, conditions, and events