array SimpleFunc_nextFree131 integer SimpleFunc_firstFree170 integer SimpleFunc_maxIndex191 array SimpleFunc_typeId992 array y598 integer SimpleFunc_firstFree170 = 0 integer SimpleFunc_maxIndex191 = 0 function initGlobals128() { SimpleFunc_firstFree_170 = 0; SimpleFunc_maxIndex_191 = 0; } function main118() { initGlobals128(); init_test158(); } function config204() { } function init_test158() { local integer y522 local integer f467 local integer clVar130 y_522 = 4; clVar_130 = alloc_SimpleFunc_test176(); y_598[clVar_130] = y_522; f_467 = clVar_130; if (dispatch_SimpleFunc_test_SimpleFunc_apply771(f_467, 3) == 7) { testSuccess111(); } else { }; } IS_NATIVE function testSuccess111() { } function apply_test123(integer this133, integer x377) returns integer { local integer a299 local integer b915 a_299 = y_598[this_133]; b_915 = (a_299 + x_377); return b_915; } function alloc_SimpleFunc_test176() returns integer { local integer this382 if (SimpleFunc_firstFree_170 == 0) { if (SimpleFunc_maxIndex_191 < 32768) { SimpleFunc_maxIndex_191 = (SimpleFunc_maxIndex_191 + 1); this_382 = SimpleFunc_maxIndex_191; SimpleFunc_typeId_992[this_382] = 2; } else { error262("Out of memory: Could not create SimpleFunc_test."); this_382 = 0; }; } else { SimpleFunc_firstFree_170 = (SimpleFunc_firstFree_170 - 1); this_382 = SimpleFunc_nextFree_131[SimpleFunc_firstFree_170]; SimpleFunc_typeId_992[this_382] = 2; }; return this_382; } function error262(string msg829) { $debugPrint968((msg_829 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply771(integer this147, integer x961) returns integer { local integer test_SimpleFunc_apply_result986 if (SimpleFunc_typeId_992[this_147] == 0) { if (this_147 == 0) { error262("Nullpointer exception when calling SimpleFunc.apply"); } else { error262("Called SimpleFunc.apply on invalid object."); }; } else { }; test_SimpleFunc_apply_result_986 = apply_test123(this_147, x_961); return test_SimpleFunc_apply_result_986; }