array C_nextFree111 integer C_firstFree693 integer C_maxIndex183 array C_typeId681 integer C_firstFree693 = 0 integer C_maxIndex183 = 0 function initGlobals108() { } function main731() { initGlobals108(); new_C926(); } function config578() { } IS_NATIVE function testSuccess172() { } function new_C926() returns integer { local integer this845 local integer this943 local integer this164 if (C_firstFree_693 == 0) { if (C_maxIndex_183 < 32768) { C_maxIndex_183 = (C_maxIndex_183 + 1); this_943 = C_maxIndex_183; C_typeId_681[this_943] = 1; } else { error548("Out of memory: Could not create C."); this_943 = 0; }; } else { C_firstFree_693 = (C_firstFree_693 - 1); this_943 = C_nextFree_111[C_firstFree_693]; C_typeId_681[this_943] = 1; }; this_845 = this_943; this_164 = this_845; dispatch_C_test_C_A_foo927(this_164); return this_845; } function error548(string msg679) { $debugPrint729((msg_679 + (" " + #getStackTrace()))); } function dispatch_C_test_C_A_foo927(integer this154) { local integer this244 local integer this191 if (C_typeId_681[this_154] == 0) { if (this_154 == 0) { error548("Nullpointer exception when calling C.foo"); } else { error548("Called C.foo on invalid object."); }; } else { }; this_244 = this_154; this_191 = this_244; if (C_typeId_681[this_191] == 0) { if (this_191 == 0) { error548("Nullpointer exception when calling C.bar"); } else { error548("Called C.bar on invalid object."); }; } else { }; testSuccess172(); }