array IntList_elements216 array IntList_nextFree733 integer IntList_firstFree899 integer IntList_maxIndex401 array IntList_typeId581 array IntListIterator_nextFree210 integer IntListIterator_firstFree191 integer IntListIterator_maxIndex136 array IntListIterator_typeId598 array IntList_size213 array IntListIterator_list171 array IntListIterator_pos206 integer wurst_stack_depth884 array wurst_stack456 integer IntList_firstFree899 = 0 integer IntList_maxIndex401 = 0 integer IntListIterator_firstFree191 = 0 integer IntListIterator_maxIndex136 = 0 integer wurst_stack_depth884 = 0 function initGlobals153() { } function main153() { initGlobals153(); init_test149("when calling init_test in testForFrom, line 1"); } function config119() { } function init_test149(string __wurst_stackPos174) { local integer sum204 local integer listIterator147 local integer from441 local integer stackTrace_tempReturn926 wurst_stack_456[wurst_stack_depth_884] = __wurst_stackPos_174; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); listIterator_147 = dispatch_IntList_test_IntList_add594(dispatch_IntList_test_IntList_add594(dispatch_IntList_test_IntList_add594(new_IntList135("when calling new_IntList in testForFrom, line 28"), 7, "when calling add in testForFrom, line 28"), 3, "when calling add in testForFrom, line 28"), 5, "when calling add in testForFrom, line 28"); sum_204 = 0; wurst_stack_456[wurst_stack_depth_884] = "when calling iterator in testForFrom, line 30"; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); if (IntList_typeId_581[listIterator_147] == 0) { if (listIterator_147 == 0) { error449("Nullpointer exception when calling IntList.iterator", "when calling error in testForFrom, line 13"); } else { error449("Called IntList.iterator on invalid object.", "when calling error in testForFrom, line 13"); }; } else { }; wurst_stack_456[wurst_stack_depth_884] = "when calling iterator in testForFrom, line 13"; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); from_441 = new_IntListIterator123(listIterator_147, "when calling new_IntListIterator in testForFrom, line 14"); wurst_stack_depth_884 = ((wurst_stack_depth_884 - 1) - 1); listIterator_147 = from_441; loop { exitwhen (IntListIterator_pos_206[from_441] >= IntList_size_213[IntListIterator_list_171[from_441]]); wurst_stack_456[wurst_stack_depth_884] = "when calling next in testForFrom, line 31"; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); IntListIterator_pos_206[from_441] = (IntListIterator_pos_206[from_441] + 1); stackTrace_tempReturn_926 = dispatch_IntList_test_IntList_get132(IntListIterator_list_171[from_441], (IntListIterator_pos_206[from_441] - 1), "when calling get in testForFrom, line 24"); wurst_stack_depth_884 = (wurst_stack_depth_884 - 1); sum_204 = (sum_204 + stackTrace_tempReturn_926); }; wurst_stack_456[wurst_stack_depth_884] = "when calling close in testForFrom, line 33"; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); if (IntListIterator_typeId_598[listIterator_147] == 0) { if (listIterator_147 == 0) { error449("Nullpointer exception when calling IntListIterator.close", "when calling error in testForFrom, line 25"); } else { error449("Called IntListIterator.close on invalid object.", "when calling error in testForFrom, line 25"); }; } else { }; wurst_stack_456[wurst_stack_depth_884] = "when calling close in testForFrom, line 25"; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); dispatch_IntListIterator_destroyIntListIterator210(listIterator_147, "when calling dispatch_IntListIterator_destroyIntListIterator in testForFrom, line 26"); wurst_stack_depth_884 = ((wurst_stack_depth_884 - 1) - 1); if (sum_204 == 15) { testSuccess120(); } else { }; wurst_stack_depth_884 = (wurst_stack_depth_884 - 1); } IS_NATIVE function testSuccess120() { } function new_IntList135(string __wurst_stackPos395) returns integer { local integer this175 wurst_stack_456[wurst_stack_depth_884] = __wurst_stackPos_395; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); wurst_stack_456[wurst_stack_depth_884] = "when calling alloc_IntList in testForFrom, line 2"; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); if (IntList_firstFree_899 == 0) { if (IntList_maxIndex_401 < 32768) { IntList_maxIndex_401 = (IntList_maxIndex_401 + 1); this_175 = IntList_maxIndex_401; IntList_typeId_581[this_175] = 1; } else { error449("Out of memory: Could not create IntList.", "when calling error in testForFrom, line 2"); this_175 = 0; }; } else { IntList_firstFree_899 = (IntList_firstFree_899 - 1); this_175 = IntList_nextFree_733[IntList_firstFree_899]; IntList_typeId_581[this_175] = 1; }; wurst_stack_depth_884 = (wurst_stack_depth_884 - 1); IntList_size_213[this_175] = 0; wurst_stack_depth_884 = (wurst_stack_depth_884 - 1); return this_175; } function new_IntListIterator123(integer list155, string __wurst_stackPos157) returns integer { local integer this781 wurst_stack_456[wurst_stack_depth_884] = __wurst_stackPos_157; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); wurst_stack_456[wurst_stack_depth_884] = "when calling alloc_IntListIterator in testForFrom, line 18"; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); if (IntListIterator_firstFree_191 == 0) { if (IntListIterator_maxIndex_136 < 32768) { IntListIterator_maxIndex_136 = (IntListIterator_maxIndex_136 + 1); this_781 = IntListIterator_maxIndex_136; IntListIterator_typeId_598[this_781] = 2; } else { error449("Out of memory: Could not create IntListIterator.", "when calling error in testForFrom, line 15"); this_781 = 0; }; } else { IntListIterator_firstFree_191 = (IntListIterator_firstFree_191 - 1); this_781 = IntListIterator_nextFree_210[IntListIterator_firstFree_191]; IntListIterator_typeId_598[this_781] = 2; }; wurst_stack_depth_884 = (wurst_stack_depth_884 - 1); IntListIterator_pos_206[this_781] = 0; IntListIterator_list_171[this_781] = list_155; wurst_stack_depth_884 = (wurst_stack_depth_884 - 1); return this_781; } function error449(string msg782, string __wurst_stackPos168) { local integer stacktraceIndex115 local integer stacktraceLimit162 wurst_stack_456[wurst_stack_depth_884] = __wurst_stackPos_168; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); __wurst_stackPos_168 = ""; stacktraceIndex_115 = wurst_stack_depth_884; stacktraceLimit_162 = 0; loop { stacktraceIndex_115 = (stacktraceIndex_115 - 1); stacktraceLimit_162 = (stacktraceLimit_162 + 1); exitwhen ((stacktraceLimit_162 > 20) or (stacktraceIndex_115 < 0)); __wurst_stackPos_168 = (__wurst_stackPos_168 + (" " + wurst_stack_456[stacktraceIndex_115])); }; $debugPrint133((msg_782 + (" " + __wurst_stackPos_168))); wurst_stack_depth_884 = (wurst_stack_depth_884 - 1); } function dispatch_IntList_test_IntList_add594(integer this343, integer x978, string __wurst_stackPos178) returns integer { wurst_stack_456[wurst_stack_depth_884] = __wurst_stackPos_178; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); if (IntList_typeId_581[this_343] == 0) { if (this_343 == 0) { error449("Nullpointer exception when calling IntList.add", "when calling error in testForFrom, line 7"); } else { error449("Called IntList.add on invalid object.", "when calling error in testForFrom, line 7"); }; } else { }; wurst_stack_456[wurst_stack_depth_884] = "when calling add in testForFrom, line 7"; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); wurst_stack_456[wurst_stack_depth_884] = "when calling getOffset in testForFrom, line 8"; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); if (IntList_typeId_581[this_343] == 0) { if (this_343 == 0) { error449("Nullpointer exception when calling IntList.getOffset", "when calling error in testForFrom, line 5"); } else { error449("Called IntList.getOffset on invalid object.", "when calling error in testForFrom, line 5"); }; } else { }; wurst_stack_depth_884 = (wurst_stack_depth_884 - 1); IntList_elements_216[((64 * ((this_343 castTo integer) - 1)) + IntList_size_213[this_343])] = x_978; IntList_size_213[this_343] = (IntList_size_213[this_343] + 1); wurst_stack_depth_884 = ((wurst_stack_depth_884 - 1) - 1); return this_343; } function dispatch_IntList_test_IntList_get132(integer this193, integer i134, string __wurst_stackPos126) returns integer { wurst_stack_456[wurst_stack_depth_884] = __wurst_stackPos_126; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); if (IntList_typeId_581[this_193] == 0) { if (this_193 == 0) { error449("Nullpointer exception when calling IntList.get", "when calling error in testForFrom, line 11"); } else { error449("Called IntList.get on invalid object.", "when calling error in testForFrom, line 11"); }; } else { }; wurst_stack_456[wurst_stack_depth_884] = "when calling get in testForFrom, line 11"; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); wurst_stack_456[wurst_stack_depth_884] = "when calling getOffset in testForFrom, line 12"; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); if (IntList_typeId_581[this_193] == 0) { if (this_193 == 0) { error449("Nullpointer exception when calling IntList.getOffset", "when calling error in testForFrom, line 5"); } else { error449("Called IntList.getOffset on invalid object.", "when calling error in testForFrom, line 5"); }; } else { }; wurst_stack_depth_884 = (wurst_stack_depth_884 - 1); this_193 = IntList_elements_216[((64 * ((this_193 castTo integer) - 1)) + i_134)]; wurst_stack_depth_884 = ((wurst_stack_depth_884 - 1) - 1); return this_193; } function dispatch_IntListIterator_destroyIntListIterator210(integer this171, string __wurst_stackPos104) { wurst_stack_456[wurst_stack_depth_884] = __wurst_stackPos_104; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); if (IntListIterator_typeId_598[this_171] == 0) { if (this_171 == 0) { error449("Nullpointer exception when calling IntListIterator.IntListIterator", "when calling error in testForFrom, line 15"); } else { error449("Called IntListIterator.IntListIterator on invalid object.", "when calling error in testForFrom, line 15"); }; } else { }; wurst_stack_456[wurst_stack_depth_884] = "when calling destroyIntListIterator in testForFrom, line 15"; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); wurst_stack_456[wurst_stack_depth_884] = "when calling dealloc_IntListIterator in testForFrom, line 15"; wurst_stack_depth_884 = (wurst_stack_depth_884 + 1); if (IntListIterator_typeId_598[this_171] == 0) { error449("Double free: object of type IntListIterator", "when calling error in testForFrom, line 15"); } else { IntListIterator_nextFree_210[IntListIterator_firstFree_191] = this_171; IntListIterator_firstFree_191 = (IntListIterator_firstFree_191 + 1); IntListIterator_typeId_598[this_171] = 0; }; wurst_stack_depth_884 = (((wurst_stack_depth_884 - 1) - 1) - 1); }