array C_nextFree248 integer C_firstFree708 integer C_maxIndex185 array C_typeId179 array E_nextFree855 integer E_firstFree116 integer E_maxIndex134 array E_typeId368 integer C_firstFree708 = 0 integer C_maxIndex185 = 0 integer E_firstFree116 = 0 integer E_maxIndex134 = 0 function initGlobals800() { } function main179() { initGlobals800(); dispatch_E_Test_E_A_test202(new_E119()); } function config189() { } IS_NATIVE function testSuccess231() { } function new_E119() returns integer { local integer this269 if (E_firstFree_116 == 0) { if (E_maxIndex_134 < 32768) { E_maxIndex_134 = (E_maxIndex_134 + 1); this_269 = E_maxIndex_134; E_typeId_368[this_269] = 3; } else { error144("Out of memory: Could not create E."); this_269 = 0; }; } else { E_firstFree_116 = (E_firstFree_116 - 1); this_269 = E_nextFree_855[E_firstFree_116]; E_typeId_368[this_269] = 3; }; return this_269; } function new_D212() returns integer { local integer this749 if (C_firstFree_708 == 0) { if (C_maxIndex_185 < 32768) { C_maxIndex_185 = (C_maxIndex_185 + 1); this_749 = C_maxIndex_185; C_typeId_179[this_749] = 2; } else { error144("Out of memory: Could not create D."); this_749 = 0; }; } else { C_firstFree_708 = (C_firstFree_708 - 1); this_749 = C_nextFree_248[C_firstFree_708]; C_typeId_179[this_749] = 2; }; return this_749; } function error144(string msg810) { $debugPrint131((msg_810 + (" " + #getStackTrace()))); } function dispatch_E_Test_E_A_test202(integer this495) { if (E_typeId_368[this_495] == 0) { if (this_495 == 0) { error144("Nullpointer exception when calling E.test"); } else { error144("Called E.test on invalid object."); }; } else { }; this_495 = new_D212(); if (C_typeId_179[this_495] == 0) { if (this_495 == 0) { error144("Nullpointer exception when calling D.foo"); } else { error144("Called D.foo on invalid object."); }; } else { }; testSuccess231(); }