; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (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 i32, align 4

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

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

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

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

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

80:                                               ; preds = %74, %67
  %81 = load i32, ptr %33, align 4, !tbaa !9
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %89, label %83

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

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

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

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

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

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

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

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

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

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

117:                                              ; preds = %110
  %118 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -7, ptr %118, align 4, !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 %22, align 8, !tbaa !5
  %126 = load i32, ptr %125, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %133

128:                                              ; preds = %124
  %129 = load ptr, ptr %22, align 8, !tbaa !5
  %130 = load i32, ptr %129, align 4, !tbaa !9
  %131 = sub nsw i32 0, %130
  store i32 %131, ptr %25, align 4, !tbaa !9
  %132 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %25, i32 noundef 6)
  store i32 1, ptr %41, align 4
  br label %292

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

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

139:                                              ; preds = %133
  %140 = load ptr, ptr %19, 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 %15, align 8, !tbaa !5
  %143 = load i32, ptr %142, align 4, !tbaa !9
  %144 = icmp sge i32 %143, 1
  br i1 %144, label %145, label %148

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

148:                                              ; preds = %139
  br label %149

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

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

172:                                              ; preds = %168
  store i32 1, ptr %29, align 4, !tbaa !9
  br label %174

173:                                              ; preds = %168
  store i32 2, ptr %29, align 4, !tbaa !9
  br label %174

174:                                              ; preds = %173, %172
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %279, %174
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  %177 = load ptr, ptr %20, align 8, !tbaa !5
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = load i32, ptr %178, align 4, !tbaa !9
  %180 = add nsw i32 %179, 1
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds %struct.doublecomplex, ptr %177, i64 %181
  %183 = load ptr, ptr %20, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.doublecomplex, ptr %183, i64 1
  %185 = getelementptr inbounds [3 x i32], ptr %31, i64 0, i64 0
  call void @zlacn2_(ptr noundef %176, ptr noundef %182, ptr noundef %184, ptr noundef %36, ptr noundef %28, ptr noundef %185)
  %186 = load i32, ptr %28, align 4, !tbaa !9
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %188, label %280

188:                                              ; preds = %175
  %189 = load i32, ptr %28, align 4, !tbaa !9
  %190 = load i32, ptr %29, align 4, !tbaa !9
  %191 = icmp eq i32 %189, %190
  br i1 %191, label %192, label %208

192:                                              ; preds = %188
  %193 = load ptr, ptr %13, align 8, !tbaa !5
  %194 = load ptr, ptr %14, align 8, !tbaa !5
  %195 = getelementptr inbounds [1 x i8], ptr %38, i64 0, i64 0
  %196 = load ptr, ptr %15, align 8, !tbaa !5
  %197 = load ptr, ptr %16, align 8, !tbaa !5
  %198 = load ptr, ptr %17, align 8, !tbaa !5
  %199 = load i32, ptr %24, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds %struct.doublecomplex, ptr %198, i64 %200
  %202 = load ptr, ptr %18, align 8, !tbaa !5
  %203 = load ptr, ptr %20, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.doublecomplex, ptr %203, i64 1
  %205 = load ptr, ptr %21, align 8, !tbaa !5
  %206 = getelementptr inbounds double, ptr %205, i64 1
  %207 = load ptr, ptr %22, align 8, !tbaa !5
  call void @zlatbs_(ptr noundef %193, ptr noundef @.str.7, ptr noundef %194, ptr noundef %195, ptr noundef %196, ptr noundef %197, ptr noundef %201, ptr noundef %202, ptr noundef %204, ptr noundef %30, ptr noundef %206, ptr noundef %207)
  br label %224

208:                                              ; preds = %188
  %209 = load ptr, ptr %13, align 8, !tbaa !5
  %210 = load ptr, ptr %14, align 8, !tbaa !5
  %211 = getelementptr inbounds [1 x i8], ptr %38, i64 0, i64 0
  %212 = load ptr, ptr %15, align 8, !tbaa !5
  %213 = load ptr, ptr %16, align 8, !tbaa !5
  %214 = load ptr, ptr %17, align 8, !tbaa !5
  %215 = load i32, ptr %24, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds %struct.doublecomplex, ptr %214, i64 %216
  %218 = load ptr, ptr %18, align 8, !tbaa !5
  %219 = load ptr, ptr %20, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.doublecomplex, ptr %219, i64 1
  %221 = load ptr, ptr %21, align 8, !tbaa !5
  %222 = getelementptr inbounds double, ptr %221, i64 1
  %223 = load ptr, ptr %22, align 8, !tbaa !5
  call void @zlatbs_(ptr noundef %209, ptr noundef @.str.8, ptr noundef %210, ptr noundef %211, ptr noundef %212, ptr noundef %213, ptr noundef %217, ptr noundef %218, ptr noundef %220, ptr noundef %30, ptr noundef %222, ptr noundef %223)
  br label %224

224:                                              ; preds = %208, %192
  %225 = getelementptr inbounds [1 x i8], ptr %38, i64 0, i64 0
  store i8 89, ptr %225, align 1, !tbaa !11
  %226 = load double, ptr %30, align 8, !tbaa !12
  %227 = fcmp une double %226, 1.000000e+00
  br i1 %227, label %228, label %279

228:                                              ; preds = %224
  %229 = load ptr, ptr %15, align 8, !tbaa !5
  %230 = load ptr, ptr %20, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.doublecomplex, ptr %230, i64 1
  %232 = call i32 @izamax_(ptr noundef %229, ptr noundef %231, ptr noundef @c__1)
  store i32 %232, ptr %35, align 4, !tbaa !9
  %233 = load i32, ptr %35, align 4, !tbaa !9
  store i32 %233, ptr %25, align 4, !tbaa !9
  %234 = load ptr, ptr %20, align 8, !tbaa !5
  %235 = load i32, ptr %25, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds %struct.doublecomplex, ptr %234, i64 %236
  %238 = getelementptr inbounds %struct.doublecomplex, ptr %237, i32 0, i32 0
  %239 = load double, ptr %238, align 8, !tbaa !14
  store double %239, ptr %26, align 8, !tbaa !12
  %240 = load double, ptr %26, align 8, !tbaa !12
  %241 = fcmp oge double %240, 0.000000e+00
  br i1 %241, label %242, label %244

242:                                              ; preds = %228
  %243 = load double, ptr %26, align 8, !tbaa !12
  br label %247

244:                                              ; preds = %228
  %245 = load double, ptr %26, align 8, !tbaa !12
  %246 = fneg double %245
  br label %247

247:                                              ; preds = %244, %242
  %248 = phi double [ %243, %242 ], [ %246, %244 ]
  %249 = load ptr, ptr %20, align 8, !tbaa !5
  %250 = load i32, ptr %35, align 4, !tbaa !9
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds %struct.doublecomplex, ptr %249, i64 %251
  %253 = call { double, double } @Cd(ptr noundef %252)
  %254 = extractvalue { double, double } %253, 0
  %255 = extractvalue { double, double } %253, 1
  store double %255, ptr %27, align 8, !tbaa !12
  %256 = load double, ptr %27, align 8, !tbaa !12
  %257 = fcmp oge double %256, 0.000000e+00
  br i1 %257, label %258, label %260

258:                                              ; preds = %247
  %259 = load double, ptr %27, align 8, !tbaa !12
  br label %263

260:                                              ; preds = %247
  %261 = load double, ptr %27, align 8, !tbaa !12
  %262 = fneg double %261
  br label %263

263:                                              ; preds = %260, %258
  %264 = phi double [ %259, %258 ], [ %262, %260 ]
  %265 = fadd double %248, %264
  store double %265, ptr %34, align 8, !tbaa !12
  %266 = load double, ptr %30, align 8, !tbaa !12
  %267 = load double, ptr %34, align 8, !tbaa !12
  %268 = load double, ptr %39, align 8, !tbaa !12
  %269 = fmul double %267, %268
  %270 = fcmp olt double %266, %269
  br i1 %270, label %274, label %271

271:                                              ; preds = %263
  %272 = load double, ptr %30, align 8, !tbaa !12
  %273 = fcmp oeq double %272, 0.000000e+00
  br i1 %273, label %274, label %275

274:                                              ; preds = %271, %263
  br label %291

275:                                              ; preds = %271
  %276 = load ptr, ptr %15, align 8, !tbaa !5
  %277 = load ptr, ptr %20, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.doublecomplex, ptr %277, i64 1
  call void @zdrscl_(ptr noundef %276, ptr noundef %30, ptr noundef %278, ptr noundef @c__1)
  br label %279

279:                                              ; preds = %275, %224
  br label %175

280:                                              ; preds = %175
  %281 = load double, ptr %36, align 8, !tbaa !12
  %282 = fcmp une double %281, 0.000000e+00
  br i1 %282, label %283, label %289

283:                                              ; preds = %280
  %284 = load double, ptr %32, align 8, !tbaa !12
  %285 = fdiv double 1.000000e+00, %284
  %286 = load double, ptr %36, align 8, !tbaa !12
  %287 = fdiv double %285, %286
  %288 = load ptr, ptr %19, align 8, !tbaa !5
  store double %287, ptr %288, align 8, !tbaa !12
  br label %289

289:                                              ; preds = %283, %280
  br label %290

290:                                              ; preds = %289, %149
  br label %291

291:                                              ; preds = %290, %274
  store i32 1, ptr %41, align 4
  br label %292

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

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

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

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 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 void @zlacn2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @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 i32 @izamax_(ptr noundef, ptr noundef, ptr noundef) #2

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

declare void @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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!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 i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @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 i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca [3 x i32], align 4
  %16 = alloca double, align 8
  %17 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #4
  %18 = getelementptr inbounds i8, ptr %8, i64 -16
  store i32 0, ptr %10, align 4, !tbaa !5
  %19 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #4
  %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 i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #4
  br label %28

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

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

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

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

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

33:                                               ; preds = %32
  %34 = tail call i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str) #4
  %.not97 = icmp eq i32 %34, 0
  br i1 %.not97, label %.thread102.sink.split, label %35

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

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

41:                                               ; preds = %38
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %.not98 = icmp sgt i32 %42, %39
  br i1 %.not98, label %43, label %.thread102.sink.split

43:                                               ; preds = %41
  %.pr = load i32, ptr %10, align 4, !tbaa !5
  %.not99 = icmp eq i32 %.pr, 0
  br i1 %.not99, label %47, label %.thread102

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

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

47:                                               ; preds = %43
  %48 = icmp eq i32 %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) #4
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = icmp sgt i32 %52, 0
  %54 = uitofp nneg i32 %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) #4
  %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 i32 0, ptr %13, align 4, !tbaa !5
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %gep105 = getelementptr %struct.doublecomplex, ptr %8, i64 %61
  call void @zlacn2_(ptr noundef nonnull %3, ptr noundef %gep105, ptr noundef %8, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #4
  %62 = load i32, ptr %13, align 4, !tbaa !5
  %.not100106 = icmp eq i32 %62, 0
  br i1 %.not100106, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %59, %86
  %63 = phi i32 [ %89, %86 ], [ %62, %59 ]
  %64 = icmp eq i32 %63, %.
  %.str.7..str.8 = select i1 %64, ptr @.str.7, ptr @.str.8
  call void @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) #4
  store i8 89, ptr %17, align 1, !tbaa !9
  %65 = load double, ptr %14, align 8, !tbaa !10
  %66 = fcmp une double %65, 1.000000e+00
  br i1 %66, label %67, label %86

67:                                               ; preds = %.lr.ph
  %68 = call i32 @izamax_(ptr noundef nonnull %3, ptr noundef %8, ptr noundef nonnull @c__1) #4
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %struct.doublecomplex, ptr %18, i64 %69
  %71 = load double, ptr %70, align 8, !tbaa !12
  %72 = call { double, double } @Cd(ptr noundef nonnull %70)
  %73 = extractvalue { double, double } %72, 1
  %74 = insertelement <2 x double> poison, double %71, 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 = %67
  call void @zdrscl_(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef nonnull %8, ptr noundef nonnull @c__1) #4
  br label %86

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

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

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

.loopexit:                                        ; preds = %67, %._crit_edge, %92, %50, %49, %.thread102
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  ret void
}

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

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

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 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 void @zlacn2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @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 i32 @izamax_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!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,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass