array E_nextFree213 integer E_firstFree130 integer E_maxIndex160 array E_typeId166 integer E_firstFree130 = 0 integer E_maxIndex160 = 0 function initGlobals204() { } function main152() { initGlobals204(); init_test136(); } function config955() { } function init_test136() { local integer e194 local integer this986 local integer test_E_D_C_B_foo_result208 local integer this140 local integer test_E_D_C_A_bar_result167 e_194 = new_E866(); this_986 = e_194; if (E_typeId_166[this_986] == 0) { if (this_986 == 0) { error115("Nullpointer exception when calling E.foo"); } else { error115("Called E.foo on invalid object."); }; } else { }; test_E_D_C_B_foo_result_208 = 3; if (test_E_D_C_B_foo_result_208 != 3) { testFail646("foo fail"); } else { }; this_140 = e_194; if (E_typeId_166[this_140] == 0) { if (this_140 == 0) { error115("Nullpointer exception when calling E.bar"); } else { error115("Called E.bar on invalid object."); }; } else { }; test_E_D_C_A_bar_result_167 = 2; if (test_E_D_C_A_bar_result_167 != 2) { testFail646("bar fail"); } else { }; testSuccess129(); } IS_NATIVE function testFail646(string msg908) { } IS_NATIVE function testSuccess129() { } function new_E866() returns integer { local integer this396 local integer this158 local integer this558 local integer this134 if (E_firstFree_130 == 0) { if (E_maxIndex_160 < 32768) { E_maxIndex_160 = (E_maxIndex_160 + 1); this_158 = E_maxIndex_160; E_typeId_166[this_158] = 1; } else { error115("Out of memory: Could not create E."); this_158 = 0; }; } else { E_firstFree_130 = (E_firstFree_130 - 1); this_158 = E_nextFree_213[E_firstFree_130]; E_typeId_166[this_158] = 1; }; this_396 = this_158; this_558 = this_396; this_134 = this_558; return this_396; } function error115(string msg756) { $debugPrint115((msg_756 + (" " + #getStackTrace()))); }