array SimpleFunc_nextFree204 integer SimpleFunc_firstFree189 integer SimpleFunc_maxIndex109 array SimpleFunc_typeId496 integer SimpleFunc_firstFree189 = 0 integer SimpleFunc_maxIndex109 = 0 function initGlobals945() { } function main170() { initGlobals945(); init_test585(); } function config188() { } function init_test585() { local integer clVar620 clVar_620 = alloc_SimpleFunc_test105(); dispatch_SimpleFunc_test_SimpleFunc_apply873(clVar_620); } function foo505() returns integer { testSuccess308(); return 4; } IS_NATIVE function testSuccess308() { } function apply_test193(integer this967) returns integer { return foo505(); } function alloc_SimpleFunc_test105() returns integer { local integer this197 if (SimpleFunc_firstFree_189 == 0) { if (SimpleFunc_maxIndex_109 < 32768) { SimpleFunc_maxIndex_109 = (SimpleFunc_maxIndex_109 + 1); this_197 = SimpleFunc_maxIndex_109; SimpleFunc_typeId_496[this_197] = 2; } else { error166("Out of memory: Could not create SimpleFunc_test."); this_197 = 0; }; } else { SimpleFunc_firstFree_189 = (SimpleFunc_firstFree_189 - 1); this_197 = SimpleFunc_nextFree_204[SimpleFunc_firstFree_189]; SimpleFunc_typeId_496[this_197] = 2; }; return this_197; } function error166(string msg214) { $debugPrint112((msg_214 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply873(integer this439) { if (SimpleFunc_typeId_496[this_439] == 0) { if (this_439 == 0) { error166("Nullpointer exception when calling SimpleFunc.apply"); } else { error166("Called SimpleFunc.apply on invalid object."); }; } else { }; apply_test193(this_439); }