In given Figure is intermediate code to compute the dot product of two vectors A and B.
Optimize this code by eliminating common subexpressions, performing reduction in strength on induction variables, and eliminating all the induction variables you can.
