array SimpleFunc_nextFree209 integer SimpleFunc_firstFree353 integer SimpleFunc_maxIndex391 array SimpleFunc_typeId906 integer SimpleFunc_firstFree353 = 0 integer SimpleFunc_maxIndex391 = 0 function initGlobals108() { SimpleFunc_firstFree_353 = 0; SimpleFunc_maxIndex_391 = 0; } function main629() { initGlobals108(); init_test368(); } function config201() { } function init_test368() { local integer f204 local integer clVar130 clVar_130 = alloc_SimpleFunc_test212(); f_204 = clVar_130; if (dispatch_SimpleFunc_test_SimpleFunc_apply270(f_204, 3, 4) == 7) { testSuccess142(); } else { }; } IS_NATIVE function testSuccess142() { } function apply_test214(integer this475, integer x134, integer y704) returns integer { return (x_134 + y_704); } function alloc_SimpleFunc_test212() returns integer { local integer this579 if (SimpleFunc_firstFree_353 == 0) { if (SimpleFunc_maxIndex_391 < 32768) { SimpleFunc_maxIndex_391 = (SimpleFunc_maxIndex_391 + 1); this_579 = SimpleFunc_maxIndex_391; SimpleFunc_typeId_906[this_579] = 2; } else { error132("Out of memory: Could not create SimpleFunc_test."); this_579 = 0; }; } else { SimpleFunc_firstFree_353 = (SimpleFunc_firstFree_353 - 1); this_579 = SimpleFunc_nextFree_209[SimpleFunc_firstFree_353]; SimpleFunc_typeId_906[this_579] = 2; }; return this_579; } function error132(string msg180) { $debugPrint692((msg_180 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply270(integer this948, integer x784, integer y108) returns integer { local integer test_SimpleFunc_apply_result113 if (SimpleFunc_typeId_906[this_948] == 0) { if (this_948 == 0) { error132("Nullpointer exception when calling SimpleFunc.apply"); } else { error132("Called SimpleFunc.apply on invalid object."); }; } else { }; test_SimpleFunc_apply_result_113 = apply_test214(this_948, x_784, y_108); return test_SimpleFunc_apply_result_113; }