array C_nextFree175 integer C_firstFree493 integer C_maxIndex107 array C_typeId152 integer C_firstFree493 = 0 integer C_maxIndex107 = 0 function initGlobals193() { C_firstFree_493 = 0; C_maxIndex_107 = 0; } function main100() { initGlobals193(); init_test148(); } function config753() { } function init_test148() { dispatch_C_test_C_test113(new_C281(1)); } IS_NATIVE function testSuccess162() { } function C_foo193(integer this544, any t178) { dispatch_C_test_C_foo_8284(this_544, new_C281(t_178)); } function new_C281(any x132) returns integer { local integer this189 this_189 = alloc_C174(); construct_C130(this_189, x_132); return this_189; } function C_foo_1596(integer this933, integer t565) { testSuccess162(); } function C_test671(integer this911) { local integer c717 c_717 = new_C281(1); dispatch_C_test_C_foo181(c_717, 1); } function C_init167(integer this121) { } function construct_C130(integer this122, any x406) { C_init167(this_122); } function alloc_C174() returns integer { local integer this237 if (C_firstFree_493 == 0) { if (C_maxIndex_107 < 32768) { C_maxIndex_107 = (C_maxIndex_107 + 1); this_237 = C_maxIndex_107; C_typeId_152[this_237] = 1; } else { error211("Out of memory: Could not create C."); this_237 = 0; }; } else { C_firstFree_493 = (C_firstFree_493 - 1); this_237 = C_nextFree_175[C_firstFree_493]; C_typeId_152[this_237] = 1; }; return this_237; } function error211(string msg167) { $debugPrint334((msg_167 + (" " + #getStackTrace()))); } function dispatch_C_test_C_foo181(integer this797, any t316) { if (C_typeId_152[this_797] == 0) { if (this_797 == 0) { error211("Nullpointer exception when calling C.foo"); } else { error211("Called C.foo on invalid object."); }; } else { }; C_foo193(this_797, t_316); } function dispatch_C_test_C_foo_8284(integer this363, integer t774) { if (C_typeId_152[this_363] == 0) { if (this_363 == 0) { error211("Nullpointer exception when calling C.foo"); } else { error211("Called C.foo on invalid object."); }; } else { }; C_foo_1596(this_363, t_774); } function dispatch_C_test_C_test113(integer this981) { if (C_typeId_152[this_981] == 0) { if (this_981 == 0) { error211("Nullpointer exception when calling C.test"); } else { error211("Called C.test on invalid object."); }; } else { }; C_test671(this_981); }