array C_nextFree288 integer C_firstFree185 integer C_maxIndex182 array C_typeId105 integer C_firstFree185 = 0 integer C_maxIndex182 = 0 function initGlobals353() { } function main174() { initGlobals353(); init_test554(); } function config167() { } function init_test554() { local integer c675 local integer this117 local integer test_C_foo_result188 c_675 = new_C200(); this_117 = c_675; if (C_typeId_105[this_117] == 0) { if (this_117 == 0) { error321("Nullpointer exception when calling C.foo"); } else { error321("Called C.foo on invalid object."); }; } else { }; test_C_foo_result_188 = 3; if (test_C_foo_result_188 == 3) { testSuccess133(); } else { }; } IS_NATIVE function testSuccess133() { } function new_C200() returns integer { local integer this778 local integer this150 if (C_firstFree_185 == 0) { if (C_maxIndex_182 < 32768) { C_maxIndex_182 = (C_maxIndex_182 + 1); this_150 = C_maxIndex_182; C_typeId_105[this_150] = 1; } else { error321("Out of memory: Could not create C."); this_150 = 0; }; } else { C_firstFree_185 = (C_firstFree_185 - 1); this_150 = C_nextFree_288[C_firstFree_185]; C_typeId_105[this_150] = 1; }; this_778 = this_150; return this_778; } function error321(string msg282) { $debugPrint130((msg_282 + (" " + #getStackTrace()))); }