; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (zgttrf)

; 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"

%struct.doublecomplex = type { double, double }

@.str = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @zgttrf_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca %struct.doublecomplex, align 8
  %24 = alloca %struct.doublecomplex, align 8
  %25 = alloca %struct.doublecomplex, align 8
  %26 = alloca %struct.doublecomplex, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %29 = load ptr, ptr %13, align 8, !tbaa !5
  %30 = getelementptr inbounds i32, ptr %29, i32 -1
  store ptr %30, ptr %13, align 8, !tbaa !5
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 -1
  store ptr %32, ptr %12, align 8, !tbaa !5
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 -1
  store ptr %34, ptr %11, align 8, !tbaa !5
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.doublecomplex, ptr %35, i32 -1
  store ptr %36, ptr %10, align 8, !tbaa !5
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 -1
  store ptr %38, ptr %9, align 8, !tbaa !5
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %39, align 4, !tbaa !9
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = load i32, ptr %40, align 4, !tbaa !9
  %42 = icmp slt i32 %41, 0
  br i1 %42, label %43, label %49

43:                                               ; preds = %7
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 -1, ptr %44, align 4, !tbaa !9
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  %46 = load i32, ptr %45, align 4, !tbaa !9
  %47 = sub nsw i32 0, %46
  store i32 %47, ptr %15, align 4, !tbaa !9
  %48 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %15, i32 noundef 6)
  store i32 1, ptr %28, align 4
  br label %1064

49:                                               ; preds = %7
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %49
  store i32 1, ptr %28, align 4
  br label %1064

54:                                               ; preds = %49
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = load i32, ptr %55, align 4, !tbaa !9
  store i32 %56, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %67, %54
  %58 = load i32, ptr %27, align 4, !tbaa !9
  %59 = load i32, ptr %15, align 4, !tbaa !9
  %60 = icmp sle i32 %58, %59
  br i1 %60, label %61, label %70

61:                                               ; preds = %57
  %62 = load i32, ptr %27, align 4, !tbaa !9
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = load i32, ptr %27, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds i32, ptr %63, i64 %65
  store i32 %62, ptr %66, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %61
  %68 = load i32, ptr %27, align 4, !tbaa !9
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %27, align 4, !tbaa !9
  br label %57, !llvm.loop !11

70:                                               ; preds = %57
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = sub nsw i32 %72, 2
  store i32 %73, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %90, %70
  %75 = load i32, ptr %27, align 4, !tbaa !9
  %76 = load i32, ptr %15, align 4, !tbaa !9
  %77 = icmp sle i32 %75, %76
  br i1 %77, label %78, label %93

78:                                               ; preds = %74
  %79 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %79, ptr %16, align 4, !tbaa !9
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = load i32, ptr %16, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds %struct.doublecomplex, ptr %80, i64 %82
  %84 = getelementptr inbounds %struct.doublecomplex, ptr %83, i32 0, i32 0
  store double 0.000000e+00, ptr %84, align 8, !tbaa !13
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = load i32, ptr %16, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds %struct.doublecomplex, ptr %85, i64 %87
  %89 = getelementptr inbounds %struct.doublecomplex, ptr %88, i32 0, i32 1
  store double 0.000000e+00, ptr %89, align 8, !tbaa !16
  br label %90

90:                                               ; preds = %78
  %91 = load i32, ptr %27, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %27, align 4, !tbaa !9
  br label %74, !llvm.loop !17

93:                                               ; preds = %74
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = sub nsw i32 %95, 2
  store i32 %96, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %597, %93
  %98 = load i32, ptr %27, align 4, !tbaa !9
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = icmp sle i32 %98, %99
  br i1 %100, label %101, label %600

101:                                              ; preds = %97
  %102 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %102, ptr %16, align 4, !tbaa !9
  %103 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %103, ptr %17, align 4, !tbaa !9
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = load i32, ptr %16, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds %struct.doublecomplex, ptr %104, i64 %106
  %108 = getelementptr inbounds %struct.doublecomplex, ptr %107, i32 0, i32 0
  %109 = load double, ptr %108, align 8, !tbaa !13
  store double %109, ptr %19, align 8, !tbaa !18
  %110 = load double, ptr %19, align 8, !tbaa !18
  %111 = fcmp oge double %110, 0.000000e+00
  br i1 %111, label %112, label %114

112:                                              ; preds = %101
  %113 = load double, ptr %19, align 8, !tbaa !18
  br label %117

114:                                              ; preds = %101
  %115 = load double, ptr %19, align 8, !tbaa !18
  %116 = fneg double %115
  br label %117

117:                                              ; preds = %114, %112
  %118 = phi double [ %113, %112 ], [ %116, %114 ]
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = load i32, ptr %27, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds %struct.doublecomplex, ptr %119, i64 %121
  %123 = call { double, double } @Cd(ptr noundef %122)
  %124 = extractvalue { double, double } %123, 0
  %125 = extractvalue { double, double } %123, 1
  store double %125, ptr %20, align 8, !tbaa !18
  %126 = load double, ptr %20, align 8, !tbaa !18
  %127 = fcmp oge double %126, 0.000000e+00
  br i1 %127, label %128, label %130

128:                                              ; preds = %117
  %129 = load double, ptr %20, align 8, !tbaa !18
  br label %133

130:                                              ; preds = %117
  %131 = load double, ptr %20, align 8, !tbaa !18
  %132 = fneg double %131
  br label %133

133:                                              ; preds = %130, %128
  %134 = phi double [ %129, %128 ], [ %132, %130 ]
  %135 = fadd double %118, %134
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = load i32, ptr %17, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds %struct.doublecomplex, ptr %136, i64 %138
  %140 = getelementptr inbounds %struct.doublecomplex, ptr %139, i32 0, i32 0
  %141 = load double, ptr %140, align 8, !tbaa !13
  store double %141, ptr %21, align 8, !tbaa !18
  %142 = load double, ptr %21, align 8, !tbaa !18
  %143 = fcmp oge double %142, 0.000000e+00
  br i1 %143, label %144, label %146

144:                                              ; preds = %133
  %145 = load double, ptr %21, align 8, !tbaa !18
  br label %149

146:                                              ; preds = %133
  %147 = load double, ptr %21, align 8, !tbaa !18
  %148 = fneg double %147
  br label %149

149:                                              ; preds = %146, %144
  %150 = phi double [ %145, %144 ], [ %148, %146 ]
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = load i32, ptr %27, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds %struct.doublecomplex, ptr %151, i64 %153
  %155 = call { double, double } @Cd(ptr noundef %154)
  %156 = extractvalue { double, double } %155, 0
  %157 = extractvalue { double, double } %155, 1
  store double %157, ptr %22, align 8, !tbaa !18
  %158 = load double, ptr %22, align 8, !tbaa !18
  %159 = fcmp oge double %158, 0.000000e+00
  br i1 %159, label %160, label %162

160:                                              ; preds = %149
  %161 = load double, ptr %22, align 8, !tbaa !18
  br label %165

162:                                              ; preds = %149
  %163 = load double, ptr %22, align 8, !tbaa !18
  %164 = fneg double %163
  br label %165

165:                                              ; preds = %162, %160
  %166 = phi double [ %161, %160 ], [ %164, %162 ]
  %167 = fadd double %150, %166
  %168 = fcmp oge double %135, %167
  br i1 %168, label %169, label %325

169:                                              ; preds = %165
  %170 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %170, ptr %16, align 4, !tbaa !9
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = load i32, ptr %16, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds %struct.doublecomplex, ptr %171, i64 %173
  %175 = getelementptr inbounds %struct.doublecomplex, ptr %174, i32 0, i32 0
  %176 = load double, ptr %175, align 8, !tbaa !13
  store double %176, ptr %19, align 8, !tbaa !18
  %177 = load double, ptr %19, align 8, !tbaa !18
  %178 = fcmp oge double %177, 0.000000e+00
  br i1 %178, label %179, label %181

179:                                              ; preds = %169
  %180 = load double, ptr %19, align 8, !tbaa !18
  br label %184

181:                                              ; preds = %169
  %182 = load double, ptr %19, align 8, !tbaa !18
  %183 = fneg double %182
  br label %184

184:                                              ; preds = %181, %179
  %185 = phi double [ %180, %179 ], [ %183, %181 ]
  %186 = load ptr, ptr %10, align 8, !tbaa !5
  %187 = load i32, ptr %27, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds %struct.doublecomplex, ptr %186, i64 %188
  %190 = call { double, double } @Cd(ptr noundef %189)
  %191 = extractvalue { double, double } %190, 0
  %192 = extractvalue { double, double } %190, 1
  store double %192, ptr %20, align 8, !tbaa !18
  %193 = load double, ptr %20, align 8, !tbaa !18
  %194 = fcmp oge double %193, 0.000000e+00
  br i1 %194, label %195, label %197

195:                                              ; preds = %184
  %196 = load double, ptr %20, align 8, !tbaa !18
  br label %200

197:                                              ; preds = %184
  %198 = load double, ptr %20, align 8, !tbaa !18
  %199 = fneg double %198
  br label %200

200:                                              ; preds = %197, %195
  %201 = phi double [ %196, %195 ], [ %199, %197 ]
  %202 = fadd double %185, %201
  %203 = fcmp une double %202, 0.000000e+00
  br i1 %203, label %204, label %324

204:                                              ; preds = %200
  %205 = load ptr, ptr %9, align 8, !tbaa !5
  %206 = load i32, ptr %27, align 4, !tbaa !9
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds %struct.doublecomplex, ptr %205, i64 %207
  %209 = call { double, double } @Cd(ptr noundef %208)
  %210 = extractvalue { double, double } %209, 0
  %211 = extractvalue { double, double } %209, 1
  %212 = load ptr, ptr %10, align 8, !tbaa !5
  %213 = load i32, ptr %27, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds %struct.doublecomplex, ptr %212, i64 %214
  %216 = call { double, double } @Cd(ptr noundef %215)
  %217 = extractvalue { double, double } %216, 0
  %218 = extractvalue { double, double } %216, 1
  %219 = call { double, double } @__divdc3(double noundef %210, double noundef %211, double noundef %217, double noundef %218) #5
  %220 = extractvalue { double, double } %219, 0
  %221 = extractvalue { double, double } %219, 1
  %222 = call ptr @_pCd(ptr noundef %23)
  %223 = getelementptr inbounds { double, double }, ptr %222, i32 0, i32 0
  %224 = getelementptr inbounds { double, double }, ptr %222, i32 0, i32 1
  store double %220, ptr %223, align 8
  store double %221, ptr %224, align 8
  %225 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %226 = load double, ptr %225, align 8, !tbaa !13
  %227 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  store double %226, ptr %227, align 8, !tbaa !13
  %228 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %229 = load double, ptr %228, align 8, !tbaa !16
  %230 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  store double %229, ptr %230, align 8, !tbaa !16
  %231 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %231, ptr %16, align 4, !tbaa !9
  %232 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %233 = load double, ptr %232, align 8, !tbaa !13
  %234 = load ptr, ptr %9, align 8, !tbaa !5
  %235 = load i32, ptr %16, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds %struct.doublecomplex, ptr %234, i64 %236
  %238 = getelementptr inbounds %struct.doublecomplex, ptr %237, i32 0, i32 0
  store double %233, ptr %238, align 8, !tbaa !13
  %239 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %240 = load double, ptr %239, align 8, !tbaa !16
  %241 = load ptr, ptr %9, align 8, !tbaa !5
  %242 = load i32, ptr %16, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds %struct.doublecomplex, ptr %241, i64 %243
  %245 = getelementptr inbounds %struct.doublecomplex, ptr %244, i32 0, i32 1
  store double %240, ptr %245, align 8, !tbaa !16
  %246 = load i32, ptr %27, align 4, !tbaa !9
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %16, align 4, !tbaa !9
  %248 = load i32, ptr %27, align 4, !tbaa !9
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %17, align 4, !tbaa !9
  %250 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %250, ptr %18, align 4, !tbaa !9
  %251 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %252 = load double, ptr %251, align 8, !tbaa !13
  %253 = load ptr, ptr %11, align 8, !tbaa !5
  %254 = load i32, ptr %18, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds %struct.doublecomplex, ptr %253, i64 %255
  %257 = getelementptr inbounds %struct.doublecomplex, ptr %256, i32 0, i32 0
  %258 = load double, ptr %257, align 8, !tbaa !13
  %259 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %260 = load double, ptr %259, align 8, !tbaa !16
  %261 = load ptr, ptr %11, align 8, !tbaa !5
  %262 = load i32, ptr %18, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds %struct.doublecomplex, ptr %261, i64 %263
  %265 = getelementptr inbounds %struct.doublecomplex, ptr %264, i32 0, i32 1
  %266 = load double, ptr %265, align 8, !tbaa !16
  %267 = fmul double %260, %266
  %268 = fneg double %267
  %269 = call double @llvm.fmuladd.f64(double %252, double %258, double %268)
  %270 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %269, ptr %270, align 8, !tbaa !13
  %271 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %272 = load double, ptr %271, align 8, !tbaa !13
  %273 = load ptr, ptr %11, align 8, !tbaa !5
  %274 = load i32, ptr %18, align 4, !tbaa !9
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds %struct.doublecomplex, ptr %273, i64 %275
  %277 = getelementptr inbounds %struct.doublecomplex, ptr %276, i32 0, i32 1
  %278 = load double, ptr %277, align 8, !tbaa !16
  %279 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %280 = load double, ptr %279, align 8, !tbaa !16
  %281 = load ptr, ptr %11, align 8, !tbaa !5
  %282 = load i32, ptr %18, align 4, !tbaa !9
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds %struct.doublecomplex, ptr %281, i64 %283
  %285 = getelementptr inbounds %struct.doublecomplex, ptr %284, i32 0, i32 0
  %286 = load double, ptr %285, align 8, !tbaa !13
  %287 = fmul double %280, %286
  %288 = call double @llvm.fmuladd.f64(double %272, double %278, double %287)
  %289 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %288, ptr %289, align 8, !tbaa !16
  %290 = load ptr, ptr %10, align 8, !tbaa !5
  %291 = load i32, ptr %17, align 4, !tbaa !9
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds %struct.doublecomplex, ptr %290, i64 %292
  %294 = getelementptr inbounds %struct.doublecomplex, ptr %293, i32 0, i32 0
  %295 = load double, ptr %294, align 8, !tbaa !13
  %296 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %297 = load double, ptr %296, align 8, !tbaa !13
  %298 = fsub double %295, %297
  %299 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %298, ptr %299, align 8, !tbaa !13
  %300 = load ptr, ptr %10, align 8, !tbaa !5
  %301 = load i32, ptr %17, align 4, !tbaa !9
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds %struct.doublecomplex, ptr %300, i64 %302
  %304 = getelementptr inbounds %struct.doublecomplex, ptr %303, i32 0, i32 1
  %305 = load double, ptr %304, align 8, !tbaa !16
  %306 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %307 = load double, ptr %306, align 8, !tbaa !16
  %308 = fsub double %305, %307
  %309 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %308, ptr %309, align 8, !tbaa !16
  %310 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %311 = load double, ptr %310, align 8, !tbaa !13
  %312 = load ptr, ptr %10, align 8, !tbaa !5
  %313 = load i32, ptr %16, align 4, !tbaa !9
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds %struct.doublecomplex, ptr %312, i64 %314
  %316 = getelementptr inbounds %struct.doublecomplex, ptr %315, i32 0, i32 0
  store double %311, ptr %316, align 8, !tbaa !13
  %317 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %318 = load double, ptr %317, align 8, !tbaa !16
  %319 = load ptr, ptr %10, align 8, !tbaa !5
  %320 = load i32, ptr %16, align 4, !tbaa !9
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds %struct.doublecomplex, ptr %319, i64 %321
  %323 = getelementptr inbounds %struct.doublecomplex, ptr %322, i32 0, i32 1
  store double %318, ptr %323, align 8, !tbaa !16
  br label %324

324:                                              ; preds = %204, %200
  br label %596

325:                                              ; preds = %165
  %326 = load ptr, ptr %10, align 8, !tbaa !5
  %327 = load i32, ptr %27, align 4, !tbaa !9
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds %struct.doublecomplex, ptr %326, i64 %328
  %330 = call { double, double } @Cd(ptr noundef %329)
  %331 = extractvalue { double, double } %330, 0
  %332 = extractvalue { double, double } %330, 1
  %333 = load ptr, ptr %9, align 8, !tbaa !5
  %334 = load i32, ptr %27, align 4, !tbaa !9
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds %struct.doublecomplex, ptr %333, i64 %335
  %337 = call { double, double } @Cd(ptr noundef %336)
  %338 = extractvalue { double, double } %337, 0
  %339 = extractvalue { double, double } %337, 1
  %340 = call { double, double } @__divdc3(double noundef %331, double noundef %332, double noundef %338, double noundef %339) #5
  %341 = extractvalue { double, double } %340, 0
  %342 = extractvalue { double, double } %340, 1
  %343 = call ptr @_pCd(ptr noundef %23)
  %344 = getelementptr inbounds { double, double }, ptr %343, i32 0, i32 0
  %345 = getelementptr inbounds { double, double }, ptr %343, i32 0, i32 1
  store double %341, ptr %344, align 8
  store double %342, ptr %345, align 8
  %346 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %347 = load double, ptr %346, align 8, !tbaa !13
  %348 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  store double %347, ptr %348, align 8, !tbaa !13
  %349 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %350 = load double, ptr %349, align 8, !tbaa !16
  %351 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  store double %350, ptr %351, align 8, !tbaa !16
  %352 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %352, ptr %16, align 4, !tbaa !9
  %353 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %353, ptr %17, align 4, !tbaa !9
  %354 = load ptr, ptr %9, align 8, !tbaa !5
  %355 = load i32, ptr %17, align 4, !tbaa !9
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds %struct.doublecomplex, ptr %354, i64 %356
  %358 = getelementptr inbounds %struct.doublecomplex, ptr %357, i32 0, i32 0
  %359 = load double, ptr %358, align 8, !tbaa !13
  %360 = load ptr, ptr %10, align 8, !tbaa !5
  %361 = load i32, ptr %16, align 4, !tbaa !9
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds %struct.doublecomplex, ptr %360, i64 %362
  %364 = getelementptr inbounds %struct.doublecomplex, ptr %363, i32 0, i32 0
  store double %359, ptr %364, align 8, !tbaa !13
  %365 = load ptr, ptr %9, align 8, !tbaa !5
  %366 = load i32, ptr %17, align 4, !tbaa !9
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds %struct.doublecomplex, ptr %365, i64 %367
  %369 = getelementptr inbounds %struct.doublecomplex, ptr %368, i32 0, i32 1
  %370 = load double, ptr %369, align 8, !tbaa !16
  %371 = load ptr, ptr %10, align 8, !tbaa !5
  %372 = load i32, ptr %16, align 4, !tbaa !9
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds %struct.doublecomplex, ptr %371, i64 %373
  %375 = getelementptr inbounds %struct.doublecomplex, ptr %374, i32 0, i32 1
  store double %370, ptr %375, align 8, !tbaa !16
  %376 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %376, ptr %16, align 4, !tbaa !9
  %377 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %378 = load double, ptr %377, align 8, !tbaa !13
  %379 = load ptr, ptr %9, align 8, !tbaa !5
  %380 = load i32, ptr %16, align 4, !tbaa !9
  %381 = sext i32 %380 to i64
  %382 = getelementptr inbounds %struct.doublecomplex, ptr %379, i64 %381
  %383 = getelementptr inbounds %struct.doublecomplex, ptr %382, i32 0, i32 0
  store double %378, ptr %383, align 8, !tbaa !13
  %384 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %385 = load double, ptr %384, align 8, !tbaa !16
  %386 = load ptr, ptr %9, align 8, !tbaa !5
  %387 = load i32, ptr %16, align 4, !tbaa !9
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds %struct.doublecomplex, ptr %386, i64 %388
  %390 = getelementptr inbounds %struct.doublecomplex, ptr %389, i32 0, i32 1
  store double %385, ptr %390, align 8, !tbaa !16
  %391 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %391, ptr %16, align 4, !tbaa !9
  %392 = load ptr, ptr %11, align 8, !tbaa !5
  %393 = load i32, ptr %16, align 4, !tbaa !9
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds %struct.doublecomplex, ptr %392, i64 %394
  %396 = getelementptr inbounds %struct.doublecomplex, ptr %395, i32 0, i32 0
  %397 = load double, ptr %396, align 8, !tbaa !13
  %398 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 0
  store double %397, ptr %398, align 8, !tbaa !13
  %399 = load ptr, ptr %11, align 8, !tbaa !5
  %400 = load i32, ptr %16, align 4, !tbaa !9
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds %struct.doublecomplex, ptr %399, i64 %401
  %403 = getelementptr inbounds %struct.doublecomplex, ptr %402, i32 0, i32 1
  %404 = load double, ptr %403, align 8, !tbaa !16
  %405 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 1
  store double %404, ptr %405, align 8, !tbaa !16
  %406 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %406, ptr %16, align 4, !tbaa !9
  %407 = load i32, ptr %27, align 4, !tbaa !9
  %408 = add nsw i32 %407, 1
  store i32 %408, ptr %17, align 4, !tbaa !9
  %409 = load ptr, ptr %10, align 8, !tbaa !5
  %410 = load i32, ptr %17, align 4, !tbaa !9
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds %struct.doublecomplex, ptr %409, i64 %411
  %413 = getelementptr inbounds %struct.doublecomplex, ptr %412, i32 0, i32 0
  %414 = load double, ptr %413, align 8, !tbaa !13
  %415 = load ptr, ptr %11, align 8, !tbaa !5
  %416 = load i32, ptr %16, align 4, !tbaa !9
  %417 = sext i32 %416 to i64
  %418 = getelementptr inbounds %struct.doublecomplex, ptr %415, i64 %417
  %419 = getelementptr inbounds %struct.doublecomplex, ptr %418, i32 0, i32 0
  store double %414, ptr %419, align 8, !tbaa !13
  %420 = load ptr, ptr %10, align 8, !tbaa !5
  %421 = load i32, ptr %17, align 4, !tbaa !9
  %422 = sext i32 %421 to i64
  %423 = getelementptr inbounds %struct.doublecomplex, ptr %420, i64 %422
  %424 = getelementptr inbounds %struct.doublecomplex, ptr %423, i32 0, i32 1
  %425 = load double, ptr %424, align 8, !tbaa !16
  %426 = load ptr, ptr %11, align 8, !tbaa !5
  %427 = load i32, ptr %16, align 4, !tbaa !9
  %428 = sext i32 %427 to i64
  %429 = getelementptr inbounds %struct.doublecomplex, ptr %426, i64 %428
  %430 = getelementptr inbounds %struct.doublecomplex, ptr %429, i32 0, i32 1
  store double %425, ptr %430, align 8, !tbaa !16
  %431 = load i32, ptr %27, align 4, !tbaa !9
  %432 = add nsw i32 %431, 1
  store i32 %432, ptr %16, align 4, !tbaa !9
  %433 = load i32, ptr %27, align 4, !tbaa !9
  %434 = add nsw i32 %433, 1
  store i32 %434, ptr %17, align 4, !tbaa !9
  %435 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %436 = load double, ptr %435, align 8, !tbaa !13
  %437 = load ptr, ptr %10, align 8, !tbaa !5
  %438 = load i32, ptr %17, align 4, !tbaa !9
  %439 = sext i32 %438 to i64
  %440 = getelementptr inbounds %struct.doublecomplex, ptr %437, i64 %439
  %441 = getelementptr inbounds %struct.doublecomplex, ptr %440, i32 0, i32 0
  %442 = load double, ptr %441, align 8, !tbaa !13
  %443 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %444 = load double, ptr %443, align 8, !tbaa !16
  %445 = load ptr, ptr %10, align 8, !tbaa !5
  %446 = load i32, ptr %17, align 4, !tbaa !9
  %447 = sext i32 %446 to i64
  %448 = getelementptr inbounds %struct.doublecomplex, ptr %445, i64 %447
  %449 = getelementptr inbounds %struct.doublecomplex, ptr %448, i32 0, i32 1
  %450 = load double, ptr %449, align 8, !tbaa !16
  %451 = fmul double %444, %450
  %452 = fneg double %451
  %453 = call double @llvm.fmuladd.f64(double %436, double %442, double %452)
  %454 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %453, ptr %454, align 8, !tbaa !13
  %455 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %456 = load double, ptr %455, align 8, !tbaa !13
  %457 = load ptr, ptr %10, align 8, !tbaa !5
  %458 = load i32, ptr %17, align 4, !tbaa !9
  %459 = sext i32 %458 to i64
  %460 = getelementptr inbounds %struct.doublecomplex, ptr %457, i64 %459
  %461 = getelementptr inbounds %struct.doublecomplex, ptr %460, i32 0, i32 1
  %462 = load double, ptr %461, align 8, !tbaa !16
  %463 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %464 = load double, ptr %463, align 8, !tbaa !16
  %465 = load ptr, ptr %10, align 8, !tbaa !5
  %466 = load i32, ptr %17, align 4, !tbaa !9
  %467 = sext i32 %466 to i64
  %468 = getelementptr inbounds %struct.doublecomplex, ptr %465, i64 %467
  %469 = getelementptr inbounds %struct.doublecomplex, ptr %468, i32 0, i32 0
  %470 = load double, ptr %469, align 8, !tbaa !13
  %471 = fmul double %464, %470
  %472 = call double @llvm.fmuladd.f64(double %456, double %462, double %471)
  %473 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %472, ptr %473, align 8, !tbaa !16
  %474 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 0
  %475 = load double, ptr %474, align 8, !tbaa !13
  %476 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %477 = load double, ptr %476, align 8, !tbaa !13
  %478 = fsub double %475, %477
  %479 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %478, ptr %479, align 8, !tbaa !13
  %480 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 1
  %481 = load double, ptr %480, align 8, !tbaa !16
  %482 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %483 = load double, ptr %482, align 8, !tbaa !16
  %484 = fsub double %481, %483
  %485 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %484, ptr %485, align 8, !tbaa !16
  %486 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %487 = load double, ptr %486, align 8, !tbaa !13
  %488 = load ptr, ptr %10, align 8, !tbaa !5
  %489 = load i32, ptr %16, align 4, !tbaa !9
  %490 = sext i32 %489 to i64
  %491 = getelementptr inbounds %struct.doublecomplex, ptr %488, i64 %490
  %492 = getelementptr inbounds %struct.doublecomplex, ptr %491, i32 0, i32 0
  store double %487, ptr %492, align 8, !tbaa !13
  %493 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %494 = load double, ptr %493, align 8, !tbaa !16
  %495 = load ptr, ptr %10, align 8, !tbaa !5
  %496 = load i32, ptr %16, align 4, !tbaa !9
  %497 = sext i32 %496 to i64
  %498 = getelementptr inbounds %struct.doublecomplex, ptr %495, i64 %497
  %499 = getelementptr inbounds %struct.doublecomplex, ptr %498, i32 0, i32 1
  store double %494, ptr %499, align 8, !tbaa !16
  %500 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %500, ptr %16, align 4, !tbaa !9
  %501 = load i32, ptr %27, align 4, !tbaa !9
  %502 = add nsw i32 %501, 1
  store i32 %502, ptr %17, align 4, !tbaa !9
  %503 = load ptr, ptr %11, align 8, !tbaa !5
  %504 = load i32, ptr %17, align 4, !tbaa !9
  %505 = sext i32 %504 to i64
  %506 = getelementptr inbounds %struct.doublecomplex, ptr %503, i64 %505
  %507 = getelementptr inbounds %struct.doublecomplex, ptr %506, i32 0, i32 0
  %508 = load double, ptr %507, align 8, !tbaa !13
  %509 = load ptr, ptr %12, align 8, !tbaa !5
  %510 = load i32, ptr %16, align 4, !tbaa !9
  %511 = sext i32 %510 to i64
  %512 = getelementptr inbounds %struct.doublecomplex, ptr %509, i64 %511
  %513 = getelementptr inbounds %struct.doublecomplex, ptr %512, i32 0, i32 0
  store double %508, ptr %513, align 8, !tbaa !13
  %514 = load ptr, ptr %11, align 8, !tbaa !5
  %515 = load i32, ptr %17, align 4, !tbaa !9
  %516 = sext i32 %515 to i64
  %517 = getelementptr inbounds %struct.doublecomplex, ptr %514, i64 %516
  %518 = getelementptr inbounds %struct.doublecomplex, ptr %517, i32 0, i32 1
  %519 = load double, ptr %518, align 8, !tbaa !16
  %520 = load ptr, ptr %12, align 8, !tbaa !5
  %521 = load i32, ptr %16, align 4, !tbaa !9
  %522 = sext i32 %521 to i64
  %523 = getelementptr inbounds %struct.doublecomplex, ptr %520, i64 %522
  %524 = getelementptr inbounds %struct.doublecomplex, ptr %523, i32 0, i32 1
  store double %519, ptr %524, align 8, !tbaa !16
  %525 = load i32, ptr %27, align 4, !tbaa !9
  %526 = add nsw i32 %525, 1
  store i32 %526, ptr %16, align 4, !tbaa !9
  %527 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %528 = load double, ptr %527, align 8, !tbaa !13
  %529 = fneg double %528
  %530 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %529, ptr %530, align 8, !tbaa !13
  %531 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %532 = load double, ptr %531, align 8, !tbaa !16
  %533 = fneg double %532
  %534 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %533, ptr %534, align 8, !tbaa !16
  %535 = load i32, ptr %27, align 4, !tbaa !9
  %536 = add nsw i32 %535, 1
  store i32 %536, ptr %17, align 4, !tbaa !9
  %537 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %538 = load double, ptr %537, align 8, !tbaa !13
  %539 = load ptr, ptr %11, align 8, !tbaa !5
  %540 = load i32, ptr %17, align 4, !tbaa !9
  %541 = sext i32 %540 to i64
  %542 = getelementptr inbounds %struct.doublecomplex, ptr %539, i64 %541
  %543 = getelementptr inbounds %struct.doublecomplex, ptr %542, i32 0, i32 0
  %544 = load double, ptr %543, align 8, !tbaa !13
  %545 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %546 = load double, ptr %545, align 8, !tbaa !16
  %547 = load ptr, ptr %11, align 8, !tbaa !5
  %548 = load i32, ptr %17, align 4, !tbaa !9
  %549 = sext i32 %548 to i64
  %550 = getelementptr inbounds %struct.doublecomplex, ptr %547, i64 %549
  %551 = getelementptr inbounds %struct.doublecomplex, ptr %550, i32 0, i32 1
  %552 = load double, ptr %551, align 8, !tbaa !16
  %553 = fmul double %546, %552
  %554 = fneg double %553
  %555 = call double @llvm.fmuladd.f64(double %538, double %544, double %554)
  %556 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %555, ptr %556, align 8, !tbaa !13
  %557 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %558 = load double, ptr %557, align 8, !tbaa !13
  %559 = load ptr, ptr %11, align 8, !tbaa !5
  %560 = load i32, ptr %17, align 4, !tbaa !9
  %561 = sext i32 %560 to i64
  %562 = getelementptr inbounds %struct.doublecomplex, ptr %559, i64 %561
  %563 = getelementptr inbounds %struct.doublecomplex, ptr %562, i32 0, i32 1
  %564 = load double, ptr %563, align 8, !tbaa !16
  %565 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %566 = load double, ptr %565, align 8, !tbaa !16
  %567 = load ptr, ptr %11, align 8, !tbaa !5
  %568 = load i32, ptr %17, align 4, !tbaa !9
  %569 = sext i32 %568 to i64
  %570 = getelementptr inbounds %struct.doublecomplex, ptr %567, i64 %569
  %571 = getelementptr inbounds %struct.doublecomplex, ptr %570, i32 0, i32 0
  %572 = load double, ptr %571, align 8, !tbaa !13
  %573 = fmul double %566, %572
  %574 = call double @llvm.fmuladd.f64(double %558, double %564, double %573)
  %575 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %574, ptr %575, align 8, !tbaa !16
  %576 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %577 = load double, ptr %576, align 8, !tbaa !13
  %578 = load ptr, ptr %11, align 8, !tbaa !5
  %579 = load i32, ptr %16, align 4, !tbaa !9
  %580 = sext i32 %579 to i64
  %581 = getelementptr inbounds %struct.doublecomplex, ptr %578, i64 %580
  %582 = getelementptr inbounds %struct.doublecomplex, ptr %581, i32 0, i32 0
  store double %577, ptr %582, align 8, !tbaa !13
  %583 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %584 = load double, ptr %583, align 8, !tbaa !16
  %585 = load ptr, ptr %11, align 8, !tbaa !5
  %586 = load i32, ptr %16, align 4, !tbaa !9
  %587 = sext i32 %586 to i64
  %588 = getelementptr inbounds %struct.doublecomplex, ptr %585, i64 %587
  %589 = getelementptr inbounds %struct.doublecomplex, ptr %588, i32 0, i32 1
  store double %584, ptr %589, align 8, !tbaa !16
  %590 = load i32, ptr %27, align 4, !tbaa !9
  %591 = add nsw i32 %590, 1
  %592 = load ptr, ptr %13, align 8, !tbaa !5
  %593 = load i32, ptr %27, align 4, !tbaa !9
  %594 = sext i32 %593 to i64
  %595 = getelementptr inbounds i32, ptr %592, i64 %594
  store i32 %591, ptr %595, align 4, !tbaa !9
  br label %596

596:                                              ; preds = %325, %324
  br label %597

597:                                              ; preds = %596
  %598 = load i32, ptr %27, align 4, !tbaa !9
  %599 = add nsw i32 %598, 1
  store i32 %599, ptr %27, align 4, !tbaa !9
  br label %97, !llvm.loop !19

600:                                              ; preds = %97
  %601 = load ptr, ptr %8, align 8, !tbaa !5
  %602 = load i32, ptr %601, align 4, !tbaa !9
  %603 = icmp sgt i32 %602, 1
  br i1 %603, label %604, label %1013

604:                                              ; preds = %600
  %605 = load ptr, ptr %8, align 8, !tbaa !5
  %606 = load i32, ptr %605, align 4, !tbaa !9
  %607 = sub nsw i32 %606, 1
  store i32 %607, ptr %27, align 4, !tbaa !9
  %608 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %608, ptr %15, align 4, !tbaa !9
  %609 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %609, ptr %16, align 4, !tbaa !9
  %610 = load ptr, ptr %10, align 8, !tbaa !5
  %611 = load i32, ptr %15, align 4, !tbaa !9
  %612 = sext i32 %611 to i64
  %613 = getelementptr inbounds %struct.doublecomplex, ptr %610, i64 %612
  %614 = getelementptr inbounds %struct.doublecomplex, ptr %613, i32 0, i32 0
  %615 = load double, ptr %614, align 8, !tbaa !13
  store double %615, ptr %19, align 8, !tbaa !18
  %616 = load double, ptr %19, align 8, !tbaa !18
  %617 = fcmp oge double %616, 0.000000e+00
  br i1 %617, label %618, label %620

618:                                              ; preds = %604
  %619 = load double, ptr %19, align 8, !tbaa !18
  br label %623

620:                                              ; preds = %604
  %621 = load double, ptr %19, align 8, !tbaa !18
  %622 = fneg double %621
  br label %623

623:                                              ; preds = %620, %618
  %624 = phi double [ %619, %618 ], [ %622, %620 ]
  %625 = load ptr, ptr %10, align 8, !tbaa !5
  %626 = load i32, ptr %27, align 4, !tbaa !9
  %627 = sext i32 %626 to i64
  %628 = getelementptr inbounds %struct.doublecomplex, ptr %625, i64 %627
  %629 = call { double, double } @Cd(ptr noundef %628)
  %630 = extractvalue { double, double } %629, 0
  %631 = extractvalue { double, double } %629, 1
  store double %631, ptr %20, align 8, !tbaa !18
  %632 = load double, ptr %20, align 8, !tbaa !18
  %633 = fcmp oge double %632, 0.000000e+00
  br i1 %633, label %634, label %636

634:                                              ; preds = %623
  %635 = load double, ptr %20, align 8, !tbaa !18
  br label %639

636:                                              ; preds = %623
  %637 = load double, ptr %20, align 8, !tbaa !18
  %638 = fneg double %637
  br label %639

639:                                              ; preds = %636, %634
  %640 = phi double [ %635, %634 ], [ %638, %636 ]
  %641 = fadd double %624, %640
  %642 = load ptr, ptr %9, align 8, !tbaa !5
  %643 = load i32, ptr %16, align 4, !tbaa !9
  %644 = sext i32 %643 to i64
  %645 = getelementptr inbounds %struct.doublecomplex, ptr %642, i64 %644
  %646 = getelementptr inbounds %struct.doublecomplex, ptr %645, i32 0, i32 0
  %647 = load double, ptr %646, align 8, !tbaa !13
  store double %647, ptr %21, align 8, !tbaa !18
  %648 = load double, ptr %21, align 8, !tbaa !18
  %649 = fcmp oge double %648, 0.000000e+00
  br i1 %649, label %650, label %652

650:                                              ; preds = %639
  %651 = load double, ptr %21, align 8, !tbaa !18
  br label %655

652:                                              ; preds = %639
  %653 = load double, ptr %21, align 8, !tbaa !18
  %654 = fneg double %653
  br label %655

655:                                              ; preds = %652, %650
  %656 = phi double [ %651, %650 ], [ %654, %652 ]
  %657 = load ptr, ptr %9, align 8, !tbaa !5
  %658 = load i32, ptr %27, align 4, !tbaa !9
  %659 = sext i32 %658 to i64
  %660 = getelementptr inbounds %struct.doublecomplex, ptr %657, i64 %659
  %661 = call { double, double } @Cd(ptr noundef %660)
  %662 = extractvalue { double, double } %661, 0
  %663 = extractvalue { double, double } %661, 1
  store double %663, ptr %22, align 8, !tbaa !18
  %664 = load double, ptr %22, align 8, !tbaa !18
  %665 = fcmp oge double %664, 0.000000e+00
  br i1 %665, label %666, label %668

666:                                              ; preds = %655
  %667 = load double, ptr %22, align 8, !tbaa !18
  br label %671

668:                                              ; preds = %655
  %669 = load double, ptr %22, align 8, !tbaa !18
  %670 = fneg double %669
  br label %671

671:                                              ; preds = %668, %666
  %672 = phi double [ %667, %666 ], [ %670, %668 ]
  %673 = fadd double %656, %672
  %674 = fcmp oge double %641, %673
  br i1 %674, label %675, label %831

675:                                              ; preds = %671
  %676 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %676, ptr %15, align 4, !tbaa !9
  %677 = load ptr, ptr %10, align 8, !tbaa !5
  %678 = load i32, ptr %15, align 4, !tbaa !9
  %679 = sext i32 %678 to i64
  %680 = getelementptr inbounds %struct.doublecomplex, ptr %677, i64 %679
  %681 = getelementptr inbounds %struct.doublecomplex, ptr %680, i32 0, i32 0
  %682 = load double, ptr %681, align 8, !tbaa !13
  store double %682, ptr %19, align 8, !tbaa !18
  %683 = load double, ptr %19, align 8, !tbaa !18
  %684 = fcmp oge double %683, 0.000000e+00
  br i1 %684, label %685, label %687

685:                                              ; preds = %675
  %686 = load double, ptr %19, align 8, !tbaa !18
  br label %690

687:                                              ; preds = %675
  %688 = load double, ptr %19, align 8, !tbaa !18
  %689 = fneg double %688
  br label %690

690:                                              ; preds = %687, %685
  %691 = phi double [ %686, %685 ], [ %689, %687 ]
  %692 = load ptr, ptr %10, align 8, !tbaa !5
  %693 = load i32, ptr %27, align 4, !tbaa !9
  %694 = sext i32 %693 to i64
  %695 = getelementptr inbounds %struct.doublecomplex, ptr %692, i64 %694
  %696 = call { double, double } @Cd(ptr noundef %695)
  %697 = extractvalue { double, double } %696, 0
  %698 = extractvalue { double, double } %696, 1
  store double %698, ptr %20, align 8, !tbaa !18
  %699 = load double, ptr %20, align 8, !tbaa !18
  %700 = fcmp oge double %699, 0.000000e+00
  br i1 %700, label %701, label %703

701:                                              ; preds = %690
  %702 = load double, ptr %20, align 8, !tbaa !18
  br label %706

703:                                              ; preds = %690
  %704 = load double, ptr %20, align 8, !tbaa !18
  %705 = fneg double %704
  br label %706

706:                                              ; preds = %703, %701
  %707 = phi double [ %702, %701 ], [ %705, %703 ]
  %708 = fadd double %691, %707
  %709 = fcmp une double %708, 0.000000e+00
  br i1 %709, label %710, label %830

710:                                              ; preds = %706
  %711 = load ptr, ptr %9, align 8, !tbaa !5
  %712 = load i32, ptr %27, align 4, !tbaa !9
  %713 = sext i32 %712 to i64
  %714 = getelementptr inbounds %struct.doublecomplex, ptr %711, i64 %713
  %715 = call { double, double } @Cd(ptr noundef %714)
  %716 = extractvalue { double, double } %715, 0
  %717 = extractvalue { double, double } %715, 1
  %718 = load ptr, ptr %10, align 8, !tbaa !5
  %719 = load i32, ptr %27, align 4, !tbaa !9
  %720 = sext i32 %719 to i64
  %721 = getelementptr inbounds %struct.doublecomplex, ptr %718, i64 %720
  %722 = call { double, double } @Cd(ptr noundef %721)
  %723 = extractvalue { double, double } %722, 0
  %724 = extractvalue { double, double } %722, 1
  %725 = call { double, double } @__divdc3(double noundef %716, double noundef %717, double noundef %723, double noundef %724) #5
  %726 = extractvalue { double, double } %725, 0
  %727 = extractvalue { double, double } %725, 1
  %728 = call ptr @_pCd(ptr noundef %23)
  %729 = getelementptr inbounds { double, double }, ptr %728, i32 0, i32 0
  %730 = getelementptr inbounds { double, double }, ptr %728, i32 0, i32 1
  store double %726, ptr %729, align 8
  store double %727, ptr %730, align 8
  %731 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %732 = load double, ptr %731, align 8, !tbaa !13
  %733 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  store double %732, ptr %733, align 8, !tbaa !13
  %734 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %735 = load double, ptr %734, align 8, !tbaa !16
  %736 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  store double %735, ptr %736, align 8, !tbaa !16
  %737 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %737, ptr %15, align 4, !tbaa !9
  %738 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %739 = load double, ptr %738, align 8, !tbaa !13
  %740 = load ptr, ptr %9, align 8, !tbaa !5
  %741 = load i32, ptr %15, align 4, !tbaa !9
  %742 = sext i32 %741 to i64
  %743 = getelementptr inbounds %struct.doublecomplex, ptr %740, i64 %742
  %744 = getelementptr inbounds %struct.doublecomplex, ptr %743, i32 0, i32 0
  store double %739, ptr %744, align 8, !tbaa !13
  %745 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %746 = load double, ptr %745, align 8, !tbaa !16
  %747 = load ptr, ptr %9, align 8, !tbaa !5
  %748 = load i32, ptr %15, align 4, !tbaa !9
  %749 = sext i32 %748 to i64
  %750 = getelementptr inbounds %struct.doublecomplex, ptr %747, i64 %749
  %751 = getelementptr inbounds %struct.doublecomplex, ptr %750, i32 0, i32 1
  store double %746, ptr %751, align 8, !tbaa !16
  %752 = load i32, ptr %27, align 4, !tbaa !9
  %753 = add nsw i32 %752, 1
  store i32 %753, ptr %15, align 4, !tbaa !9
  %754 = load i32, ptr %27, align 4, !tbaa !9
  %755 = add nsw i32 %754, 1
  store i32 %755, ptr %16, align 4, !tbaa !9
  %756 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %756, ptr %17, align 4, !tbaa !9
  %757 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %758 = load double, ptr %757, align 8, !tbaa !13
  %759 = load ptr, ptr %11, align 8, !tbaa !5
  %760 = load i32, ptr %17, align 4, !tbaa !9
  %761 = sext i32 %760 to i64
  %762 = getelementptr inbounds %struct.doublecomplex, ptr %759, i64 %761
  %763 = getelementptr inbounds %struct.doublecomplex, ptr %762, i32 0, i32 0
  %764 = load double, ptr %763, align 8, !tbaa !13
  %765 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %766 = load double, ptr %765, align 8, !tbaa !16
  %767 = load ptr, ptr %11, align 8, !tbaa !5
  %768 = load i32, ptr %17, align 4, !tbaa !9
  %769 = sext i32 %768 to i64
  %770 = getelementptr inbounds %struct.doublecomplex, ptr %767, i64 %769
  %771 = getelementptr inbounds %struct.doublecomplex, ptr %770, i32 0, i32 1
  %772 = load double, ptr %771, align 8, !tbaa !16
  %773 = fmul double %766, %772
  %774 = fneg double %773
  %775 = call double @llvm.fmuladd.f64(double %758, double %764, double %774)
  %776 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %775, ptr %776, align 8, !tbaa !13
  %777 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %778 = load double, ptr %777, align 8, !tbaa !13
  %779 = load ptr, ptr %11, align 8, !tbaa !5
  %780 = load i32, ptr %17, align 4, !tbaa !9
  %781 = sext i32 %780 to i64
  %782 = getelementptr inbounds %struct.doublecomplex, ptr %779, i64 %781
  %783 = getelementptr inbounds %struct.doublecomplex, ptr %782, i32 0, i32 1
  %784 = load double, ptr %783, align 8, !tbaa !16
  %785 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %786 = load double, ptr %785, align 8, !tbaa !16
  %787 = load ptr, ptr %11, align 8, !tbaa !5
  %788 = load i32, ptr %17, align 4, !tbaa !9
  %789 = sext i32 %788 to i64
  %790 = getelementptr inbounds %struct.doublecomplex, ptr %787, i64 %789
  %791 = getelementptr inbounds %struct.doublecomplex, ptr %790, i32 0, i32 0
  %792 = load double, ptr %791, align 8, !tbaa !13
  %793 = fmul double %786, %792
  %794 = call double @llvm.fmuladd.f64(double %778, double %784, double %793)
  %795 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %794, ptr %795, align 8, !tbaa !16
  %796 = load ptr, ptr %10, align 8, !tbaa !5
  %797 = load i32, ptr %16, align 4, !tbaa !9
  %798 = sext i32 %797 to i64
  %799 = getelementptr inbounds %struct.doublecomplex, ptr %796, i64 %798
  %800 = getelementptr inbounds %struct.doublecomplex, ptr %799, i32 0, i32 0
  %801 = load double, ptr %800, align 8, !tbaa !13
  %802 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %803 = load double, ptr %802, align 8, !tbaa !13
  %804 = fsub double %801, %803
  %805 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %804, ptr %805, align 8, !tbaa !13
  %806 = load ptr, ptr %10, align 8, !tbaa !5
  %807 = load i32, ptr %16, align 4, !tbaa !9
  %808 = sext i32 %807 to i64
  %809 = getelementptr inbounds %struct.doublecomplex, ptr %806, i64 %808
  %810 = getelementptr inbounds %struct.doublecomplex, ptr %809, i32 0, i32 1
  %811 = load double, ptr %810, align 8, !tbaa !16
  %812 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %813 = load double, ptr %812, align 8, !tbaa !16
  %814 = fsub double %811, %813
  %815 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %814, ptr %815, align 8, !tbaa !16
  %816 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %817 = load double, ptr %816, align 8, !tbaa !13
  %818 = load ptr, ptr %10, align 8, !tbaa !5
  %819 = load i32, ptr %15, align 4, !tbaa !9
  %820 = sext i32 %819 to i64
  %821 = getelementptr inbounds %struct.doublecomplex, ptr %818, i64 %820
  %822 = getelementptr inbounds %struct.doublecomplex, ptr %821, i32 0, i32 0
  store double %817, ptr %822, align 8, !tbaa !13
  %823 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %824 = load double, ptr %823, align 8, !tbaa !16
  %825 = load ptr, ptr %10, align 8, !tbaa !5
  %826 = load i32, ptr %15, align 4, !tbaa !9
  %827 = sext i32 %826 to i64
  %828 = getelementptr inbounds %struct.doublecomplex, ptr %825, i64 %827
  %829 = getelementptr inbounds %struct.doublecomplex, ptr %828, i32 0, i32 1
  store double %824, ptr %829, align 8, !tbaa !16
  br label %830

830:                                              ; preds = %710, %706
  br label %1012

831:                                              ; preds = %671
  %832 = load ptr, ptr %10, align 8, !tbaa !5
  %833 = load i32, ptr %27, align 4, !tbaa !9
  %834 = sext i32 %833 to i64
  %835 = getelementptr inbounds %struct.doublecomplex, ptr %832, i64 %834
  %836 = call { double, double } @Cd(ptr noundef %835)
  %837 = extractvalue { double, double } %836, 0
  %838 = extractvalue { double, double } %836, 1
  %839 = load ptr, ptr %9, align 8, !tbaa !5
  %840 = load i32, ptr %27, align 4, !tbaa !9
  %841 = sext i32 %840 to i64
  %842 = getelementptr inbounds %struct.doublecomplex, ptr %839, i64 %841
  %843 = call { double, double } @Cd(ptr noundef %842)
  %844 = extractvalue { double, double } %843, 0
  %845 = extractvalue { double, double } %843, 1
  %846 = call { double, double } @__divdc3(double noundef %837, double noundef %838, double noundef %844, double noundef %845) #5
  %847 = extractvalue { double, double } %846, 0
  %848 = extractvalue { double, double } %846, 1
  %849 = call ptr @_pCd(ptr noundef %23)
  %850 = getelementptr inbounds { double, double }, ptr %849, i32 0, i32 0
  %851 = getelementptr inbounds { double, double }, ptr %849, i32 0, i32 1
  store double %847, ptr %850, align 8
  store double %848, ptr %851, align 8
  %852 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %853 = load double, ptr %852, align 8, !tbaa !13
  %854 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  store double %853, ptr %854, align 8, !tbaa !13
  %855 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %856 = load double, ptr %855, align 8, !tbaa !16
  %857 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  store double %856, ptr %857, align 8, !tbaa !16
  %858 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %858, ptr %15, align 4, !tbaa !9
  %859 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %859, ptr %16, align 4, !tbaa !9
  %860 = load ptr, ptr %9, align 8, !tbaa !5
  %861 = load i32, ptr %16, align 4, !tbaa !9
  %862 = sext i32 %861 to i64
  %863 = getelementptr inbounds %struct.doublecomplex, ptr %860, i64 %862
  %864 = getelementptr inbounds %struct.doublecomplex, ptr %863, i32 0, i32 0
  %865 = load double, ptr %864, align 8, !tbaa !13
  %866 = load ptr, ptr %10, align 8, !tbaa !5
  %867 = load i32, ptr %15, align 4, !tbaa !9
  %868 = sext i32 %867 to i64
  %869 = getelementptr inbounds %struct.doublecomplex, ptr %866, i64 %868
  %870 = getelementptr inbounds %struct.doublecomplex, ptr %869, i32 0, i32 0
  store double %865, ptr %870, align 8, !tbaa !13
  %871 = load ptr, ptr %9, align 8, !tbaa !5
  %872 = load i32, ptr %16, align 4, !tbaa !9
  %873 = sext i32 %872 to i64
  %874 = getelementptr inbounds %struct.doublecomplex, ptr %871, i64 %873
  %875 = getelementptr inbounds %struct.doublecomplex, ptr %874, i32 0, i32 1
  %876 = load double, ptr %875, align 8, !tbaa !16
  %877 = load ptr, ptr %10, align 8, !tbaa !5
  %878 = load i32, ptr %15, align 4, !tbaa !9
  %879 = sext i32 %878 to i64
  %880 = getelementptr inbounds %struct.doublecomplex, ptr %877, i64 %879
  %881 = getelementptr inbounds %struct.doublecomplex, ptr %880, i32 0, i32 1
  store double %876, ptr %881, align 8, !tbaa !16
  %882 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %882, ptr %15, align 4, !tbaa !9
  %883 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %884 = load double, ptr %883, align 8, !tbaa !13
  %885 = load ptr, ptr %9, align 8, !tbaa !5
  %886 = load i32, ptr %15, align 4, !tbaa !9
  %887 = sext i32 %886 to i64
  %888 = getelementptr inbounds %struct.doublecomplex, ptr %885, i64 %887
  %889 = getelementptr inbounds %struct.doublecomplex, ptr %888, i32 0, i32 0
  store double %884, ptr %889, align 8, !tbaa !13
  %890 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %891 = load double, ptr %890, align 8, !tbaa !16
  %892 = load ptr, ptr %9, align 8, !tbaa !5
  %893 = load i32, ptr %15, align 4, !tbaa !9
  %894 = sext i32 %893 to i64
  %895 = getelementptr inbounds %struct.doublecomplex, ptr %892, i64 %894
  %896 = getelementptr inbounds %struct.doublecomplex, ptr %895, i32 0, i32 1
  store double %891, ptr %896, align 8, !tbaa !16
  %897 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %897, ptr %15, align 4, !tbaa !9
  %898 = load ptr, ptr %11, align 8, !tbaa !5
  %899 = load i32, ptr %15, align 4, !tbaa !9
  %900 = sext i32 %899 to i64
  %901 = getelementptr inbounds %struct.doublecomplex, ptr %898, i64 %900
  %902 = getelementptr inbounds %struct.doublecomplex, ptr %901, i32 0, i32 0
  %903 = load double, ptr %902, align 8, !tbaa !13
  %904 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 0
  store double %903, ptr %904, align 8, !tbaa !13
  %905 = load ptr, ptr %11, align 8, !tbaa !5
  %906 = load i32, ptr %15, align 4, !tbaa !9
  %907 = sext i32 %906 to i64
  %908 = getelementptr inbounds %struct.doublecomplex, ptr %905, i64 %907
  %909 = getelementptr inbounds %struct.doublecomplex, ptr %908, i32 0, i32 1
  %910 = load double, ptr %909, align 8, !tbaa !16
  %911 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 1
  store double %910, ptr %911, align 8, !tbaa !16
  %912 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %912, ptr %15, align 4, !tbaa !9
  %913 = load i32, ptr %27, align 4, !tbaa !9
  %914 = add nsw i32 %913, 1
  store i32 %914, ptr %16, align 4, !tbaa !9
  %915 = load ptr, ptr %10, align 8, !tbaa !5
  %916 = load i32, ptr %16, align 4, !tbaa !9
  %917 = sext i32 %916 to i64
  %918 = getelementptr inbounds %struct.doublecomplex, ptr %915, i64 %917
  %919 = getelementptr inbounds %struct.doublecomplex, ptr %918, i32 0, i32 0
  %920 = load double, ptr %919, align 8, !tbaa !13
  %921 = load ptr, ptr %11, align 8, !tbaa !5
  %922 = load i32, ptr %15, align 4, !tbaa !9
  %923 = sext i32 %922 to i64
  %924 = getelementptr inbounds %struct.doublecomplex, ptr %921, i64 %923
  %925 = getelementptr inbounds %struct.doublecomplex, ptr %924, i32 0, i32 0
  store double %920, ptr %925, align 8, !tbaa !13
  %926 = load ptr, ptr %10, align 8, !tbaa !5
  %927 = load i32, ptr %16, align 4, !tbaa !9
  %928 = sext i32 %927 to i64
  %929 = getelementptr inbounds %struct.doublecomplex, ptr %926, i64 %928
  %930 = getelementptr inbounds %struct.doublecomplex, ptr %929, i32 0, i32 1
  %931 = load double, ptr %930, align 8, !tbaa !16
  %932 = load ptr, ptr %11, align 8, !tbaa !5
  %933 = load i32, ptr %15, align 4, !tbaa !9
  %934 = sext i32 %933 to i64
  %935 = getelementptr inbounds %struct.doublecomplex, ptr %932, i64 %934
  %936 = getelementptr inbounds %struct.doublecomplex, ptr %935, i32 0, i32 1
  store double %931, ptr %936, align 8, !tbaa !16
  %937 = load i32, ptr %27, align 4, !tbaa !9
  %938 = add nsw i32 %937, 1
  store i32 %938, ptr %15, align 4, !tbaa !9
  %939 = load i32, ptr %27, align 4, !tbaa !9
  %940 = add nsw i32 %939, 1
  store i32 %940, ptr %16, align 4, !tbaa !9
  %941 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %942 = load double, ptr %941, align 8, !tbaa !13
  %943 = load ptr, ptr %10, align 8, !tbaa !5
  %944 = load i32, ptr %16, align 4, !tbaa !9
  %945 = sext i32 %944 to i64
  %946 = getelementptr inbounds %struct.doublecomplex, ptr %943, i64 %945
  %947 = getelementptr inbounds %struct.doublecomplex, ptr %946, i32 0, i32 0
  %948 = load double, ptr %947, align 8, !tbaa !13
  %949 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %950 = load double, ptr %949, align 8, !tbaa !16
  %951 = load ptr, ptr %10, align 8, !tbaa !5
  %952 = load i32, ptr %16, align 4, !tbaa !9
  %953 = sext i32 %952 to i64
  %954 = getelementptr inbounds %struct.doublecomplex, ptr %951, i64 %953
  %955 = getelementptr inbounds %struct.doublecomplex, ptr %954, i32 0, i32 1
  %956 = load double, ptr %955, align 8, !tbaa !16
  %957 = fmul double %950, %956
  %958 = fneg double %957
  %959 = call double @llvm.fmuladd.f64(double %942, double %948, double %958)
  %960 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %959, ptr %960, align 8, !tbaa !13
  %961 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %962 = load double, ptr %961, align 8, !tbaa !13
  %963 = load ptr, ptr %10, align 8, !tbaa !5
  %964 = load i32, ptr %16, align 4, !tbaa !9
  %965 = sext i32 %964 to i64
  %966 = getelementptr inbounds %struct.doublecomplex, ptr %963, i64 %965
  %967 = getelementptr inbounds %struct.doublecomplex, ptr %966, i32 0, i32 1
  %968 = load double, ptr %967, align 8, !tbaa !16
  %969 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %970 = load double, ptr %969, align 8, !tbaa !16
  %971 = load ptr, ptr %10, align 8, !tbaa !5
  %972 = load i32, ptr %16, align 4, !tbaa !9
  %973 = sext i32 %972 to i64
  %974 = getelementptr inbounds %struct.doublecomplex, ptr %971, i64 %973
  %975 = getelementptr inbounds %struct.doublecomplex, ptr %974, i32 0, i32 0
  %976 = load double, ptr %975, align 8, !tbaa !13
  %977 = fmul double %970, %976
  %978 = call double @llvm.fmuladd.f64(double %962, double %968, double %977)
  %979 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %978, ptr %979, align 8, !tbaa !16
  %980 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 0
  %981 = load double, ptr %980, align 8, !tbaa !13
  %982 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %983 = load double, ptr %982, align 8, !tbaa !13
  %984 = fsub double %981, %983
  %985 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %984, ptr %985, align 8, !tbaa !13
  %986 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 1
  %987 = load double, ptr %986, align 8, !tbaa !16
  %988 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %989 = load double, ptr %988, align 8, !tbaa !16
  %990 = fsub double %987, %989
  %991 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %990, ptr %991, align 8, !tbaa !16
  %992 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %993 = load double, ptr %992, align 8, !tbaa !13
  %994 = load ptr, ptr %10, align 8, !tbaa !5
  %995 = load i32, ptr %15, align 4, !tbaa !9
  %996 = sext i32 %995 to i64
  %997 = getelementptr inbounds %struct.doublecomplex, ptr %994, i64 %996
  %998 = getelementptr inbounds %struct.doublecomplex, ptr %997, i32 0, i32 0
  store double %993, ptr %998, align 8, !tbaa !13
  %999 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %1000 = load double, ptr %999, align 8, !tbaa !16
  %1001 = load ptr, ptr %10, align 8, !tbaa !5
  %1002 = load i32, ptr %15, align 4, !tbaa !9
  %1003 = sext i32 %1002 to i64
  %1004 = getelementptr inbounds %struct.doublecomplex, ptr %1001, i64 %1003
  %1005 = getelementptr inbounds %struct.doublecomplex, ptr %1004, i32 0, i32 1
  store double %1000, ptr %1005, align 8, !tbaa !16
  %1006 = load i32, ptr %27, align 4, !tbaa !9
  %1007 = add nsw i32 %1006, 1
  %1008 = load ptr, ptr %13, align 8, !tbaa !5
  %1009 = load i32, ptr %27, align 4, !tbaa !9
  %1010 = sext i32 %1009 to i64
  %1011 = getelementptr inbounds i32, ptr %1008, i64 %1010
  store i32 %1007, ptr %1011, align 4, !tbaa !9
  br label %1012

1012:                                             ; preds = %831, %830
  br label %1013

1013:                                             ; preds = %1012, %600
  %1014 = load ptr, ptr %8, align 8, !tbaa !5
  %1015 = load i32, ptr %1014, align 4, !tbaa !9
  store i32 %1015, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %1016

1016:                                             ; preds = %1059, %1013
  %1017 = load i32, ptr %27, align 4, !tbaa !9
  %1018 = load i32, ptr %15, align 4, !tbaa !9
  %1019 = icmp sle i32 %1017, %1018
  br i1 %1019, label %1020, label %1062

1020:                                             ; preds = %1016
  %1021 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %1021, ptr %16, align 4, !tbaa !9
  %1022 = load ptr, ptr %10, align 8, !tbaa !5
  %1023 = load i32, ptr %16, align 4, !tbaa !9
  %1024 = sext i32 %1023 to i64
  %1025 = getelementptr inbounds %struct.doublecomplex, ptr %1022, i64 %1024
  %1026 = getelementptr inbounds %struct.doublecomplex, ptr %1025, i32 0, i32 0
  %1027 = load double, ptr %1026, align 8, !tbaa !13
  store double %1027, ptr %19, align 8, !tbaa !18
  %1028 = load double, ptr %19, align 8, !tbaa !18
  %1029 = fcmp oge double %1028, 0.000000e+00
  br i1 %1029, label %1030, label %1032

1030:                                             ; preds = %1020
  %1031 = load double, ptr %19, align 8, !tbaa !18
  br label %1035

1032:                                             ; preds = %1020
  %1033 = load double, ptr %19, align 8, !tbaa !18
  %1034 = fneg double %1033
  br label %1035

1035:                                             ; preds = %1032, %1030
  %1036 = phi double [ %1031, %1030 ], [ %1034, %1032 ]
  %1037 = load ptr, ptr %10, align 8, !tbaa !5
  %1038 = load i32, ptr %27, align 4, !tbaa !9
  %1039 = sext i32 %1038 to i64
  %1040 = getelementptr inbounds %struct.doublecomplex, ptr %1037, i64 %1039
  %1041 = call { double, double } @Cd(ptr noundef %1040)
  %1042 = extractvalue { double, double } %1041, 0
  %1043 = extractvalue { double, double } %1041, 1
  store double %1043, ptr %20, align 8, !tbaa !18
  %1044 = load double, ptr %20, align 8, !tbaa !18
  %1045 = fcmp oge double %1044, 0.000000e+00
  br i1 %1045, label %1046, label %1048

1046:                                             ; preds = %1035
  %1047 = load double, ptr %20, align 8, !tbaa !18
  br label %1051

1048:                                             ; preds = %1035
  %1049 = load double, ptr %20, align 8, !tbaa !18
  %1050 = fneg double %1049
  br label %1051

1051:                                             ; preds = %1048, %1046
  %1052 = phi double [ %1047, %1046 ], [ %1050, %1048 ]
  %1053 = fadd double %1036, %1052
  %1054 = fcmp oeq double %1053, 0.000000e+00
  br i1 %1054, label %1055, label %1058

1055:                                             ; preds = %1051
  %1056 = load i32, ptr %27, align 4, !tbaa !9
  %1057 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %1056, ptr %1057, align 4, !tbaa !9
  br label %1063

1058:                                             ; preds = %1051
  br label %1059

1059:                                             ; preds = %1058
  %1060 = load i32, ptr %27, align 4, !tbaa !9
  %1061 = add nsw i32 %1060, 1
  store i32 %1061, ptr %27, align 4, !tbaa !9
  br label %1016, !llvm.loop !20

1062:                                             ; preds = %1016
  br label %1063

1063:                                             ; preds = %1062, %1055
  store i32 1, ptr %28, align 4
  br label %1064

1064:                                             ; preds = %1063, %53, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  ret void
}

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

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden { double, double } @Cd(ptr noundef) #3

declare { double, double } @__divdc3(double, double, double, double)

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCd(ptr noundef) #3

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !15, i64 0}
!14 = !{!"", !15, i64 0, !15, i64 8}
!15 = !{!"double", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = distinct !{!17, !12}
!18 = !{!15, !15, i64 0}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


; 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"

%struct.doublecomplex = type { double, double }

@.str = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @zgttrf_(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5, ptr nocapture noundef writeonly %6) local_unnamed_addr #0 {
  %8 = alloca i32, align 4
  %9 = alloca %struct.doublecomplex, align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  %10 = getelementptr inbounds i8, ptr %5, i64 -4
  %11 = getelementptr inbounds i8, ptr %4, i64 -16
  %12 = getelementptr inbounds i8, ptr %3, i64 -16
  %13 = getelementptr inbounds i8, ptr %2, i64 -16
  %14 = getelementptr inbounds i8, ptr %1, i64 -16
  store i32 0, ptr %6, align 4, !tbaa !5
  %15 = load i32, ptr %0, align 4, !tbaa !5
  %16 = icmp slt i32 %15, 0
  br i1 %16, label %17, label %19

17:                                               ; preds = %7
  store i32 -1, ptr %6, align 4, !tbaa !5
  store i32 1, ptr %8, align 4, !tbaa !5
  %18 = call i32 @xerbla_(ptr noundef nonnull @.str, ptr noundef nonnull %8, i32 noundef 6) #6
  br label %.loopexit

19:                                               ; preds = %7
  %20 = icmp eq i32 %15, 0
  br i1 %20, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %19
  %21 = add nuw i32 %15, 1
  %wide.trip.count = zext i32 %21 to i64
  %22 = zext nneg i32 %15 to i64
  %min.iters.check = icmp ult i32 %15, 8
  br i1 %min.iters.check, label %.lr.ph.preheader354, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %22, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 1, i32 2, i32 3, i32 4>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %23 = getelementptr i32, ptr %5, i64 %index
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  store <4 x i32> %vec.ind, ptr %23, align 4, !tbaa !5
  store <4 x i32> %step.add, ptr %24, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %25 = icmp eq i64 %index.next, %n.vec
  br i1 %25, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %22
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader354

.lr.ph.preheader354:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader354, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader354 ]
  %26 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv
  %27 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %27, ptr %26, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %middle.block
  %.pre = load i32, ptr %0, align 4, !tbaa !5
  %.not316322 = icmp slt i32 %.pre, 3
  br i1 %.not316322, label %._crit_edge331, label %.lr.ph330

.lr.ph330:                                        ; preds = %._crit_edge
  %28 = add nsw i32 %.pre, -2
  %29 = zext nneg i32 %28 to i64
  %30 = shl nuw nsw i64 %29, 4
  tail call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 %30, i1 false), !tbaa !14
  %31 = sext i32 %28 to i64
  br label %32

32:                                               ; preds = %.lr.ph330, %135
  %indvars.iv341 = phi i64 [ 1, %.lr.ph330 ], [ %indvars.iv.next342, %135 ]
  %33 = getelementptr inbounds %struct.doublecomplex, ptr %13, i64 %indvars.iv341
  %34 = load double, ptr %33, align 8, !tbaa !16
  %35 = call { double, double } @Cd(ptr noundef nonnull %33)
  %36 = extractvalue { double, double } %35, 1
  %37 = insertelement <2 x double> poison, double %34, i64 0
  %38 = insertelement <2 x double> %37, double %36, i64 1
  %39 = fcmp oge <2 x double> %38, zeroinitializer
  %40 = fneg <2 x double> %38
  %41 = select <2 x i1> %39, <2 x double> %38, <2 x double> %40
  %42 = getelementptr inbounds %struct.doublecomplex, ptr %14, i64 %indvars.iv341
  %43 = load double, ptr %42, align 8, !tbaa !16
  %44 = call { double, double } @Cd(ptr noundef nonnull %42)
  %45 = extractvalue { double, double } %44, 1
  %46 = insertelement <2 x double> poison, double %43, i64 0
  %47 = insertelement <2 x double> %46, double %45, i64 1
  %48 = fcmp oge <2 x double> %47, zeroinitializer
  %49 = fneg <2 x double> %47
  %50 = select <2 x i1> %48, <2 x double> %47, <2 x double> %49
  %51 = shufflevector <2 x double> %41, <2 x double> %50, <2 x i32> <i32 0, i32 2>
  %52 = shufflevector <2 x double> %41, <2 x double> %50, <2 x i32> <i32 1, i32 3>
  %53 = fadd <2 x double> %51, %52
  %54 = extractelement <2 x double> %53, i64 0
  %55 = extractelement <2 x double> %53, i64 1
  %56 = fcmp ult double %54, %55
  br i1 %56, label %94, label %57

57:                                               ; preds = %32
  %58 = load double, ptr %33, align 8, !tbaa !16
  %59 = call { double, double } @Cd(ptr noundef nonnull %33)
  %60 = extractvalue { double, double } %59, 1
  %61 = insertelement <2 x double> poison, double %58, i64 0
  %62 = insertelement <2 x double> %61, double %60, i64 1
  %63 = fcmp oge <2 x double> %62, zeroinitializer
  %64 = fneg <2 x double> %62
  %65 = select <2 x i1> %63, <2 x double> %62, <2 x double> %64
  %shift = shufflevector <2 x double> %65, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %66 = fadd <2 x double> %65, %shift
  %67 = extractelement <2 x double> %66, i64 0
  %68 = fcmp une double %67, 0.000000e+00
  br i1 %68, label %69, label %135

69:                                               ; preds = %57
  %70 = call { double, double } @Cd(ptr noundef nonnull %42)
  %71 = extractvalue { double, double } %70, 0
  %72 = extractvalue { double, double } %70, 1
  %73 = call { double, double } @Cd(ptr noundef nonnull %33)
  %74 = extractvalue { double, double } %73, 0
  %75 = extractvalue { double, double } %73, 1
  %76 = call { double, double } @__divdc3(double noundef %71, double noundef %72, double noundef %74, double noundef %75) #6
  %77 = extractvalue { double, double } %76, 0
  %78 = extractvalue { double, double } %76, 1
  %79 = call ptr @_pCd(ptr noundef nonnull %9)
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  store double %77, ptr %79, align 8
  store double %78, ptr %80, align 8
  %81 = load <2 x double>, ptr %9, align 16, !tbaa !14
  store <2 x double> %81, ptr %42, align 8, !tbaa !14
  %82 = getelementptr inbounds %struct.doublecomplex, ptr %12, i64 %indvars.iv341
  %83 = getelementptr inbounds i8, ptr %33, i64 16
  %84 = load <2 x double>, ptr %82, align 8, !tbaa !14
  %85 = shufflevector <2 x double> %81, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %86 = fneg <2 x double> %81
  %87 = shufflevector <2 x double> %85, <2 x double> %86, <2 x i32> <i32 0, i32 3>
  %88 = fmul <2 x double> %84, %87
  %89 = shufflevector <2 x double> %88, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %90 = shufflevector <2 x double> %81, <2 x double> poison, <2 x i32> zeroinitializer
  %91 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %90, <2 x double> %84, <2 x double> %89)
  %92 = load <2 x double>, ptr %83, align 8, !tbaa !14
  %93 = fsub <2 x double> %92, %91
  store <2 x double> %93, ptr %9, align 16, !tbaa !14
  store <2 x double> %93, ptr %83, align 8, !tbaa !14
  br label %135

94:                                               ; preds = %32
  %95 = call { double, double } @Cd(ptr noundef nonnull %33)
  %96 = extractvalue { double, double } %95, 0
  %97 = extractvalue { double, double } %95, 1
  %98 = call { double, double } @Cd(ptr noundef nonnull %42)
  %99 = extractvalue { double, double } %98, 0
  %100 = extractvalue { double, double } %98, 1
  %101 = call { double, double } @__divdc3(double noundef %96, double noundef %97, double noundef %99, double noundef %100) #6
  %102 = extractvalue { double, double } %101, 0
  %103 = extractvalue { double, double } %101, 1
  %104 = call ptr @_pCd(ptr noundef nonnull %9)
  %105 = getelementptr inbounds i8, ptr %104, i64 8
  store double %102, ptr %104, align 8
  store double %103, ptr %105, align 8
  %106 = load <2 x double>, ptr %42, align 8, !tbaa !14
  store <2 x double> %106, ptr %33, align 8, !tbaa !14
  %107 = load <2 x double>, ptr %9, align 16, !tbaa !14
  store <2 x double> %107, ptr %42, align 8, !tbaa !14
  %108 = getelementptr inbounds %struct.doublecomplex, ptr %12, i64 %indvars.iv341
  %109 = getelementptr %struct.doublecomplex, ptr %2, i64 %indvars.iv341
  %110 = extractelement <2 x double> %107, i64 1
  %111 = fneg double %110
  %112 = load <2 x double>, ptr %108, align 8, !tbaa !14
  %113 = load <2 x double>, ptr %109, align 8, !tbaa !14
  store <2 x double> %113, ptr %108, align 8, !tbaa !14
  %114 = shufflevector <2 x double> %107, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %115 = insertelement <2 x double> %114, double %111, i64 1
  %116 = fmul <2 x double> %113, %115
  %117 = shufflevector <2 x double> %116, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %118 = shufflevector <2 x double> %107, <2 x double> poison, <2 x i32> zeroinitializer
  %119 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %118, <2 x double> %113, <2 x double> %117)
  %120 = fsub <2 x double> %112, %119
  store <2 x double> %120, ptr %109, align 8, !tbaa !14
  %121 = getelementptr %struct.doublecomplex, ptr %3, i64 %indvars.iv341
  %122 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %indvars.iv341
  %123 = extractelement <2 x double> %107, i64 0
  %124 = fneg double %123
  %125 = load <2 x double>, ptr %121, align 8, !tbaa !14
  store <2 x double> %125, ptr %122, align 8, !tbaa !14
  %126 = insertelement <2 x double> %107, double %111, i64 0
  %127 = fmul <2 x double> %126, %125
  %128 = shufflevector <2 x double> %127, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %129 = insertelement <2 x double> poison, double %124, i64 0
  %130 = shufflevector <2 x double> %129, <2 x double> poison, <2 x i32> zeroinitializer
  %131 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %130, <2 x double> %125, <2 x double> %128)
  store <2 x double> %131, ptr %9, align 16, !tbaa !14
  store <2 x double> %131, ptr %121, align 8, !tbaa !14
  %132 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv341
  %133 = trunc i64 %indvars.iv341 to i32
  %134 = add i32 %133, 1
  store i32 %134, ptr %132, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %94, %69, %57
  %indvars.iv.next342 = add nuw nsw i64 %indvars.iv341, 1
  %.not317.not = icmp slt i64 %indvars.iv341, %31
  br i1 %.not317.not, label %32, label %._crit_edge331.loopexit, !llvm.loop !18

._crit_edge331.loopexit:                          ; preds = %135
  %.pre347 = load i32, ptr %0, align 4, !tbaa !5
  br label %._crit_edge331

._crit_edge331:                                   ; preds = %._crit_edge, %._crit_edge331.loopexit
  %136 = phi i32 [ %.pre347, %._crit_edge331.loopexit ], [ %.pre, %._crit_edge ]
  %137 = icmp sgt i32 %136, 1
  br i1 %137, label %138, label %231

138:                                              ; preds = %._crit_edge331
  %139 = add nsw i32 %136, -1
  %140 = zext nneg i32 %139 to i64
  %141 = getelementptr inbounds %struct.doublecomplex, ptr %13, i64 %140
  %142 = load double, ptr %141, align 8, !tbaa !16
  %143 = call { double, double } @Cd(ptr noundef nonnull %141)
  %144 = extractvalue { double, double } %143, 1
  %145 = insertelement <2 x double> poison, double %142, i64 0
  %146 = insertelement <2 x double> %145, double %144, i64 1
  %147 = fcmp oge <2 x double> %146, zeroinitializer
  %148 = fneg <2 x double> %146
  %149 = select <2 x i1> %147, <2 x double> %146, <2 x double> %148
  %150 = getelementptr inbounds %struct.doublecomplex, ptr %14, i64 %140
  %151 = load double, ptr %150, align 8, !tbaa !16
  %152 = call { double, double } @Cd(ptr noundef nonnull %150)
  %153 = extractvalue { double, double } %152, 1
  %154 = insertelement <2 x double> poison, double %151, i64 0
  %155 = insertelement <2 x double> %154, double %153, i64 1
  %156 = fcmp oge <2 x double> %155, zeroinitializer
  %157 = fneg <2 x double> %155
  %158 = select <2 x i1> %156, <2 x double> %155, <2 x double> %157
  %159 = shufflevector <2 x double> %149, <2 x double> %158, <2 x i32> <i32 0, i32 2>
  %160 = shufflevector <2 x double> %149, <2 x double> %158, <2 x i32> <i32 1, i32 3>
  %161 = fadd <2 x double> %159, %160
  %162 = extractelement <2 x double> %161, i64 0
  %163 = extractelement <2 x double> %161, i64 1
  %164 = fcmp ult double %162, %163
  br i1 %164, label %203, label %165

165:                                              ; preds = %138
  %166 = load double, ptr %141, align 8, !tbaa !16
  %167 = call { double, double } @Cd(ptr noundef nonnull %141)
  %168 = extractvalue { double, double } %167, 1
  %169 = insertelement <2 x double> poison, double %166, i64 0
  %170 = insertelement <2 x double> %169, double %168, i64 1
  %171 = fcmp oge <2 x double> %170, zeroinitializer
  %172 = fneg <2 x double> %170
  %173 = select <2 x i1> %171, <2 x double> %170, <2 x double> %172
  %shift351 = shufflevector <2 x double> %173, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %174 = fadd <2 x double> %173, %shift351
  %175 = extractelement <2 x double> %174, i64 0
  %176 = fcmp une double %175, 0.000000e+00
  br i1 %176, label %177, label %231

177:                                              ; preds = %165
  %178 = call { double, double } @Cd(ptr noundef nonnull %150)
  %179 = extractvalue { double, double } %178, 0
  %180 = extractvalue { double, double } %178, 1
  %181 = call { double, double } @Cd(ptr noundef nonnull %141)
  %182 = extractvalue { double, double } %181, 0
  %183 = extractvalue { double, double } %181, 1
  %184 = call { double, double } @__divdc3(double noundef %179, double noundef %180, double noundef %182, double noundef %183) #6
  %185 = extractvalue { double, double } %184, 0
  %186 = extractvalue { double, double } %184, 1
  %187 = call ptr @_pCd(ptr noundef nonnull %9)
  %188 = getelementptr inbounds i8, ptr %187, i64 8
  store double %185, ptr %187, align 8
  store double %186, ptr %188, align 8
  %189 = load <2 x double>, ptr %9, align 16, !tbaa !14
  store <2 x double> %189, ptr %150, align 8, !tbaa !14
  %190 = getelementptr inbounds %struct.doublecomplex, ptr %12, i64 %140
  %191 = zext nneg i32 %136 to i64
  %192 = getelementptr inbounds %struct.doublecomplex, ptr %13, i64 %191
  %193 = load <2 x double>, ptr %190, align 8, !tbaa !14
  %194 = shufflevector <2 x double> %189, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %195 = fneg <2 x double> %189
  %196 = shufflevector <2 x double> %194, <2 x double> %195, <2 x i32> <i32 0, i32 3>
  %197 = fmul <2 x double> %193, %196
  %198 = shufflevector <2 x double> %197, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %199 = shufflevector <2 x double> %189, <2 x double> poison, <2 x i32> zeroinitializer
  %200 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %199, <2 x double> %193, <2 x double> %198)
  %201 = load <2 x double>, ptr %192, align 8, !tbaa !14
  %202 = fsub <2 x double> %201, %200
  store <2 x double> %202, ptr %9, align 16, !tbaa !14
  store <2 x double> %202, ptr %192, align 8, !tbaa !14
  br label %231

203:                                              ; preds = %138
  %204 = call { double, double } @Cd(ptr noundef nonnull %141)
  %205 = extractvalue { double, double } %204, 0
  %206 = extractvalue { double, double } %204, 1
  %207 = call { double, double } @Cd(ptr noundef nonnull %150)
  %208 = extractvalue { double, double } %207, 0
  %209 = extractvalue { double, double } %207, 1
  %210 = call { double, double } @__divdc3(double noundef %205, double noundef %206, double noundef %208, double noundef %209) #6
  %211 = extractvalue { double, double } %210, 0
  %212 = extractvalue { double, double } %210, 1
  %213 = call ptr @_pCd(ptr noundef nonnull %9)
  %214 = getelementptr inbounds i8, ptr %213, i64 8
  store double %211, ptr %213, align 8
  store double %212, ptr %214, align 8
  %215 = load <2 x double>, ptr %150, align 8, !tbaa !14
  store <2 x double> %215, ptr %141, align 8, !tbaa !14
  %216 = load <2 x double>, ptr %9, align 16, !tbaa !14
  store <2 x double> %216, ptr %150, align 8, !tbaa !14
  %217 = getelementptr inbounds %struct.doublecomplex, ptr %12, i64 %140
  %218 = zext nneg i32 %136 to i64
  %219 = getelementptr inbounds %struct.doublecomplex, ptr %13, i64 %218
  %220 = load <2 x double>, ptr %217, align 8, !tbaa !14
  %221 = load <2 x double>, ptr %219, align 8, !tbaa !14
  store <2 x double> %221, ptr %217, align 8, !tbaa !14
  %222 = shufflevector <2 x double> %216, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %223 = fneg <2 x double> %216
  %224 = shufflevector <2 x double> %222, <2 x double> %223, <2 x i32> <i32 0, i32 3>
  %225 = fmul <2 x double> %221, %224
  %226 = shufflevector <2 x double> %225, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %227 = shufflevector <2 x double> %216, <2 x double> poison, <2 x i32> zeroinitializer
  %228 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %227, <2 x double> %221, <2 x double> %226)
  %229 = fsub <2 x double> %220, %228
  store <2 x double> %229, ptr %9, align 16, !tbaa !14
  store <2 x double> %229, ptr %219, align 8, !tbaa !14
  %230 = getelementptr inbounds i32, ptr %10, i64 %140
  store i32 %136, ptr %230, align 4, !tbaa !5
  br label %231

231:                                              ; preds = %203, %177, %165, %._crit_edge331
  %232 = load i32, ptr %0, align 4, !tbaa !5
  %.not318332 = icmp slt i32 %232, 1
  br i1 %.not318332, label %.loopexit, label %.lr.ph335.preheader

.lr.ph335.preheader:                              ; preds = %231
  %233 = zext nneg i32 %232 to i64
  br label %.lr.ph335

.lr.ph335:                                        ; preds = %.lr.ph335.preheader, %248
  %indvars.iv344 = phi i64 [ 1, %.lr.ph335.preheader ], [ %indvars.iv.next345, %248 ]
  %234 = getelementptr inbounds %struct.doublecomplex, ptr %13, i64 %indvars.iv344
  %235 = load double, ptr %234, align 8, !tbaa !16
  %236 = call { double, double } @Cd(ptr noundef nonnull %234)
  %237 = extractvalue { double, double } %236, 1
  %238 = insertelement <2 x double> poison, double %235, i64 0
  %239 = insertelement <2 x double> %238, double %237, i64 1
  %240 = fcmp oge <2 x double> %239, zeroinitializer
  %241 = fneg <2 x double> %239
  %242 = select <2 x i1> %240, <2 x double> %239, <2 x double> %241
  %shift352 = shufflevector <2 x double> %242, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %243 = fadd <2 x double> %242, %shift352
  %244 = extractelement <2 x double> %243, i64 0
  %245 = fcmp oeq double %244, 0.000000e+00
  br i1 %245, label %246, label %248

246:                                              ; preds = %.lr.ph335
  %247 = trunc nuw nsw i64 %indvars.iv344 to i32
  store i32 %247, ptr %6, align 4, !tbaa !5
  br label %.loopexit

248:                                              ; preds = %.lr.ph335
  %indvars.iv.next345 = add nuw nsw i64 %indvars.iv344, 1
  %.not318.not = icmp ult i64 %indvars.iv344, %233
  br i1 %.not318.not, label %.lr.ph335, label %.loopexit, !llvm.loop !19

.loopexit:                                        ; preds = %248, %231, %246, %19, %17
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  ret void
}

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

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden { double, double } @Cd(ptr noundef) local_unnamed_addr #3

declare { double, double } @__divdc3(double, double, double, double) local_unnamed_addr

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCd(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"", !15, i64 0, !15, i64 8}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass