array A_nextFree199 integer A_firstFree212 integer A_maxIndex179 array C_nextFree194 integer C_firstFree879 integer C_maxIndex205 array C_typeId462 integer A_firstFree212 = 0 integer A_maxIndex179 = 0 integer C_firstFree879 = 0 integer C_maxIndex205 = 0 function initGlobals111() { } function main890() { initGlobals111(); init_Test415(); } function config114() { } function init_Test415() { local integer this213 local integer this582 local integer sum203 this_213 = new_C884(); new_A189(); if (C_typeId_462[this_213] == 0) { if (this_213 == 0) { error603("Nullpointer exception when calling C.foo"); } else { error603("Called C.foo on invalid object."); }; } else { }; this_582 = new_C884(); if (C_typeId_462[this_582] == 0) { if (this_582 == 0) { error603("Nullpointer exception when calling C.foo"); } else { error603("Called C.foo on invalid object."); }; } else { }; sum_203 = 3; sum_203 = (sum_203 + 1); sum_203 = (sum_203 + 1); sum_203 = (sum_203 + 1); sum_203 = (sum_203 + 1); if (sum_203 == 7) { testSuccess184(); } else { }; } IS_NATIVE function testSuccess184() { } function new_A189() returns integer { local integer this150 local integer this463 if (A_firstFree_212 == 0) { if (A_maxIndex_179 < 32768) { A_maxIndex_179 = (A_maxIndex_179 + 1); this_463 = A_maxIndex_179; } else { error603("Out of memory: Could not create A."); this_463 = 0; }; } else { A_firstFree_212 = (A_firstFree_212 - 1); this_463 = A_nextFree_199[A_firstFree_212]; }; this_150 = this_463; return this_150; } function new_C884() returns integer { local integer this154 local integer this203 if (C_firstFree_879 == 0) { if (C_maxIndex_205 < 32768) { C_maxIndex_205 = (C_maxIndex_205 + 1); this_203 = C_maxIndex_205; C_typeId_462[this_203] = 2; } else { error603("Out of memory: Could not create C."); this_203 = 0; }; } else { C_firstFree_879 = (C_firstFree_879 - 1); this_203 = C_nextFree_194[C_firstFree_879]; C_typeId_462[this_203] = 2; }; this_154 = this_203; return this_154; } function error603(string msg820) { $debugPrint186((msg_820 + (" " + #getStackTrace()))); }