array TFunc_nextFree109 integer TFunc_firstFree182 integer TFunc_maxIndex133 array TFunc_typeId716 integer TFunc_firstFree182 = 0 integer TFunc_maxIndex133 = 0 function initGlobals326() { } function main545() { initGlobals326(); init_test366(); } function config854() { } function init_test366() { runFunc768(alloc_TFunc_runFunc_test864()); } function booleanToIndex556(boolean b859) returns integer { local integer cond_result116 if b_859 { cond_result_116 = 1; } else { cond_result_116 = 0; }; return cond_result_116; } function booleanFromIndex208(integer i389) returns boolean { local boolean cond_result152 if (i_389 == 0) { cond_result_152 = false; } else { cond_result_152 = true; }; return cond_result_152; } function runFunc768(integer func260) { dispatch_TFunc_test_TFunc_run309(func_260, booleanToIndex556(false)); } function run_wrapper535(integer this176, any t101) { run_runFunc_test118(this_176, booleanFromIndex208(t_101)); } IS_NATIVE function testSuccess174() { } function run_runFunc_test118(integer this153, boolean b304) { testSuccess174(); } function alloc_TFunc_runFunc_test864() returns integer { local integer this401 if (TFunc_firstFree_182 == 0) { if (TFunc_maxIndex_133 < 32768) { TFunc_maxIndex_133 = (TFunc_maxIndex_133 + 1); this_401 = TFunc_maxIndex_133; TFunc_typeId_716[this_401] = 2; } else { error110("Out of memory: Could not create TFunc_runFunc_test."); this_401 = 0; }; } else { TFunc_firstFree_182 = (TFunc_firstFree_182 - 1); this_401 = TFunc_nextFree_109[TFunc_firstFree_182]; TFunc_typeId_716[this_401] = 2; }; return this_401; } function error110(string msg150) { $debugPrint376((msg_150 + (" " + #getStackTrace()))); } function dispatch_TFunc_test_TFunc_run309(integer this208, any t867) { if (TFunc_typeId_716[this_208] == 0) { if (this_208 == 0) { error110("Nullpointer exception when calling TFunc.run"); } else { error110("Called TFunc.run on invalid object."); }; } else { }; run_wrapper535(this_208, t_867); }