array test_b689 array Blub_nextFree200 integer Blub_firstFree101 integer Blub_maxIndex192 array Blub_typeId200 array Blub_x163 integer Blub_firstFree101 = 0 integer Blub_maxIndex192 = 0 function initGlobals564() { } function main514() { initGlobals564(); init_test188(); } function config128() { } function init_test188() { local integer i188 local integer x895 local integer this189 local integer this600 local integer this506 local integer x130 local integer x781 local integer this289 local integer this110 local integer this205 local integer x383 local integer x546 local integer this412 local integer this177 local integer this200 local integer x362 local integer x185 local integer this210 local integer this214 local integer this918 local integer x292 local integer x760 local integer this170 local integer this169 local integer this197 local integer x143 local integer x133 local integer this441 local integer this214 local integer this179 local integer x114 local integer x102 local integer this864 local integer this178 local integer this152 local integer x583 local integer x440 local integer this114 local integer this707 local integer this214 local integer x749 local integer x220 local integer this150 local integer this208 local integer this190 local integer x838 local integer x168 local integer this175 local integer this150 local integer this465 local integer x375 x_895 = 0; if (Blub_firstFree_101 == 0) { if (Blub_maxIndex_192 < 32768) { Blub_maxIndex_192 = (Blub_maxIndex_192 + 1); this_600 = Blub_maxIndex_192; Blub_typeId_200[this_600] = 1; } else { error322("Out of memory: Could not create Blub."); this_600 = 0; }; } else { Blub_firstFree_101 = (Blub_firstFree_101 - 1); this_600 = Blub_nextFree_200[Blub_firstFree_101]; Blub_typeId_200[this_600] = 1; }; this_189 = this_600; this_506 = this_189; x_130 = x_895; Blub_x_163[this_506] = x_130; test_b_689[0] = this_189; x_781 = 1; if (Blub_firstFree_101 == 0) { if (Blub_maxIndex_192 < 32768) { Blub_maxIndex_192 = (Blub_maxIndex_192 + 1); this_110 = Blub_maxIndex_192; Blub_typeId_200[this_110] = 1; } else { error322("Out of memory: Could not create Blub."); this_110 = 0; }; } else { Blub_firstFree_101 = (Blub_firstFree_101 - 1); this_110 = Blub_nextFree_200[Blub_firstFree_101]; Blub_typeId_200[this_110] = 1; }; this_289 = this_110; this_205 = this_289; x_383 = x_781; Blub_x_163[this_205] = x_383; test_b_689[1] = this_289; x_546 = 2; if (Blub_firstFree_101 == 0) { if (Blub_maxIndex_192 < 32768) { Blub_maxIndex_192 = (Blub_maxIndex_192 + 1); this_177 = Blub_maxIndex_192; Blub_typeId_200[this_177] = 1; } else { error322("Out of memory: Could not create Blub."); this_177 = 0; }; } else { Blub_firstFree_101 = (Blub_firstFree_101 - 1); this_177 = Blub_nextFree_200[Blub_firstFree_101]; Blub_typeId_200[this_177] = 1; }; this_412 = this_177; this_200 = this_412; x_362 = x_546; Blub_x_163[this_200] = x_362; test_b_689[2] = this_412; x_185 = 3; if (Blub_firstFree_101 == 0) { if (Blub_maxIndex_192 < 32768) { Blub_maxIndex_192 = (Blub_maxIndex_192 + 1); this_214 = Blub_maxIndex_192; Blub_typeId_200[this_214] = 1; } else { error322("Out of memory: Could not create Blub."); this_214 = 0; }; } else { Blub_firstFree_101 = (Blub_firstFree_101 - 1); this_214 = Blub_nextFree_200[Blub_firstFree_101]; Blub_typeId_200[this_214] = 1; }; this_210 = this_214; this_918 = this_210; x_292 = x_185; Blub_x_163[this_918] = x_292; test_b_689[3] = this_210; x_760 = 4; if (Blub_firstFree_101 == 0) { if (Blub_maxIndex_192 < 32768) { Blub_maxIndex_192 = (Blub_maxIndex_192 + 1); this_169 = Blub_maxIndex_192; Blub_typeId_200[this_169] = 1; } else { error322("Out of memory: Could not create Blub."); this_169 = 0; }; } else { Blub_firstFree_101 = (Blub_firstFree_101 - 1); this_169 = Blub_nextFree_200[Blub_firstFree_101]; Blub_typeId_200[this_169] = 1; }; this_170 = this_169; this_197 = this_170; x_143 = x_760; Blub_x_163[this_197] = x_143; test_b_689[4] = this_170; x_133 = 5; if (Blub_firstFree_101 == 0) { if (Blub_maxIndex_192 < 32768) { Blub_maxIndex_192 = (Blub_maxIndex_192 + 1); this_214 = Blub_maxIndex_192; Blub_typeId_200[this_214] = 1; } else { error322("Out of memory: Could not create Blub."); this_214 = 0; }; } else { Blub_firstFree_101 = (Blub_firstFree_101 - 1); this_214 = Blub_nextFree_200[Blub_firstFree_101]; Blub_typeId_200[this_214] = 1; }; this_441 = this_214; this_179 = this_441; x_114 = x_133; Blub_x_163[this_179] = x_114; test_b_689[5] = this_441; x_102 = 6; if (Blub_firstFree_101 == 0) { if (Blub_maxIndex_192 < 32768) { Blub_maxIndex_192 = (Blub_maxIndex_192 + 1); this_178 = Blub_maxIndex_192; Blub_typeId_200[this_178] = 1; } else { error322("Out of memory: Could not create Blub."); this_178 = 0; }; } else { Blub_firstFree_101 = (Blub_firstFree_101 - 1); this_178 = Blub_nextFree_200[Blub_firstFree_101]; Blub_typeId_200[this_178] = 1; }; this_864 = this_178; this_152 = this_864; x_583 = x_102; Blub_x_163[this_152] = x_583; test_b_689[6] = this_864; x_440 = 7; if (Blub_firstFree_101 == 0) { if (Blub_maxIndex_192 < 32768) { Blub_maxIndex_192 = (Blub_maxIndex_192 + 1); this_707 = Blub_maxIndex_192; Blub_typeId_200[this_707] = 1; } else { error322("Out of memory: Could not create Blub."); this_707 = 0; }; } else { Blub_firstFree_101 = (Blub_firstFree_101 - 1); this_707 = Blub_nextFree_200[Blub_firstFree_101]; Blub_typeId_200[this_707] = 1; }; this_114 = this_707; this_214 = this_114; x_749 = x_440; Blub_x_163[this_214] = x_749; test_b_689[7] = this_114; dispatch_Blub_destroyBlub192(test_b_689[0]); dispatch_Blub_destroyBlub192(test_b_689[6]); dispatch_Blub_destroyBlub192(test_b_689[2]); dispatch_Blub_destroyBlub192(test_b_689[4]); x_220 = 8; if (Blub_firstFree_101 == 0) { if (Blub_maxIndex_192 < 32768) { Blub_maxIndex_192 = (Blub_maxIndex_192 + 1); this_208 = Blub_maxIndex_192; Blub_typeId_200[this_208] = 1; } else { error322("Out of memory: Could not create Blub."); this_208 = 0; }; } else { Blub_firstFree_101 = (Blub_firstFree_101 - 1); this_208 = Blub_nextFree_200[Blub_firstFree_101]; Blub_typeId_200[this_208] = 1; }; this_150 = this_208; this_190 = this_150; x_838 = x_220; Blub_x_163[this_190] = x_838; test_b_689[8] = this_150; x_168 = 9; if (Blub_firstFree_101 == 0) { if (Blub_maxIndex_192 < 32768) { Blub_maxIndex_192 = (Blub_maxIndex_192 + 1); this_150 = Blub_maxIndex_192; Blub_typeId_200[this_150] = 1; } else { error322("Out of memory: Could not create Blub."); this_150 = 0; }; } else { Blub_firstFree_101 = (Blub_firstFree_101 - 1); this_150 = Blub_nextFree_200[Blub_firstFree_101]; Blub_typeId_200[this_150] = 1; }; this_175 = this_150; this_465 = this_175; x_375 = x_168; Blub_x_163[this_465] = x_375; test_b_689[9] = this_175; i_188 = 0; loop { exitwhen (not (i_188 < 10)); if (((i_188 mod 2) == 1) and (Blub_x_163[test_b_689[i_188]] != i_188)) { testFail309(((("fail " + I2S254(i_188)) + ", ") + I2S254(Blub_x_163[test_b_689[i_188]]))); } else { }; i_188 = (i_188 + 1); }; testSuccess137(); } IS_NATIVE IS_EXTERN @extern function I2S254(integer i586) returns string { } IS_NATIVE function testFail309(string msg446) { } IS_NATIVE function testSuccess137() { } function error322(string msg495) { $debugPrint188((msg_495 + (" " + #getStackTrace()))); } function dispatch_Blub_destroyBlub192(integer this204) { local integer this133 local integer obj109 if (Blub_typeId_200[this_204] == 0) { if (this_204 == 0) { error322("Nullpointer exception when calling Blub.Blub"); } else { error322("Called Blub.Blub on invalid object."); }; } else { }; this_133 = this_204; obj_109 = this_133; if (Blub_typeId_200[obj_109] == 0) { error322("Double free: object of type Blub"); } else { Blub_nextFree_200[Blub_firstFree_101] = obj_109; Blub_firstFree_101 = (Blub_firstFree_101 + 1); Blub_typeId_200[obj_109] = 0; }; }