array C_nextFree785 integer C_firstFree208 integer C_maxIndex140 array C_typeId141 integer C_firstFree208 = 0 integer C_maxIndex140 = 0 function initGlobals113() { } function main683() { initGlobals113(); new_C184(); } function config173() { } IS_NATIVE function testSuccess594() { } function new_C184() returns integer { local integer this961 local integer this203 local integer this182 if (C_firstFree_208 == 0) { if (C_maxIndex_140 < 32768) { C_maxIndex_140 = (C_maxIndex_140 + 1); this_203 = C_maxIndex_140; C_typeId_141[this_203] = 1; } else { error432("Out of memory: Could not create C."); this_203 = 0; }; } else { C_firstFree_208 = (C_firstFree_208 - 1); this_203 = C_nextFree_785[C_firstFree_208]; C_typeId_141[this_203] = 1; }; this_961 = this_203; this_182 = this_961; dispatch_C_test_C_A_foo147(this_182); return this_961; } function error432(string msg158) { $debugPrint870((msg_158 + (" " + #getStackTrace()))); } function dispatch_C_test_C_A_foo147(integer this120) { local integer this190 local integer this702 if (C_typeId_141[this_120] == 0) { if (this_120 == 0) { error432("Nullpointer exception when calling C.foo"); } else { error432("Called C.foo on invalid object."); }; } else { }; this_190 = this_120; this_702 = this_190; if (C_typeId_141[this_702] == 0) { if (this_702 == 0) { error432("Nullpointer exception when calling C.bar"); } else { error432("Called C.bar on invalid object."); }; } else { }; testSuccess594(); }