array C_nextFree151 integer C_firstFree156 integer C_maxIndex118 array C_typeId144 integer C_firstFree156 = 0 integer C_maxIndex118 = 0 function initGlobals135() { C_firstFree_156 = 0; C_maxIndex_118 = 0; } function main172() { initGlobals135(); init_test455(); } function config672() { } function init_test455() { local integer c721 c_721 = new_C813(1); dispatch_C_test_C_foo736(c_721, 1); } IS_NATIVE function testSuccess142() { } function C_foo477(integer this340, any t544) { dispatch_C_test_C_foo_7158(this_340, new_C813(t_544)); } function new_C813(any x110) returns integer { local integer this985 this_985 = alloc_C207(); construct_C861(this_985, x_110); return this_985; } function C_foo_1134(integer this242, integer t199) { testSuccess142(); } function C_init110(integer this183) { } function construct_C861(integer this132, any x398) { C_init110(this_132); } function alloc_C207() returns integer { local integer this892 if (C_firstFree_156 == 0) { if (C_maxIndex_118 < 32768) { C_maxIndex_118 = (C_maxIndex_118 + 1); this_892 = C_maxIndex_118; C_typeId_144[this_892] = 1; } else { error195("Out of memory: Could not create C."); this_892 = 0; }; } else { C_firstFree_156 = (C_firstFree_156 - 1); this_892 = C_nextFree_151[C_firstFree_156]; C_typeId_144[this_892] = 1; }; return this_892; } function error195(string msg104) { $debugPrint211((msg_104 + (" " + #getStackTrace()))); } function dispatch_C_test_C_foo736(integer this755, any t753) { if (C_typeId_144[this_755] == 0) { if (this_755 == 0) { error195("Nullpointer exception when calling C.foo"); } else { error195("Called C.foo on invalid object."); }; } else { }; C_foo477(this_755, t_753); } function dispatch_C_test_C_foo_7158(integer this171, integer t165) { if (C_typeId_144[this_171] == 0) { if (this_171 == 0) { error195("Nullpointer exception when calling C.foo"); } else { error195("Called C.foo on invalid object."); }; } else { }; C_foo_1134(this_171, t_165); }