array C_nextFree128 integer C_firstFree180 integer C_maxIndex129 array C_typeId173 array C_i616 integer C_firstFree180 = 0 integer C_maxIndex129 = 0 function initGlobals177() { } function main672() { initGlobals177(); init_test258(); } function config698() { } function init_test258() { local integer this105 local integer test_D_foo_result175 local integer this203 this_105 = new_D132(); if (C_typeId_173[this_105] == 0) { if (this_105 == 0) { error745("Nullpointer exception when calling D.foo"); } else { error745("Called D.foo on invalid object."); }; } else { }; this_203 = this_105; test_D_foo_result_175 = (C_i_616[this_203] + 1); if (test_D_foo_result_175 == 6) { testSuccess188(); } else { }; } IS_NATIVE function testSuccess188() { } function new_D132() returns integer { local integer this100 local integer this190 local integer this152 local integer this154 local integer this122 if (C_firstFree_180 == 0) { if (C_maxIndex_129 < 32768) { C_maxIndex_129 = (C_maxIndex_129 + 1); this_190 = C_maxIndex_129; C_typeId_173[this_190] = 2; } else { error745("Out of memory: Could not create D."); this_190 = 0; }; } else { C_firstFree_180 = (C_firstFree_180 - 1); this_190 = C_nextFree_128[C_firstFree_180]; C_typeId_173[this_190] = 2; }; this_100 = this_190; this_152 = this_100; this_154 = this_152; this_122 = this_154; C_i_616[this_122] = 5; return this_100; } function error745(string msg175) { $debugPrint115((msg_175 + (" " + #getStackTrace()))); }