array B_nextFree174 integer B_firstFree486 integer B_maxIndex469 array B_typeId411 integer B_firstFree486 = 0 integer B_maxIndex469 = 0 function initGlobals137() { } function main234() { initGlobals137(); init_A286(); } function config214() { } function init_A286() { local integer this136 if (B_firstFree_486 == 0) { if (B_maxIndex_469 < 32768) { B_maxIndex_469 = (B_maxIndex_469 + 1); this_136 = B_maxIndex_469; B_typeId_411[this_136] = 3; } else { error128("Out of memory: Could not create B_bar_A."); this_136 = 0; }; } else { B_firstFree_486 = (B_firstFree_486 - 1); this_136 = B_nextFree_174[B_firstFree_486]; B_typeId_411[this_136] = 3; }; dispatch_B_destroyB751(this_136); if (B_firstFree_486 == 0) { if (B_maxIndex_469 < 32768) { B_maxIndex_469 = (B_maxIndex_469 + 1); this_136 = B_maxIndex_469; B_typeId_411[this_136] = 2; } else { error128("Out of memory: Could not create B_A."); this_136 = 0; }; } else { B_firstFree_486 = (B_firstFree_486 - 1); this_136 = B_nextFree_174[B_firstFree_486]; B_typeId_411[this_136] = 2; }; if ((this_136 castTo integer) == 1) { testSuccess158(); } else { }; } IS_NATIVE function testSuccess158() { } function error128(string msg155) { $debugPrint715((msg_155 + (" " + #getStackTrace()))); } function dispatch_B_destroyB751(integer this172) { if (B_typeId_411[this_172] == 0) { if (this_172 == 0) { error128("Nullpointer exception when calling B.B"); } else { error128("Called B.B on invalid object."); }; } else { }; if (B_typeId_411[this_172] == 0) { error128("Double free: object of type B"); } else { B_nextFree_174[B_firstFree_486] = this_172; B_firstFree_486 = (B_firstFree_486 + 1); B_typeId_411[this_172] = 0; }; }