array A_nextFree739 integer A_firstFree165 integer A_maxIndex128 array C_nextFree201 integer C_firstFree554 integer C_maxIndex173 array C_typeId726 integer A_firstFree165 = 0 integer A_maxIndex128 = 0 integer C_firstFree554 = 0 integer C_maxIndex173 = 0 function initGlobals506() { } function main106() { initGlobals506(); init_Test112(); } function config236() { } function init_Test112() { local integer this465 this_465 = new_C840(); new_A166(); if (C_typeId_726[this_465] == 0) { if (this_465 == 0) { error436("Nullpointer exception when calling C.foo"); } else { error436("Called C.foo on invalid object."); }; } else { }; this_465 = new_C840(); if (C_typeId_726[this_465] == 0) { if (this_465 == 0) { error436("Nullpointer exception when calling C.foo"); } else { error436("Called C.foo on invalid object."); }; } else { }; testSuccess404(); } IS_NATIVE function testSuccess404() { } function new_A166() returns integer { local integer this168 if (A_firstFree_165 == 0) { if (A_maxIndex_128 < 32768) { A_maxIndex_128 = (A_maxIndex_128 + 1); this_168 = A_maxIndex_128; } else { error436("Out of memory: Could not create A."); this_168 = 0; }; } else { A_firstFree_165 = (A_firstFree_165 - 1); this_168 = A_nextFree_739[A_firstFree_165]; }; return this_168; } function new_C840() returns integer { local integer this619 if (C_firstFree_554 == 0) { if (C_maxIndex_173 < 32768) { C_maxIndex_173 = (C_maxIndex_173 + 1); this_619 = C_maxIndex_173; C_typeId_726[this_619] = 2; } else { error436("Out of memory: Could not create C."); this_619 = 0; }; } else { C_firstFree_554 = (C_firstFree_554 - 1); this_619 = C_nextFree_201[C_firstFree_554]; C_typeId_726[this_619] = 2; }; return this_619; } function error436(string msg883) { $debugPrint414((msg_883 + (" " + #getStackTrace()))); }