Explain, how to draw a DAG for following loop:
do i=1, 10, 1
x(i)=a(i)-b(i)
y(i)=a(i)+b(i)
d(i)=x(i)/(1+y(i))
end do
Response elaborates the process, so as to guide the reader to draw a DAG not just for the given "do ... end do" loop, but similar code as well.