The same loop:
for
S: A[
for
For humans the easy way to understand this loop nest is to draw the
iteration space showing the iteration-to-iteration dependences:
= 0 to 3 do
= 0 to 3 do
,
] := A[
,
] + A[
,
]
The diagram shows an arrow for each solution of each dependence equation.