array I_nextFree207 integer I_firstFree136 integer I_maxIndex475 array I_typeId808 integer I_firstFree136 = 0 integer I_maxIndex475 = 0 function initGlobals173() { } function main130() { initGlobals173(); init_test635(); } function config186() { } function init_test635() { local integer i109 local integer this167 local integer x213 local integer test_I_foo_result534 local integer x472 i_109 = new_C890(); this_167 = i_109; x_213 = 1; if (I_typeId_808[this_167] == 0) { if (this_167 == 0) { error147("Nullpointer exception when calling I.foo"); } else { error147("Called I.foo on invalid object."); }; } else { }; x_472 = x_213; test_I_foo_result_534 = (x_472 + 42); if (test_I_foo_result_534 == 43) { testSuccess161(); } else { }; } IS_NATIVE function testSuccess161() { } function new_C890() returns integer { local integer this109 local integer this463 if (I_firstFree_136 == 0) { if (I_maxIndex_475 < 32768) { I_maxIndex_475 = (I_maxIndex_475 + 1); this_463 = I_maxIndex_475; I_typeId_808[this_463] = 2; } else { error147("Out of memory: Could not create C."); this_463 = 0; }; } else { I_firstFree_136 = (I_firstFree_136 - 1); this_463 = I_nextFree_207[I_firstFree_136]; I_typeId_808[this_463] = 2; }; this_109 = this_463; return this_109; } function error147(string msg239) { $debugPrint180((msg_239 + (" " + #getStackTrace()))); }