array IntList_elements116 array IntList_nextFree115 integer IntList_firstFree553 integer IntList_maxIndex344 array IntList_typeId176 array IntListIterator_nextFree393 integer IntListIterator_firstFree145 integer IntListIterator_maxIndex876 array IntListIterator_typeId123 array IntList_size836 array IntListIterator_list211 array IntListIterator_pos137 integer wurst_stack_depth142 array wurst_stack541 integer IntList_firstFree553 = 0 integer IntList_maxIndex344 = 0 integer IntListIterator_firstFree145 = 0 integer IntListIterator_maxIndex876 = 0 integer wurst_stack_depth142 = 0 function initGlobals967() { } function main340() { initGlobals967(); init_test136("when calling init_test in testForFrom, line 1"); } function config861() { } function init_test136(string __wurst_stackPos285) { local integer sum789 local integer listIterator953 local integer from202 local integer stackTrace_tempReturn800 wurst_stack_541[wurst_stack_depth_142] = __wurst_stackPos_285; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); listIterator_953 = dispatch_IntList_test_IntList_add209(dispatch_IntList_test_IntList_add209(dispatch_IntList_test_IntList_add209(new_IntList130("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_789 = 0; wurst_stack_541[wurst_stack_depth_142] = "when calling iterator in testForFrom, line 30"; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); if (IntList_typeId_176[listIterator_953] == 0) { if (listIterator_953 == 0) { error879("Nullpointer exception when calling IntList.iterator", "when calling error in testForFrom, line 13"); } else { error879("Called IntList.iterator on invalid object.", "when calling error in testForFrom, line 13"); }; } else { }; wurst_stack_541[wurst_stack_depth_142] = "when calling iterator in testForFrom, line 13"; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); from_202 = new_IntListIterator155(listIterator_953, "when calling new_IntListIterator in testForFrom, line 14"); wurst_stack_depth_142 = ((wurst_stack_depth_142 - 1) - 1); listIterator_953 = from_202; loop { exitwhen (IntListIterator_pos_137[from_202] >= IntList_size_836[IntListIterator_list_211[from_202]]); wurst_stack_541[wurst_stack_depth_142] = "when calling next in testForFrom, line 31"; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); IntListIterator_pos_137[from_202] = (IntListIterator_pos_137[from_202] + 1); stackTrace_tempReturn_800 = dispatch_IntList_test_IntList_get291(IntListIterator_list_211[from_202], (IntListIterator_pos_137[from_202] - 1), "when calling get in testForFrom, line 24"); wurst_stack_depth_142 = (wurst_stack_depth_142 - 1); sum_789 = (sum_789 + stackTrace_tempReturn_800); }; wurst_stack_541[wurst_stack_depth_142] = "when calling close in testForFrom, line 33"; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); if (IntListIterator_typeId_123[listIterator_953] == 0) { if (listIterator_953 == 0) { error879("Nullpointer exception when calling IntListIterator.close", "when calling error in testForFrom, line 25"); } else { error879("Called IntListIterator.close on invalid object.", "when calling error in testForFrom, line 25"); }; } else { }; wurst_stack_541[wurst_stack_depth_142] = "when calling close in testForFrom, line 25"; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); dispatch_IntListIterator_destroyIntListIterator194(listIterator_953, "when calling dispatch_IntListIterator_destroyIntListIterator in testForFrom, line 26"); wurst_stack_depth_142 = ((wurst_stack_depth_142 - 1) - 1); if (sum_789 == 15) { testSuccess820(); } else { }; wurst_stack_depth_142 = (wurst_stack_depth_142 - 1); } IS_NATIVE function testSuccess820() { } function new_IntList130(string __wurst_stackPos339) returns integer { local integer this149 wurst_stack_541[wurst_stack_depth_142] = __wurst_stackPos_339; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); wurst_stack_541[wurst_stack_depth_142] = "when calling alloc_IntList in testForFrom, line 2"; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); if (IntList_firstFree_553 == 0) { if (IntList_maxIndex_344 < 32768) { IntList_maxIndex_344 = (IntList_maxIndex_344 + 1); this_149 = IntList_maxIndex_344; IntList_typeId_176[this_149] = 1; } else { error879("Out of memory: Could not create IntList.", "when calling error in testForFrom, line 2"); this_149 = 0; }; } else { IntList_firstFree_553 = (IntList_firstFree_553 - 1); this_149 = IntList_nextFree_115[IntList_firstFree_553]; IntList_typeId_176[this_149] = 1; }; wurst_stack_depth_142 = (wurst_stack_depth_142 - 1); IntList_size_836[this_149] = 0; wurst_stack_depth_142 = (wurst_stack_depth_142 - 1); return this_149; } function new_IntListIterator155(integer list585, string __wurst_stackPos129) returns integer { local integer this100 wurst_stack_541[wurst_stack_depth_142] = __wurst_stackPos_129; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); wurst_stack_541[wurst_stack_depth_142] = "when calling alloc_IntListIterator in testForFrom, line 18"; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); if (IntListIterator_firstFree_145 == 0) { if (IntListIterator_maxIndex_876 < 32768) { IntListIterator_maxIndex_876 = (IntListIterator_maxIndex_876 + 1); this_100 = IntListIterator_maxIndex_876; IntListIterator_typeId_123[this_100] = 2; } else { error879("Out of memory: Could not create IntListIterator.", "when calling error in testForFrom, line 15"); this_100 = 0; }; } else { IntListIterator_firstFree_145 = (IntListIterator_firstFree_145 - 1); this_100 = IntListIterator_nextFree_393[IntListIterator_firstFree_145]; IntListIterator_typeId_123[this_100] = 2; }; wurst_stack_depth_142 = (wurst_stack_depth_142 - 1); IntListIterator_pos_137[this_100] = 0; IntListIterator_list_211[this_100] = list_585; wurst_stack_depth_142 = (wurst_stack_depth_142 - 1); return this_100; } function error879(string msg525, string __wurst_stackPos113) { local integer stacktraceIndex191 local integer stacktraceLimit260 wurst_stack_541[wurst_stack_depth_142] = __wurst_stackPos_113; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); __wurst_stackPos_113 = ""; stacktraceIndex_191 = wurst_stack_depth_142; stacktraceLimit_260 = 0; loop { stacktraceIndex_191 = (stacktraceIndex_191 - 1); stacktraceLimit_260 = (stacktraceLimit_260 + 1); exitwhen ((stacktraceLimit_260 > 20) or (stacktraceIndex_191 < 0)); __wurst_stackPos_113 = (__wurst_stackPos_113 + (" " + wurst_stack_541[stacktraceIndex_191])); }; $debugPrint195((msg_525 + (" " + __wurst_stackPos_113))); wurst_stack_depth_142 = (wurst_stack_depth_142 - 1); } function dispatch_IntList_test_IntList_add209(integer this133, integer x212, string __wurst_stackPos955) returns integer { wurst_stack_541[wurst_stack_depth_142] = __wurst_stackPos_955; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); if (IntList_typeId_176[this_133] == 0) { if (this_133 == 0) { error879("Nullpointer exception when calling IntList.add", "when calling error in testForFrom, line 7"); } else { error879("Called IntList.add on invalid object.", "when calling error in testForFrom, line 7"); }; } else { }; wurst_stack_541[wurst_stack_depth_142] = "when calling add in testForFrom, line 7"; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); wurst_stack_541[wurst_stack_depth_142] = "when calling getOffset in testForFrom, line 8"; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); if (IntList_typeId_176[this_133] == 0) { if (this_133 == 0) { error879("Nullpointer exception when calling IntList.getOffset", "when calling error in testForFrom, line 5"); } else { error879("Called IntList.getOffset on invalid object.", "when calling error in testForFrom, line 5"); }; } else { }; wurst_stack_depth_142 = (wurst_stack_depth_142 - 1); IntList_elements_116[((64 * ((this_133 castTo integer) - 1)) + IntList_size_836[this_133])] = x_212; IntList_size_836[this_133] = (IntList_size_836[this_133] + 1); wurst_stack_depth_142 = ((wurst_stack_depth_142 - 1) - 1); return this_133; } function dispatch_IntList_test_IntList_get291(integer this224, integer i190, string __wurst_stackPos395) returns integer { wurst_stack_541[wurst_stack_depth_142] = __wurst_stackPos_395; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); if (IntList_typeId_176[this_224] == 0) { if (this_224 == 0) { error879("Nullpointer exception when calling IntList.get", "when calling error in testForFrom, line 11"); } else { error879("Called IntList.get on invalid object.", "when calling error in testForFrom, line 11"); }; } else { }; wurst_stack_541[wurst_stack_depth_142] = "when calling get in testForFrom, line 11"; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); wurst_stack_541[wurst_stack_depth_142] = "when calling getOffset in testForFrom, line 12"; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); if (IntList_typeId_176[this_224] == 0) { if (this_224 == 0) { error879("Nullpointer exception when calling IntList.getOffset", "when calling error in testForFrom, line 5"); } else { error879("Called IntList.getOffset on invalid object.", "when calling error in testForFrom, line 5"); }; } else { }; wurst_stack_depth_142 = (wurst_stack_depth_142 - 1); this_224 = IntList_elements_116[((64 * ((this_224 castTo integer) - 1)) + i_190)]; wurst_stack_depth_142 = ((wurst_stack_depth_142 - 1) - 1); return this_224; } function dispatch_IntListIterator_destroyIntListIterator194(integer this696, string __wurst_stackPos117) { wurst_stack_541[wurst_stack_depth_142] = __wurst_stackPos_117; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); if (IntListIterator_typeId_123[this_696] == 0) { if (this_696 == 0) { error879("Nullpointer exception when calling IntListIterator.IntListIterator", "when calling error in testForFrom, line 15"); } else { error879("Called IntListIterator.IntListIterator on invalid object.", "when calling error in testForFrom, line 15"); }; } else { }; wurst_stack_541[wurst_stack_depth_142] = "when calling destroyIntListIterator in testForFrom, line 15"; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); wurst_stack_541[wurst_stack_depth_142] = "when calling dealloc_IntListIterator in testForFrom, line 15"; wurst_stack_depth_142 = (wurst_stack_depth_142 + 1); if (IntListIterator_typeId_123[this_696] == 0) { error879("Double free: object of type IntListIterator", "when calling error in testForFrom, line 15"); } else { IntListIterator_nextFree_393[IntListIterator_firstFree_145] = this_696; IntListIterator_firstFree_145 = (IntListIterator_firstFree_145 + 1); IntListIterator_typeId_123[this_696] = 0; }; wurst_stack_depth_142 = (((wurst_stack_depth_142 - 1) - 1) - 1); }