Figure 4.14 represents a general schema for
translating element access. Here we only need to consider the case
where the array reference is a multiarray.
The macro OFFSET is defined as
There are three cases for the macro OFFSET_DIM depending on
whether the subscript argument is a distributed index, a shifted index,
or an integer subscripts (in a sequential dimension). We will only
illustrate the case where is a distributed index . Then
sub is the local subscript variable for
this index (see the last section).
Translation of array section with no scalar subscripts.