array I_nextFree125 integer I_firstFree108 integer I_maxIndex201 array I_typeId179 integer I_firstFree108 = 0 integer I_maxIndex201 = 0 function initGlobals477() { I_firstFree_108 = 0; I_maxIndex_201 = 0; } function main167() { initGlobals477(); init_test198(); } function config697() { } function init_test198() { local integer i154 i_154 = new_C784(); dispatch_I_test_I_foo640(i_154, 7); } IS_NATIVE function testSuccess955() { } function C_foo868(integer this608, integer x119) { testSuccess955(); } function C_init100(integer this203) { } function new_C784() returns integer { local integer this418 this_418 = alloc_C120(); construct_C633(this_418); return this_418; } function construct_C633(integer this413) { C_init100(this_413); } function alloc_C120() returns integer { local integer this197 if (I_firstFree_108 == 0) { if (I_maxIndex_201 < 32768) { I_maxIndex_201 = (I_maxIndex_201 + 1); this_197 = I_maxIndex_201; I_typeId_179[this_197] = 2; } else { error909("Out of memory: Could not create C."); this_197 = 0; }; } else { I_firstFree_108 = (I_firstFree_108 - 1); this_197 = I_nextFree_125[I_firstFree_108]; I_typeId_179[this_197] = 2; }; return this_197; } function error909(string msg546) { $debugPrint805((msg_546 + (" " + #getStackTrace()))); } function dispatch_I_test_I_foo640(integer this212, integer x119) { if (I_typeId_179[this_212] == 0) { if (this_212 == 0) { error909("Nullpointer exception when calling I.foo"); } else { error909("Called I.foo on invalid object."); }; } else { }; C_foo868(this_212, x_119); }