array C_nextFree913 integer C_firstFree164 integer C_maxIndex167 array C_typeId303 integer C_firstFree164 = 0 integer C_maxIndex167 = 0 function initGlobals304() { } function main199() { initGlobals304(); init_test106(); } function config110() { } function init_test106() { local integer this900 local integer test_D_foo_result128 this_900 = new_D197(); if (C_typeId_303[this_900] == 0) { if (this_900 == 0) { error103("Nullpointer exception when calling D.foo"); } else { error103("Called D.foo on invalid object."); }; } else { }; test_D_foo_result_128 = 4; if (test_D_foo_result_128 == 4) { testSuccess214(); } else { }; } IS_NATIVE function testSuccess214() { } function new_D197() returns integer { local integer this209 local integer this699 if (C_firstFree_164 == 0) { if (C_maxIndex_167 < 32768) { C_maxIndex_167 = (C_maxIndex_167 + 1); this_699 = C_maxIndex_167; C_typeId_303[this_699] = 2; } else { error103("Out of memory: Could not create D."); this_699 = 0; }; } else { C_firstFree_164 = (C_firstFree_164 - 1); this_699 = C_nextFree_913[C_firstFree_164]; C_typeId_303[this_699] = 2; }; this_209 = this_699; return this_209; } function error103(string msg121) { $debugPrint801((msg_121 + (" " + #getStackTrace()))); }