array C_nextFree152 integer C_firstFree188 integer C_maxIndex182 array C_typeId187 integer C_firstFree188 = 0 integer C_maxIndex182 = 0 function initGlobals284() { } function main607() { initGlobals284(); init_test128(); } function config134() { } function init_test128() { local integer this277 local integer test_D_foo_result409 this_277 = new_D454(); if (C_typeId_187[this_277] == 0) { if (this_277 == 0) { error193("Nullpointer exception when calling D.foo"); } else { error193("Called D.foo on invalid object."); }; } else { }; test_D_foo_result_409 = 4; if (test_D_foo_result_409 == 4) { testSuccess101(); } else { }; } IS_NATIVE function testSuccess101() { } function new_D454() returns integer { local integer this788 local integer this152 if (C_firstFree_188 == 0) { if (C_maxIndex_182 < 32768) { C_maxIndex_182 = (C_maxIndex_182 + 1); this_152 = C_maxIndex_182; C_typeId_187[this_152] = 2; } else { error193("Out of memory: Could not create D."); this_152 = 0; }; } else { C_firstFree_188 = (C_firstFree_188 - 1); this_152 = C_nextFree_152[C_firstFree_188]; C_typeId_187[this_152] = 2; }; this_788 = this_152; return this_788; } function error193(string msg651) { $debugPrint752((msg_651 + (" " + #getStackTrace()))); }