array SimpleFunc_nextFree129 integer SimpleFunc_firstFree108 integer SimpleFunc_maxIndex198 array SimpleFunc_typeId203 integer SimpleFunc_firstFree108 = 0 integer SimpleFunc_maxIndex198 = 0 function initGlobals145() { SimpleFunc_firstFree_108 = 0; SimpleFunc_maxIndex_198 = 0; } function main156() { initGlobals145(); init_test123(); } function config270() { } function init_test123() { local integer f140 local integer clVar280 clVar_280 = alloc_SimpleFunc_test149(); f_140 = clVar_280; dispatch_SimpleFunc_test_SimpleFunc_apply126(f_140); } function foo638() returns integer { testSuccess578(); return 4; } IS_NATIVE function testSuccess578() { } function apply_test116(integer this286) returns integer { return foo638(); } function alloc_SimpleFunc_test149() returns integer { local integer this177 if (SimpleFunc_firstFree_108 == 0) { if (SimpleFunc_maxIndex_198 < 32768) { SimpleFunc_maxIndex_198 = (SimpleFunc_maxIndex_198 + 1); this_177 = SimpleFunc_maxIndex_198; SimpleFunc_typeId_203[this_177] = 2; } else { error185("Out of memory: Could not create SimpleFunc_test."); this_177 = 0; }; } else { SimpleFunc_firstFree_108 = (SimpleFunc_firstFree_108 - 1); this_177 = SimpleFunc_nextFree_129[SimpleFunc_firstFree_108]; SimpleFunc_typeId_203[this_177] = 2; }; return this_177; } function error185(string msg134) { $debugPrint559((msg_134 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply126(integer this152) { if (SimpleFunc_typeId_203[this_152] == 0) { if (this_152 == 0) { error185("Nullpointer exception when calling SimpleFunc.apply"); } else { error185("Called SimpleFunc.apply on invalid object."); }; } else { }; apply_test116(this_152); }