array A_nextFree439 integer A_firstFree384 integer A_maxIndex167 array C_nextFree112 integer C_firstFree195 integer C_maxIndex760 array C_typeId840 integer A_firstFree384 = 0 integer A_maxIndex167 = 0 integer C_firstFree195 = 0 integer C_maxIndex760 = 0 function initGlobals179() { } function main453() { initGlobals179(); init_Test762(); } function config125() { } function init_Test762() { local integer this105 local integer this153 local integer sum394 this_105 = new_C170(); new_A128(); if (C_typeId_840[this_105] == 0) { if (this_105 == 0) { error875("Nullpointer exception when calling C.foo"); } else { error875("Called C.foo on invalid object."); }; } else { }; this_153 = new_C170(); if (C_typeId_840[this_153] == 0) { if (this_153 == 0) { error875("Nullpointer exception when calling C.foo"); } else { error875("Called C.foo on invalid object."); }; } else { }; sum_394 = 3; sum_394 = (sum_394 + 1); sum_394 = (sum_394 + 1); sum_394 = (sum_394 + 1); sum_394 = (sum_394 + 1); if (sum_394 == 7) { testSuccess143(); } else { }; } IS_NATIVE function testSuccess143() { } function new_A128() returns integer { local integer this966 local integer this771 if (A_firstFree_384 == 0) { if (A_maxIndex_167 < 32768) { A_maxIndex_167 = (A_maxIndex_167 + 1); this_771 = A_maxIndex_167; } else { error875("Out of memory: Could not create A."); this_771 = 0; }; } else { A_firstFree_384 = (A_firstFree_384 - 1); this_771 = A_nextFree_439[A_firstFree_384]; }; this_966 = this_771; return this_966; } function new_C170() returns integer { local integer this112 local integer this157 if (C_firstFree_195 == 0) { if (C_maxIndex_760 < 32768) { C_maxIndex_760 = (C_maxIndex_760 + 1); this_157 = C_maxIndex_760; C_typeId_840[this_157] = 2; } else { error875("Out of memory: Could not create C."); this_157 = 0; }; } else { C_firstFree_195 = (C_firstFree_195 - 1); this_157 = C_nextFree_112[C_firstFree_195]; C_typeId_840[this_157] = 2; }; this_112 = this_157; return this_112; } function error875(string msg107) { $debugPrint124((msg_107 + (" " + #getStackTrace()))); }