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

; 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.complex = type { float, float }

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

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

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

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

79:                                               ; preds = %75
  %80 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -1, ptr %80, align 4, !tbaa !9
  br label %125

81:                                               ; preds = %75, %68
  %82 = load i32, ptr %33, align 4, !tbaa !9
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %90, label %84

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

88:                                               ; preds = %84
  %89 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -2, ptr %89, align 4, !tbaa !9
  br label %124

90:                                               ; preds = %84, %81
  %91 = load i32, ptr %40, align 4, !tbaa !9
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %99, label %93

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

97:                                               ; preds = %93
  %98 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -3, ptr %98, align 4, !tbaa !9
  br label %123

99:                                               ; preds = %93, %90
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = icmp slt i32 %101, 0
  br i1 %102, label %103, label %105

103:                                              ; preds = %99
  %104 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -4, ptr %104, align 4, !tbaa !9
  br label %122

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

109:                                              ; preds = %105
  %110 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -5, ptr %110, align 4, !tbaa !9
  br label %121

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

118:                                              ; preds = %111
  %119 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -7, ptr %119, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %118, %111
  br label %121

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

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

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

124:                                              ; preds = %123, %88
  br label %125

125:                                              ; preds = %124, %79
  %126 = load ptr, ptr %22, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %134

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

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

138:                                              ; preds = %134
  %139 = load ptr, ptr %19, align 8, !tbaa !5
  store float 1.000000e+00, ptr %139, align 4, !tbaa !12
  store i32 1, ptr %41, align 4
  br label %295

140:                                              ; preds = %134
  %141 = load ptr, ptr %19, align 8, !tbaa !5
  store float 0.000000e+00, ptr %141, align 4, !tbaa !12
  %142 = call float @slamch_(ptr noundef @.str.6)
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = icmp sge i32 %144, 1
  br i1 %145, label %146, label %149

146:                                              ; preds = %140
  %147 = load ptr, ptr %15, align 8, !tbaa !5
  %148 = load i32, ptr %147, align 4, !tbaa !9
  br label %150

149:                                              ; preds = %140
  br label %150

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

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

173:                                              ; preds = %169
  store i32 1, ptr %29, align 4, !tbaa !9
  br label %175

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

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

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

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

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

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

225:                                              ; preds = %209, %193
  %226 = getelementptr inbounds [1 x i8], ptr %38, i64 0, i64 0
  store i8 89, ptr %226, align 1, !tbaa !11
  %227 = load float, ptr %30, align 4, !tbaa !12
  %228 = fcmp une float %227, 1.000000e+00
  br i1 %228, label %229, label %282

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

243:                                              ; preds = %229
  %244 = load float, ptr %26, align 4, !tbaa !12
  br label %248

245:                                              ; preds = %229
  %246 = load float, ptr %26, align 4, !tbaa !12
  %247 = fneg float %246
  br label %248

248:                                              ; preds = %245, %243
  %249 = phi float [ %244, %243 ], [ %247, %245 ]
  %250 = load ptr, ptr %20, align 8, !tbaa !5
  %251 = load i32, ptr %35, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds %struct.complex, ptr %250, i64 %252
  %254 = call <2 x float> @Cf(ptr noundef %253)
  store <2 x float> %254, ptr %42, align 4
  %255 = getelementptr inbounds { float, float }, ptr %42, i32 0, i32 0
  %256 = load float, ptr %255, align 4
  %257 = getelementptr inbounds { float, float }, ptr %42, i32 0, i32 1
  %258 = load float, ptr %257, align 4
  store float %258, ptr %27, align 4, !tbaa !12
  %259 = load float, ptr %27, align 4, !tbaa !12
  %260 = fcmp oge float %259, 0.000000e+00
  br i1 %260, label %261, label %263

261:                                              ; preds = %248
  %262 = load float, ptr %27, align 4, !tbaa !12
  br label %266

263:                                              ; preds = %248
  %264 = load float, ptr %27, align 4, !tbaa !12
  %265 = fneg float %264
  br label %266

266:                                              ; preds = %263, %261
  %267 = phi float [ %262, %261 ], [ %265, %263 ]
  %268 = fadd float %249, %267
  store float %268, ptr %34, align 4, !tbaa !12
  %269 = load float, ptr %30, align 4, !tbaa !12
  %270 = load float, ptr %34, align 4, !tbaa !12
  %271 = load float, ptr %39, align 4, !tbaa !12
  %272 = fmul float %270, %271
  %273 = fcmp olt float %269, %272
  br i1 %273, label %277, label %274

274:                                              ; preds = %266
  %275 = load float, ptr %30, align 4, !tbaa !12
  %276 = fcmp oeq float %275, 0.000000e+00
  br i1 %276, label %277, label %278

277:                                              ; preds = %274, %266
  br label %294

278:                                              ; preds = %274
  %279 = load ptr, ptr %15, align 8, !tbaa !5
  %280 = load ptr, ptr %20, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.complex, ptr %280, i64 1
  call void @csrscl_(ptr noundef %279, ptr noundef %30, ptr noundef %281, ptr noundef @c__1)
  br label %282

282:                                              ; preds = %278, %225
  br label %176

283:                                              ; preds = %176
  %284 = load float, ptr %36, align 4, !tbaa !12
  %285 = fcmp une float %284, 0.000000e+00
  br i1 %285, label %286, label %292

286:                                              ; preds = %283
  %287 = load float, ptr %32, align 4, !tbaa !12
  %288 = fdiv float 1.000000e+00, %287
  %289 = load float, ptr %36, align 4, !tbaa !12
  %290 = fdiv float %288, %289
  %291 = load ptr, ptr %19, align 8, !tbaa !5
  store float %290, ptr %291, align 4, !tbaa !12
  br label %292

292:                                              ; preds = %286, %283
  br label %293

293:                                              ; preds = %292, %150
  br label %294

294:                                              ; preds = %293, %277
  store i32 1, ptr %41, align 4
  br label %295

295:                                              ; preds = %294, %138, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 float @slamch_(ptr noundef) #2

declare float @clantb_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @Cf(ptr noundef) #3

declare void @csrscl_(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"="64" "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"="64" "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 = !{!"float", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"", !13, i64 0, !13, i64 4}


; 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.complex = type { float, float }

@.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 @ctbcon_(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 float, align 4
  %15 = alloca [3 x i32], align 4
  %16 = alloca float, align 4
  %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 4, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #4
  %18 = getelementptr inbounds i8, ptr %8, i64 -8
  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 float 1.000000e+00, ptr %7, align 4, !tbaa !10
  br label %.loopexit

50:                                               ; preds = %47
  store float 0.000000e+00, ptr %7, align 4, !tbaa !10
  %51 = tail call float @slamch_(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 float
  %55 = select i1 %53, float %54, float 1.000000e+00
  %56 = fmul float %51, %55
  %57 = tail call float @clantb_(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 float %57, 0.000000e+00
  br i1 %58, label %59, label %.loopexit

59:                                               ; preds = %50
  store float 0.000000e+00, ptr %16, align 4, !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.complex, ptr %8, i64 %61
  call void @clacn2_(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, %85
  %63 = phi i32 [ %88, %85 ], [ %62, %59 ]
  %64 = icmp eq i32 %63, %.
  %.str.7..str.8 = select i1 %64, ptr @.str.7, ptr @.str.8
  call void @clatbs_(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 float, ptr %14, align 4, !tbaa !10
  %66 = fcmp une float %65, 1.000000e+00
  br i1 %66, label %67, label %85

67:                                               ; preds = %.lr.ph
  %68 = call i32 @icamax_(ptr noundef nonnull %3, ptr noundef %8, ptr noundef nonnull @c__1) #4
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %struct.complex, ptr %18, i64 %69
  %71 = load float, ptr %70, align 4, !tbaa !12
  %72 = fcmp oge float %71, 0.000000e+00
  %73 = fneg float %71
  %74 = select i1 %72, float %71, float %73
  %75 = call <2 x float> @Cf(ptr noundef nonnull %70)
  %.sroa.0.4.vec.extract = extractelement <2 x float> %75, i64 1
  %76 = fcmp oge float %.sroa.0.4.vec.extract, 0.000000e+00
  %77 = fneg float %.sroa.0.4.vec.extract
  %78 = select i1 %76, float %.sroa.0.4.vec.extract, float %77
  %79 = fadd float %74, %78
  %80 = load float, ptr %14, align 4
  %81 = fmul float %56, %79
  %82 = fcmp olt float %80, %81
  %83 = fcmp oeq float %80, 0.000000e+00
  %or.cond = or i1 %83, %82
  br i1 %or.cond, label %.loopexit, label %84

84:                                               ; preds = %67
  call void @csrscl_(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef nonnull %8, ptr noundef nonnull @c__1) #4
  br label %85

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

._crit_edge:                                      ; preds = %85, %59
  %89 = load float, ptr %16, align 4, !tbaa !10
  %90 = fcmp une float %89, 0.000000e+00
  br i1 %90, label %91, label %.loopexit

91:                                               ; preds = %._crit_edge
  %92 = fdiv float 1.000000e+00, %57
  %93 = fdiv float %92, %89
  store float %93, ptr %7, align 4, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %67, %._crit_edge, %91, %50, %49, %.thread102
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 float @slamch_(ptr noundef) local_unnamed_addr #2

declare float @clantb_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @Cf(ptr noundef) local_unnamed_addr #3

declare void @csrscl_(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"="64" "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"="64" "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 = !{!"float", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"", !11, i64 0, !11, i64 4}


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