array SimpleFunc_nextFree175 integer SimpleFunc_firstFree357 integer SimpleFunc_maxIndex350 array SimpleFunc_typeId380 integer SimpleFunc_firstFree357 = 0 integer SimpleFunc_maxIndex350 = 0 function initGlobals106() { SimpleFunc_firstFree_357 = 0; SimpleFunc_maxIndex_350 = 0; } function main387() { initGlobals106(); init_test100(); } function config284() { } function init_test100() { local integer f981 local integer clVar104 clVar_104 = alloc_SimpleFunc_test138(); f_981 = clVar_104; if (dispatch_SimpleFunc_test_SimpleFunc_call204(f_981) == 1) { testSuccess151(); } else { }; } IS_NATIVE function testSuccess151() { } function call_test873(integer this142) returns integer { return 1; } function alloc_SimpleFunc_test138() returns integer { local integer this541 if (SimpleFunc_firstFree_357 == 0) { if (SimpleFunc_maxIndex_350 < 32768) { SimpleFunc_maxIndex_350 = (SimpleFunc_maxIndex_350 + 1); this_541 = SimpleFunc_maxIndex_350; SimpleFunc_typeId_380[this_541] = 2; } else { error154("Out of memory: Could not create SimpleFunc_test."); this_541 = 0; }; } else { SimpleFunc_firstFree_357 = (SimpleFunc_firstFree_357 - 1); this_541 = SimpleFunc_nextFree_175[SimpleFunc_firstFree_357]; SimpleFunc_typeId_380[this_541] = 2; }; return this_541; } function error154(string msg771) { $debugPrint171((msg_771 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_call204(integer this809) returns integer { local integer test_SimpleFunc_call_result102 if (SimpleFunc_typeId_380[this_809] == 0) { if (this_809 == 0) { error154("Nullpointer exception when calling SimpleFunc.call"); } else { error154("Called SimpleFunc.call on invalid object."); }; } else { }; test_SimpleFunc_call_result_102 = call_test873(this_809); return test_SimpleFunc_call_result_102; }