array C_nextFree135 integer C_firstFree487 integer C_maxIndex922 array C_typeId574 array E_nextFree188 integer E_firstFree466 integer E_maxIndex342 array E_typeId140 integer C_firstFree487 = 0 integer C_maxIndex922 = 0 integer E_firstFree466 = 0 integer E_maxIndex342 = 0 function initGlobals178() { } function main862() { initGlobals178(); dispatch_E_Test_E_A_test157(new_E952()); } function config119() { } IS_NATIVE function testSuccess169() { } function new_E952() returns integer { local integer this206 if (E_firstFree_466 == 0) { if (E_maxIndex_342 < 32768) { E_maxIndex_342 = (E_maxIndex_342 + 1); this_206 = E_maxIndex_342; E_typeId_140[this_206] = 3; } else { error460("Out of memory: Could not create E."); this_206 = 0; }; } else { E_firstFree_466 = (E_firstFree_466 - 1); this_206 = E_nextFree_188[E_firstFree_466]; E_typeId_140[this_206] = 3; }; return this_206; } function new_D105() returns integer { local integer this128 if (C_firstFree_487 == 0) { if (C_maxIndex_922 < 32768) { C_maxIndex_922 = (C_maxIndex_922 + 1); this_128 = C_maxIndex_922; C_typeId_574[this_128] = 2; } else { error460("Out of memory: Could not create D."); this_128 = 0; }; } else { C_firstFree_487 = (C_firstFree_487 - 1); this_128 = C_nextFree_135[C_firstFree_487]; C_typeId_574[this_128] = 2; }; return this_128; } function error460(string msg192) { $debugPrint814((msg_192 + (" " + #getStackTrace()))); } function dispatch_E_Test_E_A_test157(integer this218) { if (E_typeId_140[this_218] == 0) { if (this_218 == 0) { error460("Nullpointer exception when calling E.test"); } else { error460("Called E.test on invalid object."); }; } else { }; this_218 = new_D105(); if (C_typeId_574[this_218] == 0) { if (this_218 == 0) { error460("Nullpointer exception when calling D.foo"); } else { error460("Called D.foo on invalid object."); }; } else { }; testSuccess169(); }