array SimpleFunc_nextFree195 integer SimpleFunc_firstFree149 integer SimpleFunc_maxIndex114 array SimpleFunc_typeId838 integer SimpleFunc_firstFree149 = 0 integer SimpleFunc_maxIndex114 = 0 function initGlobals182() { SimpleFunc_firstFree_149 = 0; SimpleFunc_maxIndex_114 = 0; } function main155() { initGlobals182(); init_test906(); } function config431() { } function init_test906() { local integer f187 local integer clVar120 clVar_120 = alloc_SimpleFunc_test208(); f_187 = clVar_120; if (dispatch_SimpleFunc_test_SimpleFunc_call206(f_187) == 1) { testSuccess169(); } else { }; } IS_NATIVE function testSuccess169() { } function call_test137(integer this643) returns integer { return 1; } function alloc_SimpleFunc_test208() returns integer { local integer this140 if (SimpleFunc_firstFree_149 == 0) { if (SimpleFunc_maxIndex_114 < 32768) { SimpleFunc_maxIndex_114 = (SimpleFunc_maxIndex_114 + 1); this_140 = SimpleFunc_maxIndex_114; SimpleFunc_typeId_838[this_140] = 2; } else { error628("Out of memory: Could not create SimpleFunc_test."); this_140 = 0; }; } else { SimpleFunc_firstFree_149 = (SimpleFunc_firstFree_149 - 1); this_140 = SimpleFunc_nextFree_195[SimpleFunc_firstFree_149]; SimpleFunc_typeId_838[this_140] = 2; }; return this_140; } function error628(string msg165) { $debugPrint641((msg_165 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_call206(integer this418) returns integer { local integer test_SimpleFunc_call_result120 if (SimpleFunc_typeId_838[this_418] == 0) { if (this_418 == 0) { error628("Nullpointer exception when calling SimpleFunc.call"); } else { error628("Called SimpleFunc.call on invalid object."); }; } else { }; test_SimpleFunc_call_result_120 = call_test137(this_418); return test_SimpleFunc_call_result_120; }