array C_nextFree187 integer C_firstFree783 integer C_maxIndex131 array C_typeId100 array C_i108 integer C_firstFree783 = 0 integer C_maxIndex131 = 0 function initGlobals193() { } function main214() { initGlobals193(); init_test186(); } function config854() { } function init_test186() { local integer this233 this_233 = new_D319(); if (C_typeId_100[this_233] == 0) { if (this_233 == 0) { error786("Nullpointer exception when calling D.foo"); } else { error786("Called D.foo on invalid object."); }; } else { }; if ((C_i_108[this_233] + 1) == 6) { testSuccess953(); } else { }; } IS_NATIVE function testSuccess953() { } function new_D319() returns integer { local integer this706 if (C_firstFree_783 == 0) { if (C_maxIndex_131 < 32768) { C_maxIndex_131 = (C_maxIndex_131 + 1); this_706 = C_maxIndex_131; C_typeId_100[this_706] = 2; } else { error786("Out of memory: Could not create D."); this_706 = 0; }; } else { C_firstFree_783 = (C_firstFree_783 - 1); this_706 = C_nextFree_187[C_firstFree_783]; C_typeId_100[this_706] = 2; }; C_i_108[this_706] = 5; return this_706; } function error786(string msg104) { $debugPrint121((msg_104 + (" " + #getStackTrace()))); }