array C_nextFree310 integer C_firstFree643 integer C_maxIndex355 array C_typeId202 integer C_firstFree643 = 0 integer C_maxIndex355 = 0 function initGlobals127() { } function main362() { initGlobals127(); new_C742(); } function config106() { } IS_NATIVE function testSuccess127() { } function new_C742() returns integer { local integer this578 if (C_firstFree_643 == 0) { if (C_maxIndex_355 < 32768) { C_maxIndex_355 = (C_maxIndex_355 + 1); this_578 = C_maxIndex_355; C_typeId_202[this_578] = 1; } else { error530("Out of memory: Could not create C."); this_578 = 0; }; } else { C_firstFree_643 = (C_firstFree_643 - 1); this_578 = C_nextFree_310[C_firstFree_643]; C_typeId_202[this_578] = 1; }; dispatch_C_test_C_A_foo211(this_578); return this_578; } function error530(string msg379) { $debugPrint108((msg_379 + (" " + #getStackTrace()))); } function dispatch_C_test_C_A_foo211(integer this206) { if (C_typeId_202[this_206] == 0) { if (this_206 == 0) { error530("Nullpointer exception when calling C.foo"); } else { error530("Called C.foo on invalid object."); }; } else { }; if (C_typeId_202[this_206] == 0) { if (this_206 == 0) { error530("Nullpointer exception when calling C.bar"); } else { error530("Called C.bar on invalid object."); }; } else { }; testSuccess127(); }