array SimpleFunc_nextFree130 integer SimpleFunc_firstFree127 integer SimpleFunc_maxIndex341 array SimpleFunc_typeId589 array y190 integer SimpleFunc_firstFree127 = 0 integer SimpleFunc_maxIndex341 = 0 function initGlobals148() { } function main114() { initGlobals148(); test127(4); } function config100() { } function test127(integer y994) { local integer f116 local integer clVar629 local integer this131 local integer this118 local integer x683 local integer test_SimpleFunc_apply_result213 local integer this205 local integer x622 if (SimpleFunc_firstFree_127 == 0) { if (SimpleFunc_maxIndex_341 < 32768) { SimpleFunc_maxIndex_341 = (SimpleFunc_maxIndex_341 + 1); this_131 = SimpleFunc_maxIndex_341; SimpleFunc_typeId_589[this_131] = 2; } else { error166("Out of memory: Could not create SimpleFunc_test."); this_131 = 0; }; } else { SimpleFunc_firstFree_127 = (SimpleFunc_firstFree_127 - 1); this_131 = SimpleFunc_nextFree_130[SimpleFunc_firstFree_127]; SimpleFunc_typeId_589[this_131] = 2; }; clVar_629 = this_131; y_190[clVar_629] = y_994; f_116 = clVar_629; this_118 = f_116; x_683 = 3; if (SimpleFunc_typeId_589[this_118] == 0) { if (this_118 == 0) { error166("Nullpointer exception when calling SimpleFunc.apply"); } else { error166("Called SimpleFunc.apply on invalid object."); }; } else { }; this_205 = this_118; x_622 = x_683; test_SimpleFunc_apply_result_213 = (x_622 + y_190[this_205]); if (test_SimpleFunc_apply_result_213 == 7) { testSuccess180(); } else { }; } IS_NATIVE function testSuccess180() { } function error166(string msg158) { $debugPrint813((msg_158 + (" " + #getStackTrace()))); }