array SimpleFunc_nextFree125 integer SimpleFunc_firstFree688 integer SimpleFunc_maxIndex254 array SimpleFunc_typeId374 integer SimpleFunc_firstFree688 = 0 integer SimpleFunc_maxIndex254 = 0 function initGlobals817() { SimpleFunc_firstFree_688 = 0; SimpleFunc_maxIndex_254 = 0; } function main901() { initGlobals817(); init_test164(); } function config139() { } function init_test164() { local integer f116 local integer clVar137 clVar_137 = alloc_SimpleFunc_test211(); f_116 = clVar_137; dispatch_SimpleFunc_test_SimpleFunc_apply102(f_116); } IS_NATIVE function testSuccess970() { } function apply_test132(integer this139) { testSuccess970(); } function alloc_SimpleFunc_test211() returns integer { local integer this768 if (SimpleFunc_firstFree_688 == 0) { if (SimpleFunc_maxIndex_254 < 32768) { SimpleFunc_maxIndex_254 = (SimpleFunc_maxIndex_254 + 1); this_768 = SimpleFunc_maxIndex_254; SimpleFunc_typeId_374[this_768] = 2; } else { error119("Out of memory: Could not create SimpleFunc_test."); this_768 = 0; }; } else { SimpleFunc_firstFree_688 = (SimpleFunc_firstFree_688 - 1); this_768 = SimpleFunc_nextFree_125[SimpleFunc_firstFree_688]; SimpleFunc_typeId_374[this_768] = 2; }; return this_768; } function error119(string msg541) { $debugPrint706((msg_541 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply102(integer this202) { if (SimpleFunc_typeId_374[this_202] == 0) { if (this_202 == 0) { error119("Nullpointer exception when calling SimpleFunc.apply"); } else { error119("Called SimpleFunc.apply on invalid object."); }; } else { }; apply_test132(this_202); }