array C_nextFree205 integer C_firstFree620 integer C_maxIndex148 array C_typeId118 integer C_firstFree620 = 0 integer C_maxIndex148 = 0 function initGlobals877() { } function main152() { initGlobals877(); init_test200(); } function config144() { } function init_test200() { local integer c555 local integer this100 local integer test_C_B_foo_result207 local integer this603 local integer test_C_B_A_bar_result159 c_555 = new_C389(); this_100 = c_555; if (C_typeId_118[this_100] == 0) { if (this_100 == 0) { error573("Nullpointer exception when calling C.foo"); } else { error573("Called C.foo on invalid object."); }; } else { }; test_C_B_foo_result_207 = 3; if (test_C_B_foo_result_207 != 3) { testFail108("foo fail"); } else { }; this_603 = c_555; if (C_typeId_118[this_603] == 0) { if (this_603 == 0) { error573("Nullpointer exception when calling C.bar"); } else { error573("Called C.bar on invalid object."); }; } else { }; test_C_B_A_bar_result_159 = 2; if (test_C_B_A_bar_result_159 != 2) { testFail108("bar fail"); } else { }; testSuccess760(); } IS_NATIVE function testFail108(string msg419) { } IS_NATIVE function testSuccess760() { } function new_C389() returns integer { local integer this202 local integer this140 local integer this823 if (C_firstFree_620 == 0) { if (C_maxIndex_148 < 32768) { C_maxIndex_148 = (C_maxIndex_148 + 1); this_140 = C_maxIndex_148; C_typeId_118[this_140] = 1; } else { error573("Out of memory: Could not create C."); this_140 = 0; }; } else { C_firstFree_620 = (C_firstFree_620 - 1); this_140 = C_nextFree_205[C_firstFree_620]; C_typeId_118[this_140] = 1; }; this_202 = this_140; this_823 = this_202; return this_202; } function error573(string msg768) { $debugPrint123((msg_768 + (" " + #getStackTrace()))); }