array C_nextFree193 integer C_firstFree901 integer C_maxIndex207 array C_typeId138 integer C_firstFree901 = 0 integer C_maxIndex207 = 0 function initGlobals138() { } function main190() { initGlobals138(); init_test111(); } function config287() { } function init_test111() { local integer this637 local integer test_D_foo_result189 this_637 = new_D197(); if (C_typeId_138[this_637] == 0) { if (this_637 == 0) { error103("Nullpointer exception when calling D.foo"); } else { error103("Called D.foo on invalid object."); }; } else { }; test_D_foo_result_189 = 4; if (test_D_foo_result_189 == 4) { testSuccess146(); } else { }; } IS_NATIVE function testSuccess146() { } function new_D197() returns integer { local integer this180 local integer this120 if (C_firstFree_901 == 0) { if (C_maxIndex_207 < 32768) { C_maxIndex_207 = (C_maxIndex_207 + 1); this_120 = C_maxIndex_207; C_typeId_138[this_120] = 2; } else { error103("Out of memory: Could not create D."); this_120 = 0; }; } else { C_firstFree_901 = (C_firstFree_901 - 1); this_120 = C_nextFree_193[C_firstFree_901]; C_typeId_138[this_120] = 2; }; this_180 = this_120; return this_180; } function error103(string msg184) { $debugPrint141((msg_184 + (" " + #getStackTrace()))); }