array C_nextFree218 integer C_firstFree214 integer C_maxIndex134 array C_typeId185 integer C_firstFree214 = 0 integer C_maxIndex134 = 0 function initGlobals108() { } function main409() { initGlobals108(); init_test211(); } function config136() { } function init_test211() { dispatch_C_test_C_test149(new_C116(1)); } IS_NATIVE function testSuccess112() { } function C_foo148(integer this628, any t634) { dispatch_C_test_C_foo_8840(this_628, new_C116(t_634)); } function new_C116(any x129) returns integer { local integer this802 this_802 = alloc_C193(); construct_C130(this_802, x_129); return this_802; } function C_foo_1116(integer this187, integer t296) { testSuccess112(); } function C_test100(integer this170) { dispatch_C_test_C_foo179(new_C116(1), 1); } function C_init832(integer this201) { } function construct_C130(integer this984, any x196) { C_init832(this_984); } function alloc_C193() returns integer { local integer this605 if (C_firstFree_214 == 0) { if (C_maxIndex_134 < 32768) { C_maxIndex_134 = (C_maxIndex_134 + 1); this_605 = C_maxIndex_134; C_typeId_185[this_605] = 1; } else { error788("Out of memory: Could not create C."); this_605 = 0; }; } else { C_firstFree_214 = (C_firstFree_214 - 1); this_605 = C_nextFree_218[C_firstFree_214]; C_typeId_185[this_605] = 1; }; return this_605; } function error788(string msg124) { $debugPrint127((msg_124 + (" " + #getStackTrace()))); } function dispatch_C_test_C_foo179(integer this172, any t164) { if (C_typeId_185[this_172] == 0) { if (this_172 == 0) { error788("Nullpointer exception when calling C.foo"); } else { error788("Called C.foo on invalid object."); }; } else { }; C_foo148(this_172, t_164); } function dispatch_C_test_C_foo_8840(integer this525, integer t385) { if (C_typeId_185[this_525] == 0) { if (this_525 == 0) { error788("Nullpointer exception when calling C.foo"); } else { error788("Called C.foo on invalid object."); }; } else { }; C_foo_1116(this_525, t_385); } function dispatch_C_test_C_test149(integer this608) { if (C_typeId_185[this_608] == 0) { if (this_608 == 0) { error788("Nullpointer exception when calling C.test"); } else { error788("Called C.test on invalid object."); }; } else { }; C_test100(this_608); }