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

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

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

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

43:                                               ; preds = %39
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 -1, ptr %44, align 8, !tbaa !9
  br label %69

45:                                               ; preds = %39, %6
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load i64, ptr %46, align 8, !tbaa !9
  %48 = icmp slt i64 %47, 0
  br i1 %48, label %49, label %51

49:                                               ; preds = %45
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 -2, ptr %50, align 8, !tbaa !9
  br label %68

51:                                               ; preds = %45
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = icmp slt i64 %53, 0
  br i1 %54, label %55, label %57

55:                                               ; preds = %51
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 -3, ptr %56, align 8, !tbaa !9
  br label %67

57:                                               ; preds = %51
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = load i64, ptr %58, align 8, !tbaa !9
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = load i64, ptr %60, align 8, !tbaa !9
  %62 = add nsw i64 %61, 1
  %63 = icmp slt i64 %59, %62
  br i1 %63, label %64, label %66

64:                                               ; preds = %57
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 -5, ptr %65, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %64, %57
  br label %67

67:                                               ; preds = %66, %55
  br label %68

68:                                               ; preds = %67, %49
  br label %69

69:                                               ; preds = %68, %43
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = load i64, ptr %70, align 8, !tbaa !9
  %72 = icmp ne i64 %71, 0
  br i1 %72, label %73, label %78

73:                                               ; preds = %69
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  %75 = load i64, ptr %74, align 8, !tbaa !9
  %76 = sub nsw i64 0, %75
  store i64 %76, ptr %16, align 8, !tbaa !9
  %77 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %16)
  store i32 0, ptr %7, align 4
  store i32 1, ptr %25, align 4
  br label %330

78:                                               ; preds = %69
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = icmp eq i64 %80, 0
  br i1 %81, label %82, label %83

82:                                               ; preds = %78
  store i32 0, ptr %7, align 4
  store i32 1, ptr %25, align 4
  br label %330

83:                                               ; preds = %78
  store i64 1, ptr %16, align 8, !tbaa !9
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = load i64, ptr %84, align 8, !tbaa !9
  %86 = sub nsw i64 %85, 1
  store i64 %86, ptr %17, align 8, !tbaa !9
  %87 = load i64, ptr %16, align 8, !tbaa !9
  %88 = load i64, ptr %17, align 8, !tbaa !9
  %89 = icmp sge i64 %87, %88
  br i1 %89, label %90, label %92

90:                                               ; preds = %83
  %91 = load i64, ptr %16, align 8, !tbaa !9
  br label %94

92:                                               ; preds = %83
  %93 = load i64, ptr %17, align 8, !tbaa !9
  br label %94

94:                                               ; preds = %92, %90
  %95 = phi i64 [ %91, %90 ], [ %93, %92 ]
  store i64 %95, ptr %23, align 8, !tbaa !9
  %96 = load i64, ptr %24, align 8, !tbaa !9
  %97 = icmp ne i64 %96, 0
  br i1 %97, label %98, label %231

98:                                               ; preds = %94
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = load i64, ptr %99, align 8, !tbaa !9
  store i64 %100, ptr %16, align 8, !tbaa !9
  store i64 1, ptr %20, align 8, !tbaa !9
  br label %101

101:                                              ; preds = %227, %98
  %102 = load i64, ptr %20, align 8, !tbaa !9
  %103 = load i64, ptr %16, align 8, !tbaa !9
  %104 = icmp sle i64 %102, %103
  br i1 %104, label %105, label %230

105:                                              ; preds = %101
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = load i64, ptr %106, align 8, !tbaa !9
  %108 = add nsw i64 %107, 1
  %109 = load i64, ptr %20, align 8, !tbaa !9
  %110 = load i64, ptr %14, align 8, !tbaa !9
  %111 = mul nsw i64 %109, %110
  %112 = add nsw i64 %108, %111
  store i64 %112, ptr %17, align 8, !tbaa !9
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = load i64, ptr %17, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct.doublecomplex, ptr %113, i64 %114
  %116 = getelementptr inbounds %struct.doublecomplex, ptr %115, i32 0, i32 0
  %117 = load double, ptr %116, align 8, !tbaa !11
  store double %117, ptr %22, align 8, !tbaa !14
  %118 = load double, ptr %22, align 8, !tbaa !14
  %119 = fcmp ole double %118, 0.000000e+00
  br i1 %119, label %120, label %137

120:                                              ; preds = %105
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = load i64, ptr %121, align 8, !tbaa !9
  %123 = add nsw i64 %122, 1
  %124 = load i64, ptr %20, align 8, !tbaa !9
  %125 = load i64, ptr %14, align 8, !tbaa !9
  %126 = mul nsw i64 %124, %125
  %127 = add nsw i64 %123, %126
  store i64 %127, ptr %17, align 8, !tbaa !9
  %128 = load double, ptr %22, align 8, !tbaa !14
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = load i64, ptr %17, align 8, !tbaa !9
  %131 = getelementptr inbounds %struct.doublecomplex, ptr %129, i64 %130
  %132 = getelementptr inbounds %struct.doublecomplex, ptr %131, i32 0, i32 0
  store double %128, ptr %132, align 8, !tbaa !11
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = load i64, ptr %17, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.doublecomplex, ptr %133, i64 %134
  %136 = getelementptr inbounds %struct.doublecomplex, ptr %135, i32 0, i32 1
  store double 0.000000e+00, ptr %136, align 8, !tbaa !15
  br label %327

137:                                              ; preds = %105
  %138 = load double, ptr %22, align 8, !tbaa !14
  %139 = call double @sqrt(double noundef %138) #4
  store double %139, ptr %22, align 8, !tbaa !14
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = load i64, ptr %140, align 8, !tbaa !9
  %142 = add nsw i64 %141, 1
  %143 = load i64, ptr %20, align 8, !tbaa !9
  %144 = load i64, ptr %14, align 8, !tbaa !9
  %145 = mul nsw i64 %143, %144
  %146 = add nsw i64 %142, %145
  store i64 %146, ptr %17, align 8, !tbaa !9
  %147 = load double, ptr %22, align 8, !tbaa !14
  %148 = load ptr, ptr %11, align 8, !tbaa !5
  %149 = load i64, ptr %17, align 8, !tbaa !9
  %150 = getelementptr inbounds %struct.doublecomplex, ptr %148, i64 %149
  %151 = getelementptr inbounds %struct.doublecomplex, ptr %150, i32 0, i32 0
  store double %147, ptr %151, align 8, !tbaa !11
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = load i64, ptr %17, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.doublecomplex, ptr %152, i64 %153
  %155 = getelementptr inbounds %struct.doublecomplex, ptr %154, i32 0, i32 1
  store double 0.000000e+00, ptr %155, align 8, !tbaa !15
  %156 = load ptr, ptr %10, align 8, !tbaa !5
  %157 = load i64, ptr %156, align 8, !tbaa !9
  store i64 %157, ptr %17, align 8, !tbaa !9
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  %159 = load i64, ptr %158, align 8, !tbaa !9
  %160 = load i64, ptr %20, align 8, !tbaa !9
  %161 = sub nsw i64 %159, %160
  store i64 %161, ptr %18, align 8, !tbaa !9
  %162 = load i64, ptr %17, align 8, !tbaa !9
  %163 = load i64, ptr %18, align 8, !tbaa !9
  %164 = icmp sle i64 %162, %163
  br i1 %164, label %165, label %167

165:                                              ; preds = %137
  %166 = load i64, ptr %17, align 8, !tbaa !9
  br label %169

167:                                              ; preds = %137
  %168 = load i64, ptr %18, align 8, !tbaa !9
  br label %169

169:                                              ; preds = %167, %165
  %170 = phi i64 [ %166, %165 ], [ %168, %167 ]
  store i64 %170, ptr %21, align 8, !tbaa !9
  %171 = load i64, ptr %21, align 8, !tbaa !9
  %172 = icmp sgt i64 %171, 0
  br i1 %172, label %173, label %226

173:                                              ; preds = %169
  %174 = load double, ptr %22, align 8, !tbaa !14
  %175 = fdiv double 1.000000e+00, %174
  store double %175, ptr %19, align 8, !tbaa !14
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = load i64, ptr %177, align 8, !tbaa !9
  %179 = load i64, ptr %20, align 8, !tbaa !9
  %180 = add nsw i64 %179, 1
  %181 = load i64, ptr %14, align 8, !tbaa !9
  %182 = mul nsw i64 %180, %181
  %183 = add nsw i64 %178, %182
  %184 = getelementptr inbounds %struct.doublecomplex, ptr %176, i64 %183
  %185 = call i32 @f2c_zdscal(ptr noundef %21, ptr noundef %19, ptr noundef %184, ptr noundef %23)
  %186 = load ptr, ptr %11, align 8, !tbaa !5
  %187 = load ptr, ptr %10, align 8, !tbaa !5
  %188 = load i64, ptr %187, align 8, !tbaa !9
  %189 = load i64, ptr %20, align 8, !tbaa !9
  %190 = add nsw i64 %189, 1
  %191 = load i64, ptr %14, align 8, !tbaa !9
  %192 = mul nsw i64 %190, %191
  %193 = add nsw i64 %188, %192
  %194 = getelementptr inbounds %struct.doublecomplex, ptr %186, i64 %193
  %195 = call i32 @zlacgv_(ptr noundef %21, ptr noundef %194, ptr noundef %23)
  %196 = load ptr, ptr %11, align 8, !tbaa !5
  %197 = load ptr, ptr %10, align 8, !tbaa !5
  %198 = load i64, ptr %197, align 8, !tbaa !9
  %199 = load i64, ptr %20, align 8, !tbaa !9
  %200 = add nsw i64 %199, 1
  %201 = load i64, ptr %14, align 8, !tbaa !9
  %202 = mul nsw i64 %200, %201
  %203 = add nsw i64 %198, %202
  %204 = getelementptr inbounds %struct.doublecomplex, ptr %196, i64 %203
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = load ptr, ptr %10, align 8, !tbaa !5
  %207 = load i64, ptr %206, align 8, !tbaa !9
  %208 = add nsw i64 %207, 1
  %209 = load i64, ptr %20, align 8, !tbaa !9
  %210 = add nsw i64 %209, 1
  %211 = load i64, ptr %14, align 8, !tbaa !9
  %212 = mul nsw i64 %210, %211
  %213 = add nsw i64 %208, %212
  %214 = getelementptr inbounds %struct.doublecomplex, ptr %205, i64 %213
  %215 = call i32 @f2c_zher(ptr noundef @.str.3, ptr noundef %21, ptr noundef @c_b8, ptr noundef %204, ptr noundef %23, ptr noundef %214, ptr noundef %23)
  %216 = load ptr, ptr %11, align 8, !tbaa !5
  %217 = load ptr, ptr %10, align 8, !tbaa !5
  %218 = load i64, ptr %217, align 8, !tbaa !9
  %219 = load i64, ptr %20, align 8, !tbaa !9
  %220 = add nsw i64 %219, 1
  %221 = load i64, ptr %14, align 8, !tbaa !9
  %222 = mul nsw i64 %220, %221
  %223 = add nsw i64 %218, %222
  %224 = getelementptr inbounds %struct.doublecomplex, ptr %216, i64 %223
  %225 = call i32 @zlacgv_(ptr noundef %21, ptr noundef %224, ptr noundef %23)
  br label %226

226:                                              ; preds = %173, %169
  br label %227

227:                                              ; preds = %226
  %228 = load i64, ptr %20, align 8, !tbaa !9
  %229 = add nsw i64 %228, 1
  store i64 %229, ptr %20, align 8, !tbaa !9
  br label %101, !llvm.loop !16

230:                                              ; preds = %101
  br label %326

231:                                              ; preds = %94
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  %233 = load i64, ptr %232, align 8, !tbaa !9
  store i64 %233, ptr %16, align 8, !tbaa !9
  store i64 1, ptr %20, align 8, !tbaa !9
  br label %234

234:                                              ; preds = %322, %231
  %235 = load i64, ptr %20, align 8, !tbaa !9
  %236 = load i64, ptr %16, align 8, !tbaa !9
  %237 = icmp sle i64 %235, %236
  br i1 %237, label %238, label %325

238:                                              ; preds = %234
  %239 = load i64, ptr %20, align 8, !tbaa !9
  %240 = load i64, ptr %14, align 8, !tbaa !9
  %241 = mul nsw i64 %239, %240
  %242 = add nsw i64 %241, 1
  store i64 %242, ptr %17, align 8, !tbaa !9
  %243 = load ptr, ptr %11, align 8, !tbaa !5
  %244 = load i64, ptr %17, align 8, !tbaa !9
  %245 = getelementptr inbounds %struct.doublecomplex, ptr %243, i64 %244
  %246 = getelementptr inbounds %struct.doublecomplex, ptr %245, i32 0, i32 0
  %247 = load double, ptr %246, align 8, !tbaa !11
  store double %247, ptr %22, align 8, !tbaa !14
  %248 = load double, ptr %22, align 8, !tbaa !14
  %249 = fcmp ole double %248, 0.000000e+00
  br i1 %249, label %250, label %264

250:                                              ; preds = %238
  %251 = load i64, ptr %20, align 8, !tbaa !9
  %252 = load i64, ptr %14, align 8, !tbaa !9
  %253 = mul nsw i64 %251, %252
  %254 = add nsw i64 %253, 1
  store i64 %254, ptr %17, align 8, !tbaa !9
  %255 = load double, ptr %22, align 8, !tbaa !14
  %256 = load ptr, ptr %11, align 8, !tbaa !5
  %257 = load i64, ptr %17, align 8, !tbaa !9
  %258 = getelementptr inbounds %struct.doublecomplex, ptr %256, i64 %257
  %259 = getelementptr inbounds %struct.doublecomplex, ptr %258, i32 0, i32 0
  store double %255, ptr %259, align 8, !tbaa !11
  %260 = load ptr, ptr %11, align 8, !tbaa !5
  %261 = load i64, ptr %17, align 8, !tbaa !9
  %262 = getelementptr inbounds %struct.doublecomplex, ptr %260, i64 %261
  %263 = getelementptr inbounds %struct.doublecomplex, ptr %262, i32 0, i32 1
  store double 0.000000e+00, ptr %263, align 8, !tbaa !15
  br label %327

264:                                              ; preds = %238
  %265 = load double, ptr %22, align 8, !tbaa !14
  %266 = call double @sqrt(double noundef %265) #4
  store double %266, ptr %22, align 8, !tbaa !14
  %267 = load i64, ptr %20, align 8, !tbaa !9
  %268 = load i64, ptr %14, align 8, !tbaa !9
  %269 = mul nsw i64 %267, %268
  %270 = add nsw i64 %269, 1
  store i64 %270, ptr %17, align 8, !tbaa !9
  %271 = load double, ptr %22, align 8, !tbaa !14
  %272 = load ptr, ptr %11, align 8, !tbaa !5
  %273 = load i64, ptr %17, align 8, !tbaa !9
  %274 = getelementptr inbounds %struct.doublecomplex, ptr %272, i64 %273
  %275 = getelementptr inbounds %struct.doublecomplex, ptr %274, i32 0, i32 0
  store double %271, ptr %275, align 8, !tbaa !11
  %276 = load ptr, ptr %11, align 8, !tbaa !5
  %277 = load i64, ptr %17, align 8, !tbaa !9
  %278 = getelementptr inbounds %struct.doublecomplex, ptr %276, i64 %277
  %279 = getelementptr inbounds %struct.doublecomplex, ptr %278, i32 0, i32 1
  store double 0.000000e+00, ptr %279, align 8, !tbaa !15
  %280 = load ptr, ptr %10, align 8, !tbaa !5
  %281 = load i64, ptr %280, align 8, !tbaa !9
  store i64 %281, ptr %17, align 8, !tbaa !9
  %282 = load ptr, ptr %9, align 8, !tbaa !5
  %283 = load i64, ptr %282, align 8, !tbaa !9
  %284 = load i64, ptr %20, align 8, !tbaa !9
  %285 = sub nsw i64 %283, %284
  store i64 %285, ptr %18, align 8, !tbaa !9
  %286 = load i64, ptr %17, align 8, !tbaa !9
  %287 = load i64, ptr %18, align 8, !tbaa !9
  %288 = icmp sle i64 %286, %287
  br i1 %288, label %289, label %291

289:                                              ; preds = %264
  %290 = load i64, ptr %17, align 8, !tbaa !9
  br label %293

291:                                              ; preds = %264
  %292 = load i64, ptr %18, align 8, !tbaa !9
  br label %293

293:                                              ; preds = %291, %289
  %294 = phi i64 [ %290, %289 ], [ %292, %291 ]
  store i64 %294, ptr %21, align 8, !tbaa !9
  %295 = load i64, ptr %21, align 8, !tbaa !9
  %296 = icmp sgt i64 %295, 0
  br i1 %296, label %297, label %321

297:                                              ; preds = %293
  %298 = load double, ptr %22, align 8, !tbaa !14
  %299 = fdiv double 1.000000e+00, %298
  store double %299, ptr %19, align 8, !tbaa !14
  %300 = load ptr, ptr %11, align 8, !tbaa !5
  %301 = load i64, ptr %20, align 8, !tbaa !9
  %302 = load i64, ptr %14, align 8, !tbaa !9
  %303 = mul nsw i64 %301, %302
  %304 = add nsw i64 %303, 2
  %305 = getelementptr inbounds %struct.doublecomplex, ptr %300, i64 %304
  %306 = call i32 @f2c_zdscal(ptr noundef %21, ptr noundef %19, ptr noundef %305, ptr noundef @c__1)
  %307 = load ptr, ptr %11, align 8, !tbaa !5
  %308 = load i64, ptr %20, align 8, !tbaa !9
  %309 = load i64, ptr %14, align 8, !tbaa !9
  %310 = mul nsw i64 %308, %309
  %311 = add nsw i64 %310, 2
  %312 = getelementptr inbounds %struct.doublecomplex, ptr %307, i64 %311
  %313 = load ptr, ptr %11, align 8, !tbaa !5
  %314 = load i64, ptr %20, align 8, !tbaa !9
  %315 = add nsw i64 %314, 1
  %316 = load i64, ptr %14, align 8, !tbaa !9
  %317 = mul nsw i64 %315, %316
  %318 = add nsw i64 %317, 1
  %319 = getelementptr inbounds %struct.doublecomplex, ptr %313, i64 %318
  %320 = call i32 @f2c_zher(ptr noundef @.str.4, ptr noundef %21, ptr noundef @c_b8, ptr noundef %312, ptr noundef @c__1, ptr noundef %319, ptr noundef %23)
  br label %321

321:                                              ; preds = %297, %293
  br label %322

322:                                              ; preds = %321
  %323 = load i64, ptr %20, align 8, !tbaa !9
  %324 = add nsw i64 %323, 1
  store i64 %324, ptr %20, align 8, !tbaa !9
  br label %234, !llvm.loop !18

325:                                              ; preds = %234
  br label %326

326:                                              ; preds = %325, %230
  store i32 0, ptr %7, align 4
  store i32 1, ptr %25, align 4
  br label %330

327:                                              ; preds = %250, %120
  %328 = load i64, ptr %20, align 8, !tbaa !9
  %329 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 %328, ptr %329, align 8, !tbaa !9
  store i32 0, ptr %7, align 4
  store i32 1, ptr %25, align 4
  br label %330

330:                                              ; preds = %327, %326, %82, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  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 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  %331 = load i32, ptr %7, align 4
  ret i32 %331
}

; 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

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

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

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

declare i32 @f2c_zher(ptr noundef, ptr noundef, ptr noundef, 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
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@c_b8 = external hidden global double, align 8
@c__1 = external hidden global i64, align 8
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

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

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

23:                                               ; preds = %20
  %24 = load i64, ptr %4, align 8, !tbaa !5
  %.not124 = icmp sgt i64 %24, %21
  br i1 %.not124, label %25, label %.thread.sink.split

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

.thread.sink.split:                               ; preds = %23, %20, %17, %15
  %.sink = phi i64 [ -1, %15 ], [ -2, %17 ], [ -3, %20 ], [ -5, %23 ]
  store i64 %.sink, ptr %5, 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 %7, align 8, !tbaa !5
  %28 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %7) #5
  br label %.loopexit

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

31:                                               ; preds = %29
  %32 = add nsw i64 %24, -1
  %33 = icmp ult i64 %24, 3
  %34 = select i1 %33, i64 1, i64 %32
  store i64 %34, ptr %10, align 8, !tbaa !5
  %invariant.gep137 = getelementptr i8, ptr %13, i64 16
  br i1 %.not, label %.lr.ph141, label %.lr.ph

.lr.ph:                                           ; preds = %31, %73
  %.0119136 = phi i64 [ %.pre-phi150, %73 ], [ 1, %31 ]
  %35 = load i64, ptr %2, align 8, !tbaa !5
  %36 = mul nsw i64 %.0119136, %11
  %gep = getelementptr %struct.doublecomplex, ptr %invariant.gep137, i64 %35
  %37 = getelementptr %struct.doublecomplex, ptr %gep, i64 %36
  %38 = load double, ptr %37, align 8, !tbaa !9
  %39 = fcmp ugt double %38, 0.000000e+00
  br i1 %39, label %42, label %40

40:                                               ; preds = %.lr.ph
  %41 = getelementptr inbounds i8, ptr %37, i64 8
  br label %97

42:                                               ; preds = %.lr.ph
  %43 = call double @sqrt(double noundef %38) #5
  %44 = load i64, ptr %2, align 8, !tbaa !5
  %45 = getelementptr %struct.doublecomplex, ptr %13, i64 %44
  %46 = getelementptr i8, ptr %45, i64 16
  %47 = getelementptr %struct.doublecomplex, ptr %46, i64 %36
  store double %43, ptr %47, align 8, !tbaa !9
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  store double 0.000000e+00, ptr %48, align 8, !tbaa !12
  %49 = load i64, ptr %1, align 8, !tbaa !5
  %50 = sub nsw i64 %49, %.0119136
  %51 = call i64 @llvm.smin.i64(i64 %44, i64 %50)
  store i64 %51, ptr %9, align 8, !tbaa !5
  %52 = icmp sgt i64 %51, 0
  br i1 %52, label %53, label %._crit_edge

._crit_edge:                                      ; preds = %42
  %.pre149 = add nuw nsw i64 %.0119136, 1
  br label %73

53:                                               ; preds = %42
  %54 = fdiv double 1.000000e+00, %43
  store double %54, ptr %8, align 8, !tbaa !13
  %55 = add nuw nsw i64 %.0119136, 1
  %56 = mul nsw i64 %55, %11
  %57 = getelementptr %struct.doublecomplex, ptr %45, i64 %56
  %58 = call i32 @f2c_zdscal(ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef %57, ptr noundef nonnull %10) #5
  %59 = load i64, ptr %2, align 8, !tbaa !5
  %60 = getelementptr %struct.doublecomplex, ptr %13, i64 %59
  %61 = getelementptr %struct.doublecomplex, ptr %60, i64 %56
  %62 = call i32 @zlacgv_(ptr noundef nonnull %9, ptr noundef %61, ptr noundef nonnull %10) #5
  %63 = load i64, ptr %2, align 8, !tbaa !5
  %64 = getelementptr %struct.doublecomplex, ptr %13, i64 %63
  %65 = getelementptr %struct.doublecomplex, ptr %64, i64 %56
  %66 = getelementptr i8, ptr %64, i64 16
  %67 = getelementptr %struct.doublecomplex, ptr %66, i64 %56
  %68 = call i32 @f2c_zher(ptr noundef nonnull @.str.3, ptr noundef nonnull %9, ptr noundef nonnull @c_b8, ptr noundef %65, ptr noundef nonnull %10, ptr noundef %67, ptr noundef nonnull %10) #5
  %69 = load i64, ptr %2, align 8, !tbaa !5
  %70 = getelementptr %struct.doublecomplex, ptr %13, i64 %69
  %71 = getelementptr %struct.doublecomplex, ptr %70, i64 %56
  %72 = call i32 @zlacgv_(ptr noundef nonnull %9, ptr noundef %71, ptr noundef nonnull %10) #5
  br label %73

73:                                               ; preds = %._crit_edge, %53
  %.pre-phi150 = phi i64 [ %.pre149, %._crit_edge ], [ %55, %53 ]
  %.not128.not = icmp slt i64 %.0119136, %18
  br i1 %.not128.not, label %.lr.ph, label %.loopexit, !llvm.loop !14

.lr.ph141:                                        ; preds = %31, %96
  %.1140 = phi i64 [ %.pre-phi, %96 ], [ 1, %31 ]
  %74 = mul nsw i64 %.1140, %11
  %75 = getelementptr %struct.doublecomplex, ptr %13, i64 %74
  %76 = getelementptr i8, ptr %75, i64 16
  %77 = load double, ptr %76, align 8, !tbaa !9
  %78 = fcmp ugt double %77, 0.000000e+00
  br i1 %78, label %81, label %79

79:                                               ; preds = %.lr.ph141
  %80 = getelementptr i8, ptr %75, i64 24
  br label %97

81:                                               ; preds = %.lr.ph141
  %82 = call double @sqrt(double noundef %77) #5
  store double %82, ptr %76, align 8, !tbaa !9
  %83 = getelementptr i8, ptr %75, i64 24
  store double 0.000000e+00, ptr %83, align 8, !tbaa !12
  %84 = load i64, ptr %2, align 8, !tbaa !5
  %85 = load i64, ptr %1, align 8, !tbaa !5
  %86 = sub nsw i64 %85, %.1140
  %87 = call i64 @llvm.smin.i64(i64 %84, i64 %86)
  store i64 %87, ptr %9, align 8, !tbaa !5
  %88 = icmp sgt i64 %87, 0
  br i1 %88, label %89, label %._crit_edge148

._crit_edge148:                                   ; preds = %81
  %.pre = add nuw nsw i64 %.1140, 1
  br label %96

89:                                               ; preds = %81
  %90 = fdiv double 1.000000e+00, %82
  store double %90, ptr %8, align 8, !tbaa !13
  %91 = getelementptr i8, ptr %75, i64 32
  %92 = call i32 @f2c_zdscal(ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef %91, ptr noundef nonnull @c__1) #5
  %93 = add nuw nsw i64 %.1140, 1
  %94 = mul nsw i64 %93, %11
  %gep138 = getelementptr %struct.doublecomplex, ptr %invariant.gep137, i64 %94
  %95 = call i32 @f2c_zher(ptr noundef nonnull @.str.4, ptr noundef nonnull %9, ptr noundef nonnull @c_b8, ptr noundef %91, ptr noundef nonnull @c__1, ptr noundef %gep138, ptr noundef nonnull %10) #5
  br label %96

96:                                               ; preds = %._crit_edge148, %89
  %.pre-phi = phi i64 [ %.pre, %._crit_edge148 ], [ %93, %89 ]
  %.not126.not = icmp slt i64 %.1140, %18
  br i1 %.not126.not, label %.lr.ph141, label %.loopexit, !llvm.loop !16

97:                                               ; preds = %79, %40
  %.sink157 = phi ptr [ %80, %79 ], [ %41, %40 ]
  %.2 = phi i64 [ %.1140, %79 ], [ %.0119136, %40 ]
  store double 0.000000e+00, ptr %.sink157, align 8, !tbaa !12
  store i64 %.2, ptr %5, align 8, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %73, %96, %29, %97, %.thread
  call void @llvm.lifetime.end.p0(i64 8, 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
  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

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

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

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

declare i32 @f2c_zher(ptr noundef, ptr noundef, ptr noundef, 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.smin.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 = !{!10, !11, i64 8}
!13 = !{!11, !11, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


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