Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Source Code
function go(time,distance)result(iproduct)integer(ip),dimension(:),intent(in)::timeinteger(ip),dimension(:),intent(in)::distanceinteger(ip)::iproductinteger(ip)::i,ihold,iways,idistanceiproduct=1do i=1,size(time)iways=0do ihold=1,time(i)! time to hold the buttonidistance=ihold*(time(i)-ihold)if(idistance>distance(i))iways=iways+1end doiproduct=iproduct*iwaysend doend function go