array SimpleFunc_nextFree153 integer SimpleFunc_firstFree279 integer SimpleFunc_maxIndex471 array SimpleFunc_typeId178 integer SimpleFunc_firstFree279 = 0 integer SimpleFunc_maxIndex471 = 0 function initGlobals315() { } function main100() { initGlobals315(); init_test715(); } function config704() { } function init_test715() { if (dispatch_SimpleFunc_test_SimpleFunc_apply453(alloc_SimpleFunc_test168(), 3, 4) == 7) { testSuccess504(); } else { }; } IS_NATIVE function testSuccess504() { } function apply_test739(integer this689, integer x208, integer y101) returns integer { return (x_208 + y_101); } function alloc_SimpleFunc_test168() returns integer { local integer this156 if (SimpleFunc_firstFree_279 == 0) { if (SimpleFunc_maxIndex_471 < 32768) { SimpleFunc_maxIndex_471 = (SimpleFunc_maxIndex_471 + 1); this_156 = SimpleFunc_maxIndex_471; SimpleFunc_typeId_178[this_156] = 2; } else { error612("Out of memory: Could not create SimpleFunc_test."); this_156 = 0; }; } else { SimpleFunc_firstFree_279 = (SimpleFunc_firstFree_279 - 1); this_156 = SimpleFunc_nextFree_153[SimpleFunc_firstFree_279]; SimpleFunc_typeId_178[this_156] = 2; }; return this_156; } function error612(string msg101) { $debugPrint175((msg_101 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply453(integer this132, integer x205, integer y169) returns integer { if (SimpleFunc_typeId_178[this_132] == 0) { if (this_132 == 0) { error612("Nullpointer exception when calling SimpleFunc.apply"); } else { error612("Called SimpleFunc.apply on invalid object."); }; } else { }; return apply_test739(this_132, x_205, y_169); }