array C_nextFree197 integer C_firstFree481 integer C_maxIndex136 array C_typeId141 integer C_firstFree481 = 0 integer C_maxIndex136 = 0 function initGlobals120() { C_firstFree_481 = 0; C_maxIndex_136 = 0; } function main210() { initGlobals120(); init_test943(); } function config591() { } function init_test943() { dispatch_C_test_C_test443(new_C503(1)); } IS_NATIVE function testSuccess726() { } function C_foo194(integer this274, any t124) { dispatch_C_test_C_foo_8205(this_274, new_C503(t_124)); } function new_C503(any x133) returns integer { local integer this739 this_739 = alloc_C187(); construct_C697(this_739, x_133); return this_739; } function C_foo_1200(integer this200, integer t131) { testSuccess726(); } function C_test914(integer this141) { local integer c185 c_185 = new_C503(1); dispatch_C_test_C_foo238(c_185, 1); } function C_init369(integer this118) { } function construct_C697(integer this110, any x433) { C_init369(this_110); } function alloc_C187() returns integer { local integer this662 if (C_firstFree_481 == 0) { if (C_maxIndex_136 < 32768) { C_maxIndex_136 = (C_maxIndex_136 + 1); this_662 = C_maxIndex_136; C_typeId_141[this_662] = 1; } else { error192("Out of memory: Could not create C."); this_662 = 0; }; } else { C_firstFree_481 = (C_firstFree_481 - 1); this_662 = C_nextFree_197[C_firstFree_481]; C_typeId_141[this_662] = 1; }; return this_662; } function error192(string msg106) { $debugPrint897((msg_106 + (" " + #getStackTrace()))); } function dispatch_C_test_C_foo238(integer this117, any t411) { if (C_typeId_141[this_117] == 0) { if (this_117 == 0) { error192("Nullpointer exception when calling C.foo"); } else { error192("Called C.foo on invalid object."); }; } else { }; C_foo194(this_117, t_411); } function dispatch_C_test_C_foo_8205(integer this405, integer t540) { if (C_typeId_141[this_405] == 0) { if (this_405 == 0) { error192("Nullpointer exception when calling C.foo"); } else { error192("Called C.foo on invalid object."); }; } else { }; C_foo_1200(this_405, t_540); } function dispatch_C_test_C_test443(integer this158) { if (C_typeId_141[this_158] == 0) { if (this_158 == 0) { error192("Nullpointer exception when calling C.test"); } else { error192("Called C.test on invalid object."); }; } else { }; C_test914(this_158); }