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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @ztbcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #0 {
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca double, align 8
  %33 = alloca [3 x i64], align 16
  %34 = alloca double, align 8
  %35 = alloca i64, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca i64, align 8
  %39 = alloca [1 x i8], align 1
  %40 = alloca double, align 8
  %41 = alloca i64, align 8
  %42 = alloca i32, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store ptr %3, ptr %16, align 8, !tbaa !5
  store ptr %4, ptr %17, align 8, !tbaa !5
  store ptr %5, ptr %18, align 8, !tbaa !5
  store ptr %6, ptr %19, align 8, !tbaa !5
  store ptr %7, ptr %20, align 8, !tbaa !5
  store ptr %8, ptr %21, align 8, !tbaa !5
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #3
  %43 = load ptr, ptr %19, align 8, !tbaa !5
  %44 = load i64, ptr %43, align 8, !tbaa !9
  store i64 %44, ptr %24, align 8, !tbaa !9
  %45 = load i64, ptr %24, align 8, !tbaa !9
  %46 = add nsw i64 1, %45
  store i64 %46, ptr %25, align 8, !tbaa !9
  %47 = load i64, ptr %25, align 8, !tbaa !9
  %48 = load ptr, ptr %18, align 8, !tbaa !5
  %49 = sub i64 0, %47
  %50 = getelementptr inbounds %struct.doublecomplex, ptr %48, i64 %49
  store ptr %50, ptr %18, align 8, !tbaa !5
  %51 = load ptr, ptr %21, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.doublecomplex, ptr %51, i32 -1
  store ptr %52, ptr %21, align 8, !tbaa !5
  %53 = load ptr, ptr %22, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %53, i32 -1
  store ptr %54, ptr %22, align 8, !tbaa !5
  %55 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 0, ptr %55, align 8, !tbaa !9
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  %57 = call i64 @lsame_(ptr noundef %56, ptr noundef @.str)
  store i64 %57, ptr %35, align 8, !tbaa !9
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = load i8, ptr %58, align 1, !tbaa !11
  %60 = zext i8 %59 to i32
  %61 = icmp eq i32 %60, 49
  br i1 %61, label %66, label %62

62:                                               ; preds = %11
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = call i64 @lsame_(ptr noundef %63, ptr noundef @.str.1)
  %65 = icmp ne i64 %64, 0
  br label %66

66:                                               ; preds = %62, %11
  %67 = phi i1 [ true, %11 ], [ %65, %62 ]
  %68 = zext i1 %67 to i32
  %69 = sext i32 %68 to i64
  store i64 %69, ptr %38, align 8, !tbaa !9
  %70 = load ptr, ptr %15, align 8, !tbaa !5
  %71 = call i64 @lsame_(ptr noundef %70, ptr noundef @.str.2)
  store i64 %71, ptr %41, align 8, !tbaa !9
  %72 = load i64, ptr %38, align 8, !tbaa !9
  %73 = icmp ne i64 %72, 0
  br i1 %73, label %80, label %74

74:                                               ; preds = %66
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = call i64 @lsame_(ptr noundef %75, ptr noundef @.str.3)
  %77 = icmp ne i64 %76, 0
  br i1 %77, label %80, label %78

78:                                               ; preds = %74
  %79 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -1, ptr %79, align 8, !tbaa !9
  br label %124

80:                                               ; preds = %74, %66
  %81 = load i64, ptr %35, align 8, !tbaa !9
  %82 = icmp ne i64 %81, 0
  br i1 %82, label %89, label %83

83:                                               ; preds = %80
  %84 = load ptr, ptr %14, align 8, !tbaa !5
  %85 = call i64 @lsame_(ptr noundef %84, ptr noundef @.str.4)
  %86 = icmp ne i64 %85, 0
  br i1 %86, label %89, label %87

87:                                               ; preds = %83
  %88 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -2, ptr %88, align 8, !tbaa !9
  br label %123

89:                                               ; preds = %83, %80
  %90 = load i64, ptr %41, align 8, !tbaa !9
  %91 = icmp ne i64 %90, 0
  br i1 %91, label %98, label %92

92:                                               ; preds = %89
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = call i64 @lsame_(ptr noundef %93, ptr noundef @.str)
  %95 = icmp ne i64 %94, 0
  br i1 %95, label %98, label %96

96:                                               ; preds = %92
  %97 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -3, ptr %97, align 8, !tbaa !9
  br label %122

98:                                               ; preds = %92, %89
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = icmp slt i64 %100, 0
  br i1 %101, label %102, label %104

102:                                              ; preds = %98
  %103 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -4, ptr %103, align 8, !tbaa !9
  br label %121

104:                                              ; preds = %98
  %105 = load ptr, ptr %17, align 8, !tbaa !5
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = icmp slt i64 %106, 0
  br i1 %107, label %108, label %110

108:                                              ; preds = %104
  %109 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -5, ptr %109, align 8, !tbaa !9
  br label %120

110:                                              ; preds = %104
  %111 = load ptr, ptr %19, align 8, !tbaa !5
  %112 = load i64, ptr %111, align 8, !tbaa !9
  %113 = load ptr, ptr %17, align 8, !tbaa !5
  %114 = load i64, ptr %113, align 8, !tbaa !9
  %115 = add nsw i64 %114, 1
  %116 = icmp slt i64 %112, %115
  br i1 %116, label %117, label %119

117:                                              ; preds = %110
  %118 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -7, ptr %118, align 8, !tbaa !9
  br label %119

119:                                              ; preds = %117, %110
  br label %120

120:                                              ; preds = %119, %108
  br label %121

121:                                              ; preds = %120, %102
  br label %122

122:                                              ; preds = %121, %96
  br label %123

123:                                              ; preds = %122, %87
  br label %124

124:                                              ; preds = %123, %78
  %125 = load ptr, ptr %23, align 8, !tbaa !5
  %126 = load i64, ptr %125, align 8, !tbaa !9
  %127 = icmp ne i64 %126, 0
  br i1 %127, label %128, label %133

128:                                              ; preds = %124
  %129 = load ptr, ptr %23, align 8, !tbaa !5
  %130 = load i64, ptr %129, align 8, !tbaa !9
  %131 = sub nsw i64 0, %130
  store i64 %131, ptr %26, align 8, !tbaa !9
  %132 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %26)
  store i32 0, ptr %12, align 4
  store i32 1, ptr %42, align 4
  br label %288

133:                                              ; preds = %124
  %134 = load ptr, ptr %16, align 8, !tbaa !5
  %135 = load i64, ptr %134, align 8, !tbaa !9
  %136 = icmp eq i64 %135, 0
  br i1 %136, label %137, label %139

137:                                              ; preds = %133
  %138 = load ptr, ptr %20, align 8, !tbaa !5
  store double 1.000000e+00, ptr %138, align 8, !tbaa !12
  store i32 0, ptr %12, align 4
  store i32 1, ptr %42, align 4
  br label %288

139:                                              ; preds = %133
  %140 = load ptr, ptr %20, align 8, !tbaa !5
  store double 0.000000e+00, ptr %140, align 8, !tbaa !12
  %141 = call double @dlamch_(ptr noundef @.str.6)
  %142 = load ptr, ptr %16, align 8, !tbaa !5
  %143 = load i64, ptr %142, align 8, !tbaa !9
  %144 = icmp sge i64 %143, 1
  br i1 %144, label %145, label %148

145:                                              ; preds = %139
  %146 = load ptr, ptr %16, align 8, !tbaa !5
  %147 = load i64, ptr %146, align 8, !tbaa !9
  br label %149

148:                                              ; preds = %139
  br label %149

149:                                              ; preds = %148, %145
  %150 = phi i64 [ %147, %145 ], [ 1, %148 ]
  %151 = sitofp i64 %150 to double
  %152 = fmul double %141, %151
  store double %152, ptr %40, align 8, !tbaa !12
  %153 = load ptr, ptr %13, align 8, !tbaa !5
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = load ptr, ptr %15, align 8, !tbaa !5
  %156 = load ptr, ptr %16, align 8, !tbaa !5
  %157 = load ptr, ptr %17, align 8, !tbaa !5
  %158 = load ptr, ptr %18, align 8, !tbaa !5
  %159 = load i64, ptr %25, align 8, !tbaa !9
  %160 = getelementptr inbounds %struct.doublecomplex, ptr %158, i64 %159
  %161 = load ptr, ptr %19, align 8, !tbaa !5
  %162 = load ptr, ptr %22, align 8, !tbaa !5
  %163 = getelementptr inbounds double, ptr %162, i64 1
  %164 = call double @zlantb_(ptr noundef %153, ptr noundef %154, ptr noundef %155, ptr noundef %156, ptr noundef %157, ptr noundef %160, ptr noundef %161, ptr noundef %163)
  store double %164, ptr %34, align 8, !tbaa !12
  %165 = load double, ptr %34, align 8, !tbaa !12
  %166 = fcmp ogt double %165, 0.000000e+00
  br i1 %166, label %167, label %286

167:                                              ; preds = %149
  store double 0.000000e+00, ptr %37, align 8, !tbaa !12
  %168 = getelementptr inbounds [1 x i8], ptr %39, i64 0, i64 0
  store i8 78, ptr %168, align 1, !tbaa !11
  %169 = load i64, ptr %38, align 8, !tbaa !9
  %170 = icmp ne i64 %169, 0
  br i1 %170, label %171, label %172

171:                                              ; preds = %167
  store i64 1, ptr %31, align 8, !tbaa !9
  br label %173

172:                                              ; preds = %167
  store i64 2, ptr %31, align 8, !tbaa !9
  br label %173

173:                                              ; preds = %172, %171
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %174

174:                                              ; preds = %275, %173
  %175 = load ptr, ptr %16, align 8, !tbaa !5
  %176 = load ptr, ptr %21, align 8, !tbaa !5
  %177 = load ptr, ptr %16, align 8, !tbaa !5
  %178 = load i64, ptr %177, align 8, !tbaa !9
  %179 = add nsw i64 %178, 1
  %180 = getelementptr inbounds %struct.doublecomplex, ptr %176, i64 %179
  %181 = load ptr, ptr %21, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.doublecomplex, ptr %181, i64 1
  %183 = getelementptr inbounds [3 x i64], ptr %33, i64 0, i64 0
  %184 = call i32 @zlacn2_(ptr noundef %175, ptr noundef %180, ptr noundef %182, ptr noundef %37, ptr noundef %30, ptr noundef %183)
  %185 = load i64, ptr %30, align 8, !tbaa !9
  %186 = icmp ne i64 %185, 0
  br i1 %186, label %187, label %276

187:                                              ; preds = %174
  %188 = load i64, ptr %30, align 8, !tbaa !9
  %189 = load i64, ptr %31, align 8, !tbaa !9
  %190 = icmp eq i64 %188, %189
  br i1 %190, label %191, label %207

191:                                              ; preds = %187
  %192 = load ptr, ptr %14, align 8, !tbaa !5
  %193 = load ptr, ptr %15, align 8, !tbaa !5
  %194 = getelementptr inbounds [1 x i8], ptr %39, i64 0, i64 0
  %195 = load ptr, ptr %16, align 8, !tbaa !5
  %196 = load ptr, ptr %17, align 8, !tbaa !5
  %197 = load ptr, ptr %18, align 8, !tbaa !5
  %198 = load i64, ptr %25, align 8, !tbaa !9
  %199 = getelementptr inbounds %struct.doublecomplex, ptr %197, i64 %198
  %200 = load ptr, ptr %19, align 8, !tbaa !5
  %201 = load ptr, ptr %21, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.doublecomplex, ptr %201, i64 1
  %203 = load ptr, ptr %22, align 8, !tbaa !5
  %204 = getelementptr inbounds double, ptr %203, i64 1
  %205 = load ptr, ptr %23, align 8, !tbaa !5
  %206 = call i32 @zlatbs_(ptr noundef %192, ptr noundef @.str.7, ptr noundef %193, ptr noundef %194, ptr noundef %195, ptr noundef %196, ptr noundef %199, ptr noundef %200, ptr noundef %202, ptr noundef %32, ptr noundef %204, ptr noundef %205)
  br label %223

207:                                              ; preds = %187
  %208 = load ptr, ptr %14, align 8, !tbaa !5
  %209 = load ptr, ptr %15, align 8, !tbaa !5
  %210 = getelementptr inbounds [1 x i8], ptr %39, i64 0, i64 0
  %211 = load ptr, ptr %16, align 8, !tbaa !5
  %212 = load ptr, ptr %17, align 8, !tbaa !5
  %213 = load ptr, ptr %18, align 8, !tbaa !5
  %214 = load i64, ptr %25, align 8, !tbaa !9
  %215 = getelementptr inbounds %struct.doublecomplex, ptr %213, i64 %214
  %216 = load ptr, ptr %19, align 8, !tbaa !5
  %217 = load ptr, ptr %21, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.doublecomplex, ptr %217, i64 1
  %219 = load ptr, ptr %22, align 8, !tbaa !5
  %220 = getelementptr inbounds double, ptr %219, i64 1
  %221 = load ptr, ptr %23, align 8, !tbaa !5
  %222 = call i32 @zlatbs_(ptr noundef %208, ptr noundef @.str.8, ptr noundef %209, ptr noundef %210, ptr noundef %211, ptr noundef %212, ptr noundef %215, ptr noundef %216, ptr noundef %218, ptr noundef %32, ptr noundef %220, ptr noundef %221)
  br label %223

223:                                              ; preds = %207, %191
  %224 = getelementptr inbounds [1 x i8], ptr %39, i64 0, i64 0
  store i8 89, ptr %224, align 1, !tbaa !11
  %225 = load double, ptr %32, align 8, !tbaa !12
  %226 = fcmp une double %225, 1.000000e+00
  br i1 %226, label %227, label %275

227:                                              ; preds = %223
  %228 = load ptr, ptr %16, align 8, !tbaa !5
  %229 = load ptr, ptr %21, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.doublecomplex, ptr %229, i64 1
  %231 = call i64 @f2c_izamax(ptr noundef %228, ptr noundef %230, ptr noundef @c__1)
  store i64 %231, ptr %29, align 8, !tbaa !9
  %232 = load i64, ptr %29, align 8, !tbaa !9
  store i64 %232, ptr %26, align 8, !tbaa !9
  %233 = load ptr, ptr %21, align 8, !tbaa !5
  %234 = load i64, ptr %26, align 8, !tbaa !9
  %235 = getelementptr inbounds %struct.doublecomplex, ptr %233, i64 %234
  %236 = getelementptr inbounds %struct.doublecomplex, ptr %235, i32 0, i32 0
  %237 = load double, ptr %236, align 8, !tbaa !14
  store double %237, ptr %27, align 8, !tbaa !12
  %238 = load double, ptr %27, align 8, !tbaa !12
  %239 = fcmp oge double %238, 0.000000e+00
  br i1 %239, label %240, label %242

240:                                              ; preds = %227
  %241 = load double, ptr %27, align 8, !tbaa !12
  br label %245

242:                                              ; preds = %227
  %243 = load double, ptr %27, align 8, !tbaa !12
  %244 = fneg double %243
  br label %245

245:                                              ; preds = %242, %240
  %246 = phi double [ %241, %240 ], [ %244, %242 ]
  %247 = load ptr, ptr %21, align 8, !tbaa !5
  %248 = load i64, ptr %29, align 8, !tbaa !9
  %249 = getelementptr inbounds %struct.doublecomplex, ptr %247, i64 %248
  %250 = call double @d_imag(ptr noundef %249)
  store double %250, ptr %28, align 8, !tbaa !12
  %251 = load double, ptr %28, align 8, !tbaa !12
  %252 = fcmp oge double %251, 0.000000e+00
  br i1 %252, label %253, label %255

253:                                              ; preds = %245
  %254 = load double, ptr %28, align 8, !tbaa !12
  br label %258

255:                                              ; preds = %245
  %256 = load double, ptr %28, align 8, !tbaa !12
  %257 = fneg double %256
  br label %258

258:                                              ; preds = %255, %253
  %259 = phi double [ %254, %253 ], [ %257, %255 ]
  %260 = fadd double %246, %259
  store double %260, ptr %36, align 8, !tbaa !12
  %261 = load double, ptr %32, align 8, !tbaa !12
  %262 = load double, ptr %36, align 8, !tbaa !12
  %263 = load double, ptr %40, align 8, !tbaa !12
  %264 = fmul double %262, %263
  %265 = fcmp olt double %261, %264
  br i1 %265, label %269, label %266

266:                                              ; preds = %258
  %267 = load double, ptr %32, align 8, !tbaa !12
  %268 = fcmp oeq double %267, 0.000000e+00
  br i1 %268, label %269, label %270

269:                                              ; preds = %266, %258
  br label %287

270:                                              ; preds = %266
  %271 = load ptr, ptr %16, align 8, !tbaa !5
  %272 = load ptr, ptr %21, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.doublecomplex, ptr %272, i64 1
  %274 = call i32 @zdrscl_(ptr noundef %271, ptr noundef %32, ptr noundef %273, ptr noundef @c__1)
  br label %275

275:                                              ; preds = %270, %223
  br label %174

276:                                              ; preds = %174
  %277 = load double, ptr %37, align 8, !tbaa !12
  %278 = fcmp une double %277, 0.000000e+00
  br i1 %278, label %279, label %285

279:                                              ; preds = %276
  %280 = load double, ptr %34, align 8, !tbaa !12
  %281 = fdiv double 1.000000e+00, %280
  %282 = load double, ptr %37, align 8, !tbaa !12
  %283 = fdiv double %281, %282
  %284 = load ptr, ptr %20, align 8, !tbaa !5
  store double %283, ptr %284, align 8, !tbaa !12
  br label %285

285:                                              ; preds = %279, %276
  br label %286

286:                                              ; preds = %285, %149
  br label %287

287:                                              ; preds = %286, %269
  store i32 0, ptr %12, align 4
  store i32 1, ptr %42, align 4
  br label %288

288:                                              ; preds = %287, %137, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  %289 = load i32, ptr %12, align 4
  ret i32 %289
}

; 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 double @dlamch_(ptr noundef) #2

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

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

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

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

declare double @d_imag(ptr noundef) #2

declare i32 @zdrscl_(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 }

!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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"", !13, i64 0, !13, i64 8}


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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @ztbcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr nocapture noundef writeonly %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) local_unnamed_addr #0 {
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca [3 x i64], align 16
  %16 = alloca double, align 8
  %17 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #3
  %18 = getelementptr inbounds i8, ptr %8, i64 -16
  store i64 0, ptr %10, align 8, !tbaa !5
  %19 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #3
  %20 = load i8, ptr %0, align 1, !tbaa !9
  %21 = icmp eq i8 %20, 49
  br i1 %21, label %.thread, label %23

.thread:                                          ; preds = %11
  %22 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #3
  br label %28

23:                                               ; preds = %11
  %24 = tail call i64 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #3
  %.not105 = icmp eq i64 %24, 0
  %25 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #3
  br i1 %.not105, label %26, label %28

26:                                               ; preds = %23
  %27 = tail call i64 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.3) #3
  %.not = icmp eq i64 %27, 0
  br i1 %.not, label %.thread103.sink.split, label %28

28:                                               ; preds = %.thread, %26, %23
  %29 = phi i64 [ %22, %.thread ], [ %25, %26 ], [ %25, %23 ]
  %. = phi i64 [ 1, %.thread ], [ 2, %26 ], [ 1, %23 ]
  %.not95 = icmp eq i64 %19, 0
  br i1 %.not95, label %30, label %32

30:                                               ; preds = %28
  %31 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.4) #3
  %.not96 = icmp eq i64 %31, 0
  br i1 %.not96, label %.thread103.sink.split, label %32

32:                                               ; preds = %30, %28
  %.not97 = icmp eq i64 %29, 0
  br i1 %.not97, label %33, label %35

33:                                               ; preds = %32
  %34 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str) #3
  %.not98 = icmp eq i64 %34, 0
  br i1 %.not98, label %.thread103.sink.split, label %35

35:                                               ; preds = %33, %32
  %36 = load i64, ptr %3, align 8, !tbaa !5
  %37 = icmp slt i64 %36, 0
  br i1 %37, label %.thread103.sink.split, label %38

38:                                               ; preds = %35
  %39 = load i64, ptr %4, align 8, !tbaa !5
  %40 = icmp slt i64 %39, 0
  br i1 %40, label %.thread103.sink.split, label %41

41:                                               ; preds = %38
  %42 = load i64, ptr %6, align 8, !tbaa !5
  %.not99 = icmp sgt i64 %42, %39
  br i1 %.not99, label %43, label %.thread103.sink.split

43:                                               ; preds = %41
  %.pr = load i64, ptr %10, align 8, !tbaa !5
  %.not100 = icmp eq i64 %.pr, 0
  br i1 %.not100, label %47, label %.thread103

.thread103.sink.split:                            ; preds = %41, %38, %35, %33, %30, %26
  %.sink = phi i64 [ -1, %26 ], [ -2, %30 ], [ -3, %33 ], [ -4, %35 ], [ -5, %38 ], [ -7, %41 ]
  store i64 %.sink, ptr %10, align 8, !tbaa !5
  br label %.thread103

.thread103:                                       ; preds = %.thread103.sink.split, %43
  %44 = phi i64 [ %.pr, %43 ], [ %.sink, %.thread103.sink.split ]
  %45 = sub nsw i64 0, %44
  store i64 %45, ptr %12, align 8, !tbaa !5
  %46 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %12) #3
  br label %.loopexit

47:                                               ; preds = %43
  %48 = icmp eq i64 %36, 0
  br i1 %48, label %49, label %50

49:                                               ; preds = %47
  store double 1.000000e+00, ptr %7, align 8, !tbaa !10
  br label %.loopexit

50:                                               ; preds = %47
  store double 0.000000e+00, ptr %7, align 8, !tbaa !10
  %51 = tail call double @dlamch_(ptr noundef nonnull @.str.6) #3
  %52 = load i64, ptr %3, align 8, !tbaa !5
  %53 = icmp sgt i64 %52, 0
  %54 = uitofp nneg i64 %52 to double
  %55 = select i1 %53, double %54, double 1.000000e+00
  %56 = fmul double %51, %55
  %57 = tail call double @zlantb_(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %9) #3
  %58 = fcmp ogt double %57, 0.000000e+00
  br i1 %58, label %59, label %.loopexit

59:                                               ; preds = %50
  store double 0.000000e+00, ptr %16, align 8, !tbaa !10
  store i8 78, ptr %17, align 1, !tbaa !9
  store i64 0, ptr %13, align 8, !tbaa !5
  %60 = load i64, ptr %3, align 8, !tbaa !5
  %61 = getelementptr %struct.doublecomplex, ptr %8, i64 %60
  %62 = call i32 @zlacn2_(ptr noundef nonnull %3, ptr noundef %61, ptr noundef %8, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #3
  %63 = load i64, ptr %13, align 8, !tbaa !5
  %.not101106 = icmp eq i64 %63, 0
  br i1 %.not101106, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %59, %87
  %64 = phi i64 [ %91, %87 ], [ %63, %59 ]
  %65 = icmp eq i64 %64, %.
  %.str.7..str.8 = select i1 %65, ptr @.str.7, ptr @.str.8
  %66 = call i32 @zlatbs_(ptr noundef %1, ptr noundef nonnull %.str.7..str.8, ptr noundef %2, ptr noundef nonnull %17, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %8, ptr noundef nonnull %14, ptr noundef %9, ptr noundef nonnull %10) #3
  store i8 89, ptr %17, align 1, !tbaa !9
  %67 = load double, ptr %14, align 8, !tbaa !10
  %68 = fcmp une double %67, 1.000000e+00
  br i1 %68, label %69, label %87

69:                                               ; preds = %.lr.ph
  %70 = call i64 @f2c_izamax(ptr noundef nonnull %3, ptr noundef %8, ptr noundef nonnull @c__1) #3
  %71 = getelementptr inbounds %struct.doublecomplex, ptr %18, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !12
  %73 = call double @d_imag(ptr noundef nonnull %71) #3
  %74 = insertelement <2 x double> poison, double %72, i64 0
  %75 = insertelement <2 x double> %74, double %73, i64 1
  %76 = fcmp oge <2 x double> %75, zeroinitializer
  %77 = fneg <2 x double> %75
  %78 = select <2 x i1> %76, <2 x double> %75, <2 x double> %77
  %shift = shufflevector <2 x double> %78, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %79 = fadd <2 x double> %78, %shift
  %80 = extractelement <2 x double> %79, i64 0
  %81 = load double, ptr %14, align 8
  %82 = fmul double %56, %80
  %83 = fcmp olt double %81, %82
  %84 = fcmp oeq double %81, 0.000000e+00
  %or.cond = or i1 %84, %83
  br i1 %or.cond, label %.loopexit, label %85

85:                                               ; preds = %69
  %86 = call i32 @zdrscl_(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef nonnull %8, ptr noundef nonnull @c__1) #3
  br label %87

87:                                               ; preds = %85, %.lr.ph
  %88 = load i64, ptr %3, align 8, !tbaa !5
  %89 = getelementptr %struct.doublecomplex, ptr %8, i64 %88
  %90 = call i32 @zlacn2_(ptr noundef nonnull %3, ptr noundef %89, ptr noundef %8, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #3
  %91 = load i64, ptr %13, align 8, !tbaa !5
  %.not101 = icmp eq i64 %91, 0
  br i1 %.not101, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %87, %59
  %92 = load double, ptr %16, align 8, !tbaa !10
  %93 = fcmp une double %92, 0.000000e+00
  br i1 %93, label %94, label %.loopexit

94:                                               ; preds = %._crit_edge
  %95 = fdiv double 1.000000e+00, %57
  %96 = fdiv double %95, %92
  store double %96, ptr %7, align 8, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %69, %._crit_edge, %94, %50, %49, %.thread103
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  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 double @dlamch_(ptr noundef) local_unnamed_addr #2

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

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

declare i32 @zlatbs_(ptr noundef, 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 i64 @f2c_izamax(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @d_imag(ptr noundef) local_unnamed_addr #2

declare i32 @zdrscl_(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

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 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"", !11, i64 0, !11, i64 8}


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