Welcome to the GBF Test Portal

This was built to track decompiler and CFG progress.

Decompiler Output

function determineClientTimeOffset()
{
    lit#2 = 0;
    temp.i = lit#2;
    lit#4 = "%H";
    fn_call#6 = formattimestring#5(lit#4, temp.i);
    builtin_fn_call#7 = int(fn_call#6);
    temp.hr = builtin_fn_call#7;
    lit#9 = "%M";
    fn_call#10 = formattimestring#5(lit#9, temp.i);
    builtin_fn_call#11 = int(fn_call#10);
    temp.min = builtin_fn_call#11;
    lit#13 = "%m";
    fn_call#14 = formattimestring#5(lit#13, temp.i);
    builtin_fn_call#15 = int(fn_call#14);
    temp.mon = builtin_fn_call#15;
    lit#16 = 1;
    // RegionId(0)
    // RegionId(1)
    if (temp.mon == lit#16) 
    {
        lit#17 = 0;
        // RegionId(1)
        // RegionId(2)
        if (temp.min == lit#17) 
        {
            lit#18 = 0;
            // RegionId(3)
            if (temp.hr == lit#18) 
            {
                return temp.i;
            }
        }
    }
    lit#19 = 12;
    // RegionId(4)
    // RegionId(5)
    if (temp.mon == lit#19) 
    {
        lit#21 = 3600;
        lit#22 = 24;
        temp.offset = (lit#21 * (lit#22 - temp.hr)) + temp.min;
    }
    // RegionId(6)
    else
    {
        lit#23 = 3600;
        temp.offset = (-(lit#23 * temp.hr)) - temp.min;
    }
    return temp.offset;
}