array TFunc_nextFree146 integer TFunc_firstFree192 integer TFunc_maxIndex842 array TFunc_typeId537 integer TFunc_firstFree192 = 0 integer TFunc_maxIndex842 = 0 function initGlobals117() { } function main109() { initGlobals117(); init_test141(); } function config176() { } function init_test141() { runFunc160(alloc_TFunc_runFunc_test106()); } function booleanToIndex207(boolean b162) returns integer { local integer cond_result446 if b_162 { cond_result_446 = 1; } else { cond_result_446 = 0; }; return cond_result_446; } function booleanFromIndex425(integer i380) returns boolean { local boolean cond_result118 if (i_380 == 0) { cond_result_118 = false; } else { cond_result_118 = true; }; return cond_result_118; } function runFunc160(integer func771) { dispatch_TFunc_test_TFunc_run305(func_771, booleanToIndex207(false)); } function run_wrapper377(integer this176, any t575) { run_runFunc_test140(this_176, booleanFromIndex425(t_575)); } IS_NATIVE function testSuccess664() { } function run_runFunc_test140(integer this904, boolean b136) { testSuccess664(); } function alloc_TFunc_runFunc_test106() returns integer { local integer this987 if (TFunc_firstFree_192 == 0) { if (TFunc_maxIndex_842 < 32768) { TFunc_maxIndex_842 = (TFunc_maxIndex_842 + 1); this_987 = TFunc_maxIndex_842; TFunc_typeId_537[this_987] = 2; } else { error141("Out of memory: Could not create TFunc_runFunc_test."); this_987 = 0; }; } else { TFunc_firstFree_192 = (TFunc_firstFree_192 - 1); this_987 = TFunc_nextFree_146[TFunc_firstFree_192]; TFunc_typeId_537[this_987] = 2; }; return this_987; } function error141(string msg909) { $debugPrint652((msg_909 + (" " + #getStackTrace()))); } function dispatch_TFunc_test_TFunc_run305(integer this118, any t695) { if (TFunc_typeId_537[this_118] == 0) { if (this_118 == 0) { error141("Nullpointer exception when calling TFunc.run"); } else { error141("Called TFunc.run on invalid object."); }; } else { }; run_wrapper377(this_118, t_695); }