array SimpleFunc_nextFree876 integer SimpleFunc_firstFree139 integer SimpleFunc_maxIndex218 array SimpleFunc_typeId780 array y119 integer SimpleFunc_firstFree139 = 0 integer SimpleFunc_maxIndex218 = 0 function initGlobals191() { } function main192() { initGlobals191(); init_test102(); } function config910() { } function init_test102() { local integer clVar145 clVar_145 = alloc_SimpleFunc_test562(); y_119[clVar_145] = 4; if (dispatch_SimpleFunc_test_SimpleFunc_apply317(clVar_145, 3) == 7) { testSuccess170(); } else { }; } IS_NATIVE function testSuccess170() { } function apply_test383(integer this149, integer x151) returns integer { return (y_119[this_149] + x_151); } function alloc_SimpleFunc_test562() returns integer { local integer this131 if (SimpleFunc_firstFree_139 == 0) { if (SimpleFunc_maxIndex_218 < 32768) { SimpleFunc_maxIndex_218 = (SimpleFunc_maxIndex_218 + 1); this_131 = SimpleFunc_maxIndex_218; SimpleFunc_typeId_780[this_131] = 2; } else { error100("Out of memory: Could not create SimpleFunc_test."); this_131 = 0; }; } else { SimpleFunc_firstFree_139 = (SimpleFunc_firstFree_139 - 1); this_131 = SimpleFunc_nextFree_876[SimpleFunc_firstFree_139]; SimpleFunc_typeId_780[this_131] = 2; }; return this_131; } function error100(string msg764) { $debugPrint100((msg_764 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply317(integer this116, integer x112) returns integer { if (SimpleFunc_typeId_780[this_116] == 0) { if (this_116 == 0) { error100("Nullpointer exception when calling SimpleFunc.apply"); } else { error100("Called SimpleFunc.apply on invalid object."); }; } else { }; return apply_test383(this_116, x_112); }