array SimpleFunc_nextFree144 integer SimpleFunc_firstFree409 integer SimpleFunc_maxIndex472 array SimpleFunc_typeId183 integer SimpleFunc_firstFree409 = 0 integer SimpleFunc_maxIndex472 = 0 function initGlobals147() { SimpleFunc_firstFree_409 = 0; SimpleFunc_maxIndex_472 = 0; } function main587() { initGlobals147(); init_test915(); } function config172() { } function init_test915() { local integer f472 local integer clVar136 clVar_136 = alloc_SimpleFunc_test167(); f_472 = clVar_136; if (dispatch_SimpleFunc_test_SimpleFunc_call112(f_472) == 1) { testSuccess694(); } else { }; } IS_NATIVE function testSuccess694() { } function call_test446(integer this149) returns integer { return 1; } function alloc_SimpleFunc_test167() returns integer { local integer this152 if (SimpleFunc_firstFree_409 == 0) { if (SimpleFunc_maxIndex_472 < 32768) { SimpleFunc_maxIndex_472 = (SimpleFunc_maxIndex_472 + 1); this_152 = SimpleFunc_maxIndex_472; SimpleFunc_typeId_183[this_152] = 2; } else { error170("Out of memory: Could not create SimpleFunc_test."); this_152 = 0; }; } else { SimpleFunc_firstFree_409 = (SimpleFunc_firstFree_409 - 1); this_152 = SimpleFunc_nextFree_144[SimpleFunc_firstFree_409]; SimpleFunc_typeId_183[this_152] = 2; }; return this_152; } function error170(string msg104) { $debugPrint116((msg_104 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_call112(integer this849) returns integer { local integer test_SimpleFunc_call_result133 if (SimpleFunc_typeId_183[this_849] == 0) { if (this_849 == 0) { error170("Nullpointer exception when calling SimpleFunc.call"); } else { error170("Called SimpleFunc.call on invalid object."); }; } else { }; test_SimpleFunc_call_result_133 = call_test446(this_849); return test_SimpleFunc_call_result_133; }