array SimpleFunc_nextFree139 integer SimpleFunc_firstFree115 integer SimpleFunc_maxIndex736 array SimpleFunc_typeId274 integer SimpleFunc_firstFree115 = 0 integer SimpleFunc_maxIndex736 = 0 function initGlobals103() { } function main112() { initGlobals103(); init_test183(); } function config652() { } function init_test183() { local integer f187 local integer clVar579 local integer this118 local integer this921 local integer x116 local integer y140 local integer test_SimpleFunc_apply_result196 local integer x156 local integer y211 if (SimpleFunc_firstFree_115 == 0) { if (SimpleFunc_maxIndex_736 < 32768) { SimpleFunc_maxIndex_736 = (SimpleFunc_maxIndex_736 + 1); this_118 = SimpleFunc_maxIndex_736; SimpleFunc_typeId_274[this_118] = 2; } else { error710("Out of memory: Could not create SimpleFunc_test."); this_118 = 0; }; } else { SimpleFunc_firstFree_115 = (SimpleFunc_firstFree_115 - 1); this_118 = SimpleFunc_nextFree_139[SimpleFunc_firstFree_115]; SimpleFunc_typeId_274[this_118] = 2; }; clVar_579 = this_118; f_187 = clVar_579; this_921 = f_187; x_116 = 3; y_140 = 4; if (SimpleFunc_typeId_274[this_921] == 0) { if (this_921 == 0) { error710("Nullpointer exception when calling SimpleFunc.apply"); } else { error710("Called SimpleFunc.apply on invalid object."); }; } else { }; x_156 = x_116; y_211 = y_140; test_SimpleFunc_apply_result_196 = (x_156 + y_211); if (test_SimpleFunc_apply_result_196 == 7) { testSuccess566(); } else { }; } IS_NATIVE function testSuccess566() { } function error710(string msg144) { $debugPrint178((msg_144 + (" " + #getStackTrace()))); }