array C_nextFree127 integer C_firstFree168 integer C_maxIndex553 array C_typeId100 integer C_firstFree168 = 0 integer C_maxIndex553 = 0 function initGlobals337() { } function main209() { initGlobals337(); init_test143(); } function config144() { } function init_test143() { local integer e103 local integer this115 local integer test_D_bla_result203 local integer this120 e_103 = new_E931(); this_115 = e_103; if (C_typeId_100[this_115] == 0) { if (this_115 == 0) { error385("Nullpointer exception when calling D.bla"); } else { error385("Called D.bla on invalid object."); }; } else { }; this_120 = this_115; test_D_bla_result_203 = dispatch_C_test_C_foo823(this_120); if (test_D_bla_result_203 == 4) { testSuccess165(); } else { }; } IS_NATIVE function testSuccess165() { } function new_E931() returns integer { local integer this719 local integer this725 local integer this575 if (C_firstFree_168 == 0) { if (C_maxIndex_553 < 32768) { C_maxIndex_553 = (C_maxIndex_553 + 1); this_725 = C_maxIndex_553; C_typeId_100[this_725] = 3; } else { error385("Out of memory: Could not create E."); this_725 = 0; }; } else { C_firstFree_168 = (C_firstFree_168 - 1); this_725 = C_nextFree_127[C_firstFree_168]; C_typeId_100[this_725] = 3; }; this_719 = this_725; this_575 = this_719; return this_719; } function error385(string msg192) { $debugPrint208((msg_192 + (" " + #getStackTrace()))); } function dispatch_C_test_C_foo823(integer this189) returns integer { local integer test_C_foo_result794 if (C_typeId_100[this_189] == 0) { if (this_189 == 0) { error385("Nullpointer exception when calling C.foo"); } else { error385("Called C.foo on invalid object."); }; } else { }; if (C_typeId_100[this_189] <= 2) { test_C_foo_result_794 = 3; } else { test_C_foo_result_794 = 4; }; return test_C_foo_result_794; }