array C_nextFree806 integer C_firstFree704 integer C_maxIndex134 array C_typeId162 array C_i992 integer C_firstFree704 = 0 integer C_maxIndex134 = 0 function initGlobals857() { } function main203() { initGlobals857(); init_test115(); } function config109() { } function init_test115() { local integer this763 local integer test_D_foo_result735 local integer this160 this_763 = new_D125(); if (C_typeId_162[this_763] == 0) { if (this_763 == 0) { error791("Nullpointer exception when calling D.foo"); } else { error791("Called D.foo on invalid object."); }; } else { }; this_160 = this_763; test_D_foo_result_735 = (C_i_992[this_160] + 1); if (test_D_foo_result_735 == 6) { testSuccess941(); } else { }; } IS_NATIVE function testSuccess941() { } function new_D125() returns integer { local integer this139 local integer this143 local integer this832 local integer this210 local integer this120 if (C_firstFree_704 == 0) { if (C_maxIndex_134 < 32768) { C_maxIndex_134 = (C_maxIndex_134 + 1); this_143 = C_maxIndex_134; C_typeId_162[this_143] = 2; } else { error791("Out of memory: Could not create D."); this_143 = 0; }; } else { C_firstFree_704 = (C_firstFree_704 - 1); this_143 = C_nextFree_806[C_firstFree_704]; C_typeId_162[this_143] = 2; }; this_139 = this_143; this_832 = this_139; this_210 = this_832; this_120 = this_210; C_i_992[this_120] = 5; return this_139; } function error791(string msg125) { $debugPrint161((msg_125 + (" " + #getStackTrace()))); }