array A_nextFree102 integer A_firstFree505 integer A_maxIndex151 array C_nextFree169 integer C_firstFree157 integer C_maxIndex169 array C_typeId156 integer A_firstFree505 = 0 integer A_maxIndex151 = 0 integer C_firstFree157 = 0 integer C_maxIndex169 = 0 function initGlobals132() { } function main202() { initGlobals132(); init_Test518(); } function config150() { } function init_Test518() { dispatch_C_Test_C_foo213(new_C186(), new_A510()); dispatch_C_Test_C_foo_4174(new_C186(), 1, 2, 3, 4); } IS_NATIVE function testSuccess132() { } function A_init154(integer this635) { } function new_A510() returns integer { local integer this142 this_142 = alloc_A177(); construct_A165(this_142); return this_142; } function construct_A165(integer this207) { A_init154(this_207); } function C_foo528(integer this158, integer s109) { } function C_init111(integer this284) { } function new_C186() returns integer { local integer this122 this_122 = alloc_C365(); construct_C345(this_122); return this_122; } function construct_C345(integer this970) { C_init111(this_970); } function alloc_A177() returns integer { local integer this185 if (A_firstFree_505 == 0) { if (A_maxIndex_151 < 32768) { A_maxIndex_151 = (A_maxIndex_151 + 1); this_185 = A_maxIndex_151; } else { error415("Out of memory: Could not create A."); this_185 = 0; }; } else { A_firstFree_505 = (A_firstFree_505 - 1); this_185 = A_nextFree_102[A_firstFree_505]; }; return this_185; } function error415(string msg848) { $debugPrint206((msg_848 + (" " + #getStackTrace()))); } function alloc_C365() returns integer { local integer this111 if (C_firstFree_157 == 0) { if (C_maxIndex_169 < 32768) { C_maxIndex_169 = (C_maxIndex_169 + 1); this_111 = C_maxIndex_169; C_typeId_156[this_111] = 2; } else { error415("Out of memory: Could not create C."); this_111 = 0; }; } else { C_firstFree_157 = (C_firstFree_157 - 1); this_111 = C_nextFree_169[C_firstFree_157]; C_typeId_156[this_111] = 2; }; return this_111; } function dispatch_C_Test_C_foo213(integer this649, integer s918) { if (C_typeId_156[this_649] == 0) { if (this_649 == 0) { error415("Nullpointer exception when calling C.foo"); } else { error415("Called C.foo on invalid object."); }; } else { }; C_foo528(this_649, s_918); } function C_foo_4203(integer this258, any ints_0188, any ints_1125, any ints_2467, any ints_3200) { testSuccess132(); } function dispatch_C_Test_C_foo_4174(integer this843, any ints_0111, any ints_1158, any ints_2138, any ints_3106) { if (C_typeId_156[this_843] == 0) { if (this_843 == 0) { error415("Nullpointer exception when calling C.foo"); } else { error415("Called C.foo on invalid object."); }; } else { }; C_foo_4203(this_843, ints_0_111, ints_1_158, ints_2_138, ints_3_106); }