; LLVM IR from TheAlgorithms/C-Plus-Plus :: numerical_methods (durand_kerner_roots)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.std::pair" = type { i32, double }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::complex" = type { { double, double } }
%"class.std::complex.1" = type { { x86_fp80, x86_fp80 } }
%"struct.std::pair.2" = type { i32, x86_fp80 }

@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_Z13poly_functionRKSt8valarrayIdESt7complexIdE(ptr noundef nonnull align 8 dereferenceable(16), double, double) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z11complex_strRKSt7complexIdE(ptr noundef nonnull align 8 dereferenceable(16)) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z17check_terminatione(x86_fp80 noundef) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZSt3abse(x86_fp80 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local { i32, double } @_Z18durand_kerner_algoRKSt8valarrayIdEPS_ISt7complexIdEEb(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1, i1 noundef zeroext %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca x86_fp80, align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::basic_ofstream", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca %"class.std::complex", align 8
  %16 = alloca %"class.std::complex", align 8
  %17 = alloca %"class.std::complex", align 8
  %18 = alloca %"class.std::complex", align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::complex", align 8
  %21 = alloca %"class.std::complex.1", align 16
  %22 = alloca %"class.std::complex", align 8
  %23 = alloca x86_fp80, align 16
  %24 = alloca %"struct.std::pair.2", align 16
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  %25 = zext i1 %2 to i8
  store i8 %25, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  store x86_fp80 0xK3FFF8000000000000000, ptr %8, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 512, ptr %11) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %11)
  %26 = load i8, ptr %7, align 1, !tbaa !9, !range !15, !noundef !16
  %27 = trunc i8 %26 to i1
  br i1 %27, label %28, label %86

28:                                               ; preds = %3
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %11, ptr noundef @.str.1, i32 noundef 16)
          to label %29 unwind label %34

29:                                               ; preds = %28
  %30 = invoke noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248) %11)
          to label %31 unwind label %34

31:                                               ; preds = %29
  br i1 %30, label %38, label %32

32:                                               ; preds = %31
  invoke void @perror(ptr noundef @.str.2)
          to label %33 unwind label %34

33:                                               ; preds = %32
  call void @exit(i32 noundef 1) #9
  unreachable

34:                                               ; preds = %79, %77, %71, %64, %61, %59, %53, %50, %48, %41, %38, %32, %29, %28
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %12, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %13, align 4
  br label %352

38:                                               ; preds = %31
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef @.str.3)
          to label %40 unwind label %34

40:                                               ; preds = %38
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %41

41:                                               ; preds = %56, %40
  %42 = load i32, ptr %10, align 4, !tbaa !13
  %43 = sext i32 %42 to i64
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = invoke noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %44)
          to label %46 unwind label %34

46:                                               ; preds = %41
  %47 = icmp ult i64 %43, %45
  br i1 %47, label %48, label %59

48:                                               ; preds = %46
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef @.str.4)
          to label %50 unwind label %34

50:                                               ; preds = %48
  %51 = load i32, ptr %10, align 4, !tbaa !13
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %49, i32 noundef %51)
          to label %53 unwind label %34

53:                                               ; preds = %50
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @.str.5)
          to label %55 unwind label %34

55:                                               ; preds = %53
  br label %56

56:                                               ; preds = %55
  %57 = load i32, ptr %10, align 4, !tbaa !13
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %10, align 4, !tbaa !13
  br label %41, !llvm.loop !17

59:                                               ; preds = %46
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef @.str.6)
          to label %61 unwind label %34

61:                                               ; preds = %59
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef @.str.7)
          to label %63 unwind label %34

63:                                               ; preds = %61
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %64

64:                                               ; preds = %82, %63
  %65 = load i32, ptr %10, align 4, !tbaa !13
  %66 = sext i32 %65 to i64
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = invoke noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %67)
          to label %69 unwind label %34

69:                                               ; preds = %64
  %70 = icmp ult i64 %66, %68
  br i1 %70, label %71, label %85

71:                                               ; preds = %69
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load i32, ptr %10, align 4, !tbaa !13
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %72, i64 noundef %74) #8
  %76 = invoke noundef ptr @_Z11complex_strRKSt7complexIdE(ptr noundef nonnull align 8 dereferenceable(16) %75)
          to label %77 unwind label %34

77:                                               ; preds = %71
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef %76)
          to label %79 unwind label %34

79:                                               ; preds = %77
  %80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef @.str.5)
          to label %81 unwind label %34

81:                                               ; preds = %79
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %10, align 4, !tbaa !13
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %10, align 4, !tbaa !13
  br label %64, !llvm.loop !19

85:                                               ; preds = %69
  br label %86

86:                                               ; preds = %85, %3
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #8
  store i8 0, ptr %14, align 1, !tbaa !9
  br label %87

87:                                               ; preds = %342, %86
  %88 = load x86_fp80, ptr %8, align 16, !tbaa !11
  %89 = invoke noundef zeroext i1 @_Z17check_terminatione(x86_fp80 noundef %88)
          to label %90 unwind label %113

90:                                               ; preds = %87
  br i1 %89, label %98, label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %9, align 4, !tbaa !13
  %93 = icmp ult i32 %92, 32767
  br i1 %93, label %94, label %98

94:                                               ; preds = %91
  %95 = load i8, ptr %14, align 1, !tbaa !9, !range !15, !noundef !16
  %96 = trunc i8 %95 to i1
  %97 = xor i1 %96, true
  br label %98

98:                                               ; preds = %94, %91, %90
  %99 = phi i1 [ false, %91 ], [ false, %90 ], [ %97, %94 ]
  br i1 %99, label %100, label %343

100:                                              ; preds = %98
  store x86_fp80 0xK00000000000000000000, ptr %8, align 16, !tbaa !11
  %101 = load i32, ptr %9, align 4, !tbaa !13
  %102 = add i32 %101, 1
  store i32 %102, ptr %9, align 4, !tbaa !13
  store i8 0, ptr %14, align 1, !tbaa !9
  %103 = invoke noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248) %11)
          to label %104 unwind label %113

104:                                              ; preds = %100
  br i1 %103, label %105, label %117

105:                                              ; preds = %104
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef @.str.8)
          to label %107 unwind label %113

107:                                              ; preds = %105
  %108 = load i32, ptr %9, align 4, !tbaa !13
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %106, i32 noundef %108)
          to label %110 unwind label %113

110:                                              ; preds = %107
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef @.str.5)
          to label %112 unwind label %113

112:                                              ; preds = %110
  br label %117

113:                                              ; preds = %338, %335, %332, %329, %327, %321, %315, %313, %306, %303, %300, %298, %287, %285, %279, %272, %268, %118, %110, %107, %105, %100, %87
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %12, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %13, align 4
  br label %351

117:                                              ; preds = %112, %104
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %118

118:                                              ; preds = %254, %117
  %119 = load i32, ptr %10, align 4, !tbaa !13
  %120 = sext i32 %119 to i64
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = invoke noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %121)
          to label %123 unwind label %113

123:                                              ; preds = %118
  %124 = icmp ult i64 %120, %122
  br i1 %124, label %125, label %264

125:                                              ; preds = %123
  %126 = load i8, ptr %14, align 1, !tbaa !9, !range !15, !noundef !16
  %127 = trunc i8 %126 to i1
  br i1 %127, label %128, label %129

128:                                              ; preds = %125
  br label %254

129:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  invoke void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %130 unwind label %158

130:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  invoke void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %131 unwind label %162

131:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = load i32, ptr %10, align 4, !tbaa !13
  %135 = sext i32 %134 to i64
  %136 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %133, i64 noundef %135) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %136, i64 16, i1 false), !tbaa.struct !20
  %137 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %138 = load double, ptr %137, align 8
  %139 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %140 = load double, ptr %139, align 8
  %141 = invoke { double, double } @_Z13poly_functionRKSt8valarrayIdESt7complexIdE(ptr noundef nonnull align 8 dereferenceable(16) %132, double %138, double %140)
          to label %142 unwind label %166

142:                                              ; preds = %131
  %143 = getelementptr inbounds %"class.std::complex", ptr %17, i32 0, i32 0
  %144 = getelementptr inbounds { double, double }, ptr %143, i32 0, i32 0
  %145 = extractvalue { double, double } %141, 0
  store double %145, ptr %144, align 8
  %146 = getelementptr inbounds { double, double }, ptr %143, i32 0, i32 1
  %147 = extractvalue { double, double } %141, 1
  store double %147, ptr %146, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  %148 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef 1.000000e+00)
          to label %149 unwind label %162

149:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !13
  br label %150

150:                                              ; preds = %201, %149
  %151 = load i32, ptr %19, align 4, !tbaa !13
  %152 = sext i32 %151 to i64
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = invoke noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %153)
          to label %155 unwind label %170

155:                                              ; preds = %150
  %156 = icmp ult i64 %152, %154
  br i1 %156, label %174, label %157

157:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %205

158:                                              ; preds = %129
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %12, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %13, align 4
  br label %263

162:                                              ; preds = %142, %130
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %12, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %13, align 4
  br label %262

166:                                              ; preds = %131
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %12, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  br label %262

170:                                              ; preds = %150
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %12, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %13, align 4
  br label %204

174:                                              ; preds = %155
  %175 = load i32, ptr %19, align 4, !tbaa !13
  %176 = load i32, ptr %10, align 4, !tbaa !13
  %177 = icmp ne i32 %175, %176
  br i1 %177, label %178, label %200

178:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = load i32, ptr %10, align 4, !tbaa !13
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %179, i64 noundef %181) #8
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = load i32, ptr %19, align 4, !tbaa !13
  %185 = sext i32 %184 to i64
  %186 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %183, i64 noundef %185) #8
  %187 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %182, ptr noundef nonnull align 8 dereferenceable(16) %186)
          to label %188 unwind label %196

188:                                              ; preds = %178
  %189 = getelementptr inbounds %"class.std::complex", ptr %20, i32 0, i32 0
  %190 = getelementptr inbounds { double, double }, ptr %189, i32 0, i32 0
  %191 = extractvalue { double, double } %187, 0
  store double %191, ptr %190, align 8
  %192 = getelementptr inbounds { double, double }, ptr %189, i32 0, i32 1
  %193 = extractvalue { double, double } %187, 1
  store double %193, ptr %192, align 8
  %194 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %195 unwind label %196

195:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  br label %200

196:                                              ; preds = %188, %178
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %12, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  br label %204

200:                                              ; preds = %195, %174
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %19, align 4, !tbaa !13
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %19, align 4, !tbaa !13
  br label %150, !llvm.loop !22

204:                                              ; preds = %196, %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %262

205:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  %206 = invoke { double, double } @_ZStdvIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %207 unwind label %232

207:                                              ; preds = %205
  %208 = getelementptr inbounds %"class.std::complex", ptr %22, i32 0, i32 0
  %209 = getelementptr inbounds { double, double }, ptr %208, i32 0, i32 0
  %210 = extractvalue { double, double } %206, 0
  store double %210, ptr %209, align 8
  %211 = getelementptr inbounds { double, double }, ptr %208, i32 0, i32 1
  %212 = extractvalue { double, double } %206, 1
  store double %212, ptr %211, align 8
  invoke void @_ZNSt7complexIeEC2ERKS_IdE(ptr noundef nonnull align 16 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %213 unwind label %232

213:                                              ; preds = %207
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  %214 = invoke noundef x86_fp80 @_ZSt3absIeET_RKSt7complexIS0_E(ptr noundef nonnull align 16 dereferenceable(32) %21)
          to label %215 unwind label %236

215:                                              ; preds = %213
  %216 = invoke noundef zeroext i1 @_ZSt5isnane(x86_fp80 noundef %214)
          to label %217 unwind label %236

217:                                              ; preds = %215
  br i1 %216, label %223, label %218

218:                                              ; preds = %217
  %219 = invoke noundef x86_fp80 @_ZSt3absIeET_RKSt7complexIS0_E(ptr noundef nonnull align 16 dereferenceable(32) %21)
          to label %220 unwind label %236

220:                                              ; preds = %218
  %221 = invoke noundef zeroext i1 @_ZSt5isinfe(x86_fp80 noundef %219)
          to label %222 unwind label %236

222:                                              ; preds = %220
  br i1 %221, label %223, label %240

223:                                              ; preds = %222, %217
  %224 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.9)
          to label %225 unwind label %236

225:                                              ; preds = %223
  %226 = invoke noundef x86_fp80 @_ZSt3absIeET_RKSt7complexIS0_E(ptr noundef nonnull align 16 dereferenceable(32) %21)
          to label %227 unwind label %236

227:                                              ; preds = %225
  %228 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) %224, x86_fp80 noundef %226)
          to label %229 unwind label %236

229:                                              ; preds = %227
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %228, ptr noundef @.str.8)
          to label %231 unwind label %236

231:                                              ; preds = %229
  store i8 1, ptr %14, align 1, !tbaa !9
  br label %240

232:                                              ; preds = %207, %205
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %12, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  br label %261

236:                                              ; preds = %240, %229, %227, %225, %223, %220, %218, %215, %213
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %12, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %13, align 4
  br label %261

240:                                              ; preds = %231, %222
  %241 = load ptr, ptr %6, align 8, !tbaa !5
  %242 = load i32, ptr %10, align 4, !tbaa !13
  %243 = sext i32 %242 to i64
  %244 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %241, i64 noundef %243) #8
  %245 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmIIeEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %244, ptr noundef nonnull align 16 dereferenceable(32) %21)
          to label %246 unwind label %236

246:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  %247 = invoke noundef x86_fp80 @_ZSt3absIeET_RKSt7complexIS0_E(ptr noundef nonnull align 16 dereferenceable(32) %21)
          to label %248 unwind label %257

248:                                              ; preds = %246
  %249 = invoke noundef x86_fp80 @_ZSt3abse(x86_fp80 noundef %247)
          to label %250 unwind label %257

250:                                              ; preds = %248
  store x86_fp80 %249, ptr %23, align 16, !tbaa !11
  %251 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3maxIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %8, ptr noundef nonnull align 16 dereferenceable(16) %23)
          to label %252 unwind label %257

252:                                              ; preds = %250
  %253 = load x86_fp80, ptr %251, align 16, !tbaa !11
  store x86_fp80 %253, ptr %8, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  br label %254

254:                                              ; preds = %252, %128
  %255 = load i32, ptr %10, align 4, !tbaa !13
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %10, align 4, !tbaa !13
  br label %118, !llvm.loop !23

257:                                              ; preds = %250, %248, %246
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %12, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  br label %261

261:                                              ; preds = %257, %236, %232
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  br label %262

262:                                              ; preds = %261, %204, %166, %162
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  br label %263

263:                                              ; preds = %262, %158
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  br label %351

264:                                              ; preds = %123
  %265 = load i8, ptr %14, align 1, !tbaa !9, !range !15, !noundef !16
  %266 = trunc i8 %265 to i1
  br i1 %266, label %267, label %268

267:                                              ; preds = %264
  br label %343

268:                                              ; preds = %264
  %269 = invoke noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248) %11)
          to label %270 unwind label %113

270:                                              ; preds = %268
  br i1 %269, label %271, label %294

271:                                              ; preds = %270
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %272

272:                                              ; preds = %290, %271
  %273 = load i32, ptr %10, align 4, !tbaa !13
  %274 = sext i32 %273 to i64
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = invoke noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %275)
          to label %277 unwind label %113

277:                                              ; preds = %272
  %278 = icmp ult i64 %274, %276
  br i1 %278, label %279, label %293

279:                                              ; preds = %277
  %280 = load ptr, ptr %6, align 8, !tbaa !5
  %281 = load i32, ptr %10, align 4, !tbaa !13
  %282 = sext i32 %281 to i64
  %283 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %280, i64 noundef %282) #8
  %284 = invoke noundef ptr @_Z11complex_strRKSt7complexIdE(ptr noundef nonnull align 8 dereferenceable(16) %283)
          to label %285 unwind label %113

285:                                              ; preds = %279
  %286 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef %284)
          to label %287 unwind label %113

287:                                              ; preds = %285
  %288 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %286, ptr noundef @.str.5)
          to label %289 unwind label %113

289:                                              ; preds = %287
  br label %290

290:                                              ; preds = %289
  %291 = load i32, ptr %10, align 4, !tbaa !13
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %10, align 4, !tbaa !13
  br label %272, !llvm.loop !24

293:                                              ; preds = %277
  br label %294

294:                                              ; preds = %293, %270
  %295 = load i32, ptr %9, align 4, !tbaa !13
  %296 = urem i32 %295, 500
  %297 = icmp eq i32 %296, 0
  br i1 %297, label %298, label %335

298:                                              ; preds = %294
  %299 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
          to label %300 unwind label %113

300:                                              ; preds = %298
  %301 = load i32, ptr %9, align 4, !tbaa !13
  %302 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %299, i32 noundef %301)
          to label %303 unwind label %113

303:                                              ; preds = %300
  %304 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %302, ptr noundef @.str.11)
          to label %305 unwind label %113

305:                                              ; preds = %303
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %306

306:                                              ; preds = %324, %305
  %307 = load i32, ptr %10, align 4, !tbaa !13
  %308 = sext i32 %307 to i64
  %309 = load ptr, ptr %6, align 8, !tbaa !5
  %310 = invoke noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %309)
          to label %311 unwind label %113

311:                                              ; preds = %306
  %312 = icmp ult i64 %308, %310
  br i1 %312, label %313, label %327

313:                                              ; preds = %311
  %314 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
          to label %315 unwind label %113

315:                                              ; preds = %313
  %316 = load ptr, ptr %6, align 8, !tbaa !5
  %317 = load i32, ptr %10, align 4, !tbaa !13
  %318 = sext i32 %317 to i64
  %319 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %316, i64 noundef %318) #8
  %320 = invoke noundef ptr @_Z11complex_strRKSt7complexIdE(ptr noundef nonnull align 8 dereferenceable(16) %319)
          to label %321 unwind label %113

321:                                              ; preds = %315
  %322 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %314, ptr noundef %320)
          to label %323 unwind label %113

323:                                              ; preds = %321
  br label %324

324:                                              ; preds = %323
  %325 = load i32, ptr %10, align 4, !tbaa !13
  %326 = add nsw i32 %325, 1
  store i32 %326, ptr %10, align 4, !tbaa !13
  br label %306, !llvm.loop !25

327:                                              ; preds = %311
  %328 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
          to label %329 unwind label %113

329:                                              ; preds = %327
  %330 = load x86_fp80, ptr %8, align 16, !tbaa !11
  %331 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) %328, x86_fp80 noundef %330)
          to label %332 unwind label %113

332:                                              ; preds = %329
  %333 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %331, ptr noundef @.str.8)
          to label %334 unwind label %113

334:                                              ; preds = %332
  br label %335

335:                                              ; preds = %334, %294
  %336 = invoke noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248) %11)
          to label %337 unwind label %113

337:                                              ; preds = %335
  br i1 %336, label %338, label %342

338:                                              ; preds = %337
  %339 = load x86_fp80, ptr %8, align 16, !tbaa !11
  %340 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) %11, x86_fp80 noundef %339)
          to label %341 unwind label %113

341:                                              ; preds = %338
  br label %342

342:                                              ; preds = %341, %337
  br label %87, !llvm.loop !26

343:                                              ; preds = %267, %98
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #8
  invoke void @_ZNSt4pairIjeEC2IRjReTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 16 dereferenceable(32) %24, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 16 dereferenceable(16) %8)
          to label %344 unwind label %347

344:                                              ; preds = %343
  invoke void @_ZNSt4pairIjdEC2IjeTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(32) %24)
          to label %345 unwind label %347

345:                                              ; preds = %344
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %11) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  %346 = load { i32, double }, ptr %4, align 8
  ret { i32, double } %346

347:                                              ; preds = %344, %343
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %12, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #8
  br label %351

351:                                              ; preds = %347, %263, %113
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  br label %352

352:                                              ; preds = %351, %34
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %11) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  br label %353

353:                                              ; preds = %352
  %354 = load ptr, ptr %12, align 8
  %355 = load i32, ptr %13, align 4
  %356 = insertvalue { ptr, i32 } poison, ptr %354, 0
  %357 = insertvalue { ptr, i32 } %356, i32 %355, 1
  resume { ptr, i32 } %357
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248)) #2 align 2

declare void @perror(ptr noundef) #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStdvIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7complexIeEC2ERKS_IdE(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnane(x86_fp80 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef x86_fp80 @_ZSt3absIeET_RKSt7complexIS0_E(ptr noundef nonnull align 16 dereferenceable(32)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isinfe(x86_fp80 noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8), x86_fp80 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmIIeEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(32)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3maxIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIjeEC2IRjReTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 16 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIjdEC2IjeTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #2 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nounwind }
attributes #9 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{i64 0, i64 16, !21}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !18}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.std::pair" = type { i32, double }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::complex" = type { { double, double } }
%"class.std::complex.1" = type { { x86_fp80, x86_fp80 } }
%"struct.std::pair.2" = type { i32, x86_fp80 }

@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_Z13poly_functionRKSt8valarrayIdESt7complexIdE(ptr noundef nonnull align 8 dereferenceable(16), double, double) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z11complex_strRKSt7complexIdE(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z17check_terminatione(x86_fp80 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZSt3abse(x86_fp80 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local { i32, double } @_Z18durand_kerner_algoRKSt8valarrayIdEPS_ISt7complexIdEEb(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1, i1 noundef zeroext %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca x86_fp80, align 16
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::basic_ofstream", align 8
  %8 = alloca %"class.std::complex", align 8
  %9 = alloca %"class.std::complex", align 8
  %10 = alloca %"class.std::complex", align 8
  %11 = alloca %"class.std::complex.1", align 16
  %12 = alloca %"class.std::complex", align 8
  %13 = alloca x86_fp80, align 16
  %14 = alloca %"struct.std::pair.2", align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  store x86_fp80 0xK3FFF8000000000000000, ptr %5, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %7) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %7)
  br i1 %2, label %15, label %.loopexit75

15:                                               ; preds = %3
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %7, ptr noundef nonnull @.str.1, i32 noundef 16)
          to label %16 unwind label %.loopexit.split-lp77.loopexit.split-lp

16:                                               ; preds = %15
  %17 = call noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248) %7)
  br i1 %17, label %19, label %18

18:                                               ; preds = %16
  call void @perror(ptr noundef nonnull @.str.2) #9
  call void @exit(i32 noundef 1) #10
  unreachable

.loopexit76:                                      ; preds = %.lr.ph91, %37, %39
  %lpad.loopexit78 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp77

.loopexit.split-lp77.loopexit:                    ; preds = %26, %23, %.lr.ph
  %lpad.loopexit81 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp77

.loopexit.split-lp77.loopexit.split-lp:           ; preds = %32, %._crit_edge, %19, %15
  %lpad.loopexit.split-lp82 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp77

19:                                               ; preds = %16
  %20 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.3)
          to label %.preheader80 unwind label %.loopexit.split-lp77.loopexit.split-lp

.preheader80:                                     ; preds = %19
  %21 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %.not107 = icmp eq i64 %21, 0
  br i1 %.not107, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader80, %28
  %indvars.iv = phi i64 [ %indvars.iv.next, %28 ], [ 0, %.preheader80 ]
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.4)
          to label %23 unwind label %.loopexit.split-lp77.loopexit

23:                                               ; preds = %.lr.ph
  %24 = trunc nuw nsw i64 %indvars.iv to i32
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %22, i32 noundef %24)
          to label %26 unwind label %.loopexit.split-lp77.loopexit

26:                                               ; preds = %23
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull @.str.5)
          to label %28 unwind label %.loopexit.split-lp77.loopexit

28:                                               ; preds = %26
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %29 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %30 = icmp ugt i64 %29, %indvars.iv.next
  br i1 %30, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %28, %.preheader80
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.6)
          to label %32 unwind label %.loopexit.split-lp77.loopexit.split-lp

32:                                               ; preds = %._crit_edge
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.7)
          to label %.preheader74 unwind label %.loopexit.split-lp77.loopexit.split-lp

.preheader74:                                     ; preds = %32
  %34 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %.not108 = icmp eq i64 %34, 0
  br i1 %.not108, label %.loopexit75, label %.lr.ph91

.lr.ph91:                                         ; preds = %.preheader74, %41
  %indvars.iv114 = phi i64 [ %indvars.iv.next115, %41 ], [ 0, %.preheader74 ]
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv114) #8
  %36 = invoke noundef ptr @_Z11complex_strRKSt7complexIdE(ptr noundef nonnull align 8 dereferenceable(16) %35)
          to label %37 unwind label %.loopexit76

37:                                               ; preds = %.lr.ph91
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %36)
          to label %39 unwind label %.loopexit76

39:                                               ; preds = %37
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @.str.5)
          to label %41 unwind label %.loopexit76

41:                                               ; preds = %39
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %42 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %43 = icmp ugt i64 %42, %indvars.iv.next115
  br i1 %43, label %.lr.ph91, label %.loopexit75, !llvm.loop !13

.loopexit75:                                      ; preds = %41, %.preheader74, %3
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %44 = getelementptr inbounds i8, ptr %10, i64 8
  %45 = getelementptr inbounds i8, ptr %12, i64 8
  br label %46

46:                                               ; preds = %.backedge, %.loopexit75
  %47 = phi i32 [ 0, %.loopexit75 ], [ %54, %.backedge ]
  %.052 = phi i8 [ 0, %.loopexit75 ], [ %.153.lcssa129, %.backedge ]
  %48 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %49 = invoke noundef zeroext i1 @_Z17check_terminatione(x86_fp80 noundef %48)
          to label %50 unwind label %.loopexit.split-lp.loopexit.split-lp

50:                                               ; preds = %46
  %51 = icmp ugt i32 %47, 32766
  %or.cond.not = select i1 %49, i1 true, i1 %51
  %52 = trunc nuw i8 %.052 to i1
  %.not61 = select i1 %or.cond.not, i1 true, i1 %52
  br i1 %.not61, label %168, label %53

53:                                               ; preds = %50
  store x86_fp80 0xK00000000000000000000, ptr %5, align 16, !tbaa !5
  %54 = add nuw nsw i32 %47, 1
  store i32 %54, ptr %6, align 4, !tbaa !9
  %55 = call noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248) %7)
  br i1 %55, label %56, label %62

56:                                               ; preds = %53
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.8)
          to label %58 unwind label %.loopexit.split-lp.loopexit.split-lp

58:                                               ; preds = %56
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %57, i32 noundef %54)
          to label %60 unwind label %.loopexit.split-lp.loopexit.split-lp

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull @.str.5)
          to label %62 unwind label %.loopexit.split-lp.loopexit.split-lp

.loopexit:                                        ; preds = %.lr.ph105, %149, %152
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp77

.loopexit.split-lp.loopexit:                      ; preds = %134, %132, %.lr.ph103
  %lpad.loopexit71 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp77

.loopexit.split-lp.loopexit.split-lp:             ; preds = %165, %161, %158, %._crit_edge106, %145, %143, %141, %60, %58, %56, %46
  %lpad.loopexit.split-lp72 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp77

62:                                               ; preds = %60, %53
  %63 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %.not109 = icmp eq i64 %63, 0
  br i1 %.not109, label %._crit_edge101.thread, label %.lr.ph100

.lr.ph100:                                        ; preds = %62, %120
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %120 ], [ 0, %62 ]
  %.15396 = phi i8 [ %.355, %120 ], [ 0, %62 ]
  %64 = trunc nuw i8 %.15396 to i1
  br i1 %64, label %120, label %65

65:                                               ; preds = %.lr.ph100
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef 0.000000e+00, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv120) #8
  %.sroa.0.0.copyload = load double, ptr %66, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %66, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !14
  %67 = invoke { double, double } @_Z13poly_functionRKSt8valarrayIdESt7complexIdE(ptr noundef nonnull align 8 dereferenceable(16) %0, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
          to label %68 unwind label %74

68:                                               ; preds = %65
  %69 = extractvalue { double, double } %67, 0
  %70 = extractvalue { double, double } %67, 1
  store double %69, ptr %8, align 8
  store double %70, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !14
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef 1.000000e+00)
  %72 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %.not110 = icmp eq i64 %72, 0
  br i1 %.not110, label %._crit_edge95, label %.lr.ph94

._crit_edge95:                                    ; preds = %86, %68
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  %73 = invoke { double, double } @_ZStdvIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %89 unwind label %108

74:                                               ; preds = %65
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %126

.lr.ph94:                                         ; preds = %68, %86
  %indvars.iv117 = phi i64 [ %indvars.iv.next118, %86 ], [ 0, %68 ]
  %.not = icmp eq i64 %indvars.iv117, %indvars.iv120
  br i1 %.not, label %86, label %76

76:                                               ; preds = %.lr.ph94
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %77 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv120) #8
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv117) #8
  %79 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %77, ptr noundef nonnull align 8 dereferenceable(16) %78)
          to label %80 unwind label %84

80:                                               ; preds = %76
  %81 = extractvalue { double, double } %79, 0
  store double %81, ptr %10, align 8
  %82 = extractvalue { double, double } %79, 1
  store double %82, ptr %44, align 8
  %83 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  br label %86

84:                                               ; preds = %76
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  br label %126

86:                                               ; preds = %.lr.ph94, %80
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %87 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %88 = icmp ugt i64 %87, %indvars.iv.next118
  br i1 %88, label %.lr.ph94, label %._crit_edge95, !llvm.loop !15

89:                                               ; preds = %._crit_edge95
  %90 = extractvalue { double, double } %73, 0
  store double %90, ptr %12, align 8
  %91 = extractvalue { double, double } %73, 1
  store double %91, ptr %45, align 8
  invoke void @_ZNSt7complexIeEC2ERKS_IdE(ptr noundef nonnull align 16 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %92 unwind label %108

92:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  %93 = invoke noundef x86_fp80 @_ZSt3absIeET_RKSt7complexIS0_E(ptr noundef nonnull align 16 dereferenceable(32) %11)
          to label %94 unwind label %110

94:                                               ; preds = %92
  %95 = call noundef zeroext i1 @_ZSt5isnane(x86_fp80 noundef %93)
  br i1 %95, label %100, label %96

96:                                               ; preds = %94
  %97 = invoke noundef x86_fp80 @_ZSt3absIeET_RKSt7complexIS0_E(ptr noundef nonnull align 16 dereferenceable(32) %11)
          to label %98 unwind label %110

98:                                               ; preds = %96
  %99 = call noundef zeroext i1 @_ZSt5isinfe(x86_fp80 noundef %97)
  br i1 %99, label %100, label %112

100:                                              ; preds = %98, %94
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.9)
          to label %102 unwind label %110

102:                                              ; preds = %100
  %103 = invoke noundef x86_fp80 @_ZSt3absIeET_RKSt7complexIS0_E(ptr noundef nonnull align 16 dereferenceable(32) %11)
          to label %104 unwind label %110

104:                                              ; preds = %102
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) %101, x86_fp80 noundef %103)
          to label %106 unwind label %110

106:                                              ; preds = %104
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef nonnull @.str.8)
          to label %112 unwind label %110

108:                                              ; preds = %89, %._crit_edge95
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  br label %125

110:                                              ; preds = %106, %104, %102, %100, %96, %92
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %125

112:                                              ; preds = %106, %98
  %.254 = phi i8 [ %.15396, %98 ], [ 1, %106 ]
  %113 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv120) #8
  %114 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmIIeEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %113, ptr noundef nonnull align 16 dereferenceable(32) %11)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  %115 = invoke noundef x86_fp80 @_ZSt3absIeET_RKSt7complexIS0_E(ptr noundef nonnull align 16 dereferenceable(32) %11)
          to label %116 unwind label %123

116:                                              ; preds = %112
  %117 = call noundef x86_fp80 @_ZSt3abse(x86_fp80 noundef %115)
  store x86_fp80 %117, ptr %13, align 16, !tbaa !5
  %118 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3maxIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %13)
  %119 = load x86_fp80, ptr %118, align 16, !tbaa !5
  store x86_fp80 %119, ptr %5, align 16, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  br label %120

120:                                              ; preds = %.lr.ph100, %116
  %.355 = phi i8 [ %.15396, %.lr.ph100 ], [ %.254, %116 ]
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %121 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %122 = icmp ugt i64 %121, %indvars.iv.next121
  br i1 %122, label %.lr.ph100, label %._crit_edge101, !llvm.loop !16

123:                                              ; preds = %112
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  br label %125

125:                                              ; preds = %123, %110, %108
  %.pn = phi { ptr, i32 } [ %124, %123 ], [ %111, %110 ], [ %109, %108 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  br label %126

126:                                              ; preds = %125, %84, %74
  %.pn64 = phi { ptr, i32 } [ %85, %84 ], [ %.pn, %125 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  br label %.loopexit.split-lp77

._crit_edge101:                                   ; preds = %120
  %127 = trunc nuw i8 %.355 to i1
  br i1 %127, label %168, label %._crit_edge101.thread

._crit_edge101.thread:                            ; preds = %62, %._crit_edge101
  %.153.lcssa129 = phi i8 [ %.355, %._crit_edge101 ], [ 0, %62 ]
  %128 = call noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248) %7)
  br i1 %128, label %.preheader69, label %.loopexit70

.preheader69:                                     ; preds = %._crit_edge101.thread
  %129 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %.not111 = icmp eq i64 %129, 0
  br i1 %.not111, label %.loopexit70, label %.lr.ph103

.lr.ph103:                                        ; preds = %.preheader69, %136
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %136 ], [ 0, %.preheader69 ]
  %130 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv122) #8
  %131 = invoke noundef ptr @_Z11complex_strRKSt7complexIdE(ptr noundef nonnull align 8 dereferenceable(16) %130)
          to label %132 unwind label %.loopexit.split-lp.loopexit

132:                                              ; preds = %.lr.ph103
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %131)
          to label %134 unwind label %.loopexit.split-lp.loopexit

134:                                              ; preds = %132
  %135 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef nonnull @.str.5)
          to label %136 unwind label %.loopexit.split-lp.loopexit

136:                                              ; preds = %134
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %137 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %138 = icmp ugt i64 %137, %indvars.iv.next123
  br i1 %138, label %.lr.ph103, label %.loopexit70, !llvm.loop !17

.loopexit70:                                      ; preds = %136, %.preheader69, %._crit_edge101.thread
  %139 = urem i32 %54, 500
  %140 = icmp eq i32 %139, 0
  br i1 %140, label %141, label %163

141:                                              ; preds = %.loopexit70
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.10)
          to label %143 unwind label %.loopexit.split-lp.loopexit.split-lp

143:                                              ; preds = %141
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %142, i32 noundef %54)
          to label %145 unwind label %.loopexit.split-lp.loopexit.split-lp

145:                                              ; preds = %143
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %144, ptr noundef nonnull @.str.11)
          to label %.preheader unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader:                                       ; preds = %145
  %147 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %.not112 = icmp eq i64 %147, 0
  br i1 %.not112, label %._crit_edge106, label %.lr.ph105

.lr.ph105:                                        ; preds = %.preheader, %154
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %154 ], [ 0, %.preheader ]
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.11)
          to label %149 unwind label %.loopexit

149:                                              ; preds = %.lr.ph105
  %150 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv125) #8
  %151 = invoke noundef ptr @_Z11complex_strRKSt7complexIdE(ptr noundef nonnull align 8 dereferenceable(16) %150)
          to label %152 unwind label %.loopexit

152:                                              ; preds = %149
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef %151)
          to label %154 unwind label %.loopexit

154:                                              ; preds = %152
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %155 = call noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %156 = icmp ugt i64 %155, %indvars.iv.next126
  br i1 %156, label %.lr.ph105, label %._crit_edge106, !llvm.loop !18

._crit_edge106:                                   ; preds = %154, %.preheader
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.12)
          to label %158 unwind label %.loopexit.split-lp.loopexit.split-lp

158:                                              ; preds = %._crit_edge106
  %159 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) %157, x86_fp80 noundef %159)
          to label %161 unwind label %.loopexit.split-lp.loopexit.split-lp

161:                                              ; preds = %158
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %160, ptr noundef nonnull @.str.8)
          to label %163 unwind label %.loopexit.split-lp.loopexit.split-lp

163:                                              ; preds = %161, %.loopexit70
  %164 = call noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248) %7)
  br i1 %164, label %165, label %.backedge

165:                                              ; preds = %163
  %166 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) %7, x86_fp80 noundef %166)
          to label %.backedge unwind label %.loopexit.split-lp.loopexit.split-lp

.backedge:                                        ; preds = %165, %163
  br label %46, !llvm.loop !19

168:                                              ; preds = %._crit_edge101, %50
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #8
  call void @_ZNSt4pairIjeEC2IRjReTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 16 dereferenceable(32) %14, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 16 dereferenceable(16) %5)
  call void @_ZNSt4pairIjdEC2IjeTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(32) %14)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %7) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  %.fca.0.load = load i32, ptr %4, align 8
  %.fca.0.insert = insertvalue { i32, double } poison, i32 %.fca.0.load, 0
  %.fca.1.gep = getelementptr inbounds i8, ptr %4, i64 8
  %.fca.1.load = load double, ptr %.fca.1.gep, align 8
  %.fca.1.insert = insertvalue { i32, double } %.fca.0.insert, double %.fca.1.load, 1
  ret { i32, double } %.fca.1.insert

.loopexit.split-lp77:                             ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %.loopexit76, %.loopexit.split-lp77.loopexit.split-lp, %.loopexit.split-lp77.loopexit, %126
  %.pn67 = phi { ptr, i32 } [ %.pn64, %126 ], [ %lpad.loopexit78, %.loopexit76 ], [ %lpad.loopexit81, %.loopexit.split-lp77.loopexit ], [ %lpad.loopexit.split-lp82, %.loopexit.split-lp77.loopexit.split-lp ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit71, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp72, %.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %7) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  resume { ptr, i32 } %.pn67
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv(ptr noundef nonnull align 8 dereferenceable(248)) local_unnamed_addr #2 align 2

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt8valarrayISt7complexIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayISt7complexIdEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStdvIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7complexIeEC2ERKS_IdE(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnane(x86_fp80 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef x86_fp80 @_ZSt3absIeET_RKSt7complexIS0_E(ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isinfe(x86_fp80 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8), x86_fp80 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmIIeEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3maxIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIjeEC2IRjReTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 16 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIjdEC2IjeTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #2 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { cold }
attributes #10 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass