array Blub_nextFree913 integer Blub_firstFree460 integer Blub_maxIndex766 array Blub_typeId168 array A_nextFree163 integer A_firstFree182 integer A_maxIndex343 array A_typeId416 array B_nextFree196 integer B_firstFree173 integer B_maxIndex487 array A_x514 array B_x542 integer Blub_firstFree460 = 0 integer Blub_maxIndex766 = 0 integer A_firstFree182 = 0 integer A_maxIndex343 = 0 integer B_firstFree173 = 0 integer B_maxIndex487 = 0 function initGlobals160() { } function main212() { initGlobals160(); init_test609(); } function config106() { } function init_test609() { if (B_x_542[callMe157(new_A176(3), new_B148(4), alloc_Blub_callMe_test124())] == 10) { testSuccess109(); } else { }; } function callMe157(any t175, any s146, integer b140) returns any { return dispatch_Blub_test_Blub_foo208(b_140, t_175, dispatch_Blub_test_Blub_foo208(b_140, t_175, s_146)); } IS_NATIVE function testSuccess109() { } function foo_callMe_test831(integer this123, integer a124, integer b360) returns integer { return dispatch_A_test_A_foo121(a_124, b_360); } function A_foo151(integer this112, integer b104) returns integer { return new_B148((A_x_514[this_112] + B_x_542[b_104])); } function A_init189(integer this973) { } function new_A176(integer x121) returns integer { local integer this156 this_156 = alloc_A197(); construct_A165(this_156, x_121); return this_156; } function construct_A165(integer this136, integer x180) { A_init189(this_136); A_x_514[this_136] = x_180; } function new_B148(integer x285) returns integer { local integer this718 this_718 = alloc_B207(); construct_B113(this_718, x_285); return this_718; } function B_init483(integer this100) { } function construct_B113(integer this205, integer x658) { B_init483(this_205); B_x_542[this_205] = x_658; } function alloc_Blub_callMe_test124() returns integer { local integer this531 if (Blub_firstFree_460 == 0) { if (Blub_maxIndex_766 < 32768) { Blub_maxIndex_766 = (Blub_maxIndex_766 + 1); this_531 = Blub_maxIndex_766; Blub_typeId_168[this_531] = 4; } else { error151("Out of memory: Could not create Blub_callMe_test."); this_531 = 0; }; } else { Blub_firstFree_460 = (Blub_firstFree_460 - 1); this_531 = Blub_nextFree_913[Blub_firstFree_460]; Blub_typeId_168[this_531] = 4; }; return this_531; } function error151(string msg131) { $debugPrint133((msg_131 + (" " + #getStackTrace()))); } function alloc_A197() returns integer { local integer this103 if (A_firstFree_182 == 0) { if (A_maxIndex_343 < 32768) { A_maxIndex_343 = (A_maxIndex_343 + 1); this_103 = A_maxIndex_343; A_typeId_416[this_103] = 1; } else { error151("Out of memory: Could not create A."); this_103 = 0; }; } else { A_firstFree_182 = (A_firstFree_182 - 1); this_103 = A_nextFree_163[A_firstFree_182]; A_typeId_416[this_103] = 1; }; return this_103; } function alloc_B207() returns integer { local integer this125 if (B_firstFree_173 == 0) { if (B_maxIndex_487 < 32768) { B_maxIndex_487 = (B_maxIndex_487 + 1); this_125 = B_maxIndex_487; } else { error151("Out of memory: Could not create B."); this_125 = 0; }; } else { B_firstFree_173 = (B_firstFree_173 - 1); this_125 = B_nextFree_196[B_firstFree_173]; }; return this_125; } function dispatch_A_test_A_foo121(integer this161, integer b609) returns integer { if (A_typeId_416[this_161] == 0) { if (this_161 == 0) { error151("Nullpointer exception when calling A.foo"); } else { error151("Called A.foo on invalid object."); }; } else { }; return A_foo151(this_161, b_609); } function dispatch_Blub_test_Blub_foo208(integer this153, any t128, any s580) returns any { if (Blub_typeId_168[this_153] == 0) { if (this_153 == 0) { error151("Nullpointer exception when calling Blub.foo"); } else { error151("Called Blub.foo on invalid object."); }; } else { }; return foo_callMe_test831(this_153, t_128, s_580); }