When i wanted to find out the exact working of a legacy code function i used several times the method that i wrote a simple testprogram containing a nested loop, which calle