; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (zpotf2)

; 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 [7 x i8], align 1
@c__1 = external hidden global i64, align 8
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@c_b1 = external hidden global %struct.doublecomplex, align 8
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1

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

37:                                               ; preds = %5
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = call i64 @lsame_(ptr noundef %38, ptr noundef @.str.1)
  %40 = icmp ne i64 %39, 0
  br i1 %40, label %43, label %41

41:                                               ; preds = %37
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 -1, ptr %42, align 8, !tbaa !9
  br label %66

43:                                               ; preds = %37, %5
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = icmp slt i64 %45, 0
  br i1 %46, label %47, label %49

47:                                               ; preds = %43
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 -2, ptr %48, align 8, !tbaa !9
  br label %65

49:                                               ; preds = %43
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = load i64, ptr %50, align 8, !tbaa !9
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = icmp sge i64 1, %53
  br i1 %54, label %55, label %56

55:                                               ; preds = %49
  br label %59

56:                                               ; preds = %49
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = load i64, ptr %57, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %56, %55
  %60 = phi i64 [ 1, %55 ], [ %58, %56 ]
  %61 = icmp slt i64 %51, %60
  br i1 %61, label %62, label %64

62:                                               ; preds = %59
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 -4, ptr %63, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %62, %59
  br label %65

65:                                               ; preds = %64, %47
  br label %66

66:                                               ; preds = %65, %41
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = icmp ne i64 %68, 0
  br i1 %69, label %70, label %75

70:                                               ; preds = %66
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = load i64, ptr %71, align 8, !tbaa !9
  %73 = sub nsw i64 0, %72
  store i64 %73, ptr %14, align 8, !tbaa !9
  %74 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %14)
  store i32 0, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %397

75:                                               ; preds = %66
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = load i64, ptr %76, align 8, !tbaa !9
  %78 = icmp eq i64 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %75
  store i32 0, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %397

80:                                               ; preds = %75
  %81 = load i64, ptr %22, align 8, !tbaa !9
  %82 = icmp ne i64 %81, 0
  br i1 %82, label %83, label %239

83:                                               ; preds = %80
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = load i64, ptr %84, align 8, !tbaa !9
  store i64 %85, ptr %14, align 8, !tbaa !9
  store i64 1, ptr %20, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %235, %83
  %87 = load i64, ptr %20, align 8, !tbaa !9
  %88 = load i64, ptr %14, align 8, !tbaa !9
  %89 = icmp sle i64 %87, %88
  br i1 %89, label %90, label %238

90:                                               ; preds = %86
  %91 = load i64, ptr %20, align 8, !tbaa !9
  %92 = load i64, ptr %20, align 8, !tbaa !9
  %93 = load i64, ptr %12, align 8, !tbaa !9
  %94 = mul nsw i64 %92, %93
  %95 = add nsw i64 %91, %94
  store i64 %95, ptr %15, align 8, !tbaa !9
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load i64, ptr %15, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct.doublecomplex, ptr %96, i64 %97
  %99 = getelementptr inbounds %struct.doublecomplex, ptr %98, i32 0, i32 0
  %100 = load double, ptr %99, align 8, !tbaa !11
  store double %100, ptr %17, align 8, !tbaa !14
  %101 = load i64, ptr %20, align 8, !tbaa !9
  %102 = sub nsw i64 %101, 1
  store i64 %102, ptr %16, align 8, !tbaa !9
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = load i64, ptr %20, align 8, !tbaa !9
  %105 = load i64, ptr %12, align 8, !tbaa !9
  %106 = mul nsw i64 %104, %105
  %107 = add nsw i64 %106, 1
  %108 = getelementptr inbounds %struct.doublecomplex, ptr %103, i64 %107
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = load i64, ptr %20, align 8, !tbaa !9
  %111 = load i64, ptr %12, align 8, !tbaa !9
  %112 = mul nsw i64 %110, %111
  %113 = add nsw i64 %112, 1
  %114 = getelementptr inbounds %struct.doublecomplex, ptr %109, i64 %113
  call void @f2c_zdotc(ptr noundef %19, ptr noundef %16, ptr noundef %108, ptr noundef @c__1, ptr noundef %114, ptr noundef @c__1)
  %115 = load double, ptr %17, align 8, !tbaa !14
  %116 = getelementptr inbounds %struct.doublecomplex, ptr %19, i32 0, i32 0
  %117 = load double, ptr %116, align 8, !tbaa !11
  %118 = fsub double %115, %117
  %119 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  store double %118, ptr %119, align 8, !tbaa !11
  %120 = getelementptr inbounds %struct.doublecomplex, ptr %19, i32 0, i32 1
  %121 = load double, ptr %120, align 8, !tbaa !15
  %122 = fneg double %121
  %123 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  store double %122, ptr %123, align 8, !tbaa !15
  %124 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  %125 = load double, ptr %124, align 8, !tbaa !11
  store double %125, ptr %21, align 8, !tbaa !14
  %126 = load double, ptr %21, align 8, !tbaa !14
  %127 = fcmp ole double %126, 0.000000e+00
  br i1 %127, label %131, label %128

128:                                              ; preds = %90
  %129 = call i64 @disnan_(ptr noundef %21)
  %130 = icmp ne i64 %129, 0
  br i1 %130, label %131, label %146

131:                                              ; preds = %128, %90
  %132 = load i64, ptr %20, align 8, !tbaa !9
  %133 = load i64, ptr %20, align 8, !tbaa !9
  %134 = load i64, ptr %12, align 8, !tbaa !9
  %135 = mul nsw i64 %133, %134
  %136 = add nsw i64 %132, %135
  store i64 %136, ptr %15, align 8, !tbaa !9
  %137 = load double, ptr %21, align 8, !tbaa !14
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = load i64, ptr %15, align 8, !tbaa !9
  %140 = getelementptr inbounds %struct.doublecomplex, ptr %138, i64 %139
  %141 = getelementptr inbounds %struct.doublecomplex, ptr %140, i32 0, i32 0
  store double %137, ptr %141, align 8, !tbaa !11
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = load i64, ptr %15, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.doublecomplex, ptr %142, i64 %143
  %145 = getelementptr inbounds %struct.doublecomplex, ptr %144, i32 0, i32 1
  store double 0.000000e+00, ptr %145, align 8, !tbaa !15
  br label %393

146:                                              ; preds = %128
  %147 = load double, ptr %21, align 8, !tbaa !14
  %148 = call double @sqrt(double noundef %147) #4
  store double %148, ptr %21, align 8, !tbaa !14
  %149 = load i64, ptr %20, align 8, !tbaa !9
  %150 = load i64, ptr %20, align 8, !tbaa !9
  %151 = load i64, ptr %12, align 8, !tbaa !9
  %152 = mul nsw i64 %150, %151
  %153 = add nsw i64 %149, %152
  store i64 %153, ptr %15, align 8, !tbaa !9
  %154 = load double, ptr %21, align 8, !tbaa !14
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = load i64, ptr %15, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.doublecomplex, ptr %155, i64 %156
  %158 = getelementptr inbounds %struct.doublecomplex, ptr %157, i32 0, i32 0
  store double %154, ptr %158, align 8, !tbaa !11
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = load i64, ptr %15, align 8, !tbaa !9
  %161 = getelementptr inbounds %struct.doublecomplex, ptr %159, i64 %160
  %162 = getelementptr inbounds %struct.doublecomplex, ptr %161, i32 0, i32 1
  store double 0.000000e+00, ptr %162, align 8, !tbaa !15
  %163 = load i64, ptr %20, align 8, !tbaa !9
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = load i64, ptr %164, align 8, !tbaa !9
  %166 = icmp slt i64 %163, %165
  br i1 %166, label %167, label %234

167:                                              ; preds = %146
  %168 = load i64, ptr %20, align 8, !tbaa !9
  %169 = sub nsw i64 %168, 1
  store i64 %169, ptr %15, align 8, !tbaa !9
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = load i64, ptr %20, align 8, !tbaa !9
  %172 = load i64, ptr %12, align 8, !tbaa !9
  %173 = mul nsw i64 %171, %172
  %174 = add nsw i64 %173, 1
  %175 = getelementptr inbounds %struct.doublecomplex, ptr %170, i64 %174
  %176 = call i32 @zlacgv_(ptr noundef %15, ptr noundef %175, ptr noundef @c__1)
  %177 = load i64, ptr %20, align 8, !tbaa !9
  %178 = sub nsw i64 %177, 1
  store i64 %178, ptr %15, align 8, !tbaa !9
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = load i64, ptr %179, align 8, !tbaa !9
  %181 = load i64, ptr %20, align 8, !tbaa !9
  %182 = sub nsw i64 %180, %181
  store i64 %182, ptr %16, align 8, !tbaa !9
  %183 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  store double -1.000000e+00, ptr %183, align 8, !tbaa !11
  %184 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  store double -0.000000e+00, ptr %184, align 8, !tbaa !15
  %185 = load ptr, ptr %9, align 8, !tbaa !5
  %186 = load i64, ptr %20, align 8, !tbaa !9
  %187 = add nsw i64 %186, 1
  %188 = load i64, ptr %12, align 8, !tbaa !9
  %189 = mul nsw i64 %187, %188
  %190 = add nsw i64 %189, 1
  %191 = getelementptr inbounds %struct.doublecomplex, ptr %185, i64 %190
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = load ptr, ptr %9, align 8, !tbaa !5
  %194 = load i64, ptr %20, align 8, !tbaa !9
  %195 = load i64, ptr %12, align 8, !tbaa !9
  %196 = mul nsw i64 %194, %195
  %197 = add nsw i64 %196, 1
  %198 = getelementptr inbounds %struct.doublecomplex, ptr %193, i64 %197
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = load i64, ptr %20, align 8, !tbaa !9
  %201 = load i64, ptr %20, align 8, !tbaa !9
  %202 = add nsw i64 %201, 1
  %203 = load i64, ptr %12, align 8, !tbaa !9
  %204 = mul nsw i64 %202, %203
  %205 = add nsw i64 %200, %204
  %206 = getelementptr inbounds %struct.doublecomplex, ptr %199, i64 %205
  %207 = load ptr, ptr %10, align 8, !tbaa !5
  %208 = call i32 @f2c_zgemv(ptr noundef @.str.3, ptr noundef %15, ptr noundef %16, ptr noundef %18, ptr noundef %191, ptr noundef %192, ptr noundef %198, ptr noundef @c__1, ptr noundef @c_b1, ptr noundef %206, ptr noundef %207)
  %209 = load i64, ptr %20, align 8, !tbaa !9
  %210 = sub nsw i64 %209, 1
  store i64 %210, ptr %15, align 8, !tbaa !9
  %211 = load ptr, ptr %9, align 8, !tbaa !5
  %212 = load i64, ptr %20, align 8, !tbaa !9
  %213 = load i64, ptr %12, align 8, !tbaa !9
  %214 = mul nsw i64 %212, %213
  %215 = add nsw i64 %214, 1
  %216 = getelementptr inbounds %struct.doublecomplex, ptr %211, i64 %215
  %217 = call i32 @zlacgv_(ptr noundef %15, ptr noundef %216, ptr noundef @c__1)
  %218 = load ptr, ptr %8, align 8, !tbaa !5
  %219 = load i64, ptr %218, align 8, !tbaa !9
  %220 = load i64, ptr %20, align 8, !tbaa !9
  %221 = sub nsw i64 %219, %220
  store i64 %221, ptr %15, align 8, !tbaa !9
  %222 = load double, ptr %21, align 8, !tbaa !14
  %223 = fdiv double 1.000000e+00, %222
  store double %223, ptr %17, align 8, !tbaa !14
  %224 = load ptr, ptr %9, align 8, !tbaa !5
  %225 = load i64, ptr %20, align 8, !tbaa !9
  %226 = load i64, ptr %20, align 8, !tbaa !9
  %227 = add nsw i64 %226, 1
  %228 = load i64, ptr %12, align 8, !tbaa !9
  %229 = mul nsw i64 %227, %228
  %230 = add nsw i64 %225, %229
  %231 = getelementptr inbounds %struct.doublecomplex, ptr %224, i64 %230
  %232 = load ptr, ptr %10, align 8, !tbaa !5
  %233 = call i32 @f2c_zdscal(ptr noundef %15, ptr noundef %17, ptr noundef %231, ptr noundef %232)
  br label %234

234:                                              ; preds = %167, %146
  br label %235

235:                                              ; preds = %234
  %236 = load i64, ptr %20, align 8, !tbaa !9
  %237 = add nsw i64 %236, 1
  store i64 %237, ptr %20, align 8, !tbaa !9
  br label %86, !llvm.loop !16

238:                                              ; preds = %86
  br label %392

239:                                              ; preds = %80
  %240 = load ptr, ptr %8, align 8, !tbaa !5
  %241 = load i64, ptr %240, align 8, !tbaa !9
  store i64 %241, ptr %14, align 8, !tbaa !9
  store i64 1, ptr %20, align 8, !tbaa !9
  br label %242

242:                                              ; preds = %388, %239
  %243 = load i64, ptr %20, align 8, !tbaa !9
  %244 = load i64, ptr %14, align 8, !tbaa !9
  %245 = icmp sle i64 %243, %244
  br i1 %245, label %246, label %391

246:                                              ; preds = %242
  %247 = load i64, ptr %20, align 8, !tbaa !9
  %248 = load i64, ptr %20, align 8, !tbaa !9
  %249 = load i64, ptr %12, align 8, !tbaa !9
  %250 = mul nsw i64 %248, %249
  %251 = add nsw i64 %247, %250
  store i64 %251, ptr %15, align 8, !tbaa !9
  %252 = load ptr, ptr %9, align 8, !tbaa !5
  %253 = load i64, ptr %15, align 8, !tbaa !9
  %254 = getelementptr inbounds %struct.doublecomplex, ptr %252, i64 %253
  %255 = getelementptr inbounds %struct.doublecomplex, ptr %254, i32 0, i32 0
  %256 = load double, ptr %255, align 8, !tbaa !11
  store double %256, ptr %17, align 8, !tbaa !14
  %257 = load i64, ptr %20, align 8, !tbaa !9
  %258 = sub nsw i64 %257, 1
  store i64 %258, ptr %16, align 8, !tbaa !9
  %259 = load ptr, ptr %9, align 8, !tbaa !5
  %260 = load i64, ptr %20, align 8, !tbaa !9
  %261 = load i64, ptr %12, align 8, !tbaa !9
  %262 = add nsw i64 %260, %261
  %263 = getelementptr inbounds %struct.doublecomplex, ptr %259, i64 %262
  %264 = load ptr, ptr %10, align 8, !tbaa !5
  %265 = load ptr, ptr %9, align 8, !tbaa !5
  %266 = load i64, ptr %20, align 8, !tbaa !9
  %267 = load i64, ptr %12, align 8, !tbaa !9
  %268 = add nsw i64 %266, %267
  %269 = getelementptr inbounds %struct.doublecomplex, ptr %265, i64 %268
  %270 = load ptr, ptr %10, align 8, !tbaa !5
  call void @f2c_zdotc(ptr noundef %19, ptr noundef %16, ptr noundef %263, ptr noundef %264, ptr noundef %269, ptr noundef %270)
  %271 = load double, ptr %17, align 8, !tbaa !14
  %272 = getelementptr inbounds %struct.doublecomplex, ptr %19, i32 0, i32 0
  %273 = load double, ptr %272, align 8, !tbaa !11
  %274 = fsub double %271, %273
  %275 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  store double %274, ptr %275, align 8, !tbaa !11
  %276 = getelementptr inbounds %struct.doublecomplex, ptr %19, i32 0, i32 1
  %277 = load double, ptr %276, align 8, !tbaa !15
  %278 = fneg double %277
  %279 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  store double %278, ptr %279, align 8, !tbaa !15
  %280 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  %281 = load double, ptr %280, align 8, !tbaa !11
  store double %281, ptr %21, align 8, !tbaa !14
  %282 = load double, ptr %21, align 8, !tbaa !14
  %283 = fcmp ole double %282, 0.000000e+00
  br i1 %283, label %287, label %284

284:                                              ; preds = %246
  %285 = call i64 @disnan_(ptr noundef %21)
  %286 = icmp ne i64 %285, 0
  br i1 %286, label %287, label %302

287:                                              ; preds = %284, %246
  %288 = load i64, ptr %20, align 8, !tbaa !9
  %289 = load i64, ptr %20, align 8, !tbaa !9
  %290 = load i64, ptr %12, align 8, !tbaa !9
  %291 = mul nsw i64 %289, %290
  %292 = add nsw i64 %288, %291
  store i64 %292, ptr %15, align 8, !tbaa !9
  %293 = load double, ptr %21, align 8, !tbaa !14
  %294 = load ptr, ptr %9, align 8, !tbaa !5
  %295 = load i64, ptr %15, align 8, !tbaa !9
  %296 = getelementptr inbounds %struct.doublecomplex, ptr %294, i64 %295
  %297 = getelementptr inbounds %struct.doublecomplex, ptr %296, i32 0, i32 0
  store double %293, ptr %297, align 8, !tbaa !11
  %298 = load ptr, ptr %9, align 8, !tbaa !5
  %299 = load i64, ptr %15, align 8, !tbaa !9
  %300 = getelementptr inbounds %struct.doublecomplex, ptr %298, i64 %299
  %301 = getelementptr inbounds %struct.doublecomplex, ptr %300, i32 0, i32 1
  store double 0.000000e+00, ptr %301, align 8, !tbaa !15
  br label %393

302:                                              ; preds = %284
  %303 = load double, ptr %21, align 8, !tbaa !14
  %304 = call double @sqrt(double noundef %303) #4
  store double %304, ptr %21, align 8, !tbaa !14
  %305 = load i64, ptr %20, align 8, !tbaa !9
  %306 = load i64, ptr %20, align 8, !tbaa !9
  %307 = load i64, ptr %12, align 8, !tbaa !9
  %308 = mul nsw i64 %306, %307
  %309 = add nsw i64 %305, %308
  store i64 %309, ptr %15, align 8, !tbaa !9
  %310 = load double, ptr %21, align 8, !tbaa !14
  %311 = load ptr, ptr %9, align 8, !tbaa !5
  %312 = load i64, ptr %15, align 8, !tbaa !9
  %313 = getelementptr inbounds %struct.doublecomplex, ptr %311, i64 %312
  %314 = getelementptr inbounds %struct.doublecomplex, ptr %313, i32 0, i32 0
  store double %310, ptr %314, align 8, !tbaa !11
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  %316 = load i64, ptr %15, align 8, !tbaa !9
  %317 = getelementptr inbounds %struct.doublecomplex, ptr %315, i64 %316
  %318 = getelementptr inbounds %struct.doublecomplex, ptr %317, i32 0, i32 1
  store double 0.000000e+00, ptr %318, align 8, !tbaa !15
  %319 = load i64, ptr %20, align 8, !tbaa !9
  %320 = load ptr, ptr %8, align 8, !tbaa !5
  %321 = load i64, ptr %320, align 8, !tbaa !9
  %322 = icmp slt i64 %319, %321
  br i1 %322, label %323, label %387

323:                                              ; preds = %302
  %324 = load i64, ptr %20, align 8, !tbaa !9
  %325 = sub nsw i64 %324, 1
  store i64 %325, ptr %15, align 8, !tbaa !9
  %326 = load ptr, ptr %9, align 8, !tbaa !5
  %327 = load i64, ptr %20, align 8, !tbaa !9
  %328 = load i64, ptr %12, align 8, !tbaa !9
  %329 = add nsw i64 %327, %328
  %330 = getelementptr inbounds %struct.doublecomplex, ptr %326, i64 %329
  %331 = load ptr, ptr %10, align 8, !tbaa !5
  %332 = call i32 @zlacgv_(ptr noundef %15, ptr noundef %330, ptr noundef %331)
  %333 = load ptr, ptr %8, align 8, !tbaa !5
  %334 = load i64, ptr %333, align 8, !tbaa !9
  %335 = load i64, ptr %20, align 8, !tbaa !9
  %336 = sub nsw i64 %334, %335
  store i64 %336, ptr %15, align 8, !tbaa !9
  %337 = load i64, ptr %20, align 8, !tbaa !9
  %338 = sub nsw i64 %337, 1
  store i64 %338, ptr %16, align 8, !tbaa !9
  %339 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  store double -1.000000e+00, ptr %339, align 8, !tbaa !11
  %340 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  store double -0.000000e+00, ptr %340, align 8, !tbaa !15
  %341 = load ptr, ptr %9, align 8, !tbaa !5
  %342 = load i64, ptr %20, align 8, !tbaa !9
  %343 = add nsw i64 %342, 1
  %344 = load i64, ptr %12, align 8, !tbaa !9
  %345 = add nsw i64 %343, %344
  %346 = getelementptr inbounds %struct.doublecomplex, ptr %341, i64 %345
  %347 = load ptr, ptr %10, align 8, !tbaa !5
  %348 = load ptr, ptr %9, align 8, !tbaa !5
  %349 = load i64, ptr %20, align 8, !tbaa !9
  %350 = load i64, ptr %12, align 8, !tbaa !9
  %351 = add nsw i64 %349, %350
  %352 = getelementptr inbounds %struct.doublecomplex, ptr %348, i64 %351
  %353 = load ptr, ptr %10, align 8, !tbaa !5
  %354 = load ptr, ptr %9, align 8, !tbaa !5
  %355 = load i64, ptr %20, align 8, !tbaa !9
  %356 = add nsw i64 %355, 1
  %357 = load i64, ptr %20, align 8, !tbaa !9
  %358 = load i64, ptr %12, align 8, !tbaa !9
  %359 = mul nsw i64 %357, %358
  %360 = add nsw i64 %356, %359
  %361 = getelementptr inbounds %struct.doublecomplex, ptr %354, i64 %360
  %362 = call i32 @f2c_zgemv(ptr noundef @.str.4, ptr noundef %15, ptr noundef %16, ptr noundef %18, ptr noundef %346, ptr noundef %347, ptr noundef %352, ptr noundef %353, ptr noundef @c_b1, ptr noundef %361, ptr noundef @c__1)
  %363 = load i64, ptr %20, align 8, !tbaa !9
  %364 = sub nsw i64 %363, 1
  store i64 %364, ptr %15, align 8, !tbaa !9
  %365 = load ptr, ptr %9, align 8, !tbaa !5
  %366 = load i64, ptr %20, align 8, !tbaa !9
  %367 = load i64, ptr %12, align 8, !tbaa !9
  %368 = add nsw i64 %366, %367
  %369 = getelementptr inbounds %struct.doublecomplex, ptr %365, i64 %368
  %370 = load ptr, ptr %10, align 8, !tbaa !5
  %371 = call i32 @zlacgv_(ptr noundef %15, ptr noundef %369, ptr noundef %370)
  %372 = load ptr, ptr %8, align 8, !tbaa !5
  %373 = load i64, ptr %372, align 8, !tbaa !9
  %374 = load i64, ptr %20, align 8, !tbaa !9
  %375 = sub nsw i64 %373, %374
  store i64 %375, ptr %15, align 8, !tbaa !9
  %376 = load double, ptr %21, align 8, !tbaa !14
  %377 = fdiv double 1.000000e+00, %376
  store double %377, ptr %17, align 8, !tbaa !14
  %378 = load ptr, ptr %9, align 8, !tbaa !5
  %379 = load i64, ptr %20, align 8, !tbaa !9
  %380 = add nsw i64 %379, 1
  %381 = load i64, ptr %20, align 8, !tbaa !9
  %382 = load i64, ptr %12, align 8, !tbaa !9
  %383 = mul nsw i64 %381, %382
  %384 = add nsw i64 %380, %383
  %385 = getelementptr inbounds %struct.doublecomplex, ptr %378, i64 %384
  %386 = call i32 @f2c_zdscal(ptr noundef %15, ptr noundef %17, ptr noundef %385, ptr noundef @c__1)
  br label %387

387:                                              ; preds = %323, %302
  br label %388

388:                                              ; preds = %387
  %389 = load i64, ptr %20, align 8, !tbaa !9
  %390 = add nsw i64 %389, 1
  store i64 %390, ptr %20, align 8, !tbaa !9
  br label %242, !llvm.loop !18

391:                                              ; preds = %242
  br label %392

392:                                              ; preds = %391, %238
  br label %396

393:                                              ; preds = %287, %131
  %394 = load i64, ptr %20, align 8, !tbaa !9
  %395 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 %394, ptr %395, align 8, !tbaa !9
  br label %396

396:                                              ; preds = %393, %392
  store i32 0, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %397

397:                                              ; preds = %396, %79, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %398 = load i32, ptr %6, align 4
  ret i32 %398
}

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

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

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

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

declare i64 @disnan_(ptr noundef) #2

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

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

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

declare i32 @f2c_zdscal(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 = { 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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 8}
!13 = !{!"double", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !13, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !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
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@c__1 = external hidden global i64, align 8
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@c_b1 = external hidden global %struct.doublecomplex, align 8
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1

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

17:                                               ; preds = %5
  %18 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #5
  %.not139 = icmp eq i64 %18, 0
  br i1 %.not139, label %.thread.sink.split, label %19

19:                                               ; preds = %17, %5
  %20 = load i64, ptr %1, align 8, !tbaa !5
  %21 = icmp slt i64 %20, 0
  br i1 %21, label %.thread.sink.split, label %22

22:                                               ; preds = %19
  %23 = load i64, ptr %3, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %20, i64 1)
  %24 = icmp slt i64 %23, %spec.select
  br i1 %24, label %.thread.sink.split, label %25

25:                                               ; preds = %22
  %.pr = load i64, ptr %4, align 8, !tbaa !5
  %.not140 = icmp eq i64 %.pr, 0
  br i1 %.not140, label %29, label %.thread

.thread.sink.split:                               ; preds = %22, %19, %17
  %.sink = phi i64 [ -1, %17 ], [ -2, %19 ], [ -4, %22 ]
  store i64 %.sink, ptr %4, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %25
  %26 = phi i64 [ %.pr, %25 ], [ %.sink, %.thread.sink.split ]
  %27 = sub nsw i64 0, %26
  store i64 %27, ptr %6, align 8, !tbaa !5
  %28 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %6) #5
  br label %.loopexit

29:                                               ; preds = %25
  %30 = icmp eq i64 %20, 0
  br i1 %30, label %.loopexit, label %31

31:                                               ; preds = %29
  br i1 %.not, label %.lr.ph158, label %.lr.ph

.lr.ph:                                           ; preds = %31
  %invariant.gep = getelementptr i8, ptr %15, i64 16
  %32 = getelementptr inbounds i8, ptr %11, i64 8
  %33 = getelementptr inbounds i8, ptr %10, i64 8
  br label %34

34:                                               ; preds = %.lr.ph, %70
  %.0136155 = phi i64 [ 1, %.lr.ph ], [ %.pre-phi, %70 ]
  %35 = mul nsw i64 %.0136155, %13
  %36 = add nsw i64 %35, %.0136155
  store i64 %36, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.doublecomplex, ptr %15, i64 %36
  %38 = load double, ptr %37, align 8, !tbaa !9
  store double %38, ptr %9, align 8, !tbaa !12
  %39 = add nsw i64 %.0136155, -1
  store i64 %39, ptr %8, align 8, !tbaa !5
  %gep = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %35
  call void @f2c_zdotc(ptr noundef nonnull %11, ptr noundef nonnull %8, ptr noundef %gep, ptr noundef nonnull @c__1, ptr noundef %gep, ptr noundef nonnull @c__1) #5
  %40 = load double, ptr %9, align 8, !tbaa !12
  %41 = load double, ptr %11, align 8, !tbaa !9
  %42 = fsub double %40, %41
  store double %42, ptr %10, align 16, !tbaa !9
  %43 = load double, ptr %32, align 8, !tbaa !13
  %44 = fneg double %43
  store double %44, ptr %33, align 8, !tbaa !13
  store double %42, ptr %12, align 8, !tbaa !12
  %45 = fcmp ugt double %42, 0.000000e+00
  br i1 %45, label %46, label %48

46:                                               ; preds = %34
  %47 = call i64 @disnan_(ptr noundef nonnull %12) #5
  %.not144 = icmp eq i64 %47, 0
  %.pre = load double, ptr %12, align 8, !tbaa !12
  br i1 %.not144, label %50, label %48

48:                                               ; preds = %46, %34
  %49 = phi double [ %.pre, %46 ], [ %42, %34 ]
  store double %49, ptr %37, align 8, !tbaa !9
  br label %112

50:                                               ; preds = %46
  %51 = call double @sqrt(double noundef %.pre) #5
  store double %51, ptr %12, align 8, !tbaa !12
  store i64 %36, ptr %7, align 8, !tbaa !5
  store double %51, ptr %37, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.doublecomplex, ptr %15, i64 %36, i32 1
  store double 0.000000e+00, ptr %52, align 8, !tbaa !13
  %53 = load i64, ptr %1, align 8, !tbaa !5
  %54 = icmp slt i64 %.0136155, %53
  br i1 %54, label %55, label %._crit_edge

._crit_edge:                                      ; preds = %50
  %.pre170 = add nuw nsw i64 %.0136155, 1
  br label %70

55:                                               ; preds = %50
  store i64 %39, ptr %7, align 8, !tbaa !5
  %56 = call i32 @zlacgv_(ptr noundef nonnull %7, ptr noundef %gep, ptr noundef nonnull @c__1) #5
  store i64 %39, ptr %7, align 8, !tbaa !5
  %57 = load i64, ptr %1, align 8, !tbaa !5
  %58 = sub nsw i64 %57, %.0136155
  store i64 %58, ptr %8, align 8, !tbaa !5
  store <2 x double> <double -1.000000e+00, double -0.000000e+00>, ptr %10, align 16, !tbaa !12
  %59 = add nuw nsw i64 %.0136155, 1
  %60 = mul nsw i64 %59, %13
  %gep153 = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %60
  %61 = getelementptr %struct.doublecomplex, ptr %15, i64 %.0136155
  %62 = getelementptr %struct.doublecomplex, ptr %61, i64 %60
  %63 = call i32 @f2c_zgemv(ptr noundef nonnull @.str.3, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef %gep153, ptr noundef nonnull %3, ptr noundef %gep, ptr noundef nonnull @c__1, ptr noundef nonnull @c_b1, ptr noundef %62, ptr noundef nonnull %3) #5
  store i64 %39, ptr %7, align 8, !tbaa !5
  %64 = call i32 @zlacgv_(ptr noundef nonnull %7, ptr noundef %gep, ptr noundef nonnull @c__1) #5
  %65 = load i64, ptr %1, align 8, !tbaa !5
  %66 = sub nsw i64 %65, %.0136155
  store i64 %66, ptr %7, align 8, !tbaa !5
  %67 = load double, ptr %12, align 8, !tbaa !12
  %68 = fdiv double 1.000000e+00, %67
  store double %68, ptr %9, align 8, !tbaa !12
  %69 = call i32 @f2c_zdscal(ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef %62, ptr noundef nonnull %3) #5
  br label %70

70:                                               ; preds = %._crit_edge, %55
  %.pre-phi = phi i64 [ %.pre170, %._crit_edge ], [ %59, %55 ]
  %.not143.not = icmp slt i64 %.0136155, %20
  br i1 %.not143.not, label %34, label %.loopexit, !llvm.loop !14

.lr.ph158:                                        ; preds = %31
  %71 = getelementptr inbounds i8, ptr %11, i64 8
  %72 = getelementptr inbounds i8, ptr %10, i64 8
  br label %73

73:                                               ; preds = %.lr.ph158, %110
  %.1157 = phi i64 [ 1, %.lr.ph158 ], [ %111, %110 ]
  %74 = mul nsw i64 %.1157, %13
  %75 = add nsw i64 %74, %.1157
  store i64 %75, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.doublecomplex, ptr %15, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !9
  store double %77, ptr %9, align 8, !tbaa !12
  %78 = add nsw i64 %.1157, -1
  store i64 %78, ptr %8, align 8, !tbaa !5
  %79 = getelementptr %struct.doublecomplex, ptr %15, i64 %.1157
  %80 = getelementptr %struct.doublecomplex, ptr %79, i64 %13
  call void @f2c_zdotc(ptr noundef nonnull %11, ptr noundef nonnull %8, ptr noundef %80, ptr noundef nonnull %3, ptr noundef %80, ptr noundef nonnull %3) #5
  %81 = load double, ptr %9, align 8, !tbaa !12
  %82 = load double, ptr %11, align 8, !tbaa !9
  %83 = fsub double %81, %82
  store double %83, ptr %10, align 16, !tbaa !9
  %84 = load double, ptr %71, align 8, !tbaa !13
  %85 = fneg double %84
  store double %85, ptr %72, align 8, !tbaa !13
  store double %83, ptr %12, align 8, !tbaa !12
  %86 = fcmp ugt double %83, 0.000000e+00
  br i1 %86, label %87, label %89

87:                                               ; preds = %73
  %88 = call i64 @disnan_(ptr noundef nonnull %12) #5
  %.not142 = icmp eq i64 %88, 0
  %.pre169 = load double, ptr %12, align 8, !tbaa !12
  br i1 %.not142, label %91, label %89

89:                                               ; preds = %87, %73
  %90 = phi double [ %.pre169, %87 ], [ %83, %73 ]
  store double %90, ptr %76, align 8, !tbaa !9
  br label %112

91:                                               ; preds = %87
  %92 = call double @sqrt(double noundef %.pre169) #5
  store double %92, ptr %12, align 8, !tbaa !12
  store i64 %75, ptr %7, align 8, !tbaa !5
  store double %92, ptr %76, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct.doublecomplex, ptr %15, i64 %75, i32 1
  store double 0.000000e+00, ptr %93, align 8, !tbaa !13
  %94 = load i64, ptr %1, align 8, !tbaa !5
  %95 = icmp slt i64 %.1157, %94
  br i1 %95, label %96, label %110

96:                                               ; preds = %91
  store i64 %78, ptr %7, align 8, !tbaa !5
  %97 = call i32 @zlacgv_(ptr noundef nonnull %7, ptr noundef %80, ptr noundef nonnull %3) #5
  %98 = load i64, ptr %1, align 8, !tbaa !5
  %99 = sub nsw i64 %98, %.1157
  store i64 %99, ptr %7, align 8, !tbaa !5
  store i64 %78, ptr %8, align 8, !tbaa !5
  store <2 x double> <double -1.000000e+00, double -0.000000e+00>, ptr %10, align 16, !tbaa !12
  %100 = getelementptr inbounds %struct.doublecomplex, ptr %2, i64 %.1157
  %101 = getelementptr i8, ptr %79, i64 16
  %102 = getelementptr %struct.doublecomplex, ptr %101, i64 %74
  %103 = call i32 @f2c_zgemv(ptr noundef nonnull @.str.4, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef nonnull %100, ptr noundef nonnull %3, ptr noundef %80, ptr noundef nonnull %3, ptr noundef nonnull @c_b1, ptr noundef %102, ptr noundef nonnull @c__1) #5
  store i64 %78, ptr %7, align 8, !tbaa !5
  %104 = call i32 @zlacgv_(ptr noundef nonnull %7, ptr noundef %80, ptr noundef nonnull %3) #5
  %105 = load i64, ptr %1, align 8, !tbaa !5
  %106 = sub nsw i64 %105, %.1157
  store i64 %106, ptr %7, align 8, !tbaa !5
  %107 = load double, ptr %12, align 8, !tbaa !12
  %108 = fdiv double 1.000000e+00, %107
  store double %108, ptr %9, align 8, !tbaa !12
  %109 = call i32 @f2c_zdscal(ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef %102, ptr noundef nonnull @c__1) #5
  br label %110

110:                                              ; preds = %91, %96
  %111 = add nuw nsw i64 %.1157, 1
  %.not141.not = icmp slt i64 %.1157, %20
  br i1 %.not141.not, label %73, label %.loopexit, !llvm.loop !16

112:                                              ; preds = %89, %48
  %.lcssa173.sink = phi i64 [ %75, %89 ], [ %36, %48 ]
  %.2 = phi i64 [ %.1157, %89 ], [ %.0136155, %48 ]
  %113 = getelementptr inbounds %struct.doublecomplex, ptr %15, i64 %.lcssa173.sink, i32 1
  store double 0.000000e+00, ptr %113, align 8, !tbaa !13
  store i64 %.2, ptr %4, align 8, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %70, %110, %112, %29, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  ret i32 0
}

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

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

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

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

declare i64 @disnan_(ptr noundef) local_unnamed_addr #2

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

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

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

declare i32 @f2c_zdscal(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 nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #4

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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

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


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