array A_nextFree203 integer A_firstFree124 integer A_maxIndex665 array C_nextFree504 integer C_firstFree285 integer C_maxIndex631 array C_typeId188 integer A_firstFree124 = 0 integer A_maxIndex665 = 0 integer C_firstFree285 = 0 integer C_maxIndex631 = 0 function initGlobals847() { } function main188() { initGlobals847(); init_Test469(); } function config154() { } function init_Test469() { dispatch_C_Test_C_foo551(new_C189(), new_A140()); dispatch_C_Test_C_foo_4130(new_C189(), 1, 2, 3, 4); } IS_NATIVE function testSuccess999() { } function A_init114(integer this395) { } function new_A140() returns integer { local integer this202 this_202 = alloc_A565(); construct_A112(this_202); return this_202; } function construct_A112(integer this212) { A_init114(this_212); } function C_foo624(integer this180, integer s900) { } function C_init194(integer this533) { } function new_C189() returns integer { local integer this187 this_187 = alloc_C585(); construct_C926(this_187); return this_187; } function construct_C926(integer this181) { C_init194(this_181); } function alloc_A565() returns integer { local integer this188 if (A_firstFree_124 == 0) { if (A_maxIndex_665 < 32768) { A_maxIndex_665 = (A_maxIndex_665 + 1); this_188 = A_maxIndex_665; } else { error185("Out of memory: Could not create A."); this_188 = 0; }; } else { A_firstFree_124 = (A_firstFree_124 - 1); this_188 = A_nextFree_203[A_firstFree_124]; }; return this_188; } function error185(string msg192) { $debugPrint449((msg_192 + (" " + #getStackTrace()))); } function alloc_C585() returns integer { local integer this466 if (C_firstFree_285 == 0) { if (C_maxIndex_631 < 32768) { C_maxIndex_631 = (C_maxIndex_631 + 1); this_466 = C_maxIndex_631; C_typeId_188[this_466] = 2; } else { error185("Out of memory: Could not create C."); this_466 = 0; }; } else { C_firstFree_285 = (C_firstFree_285 - 1); this_466 = C_nextFree_504[C_firstFree_285]; C_typeId_188[this_466] = 2; }; return this_466; } function dispatch_C_Test_C_foo551(integer this679, integer s113) { if (C_typeId_188[this_679] == 0) { if (this_679 == 0) { error185("Nullpointer exception when calling C.foo"); } else { error185("Called C.foo on invalid object."); }; } else { }; C_foo624(this_679, s_113); } function C_foo_4147(integer this206, any ints_0145, any ints_1205, any ints_2167, any ints_3190) { testSuccess999(); } function dispatch_C_Test_C_foo_4130(integer this142, any ints_0198, any ints_1381, any ints_2190, any ints_3390) { if (C_typeId_188[this_142] == 0) { if (this_142 == 0) { error185("Nullpointer exception when calling C.foo"); } else { error185("Called C.foo on invalid object."); }; } else { }; C_foo_4147(this_142, ints_0_198, ints_1_381, ints_2_190, ints_3_390); }