Consider the dependence equations:
for = 0 to 3 do
S: A[ , ] := A[ , ] + A[ , ]
for = 0 to 3 do
There are two potential dependences arising from the three references to A.
Therefore two systems of dependence equations to solve:
((strictly we should also consider output dependences between A[ , ] and A[ , ], but this is obviously absent)).