views:

34

answers:

0

Say I have a recursive function that contains a loop. I want to count how many times the loop runs as well as at what depth in the recursion the count exists in. The trick is I want to store this in a reference variable that is a parameter of the recursive function. It will always have this reference variable to append to it. The reference variable should be a string like this:

[0,45][1,56][2,78]

where the first number is the depth of recursion and the second is the number of times the loop has iterated

I think it will probably be necessary to use some variables within the scope of the function aid in the counting.

In the end, once the final function call has returned I will have a string full of data about it that I can output.

I actually tried this already but I'm not sure if my output is matching properly with how I imagine it to be working... this is what I did:

//first the function

bool mrIntrospective(ref string SUPERLOG, ref int DEPTHCOUNTER)
{
    int LOOPCOUNT = 0;

    while(//pretend we had some data..)
    {
        //pretend we do something useful.. 
        LOOPCOUNT++;
        SUPERLOG += "all the current stuff" + DEPTHCOUNTER + LOOPCOUNTER; //you get the idea
    }

    if(//something useful we discovered for pretend in the loop)
    {
        DEPTHCOUNTER++;
        return mrIntrospective(ref SUPERLOG, ref DEPTHCOUNTER);
        DEPTHCOUNTER--;
    }
    else
    {
        return (//other fake decision);
    }
}

//...later on we reference this...

string SUPERLOG = "";
int DEPTHCOUNTER = 0;

bool final = mrIntrospective(ref SUPERLOG, ref DEPTHCOUNTER);

And finally, the output I am getting (please ignore the seconds and 'lines'):

ALSO NOTE: With this data I actually was outputting to SUPERLOG multiple 4 times per function call instead of one like the example shows.

[loop: 0, seconds: 0.008, lines 345-352, depth:0
loop: 0, seconds: 0, lines 357-367, depth:0
loop: 0, seconds: 0, lines 345-352, depth:1
loop: 0, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.035, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.003, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.003, lines 372-376, depth:2
loop: 4, seconds: 0, lines 357-367, depth:2
loop: 4, seconds: 0.002, lines 372-376, depth:2
loop: 0, seconds: 1.241, lines 382-389, depth:1
loop: 1, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 1, seconds: 0.968, lines 382-389, depth:1
loop: 2, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 4, seconds: 0, lines 357-367, depth:2
loop: 4, seconds: 0.031, lines 372-376, depth:2
loop: 2, seconds: 1.231, lines 382-389, depth:1
loop: 3, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.003, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 4, seconds: 0, lines 357-367, depth:2
loop: 4, seconds: 0.002, lines 372-376, depth:2
loop: 5, seconds: 0, lines 357-367, depth:2
loop: 5, seconds: 0.003, lines 372-376, depth:2
loop: 6, seconds: 0, lines 357-367, depth:2
loop: 6, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 1.678, lines 382-389, depth:1
loop: 4, seconds: 0, lines 357-367, depth:1
loop: 4, seconds: 0.003, lines 372-376, depth:1
loop: 0, seconds: 6.341, lines 382-389, depth:0
loop: 1, seconds: 0, lines 357-367, depth:0
loop: 0, seconds: 0, lines 345-352, depth:1
loop: 0, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.003, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 0, seconds: 0.981, lines 382-389, depth:1
loop: 1, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.004, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.003, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 4, seconds: 0, lines 357-367, depth:2
loop: 4, seconds: 0.003, lines 372-376, depth:2
loop: 5, seconds: 0, lines 357-367, depth:2
loop: 5, seconds: 0.002, lines 372-376, depth:2
loop: 1, seconds: 1.469, lines 382-389, depth:1
loop: 2, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0.522, lines 382-389, depth:1
loop: 3, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 4, seconds: 0, lines 357-367, depth:2
loop: 4, seconds: 0.003, lines 372-376, depth:2
loop: 5, seconds: 0, lines 357-367, depth:2
loop: 5, seconds: 0.003, lines 372-376, depth:2
loop: 3, seconds: 1.439, lines 382-389, depth:1
loop: 4, seconds: 0, lines 357-367, depth:1
loop: 4, seconds: 0.003, lines 372-376, depth:1
loop: 1, seconds: 5.614, lines 382-389, depth:0
loop: 2, seconds: 0, lines 357-367, depth:0
loop: 0, seconds: 0, lines 345-352, depth:1
loop: 0, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 0, seconds: 0.741, lines 382-389, depth:1
loop: 1, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 1, seconds: 0.739, lines 382-389, depth:1
loop: 2, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0.745, lines 382-389, depth:1
loop: 3, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0.745, lines 382-389, depth:1
loop: 4, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.003, lines 372-376, depth:2
loop: 4, seconds: 0.985, lines 382-389, depth:1
loop: 5, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.003, lines 372-376, depth:2
loop: 5, seconds: 0.983, lines 382-389, depth:1
loop: 6, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.003, lines 372-376, depth:2
loop: 6, seconds: 0.739, lines 382-389, depth:1
loop: 7, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 7, seconds: 0.73, lines 382-389, depth:1
loop: 8, seconds: 0, lines 357-367, depth:1
loop: 8, seconds: 0.002, lines 372-376, depth:1
loop: 2, seconds: 8.544, lines 382-389, depth:0
loop: 3, seconds: 0, lines 357-367, depth:0
loop: 0, seconds: 0, lines 345-352, depth:1
loop: 0, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 4, seconds: 0, lines 357-367, depth:2
loop: 4, seconds: 0.002, lines 372-376, depth:2
loop: 0, seconds: 1.21, lines 382-389, depth:1
loop: 1, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 1, seconds: 0.98, lines 382-389, depth:1
loop: 2, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.003, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 4, seconds: 0, lines 357-367, depth:2
loop: 4, seconds: 0.003, lines 372-376, depth:2
loop: 5, seconds: 0, lines 357-367, depth:2
loop: 5, seconds: 0.003, lines 372-376, depth:2
loop: 6, seconds: 0, lines 357-367, depth:2
loop: 6, seconds: 0.002, lines 372-376, depth:2
loop: 7, seconds: 0, lines 357-367, depth:2
loop: 7, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 1.92, lines 382-389, depth:1
loop: 3, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0.739, lines 382-389, depth:1
loop: 4, seconds: 0, lines 357-367, depth:1
loop: 4, seconds: 0.003, lines 372-376, depth:1
loop: 3, seconds: 6.035, lines 382-389, depth:0
loop: 4, seconds: 0, lines 357-367, depth:0
loop: 0, seconds: 0, lines 345-352, depth:1
loop: 0, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.003, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 4, seconds: 0, lines 357-367, depth:2
loop: 4, seconds: 0.003, lines 372-376, depth:2
loop: 5, seconds: 0, lines 357-367, depth:2
loop: 5, seconds: 0.003, lines 372-376, depth:2
loop: 0, seconds: 1.455, lines 382-389, depth:1
loop: 1, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0.973, lines 382-389, depth:1
loop: 2, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0.971, lines 382-389, depth:1
loop: 3, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0.968, lines 382-389, depth:1
loop: 4, seconds: 0, lines 357-367, depth:1
loop: 4, seconds: 0.003, lines 372-376, depth:1
loop: 4, seconds: 5.575, lines 382-389, depth:0
loop: 5, seconds: 0, lines 357-367, depth:0
loop: 0, seconds: 0, lines 345-352, depth:1
loop: 0, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.003, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 4, seconds: 0, lines 357-367, depth:2
loop: 4, seconds: 0.003, lines 372-376, depth:2
loop: 5, seconds: 0, lines 357-367, depth:2
loop: 5, seconds: 0.002, lines 372-376, depth:2
loop: 6, seconds: 0, lines 357-367, depth:2
loop: 6, seconds: 0.003, lines 372-376, depth:2
loop: 0, seconds: 1.677, lines 382-389, depth:1
loop: 1, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0.736, lines 382-389, depth:1
loop: 2, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0.971, lines 382-389, depth:1
loop: 3, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.003, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.003, lines 372-376, depth:2
loop: 3, seconds: 0.973, lines 382-389, depth:1
loop: 4, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.009, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 4, seconds: 0.985, lines 382-389, depth:1
loop: 5, seconds: 0, lines 357-367, depth:1
loop: 5, seconds: 0.002, lines 372-376, depth:1
loop: 5, seconds: 6.766, lines 382-389, depth:0
loop: 6, seconds: 0, lines 357-367, depth:0
loop: 0, seconds: 0, lines 345-352, depth:1
loop: 0, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0.003, lines 372-376, depth:1
loop: 1, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.003, lines 372-376, depth:2
loop: 4, seconds: 0, lines 357-367, depth:2
loop: 4, seconds: 0.002, lines 372-376, depth:2
loop: 1, seconds: 0.974, lines 382-389, depth:1
loop: 2, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 2, seconds: 0.979, lines 382-389, depth:1
loop: 3, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.003, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0.98, lines 382-389, depth:1
loop: 4, seconds: 0, lines 357-367, depth:1
loop: 4, seconds: 0.002, lines 372-376, depth:1
loop: 6, seconds: 4.136, lines 382-389, depth:0
loop: 7, seconds: 0, lines 357-367, depth:0
loop: 0, seconds: 0, lines 345-352, depth:1
loop: 0, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0.003, lines 372-376, depth:1
loop: 1, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 1, seconds: 0.747, lines 382-389, depth:1
loop: 2, seconds: 0, lines 357-367, depth:1
loop: 0, seconds: 0, lines 345-352, depth:2
loop: 0, seconds: 0, lines 357-367, depth:2
loop: 0, seconds: 0.003, lines 372-376, depth:2
loop: 1, seconds: 0, lines 357-367, depth:2
loop: 1, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 0, lines 357-367, depth:2
loop: 2, seconds: 0.002, lines 372-376, depth:2
loop: 3, seconds: 0, lines 357-367, depth:2
loop: 3, seconds: 0.003, lines 372-376, depth:2
loop: 4, seconds: 0, lines 357-367, depth:2
loop: 4, seconds: 0.003, lines 372-376, depth:2
loop: 5, seconds: 0, lines 357-367, depth:2
loop: 5, seconds: 0.002, lines 372-376, depth:2
loop: 6, seconds: 0, lines 357-367, depth:2
loop: 6, seconds: 0.002, lines 372-376, depth:2
loop: 7, seconds: 0, lines 357-367, depth:2
loop: 7, seconds: 0.003, lines 372-376, depth:2
loop: 2, seconds: 1.92, lines 382-389, depth:1
loop: 3, seconds: 0, lines 357-367, depth:1
loop: 3, seconds: 0.003, lines 372-376, depth:1
loop: 7, seconds: 3.645, lines 382-389, depth:0]