array I_nextFree203 integer I_firstFree133 integer I_maxIndex201 array I_typeId158 integer I_firstFree133 = 0 integer I_maxIndex201 = 0 function initGlobals106() { } function main145() { initGlobals106(); init_test114(); } function config209() { } function init_test114() { local integer c1170 local integer c2157 local integer this742 local integer test1_B_foo_result164 local integer this127 local integer test1_B_foo_result199 local boolean andLeft300 c1_170 = new_C121(); c2_157 = new_D120(); this_742 = c1_170; if (I_typeId_158[this_742] == 0) { if (this_742 == 0) { error154("Nullpointer exception when calling B.foo"); } else { error154("Called B.foo on invalid object."); }; } else { }; test1_B_foo_result_164 = 2; if (test1_B_foo_result_164 == 2) { this_127 = c2_157; if (I_typeId_158[this_127] == 0) { if (this_127 == 0) { error154("Nullpointer exception when calling B.foo"); } else { error154("Called B.foo on invalid object."); }; } else { }; test1_B_foo_result_199 = 2; andLeft_300 = (test1_B_foo_result_199 == 2); } else { andLeft_300 = false; }; if andLeft_300 { testSuccess670(); } else { }; } IS_NATIVE function testSuccess670() { } function new_C121() returns integer { local integer this200 local integer this162 if (I_firstFree_133 == 0) { if (I_maxIndex_201 < 32768) { I_maxIndex_201 = (I_maxIndex_201 + 1); this_162 = I_maxIndex_201; I_typeId_158[this_162] = 3; } else { error154("Out of memory: Could not create C."); this_162 = 0; }; } else { I_firstFree_133 = (I_firstFree_133 - 1); this_162 = I_nextFree_203[I_firstFree_133]; I_typeId_158[this_162] = 3; }; this_200 = this_162; return this_200; } function new_D120() returns integer { local integer this839 local integer this602 local integer this595 if (I_firstFree_133 == 0) { if (I_maxIndex_201 < 32768) { I_maxIndex_201 = (I_maxIndex_201 + 1); this_602 = I_maxIndex_201; I_typeId_158[this_602] = 4; } else { error154("Out of memory: Could not create D."); this_602 = 0; }; } else { I_firstFree_133 = (I_firstFree_133 - 1); this_602 = I_nextFree_203[I_firstFree_133]; I_typeId_158[this_602] = 4; }; this_839 = this_602; this_595 = this_839; return this_839; } function error154(string msg978) { $debugPrint125((msg_978 + (" " + #getStackTrace()))); }