array I_nextFree129 integer I_firstFree272 integer I_maxIndex195 array I_typeId199 integer I_firstFree272 = 0 integer I_maxIndex195 = 0 function initGlobals484() { I_firstFree_272 = 0; I_maxIndex_195 = 0; } function main999() { initGlobals484(); init_test115(); } function config115() { } function init_test115() { local integer i454 i_454 = new_C898(); dispatch_I_test_I_foo230(i_454, 7); } IS_NATIVE function testSuccess158() { } function C_foo569(integer this133, integer x113) { testSuccess158(); } function C_init393(integer this116) { } function new_C898() returns integer { local integer this192 this_192 = alloc_C144(); construct_C109(this_192); return this_192; } function construct_C109(integer this176) { C_init393(this_176); } function alloc_C144() returns integer { local integer this322 if (I_firstFree_272 == 0) { if (I_maxIndex_195 < 32768) { I_maxIndex_195 = (I_maxIndex_195 + 1); this_322 = I_maxIndex_195; I_typeId_199[this_322] = 2; } else { error200("Out of memory: Could not create C."); this_322 = 0; }; } else { I_firstFree_272 = (I_firstFree_272 - 1); this_322 = I_nextFree_129[I_firstFree_272]; I_typeId_199[this_322] = 2; }; return this_322; } function error200(string msg124) { $debugPrint487((msg_124 + (" " + #getStackTrace()))); } function dispatch_I_test_I_foo230(integer this378, integer x129) { if (I_typeId_199[this_378] == 0) { if (this_378 == 0) { error200("Nullpointer exception when calling I.foo"); } else { error200("Called I.foo on invalid object."); }; } else { }; C_foo569(this_378, x_129); }