array C_nextFree360 integer C_firstFree164 integer C_maxIndex184 array C_typeId113 array C_i187 integer C_firstFree164 = 0 integer C_maxIndex184 = 0 function initGlobals112() { } function main110() { initGlobals112(); init_test120(); } function config226() { } function init_test120() { local integer this196 local integer test_D_foo_result294 local integer this174 this_196 = new_D196(); if (C_typeId_113[this_196] == 0) { if (this_196 == 0) { error187("Nullpointer exception when calling D.foo"); } else { error187("Called D.foo on invalid object."); }; } else { }; this_174 = this_196; test_D_foo_result_294 = (C_i_187[this_174] + 1); if (test_D_foo_result_294 == 6) { testSuccess141(); } else { }; } IS_NATIVE function testSuccess141() { } function new_D196() returns integer { local integer this146 local integer this683 local integer this383 local integer this126 local integer this201 if (C_firstFree_164 == 0) { if (C_maxIndex_184 < 32768) { C_maxIndex_184 = (C_maxIndex_184 + 1); this_683 = C_maxIndex_184; C_typeId_113[this_683] = 2; } else { error187("Out of memory: Could not create D."); this_683 = 0; }; } else { C_firstFree_164 = (C_firstFree_164 - 1); this_683 = C_nextFree_360[C_firstFree_164]; C_typeId_113[this_683] = 2; }; this_146 = this_683; this_383 = this_146; this_126 = this_383; this_201 = this_126; C_i_187[this_201] = 5; return this_146; } function error187(string msg115) { $debugPrint175((msg_115 + (" " + #getStackTrace()))); }