array I_nextFree107 integer I_firstFree430 integer I_maxIndex183 array I_typeId206 integer I_firstFree430 = 0 integer I_maxIndex183 = 0 function initGlobals133() { } function main457() { initGlobals133(); init_test108(); } function config512() { } function init_test108() { dispatch_I_test_I_foo106(new_C111(), 7); } IS_NATIVE function testSuccess900() { } function C_foo986(integer this289, integer x760) { testSuccess900(); } function C_init162(integer this593) { } function new_C111() returns integer { local integer this140 this_140 = alloc_C939(); construct_C162(this_140); return this_140; } function construct_C162(integer this165) { C_init162(this_165); } function alloc_C939() returns integer { local integer this207 if (I_firstFree_430 == 0) { if (I_maxIndex_183 < 32768) { I_maxIndex_183 = (I_maxIndex_183 + 1); this_207 = I_maxIndex_183; I_typeId_206[this_207] = 2; } else { error168("Out of memory: Could not create C."); this_207 = 0; }; } else { I_firstFree_430 = (I_firstFree_430 - 1); this_207 = I_nextFree_107[I_firstFree_430]; I_typeId_206[this_207] = 2; }; return this_207; } function error168(string msg950) { $debugPrint634((msg_950 + (" " + #getStackTrace()))); } function dispatch_I_test_I_foo106(integer this169, integer x150) { if (I_typeId_206[this_169] == 0) { if (this_169 == 0) { error168("Nullpointer exception when calling I.foo"); } else { error168("Called I.foo on invalid object."); }; } else { }; C_foo986(this_169, x_150); }