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

; 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
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local double @zlanhs_(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 i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca [2 x double], align 16
  %22 = alloca double, align 8
  %23 = alloca [2 x double], align 16
  %24 = alloca { double, double }, align 8
  %25 = alloca { double, double }, align 8
  %26 = 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) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #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 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 16, 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
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %28, ptr %11, align 4, !tbaa !9
  %29 = load i32, ptr %11, align 4, !tbaa !9
  %30 = mul nsw i32 %29, 1
  %31 = add nsw i32 1, %30
  store i32 %31, ptr %12, align 4, !tbaa !9
  %32 = load i32, ptr %12, align 4, !tbaa !9
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = sext i32 %32 to i64
  %35 = sub i64 0, %34
  %36 = getelementptr inbounds %struct.doublecomplex, ptr %33, i64 %35
  store ptr %36, ptr %8, align 8, !tbaa !5
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = getelementptr inbounds double, ptr %37, i32 -1
  store ptr %38, ptr %10, align 8, !tbaa !5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %5
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  br label %340

43:                                               ; preds = %5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = call i32 @lsame_(ptr noundef %44, ptr noundef @.str)
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %108

47:                                               ; preds = %43
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = load i32, ptr %48, align 4, !tbaa !9
  store i32 %49, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %104, %47
  %51 = load i32, ptr %19, align 4, !tbaa !9
  %52 = load i32, ptr %13, align 4, !tbaa !9
  %53 = icmp sle i32 %51, %52
  br i1 %53, label %54, label %107

54:                                               ; preds = %50
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = load i32, ptr %55, align 4, !tbaa !9
  store i32 %56, ptr %15, align 4, !tbaa !9
  %57 = load i32, ptr %19, align 4, !tbaa !9
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %16, align 4, !tbaa !9
  %59 = load i32, ptr %15, align 4, !tbaa !9
  %60 = load i32, ptr %16, align 4, !tbaa !9
  %61 = icmp sle i32 %59, %60
  br i1 %61, label %62, label %64

62:                                               ; preds = %54
  %63 = load i32, ptr %15, align 4, !tbaa !9
  br label %66

64:                                               ; preds = %54
  %65 = load i32, ptr %16, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %64, %62
  %67 = phi i32 [ %63, %62 ], [ %65, %64 ]
  store i32 %67, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %100, %66
  %69 = load i32, ptr %18, align 4, !tbaa !9
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = icmp sle i32 %69, %70
  br i1 %71, label %72, label %103

72:                                               ; preds = %68
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = load i32, ptr %18, align 4, !tbaa !9
  %75 = load i32, ptr %19, align 4, !tbaa !9
  %76 = load i32, ptr %11, align 4, !tbaa !9
  %77 = mul nsw i32 %75, %76
  %78 = add nsw i32 %74, %77
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds %struct.doublecomplex, ptr %73, i64 %79
  %81 = call { double, double } @Cd(ptr noundef %80)
  %82 = extractvalue { double, double } %81, 0
  %83 = extractvalue { double, double } %81, 1
  %84 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %85 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  store double %82, ptr %84, align 8
  store double %83, ptr %85, align 8
  %86 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %87 = load double, ptr %86, align 8
  %88 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %89 = load double, ptr %88, align 8
  %90 = call double @cabs(double noundef %87, double noundef %89) #5
  store double %90, ptr %22, align 8, !tbaa !11
  %91 = load double, ptr %20, align 8, !tbaa !11
  %92 = load double, ptr %22, align 8, !tbaa !11
  %93 = fcmp olt double %91, %92
  br i1 %93, label %97, label %94

94:                                               ; preds = %72
  %95 = call i32 @disnan_(ptr noundef %22)
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %99

97:                                               ; preds = %94, %72
  %98 = load double, ptr %22, align 8, !tbaa !11
  store double %98, ptr %20, align 8, !tbaa !11
  br label %99

99:                                               ; preds = %97, %94
  br label %100

100:                                              ; preds = %99
  %101 = load i32, ptr %18, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %18, align 4, !tbaa !9
  br label %68, !llvm.loop !13

103:                                              ; preds = %68
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %19, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %19, align 4, !tbaa !9
  br label %50, !llvm.loop !15

107:                                              ; preds = %50
  br label %339

108:                                              ; preds = %43
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = call i32 @lsame_(ptr noundef %109, ptr noundef @.str.1)
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %117, label %112

112:                                              ; preds = %108
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = load i8, ptr %113, align 1, !tbaa !16
  %115 = zext i8 %114 to i32
  %116 = icmp eq i32 %115, 49
  br i1 %116, label %117, label %180

117:                                              ; preds = %112, %108
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = load i32, ptr %118, align 4, !tbaa !9
  store i32 %119, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %176, %117
  %121 = load i32, ptr %19, align 4, !tbaa !9
  %122 = load i32, ptr %13, align 4, !tbaa !9
  %123 = icmp sle i32 %121, %122
  br i1 %123, label %124, label %179

124:                                              ; preds = %120
  store double 0.000000e+00, ptr %22, align 8, !tbaa !11
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = load i32, ptr %125, align 4, !tbaa !9
  store i32 %126, ptr %15, align 4, !tbaa !9
  %127 = load i32, ptr %19, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %16, align 4, !tbaa !9
  %129 = load i32, ptr %15, align 4, !tbaa !9
  %130 = load i32, ptr %16, align 4, !tbaa !9
  %131 = icmp sle i32 %129, %130
  br i1 %131, label %132, label %134

132:                                              ; preds = %124
  %133 = load i32, ptr %15, align 4, !tbaa !9
  br label %136

134:                                              ; preds = %124
  %135 = load i32, ptr %16, align 4, !tbaa !9
  br label %136

136:                                              ; preds = %134, %132
  %137 = phi i32 [ %133, %132 ], [ %135, %134 ]
  store i32 %137, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %163, %136
  %139 = load i32, ptr %18, align 4, !tbaa !9
  %140 = load i32, ptr %14, align 4, !tbaa !9
  %141 = icmp sle i32 %139, %140
  br i1 %141, label %142, label %166

142:                                              ; preds = %138
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = load i32, ptr %18, align 4, !tbaa !9
  %145 = load i32, ptr %19, align 4, !tbaa !9
  %146 = load i32, ptr %11, align 4, !tbaa !9
  %147 = mul nsw i32 %145, %146
  %148 = add nsw i32 %144, %147
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds %struct.doublecomplex, ptr %143, i64 %149
  %151 = call { double, double } @Cd(ptr noundef %150)
  %152 = extractvalue { double, double } %151, 0
  %153 = extractvalue { double, double } %151, 1
  %154 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %155 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  store double %152, ptr %154, align 8
  store double %153, ptr %155, align 8
  %156 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %157 = load double, ptr %156, align 8
  %158 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %159 = load double, ptr %158, align 8
  %160 = call double @cabs(double noundef %157, double noundef %159) #5
  %161 = load double, ptr %22, align 8, !tbaa !11
  %162 = fadd double %161, %160
  store double %162, ptr %22, align 8, !tbaa !11
  br label %163

163:                                              ; preds = %142
  %164 = load i32, ptr %18, align 4, !tbaa !9
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %18, align 4, !tbaa !9
  br label %138, !llvm.loop !17

166:                                              ; preds = %138
  %167 = load double, ptr %20, align 8, !tbaa !11
  %168 = load double, ptr %22, align 8, !tbaa !11
  %169 = fcmp olt double %167, %168
  br i1 %169, label %173, label %170

170:                                              ; preds = %166
  %171 = call i32 @disnan_(ptr noundef %22)
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %175

173:                                              ; preds = %170, %166
  %174 = load double, ptr %22, align 8, !tbaa !11
  store double %174, ptr %20, align 8, !tbaa !11
  br label %175

175:                                              ; preds = %173, %170
  br label %176

176:                                              ; preds = %175
  %177 = load i32, ptr %19, align 4, !tbaa !9
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %19, align 4, !tbaa !9
  br label %120, !llvm.loop !18

179:                                              ; preds = %120
  br label %338

180:                                              ; preds = %112
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = call i32 @lsame_(ptr noundef %181, ptr noundef @.str.2)
  %183 = icmp ne i32 %182, 0
  br i1 %183, label %184, label %282

184:                                              ; preds = %180
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = load i32, ptr %185, align 4, !tbaa !9
  store i32 %186, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %187

187:                                              ; preds = %196, %184
  %188 = load i32, ptr %18, align 4, !tbaa !9
  %189 = load i32, ptr %13, align 4, !tbaa !9
  %190 = icmp sle i32 %188, %189
  br i1 %190, label %191, label %199

191:                                              ; preds = %187
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = load i32, ptr %18, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds double, ptr %192, i64 %194
  store double 0.000000e+00, ptr %195, align 8, !tbaa !11
  br label %196

196:                                              ; preds = %191
  %197 = load i32, ptr %18, align 4, !tbaa !9
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %18, align 4, !tbaa !9
  br label %187, !llvm.loop !19

199:                                              ; preds = %187
  %200 = load ptr, ptr %7, align 8, !tbaa !5
  %201 = load i32, ptr %200, align 4, !tbaa !9
  store i32 %201, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %202

202:                                              ; preds = %253, %199
  %203 = load i32, ptr %19, align 4, !tbaa !9
  %204 = load i32, ptr %13, align 4, !tbaa !9
  %205 = icmp sle i32 %203, %204
  br i1 %205, label %206, label %256

206:                                              ; preds = %202
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = load i32, ptr %207, align 4, !tbaa !9
  store i32 %208, ptr %15, align 4, !tbaa !9
  %209 = load i32, ptr %19, align 4, !tbaa !9
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %16, align 4, !tbaa !9
  %211 = load i32, ptr %15, align 4, !tbaa !9
  %212 = load i32, ptr %16, align 4, !tbaa !9
  %213 = icmp sle i32 %211, %212
  br i1 %213, label %214, label %216

214:                                              ; preds = %206
  %215 = load i32, ptr %15, align 4, !tbaa !9
  br label %218

216:                                              ; preds = %206
  %217 = load i32, ptr %16, align 4, !tbaa !9
  br label %218

218:                                              ; preds = %216, %214
  %219 = phi i32 [ %215, %214 ], [ %217, %216 ]
  store i32 %219, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %249, %218
  %221 = load i32, ptr %18, align 4, !tbaa !9
  %222 = load i32, ptr %14, align 4, !tbaa !9
  %223 = icmp sle i32 %221, %222
  br i1 %223, label %224, label %252

224:                                              ; preds = %220
  %225 = load ptr, ptr %8, align 8, !tbaa !5
  %226 = load i32, ptr %18, align 4, !tbaa !9
  %227 = load i32, ptr %19, align 4, !tbaa !9
  %228 = load i32, ptr %11, align 4, !tbaa !9
  %229 = mul nsw i32 %227, %228
  %230 = add nsw i32 %226, %229
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds %struct.doublecomplex, ptr %225, i64 %231
  %233 = call { double, double } @Cd(ptr noundef %232)
  %234 = extractvalue { double, double } %233, 0
  %235 = extractvalue { double, double } %233, 1
  %236 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %237 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  store double %234, ptr %236, align 8
  store double %235, ptr %237, align 8
  %238 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %239 = load double, ptr %238, align 8
  %240 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %241 = load double, ptr %240, align 8
  %242 = call double @cabs(double noundef %239, double noundef %241) #5
  %243 = load ptr, ptr %10, align 8, !tbaa !5
  %244 = load i32, ptr %18, align 4, !tbaa !9
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds double, ptr %243, i64 %245
  %247 = load double, ptr %246, align 8, !tbaa !11
  %248 = fadd double %247, %242
  store double %248, ptr %246, align 8, !tbaa !11
  br label %249

249:                                              ; preds = %224
  %250 = load i32, ptr %18, align 4, !tbaa !9
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %18, align 4, !tbaa !9
  br label %220, !llvm.loop !20

252:                                              ; preds = %220
  br label %253

253:                                              ; preds = %252
  %254 = load i32, ptr %19, align 4, !tbaa !9
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %19, align 4, !tbaa !9
  br label %202, !llvm.loop !21

256:                                              ; preds = %202
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  %257 = load ptr, ptr %7, align 8, !tbaa !5
  %258 = load i32, ptr %257, align 4, !tbaa !9
  store i32 %258, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %259

259:                                              ; preds = %278, %256
  %260 = load i32, ptr %18, align 4, !tbaa !9
  %261 = load i32, ptr %13, align 4, !tbaa !9
  %262 = icmp sle i32 %260, %261
  br i1 %262, label %263, label %281

263:                                              ; preds = %259
  %264 = load ptr, ptr %10, align 8, !tbaa !5
  %265 = load i32, ptr %18, align 4, !tbaa !9
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds double, ptr %264, i64 %266
  %268 = load double, ptr %267, align 8, !tbaa !11
  store double %268, ptr %22, align 8, !tbaa !11
  %269 = load double, ptr %20, align 8, !tbaa !11
  %270 = load double, ptr %22, align 8, !tbaa !11
  %271 = fcmp olt double %269, %270
  br i1 %271, label %275, label %272

272:                                              ; preds = %263
  %273 = call i32 @disnan_(ptr noundef %22)
  %274 = icmp ne i32 %273, 0
  br i1 %274, label %275, label %277

275:                                              ; preds = %272, %263
  %276 = load double, ptr %22, align 8, !tbaa !11
  store double %276, ptr %20, align 8, !tbaa !11
  br label %277

277:                                              ; preds = %275, %272
  br label %278

278:                                              ; preds = %277
  %279 = load i32, ptr %18, align 4, !tbaa !9
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %18, align 4, !tbaa !9
  br label %259, !llvm.loop !22

281:                                              ; preds = %259
  br label %337

282:                                              ; preds = %180
  %283 = load ptr, ptr %6, align 8, !tbaa !5
  %284 = call i32 @lsame_(ptr noundef %283, ptr noundef @.str.3)
  %285 = icmp ne i32 %284, 0
  br i1 %285, label %290, label %286

286:                                              ; preds = %282
  %287 = load ptr, ptr %6, align 8, !tbaa !5
  %288 = call i32 @lsame_(ptr noundef %287, ptr noundef @.str.4)
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %290, label %336

290:                                              ; preds = %286, %282
  %291 = getelementptr inbounds [2 x double], ptr %23, i64 0, i64 0
  store double 0.000000e+00, ptr %291, align 16, !tbaa !11
  %292 = getelementptr inbounds [2 x double], ptr %23, i64 0, i64 1
  store double 1.000000e+00, ptr %292, align 8, !tbaa !11
  %293 = load ptr, ptr %7, align 8, !tbaa !5
  %294 = load i32, ptr %293, align 4, !tbaa !9
  store i32 %294, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %295

295:                                              ; preds = %326, %290
  %296 = load i32, ptr %19, align 4, !tbaa !9
  %297 = load i32, ptr %13, align 4, !tbaa !9
  %298 = icmp sle i32 %296, %297
  br i1 %298, label %299, label %329

299:                                              ; preds = %295
  %300 = getelementptr inbounds [2 x double], ptr %21, i64 0, i64 0
  store double 0.000000e+00, ptr %300, align 16, !tbaa !11
  %301 = getelementptr inbounds [2 x double], ptr %21, i64 0, i64 1
  store double 1.000000e+00, ptr %301, align 8, !tbaa !11
  %302 = load ptr, ptr %7, align 8, !tbaa !5
  %303 = load i32, ptr %302, align 4, !tbaa !9
  store i32 %303, ptr %15, align 4, !tbaa !9
  %304 = load i32, ptr %19, align 4, !tbaa !9
  %305 = add nsw i32 %304, 1
  store i32 %305, ptr %16, align 4, !tbaa !9
  %306 = load i32, ptr %15, align 4, !tbaa !9
  %307 = load i32, ptr %16, align 4, !tbaa !9
  %308 = icmp sle i32 %306, %307
  br i1 %308, label %309, label %311

309:                                              ; preds = %299
  %310 = load i32, ptr %15, align 4, !tbaa !9
  br label %313

311:                                              ; preds = %299
  %312 = load i32, ptr %16, align 4, !tbaa !9
  br label %313

313:                                              ; preds = %311, %309
  %314 = phi i32 [ %310, %309 ], [ %312, %311 ]
  store i32 %314, ptr %14, align 4, !tbaa !9
  %315 = load ptr, ptr %8, align 8, !tbaa !5
  %316 = load i32, ptr %19, align 4, !tbaa !9
  %317 = load i32, ptr %11, align 4, !tbaa !9
  %318 = mul nsw i32 %316, %317
  %319 = add nsw i32 %318, 1
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds %struct.doublecomplex, ptr %315, i64 %320
  %322 = getelementptr inbounds [2 x double], ptr %21, i64 0, i64 0
  %323 = getelementptr inbounds [2 x double], ptr %21, i64 0, i64 1
  call void @zlassq_(ptr noundef %14, ptr noundef %321, ptr noundef @c__1, ptr noundef %322, ptr noundef %323)
  %324 = getelementptr inbounds [2 x double], ptr %23, i64 0, i64 0
  %325 = getelementptr inbounds [2 x double], ptr %21, i64 0, i64 0
  call void @dcombssq_(ptr noundef %324, ptr noundef %325)
  br label %326

326:                                              ; preds = %313
  %327 = load i32, ptr %19, align 4, !tbaa !9
  %328 = add nsw i32 %327, 1
  store i32 %328, ptr %19, align 4, !tbaa !9
  br label %295, !llvm.loop !23

329:                                              ; preds = %295
  %330 = getelementptr inbounds [2 x double], ptr %23, i64 0, i64 0
  %331 = load double, ptr %330, align 16, !tbaa !11
  %332 = getelementptr inbounds [2 x double], ptr %23, i64 0, i64 1
  %333 = load double, ptr %332, align 8, !tbaa !11
  %334 = call double @sqrt(double noundef %333) #5
  %335 = fmul double %331, %334
  store double %335, ptr %20, align 8, !tbaa !11
  br label %336

336:                                              ; preds = %329, %286
  br label %337

337:                                              ; preds = %336, %281
  br label %338

338:                                              ; preds = %337, %179
  br label %339

339:                                              ; preds = %338, %107
  br label %340

340:                                              ; preds = %339, %42
  %341 = load double, ptr %20, align 8, !tbaa !11
  store double %341, ptr %17, align 8, !tbaa !11
  %342 = load double, ptr %17, align 8, !tbaa !11
  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 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  ret double %342
}

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

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

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

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

declare i32 @disnan_(ptr noundef) #2

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

; 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 = { 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 #4 = { 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 #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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}


; 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
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local double @zlanhs_(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef %4) local_unnamed_addr #0 {
  %6 = alloca i32, align 4
  %7 = alloca [2 x double], align 16
  %8 = alloca double, align 8
  %9 = alloca [2 x double], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  %10 = load i32, ptr %3, align 4, !tbaa !5
  %narrow = xor i32 %10, -1
  %11 = sext i32 %narrow to i64
  %12 = getelementptr inbounds %struct.doublecomplex, ptr %2, i64 %11
  %13 = getelementptr inbounds i8, ptr %4, i64 -8
  %14 = load i32, ptr %1, align 4, !tbaa !5
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %.loopexit, label %16

16:                                               ; preds = %5
  %17 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #8
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %36, label %18

18:                                               ; preds = %16
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %.not120131 = icmp slt i32 %19, 1
  br i1 %.not120131, label %.loopexit, label %.lr.ph134.preheader

.lr.ph134.preheader:                              ; preds = %18
  %20 = sext i32 %10 to i64
  %21 = add nuw i32 %19, 1
  %wide.trip.count = zext i32 %21 to i64
  br label %.lr.ph134

.loopexit126:                                     ; preds = %35, %.lr.ph134
  %.196.lcssa = phi double [ %.095133, %.lr.ph134 ], [ %.297, %35 ]
  %exitcond.not = icmp eq i64 %indvars.iv.next173, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph134, !llvm.loop !9

.lr.ph134:                                        ; preds = %.lr.ph134.preheader, %.loopexit126
  %indvars.iv172 = phi i64 [ 1, %.lr.ph134.preheader ], [ %indvars.iv.next173, %.loopexit126 ]
  %.095133 = phi double [ 0.000000e+00, %.lr.ph134.preheader ], [ %.196.lcssa, %.loopexit126 ]
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %.not122128 = icmp slt i32 %22, 1
  br i1 %.not122128, label %.loopexit126, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph134
  %23 = trunc nsw i64 %indvars.iv.next173 to i32
  %24 = call i32 @llvm.smin.i32(i32 %22, i32 %23)
  %25 = mul nsw i64 %indvars.iv172, %20
  %invariant.gep216 = getelementptr %struct.doublecomplex, ptr %12, i64 %25
  %26 = sext i32 %24 to i64
  br label %27

27:                                               ; preds = %.lr.ph, %35
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %35 ]
  %.196129 = phi double [ %.095133, %.lr.ph ], [ %.297, %35 ]
  %gep217 = getelementptr %struct.doublecomplex, ptr %invariant.gep216, i64 %indvars.iv
  %28 = call { double, double } @Cd(ptr noundef %gep217)
  %29 = extractvalue { double, double } %28, 0
  %30 = extractvalue { double, double } %28, 1
  %31 = call double @cabs(double noundef %29, double noundef %30) #8
  store double %31, ptr %8, align 8, !tbaa !11
  %32 = fcmp olt double %.196129, %31
  br i1 %32, label %35, label %33

33:                                               ; preds = %27
  %34 = call i32 @disnan_(ptr noundef nonnull %8) #8
  %.not123 = icmp eq i32 %34, 0
  br i1 %.not123, label %35, label %._crit_edge204

._crit_edge204:                                   ; preds = %33
  %.pre = load double, ptr %8, align 8, !tbaa !11
  br label %35

35:                                               ; preds = %27, %._crit_edge204, %33
  %.297 = phi double [ %.196129, %33 ], [ %.pre, %._crit_edge204 ], [ %31, %27 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.not122.not = icmp slt i64 %indvars.iv, %26
  br i1 %.not122.not, label %27, label %.loopexit126, !llvm.loop !13

36:                                               ; preds = %16
  %37 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #8
  %.not104 = icmp eq i32 %37, 0
  br i1 %.not104, label %38, label %41

38:                                               ; preds = %36
  %39 = load i8, ptr %0, align 1, !tbaa !14
  %40 = icmp eq i8 %39, 49
  br i1 %40, label %41, label %62

41:                                               ; preds = %38, %36
  %42 = load i32, ptr %1, align 4, !tbaa !5
  %.not116162 = icmp slt i32 %42, 1
  br i1 %.not116162, label %.loopexit, label %.lr.ph166.preheader

.lr.ph166.preheader:                              ; preds = %41
  %43 = sext i32 %10 to i64
  %44 = add nuw i32 %42, 1
  %wide.trip.count202 = zext i32 %44 to i64
  br label %.lr.ph166

.lr.ph166:                                        ; preds = %.lr.ph166.preheader, %61
  %indvars.iv199 = phi i64 [ 1, %.lr.ph166.preheader ], [ %indvars.iv.next200, %61 ]
  %.398164 = phi double [ 0.000000e+00, %.lr.ph166.preheader ], [ %.499, %61 ]
  store double 0.000000e+00, ptr %8, align 8, !tbaa !11
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %.not118157 = icmp slt i32 %45, 1
  br i1 %.not118157, label %._crit_edge161, label %.lr.ph160

.lr.ph160:                                        ; preds = %.lr.ph166
  %46 = trunc nsw i64 %indvars.iv.next200 to i32
  %47 = call i32 @llvm.smin.i32(i32 %45, i32 %46)
  %48 = mul nsw i64 %indvars.iv199, %43
  %invariant.gep220 = getelementptr %struct.doublecomplex, ptr %12, i64 %48
  %49 = sext i32 %47 to i64
  br label %50

50:                                               ; preds = %.lr.ph160, %50
  %indvars.iv196 = phi i64 [ 1, %.lr.ph160 ], [ %indvars.iv.next197, %50 ]
  %gep221 = getelementptr %struct.doublecomplex, ptr %invariant.gep220, i64 %indvars.iv196
  %51 = call { double, double } @Cd(ptr noundef %gep221)
  %52 = extractvalue { double, double } %51, 0
  %53 = extractvalue { double, double } %51, 1
  %54 = call double @cabs(double noundef %52, double noundef %53) #8
  %55 = load double, ptr %8, align 8, !tbaa !11
  %56 = fadd double %54, %55
  store double %56, ptr %8, align 8, !tbaa !11
  %indvars.iv.next197 = add nuw nsw i64 %indvars.iv196, 1
  %.not118.not = icmp slt i64 %indvars.iv196, %49
  br i1 %.not118.not, label %50, label %._crit_edge161, !llvm.loop !15

._crit_edge161:                                   ; preds = %50, %.lr.ph166
  %57 = phi double [ 0.000000e+00, %.lr.ph166 ], [ %56, %50 ]
  %58 = fcmp olt double %.398164, %57
  br i1 %58, label %61, label %59

59:                                               ; preds = %._crit_edge161
  %60 = call i32 @disnan_(ptr noundef nonnull %8) #8
  %.not119 = icmp eq i32 %60, 0
  br i1 %.not119, label %61, label %._crit_edge210

._crit_edge210:                                   ; preds = %59
  %.pre211 = load double, ptr %8, align 8, !tbaa !11
  br label %61

61:                                               ; preds = %._crit_edge161, %._crit_edge210, %59
  %.499 = phi double [ %.398164, %59 ], [ %.pre211, %._crit_edge210 ], [ %57, %._crit_edge161 ]
  %exitcond203.not = icmp eq i64 %indvars.iv.next200, %wide.trip.count202
  br i1 %exitcond203.not, label %.loopexit, label %.lr.ph166, !llvm.loop !16

62:                                               ; preds = %38
  %63 = tail call i32 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.2) #8
  %.not105 = icmp eq i32 %63, 0
  br i1 %.not105, label %90, label %64

64:                                               ; preds = %62
  %65 = load i32, ptr %1, align 4, !tbaa !5
  %.not110136 = icmp slt i32 %65, 1
  br i1 %.not110136, label %.loopexit, label %.lr.ph144.preheader

.lr.ph144.preheader:                              ; preds = %64
  %66 = zext nneg i32 %65 to i64
  %67 = shl nuw nsw i64 %66, 3
  tail call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 %67, i1 false), !tbaa !11
  %68 = sext i32 %10 to i64
  %69 = add nuw i32 %65, 1
  %wide.trip.count184 = zext i32 %69 to i64
  br label %.lr.ph144

.loopexit125:                                     ; preds = %75, %.lr.ph144
  %exitcond185.not = icmp eq i64 %indvars.iv.next182, %wide.trip.count184
  br i1 %exitcond185.not, label %._crit_edge, label %.lr.ph144, !llvm.loop !17

.lr.ph144:                                        ; preds = %.lr.ph144.preheader, %.loopexit125
  %indvars.iv181 = phi i64 [ 1, %.lr.ph144.preheader ], [ %indvars.iv.next182, %.loopexit125 ]
  %70 = load i32, ptr %1, align 4, !tbaa !5
  %indvars.iv.next182 = add nuw nsw i64 %indvars.iv181, 1
  %.not115139 = icmp slt i32 %70, 1
  br i1 %.not115139, label %.loopexit125, label %.lr.ph141

.lr.ph141:                                        ; preds = %.lr.ph144
  %71 = trunc nsw i64 %indvars.iv.next182 to i32
  %72 = tail call i32 @llvm.smin.i32(i32 %70, i32 %71)
  %73 = mul nsw i64 %indvars.iv181, %68
  %74 = sext i32 %72 to i64
  %invariant.gep218 = getelementptr %struct.doublecomplex, ptr %12, i64 %73
  br label %75

75:                                               ; preds = %.lr.ph141, %75
  %indvars.iv178 = phi i64 [ 1, %.lr.ph141 ], [ %indvars.iv.next179, %75 ]
  %gep219 = getelementptr %struct.doublecomplex, ptr %invariant.gep218, i64 %indvars.iv178
  %76 = tail call { double, double } @Cd(ptr noundef %gep219)
  %77 = extractvalue { double, double } %76, 0
  %78 = extractvalue { double, double } %76, 1
  %79 = tail call double @cabs(double noundef %77, double noundef %78) #8
  %80 = getelementptr inbounds double, ptr %13, i64 %indvars.iv178
  %81 = load double, ptr %80, align 8, !tbaa !11
  %82 = fadd double %79, %81
  store double %82, ptr %80, align 8, !tbaa !11
  %indvars.iv.next179 = add nuw nsw i64 %indvars.iv178, 1
  %.not115.not = icmp slt i64 %indvars.iv178, %74
  br i1 %.not115.not, label %75, label %.loopexit125, !llvm.loop !18

._crit_edge:                                      ; preds = %.loopexit125
  %.pre205 = load i32, ptr %1, align 4, !tbaa !5
  %.not112146 = icmp slt i32 %.pre205, 1
  br i1 %.not112146, label %.loopexit, label %.lr.ph150.preheader

.lr.ph150.preheader:                              ; preds = %._crit_edge
  %83 = add nuw i32 %.pre205, 1
  %wide.trip.count189 = zext i32 %83 to i64
  br label %.lr.ph150

.lr.ph150:                                        ; preds = %.lr.ph150.preheader, %89
  %indvars.iv186 = phi i64 [ 1, %.lr.ph150.preheader ], [ %indvars.iv.next187, %89 ]
  %.5147 = phi double [ 0.000000e+00, %.lr.ph150.preheader ], [ %.6, %89 ]
  %84 = getelementptr inbounds double, ptr %13, i64 %indvars.iv186
  %85 = load double, ptr %84, align 8, !tbaa !11
  store double %85, ptr %8, align 8, !tbaa !11
  %86 = fcmp olt double %.5147, %85
  br i1 %86, label %89, label %87

87:                                               ; preds = %.lr.ph150
  %88 = call i32 @disnan_(ptr noundef nonnull %8) #8
  %.not113 = icmp eq i32 %88, 0
  br i1 %.not113, label %89, label %._crit_edge206

._crit_edge206:                                   ; preds = %87
  %.pre207 = load double, ptr %8, align 8, !tbaa !11
  br label %89

89:                                               ; preds = %.lr.ph150, %._crit_edge206, %87
  %.6 = phi double [ %.5147, %87 ], [ %.pre207, %._crit_edge206 ], [ %85, %.lr.ph150 ]
  %indvars.iv.next187 = add nuw nsw i64 %indvars.iv186, 1
  %exitcond190.not = icmp eq i64 %indvars.iv.next187, %wide.trip.count189
  br i1 %exitcond190.not, label %.loopexit, label %.lr.ph150, !llvm.loop !19

90:                                               ; preds = %62
  %91 = tail call i32 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.3) #8
  %.not106 = icmp eq i32 %91, 0
  br i1 %.not106, label %92, label %94

92:                                               ; preds = %90
  %93 = tail call i32 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.4) #8
  %.not107 = icmp eq i32 %93, 0
  br i1 %.not107, label %.loopexit, label %94

94:                                               ; preds = %92, %90
  %95 = getelementptr inbounds i8, ptr %9, i64 8
  store <2 x double> <double 0.000000e+00, double 1.000000e+00>, ptr %9, align 16, !tbaa !11
  %96 = load i32, ptr %1, align 4, !tbaa !5
  %invariant.gep = getelementptr i8, ptr %12, i64 16
  %.not108152 = icmp slt i32 %96, 1
  br i1 %.not108152, label %._crit_edge156, label %.lr.ph155

.lr.ph155:                                        ; preds = %94
  %97 = getelementptr inbounds i8, ptr %7, i64 8
  %98 = sext i32 %10 to i64
  %99 = add nuw i32 %96, 1
  %wide.trip.count194 = zext i32 %99 to i64
  br label %100

100:                                              ; preds = %.lr.ph155, %100
  %indvars.iv191 = phi i64 [ 1, %.lr.ph155 ], [ %indvars.iv.next192, %100 ]
  store <2 x double> <double 0.000000e+00, double 1.000000e+00>, ptr %7, align 16, !tbaa !11
  %101 = load i32, ptr %1, align 4, !tbaa !5
  %indvars.iv.next192 = add nuw nsw i64 %indvars.iv191, 1
  %102 = trunc nsw i64 %indvars.iv.next192 to i32
  %103 = call i32 @llvm.smin.i32(i32 %101, i32 %102)
  store i32 %103, ptr %6, align 4, !tbaa !5
  %104 = mul nsw i64 %indvars.iv191, %98
  %gep = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %104
  call void @zlassq_(ptr noundef nonnull %6, ptr noundef %gep, ptr noundef nonnull @c__1, ptr noundef nonnull %7, ptr noundef nonnull %97) #8
  call void @dcombssq_(ptr noundef nonnull %9, ptr noundef nonnull %7) #8
  %exitcond195.not = icmp eq i64 %indvars.iv.next192, %wide.trip.count194
  br i1 %exitcond195.not, label %._crit_edge156.loopexit, label %100, !llvm.loop !20

._crit_edge156.loopexit:                          ; preds = %100
  %.pre208 = load double, ptr %9, align 16, !tbaa !11
  %.pre209 = load double, ptr %95, align 8, !tbaa !11
  br label %._crit_edge156

._crit_edge156:                                   ; preds = %._crit_edge156.loopexit, %94
  %105 = phi double [ %.pre209, %._crit_edge156.loopexit ], [ 1.000000e+00, %94 ]
  %106 = phi double [ %.pre208, %._crit_edge156.loopexit ], [ 0.000000e+00, %94 ]
  %107 = call double @sqrt(double noundef %105) #8
  %108 = fmul double %106, %107
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit126, %89, %61, %64, %18, %._crit_edge, %41, %5, %._crit_edge156, %92
  %.7 = phi double [ %108, %._crit_edge156 ], [ undef, %92 ], [ 0.000000e+00, %5 ], [ 0.000000e+00, %41 ], [ 0.000000e+00, %._crit_edge ], [ 0.000000e+00, %18 ], [ 0.000000e+00, %64 ], [ %.499, %61 ], [ %.6, %89 ], [ %.196.lcssa, %.loopexit126 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  ret double %.7
}

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

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

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

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

declare i32 @disnan_(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #5

; 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 nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #6

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

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 = { 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 #4 = { 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 #5 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}


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