array SimpleFunc_nextFree156 integer SimpleFunc_firstFree886 integer SimpleFunc_maxIndex421 array SimpleFunc_typeId903 array y193 integer SimpleFunc_firstFree886 = 0 integer SimpleFunc_maxIndex421 = 0 function initGlobals133() { SimpleFunc_firstFree_886 = 0; SimpleFunc_maxIndex_421 = 0; } function main637() { initGlobals133(); init_test111(); } function config289() { } function init_test111() { test687(4); } function test687(integer y356) { local integer f630 local integer clVar848 clVar_848 = alloc_SimpleFunc_test166(); y_193[clVar_848] = y_356; f_630 = clVar_848; if (dispatch_SimpleFunc_test_SimpleFunc_apply337(f_630, 3) == 7) { testSuccess357(); } else { }; } IS_NATIVE function testSuccess357() { } function apply_test467(integer this181, integer x492) returns integer { return (x_492 + y_193[this_181]); } function alloc_SimpleFunc_test166() returns integer { local integer this212 if (SimpleFunc_firstFree_886 == 0) { if (SimpleFunc_maxIndex_421 < 32768) { SimpleFunc_maxIndex_421 = (SimpleFunc_maxIndex_421 + 1); this_212 = SimpleFunc_maxIndex_421; SimpleFunc_typeId_903[this_212] = 2; } else { error924("Out of memory: Could not create SimpleFunc_test."); this_212 = 0; }; } else { SimpleFunc_firstFree_886 = (SimpleFunc_firstFree_886 - 1); this_212 = SimpleFunc_nextFree_156[SimpleFunc_firstFree_886]; SimpleFunc_typeId_903[this_212] = 2; }; return this_212; } function error924(string msg936) { $debugPrint427((msg_936 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply337(integer this462, integer x363) returns integer { local integer test_SimpleFunc_apply_result340 if (SimpleFunc_typeId_903[this_462] == 0) { if (this_462 == 0) { error924("Nullpointer exception when calling SimpleFunc.apply"); } else { error924("Called SimpleFunc.apply on invalid object."); }; } else { }; test_SimpleFunc_apply_result_340 = apply_test467(this_462, x_363); return test_SimpleFunc_apply_result_340; }