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

; 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 [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@c_b5 = external hidden global %struct.doublecomplex, align 8

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

33:                                               ; preds = %5
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 0, i32 0
  store double 0.000000e+00, ptr %35, align 8, !tbaa !11
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.doublecomplex, ptr %36, i32 0, i32 1
  store double 0.000000e+00, ptr %37, align 8, !tbaa !14
  store i32 1, ptr %26, align 4
  br label %569

38:                                               ; preds = %5
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = sub nsw i32 %40, 1
  store i32 %41, ptr %11, align 4, !tbaa !9
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.doublecomplex, ptr %42, i64 1
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = call double @dznrm2_(ptr noundef %11, ptr noundef %43, ptr noundef %44)
  store double %45, ptr %22, align 8, !tbaa !15
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.doublecomplex, ptr %46, i32 0, i32 0
  %48 = load double, ptr %47, align 8, !tbaa !11
  store double %48, ptr %20, align 8, !tbaa !15
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = call { double, double } @Cd(ptr noundef %49)
  %51 = extractvalue { double, double } %50, 0
  %52 = extractvalue { double, double } %50, 1
  store double %52, ptr %19, align 8, !tbaa !15
  %53 = load double, ptr %22, align 8, !tbaa !15
  %54 = fcmp oeq double %53, 0.000000e+00
  br i1 %54, label %55, label %174

55:                                               ; preds = %38
  %56 = load double, ptr %19, align 8, !tbaa !15
  %57 = fcmp oeq double %56, 0.000000e+00
  br i1 %57, label %58, label %118

58:                                               ; preds = %55
  %59 = load double, ptr %20, align 8, !tbaa !15
  %60 = fcmp oge double %59, 0.000000e+00
  br i1 %60, label %61, label %66

61:                                               ; preds = %58
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.doublecomplex, ptr %62, i32 0, i32 0
  store double 0.000000e+00, ptr %63, align 8, !tbaa !11
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.doublecomplex, ptr %64, i32 0, i32 1
  store double 0.000000e+00, ptr %65, align 8, !tbaa !14
  br label %117

66:                                               ; preds = %58
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.doublecomplex, ptr %67, i32 0, i32 0
  store double 2.000000e+00, ptr %68, align 8, !tbaa !11
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.doublecomplex, ptr %69, i32 0, i32 1
  store double 0.000000e+00, ptr %70, align 8, !tbaa !14
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = sub nsw i32 %72, 1
  store i32 %73, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %95, %66
  %75 = load i32, ptr %18, align 4, !tbaa !9
  %76 = load i32, ptr %11, align 4, !tbaa !9
  %77 = icmp sle i32 %75, %76
  br i1 %77, label %78, label %98

78:                                               ; preds = %74
  %79 = load i32, ptr %18, align 4, !tbaa !9
  %80 = sub nsw i32 %79, 1
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = load i32, ptr %81, align 4, !tbaa !9
  %83 = mul nsw i32 %80, %82
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %12, align 4, !tbaa !9
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = load i32, ptr %12, 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 0
  store double 0.000000e+00, ptr %89, align 8, !tbaa !11
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds %struct.doublecomplex, ptr %90, i64 %92
  %94 = getelementptr inbounds %struct.doublecomplex, ptr %93, i32 0, i32 1
  store double 0.000000e+00, ptr %94, align 8, !tbaa !14
  br label %95

95:                                               ; preds = %78
  %96 = load i32, ptr %18, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %18, align 4, !tbaa !9
  br label %74, !llvm.loop !16

98:                                               ; preds = %74
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.doublecomplex, ptr %99, i32 0, i32 0
  %101 = load double, ptr %100, align 8, !tbaa !11
  %102 = fneg double %101
  %103 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  store double %102, ptr %103, align 8, !tbaa !11
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.doublecomplex, ptr %104, i32 0, i32 1
  %106 = load double, ptr %105, align 8, !tbaa !14
  %107 = fneg double %106
  %108 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  store double %107, ptr %108, align 8, !tbaa !14
  %109 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  %110 = load double, ptr %109, align 8, !tbaa !11
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.doublecomplex, ptr %111, i32 0, i32 0
  store double %110, ptr %112, align 8, !tbaa !11
  %113 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  %114 = load double, ptr %113, align 8, !tbaa !14
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.doublecomplex, ptr %115, i32 0, i32 1
  store double %114, ptr %116, align 8, !tbaa !14
  br label %117

117:                                              ; preds = %98, %61
  br label %173

118:                                              ; preds = %55
  %119 = call double @dlapy2_(ptr noundef %20, ptr noundef %19)
  store double %119, ptr %22, align 8, !tbaa !15
  %120 = load double, ptr %20, align 8, !tbaa !15
  %121 = load double, ptr %22, align 8, !tbaa !15
  %122 = fdiv double %120, %121
  %123 = fsub double 1.000000e+00, %122
  store double %123, ptr %13, align 8, !tbaa !15
  %124 = load double, ptr %19, align 8, !tbaa !15
  %125 = fneg double %124
  %126 = load double, ptr %22, align 8, !tbaa !15
  %127 = fdiv double %125, %126
  store double %127, ptr %14, align 8, !tbaa !15
  %128 = load double, ptr %13, align 8, !tbaa !15
  %129 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  store double %128, ptr %129, align 8, !tbaa !11
  %130 = load double, ptr %14, align 8, !tbaa !15
  %131 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  store double %130, ptr %131, align 8, !tbaa !14
  %132 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  %133 = load double, ptr %132, align 8, !tbaa !11
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.doublecomplex, ptr %134, i32 0, i32 0
  store double %133, ptr %135, align 8, !tbaa !11
  %136 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  %137 = load double, ptr %136, align 8, !tbaa !14
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.doublecomplex, ptr %138, i32 0, i32 1
  store double %137, ptr %139, align 8, !tbaa !14
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = sub nsw i32 %141, 1
  store i32 %142, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %143

143:                                              ; preds = %164, %118
  %144 = load i32, ptr %18, align 4, !tbaa !9
  %145 = load i32, ptr %11, align 4, !tbaa !9
  %146 = icmp sle i32 %144, %145
  br i1 %146, label %147, label %167

147:                                              ; preds = %143
  %148 = load i32, ptr %18, align 4, !tbaa !9
  %149 = sub nsw i32 %148, 1
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = load i32, ptr %150, align 4, !tbaa !9
  %152 = mul nsw i32 %149, %151
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %12, align 4, !tbaa !9
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = load i32, ptr %12, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds %struct.doublecomplex, ptr %154, i64 %156
  %158 = getelementptr inbounds %struct.doublecomplex, ptr %157, i32 0, i32 0
  store double 0.000000e+00, ptr %158, align 8, !tbaa !11
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = load i32, ptr %12, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds %struct.doublecomplex, ptr %159, i64 %161
  %163 = getelementptr inbounds %struct.doublecomplex, ptr %162, i32 0, i32 1
  store double 0.000000e+00, ptr %163, align 8, !tbaa !14
  br label %164

164:                                              ; preds = %147
  %165 = load i32, ptr %18, align 4, !tbaa !9
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %18, align 4, !tbaa !9
  br label %143, !llvm.loop !18

167:                                              ; preds = %143
  %168 = load double, ptr %22, align 8, !tbaa !15
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.doublecomplex, ptr %169, i32 0, i32 0
  store double %168, ptr %170, align 8, !tbaa !11
  %171 = load ptr, ptr %7, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.doublecomplex, ptr %171, i32 0, i32 1
  store double 0.000000e+00, ptr %172, align 8, !tbaa !14
  br label %173

173:                                              ; preds = %167, %117
  br label %568

174:                                              ; preds = %38
  %175 = call double @dlapy3_(ptr noundef %20, ptr noundef %19, ptr noundef %22)
  store double %175, ptr %13, align 8, !tbaa !15
  %176 = load double, ptr %20, align 8, !tbaa !15
  %177 = fcmp oge double %176, 0.000000e+00
  br i1 %177, label %178, label %188

178:                                              ; preds = %174
  %179 = load double, ptr %13, align 8, !tbaa !15
  %180 = fcmp oge double %179, 0.000000e+00
  br i1 %180, label %181, label %183

181:                                              ; preds = %178
  %182 = load double, ptr %13, align 8, !tbaa !15
  br label %186

183:                                              ; preds = %178
  %184 = load double, ptr %13, align 8, !tbaa !15
  %185 = fneg double %184
  br label %186

186:                                              ; preds = %183, %181
  %187 = phi double [ %182, %181 ], [ %185, %183 ]
  br label %199

188:                                              ; preds = %174
  %189 = load double, ptr %13, align 8, !tbaa !15
  %190 = fcmp oge double %189, 0.000000e+00
  br i1 %190, label %191, label %193

191:                                              ; preds = %188
  %192 = load double, ptr %13, align 8, !tbaa !15
  br label %196

193:                                              ; preds = %188
  %194 = load double, ptr %13, align 8, !tbaa !15
  %195 = fneg double %194
  br label %196

196:                                              ; preds = %193, %191
  %197 = phi double [ %192, %191 ], [ %195, %193 ]
  %198 = fneg double %197
  br label %199

199:                                              ; preds = %196, %186
  %200 = phi double [ %187, %186 ], [ %198, %196 ]
  store double %200, ptr %17, align 8, !tbaa !15
  %201 = call double @dlamch_(ptr noundef @.str)
  %202 = call double @dlamch_(ptr noundef @.str.1)
  %203 = fdiv double %201, %202
  store double %203, ptr %24, align 8, !tbaa !15
  %204 = load double, ptr %24, align 8, !tbaa !15
  %205 = fdiv double 1.000000e+00, %204
  store double %205, ptr %23, align 8, !tbaa !15
  store i32 0, ptr %25, align 4, !tbaa !9
  %206 = load double, ptr %17, align 8, !tbaa !15
  %207 = fcmp oge double %206, 0.000000e+00
  br i1 %207, label %208, label %210

208:                                              ; preds = %199
  %209 = load double, ptr %17, align 8, !tbaa !15
  br label %213

210:                                              ; preds = %199
  %211 = load double, ptr %17, align 8, !tbaa !15
  %212 = fneg double %211
  br label %213

213:                                              ; preds = %210, %208
  %214 = phi double [ %209, %208 ], [ %212, %210 ]
  %215 = load double, ptr %24, align 8, !tbaa !15
  %216 = fcmp olt double %214, %215
  br i1 %216, label %217, label %297

217:                                              ; preds = %213
  br label %218

218:                                              ; preds = %250, %217
  %219 = load i32, ptr %25, align 4, !tbaa !9
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %25, align 4, !tbaa !9
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  %222 = load i32, ptr %221, align 4, !tbaa !9
  %223 = sub nsw i32 %222, 1
  store i32 %223, ptr %11, align 4, !tbaa !9
  %224 = load ptr, ptr %8, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.doublecomplex, ptr %224, i64 1
  %226 = load ptr, ptr %9, align 8, !tbaa !5
  call void @zdscal_(ptr noundef %11, ptr noundef %23, ptr noundef %225, ptr noundef %226)
  %227 = load double, ptr %23, align 8, !tbaa !15
  %228 = load double, ptr %17, align 8, !tbaa !15
  %229 = fmul double %228, %227
  store double %229, ptr %17, align 8, !tbaa !15
  %230 = load double, ptr %23, align 8, !tbaa !15
  %231 = load double, ptr %19, align 8, !tbaa !15
  %232 = fmul double %231, %230
  store double %232, ptr %19, align 8, !tbaa !15
  %233 = load double, ptr %23, align 8, !tbaa !15
  %234 = load double, ptr %20, align 8, !tbaa !15
  %235 = fmul double %234, %233
  store double %235, ptr %20, align 8, !tbaa !15
  %236 = load double, ptr %17, align 8, !tbaa !15
  %237 = fcmp oge double %236, 0.000000e+00
  br i1 %237, label %238, label %240

238:                                              ; preds = %218
  %239 = load double, ptr %17, align 8, !tbaa !15
  br label %243

240:                                              ; preds = %218
  %241 = load double, ptr %17, align 8, !tbaa !15
  %242 = fneg double %241
  br label %243

243:                                              ; preds = %240, %238
  %244 = phi double [ %239, %238 ], [ %242, %240 ]
  %245 = load double, ptr %24, align 8, !tbaa !15
  %246 = fcmp olt double %244, %245
  br i1 %246, label %247, label %251

247:                                              ; preds = %243
  %248 = load i32, ptr %25, align 4, !tbaa !9
  %249 = icmp slt i32 %248, 20
  br i1 %249, label %250, label %251

250:                                              ; preds = %247
  br label %218

251:                                              ; preds = %247, %243
  %252 = load ptr, ptr %6, align 8, !tbaa !5
  %253 = load i32, ptr %252, align 4, !tbaa !9
  %254 = sub nsw i32 %253, 1
  store i32 %254, ptr %11, align 4, !tbaa !9
  %255 = load ptr, ptr %8, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.doublecomplex, ptr %255, i64 1
  %257 = load ptr, ptr %9, align 8, !tbaa !5
  %258 = call double @dznrm2_(ptr noundef %11, ptr noundef %256, ptr noundef %257)
  store double %258, ptr %22, align 8, !tbaa !15
  %259 = load double, ptr %20, align 8, !tbaa !15
  %260 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  store double %259, ptr %260, align 8, !tbaa !11
  %261 = load double, ptr %19, align 8, !tbaa !15
  %262 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  store double %261, ptr %262, align 8, !tbaa !14
  %263 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  %264 = load double, ptr %263, align 8, !tbaa !11
  %265 = load ptr, ptr %7, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.doublecomplex, ptr %265, i32 0, i32 0
  store double %264, ptr %266, align 8, !tbaa !11
  %267 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  %268 = load double, ptr %267, align 8, !tbaa !14
  %269 = load ptr, ptr %7, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.doublecomplex, ptr %269, i32 0, i32 1
  store double %268, ptr %270, align 8, !tbaa !14
  %271 = call double @dlapy3_(ptr noundef %20, ptr noundef %19, ptr noundef %22)
  store double %271, ptr %13, align 8, !tbaa !15
  %272 = load double, ptr %20, align 8, !tbaa !15
  %273 = fcmp oge double %272, 0.000000e+00
  br i1 %273, label %274, label %284

274:                                              ; preds = %251
  %275 = load double, ptr %13, align 8, !tbaa !15
  %276 = fcmp oge double %275, 0.000000e+00
  br i1 %276, label %277, label %279

277:                                              ; preds = %274
  %278 = load double, ptr %13, align 8, !tbaa !15
  br label %282

279:                                              ; preds = %274
  %280 = load double, ptr %13, align 8, !tbaa !15
  %281 = fneg double %280
  br label %282

282:                                              ; preds = %279, %277
  %283 = phi double [ %278, %277 ], [ %281, %279 ]
  br label %295

284:                                              ; preds = %251
  %285 = load double, ptr %13, align 8, !tbaa !15
  %286 = fcmp oge double %285, 0.000000e+00
  br i1 %286, label %287, label %289

287:                                              ; preds = %284
  %288 = load double, ptr %13, align 8, !tbaa !15
  br label %292

289:                                              ; preds = %284
  %290 = load double, ptr %13, align 8, !tbaa !15
  %291 = fneg double %290
  br label %292

292:                                              ; preds = %289, %287
  %293 = phi double [ %288, %287 ], [ %291, %289 ]
  %294 = fneg double %293
  br label %295

295:                                              ; preds = %292, %282
  %296 = phi double [ %283, %282 ], [ %294, %292 ]
  store double %296, ptr %17, align 8, !tbaa !15
  br label %297

297:                                              ; preds = %295, %213
  %298 = load ptr, ptr %7, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.doublecomplex, ptr %298, i32 0, i32 0
  %300 = load double, ptr %299, align 8, !tbaa !11
  %301 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 0
  store double %300, ptr %301, align 8, !tbaa !11
  %302 = load ptr, ptr %7, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.doublecomplex, ptr %302, i32 0, i32 1
  %304 = load double, ptr %303, align 8, !tbaa !14
  %305 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 1
  store double %304, ptr %305, align 8, !tbaa !14
  %306 = load ptr, ptr %7, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.doublecomplex, ptr %306, i32 0, i32 0
  %308 = load double, ptr %307, align 8, !tbaa !11
  %309 = load double, ptr %17, align 8, !tbaa !15
  %310 = fadd double %308, %309
  %311 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  store double %310, ptr %311, align 8, !tbaa !11
  %312 = load ptr, ptr %7, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.doublecomplex, ptr %312, i32 0, i32 1
  %314 = load double, ptr %313, align 8, !tbaa !14
  %315 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  store double %314, ptr %315, align 8, !tbaa !14
  %316 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  %317 = load double, ptr %316, align 8, !tbaa !11
  %318 = load ptr, ptr %7, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.doublecomplex, ptr %318, i32 0, i32 0
  store double %317, ptr %319, align 8, !tbaa !11
  %320 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  %321 = load double, ptr %320, align 8, !tbaa !14
  %322 = load ptr, ptr %7, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.doublecomplex, ptr %322, i32 0, i32 1
  store double %321, ptr %323, align 8, !tbaa !14
  %324 = load double, ptr %17, align 8, !tbaa !15
  %325 = fcmp olt double %324, 0.000000e+00
  br i1 %325, label %326, label %357

326:                                              ; preds = %297
  %327 = load double, ptr %17, align 8, !tbaa !15
  %328 = fneg double %327
  store double %328, ptr %17, align 8, !tbaa !15
  %329 = load ptr, ptr %7, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.doublecomplex, ptr %329, i32 0, i32 0
  %331 = load double, ptr %330, align 8, !tbaa !11
  %332 = fneg double %331
  %333 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  store double %332, ptr %333, align 8, !tbaa !11
  %334 = load ptr, ptr %7, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.doublecomplex, ptr %334, i32 0, i32 1
  %336 = load double, ptr %335, align 8, !tbaa !14
  %337 = fneg double %336
  %338 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  store double %337, ptr %338, align 8, !tbaa !14
  %339 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 0
  %340 = load double, ptr %339, align 8, !tbaa !11
  %341 = load double, ptr %17, align 8, !tbaa !15
  %342 = fdiv double %340, %341
  %343 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  store double %342, ptr %343, align 8, !tbaa !11
  %344 = getelementptr inbounds %struct.doublecomplex, ptr %16, i32 0, i32 1
  %345 = load double, ptr %344, align 8, !tbaa !14
  %346 = load double, ptr %17, align 8, !tbaa !15
  %347 = fdiv double %345, %346
  %348 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  store double %347, ptr %348, align 8, !tbaa !14
  %349 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  %350 = load double, ptr %349, align 8, !tbaa !11
  %351 = load ptr, ptr %10, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.doublecomplex, ptr %351, i32 0, i32 0
  store double %350, ptr %352, align 8, !tbaa !11
  %353 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  %354 = load double, ptr %353, align 8, !tbaa !14
  %355 = load ptr, ptr %10, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.doublecomplex, ptr %355, i32 0, i32 1
  store double %354, ptr %356, align 8, !tbaa !14
  br label %406

357:                                              ; preds = %297
  %358 = load double, ptr %19, align 8, !tbaa !15
  %359 = load double, ptr %19, align 8, !tbaa !15
  %360 = load ptr, ptr %7, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.doublecomplex, ptr %360, i32 0, i32 0
  %362 = load double, ptr %361, align 8, !tbaa !11
  %363 = fdiv double %359, %362
  %364 = fmul double %358, %363
  store double %364, ptr %20, align 8, !tbaa !15
  %365 = load double, ptr %22, align 8, !tbaa !15
  %366 = load double, ptr %22, align 8, !tbaa !15
  %367 = load ptr, ptr %7, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.doublecomplex, ptr %367, i32 0, i32 0
  %369 = load double, ptr %368, align 8, !tbaa !11
  %370 = fdiv double %366, %369
  %371 = load double, ptr %20, align 8, !tbaa !15
  %372 = call double @llvm.fmuladd.f64(double %365, double %370, double %371)
  store double %372, ptr %20, align 8, !tbaa !15
  %373 = load double, ptr %20, align 8, !tbaa !15
  %374 = load double, ptr %17, align 8, !tbaa !15
  %375 = fdiv double %373, %374
  store double %375, ptr %13, align 8, !tbaa !15
  %376 = load double, ptr %19, align 8, !tbaa !15
  %377 = fneg double %376
  %378 = load double, ptr %17, align 8, !tbaa !15
  %379 = fdiv double %377, %378
  store double %379, ptr %14, align 8, !tbaa !15
  %380 = load double, ptr %13, align 8, !tbaa !15
  %381 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  store double %380, ptr %381, align 8, !tbaa !11
  %382 = load double, ptr %14, align 8, !tbaa !15
  %383 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  store double %382, ptr %383, align 8, !tbaa !14
  %384 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  %385 = load double, ptr %384, align 8, !tbaa !11
  %386 = load ptr, ptr %10, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.doublecomplex, ptr %386, i32 0, i32 0
  store double %385, ptr %387, align 8, !tbaa !11
  %388 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  %389 = load double, ptr %388, align 8, !tbaa !14
  %390 = load ptr, ptr %10, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.doublecomplex, ptr %390, i32 0, i32 1
  store double %389, ptr %391, align 8, !tbaa !14
  %392 = load double, ptr %20, align 8, !tbaa !15
  %393 = fneg double %392
  store double %393, ptr %13, align 8, !tbaa !15
  %394 = load double, ptr %13, align 8, !tbaa !15
  %395 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  store double %394, ptr %395, align 8, !tbaa !11
  %396 = load double, ptr %19, align 8, !tbaa !15
  %397 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  store double %396, ptr %397, align 8, !tbaa !14
  %398 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  %399 = load double, ptr %398, align 8, !tbaa !11
  %400 = load ptr, ptr %7, align 8, !tbaa !5
  %401 = getelementptr inbounds %struct.doublecomplex, ptr %400, i32 0, i32 0
  store double %399, ptr %401, align 8, !tbaa !11
  %402 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  %403 = load double, ptr %402, align 8, !tbaa !14
  %404 = load ptr, ptr %7, align 8, !tbaa !5
  %405 = getelementptr inbounds %struct.doublecomplex, ptr %404, i32 0, i32 1
  store double %403, ptr %405, align 8, !tbaa !14
  br label %406

406:                                              ; preds = %357, %326
  %407 = load ptr, ptr %7, align 8, !tbaa !5
  call void @zladiv_(ptr noundef %15, ptr noundef @c_b5, ptr noundef %407)
  %408 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  %409 = load double, ptr %408, align 8, !tbaa !11
  %410 = load ptr, ptr %7, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.doublecomplex, ptr %410, i32 0, i32 0
  store double %409, ptr %411, align 8, !tbaa !11
  %412 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  %413 = load double, ptr %412, align 8, !tbaa !14
  %414 = load ptr, ptr %7, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.doublecomplex, ptr %414, i32 0, i32 1
  store double %413, ptr %415, align 8, !tbaa !14
  %416 = load ptr, ptr %10, align 8, !tbaa !5
  %417 = call { double, double } @Cd(ptr noundef %416)
  %418 = extractvalue { double, double } %417, 0
  %419 = extractvalue { double, double } %417, 1
  %420 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %421 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  store double %418, ptr %420, align 8
  store double %419, ptr %421, align 8
  %422 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %423 = load double, ptr %422, align 8
  %424 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %425 = load double, ptr %424, align 8
  %426 = call double @cabs(double noundef %423, double noundef %425) #6
  %427 = load double, ptr %24, align 8, !tbaa !15
  %428 = fcmp ole double %426, %427
  br i1 %428, label %429, label %541

429:                                              ; preds = %406
  %430 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 0
  %431 = load double, ptr %430, align 8, !tbaa !11
  store double %431, ptr %20, align 8, !tbaa !15
  %432 = call { double, double } @Cd(ptr noundef %21)
  %433 = extractvalue { double, double } %432, 0
  %434 = extractvalue { double, double } %432, 1
  store double %434, ptr %19, align 8, !tbaa !15
  %435 = load double, ptr %19, align 8, !tbaa !15
  %436 = fcmp oeq double %435, 0.000000e+00
  br i1 %436, label %437, label %489

437:                                              ; preds = %429
  %438 = load double, ptr %20, align 8, !tbaa !15
  %439 = fcmp oge double %438, 0.000000e+00
  br i1 %439, label %440, label %445

440:                                              ; preds = %437
  %441 = load ptr, ptr %10, align 8, !tbaa !5
  %442 = getelementptr inbounds %struct.doublecomplex, ptr %441, i32 0, i32 0
  store double 0.000000e+00, ptr %442, align 8, !tbaa !11
  %443 = load ptr, ptr %10, align 8, !tbaa !5
  %444 = getelementptr inbounds %struct.doublecomplex, ptr %443, i32 0, i32 1
  store double 0.000000e+00, ptr %444, align 8, !tbaa !14
  br label %488

445:                                              ; preds = %437
  %446 = load ptr, ptr %10, align 8, !tbaa !5
  %447 = getelementptr inbounds %struct.doublecomplex, ptr %446, i32 0, i32 0
  store double 2.000000e+00, ptr %447, align 8, !tbaa !11
  %448 = load ptr, ptr %10, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.doublecomplex, ptr %448, i32 0, i32 1
  store double 0.000000e+00, ptr %449, align 8, !tbaa !14
  %450 = load ptr, ptr %6, align 8, !tbaa !5
  %451 = load i32, ptr %450, align 4, !tbaa !9
  %452 = sub nsw i32 %451, 1
  store i32 %452, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %453

453:                                              ; preds = %474, %445
  %454 = load i32, ptr %18, align 4, !tbaa !9
  %455 = load i32, ptr %11, align 4, !tbaa !9
  %456 = icmp sle i32 %454, %455
  br i1 %456, label %457, label %477

457:                                              ; preds = %453
  %458 = load i32, ptr %18, align 4, !tbaa !9
  %459 = sub nsw i32 %458, 1
  %460 = load ptr, ptr %9, align 8, !tbaa !5
  %461 = load i32, ptr %460, align 4, !tbaa !9
  %462 = mul nsw i32 %459, %461
  %463 = add nsw i32 %462, 1
  store i32 %463, ptr %12, align 4, !tbaa !9
  %464 = load ptr, ptr %8, align 8, !tbaa !5
  %465 = load i32, ptr %12, align 4, !tbaa !9
  %466 = sext i32 %465 to i64
  %467 = getelementptr inbounds %struct.doublecomplex, ptr %464, i64 %466
  %468 = getelementptr inbounds %struct.doublecomplex, ptr %467, i32 0, i32 0
  store double 0.000000e+00, ptr %468, align 8, !tbaa !11
  %469 = load ptr, ptr %8, align 8, !tbaa !5
  %470 = load i32, ptr %12, align 4, !tbaa !9
  %471 = sext i32 %470 to i64
  %472 = getelementptr inbounds %struct.doublecomplex, ptr %469, i64 %471
  %473 = getelementptr inbounds %struct.doublecomplex, ptr %472, i32 0, i32 1
  store double 0.000000e+00, ptr %473, align 8, !tbaa !14
  br label %474

474:                                              ; preds = %457
  %475 = load i32, ptr %18, align 4, !tbaa !9
  %476 = add nsw i32 %475, 1
  store i32 %476, ptr %18, align 4, !tbaa !9
  br label %453, !llvm.loop !19

477:                                              ; preds = %453
  %478 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 0
  %479 = load double, ptr %478, align 8, !tbaa !11
  %480 = fneg double %479
  %481 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  store double %480, ptr %481, align 8, !tbaa !11
  %482 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 1
  %483 = load double, ptr %482, align 8, !tbaa !14
  %484 = fneg double %483
  %485 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  store double %484, ptr %485, align 8, !tbaa !14
  %486 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  %487 = load double, ptr %486, align 8, !tbaa !11
  store double %487, ptr %17, align 8, !tbaa !15
  br label %488

488:                                              ; preds = %477, %440
  br label %540

489:                                              ; preds = %429
  %490 = call double @dlapy2_(ptr noundef %20, ptr noundef %19)
  store double %490, ptr %22, align 8, !tbaa !15
  %491 = load double, ptr %20, align 8, !tbaa !15
  %492 = load double, ptr %22, align 8, !tbaa !15
  %493 = fdiv double %491, %492
  %494 = fsub double 1.000000e+00, %493
  store double %494, ptr %13, align 8, !tbaa !15
  %495 = load double, ptr %19, align 8, !tbaa !15
  %496 = fneg double %495
  %497 = load double, ptr %22, align 8, !tbaa !15
  %498 = fdiv double %496, %497
  store double %498, ptr %14, align 8, !tbaa !15
  %499 = load double, ptr %13, align 8, !tbaa !15
  %500 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  store double %499, ptr %500, align 8, !tbaa !11
  %501 = load double, ptr %14, align 8, !tbaa !15
  %502 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  store double %501, ptr %502, align 8, !tbaa !14
  %503 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 0
  %504 = load double, ptr %503, align 8, !tbaa !11
  %505 = load ptr, ptr %10, align 8, !tbaa !5
  %506 = getelementptr inbounds %struct.doublecomplex, ptr %505, i32 0, i32 0
  store double %504, ptr %506, align 8, !tbaa !11
  %507 = getelementptr inbounds %struct.doublecomplex, ptr %15, i32 0, i32 1
  %508 = load double, ptr %507, align 8, !tbaa !14
  %509 = load ptr, ptr %10, align 8, !tbaa !5
  %510 = getelementptr inbounds %struct.doublecomplex, ptr %509, i32 0, i32 1
  store double %508, ptr %510, align 8, !tbaa !14
  %511 = load ptr, ptr %6, align 8, !tbaa !5
  %512 = load i32, ptr %511, align 4, !tbaa !9
  %513 = sub nsw i32 %512, 1
  store i32 %513, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %514

514:                                              ; preds = %535, %489
  %515 = load i32, ptr %18, align 4, !tbaa !9
  %516 = load i32, ptr %11, align 4, !tbaa !9
  %517 = icmp sle i32 %515, %516
  br i1 %517, label %518, label %538

518:                                              ; preds = %514
  %519 = load i32, ptr %18, align 4, !tbaa !9
  %520 = sub nsw i32 %519, 1
  %521 = load ptr, ptr %9, align 8, !tbaa !5
  %522 = load i32, ptr %521, align 4, !tbaa !9
  %523 = mul nsw i32 %520, %522
  %524 = add nsw i32 %523, 1
  store i32 %524, ptr %12, align 4, !tbaa !9
  %525 = load ptr, ptr %8, align 8, !tbaa !5
  %526 = load i32, ptr %12, align 4, !tbaa !9
  %527 = sext i32 %526 to i64
  %528 = getelementptr inbounds %struct.doublecomplex, ptr %525, i64 %527
  %529 = getelementptr inbounds %struct.doublecomplex, ptr %528, i32 0, i32 0
  store double 0.000000e+00, ptr %529, align 8, !tbaa !11
  %530 = load ptr, ptr %8, align 8, !tbaa !5
  %531 = load i32, ptr %12, align 4, !tbaa !9
  %532 = sext i32 %531 to i64
  %533 = getelementptr inbounds %struct.doublecomplex, ptr %530, i64 %532
  %534 = getelementptr inbounds %struct.doublecomplex, ptr %533, i32 0, i32 1
  store double 0.000000e+00, ptr %534, align 8, !tbaa !14
  br label %535

535:                                              ; preds = %518
  %536 = load i32, ptr %18, align 4, !tbaa !9
  %537 = add nsw i32 %536, 1
  store i32 %537, ptr %18, align 4, !tbaa !9
  br label %514, !llvm.loop !20

538:                                              ; preds = %514
  %539 = load double, ptr %22, align 8, !tbaa !15
  store double %539, ptr %17, align 8, !tbaa !15
  br label %540

540:                                              ; preds = %538, %488
  br label %549

541:                                              ; preds = %406
  %542 = load ptr, ptr %6, align 8, !tbaa !5
  %543 = load i32, ptr %542, align 4, !tbaa !9
  %544 = sub nsw i32 %543, 1
  store i32 %544, ptr %11, align 4, !tbaa !9
  %545 = load ptr, ptr %7, align 8, !tbaa !5
  %546 = load ptr, ptr %8, align 8, !tbaa !5
  %547 = getelementptr inbounds %struct.doublecomplex, ptr %546, i64 1
  %548 = load ptr, ptr %9, align 8, !tbaa !5
  call void @zscal_(ptr noundef %11, ptr noundef %545, ptr noundef %547, ptr noundef %548)
  br label %549

549:                                              ; preds = %541, %540
  %550 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %550, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %551

551:                                              ; preds = %559, %549
  %552 = load i32, ptr %18, align 4, !tbaa !9
  %553 = load i32, ptr %11, align 4, !tbaa !9
  %554 = icmp sle i32 %552, %553
  br i1 %554, label %555, label %562

555:                                              ; preds = %551
  %556 = load double, ptr %24, align 8, !tbaa !15
  %557 = load double, ptr %17, align 8, !tbaa !15
  %558 = fmul double %557, %556
  store double %558, ptr %17, align 8, !tbaa !15
  br label %559

559:                                              ; preds = %555
  %560 = load i32, ptr %18, align 4, !tbaa !9
  %561 = add nsw i32 %560, 1
  store i32 %561, ptr %18, align 4, !tbaa !9
  br label %551, !llvm.loop !21

562:                                              ; preds = %551
  %563 = load double, ptr %17, align 8, !tbaa !15
  %564 = load ptr, ptr %7, align 8, !tbaa !5
  %565 = getelementptr inbounds %struct.doublecomplex, ptr %564, i32 0, i32 0
  store double %563, ptr %565, align 8, !tbaa !11
  %566 = load ptr, ptr %7, align 8, !tbaa !5
  %567 = getelementptr inbounds %struct.doublecomplex, ptr %566, i32 0, i32 1
  store double 0.000000e+00, ptr %567, align 8, !tbaa !14
  br label %568

568:                                              ; preds = %562, %173
  store i32 1, ptr %26, align 4
  br label %569

569:                                              ; preds = %568, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  ret void
}

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

declare double @dznrm2_(ptr noundef, ptr noundef, ptr noundef) #2

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

declare double @dlapy2_(ptr noundef, ptr noundef) #2

declare double @dlapy3_(ptr noundef, ptr noundef, ptr noundef) #2

declare double @dlamch_(ptr noundef) #2

declare void @zdscal_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare void @zladiv_(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare double @cabs(double noundef, double noundef) #5

declare void @zscal_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; 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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 8}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!13, !13, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}


; 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 [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@c_b5 = external hidden global %struct.doublecomplex, align 8

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

15:                                               ; preds = %5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  br label %225

16:                                               ; preds = %5
  %17 = add nsw i32 %13, -1
  store i32 %17, ptr %6, align 4, !tbaa !5
  %18 = call double @dznrm2_(ptr noundef nonnull %6, ptr noundef %2, ptr noundef %3) #7
  store double %18, ptr %11, align 8, !tbaa !9
  %19 = load double, ptr %1, align 8, !tbaa !11
  store double %19, ptr %9, align 8, !tbaa !9
  %20 = call { double, double } @Cd(ptr noundef nonnull %1)
  %21 = extractvalue { double, double } %20, 1
  store double %21, ptr %8, align 8, !tbaa !9
  %22 = load double, ptr %11, align 8, !tbaa !9
  %23 = fcmp oeq double %22, 0.000000e+00
  br i1 %23, label %24, label %75

24:                                               ; preds = %16
  %25 = fcmp oeq double %21, 0.000000e+00
  br i1 %25, label %26, label %49

26:                                               ; preds = %24
  %27 = load double, ptr %9, align 8, !tbaa !9
  %28 = fcmp ult double %27, 0.000000e+00
  br i1 %28, label %30, label %29

29:                                               ; preds = %26
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  br label %225

30:                                               ; preds = %26
  store <2 x double> <double 2.000000e+00, double 0.000000e+00>, ptr %4, align 8, !tbaa !9
  %31 = load i32, ptr %0, align 4, !tbaa !5
  %.not155.not172 = icmp sgt i32 %31, 1
  br i1 %.not155.not172, label %.lr.ph175, label %._crit_edge176

.lr.ph175:                                        ; preds = %30
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %wide.trip.count193 = zext nneg i32 %31 to i64
  %34 = add nsw i64 %wide.trip.count193, -1
  %35 = add nsw i64 %wide.trip.count193, -2
  %xtraiter224 = and i64 %34, 3
  %36 = icmp ult i64 %35, 3
  br i1 %36, label %._crit_edge176.loopexit.unr-lcssa, label %.lr.ph175.new

.lr.ph175.new:                                    ; preds = %.lr.ph175
  %unroll_iter227 = and i64 %34, -4
  br label %37

37:                                               ; preds = %37, %.lr.ph175.new
  %indvars.iv190 = phi i64 [ 1, %.lr.ph175.new ], [ %indvars.iv.next191.3, %37 ]
  %niter228 = phi i64 [ 0, %.lr.ph175.new ], [ %niter228.next.3, %37 ]
  %38 = add nsw i64 %indvars.iv190, -1
  %39 = mul nsw i64 %38, %33
  %gep202 = getelementptr %struct.doublecomplex, ptr %2, i64 %39
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep202, i8 0, i64 16, i1 false)
  %40 = mul nsw i64 %indvars.iv190, %33
  %gep202.1 = getelementptr %struct.doublecomplex, ptr %2, i64 %40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep202.1, i8 0, i64 16, i1 false)
  %41 = add nuw nsw i64 %indvars.iv190, 1
  %42 = mul nsw i64 %41, %33
  %gep202.2 = getelementptr %struct.doublecomplex, ptr %2, i64 %42
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep202.2, i8 0, i64 16, i1 false)
  %43 = add nuw nsw i64 %indvars.iv190, 2
  %44 = mul nsw i64 %43, %33
  %gep202.3 = getelementptr %struct.doublecomplex, ptr %2, i64 %44
  %indvars.iv.next191.3 = add nuw nsw i64 %indvars.iv190, 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep202.3, i8 0, i64 16, i1 false)
  %niter228.next.3 = add i64 %niter228, 4
  %niter228.ncmp.3 = icmp eq i64 %niter228.next.3, %unroll_iter227
  br i1 %niter228.ncmp.3, label %._crit_edge176.loopexit.unr-lcssa, label %37, !llvm.loop !13

._crit_edge176.loopexit.unr-lcssa:                ; preds = %37, %.lr.ph175
  %indvars.iv190.unr = phi i64 [ 1, %.lr.ph175 ], [ %indvars.iv.next191.3, %37 ]
  %lcmp.mod226.not = icmp eq i64 %xtraiter224, 0
  br i1 %lcmp.mod226.not, label %._crit_edge176, label %.epil.preheader223

.epil.preheader223:                               ; preds = %._crit_edge176.loopexit.unr-lcssa, %.epil.preheader223
  %indvars.iv190.epil = phi i64 [ %indvars.iv.next191.epil, %.epil.preheader223 ], [ %indvars.iv190.unr, %._crit_edge176.loopexit.unr-lcssa ]
  %epil.iter225 = phi i64 [ %epil.iter225.next, %.epil.preheader223 ], [ 0, %._crit_edge176.loopexit.unr-lcssa ]
  %45 = add nsw i64 %indvars.iv190.epil, -1
  %46 = mul nsw i64 %45, %33
  %gep202.epil = getelementptr %struct.doublecomplex, ptr %2, i64 %46
  %indvars.iv.next191.epil = add nuw nsw i64 %indvars.iv190.epil, 1
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep202.epil, i8 0, i64 16, i1 false)
  %epil.iter225.next = add i64 %epil.iter225, 1
  %epil.iter225.cmp.not = icmp eq i64 %epil.iter225.next, %xtraiter224
  br i1 %epil.iter225.cmp.not, label %._crit_edge176, label %.epil.preheader223, !llvm.loop !15

._crit_edge176:                                   ; preds = %._crit_edge176.loopexit.unr-lcssa, %.epil.preheader223, %30
  %47 = load <2 x double>, ptr %1, align 8, !tbaa !9
  %48 = fneg <2 x double> %47
  store <2 x double> %48, ptr %1, align 8, !tbaa !9
  br label %225

49:                                               ; preds = %24
  %50 = call double @dlapy2_(ptr noundef nonnull %9, ptr noundef nonnull %8) #7
  %51 = load double, ptr %9, align 8, !tbaa !9
  %52 = fdiv double %51, %50
  %53 = fsub double 1.000000e+00, %52
  %54 = load double, ptr %8, align 8, !tbaa !9
  %55 = fneg double %54
  %56 = fdiv double %55, %50
  store double %53, ptr %4, align 8, !tbaa !11
  %57 = getelementptr inbounds i8, ptr %4, i64 8
  store double %56, ptr %57, align 8, !tbaa !17
  %58 = load i32, ptr %0, align 4, !tbaa !5
  %.not154.not167 = icmp sgt i32 %58, 1
  br i1 %.not154.not167, label %.lr.ph170, label %._crit_edge171

.lr.ph170:                                        ; preds = %49
  %59 = load i32, ptr %3, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %wide.trip.count188 = zext nneg i32 %58 to i64
  %61 = add nsw i64 %wide.trip.count188, -1
  %62 = add nsw i64 %wide.trip.count188, -2
  %xtraiter218 = and i64 %61, 3
  %63 = icmp ult i64 %62, 3
  br i1 %63, label %._crit_edge171.loopexit.unr-lcssa, label %.lr.ph170.new

.lr.ph170.new:                                    ; preds = %.lr.ph170
  %unroll_iter221 = and i64 %61, -4
  br label %64

64:                                               ; preds = %64, %.lr.ph170.new
  %indvars.iv185 = phi i64 [ 1, %.lr.ph170.new ], [ %indvars.iv.next186.3, %64 ]
  %niter222 = phi i64 [ 0, %.lr.ph170.new ], [ %niter222.next.3, %64 ]
  %65 = add nsw i64 %indvars.iv185, -1
  %66 = mul nsw i64 %65, %60
  %gep200 = getelementptr %struct.doublecomplex, ptr %2, i64 %66
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep200, i8 0, i64 16, i1 false)
  %67 = mul nsw i64 %indvars.iv185, %60
  %gep200.1 = getelementptr %struct.doublecomplex, ptr %2, i64 %67
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep200.1, i8 0, i64 16, i1 false)
  %68 = add nuw nsw i64 %indvars.iv185, 1
  %69 = mul nsw i64 %68, %60
  %gep200.2 = getelementptr %struct.doublecomplex, ptr %2, i64 %69
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep200.2, i8 0, i64 16, i1 false)
  %70 = add nuw nsw i64 %indvars.iv185, 2
  %71 = mul nsw i64 %70, %60
  %gep200.3 = getelementptr %struct.doublecomplex, ptr %2, i64 %71
  %indvars.iv.next186.3 = add nuw nsw i64 %indvars.iv185, 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep200.3, i8 0, i64 16, i1 false)
  %niter222.next.3 = add i64 %niter222, 4
  %niter222.ncmp.3 = icmp eq i64 %niter222.next.3, %unroll_iter221
  br i1 %niter222.ncmp.3, label %._crit_edge171.loopexit.unr-lcssa, label %64, !llvm.loop !18

._crit_edge171.loopexit.unr-lcssa:                ; preds = %64, %.lr.ph170
  %indvars.iv185.unr = phi i64 [ 1, %.lr.ph170 ], [ %indvars.iv.next186.3, %64 ]
  %lcmp.mod220.not = icmp eq i64 %xtraiter218, 0
  br i1 %lcmp.mod220.not, label %._crit_edge171, label %.epil.preheader217

.epil.preheader217:                               ; preds = %._crit_edge171.loopexit.unr-lcssa, %.epil.preheader217
  %indvars.iv185.epil = phi i64 [ %indvars.iv.next186.epil, %.epil.preheader217 ], [ %indvars.iv185.unr, %._crit_edge171.loopexit.unr-lcssa ]
  %epil.iter219 = phi i64 [ %epil.iter219.next, %.epil.preheader217 ], [ 0, %._crit_edge171.loopexit.unr-lcssa ]
  %72 = add nsw i64 %indvars.iv185.epil, -1
  %73 = mul nsw i64 %72, %60
  %gep200.epil = getelementptr %struct.doublecomplex, ptr %2, i64 %73
  %indvars.iv.next186.epil = add nuw nsw i64 %indvars.iv185.epil, 1
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep200.epil, i8 0, i64 16, i1 false)
  %epil.iter219.next = add i64 %epil.iter219, 1
  %epil.iter219.cmp.not = icmp eq i64 %epil.iter219.next, %xtraiter218
  br i1 %epil.iter219.cmp.not, label %._crit_edge171, label %.epil.preheader217, !llvm.loop !19

._crit_edge171:                                   ; preds = %._crit_edge171.loopexit.unr-lcssa, %.epil.preheader217, %49
  store double %50, ptr %1, align 8, !tbaa !11
  %74 = getelementptr inbounds i8, ptr %1, i64 8
  store double 0.000000e+00, ptr %74, align 8, !tbaa !17
  br label %225

75:                                               ; preds = %16
  %76 = call double @dlapy3_(ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef nonnull %11) #7
  %77 = load double, ptr %9, align 8, !tbaa !9
  %78 = fcmp ult double %77, 0.000000e+00
  %79 = fcmp oge double %76, 0.000000e+00
  %.neg = fneg double %76
  br i1 %78, label %82, label %80

80:                                               ; preds = %75
  %81 = select i1 %79, double %76, double %.neg
  br label %84

82:                                               ; preds = %75
  %83 = select i1 %79, double %.neg, double %76
  br label %84

84:                                               ; preds = %82, %80
  %85 = phi double [ %81, %80 ], [ %83, %82 ]
  %86 = call double @dlamch_(ptr noundef nonnull @.str) #7
  %87 = call double @dlamch_(ptr noundef nonnull @.str.1) #7
  %88 = fdiv double %86, %87
  %89 = fdiv double 1.000000e+00, %88
  store double %89, ptr %12, align 8, !tbaa !9
  %90 = fcmp oge double %85, 0.000000e+00
  %91 = fneg double %85
  %92 = select i1 %90, double %85, double %91
  %93 = fcmp olt double %92, %88
  br i1 %93, label %.preheader, label %124

.preheader:                                       ; preds = %84, %.preheader
  %.0145 = phi double [ %98, %.preheader ], [ %85, %84 ]
  %.0 = phi i32 [ %94, %.preheader ], [ 0, %84 ]
  %94 = add nuw nsw i32 %.0, 1
  %95 = load i32, ptr %0, align 4, !tbaa !5
  %96 = add nsw i32 %95, -1
  store i32 %96, ptr %6, align 4, !tbaa !5
  call void @zdscal_(ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef %2, ptr noundef %3) #7
  %97 = load double, ptr %12, align 8, !tbaa !9
  %98 = fmul double %.0145, %97
  %99 = load double, ptr %8, align 8, !tbaa !9
  %100 = fmul double %97, %99
  store double %100, ptr %8, align 8, !tbaa !9
  %101 = load double, ptr %9, align 8, !tbaa !9
  %102 = fmul double %97, %101
  store double %102, ptr %9, align 8, !tbaa !9
  %103 = fcmp oge double %98, 0.000000e+00
  %104 = fneg double %98
  %105 = select i1 %103, double %98, double %104
  %106 = fcmp olt double %105, %88
  %107 = icmp ult i32 %.0, 19
  %or.cond = select i1 %106, i1 %107, i1 false
  br i1 %or.cond, label %.preheader, label %108

108:                                              ; preds = %.preheader
  %109 = load i32, ptr %0, align 4, !tbaa !5
  %110 = add nsw i32 %109, -1
  store i32 %110, ptr %6, align 4, !tbaa !5
  %111 = call double @dznrm2_(ptr noundef nonnull %6, ptr noundef %2, ptr noundef %3) #7
  store double %111, ptr %11, align 8, !tbaa !9
  %112 = load double, ptr %9, align 8, !tbaa !9
  store double %112, ptr %7, align 16, !tbaa !11
  %113 = load double, ptr %8, align 8, !tbaa !9
  %114 = getelementptr inbounds i8, ptr %7, i64 8
  store double %113, ptr %114, align 8, !tbaa !17
  store double %112, ptr %1, align 8, !tbaa !11
  %115 = getelementptr inbounds i8, ptr %1, i64 8
  store double %113, ptr %115, align 8, !tbaa !17
  %116 = call double @dlapy3_(ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef nonnull %11) #7
  %117 = load double, ptr %9, align 8, !tbaa !9
  %118 = fcmp ult double %117, 0.000000e+00
  %119 = fcmp oge double %116, 0.000000e+00
  %.neg151 = fneg double %116
  br i1 %118, label %122, label %120

120:                                              ; preds = %108
  %121 = select i1 %119, double %116, double %.neg151
  br label %124

122:                                              ; preds = %108
  %123 = select i1 %119, double %.neg151, double %116
  br label %124

124:                                              ; preds = %120, %122, %84
  %.1146 = phi double [ %85, %84 ], [ %121, %120 ], [ %123, %122 ]
  %.1 = phi i32 [ 0, %84 ], [ %94, %120 ], [ %94, %122 ]
  %125 = getelementptr inbounds i8, ptr %1, i64 8
  %126 = load <2 x double>, ptr %1, align 8, !tbaa !9
  store <2 x double> %126, ptr %10, align 16, !tbaa !9
  %127 = extractelement <2 x double> %126, i64 0
  %128 = fadd double %.1146, %127
  store double %128, ptr %1, align 8, !tbaa !11
  %129 = fcmp olt double %.1146, 0.000000e+00
  br i1 %129, label %130, label %136

130:                                              ; preds = %124
  %131 = fneg double %.1146
  %132 = insertelement <2 x double> %126, double %128, i64 0
  %133 = insertelement <2 x double> poison, double %.1146, i64 0
  %134 = shufflevector <2 x double> %133, <2 x double> poison, <2 x i32> zeroinitializer
  %135 = fdiv <2 x double> %132, %134
  store <2 x double> %135, ptr %4, align 8, !tbaa !9
  br label %152

136:                                              ; preds = %124
  %137 = load double, ptr %8, align 8, !tbaa !9
  %138 = fdiv double %137, %128
  %139 = fmul double %137, %138
  %140 = load double, ptr %11, align 8, !tbaa !9
  %141 = fdiv double %140, %128
  %142 = call double @llvm.fmuladd.f64(double %140, double %141, double %139)
  store double %142, ptr %9, align 8, !tbaa !9
  %143 = fneg double %137
  %144 = insertelement <2 x double> poison, double %142, i64 0
  %145 = insertelement <2 x double> %144, double %143, i64 1
  %146 = insertelement <2 x double> poison, double %.1146, i64 0
  %147 = shufflevector <2 x double> %146, <2 x double> poison, <2 x i32> zeroinitializer
  %148 = fdiv <2 x double> %145, %147
  store <2 x double> %148, ptr %4, align 8, !tbaa !9
  %149 = fneg double %142
  store double %149, ptr %1, align 8, !tbaa !11
  store double %137, ptr %125, align 8, !tbaa !17
  %150 = insertelement <2 x double> poison, double %149, i64 0
  %151 = insertelement <2 x double> %150, double %137, i64 1
  br label %152

152:                                              ; preds = %136, %130
  %.2147 = phi double [ %131, %130 ], [ %.1146, %136 ]
  %153 = phi <2 x double> [ %135, %130 ], [ %151, %136 ]
  store <2 x double> %153, ptr %7, align 16
  call void @zladiv_(ptr noundef nonnull %7, ptr noundef nonnull @c_b5, ptr noundef nonnull %1) #7
  %154 = load <2 x double>, ptr %7, align 16, !tbaa !9
  store <2 x double> %154, ptr %1, align 8, !tbaa !9
  %155 = call { double, double } @Cd(ptr noundef nonnull %4)
  %156 = extractvalue { double, double } %155, 0
  %157 = extractvalue { double, double } %155, 1
  %158 = call double @cabs(double noundef %156, double noundef %157) #7
  %159 = fcmp ugt double %158, %88
  br i1 %159, label %210, label %160

160:                                              ; preds = %152
  store double %127, ptr %9, align 8, !tbaa !9
  %161 = call { double, double } @Cd(ptr noundef nonnull %10)
  %162 = extractvalue { double, double } %161, 1
  store double %162, ptr %8, align 8, !tbaa !9
  %163 = fcmp oeq double %162, 0.000000e+00
  br i1 %163, label %164, label %187

164:                                              ; preds = %160
  %165 = load double, ptr %9, align 8, !tbaa !9
  %166 = fcmp ult double %165, 0.000000e+00
  br i1 %166, label %168, label %167

167:                                              ; preds = %164
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  br label %.loopexit

168:                                              ; preds = %164
  store <2 x double> <double 2.000000e+00, double 0.000000e+00>, ptr %4, align 8, !tbaa !9
  %169 = load i32, ptr %0, align 4, !tbaa !5
  %.not152.not158 = icmp sgt i32 %169, 1
  br i1 %.not152.not158, label %.lr.ph160, label %._crit_edge

.lr.ph160:                                        ; preds = %168
  %170 = load i32, ptr %3, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %wide.trip.count182 = zext nneg i32 %169 to i64
  %172 = add nsw i64 %wide.trip.count182, -1
  %173 = add nsw i64 %wide.trip.count182, -2
  %xtraiter206 = and i64 %172, 3
  %174 = icmp ult i64 %173, 3
  br i1 %174, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph160.new

.lr.ph160.new:                                    ; preds = %.lr.ph160
  %unroll_iter209 = and i64 %172, -4
  br label %175

175:                                              ; preds = %175, %.lr.ph160.new
  %indvars.iv179 = phi i64 [ 1, %.lr.ph160.new ], [ %indvars.iv.next180.3, %175 ]
  %niter210 = phi i64 [ 0, %.lr.ph160.new ], [ %niter210.next.3, %175 ]
  %176 = add nsw i64 %indvars.iv179, -1
  %177 = mul nsw i64 %176, %171
  %gep198 = getelementptr %struct.doublecomplex, ptr %2, i64 %177
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep198, i8 0, i64 16, i1 false)
  %178 = mul nsw i64 %indvars.iv179, %171
  %gep198.1 = getelementptr %struct.doublecomplex, ptr %2, i64 %178
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep198.1, i8 0, i64 16, i1 false)
  %179 = add nuw nsw i64 %indvars.iv179, 1
  %180 = mul nsw i64 %179, %171
  %gep198.2 = getelementptr %struct.doublecomplex, ptr %2, i64 %180
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep198.2, i8 0, i64 16, i1 false)
  %181 = add nuw nsw i64 %indvars.iv179, 2
  %182 = mul nsw i64 %181, %171
  %gep198.3 = getelementptr %struct.doublecomplex, ptr %2, i64 %182
  %indvars.iv.next180.3 = add nuw nsw i64 %indvars.iv179, 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep198.3, i8 0, i64 16, i1 false)
  %niter210.next.3 = add i64 %niter210, 4
  %niter210.ncmp.3 = icmp eq i64 %niter210.next.3, %unroll_iter209
  br i1 %niter210.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %175, !llvm.loop !20

._crit_edge.loopexit.unr-lcssa:                   ; preds = %175, %.lr.ph160
  %indvars.iv179.unr = phi i64 [ 1, %.lr.ph160 ], [ %indvars.iv.next180.3, %175 ]
  %lcmp.mod208.not = icmp eq i64 %xtraiter206, 0
  br i1 %lcmp.mod208.not, label %._crit_edge, label %.epil.preheader205

.epil.preheader205:                               ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader205
  %indvars.iv179.epil = phi i64 [ %indvars.iv.next180.epil, %.epil.preheader205 ], [ %indvars.iv179.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter207 = phi i64 [ %epil.iter207.next, %.epil.preheader205 ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %183 = add nsw i64 %indvars.iv179.epil, -1
  %184 = mul nsw i64 %183, %171
  %gep198.epil = getelementptr %struct.doublecomplex, ptr %2, i64 %184
  %indvars.iv.next180.epil = add nuw nsw i64 %indvars.iv179.epil, 1
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep198.epil, i8 0, i64 16, i1 false)
  %epil.iter207.next = add i64 %epil.iter207, 1
  %epil.iter207.cmp.not = icmp eq i64 %epil.iter207.next, %xtraiter206
  br i1 %epil.iter207.cmp.not, label %._crit_edge, label %.epil.preheader205, !llvm.loop !21

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader205, %168
  %185 = load double, ptr %10, align 16, !tbaa !11
  %186 = fneg double %185
  br label %.loopexit

187:                                              ; preds = %160
  %188 = call double @dlapy2_(ptr noundef nonnull %9, ptr noundef nonnull %8) #7
  %189 = load double, ptr %9, align 8, !tbaa !9
  %190 = fdiv double %189, %188
  %191 = fsub double 1.000000e+00, %190
  %192 = load double, ptr %8, align 8, !tbaa !9
  %193 = fneg double %192
  %194 = fdiv double %193, %188
  store double %191, ptr %4, align 8, !tbaa !11
  %195 = getelementptr inbounds i8, ptr %4, i64 8
  store double %194, ptr %195, align 8, !tbaa !17
  %196 = load i32, ptr %0, align 4, !tbaa !5
  %.not.not156 = icmp sgt i32 %196, 1
  br i1 %.not.not156, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %187
  %197 = load i32, ptr %3, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %wide.trip.count = zext nneg i32 %196 to i64
  %199 = add nsw i64 %wide.trip.count, -1
  %200 = add nsw i64 %wide.trip.count, -2
  %xtraiter = and i64 %199, 3
  %201 = icmp ult i64 %200, 3
  br i1 %201, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %199, -4
  br label %202

202:                                              ; preds = %202, %.lr.ph.new
  %indvars.iv = phi i64 [ 1, %.lr.ph.new ], [ %indvars.iv.next.3, %202 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %202 ]
  %203 = add nsw i64 %indvars.iv, -1
  %204 = mul nsw i64 %203, %198
  %gep = getelementptr %struct.doublecomplex, ptr %2, i64 %204
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep, i8 0, i64 16, i1 false)
  %205 = mul nsw i64 %indvars.iv, %198
  %gep.1 = getelementptr %struct.doublecomplex, ptr %2, i64 %205
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep.1, i8 0, i64 16, i1 false)
  %206 = add nuw nsw i64 %indvars.iv, 1
  %207 = mul nsw i64 %206, %198
  %gep.2 = getelementptr %struct.doublecomplex, ptr %2, i64 %207
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep.2, i8 0, i64 16, i1 false)
  %208 = add nuw nsw i64 %indvars.iv, 2
  %209 = mul nsw i64 %208, %198
  %gep.3 = getelementptr %struct.doublecomplex, ptr %2, i64 %209
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep.3, i8 0, i64 16, i1 false)
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %202, !llvm.loop !22

210:                                              ; preds = %152
  %211 = load i32, ptr %0, align 4, !tbaa !5
  %212 = add nsw i32 %211, -1
  store i32 %212, ptr %6, align 4, !tbaa !5
  call void @zscal_(ptr noundef nonnull %6, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3) #7
  br label %.loopexit

.loopexit.loopexit.unr-lcssa:                     ; preds = %202, %.lr.ph
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next.3, %202 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %213 = add nsw i64 %indvars.iv.epil, -1
  %214 = mul nsw i64 %213, %198
  %gep.epil = getelementptr %struct.doublecomplex, ptr %2, i64 %214
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %gep.epil, i8 0, i64 16, i1 false)
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.loopexit, label %.epil.preheader, !llvm.loop !23

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader, %187, %._crit_edge, %167, %210
  %.3148 = phi double [ %.2147, %167 ], [ %186, %._crit_edge ], [ %.2147, %210 ], [ %188, %187 ], [ %188, %.epil.preheader ], [ %188, %.loopexit.loopexit.unr-lcssa ]
  %.not153161 = icmp slt i32 %.1, 1
  br i1 %.not153161, label %._crit_edge166, label %.lr.ph165.preheader

.lr.ph165.preheader:                              ; preds = %.loopexit
  %xtraiter211 = and i32 %.1, 7
  %215 = icmp ult i32 %.1, 8
  br i1 %215, label %._crit_edge166.loopexit.unr-lcssa, label %.lr.ph165.preheader.new

.lr.ph165.preheader.new:                          ; preds = %.lr.ph165.preheader
  %unroll_iter215 = and i32 %.1, 2147483640
  br label %.lr.ph165

.lr.ph165:                                        ; preds = %.lr.ph165, %.lr.ph165.preheader.new
  %.4149162 = phi double [ %.3148, %.lr.ph165.preheader.new ], [ %223, %.lr.ph165 ]
  %niter216 = phi i32 [ 0, %.lr.ph165.preheader.new ], [ %niter216.next.7, %.lr.ph165 ]
  %216 = fmul double %88, %.4149162
  %217 = fmul double %88, %216
  %218 = fmul double %88, %217
  %219 = fmul double %88, %218
  %220 = fmul double %88, %219
  %221 = fmul double %88, %220
  %222 = fmul double %88, %221
  %223 = fmul double %88, %222
  %niter216.next.7 = add i32 %niter216, 8
  %niter216.ncmp.7 = icmp eq i32 %niter216.next.7, %unroll_iter215
  br i1 %niter216.ncmp.7, label %._crit_edge166.loopexit.unr-lcssa, label %.lr.ph165, !llvm.loop !24

._crit_edge166.loopexit.unr-lcssa:                ; preds = %.lr.ph165, %.lr.ph165.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph165.preheader ], [ %223, %.lr.ph165 ]
  %.4149162.unr = phi double [ %.3148, %.lr.ph165.preheader ], [ %223, %.lr.ph165 ]
  %lcmp.mod213.not = icmp eq i32 %xtraiter211, 0
  br i1 %lcmp.mod213.not, label %._crit_edge166, label %.lr.ph165.epil

.lr.ph165.epil:                                   ; preds = %._crit_edge166.loopexit.unr-lcssa, %.lr.ph165.epil
  %.4149162.epil = phi double [ %224, %.lr.ph165.epil ], [ %.4149162.unr, %._crit_edge166.loopexit.unr-lcssa ]
  %epil.iter212 = phi i32 [ %epil.iter212.next, %.lr.ph165.epil ], [ 0, %._crit_edge166.loopexit.unr-lcssa ]
  %224 = fmul double %88, %.4149162.epil
  %epil.iter212.next = add i32 %epil.iter212, 1
  %epil.iter212.cmp.not = icmp eq i32 %epil.iter212.next, %xtraiter211
  br i1 %epil.iter212.cmp.not, label %._crit_edge166, label %.lr.ph165.epil, !llvm.loop !25

._crit_edge166:                                   ; preds = %._crit_edge166.loopexit.unr-lcssa, %.lr.ph165.epil, %.loopexit
  %.4149.lcssa = phi double [ %.3148, %.loopexit ], [ %.lcssa.ph, %._crit_edge166.loopexit.unr-lcssa ], [ %224, %.lr.ph165.epil ]
  store double %.4149.lcssa, ptr %1, align 8, !tbaa !11
  store double 0.000000e+00, ptr %125, align 8, !tbaa !17
  br label %225

225:                                              ; preds = %._crit_edge166, %29, %._crit_edge176, %._crit_edge171, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  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 double @dznrm2_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare double @dlapy2_(ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @dlapy3_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @dlamch_(ptr noundef) local_unnamed_addr #2

declare void @zdscal_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @zladiv_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare double @cabs(double noundef, double noundef) local_unnamed_addr #5

declare void @zscal_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass