array C_nextFree155 integer C_firstFree117 integer C_maxIndex159 array C_typeId203 integer C_firstFree117 = 0 integer C_maxIndex159 = 0 function initGlobals105() { } function main210() { initGlobals105(); init_test104(); } function config129() { } function init_test104() { dispatch_C_test_C_test181(new_C159(1)); } IS_NATIVE function testSuccess863() { } function C_foo343(integer this806, any t476) { dispatch_C_test_C_foo_8193(this_806, new_C159(t_476)); } function new_C159(any x185) returns integer { local integer this429 this_429 = alloc_C100(); construct_C427(this_429, x_185); return this_429; } function C_foo_1785(integer this111, integer t942) { testSuccess863(); } function C_test711(integer this755) { dispatch_C_test_C_foo211(new_C159(1), 1); } function C_init417(integer this130) { } function construct_C427(integer this871, any x145) { C_init417(this_871); } function alloc_C100() returns integer { local integer this599 if (C_firstFree_117 == 0) { if (C_maxIndex_159 < 32768) { C_maxIndex_159 = (C_maxIndex_159 + 1); this_599 = C_maxIndex_159; C_typeId_203[this_599] = 1; } else { error150("Out of memory: Could not create C."); this_599 = 0; }; } else { C_firstFree_117 = (C_firstFree_117 - 1); this_599 = C_nextFree_155[C_firstFree_117]; C_typeId_203[this_599] = 1; }; return this_599; } function error150(string msg105) { $debugPrint155((msg_105 + (" " + #getStackTrace()))); } function dispatch_C_test_C_foo211(integer this155, any t182) { if (C_typeId_203[this_155] == 0) { if (this_155 == 0) { error150("Nullpointer exception when calling C.foo"); } else { error150("Called C.foo on invalid object."); }; } else { }; C_foo343(this_155, t_182); } function dispatch_C_test_C_foo_8193(integer this121, integer t141) { if (C_typeId_203[this_121] == 0) { if (this_121 == 0) { error150("Nullpointer exception when calling C.foo"); } else { error150("Called C.foo on invalid object."); }; } else { }; C_foo_1785(this_121, t_141); } function dispatch_C_test_C_test181(integer this598) { if (C_typeId_203[this_598] == 0) { if (this_598 == 0) { error150("Nullpointer exception when calling C.test"); } else { error150("Called C.test on invalid object."); }; } else { }; C_test711(this_598); }