array SimpleFunc_nextFree594 integer SimpleFunc_firstFree194 integer SimpleFunc_maxIndex573 array SimpleFunc_typeId263 integer SimpleFunc_firstFree194 = 0 integer SimpleFunc_maxIndex573 = 0 function initGlobals117() { } function main125() { initGlobals117(); init_test122(); } function config214() { } function init_test122() { local integer f172 local integer clVar251 local integer this577 local integer this181 local integer x219 local integer y167 local integer test_SimpleFunc_apply_result113 local integer x116 local integer y179 if (SimpleFunc_firstFree_194 == 0) { if (SimpleFunc_maxIndex_573 < 32768) { SimpleFunc_maxIndex_573 = (SimpleFunc_maxIndex_573 + 1); this_577 = SimpleFunc_maxIndex_573; SimpleFunc_typeId_263[this_577] = 2; } else { error115("Out of memory: Could not create SimpleFunc_test."); this_577 = 0; }; } else { SimpleFunc_firstFree_194 = (SimpleFunc_firstFree_194 - 1); this_577 = SimpleFunc_nextFree_594[SimpleFunc_firstFree_194]; SimpleFunc_typeId_263[this_577] = 2; }; clVar_251 = this_577; f_172 = clVar_251; this_181 = f_172; x_219 = 3; y_167 = 4; if (SimpleFunc_typeId_263[this_181] == 0) { if (this_181 == 0) { error115("Nullpointer exception when calling SimpleFunc.apply"); } else { error115("Called SimpleFunc.apply on invalid object."); }; } else { }; x_116 = x_219; y_179 = y_167; test_SimpleFunc_apply_result_113 = (x_116 + y_179); if (test_SimpleFunc_apply_result_113 == 7) { testSuccess109(); } else { }; } IS_NATIVE function testSuccess109() { } function error115(string msg134) { $debugPrint121((msg_134 + (" " + #getStackTrace()))); }