array C_nextFree187 integer C_firstFree146 integer C_maxIndex999 array C_typeId181 integer C_firstFree146 = 0 integer C_maxIndex999 = 0 function initGlobals142() { } function main411() { initGlobals142(); new_C131(); } function config167() { } IS_NATIVE function testSuccess531() { } function new_C131() returns integer { local integer this131 local integer this254 local integer this140 if (C_firstFree_146 == 0) { if (C_maxIndex_999 < 32768) { C_maxIndex_999 = (C_maxIndex_999 + 1); this_254 = C_maxIndex_999; C_typeId_181[this_254] = 1; } else { error874("Out of memory: Could not create C."); this_254 = 0; }; } else { C_firstFree_146 = (C_firstFree_146 - 1); this_254 = C_nextFree_187[C_firstFree_146]; C_typeId_181[this_254] = 1; }; this_131 = this_254; this_140 = this_131; dispatch_C_test_C_A_foo468(this_140); return this_131; } function error874(string msg775) { $debugPrint164((msg_775 + (" " + #getStackTrace()))); } function dispatch_C_test_C_A_foo468(integer this202) { local integer this134 local integer this209 if (C_typeId_181[this_202] == 0) { if (this_202 == 0) { error874("Nullpointer exception when calling C.foo"); } else { error874("Called C.foo on invalid object."); }; } else { }; this_134 = this_202; this_209 = this_134; if (C_typeId_181[this_209] == 0) { if (this_209 == 0) { error874("Nullpointer exception when calling C.bar"); } else { error874("Called C.bar on invalid object."); }; } else { }; testSuccess531(); }