array C_nextFree207 integer C_firstFree184 integer C_maxIndex137 array C_typeId752 integer C_firstFree184 = 0 integer C_maxIndex137 = 0 function initGlobals582() { } function main148() { initGlobals582(); init_test166(); } function config974() { } function init_test166() { local integer c562 c_562 = new_C156(); if (C_typeId_752[c_562] == 0) { if (c_562 == 0) { error855("Nullpointer exception when calling C.set"); } else { error855("Called C.set on invalid object."); }; } else { }; } function new_C156() returns integer { local integer this141 if (C_firstFree_184 == 0) { if (C_maxIndex_137 < 32768) { C_maxIndex_137 = (C_maxIndex_137 + 1); this_141 = C_maxIndex_137; C_typeId_752[this_141] = 1; } else { error855("Out of memory: Could not create C."); this_141 = 0; }; } else { C_firstFree_184 = (C_firstFree_184 - 1); this_141 = C_nextFree_207[C_firstFree_184]; C_typeId_752[this_141] = 1; }; return this_141; } function error855(string msg197) { $debugPrint516((msg_197 + (" " + #getStackTrace()))); }