; LLVM IR from sp-nitech/SPTK :: src/math (durand_kerner_method)

; 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::complex" = type { { double, double } }
%"class.sptk::DurandKernerMethod" = type { ptr, i32, i32, double, i8, %"class.std::vector", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk18DurandKernerMethod3RunERKSt6vectorIdSaIdEEPS1_ISt7complexIdESaIS7_EEPb(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef %3) #2 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::complex", align 8
  %22 = alloca %"class.std::complex", align 8
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::complex", align 8
  %25 = alloca %"class.std::complex", align 8
  %26 = alloca %"class.std::complex", align 8
  %27 = alloca %"class.std::complex", align 8
  %28 = alloca %"class.std::complex", align 8
  %29 = alloca %"class.std::complex", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %30 = load ptr, ptr %6, align 8
  %31 = getelementptr inbounds %"class.sptk::DurandKernerMethod", ptr %30, i32 0, i32 4
  %32 = load i8, ptr %31, align 8, !tbaa !9, !range !18, !noundef !19
  %33 = trunc i8 %32 to i1
  br i1 %33, label %34, label %47

34:                                               ; preds = %4
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  %37 = getelementptr inbounds %"class.sptk::DurandKernerMethod", ptr %30, i32 0, i32 1
  %38 = load i32, ptr %37, align 8, !tbaa !20
  %39 = sext i32 %38 to i64
  %40 = icmp ne i64 %36, %39
  br i1 %40, label %47, label %41

41:                                               ; preds = %34
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = icmp eq ptr null, %42
  br i1 %43, label %47, label %44

44:                                               ; preds = %41
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = icmp eq ptr null, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %44, %41, %34, %4
  store i1 false, ptr %5, align 1
  br label %259

48:                                               ; preds = %44
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #7
  %51 = getelementptr inbounds %"class.sptk::DurandKernerMethod", ptr %30, i32 0, i32 1
  %52 = load i32, ptr %51, align 8, !tbaa !20
  %53 = sext i32 %52 to i64
  %54 = icmp ne i64 %50, %53
  br i1 %54, label %55, label %60

55:                                               ; preds = %48
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %"class.sptk::DurandKernerMethod", ptr %30, i32 0, i32 1
  %58 = load i32, ptr %57, align 8, !tbaa !20
  %59 = sext i32 %58 to i64
  call void @_ZNSt6vectorISt7complexIdESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %59)
  br label %60

60:                                               ; preds = %55, %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef 0) #7
  store ptr %62, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef 0) #7
  store ptr %64, ptr %11, align 8, !tbaa !5
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  store i8 0, ptr %65, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store double 0.000000e+00, ptr %12, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 1, ptr %13, align 4, !tbaa !23
  br label %66

66:                                               ; preds = %91, %60
  %67 = load i32, ptr %13, align 4, !tbaa !23
  %68 = getelementptr inbounds %"class.sptk::DurandKernerMethod", ptr %30, i32 0, i32 1
  %69 = load i32, ptr %68, align 8, !tbaa !20
  %70 = icmp slt i32 %67, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %94

72:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = load i32, ptr %13, align 4, !tbaa !23
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds double, ptr %73, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !22
  %78 = call double @llvm.fabs.f64(double %77)
  %79 = load i32, ptr %13, align 4, !tbaa !23
  %80 = add nsw i32 %79, 1
  %81 = sitofp i32 %80 to double
  %82 = fdiv double 1.000000e+00, %81
  %83 = call double @pow(double noundef %78, double noundef %82) #7
  %84 = fmul double 2.000000e+00, %83
  store double %84, ptr %14, align 8, !tbaa !22
  %85 = load double, ptr %12, align 8, !tbaa !22
  %86 = load double, ptr %14, align 8, !tbaa !22
  %87 = fcmp olt double %85, %86
  br i1 %87, label %88, label %90

88:                                               ; preds = %72
  %89 = load double, ptr %14, align 8, !tbaa !22
  store double %89, ptr %12, align 8, !tbaa !22
  br label %90

90:                                               ; preds = %88, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %13, align 4, !tbaa !23
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %13, align 4, !tbaa !23
  br label %66, !llvm.loop !24

94:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = getelementptr inbounds double, ptr %95, i64 0
  %97 = load double, ptr %96, align 8, !tbaa !22
  %98 = fneg double %97
  %99 = getelementptr inbounds %"class.sptk::DurandKernerMethod", ptr %30, i32 0, i32 1
  %100 = load i32, ptr %99, align 8, !tbaa !20
  %101 = sitofp i32 %100 to double
  %102 = fdiv double %98, %101
  store double %102, ptr %15, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !23
  br label %103

103:                                              ; preds = %134, %94
  %104 = load i32, ptr %16, align 4, !tbaa !23
  %105 = getelementptr inbounds %"class.sptk::DurandKernerMethod", ptr %30, i32 0, i32 1
  %106 = load i32, ptr %105, align 8, !tbaa !20
  %107 = icmp slt i32 %104, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %137

109:                                              ; preds = %103
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = load i32, ptr %16, align 4, !tbaa !23
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds %"class.std::complex", ptr %110, i64 %112
  %114 = load double, ptr %15, align 8, !tbaa !22
  %115 = load double, ptr %12, align 8, !tbaa !22
  %116 = getelementptr inbounds %"class.sptk::DurandKernerMethod", ptr %30, i32 0, i32 5
  %117 = load i32, ptr %16, align 4, !tbaa !23
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %118) #7
  %120 = load double, ptr %119, align 8, !tbaa !22
  %121 = call double @llvm.fmuladd.f64(double %115, double %120, double %114)
  call void @_ZNSt7complexIdE4realEd(ptr noundef nonnull align 8 dereferenceable(16) %113, double noundef %121)
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = load i32, ptr %16, align 4, !tbaa !23
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds %"class.std::complex", ptr %122, i64 %124
  %126 = load double, ptr %15, align 8, !tbaa !22
  %127 = load double, ptr %12, align 8, !tbaa !22
  %128 = getelementptr inbounds %"class.sptk::DurandKernerMethod", ptr %30, i32 0, i32 6
  %129 = load i32, ptr %16, align 4, !tbaa !23
  %130 = sext i32 %129 to i64
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef %130) #7
  %132 = load double, ptr %131, align 8, !tbaa !22
  %133 = call double @llvm.fmuladd.f64(double %127, double %132, double %126)
  call void @_ZNSt7complexIdE4imagEd(ptr noundef nonnull align 8 dereferenceable(16) %125, double noundef %133)
  br label %134

134:                                              ; preds = %109
  %135 = load i32, ptr %16, align 4, !tbaa !23
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %16, align 4, !tbaa !23
  br label %103, !llvm.loop !26

137:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !23
  br label %138

138:                                              ; preds = %254, %137
  %139 = load i32, ptr %17, align 4, !tbaa !23
  %140 = getelementptr inbounds %"class.sptk::DurandKernerMethod", ptr %30, i32 0, i32 2
  %141 = load i32, ptr %140, align 4, !tbaa !27
  %142 = icmp slt i32 %139, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %138
  store i32 8, ptr %18, align 4
  br label %257

144:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  store i8 1, ptr %19, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !23
  br label %145

145:                                              ; preds = %242, %144
  %146 = load i32, ptr %20, align 4, !tbaa !23
  %147 = getelementptr inbounds %"class.sptk::DurandKernerMethod", ptr %30, i32 0, i32 1
  %148 = load i32, ptr %147, align 8, !tbaa !20
  %149 = icmp slt i32 %146, %148
  br i1 %149, label %151, label %150

150:                                              ; preds = %145
  store i32 11, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %245

151:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %21, double noundef 1.000000e+00, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %22, double noundef 1.000000e+00, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !23
  br label %152

152:                                              ; preds = %205, %151
  %153 = load i32, ptr %23, align 4, !tbaa !23
  %154 = getelementptr inbounds %"class.sptk::DurandKernerMethod", ptr %30, i32 0, i32 1
  %155 = load i32, ptr %154, align 8, !tbaa !20
  %156 = icmp slt i32 %153, %155
  br i1 %156, label %158, label %157

157:                                              ; preds = %152
  store i32 14, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %208

158:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = load i32, ptr %20, align 4, !tbaa !23
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds %"class.std::complex", ptr %159, i64 %161
  %163 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %162)
  %164 = getelementptr inbounds %"class.std::complex", ptr %25, i32 0, i32 0
  %165 = getelementptr inbounds { double, double }, ptr %164, i32 0, i32 0
  %166 = extractvalue { double, double } %163, 0
  store double %166, ptr %165, align 8
  %167 = getelementptr inbounds { double, double }, ptr %164, i32 0, i32 1
  %168 = extractvalue { double, double } %163, 1
  store double %168, ptr %167, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %169 = load ptr, ptr %10, align 8, !tbaa !5
  %170 = load i32, ptr %23, align 4, !tbaa !23
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds double, ptr %169, i64 %171
  %173 = load double, ptr %172, align 8, !tbaa !22
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef %173, double noundef 0.000000e+00)
  %174 = call { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %26)
  %175 = getelementptr inbounds %"class.std::complex", ptr %24, i32 0, i32 0
  %176 = getelementptr inbounds { double, double }, ptr %175, i32 0, i32 0
  %177 = extractvalue { double, double } %174, 0
  store double %177, ptr %176, align 8
  %178 = getelementptr inbounds { double, double }, ptr %175, i32 0, i32 1
  %179 = extractvalue { double, double } %174, 1
  store double %179, ptr %178, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  %180 = load i32, ptr %20, align 4, !tbaa !23
  %181 = load i32, ptr %23, align 4, !tbaa !23
  %182 = icmp ne i32 %180, %181
  br i1 %182, label %183, label %204

183:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = load i32, ptr %20, align 4, !tbaa !23
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds %"class.std::complex", ptr %184, i64 %186
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  %189 = load i32, ptr %23, align 4, !tbaa !23
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds %"class.std::complex", ptr %188, i64 %190
  %192 = call { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %187, ptr noundef nonnull align 8 dereferenceable(16) %191)
  %193 = getelementptr inbounds %"class.std::complex", ptr %28, i32 0, i32 0
  %194 = getelementptr inbounds { double, double }, ptr %193, i32 0, i32 0
  %195 = extractvalue { double, double } %192, 0
  store double %195, ptr %194, align 8
  %196 = getelementptr inbounds { double, double }, ptr %193, i32 0, i32 1
  %197 = extractvalue { double, double } %192, 1
  store double %197, ptr %196, align 8
  %198 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %28)
  %199 = getelementptr inbounds %"class.std::complex", ptr %27, i32 0, i32 0
  %200 = getelementptr inbounds { double, double }, ptr %199, i32 0, i32 0
  %201 = extractvalue { double, double } %198, 0
  store double %201, ptr %200, align 8
  %202 = getelementptr inbounds { double, double }, ptr %199, i32 0, i32 1
  %203 = extractvalue { double, double } %198, 1
  store double %203, ptr %202, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %27, i64 16, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  br label %204

204:                                              ; preds = %183, %158
  br label %205

205:                                              ; preds = %204
  %206 = load i32, ptr %23, align 4, !tbaa !23
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %23, align 4, !tbaa !23
  br label %152, !llvm.loop !30

208:                                              ; preds = %157
  %209 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %22)
  %210 = fcmp oeq double 0.000000e+00, %209
  br i1 %210, label %211, label %220

211:                                              ; preds = %208
  %212 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %22)
  %213 = fcmp oeq double 0.000000e+00, %212
  br i1 %213, label %214, label %220

214:                                              ; preds = %211
  %215 = load ptr, ptr %11, align 8, !tbaa !5
  %216 = load i32, ptr %20, align 4, !tbaa !23
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds %"class.std::complex", ptr %215, i64 %217
  %219 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %218, double noundef 0.000000e+00)
  br label %241

220:                                              ; preds = %211, %208
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #7
  %221 = call { double, double } @_ZStdvIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %22)
  %222 = getelementptr inbounds %"class.std::complex", ptr %29, i32 0, i32 0
  %223 = getelementptr inbounds { double, double }, ptr %222, i32 0, i32 0
  %224 = extractvalue { double, double } %221, 0
  store double %224, ptr %223, align 8
  %225 = getelementptr inbounds { double, double }, ptr %222, i32 0, i32 1
  %226 = extractvalue { double, double } %221, 1
  store double %226, ptr %225, align 8
  %227 = load ptr, ptr %11, align 8, !tbaa !5
  %228 = load i32, ptr %20, align 4, !tbaa !23
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds %"class.std::complex", ptr %227, i64 %229
  %231 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmIIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %230, ptr noundef nonnull align 8 dereferenceable(16) %29)
  %232 = load i8, ptr %19, align 1, !tbaa !21, !range !18, !noundef !19
  %233 = trunc i8 %232 to i1
  br i1 %233, label %234, label %240

234:                                              ; preds = %220
  %235 = getelementptr inbounds %"class.sptk::DurandKernerMethod", ptr %30, i32 0, i32 3
  %236 = load double, ptr %235, align 8, !tbaa !31
  %237 = call noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %29)
  %238 = fcmp olt double %236, %237
  br i1 %238, label %239, label %240

239:                                              ; preds = %234
  store i8 0, ptr %19, align 1, !tbaa !21
  br label %240

240:                                              ; preds = %239, %234, %220
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  br label %241

241:                                              ; preds = %240, %214
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  br label %242

242:                                              ; preds = %241
  %243 = load i32, ptr %20, align 4, !tbaa !23
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %20, align 4, !tbaa !23
  br label %145, !llvm.loop !32

245:                                              ; preds = %150
  %246 = load i8, ptr %19, align 1, !tbaa !21, !range !18, !noundef !19
  %247 = trunc i8 %246 to i1
  br i1 %247, label %248, label %250

248:                                              ; preds = %245
  %249 = load ptr, ptr %9, align 8, !tbaa !5
  store i8 1, ptr %249, align 1, !tbaa !21
  store i32 8, ptr %18, align 4
  br label %251

250:                                              ; preds = %245
  store i32 0, ptr %18, align 4
  br label %251

251:                                              ; preds = %250, %248
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  %252 = load i32, ptr %18, align 4
  switch i32 %252, label %257 [
    i32 0, label %253
  ]

253:                                              ; preds = %251
  br label %254

254:                                              ; preds = %253
  %255 = load i32, ptr %17, align 4, !tbaa !23
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %17, align 4, !tbaa !23
  br label %138, !llvm.loop !33

257:                                              ; preds = %251, %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %258

258:                                              ; preds = %257
  store i1 true, ptr %5, align 1
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %259

259:                                              ; preds = %258, %47
  %260 = load i1, ptr %5, align 1
  ret i1 %260
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt7complexIdESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

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

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1

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

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

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

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

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

; 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) #6

; 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)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16)) #3 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) #3 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)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16)) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 = { 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 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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, !13, i64 24}
!10 = !{!"_ZTSN4sptk18DurandKernerMethodE", !11, i64 8, !11, i64 12, !12, i64 16, !13, i64 24, !14, i64 32, !14, i64 56}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSSt6vectorIdSaIdEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!10, !11, i64 8}
!21 = !{!13, !13, i64 0}
!22 = !{!12, !12, i64 0}
!23 = !{!11, !11, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = !{!10, !11, i64 12}
!28 = !{i64 0, i64 16, !29}
!29 = !{!7, !7, i64 0}
!30 = distinct !{!30, !25}
!31 = !{!10, !12, i64 16}
!32 = distinct !{!32, !25}
!33 = distinct !{!33, !25}


; 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::complex" = type { { double, double } }

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk18DurandKernerMethod3RunERKSt6vectorIdSaIdEEPS1_ISt7complexIdESaIS7_EEPb(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef writeonly %3) local_unnamed_addr #2 align 2 {
  %5 = alloca %"class.std::complex", align 8
  %6 = alloca %"class.std::complex", align 8
  %7 = alloca %"class.std::complex", align 8
  %8 = alloca %"class.std::complex", align 8
  %9 = alloca %"class.std::complex", align 8
  %10 = alloca %"class.std::complex", align 8
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  %12 = load i8, ptr %11, align 8, !tbaa !5, !range !17, !noundef !18
  %13 = trunc nuw i8 %12 to i1
  br i1 %13, label %14, label %.loopexit

14:                                               ; preds = %4
  %15 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load i32, ptr %16, align 8, !tbaa !19
  %18 = sext i32 %17 to i64
  %19 = icmp ne i64 %15, %18
  %20 = icmp eq ptr %2, null
  %or.cond = or i1 %20, %19
  %21 = icmp eq ptr %3, null
  %or.cond3 = or i1 %21, %or.cond
  br i1 %or.cond3, label %.loopexit, label %22

22:                                               ; preds = %14
  %23 = tail call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %24 = load i32, ptr %16, align 8, !tbaa !19
  %25 = sext i32 %24 to i64
  %.not = icmp eq i64 %23, %25
  br i1 %.not, label %27, label %26

26:                                               ; preds = %22
  tail call void @_ZNSt6vectorISt7complexIdESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %25)
  br label %27

27:                                               ; preds = %26, %22
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #6
  %29 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  store i8 0, ptr %3, align 1, !tbaa !20
  %30 = load i32, ptr %16, align 8, !tbaa !19
  %31 = icmp sgt i32 %30, 1
  br i1 %31, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %27
  %.059.lcssa = phi double [ 0.000000e+00, %27 ], [ %.1, %.lr.ph ]
  %32 = phi i32 [ %30, %27 ], [ %49, %.lr.ph ]
  %33 = load double, ptr %28, align 8, !tbaa !21
  %34 = fneg double %33
  %35 = sitofp i32 %32 to double
  %36 = fdiv double %34, %35
  %37 = icmp sgt i32 %32, 0
  br i1 %37, label %.lr.ph80, label %.preheader74

.lr.ph80:                                         ; preds = %._crit_edge
  %38 = getelementptr inbounds i8, ptr %0, i64 32
  %39 = getelementptr inbounds i8, ptr %0, i64 56
  br label %61

.lr.ph:                                           ; preds = %27, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %27 ]
  %.05976 = phi double [ %.1, %.lr.ph ], [ 0.000000e+00, %27 ]
  %40 = getelementptr inbounds double, ptr %28, i64 %indvars.iv
  %41 = load double, ptr %40, align 8, !tbaa !21
  %42 = tail call double @llvm.fabs.f64(double %41)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %43 = trunc nuw nsw i64 %indvars.iv.next to i32
  %44 = uitofp nneg i32 %43 to double
  %45 = fdiv double 1.000000e+00, %44
  %46 = tail call double @pow(double noundef %42, double noundef %45) #6
  %47 = fmul double %46, 2.000000e+00
  %48 = fcmp olt double %.05976, %47
  %.1 = select i1 %48, double %47, double %.05976
  %49 = load i32, ptr %16, align 8, !tbaa !19
  %50 = sext i32 %49 to i64
  %51 = icmp slt i64 %indvars.iv.next, %50
  br i1 %51, label %.lr.ph, label %._crit_edge, !llvm.loop !22

.preheader74:                                     ; preds = %61, %._crit_edge
  %52 = phi i32 [ %32, %._crit_edge ], [ %69, %61 ]
  %53 = getelementptr inbounds i8, ptr %0, i64 12
  %54 = load i32, ptr %53, align 4, !tbaa !24
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %.preheader74
  %56 = getelementptr inbounds i8, ptr %7, i64 8
  %.sroa.45.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %57 = getelementptr inbounds i8, ptr %9, i64 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %58 = getelementptr inbounds i8, ptr %10, i64 8
  %59 = getelementptr inbounds i8, ptr %0, i64 16
  %60 = icmp sgt i32 %52, 0
  br i1 %60, label %.preheader, label %.split

61:                                               ; preds = %.lr.ph80, %61
  %indvars.iv93 = phi i64 [ 0, %.lr.ph80 ], [ %indvars.iv.next94, %61 ]
  %62 = getelementptr inbounds %"class.std::complex", ptr %29, i64 %indvars.iv93
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %indvars.iv93) #6
  %64 = load double, ptr %63, align 8, !tbaa !21
  %65 = tail call double @llvm.fmuladd.f64(double %.059.lcssa, double %64, double %36)
  tail call void @_ZNSt7complexIdE4realEd(ptr noundef nonnull align 8 dereferenceable(16) %62, double noundef %65)
  %66 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %indvars.iv93) #6
  %67 = load double, ptr %66, align 8, !tbaa !21
  %68 = tail call double @llvm.fmuladd.f64(double %.059.lcssa, double %67, double %36)
  tail call void @_ZNSt7complexIdE4imagEd(ptr noundef nonnull align 8 dereferenceable(16) %62, double noundef %68)
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %69 = load i32, ptr %16, align 8, !tbaa !19
  %70 = sext i32 %69 to i64
  %71 = icmp slt i64 %indvars.iv.next94, %70
  br i1 %71, label %61, label %.preheader74, !llvm.loop !25

72:                                               ; preds = %.critedge
  %73 = add nuw nsw i32 %.06790, 1
  %74 = load i32, ptr %53, align 4, !tbaa !24
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %.preheader, label %.loopexit, !llvm.loop !26

.preheader:                                       ; preds = %.preheader.lr.ph, %72
  %76 = phi i32 [ %125, %72 ], [ %52, %.preheader.lr.ph ]
  %.06790 = phi i32 [ %73, %72 ], [ 0, %.preheader.lr.ph ]
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %.lr.ph87, label %.split

.critedge:                                        ; preds = %124
  %78 = trunc nuw i8 %.2 to i1
  br i1 %78, label %.split, label %72

.lr.ph87:                                         ; preds = %.preheader, %124
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %124 ], [ 0, %.preheader ]
  %.06485 = phi i8 [ %.2, %124 ], [ 1, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef 1.000000e+00, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef 1.000000e+00, double noundef 0.000000e+00)
  %79 = load i32, ptr %16, align 8, !tbaa !19
  %80 = icmp sgt i32 %79, 0
  br i1 %80, label %.lr.ph83, label %._crit_edge84

.lr.ph83:                                         ; preds = %.lr.ph87
  %81 = getelementptr inbounds %"class.std::complex", ptr %29, i64 %indvars.iv99
  br label %84

._crit_edge84:                                    ; preds = %101, %.lr.ph87
  %82 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
  %83 = fcmp oeq double %82, 0.000000e+00
  br i1 %83, label %105, label %111

84:                                               ; preds = %.lr.ph83, %101
  %indvars.iv96 = phi i64 [ 0, %.lr.ph83 ], [ %indvars.iv.next97, %101 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %85 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %81)
  %86 = extractvalue { double, double } %85, 0
  store double %86, ptr %7, align 8
  %87 = extractvalue { double, double } %85, 1
  store double %87, ptr %56, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %88 = getelementptr inbounds double, ptr %28, i64 %indvars.iv96
  %89 = load double, ptr %88, align 8, !tbaa !21
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef %89, double noundef 0.000000e+00)
  %90 = call { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %91 = extractvalue { double, double } %90, 0
  %92 = extractvalue { double, double } %90, 1
  store double %91, ptr %5, align 8
  store double %92, ptr %.sroa.45.0..sroa_idx, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  %.not73 = icmp eq i64 %indvars.iv99, %indvars.iv96
  br i1 %.not73, label %101, label %93

93:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  %94 = getelementptr inbounds %"class.std::complex", ptr %29, i64 %indvars.iv96
  %95 = call { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %81, ptr noundef nonnull align 8 dereferenceable(16) %94)
  %96 = extractvalue { double, double } %95, 0
  store double %96, ptr %9, align 8
  %97 = extractvalue { double, double } %95, 1
  store double %97, ptr %57, align 8
  %98 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %99 = extractvalue { double, double } %98, 0
  %100 = extractvalue { double, double } %98, 1
  store double %99, ptr %6, align 8
  store double %100, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %101

101:                                              ; preds = %84, %93
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %102 = load i32, ptr %16, align 8, !tbaa !19
  %103 = sext i32 %102 to i64
  %104 = icmp slt i64 %indvars.iv.next97, %103
  br i1 %104, label %84, label %._crit_edge84, !llvm.loop !29

105:                                              ; preds = %._crit_edge84
  %106 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
  %107 = fcmp oeq double %106, 0.000000e+00
  br i1 %107, label %108, label %111

108:                                              ; preds = %105
  %109 = getelementptr inbounds %"class.std::complex", ptr %29, i64 %indvars.iv99
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %109, double noundef 0.000000e+00)
  br label %124

111:                                              ; preds = %105, %._crit_edge84
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  %112 = call { double, double } @_ZStdvIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %113 = extractvalue { double, double } %112, 0
  store double %113, ptr %10, align 8
  %114 = extractvalue { double, double } %112, 1
  store double %114, ptr %58, align 8
  %115 = getelementptr inbounds %"class.std::complex", ptr %29, i64 %indvars.iv99
  %116 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEmIIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %115, ptr noundef nonnull align 8 dereferenceable(16) %10)
  %117 = trunc nuw i8 %.06485 to i1
  br i1 %117, label %118, label %123

118:                                              ; preds = %111
  %119 = load double, ptr %59, align 8, !tbaa !30
  %120 = call noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %121 = fcmp olt double %119, %120
  br i1 %121, label %122, label %123

122:                                              ; preds = %118
  br label %123

123:                                              ; preds = %122, %118, %111
  %.165 = phi i8 [ 0, %122 ], [ %.06485, %118 ], [ %.06485, %111 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  br label %124

124:                                              ; preds = %123, %108
  %.2 = phi i8 [ %.06485, %108 ], [ %.165, %123 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %125 = load i32, ptr %16, align 8, !tbaa !19
  %126 = sext i32 %125 to i64
  %127 = icmp slt i64 %indvars.iv.next100, %126
  br i1 %127, label %.lr.ph87, label %.critedge, !llvm.loop !31

.split:                                           ; preds = %.preheader, %.critedge, %.preheader.lr.ph
  store i8 1, ptr %3, align 1, !tbaa !20
  br label %.loopexit

.loopexit:                                        ; preds = %72, %.preheader74, %.split, %4, %14
  %.0 = phi i1 [ false, %14 ], [ false, %4 ], [ true, %.split ], [ true, %.preheader74 ], [ true, %72 ]
  ret i1 %.0
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt7complexIdESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1

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

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

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

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

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

; 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 #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 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 #3 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 #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 #6 = { 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, !11, i64 24}
!6 = !{!"_ZTSN4sptk18DurandKernerMethodE", !7, i64 8, !7, i64 12, !10, i64 16, !11, i64 24, !12, i64 32, !12, i64 56}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSSt6vectorIdSaIdEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!6, !7, i64 8}
!20 = !{!11, !11, i64 0}
!21 = !{!10, !10, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!6, !7, i64 12}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !23, !27}
!27 = !{!"llvm.loop.unswitch.partial.disable"}
!28 = !{!8, !8, i64 0}
!29 = distinct !{!29, !23}
!30 = !{!6, !10, i64 16}
!31 = distinct !{!31, !23}


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