array Blub_nextFree126 integer Blub_firstFree365 integer Blub_maxIndex612 array Blub_typeId172 array A_nextFree199 integer A_firstFree211 integer A_maxIndex290 array A_typeId151 array B_nextFree178 integer B_firstFree206 integer B_maxIndex555 array A_x138 array B_x148 integer Blub_firstFree365 = 0 integer Blub_maxIndex612 = 0 integer A_firstFree211 = 0 integer A_maxIndex290 = 0 integer B_firstFree206 = 0 integer B_maxIndex555 = 0 function initGlobals155() { } function main833() { initGlobals155(); init_test704(); } function config230() { } function init_test704() { local integer temp170 local integer this373 local integer this854 if (A_firstFree_211 == 0) { if (A_maxIndex_290 < 32768) { A_maxIndex_290 = (A_maxIndex_290 + 1); this_373 = A_maxIndex_290; A_typeId_151[this_373] = 1; } else { error283("Out of memory: Could not create A."); this_373 = 0; }; } else { A_firstFree_211 = (A_firstFree_211 - 1); this_373 = A_nextFree_199[A_firstFree_211]; A_typeId_151[this_373] = 1; }; A_x_138[this_373] = 3; temp_170 = new_B194(4); if (Blub_firstFree_365 == 0) { if (Blub_maxIndex_612 < 32768) { Blub_maxIndex_612 = (Blub_maxIndex_612 + 1); this_854 = Blub_maxIndex_612; Blub_typeId_172[this_854] = 4; } else { error283("Out of memory: Could not create Blub_callMe_test."); this_854 = 0; }; } else { Blub_firstFree_365 = (Blub_firstFree_365 - 1); this_854 = Blub_nextFree_126[Blub_firstFree_365]; Blub_typeId_172[this_854] = 4; }; if (B_x_148[dispatch_Blub_test_Blub_foo588(this_854, this_373, dispatch_Blub_test_Blub_foo588(this_854, this_373, temp_170))] == 10) { testSuccess109(); } else { }; } IS_NATIVE function testSuccess109() { } function new_B194(integer x227) returns integer { local integer this141 if (B_firstFree_206 == 0) { if (B_maxIndex_555 < 32768) { B_maxIndex_555 = (B_maxIndex_555 + 1); this_141 = B_maxIndex_555; } else { error283("Out of memory: Could not create B."); this_141 = 0; }; } else { B_firstFree_206 = (B_firstFree_206 - 1); this_141 = B_nextFree_178[B_firstFree_206]; }; B_x_148[this_141] = x_227; return this_141; } function error283(string msg326) { $debugPrint200((msg_326 + (" " + #getStackTrace()))); } function dispatch_Blub_test_Blub_foo588(integer this924, any t469, any s189) returns any { if (Blub_typeId_172[this_924] == 0) { if (this_924 == 0) { error283("Nullpointer exception when calling Blub.foo"); } else { error283("Called Blub.foo on invalid object."); }; } else { }; if (A_typeId_151[t_469] == 0) { if (t_469 == 0) { error283("Nullpointer exception when calling A.foo"); } else { error283("Called A.foo on invalid object."); }; } else { }; this_924 = new_B194((A_x_138[t_469] + B_x_148[s_189])); return this_924; }