array C_nextFree480 integer C_firstFree111 integer C_maxIndex975 array C_typeId169 integer C_firstFree111 = 0 integer C_maxIndex975 = 0 function initGlobals169() { } function main787() { initGlobals169(); init_test532(); } function config415() { } function init_test532() { local integer c133 local integer this128 local integer test_C_foo_result132 c_133 = new_C594(); this_128 = c_133; if (C_typeId_169[this_128] == 0) { if (this_128 == 0) { error897("Nullpointer exception when calling C.foo"); } else { error897("Called C.foo on invalid object."); }; } else { }; test_C_foo_result_132 = 3; if (test_C_foo_result_132 == 3) { testSuccess189(); } else { }; } IS_NATIVE function testSuccess189() { } function new_C594() returns integer { local integer this868 local integer this544 if (C_firstFree_111 == 0) { if (C_maxIndex_975 < 32768) { C_maxIndex_975 = (C_maxIndex_975 + 1); this_544 = C_maxIndex_975; C_typeId_169[this_544] = 1; } else { error897("Out of memory: Could not create C."); this_544 = 0; }; } else { C_firstFree_111 = (C_firstFree_111 - 1); this_544 = C_nextFree_480[C_firstFree_111]; C_typeId_169[this_544] = 1; }; this_868 = this_544; return this_868; } function error897(string msg154) { $debugPrint968((msg_154 + (" " + #getStackTrace()))); }