array E_nextFree459 integer E_firstFree186 integer E_maxIndex786 array E_typeId931 integer E_firstFree186 = 0 integer E_maxIndex786 = 0 function initGlobals332() { } function main850() { initGlobals332(); init_test120(); } function config713() { } function init_test120() { local integer e303 local integer this836 local integer test_E_D_C_B_foo_result142 local integer this116 local integer test_E_D_C_A_bar_result137 e_303 = new_E745(); this_836 = e_303; if (E_typeId_931[this_836] == 0) { if (this_836 == 0) { error194("Nullpointer exception when calling E.foo"); } else { error194("Called E.foo on invalid object."); }; } else { }; test_E_D_C_B_foo_result_142 = 3; if (test_E_D_C_B_foo_result_142 != 3) { testFail584("foo fail"); } else { }; this_116 = e_303; if (E_typeId_931[this_116] == 0) { if (this_116 == 0) { error194("Nullpointer exception when calling E.bar"); } else { error194("Called E.bar on invalid object."); }; } else { }; test_E_D_C_A_bar_result_137 = 2; if (test_E_D_C_A_bar_result_137 != 2) { testFail584("bar fail"); } else { }; testSuccess164(); } IS_NATIVE function testFail584(string msg126) { } IS_NATIVE function testSuccess164() { } function new_E745() returns integer { local integer this180 local integer this195 local integer this207 local integer this110 if (E_firstFree_186 == 0) { if (E_maxIndex_786 < 32768) { E_maxIndex_786 = (E_maxIndex_786 + 1); this_195 = E_maxIndex_786; E_typeId_931[this_195] = 1; } else { error194("Out of memory: Could not create E."); this_195 = 0; }; } else { E_firstFree_186 = (E_firstFree_186 - 1); this_195 = E_nextFree_459[E_firstFree_186]; E_typeId_931[this_195] = 1; }; this_180 = this_195; this_207 = this_180; this_110 = this_207; return this_180; } function error194(string msg937) { $debugPrint951((msg_937 + (" " + #getStackTrace()))); }