array SimpleFunc_nextFree785 integer SimpleFunc_firstFree117 integer SimpleFunc_maxIndex178 array SimpleFunc_typeId150 array y599 integer SimpleFunc_firstFree117 = 0 integer SimpleFunc_maxIndex178 = 0 function initGlobals163() { } function main721() { initGlobals163(); init_test176(); } function config460() { } function init_test176() { local integer y120 local integer f128 local integer clVar210 local integer this107 local integer this679 local integer x202 local integer test_SimpleFunc_apply_result173 local integer this137 local integer x143 local integer a596 local integer b135 y_120 = 4; if (SimpleFunc_firstFree_117 == 0) { if (SimpleFunc_maxIndex_178 < 32768) { SimpleFunc_maxIndex_178 = (SimpleFunc_maxIndex_178 + 1); this_107 = SimpleFunc_maxIndex_178; SimpleFunc_typeId_150[this_107] = 2; } else { error151("Out of memory: Could not create SimpleFunc_test."); this_107 = 0; }; } else { SimpleFunc_firstFree_117 = (SimpleFunc_firstFree_117 - 1); this_107 = SimpleFunc_nextFree_785[SimpleFunc_firstFree_117]; SimpleFunc_typeId_150[this_107] = 2; }; clVar_210 = this_107; y_599[clVar_210] = y_120; f_128 = clVar_210; this_679 = f_128; x_202 = 3; if (SimpleFunc_typeId_150[this_679] == 0) { if (this_679 == 0) { error151("Nullpointer exception when calling SimpleFunc.apply"); } else { error151("Called SimpleFunc.apply on invalid object."); }; } else { }; this_137 = this_679; x_143 = x_202; a_596 = y_599[this_137]; b_135 = (a_596 + x_143); test_SimpleFunc_apply_result_173 = b_135; if (test_SimpleFunc_apply_result_173 == 7) { testSuccess130(); } else { }; } IS_NATIVE function testSuccess130() { } function error151(string msg185) { $debugPrint213((msg_185 + (" " + #getStackTrace()))); }