array C_nextFree530 integer C_firstFree143 integer C_maxIndex524 array C_typeId205 integer C_firstFree143 = 0 integer C_maxIndex524 = 0 function initGlobals141() { C_firstFree_143 = 0; C_maxIndex_524 = 0; } function main615() { initGlobals141(); init_test128(); } function config142() { } function init_test128() { local integer c972 c_972 = new_C158(1); dispatch_C_test_C_foo156(c_972, 1); } IS_NATIVE function testSuccess160() { } function C_foo175(integer this177, any t239) { dispatch_C_test_C_foo_7362(this_177, new_C158(t_239)); } function new_C158(any x197) returns integer { local integer this515 this_515 = alloc_C140(); construct_C137(this_515, x_197); return this_515; } function C_foo_1116(integer this197, integer t961) { testSuccess160(); } function C_init138(integer this119) { } function construct_C137(integer this981, any x168) { C_init138(this_981); } function alloc_C140() returns integer { local integer this121 if (C_firstFree_143 == 0) { if (C_maxIndex_524 < 32768) { C_maxIndex_524 = (C_maxIndex_524 + 1); this_121 = C_maxIndex_524; C_typeId_205[this_121] = 1; } else { error285("Out of memory: Could not create C."); this_121 = 0; }; } else { C_firstFree_143 = (C_firstFree_143 - 1); this_121 = C_nextFree_530[C_firstFree_143]; C_typeId_205[this_121] = 1; }; return this_121; } function error285(string msg128) { $debugPrint326((msg_128 + (" " + #getStackTrace()))); } function dispatch_C_test_C_foo156(integer this860, any t106) { if (C_typeId_205[this_860] == 0) { if (this_860 == 0) { error285("Nullpointer exception when calling C.foo"); } else { error285("Called C.foo on invalid object."); }; } else { }; C_foo175(this_860, t_106); } function dispatch_C_test_C_foo_7362(integer this189, integer t261) { if (C_typeId_205[this_189] == 0) { if (this_189 == 0) { error285("Nullpointer exception when calling C.foo"); } else { error285("Called C.foo on invalid object."); }; } else { }; C_foo_1116(this_189, t_261); }