array C_nextFree367 integer C_firstFree212 integer C_maxIndex195 array C_typeId177 integer C_firstFree212 = 0 integer C_maxIndex195 = 0 function initGlobals213() { } function main851() { initGlobals213(); init_test203(); } function config598() { } function init_test203() { new_C179(); } IS_NATIVE function testSuccess737() { } function C_A_foo936(integer this891) { dispatch_C_test_C_A_bar147(this_891); } function C_A_bar162(integer this599) { testSuccess737(); } function C_init179(integer this479) { construct_C_A455(this_479); } function construct_C_A455(integer this612) { } function new_C179() returns integer { local integer this110 this_110 = alloc_C235(); construct_C853(this_110); return this_110; } function construct_C853(integer this206) { C_init179(this_206); dispatch_C_test_C_A_foo146(this_206); } function alloc_C235() returns integer { local integer this122 if (C_firstFree_212 == 0) { if (C_maxIndex_195 < 32768) { C_maxIndex_195 = (C_maxIndex_195 + 1); this_122 = C_maxIndex_195; C_typeId_177[this_122] = 1; } else { error859("Out of memory: Could not create C."); this_122 = 0; }; } else { C_firstFree_212 = (C_firstFree_212 - 1); this_122 = C_nextFree_367[C_firstFree_212]; C_typeId_177[this_122] = 1; }; return this_122; } function error859(string msg150) { $debugPrint236((msg_150 + (" " + #getStackTrace()))); } function dispatch_C_test_C_A_foo146(integer this127) { if (C_typeId_177[this_127] == 0) { if (this_127 == 0) { error859("Nullpointer exception when calling C.foo"); } else { error859("Called C.foo on invalid object."); }; } else { }; C_A_foo936(this_127); } function dispatch_C_test_C_A_bar147(integer this125) { if (C_typeId_177[this_125] == 0) { if (this_125 == 0) { error859("Nullpointer exception when calling C.bar"); } else { error859("Called C.bar on invalid object."); }; } else { }; C_A_bar162(this_125); }