; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (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 i64, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @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 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 float, align 4
  %28 = alloca float, align 4
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca float, align 4
  %33 = alloca [3 x i64], align 16
  %34 = alloca float, align 4
  %35 = alloca i64, align 8
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca i64, align 8
  %39 = alloca [1 x i8], align 1
  %40 = alloca float, align 4
  %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 4, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 4, 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 4, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 4, 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 4, 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.complex, 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.complex, 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 float, 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 %295

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 float 1.000000e+00, ptr %138, align 4, !tbaa !12
  store i32 0, ptr %12, align 4
  store i32 1, ptr %42, align 4
  br label %295

139:                                              ; preds = %133
  %140 = load ptr, ptr %20, align 8, !tbaa !5
  store float 0.000000e+00, ptr %140, align 4, !tbaa !12
  %141 = call double @slamch_(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 float
  %152 = fpext float %151 to double
  %153 = fmul double %141, %152
  %154 = fptrunc double %153 to float
  store float %154, ptr %40, align 4, !tbaa !12
  %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 ptr, ptr %18, align 8, !tbaa !5
  %161 = load i64, ptr %25, align 8, !tbaa !9
  %162 = getelementptr inbounds %struct.complex, ptr %160, i64 %161
  %163 = load ptr, ptr %19, align 8, !tbaa !5
  %164 = load ptr, ptr %22, align 8, !tbaa !5
  %165 = getelementptr inbounds float, ptr %164, i64 1
  %166 = call double @clantb_(ptr noundef %155, ptr noundef %156, ptr noundef %157, ptr noundef %158, ptr noundef %159, ptr noundef %162, ptr noundef %163, ptr noundef %165)
  %167 = fptrunc double %166 to float
  store float %167, ptr %34, align 4, !tbaa !12
  %168 = load float, ptr %34, align 4, !tbaa !12
  %169 = fcmp ogt float %168, 0.000000e+00
  br i1 %169, label %170, label %293

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

174:                                              ; preds = %170
  store i64 1, ptr %31, align 8, !tbaa !9
  br label %176

175:                                              ; preds = %170
  store i64 2, ptr %31, align 8, !tbaa !9
  br label %176

176:                                              ; preds = %175, %174
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %177

177:                                              ; preds = %282, %176
  %178 = load ptr, ptr %16, align 8, !tbaa !5
  %179 = load ptr, ptr %21, align 8, !tbaa !5
  %180 = load ptr, ptr %16, align 8, !tbaa !5
  %181 = load i64, ptr %180, align 8, !tbaa !9
  %182 = add nsw i64 %181, 1
  %183 = getelementptr inbounds %struct.complex, ptr %179, i64 %182
  %184 = load ptr, ptr %21, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.complex, ptr %184, i64 1
  %186 = getelementptr inbounds [3 x i64], ptr %33, i64 0, i64 0
  %187 = call i32 @clacn2_(ptr noundef %178, ptr noundef %183, ptr noundef %185, ptr noundef %37, ptr noundef %30, ptr noundef %186)
  %188 = load i64, ptr %30, align 8, !tbaa !9
  %189 = icmp ne i64 %188, 0
  br i1 %189, label %190, label %283

190:                                              ; preds = %177
  %191 = load i64, ptr %30, align 8, !tbaa !9
  %192 = load i64, ptr %31, align 8, !tbaa !9
  %193 = icmp eq i64 %191, %192
  br i1 %193, label %194, label %210

194:                                              ; preds = %190
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  %196 = load ptr, ptr %15, align 8, !tbaa !5
  %197 = getelementptr inbounds [1 x i8], ptr %39, i64 0, i64 0
  %198 = load ptr, ptr %16, align 8, !tbaa !5
  %199 = load ptr, ptr %17, align 8, !tbaa !5
  %200 = load ptr, ptr %18, align 8, !tbaa !5
  %201 = load i64, ptr %25, align 8, !tbaa !9
  %202 = getelementptr inbounds %struct.complex, ptr %200, i64 %201
  %203 = load ptr, ptr %19, align 8, !tbaa !5
  %204 = load ptr, ptr %21, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.complex, ptr %204, i64 1
  %206 = load ptr, ptr %22, align 8, !tbaa !5
  %207 = getelementptr inbounds float, ptr %206, i64 1
  %208 = load ptr, ptr %23, align 8, !tbaa !5
  %209 = call i32 @clatbs_(ptr noundef %195, ptr noundef @.str.7, ptr noundef %196, ptr noundef %197, ptr noundef %198, ptr noundef %199, ptr noundef %202, ptr noundef %203, ptr noundef %205, ptr noundef %32, ptr noundef %207, ptr noundef %208)
  br label %226

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

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

230:                                              ; preds = %226
  %231 = load ptr, ptr %16, align 8, !tbaa !5
  %232 = load ptr, ptr %21, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.complex, ptr %232, i64 1
  %234 = call i64 @f2c_icamax(ptr noundef %231, ptr noundef %233, ptr noundef @c__1)
  store i64 %234, ptr %29, align 8, !tbaa !9
  %235 = load i64, ptr %29, align 8, !tbaa !9
  store i64 %235, ptr %26, align 8, !tbaa !9
  %236 = load ptr, ptr %21, align 8, !tbaa !5
  %237 = load i64, ptr %26, align 8, !tbaa !9
  %238 = getelementptr inbounds %struct.complex, ptr %236, 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 %27, align 4, !tbaa !12
  %241 = load float, ptr %27, align 4, !tbaa !12
  %242 = fcmp oge float %241, 0.000000e+00
  br i1 %242, label %243, label %245

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

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

248:                                              ; preds = %245, %243
  %249 = phi float [ %244, %243 ], [ %247, %245 ]
  %250 = fpext float %249 to double
  %251 = load ptr, ptr %21, align 8, !tbaa !5
  %252 = load i64, ptr %29, align 8, !tbaa !9
  %253 = getelementptr inbounds %struct.complex, ptr %251, i64 %252
  %254 = call double @r_imag(ptr noundef %253)
  %255 = fptrunc double %254 to float
  store float %255, ptr %28, align 4, !tbaa !12
  %256 = load float, ptr %28, align 4, !tbaa !12
  %257 = fcmp oge float %256, 0.000000e+00
  br i1 %257, label %258, label %260

258:                                              ; preds = %248
  %259 = load float, ptr %28, align 4, !tbaa !12
  br label %263

260:                                              ; preds = %248
  %261 = load float, ptr %28, align 4, !tbaa !12
  %262 = fneg float %261
  br label %263

263:                                              ; preds = %260, %258
  %264 = phi float [ %259, %258 ], [ %262, %260 ]
  %265 = fpext float %264 to double
  %266 = fadd double %250, %265
  %267 = fptrunc double %266 to float
  store float %267, ptr %36, align 4, !tbaa !12
  %268 = load float, ptr %32, align 4, !tbaa !12
  %269 = load float, ptr %36, align 4, !tbaa !12
  %270 = load float, ptr %40, align 4, !tbaa !12
  %271 = fmul float %269, %270
  %272 = fcmp olt float %268, %271
  br i1 %272, label %276, label %273

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

276:                                              ; preds = %273, %263
  br label %294

277:                                              ; preds = %273
  %278 = load ptr, ptr %16, align 8, !tbaa !5
  %279 = load ptr, ptr %21, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.complex, ptr %279, i64 1
  %281 = call i32 @csrscl_(ptr noundef %278, ptr noundef %32, ptr noundef %280, ptr noundef @c__1)
  br label %282

282:                                              ; preds = %277, %226
  br label %177

283:                                              ; preds = %177
  %284 = load float, ptr %37, 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 %34, align 4, !tbaa !12
  %288 = fdiv float 1.000000e+00, %287
  %289 = load float, ptr %37, align 4, !tbaa !12
  %290 = fdiv float %288, %289
  %291 = load ptr, ptr %20, 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, %149
  br label %294

294:                                              ; preds = %293, %276
  store i32 0, ptr %12, align 4
  store i32 1, ptr %42, align 4
  br label %295

295:                                              ; preds = %294, %137, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  %296 = load i32, ptr %12, align 4
  ret i32 %296
}

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

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

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

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

declare double @r_imag(ptr noundef) #2

declare i32 @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"="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 = !{!"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 i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @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 i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca float, align 4
  %15 = alloca [3 x i64], align 16
  %16 = alloca float, align 4
  %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 4, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #3
  %18 = getelementptr inbounds i8, ptr %8, i64 -8
  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 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 double @slamch_(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 float
  %55 = fpext float %54 to double
  %56 = select i1 %53, double %55, double 1.000000e+00
  %57 = fmul double %51, %56
  %58 = fptrunc double %57 to float
  %59 = tail call double @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) #3
  %60 = fptrunc double %59 to float
  %61 = fcmp ogt float %60, 0.000000e+00
  br i1 %61, label %62, label %.loopexit

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

.lr.ph:                                           ; preds = %62, %91
  %67 = phi i64 [ %95, %91 ], [ %66, %62 ]
  %68 = icmp eq i64 %67, %.
  %.str.7..str.8 = select i1 %68, ptr @.str.7, ptr @.str.8
  %69 = call i32 @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) #3
  store i8 89, ptr %17, align 1, !tbaa !9
  %70 = load float, ptr %14, align 4, !tbaa !10
  %71 = fcmp une float %70, 1.000000e+00
  br i1 %71, label %72, label %91

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

89:                                               ; preds = %72
  %90 = call i32 @csrscl_(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef nonnull %8, ptr noundef nonnull @c__1) #3
  br label %91

91:                                               ; preds = %89, %.lr.ph
  %92 = load i64, ptr %3, align 8, !tbaa !5
  %93 = getelementptr %struct.complex, ptr %8, i64 %92
  %94 = call i32 @clacn2_(ptr noundef nonnull %3, ptr noundef %93, ptr noundef %8, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #3
  %95 = load i64, ptr %13, align 8, !tbaa !5
  %.not101 = icmp eq i64 %95, 0
  br i1 %.not101, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %91, %62
  %96 = load float, ptr %16, align 4, !tbaa !10
  %97 = fcmp une float %96, 0.000000e+00
  br i1 %97, label %98, label %.loopexit

98:                                               ; preds = %._crit_edge
  %99 = fdiv float 1.000000e+00, %60
  %100 = fdiv float %99, %96
  store float %100, ptr %7, align 4, !tbaa !10
  br label %.loopexit

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

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

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

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

declare double @r_imag(ptr noundef) local_unnamed_addr #2

declare i32 @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"="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 = !{!"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,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass