array A_nextFree146 integer A_firstFree199 integer A_maxIndex208 array A_x972 integer wurst_stack_depth721 array wurst_stack124 integer A_firstFree199 = 0 integer A_maxIndex208 = 0 integer wurst_stack_depth721 = 0 function initGlobals124() { } function main102() { initGlobals124(); init_test167("when calling init_test in castToIntGenerics, line 1"); } function config119() { } function init_test167(string __wurst_stackPos178) { local integer a259 wurst_stack_124[wurst_stack_depth_721] = __wurst_stackPos_178; wurst_stack_depth_721 = (wurst_stack_depth_721 + 1); a_259 = new_A504(42, "when calling new_A in castToIntGenerics, line 10"); a_259 = (a_259 castTo integer); if (A_x_972[(((2 * a_259) - a_259) castTo integer)] == 42) { testSuccess134(); } else { }; wurst_stack_depth_721 = (wurst_stack_depth_721 - 1); } IS_NATIVE function testSuccess134() { } function new_A504(integer x122, string __wurst_stackPos621) returns integer { local integer this772 wurst_stack_124[wurst_stack_depth_721] = __wurst_stackPos_621; wurst_stack_depth_721 = (wurst_stack_depth_721 + 1); wurst_stack_124[wurst_stack_depth_721] = "when calling alloc_A in castToIntGenerics, line 5"; wurst_stack_depth_721 = (wurst_stack_depth_721 + 1); if (A_firstFree_199 == 0) { if (A_maxIndex_208 < 32768) { A_maxIndex_208 = (A_maxIndex_208 + 1); this_772 = A_maxIndex_208; } else { error440("Out of memory: Could not create A.", "when calling error in castToIntGenerics, line 3"); this_772 = 0; }; } else { A_firstFree_199 = (A_firstFree_199 - 1); this_772 = A_nextFree_146[A_firstFree_199]; }; wurst_stack_depth_721 = (wurst_stack_depth_721 - 1); A_x_972[this_772] = 1; A_x_972[this_772] = x_122; wurst_stack_depth_721 = (wurst_stack_depth_721 - 1); return this_772; } function error440(string msg552, string __wurst_stackPos426) { local integer stacktraceIndex121 local integer stacktraceLimit211 wurst_stack_124[wurst_stack_depth_721] = __wurst_stackPos_426; wurst_stack_depth_721 = (wurst_stack_depth_721 + 1); __wurst_stackPos_426 = ""; stacktraceIndex_121 = wurst_stack_depth_721; stacktraceLimit_211 = 0; loop { stacktraceIndex_121 = (stacktraceIndex_121 - 1); stacktraceLimit_211 = (stacktraceLimit_211 + 1); exitwhen ((stacktraceLimit_211 > 20) or (stacktraceIndex_121 < 0)); __wurst_stackPos_426 = (__wurst_stackPos_426 + (" " + wurst_stack_124[stacktraceIndex_121])); }; $debugPrint111((msg_552 + (" " + __wurst_stackPos_426))); wurst_stack_depth_721 = (wurst_stack_depth_721 - 1); }