array SimpleFunc_nextFree175 integer SimpleFunc_firstFree123 integer SimpleFunc_maxIndex668 array SimpleFunc_typeId161 array y185 integer SimpleFunc_firstFree123 = 0 integer SimpleFunc_maxIndex668 = 0 function initGlobals129() { } function main138() { initGlobals129(); init_test202(); } function config214() { } function init_test202() { local integer clVar138 clVar_138 = alloc_SimpleFunc_test194(); y_185[clVar_138] = 4; if (dispatch_SimpleFunc_test_SimpleFunc_apply197(clVar_138, 3) == 7) { testSuccess839(); } else { }; } IS_NATIVE function testSuccess839() { } function apply_test431(integer this123, integer x138) returns integer { return (x_138 + y_185[this_123]); } function alloc_SimpleFunc_test194() returns integer { local integer this139 if (SimpleFunc_firstFree_123 == 0) { if (SimpleFunc_maxIndex_668 < 32768) { SimpleFunc_maxIndex_668 = (SimpleFunc_maxIndex_668 + 1); this_139 = SimpleFunc_maxIndex_668; SimpleFunc_typeId_161[this_139] = 2; } else { error104("Out of memory: Could not create SimpleFunc_test."); this_139 = 0; }; } else { SimpleFunc_firstFree_123 = (SimpleFunc_firstFree_123 - 1); this_139 = SimpleFunc_nextFree_175[SimpleFunc_firstFree_123]; SimpleFunc_typeId_161[this_139] = 2; }; return this_139; } function error104(string msg199) { $debugPrint180((msg_199 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply197(integer this160, integer x179) returns integer { if (SimpleFunc_typeId_161[this_160] == 0) { if (this_160 == 0) { error104("Nullpointer exception when calling SimpleFunc.apply"); } else { error104("Called SimpleFunc.apply on invalid object."); }; } else { }; return apply_test431(this_160, x_179); }