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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @chbev_(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, ptr noundef %11) #0 {
  %13 = alloca i32, align 4
  %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 ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca i64, align 8
  %34 = alloca float, align 4
  %35 = alloca i64, align 8
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca float, align 4
  %39 = alloca i64, align 8
  %40 = alloca i64, align 8
  %41 = alloca i64, align 8
  %42 = alloca i64, align 8
  %43 = alloca float, align 4
  %44 = alloca float, align 4
  %45 = alloca i64, align 8
  %46 = alloca float, align 4
  %47 = alloca i32, align 4
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %2, ptr %16, align 8, !tbaa !5
  store ptr %3, ptr %17, align 8, !tbaa !5
  store ptr %4, ptr %18, align 8, !tbaa !5
  store ptr %5, ptr %19, align 8, !tbaa !5
  store ptr %6, ptr %20, align 8, !tbaa !5
  store ptr %7, ptr %21, align 8, !tbaa !5
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store ptr %11, ptr %25, align 8, !tbaa !5
  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 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 4, ptr %38) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #4
  %48 = load ptr, ptr %19, align 8, !tbaa !5
  %49 = load i64, ptr %48, align 8, !tbaa !9
  store i64 %49, ptr %26, align 8, !tbaa !9
  %50 = load i64, ptr %26, align 8, !tbaa !9
  %51 = add nsw i64 1, %50
  store i64 %51, ptr %27, align 8, !tbaa !9
  %52 = load i64, ptr %27, align 8, !tbaa !9
  %53 = load ptr, ptr %18, align 8, !tbaa !5
  %54 = sub i64 0, %52
  %55 = getelementptr inbounds %struct.complex, ptr %53, i64 %54
  store ptr %55, ptr %18, align 8, !tbaa !5
  %56 = load ptr, ptr %20, align 8, !tbaa !5
  %57 = getelementptr inbounds float, ptr %56, i32 -1
  store ptr %57, ptr %20, align 8, !tbaa !5
  %58 = load ptr, ptr %22, align 8, !tbaa !5
  %59 = load i64, ptr %58, align 8, !tbaa !9
  store i64 %59, ptr %28, align 8, !tbaa !9
  %60 = load i64, ptr %28, align 8, !tbaa !9
  %61 = add nsw i64 1, %60
  store i64 %61, ptr %29, align 8, !tbaa !9
  %62 = load i64, ptr %29, align 8, !tbaa !9
  %63 = load ptr, ptr %21, align 8, !tbaa !5
  %64 = sub i64 0, %62
  %65 = getelementptr inbounds %struct.complex, ptr %63, i64 %64
  store ptr %65, ptr %21, align 8, !tbaa !5
  %66 = load ptr, ptr %23, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.complex, ptr %66, i32 -1
  store ptr %67, ptr %23, align 8, !tbaa !5
  %68 = load ptr, ptr %24, align 8, !tbaa !5
  %69 = getelementptr inbounds float, ptr %68, i32 -1
  store ptr %69, ptr %24, align 8, !tbaa !5
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = call i64 @lsame_(ptr noundef %70, ptr noundef @.str)
  store i64 %71, ptr %41, align 8, !tbaa !9
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = call i64 @lsame_(ptr noundef %72, ptr noundef @.str.1)
  store i64 %73, ptr %40, align 8, !tbaa !9
  %74 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 0, ptr %74, align 8, !tbaa !9
  %75 = load i64, ptr %41, align 8, !tbaa !9
  %76 = icmp ne i64 %75, 0
  br i1 %76, label %83, label %77

77:                                               ; preds = %12
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  %79 = call i64 @lsame_(ptr noundef %78, ptr noundef @.str.2)
  %80 = icmp ne i64 %79, 0
  br i1 %80, label %83, label %81

81:                                               ; preds = %77
  %82 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -1, ptr %82, align 8, !tbaa !9
  br label %133

83:                                               ; preds = %77, %12
  %84 = load i64, ptr %40, align 8, !tbaa !9
  %85 = icmp ne i64 %84, 0
  br i1 %85, label %92, label %86

86:                                               ; preds = %83
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = call i64 @lsame_(ptr noundef %87, ptr noundef @.str.3)
  %89 = icmp ne i64 %88, 0
  br i1 %89, label %92, label %90

90:                                               ; preds = %86
  %91 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -2, ptr %91, align 8, !tbaa !9
  br label %132

92:                                               ; preds = %86, %83
  %93 = load ptr, ptr %16, align 8, !tbaa !5
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = icmp slt i64 %94, 0
  br i1 %95, label %96, label %98

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

98:                                               ; preds = %92
  %99 = load ptr, ptr %17, 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 %25, align 8, !tbaa !5
  store i64 -4, ptr %103, align 8, !tbaa !9
  br label %130

104:                                              ; preds = %98
  %105 = load ptr, ptr %19, align 8, !tbaa !5
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  %108 = load i64, ptr %107, align 8, !tbaa !9
  %109 = add nsw i64 %108, 1
  %110 = icmp slt i64 %106, %109
  br i1 %110, label %111, label %113

111:                                              ; preds = %104
  %112 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -6, ptr %112, align 8, !tbaa !9
  br label %129

113:                                              ; preds = %104
  %114 = load ptr, ptr %22, align 8, !tbaa !5
  %115 = load i64, ptr %114, align 8, !tbaa !9
  %116 = icmp slt i64 %115, 1
  br i1 %116, label %126, label %117

117:                                              ; preds = %113
  %118 = load i64, ptr %41, align 8, !tbaa !9
  %119 = icmp ne i64 %118, 0
  br i1 %119, label %120, label %128

120:                                              ; preds = %117
  %121 = load ptr, ptr %22, align 8, !tbaa !5
  %122 = load i64, ptr %121, align 8, !tbaa !9
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  %124 = load i64, ptr %123, align 8, !tbaa !9
  %125 = icmp slt i64 %122, %124
  br i1 %125, label %126, label %128

126:                                              ; preds = %120, %113
  %127 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -9, ptr %127, align 8, !tbaa !9
  br label %128

128:                                              ; preds = %126, %120, %117
  br label %129

129:                                              ; preds = %128, %111
  br label %130

130:                                              ; preds = %129, %102
  br label %131

131:                                              ; preds = %130, %96
  br label %132

132:                                              ; preds = %131, %90
  br label %133

133:                                              ; preds = %132, %81
  %134 = load ptr, ptr %25, align 8, !tbaa !5
  %135 = load i64, ptr %134, align 8, !tbaa !9
  %136 = icmp ne i64 %135, 0
  br i1 %136, label %137, label %142

137:                                              ; preds = %133
  %138 = load ptr, ptr %25, align 8, !tbaa !5
  %139 = load i64, ptr %138, align 8, !tbaa !9
  %140 = sub nsw i64 0, %139
  store i64 %140, ptr %30, align 8, !tbaa !9
  %141 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %30)
  store i32 0, ptr %13, align 4
  store i32 1, ptr %47, align 4
  br label %343

142:                                              ; preds = %133
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = load i64, ptr %143, align 8, !tbaa !9
  %145 = icmp eq i64 %144, 0
  br i1 %145, label %146, label %147

146:                                              ; preds = %142
  store i32 0, ptr %13, align 4
  store i32 1, ptr %47, align 4
  br label %343

147:                                              ; preds = %142
  %148 = load ptr, ptr %16, align 8, !tbaa !5
  %149 = load i64, ptr %148, align 8, !tbaa !9
  %150 = icmp eq i64 %149, 1
  br i1 %150, label %151, label %192

151:                                              ; preds = %147
  %152 = load i64, ptr %40, align 8, !tbaa !9
  %153 = icmp ne i64 %152, 0
  br i1 %153, label %154, label %164

154:                                              ; preds = %151
  %155 = load i64, ptr %26, align 8, !tbaa !9
  %156 = add nsw i64 %155, 1
  store i64 %156, ptr %30, align 8, !tbaa !9
  %157 = load ptr, ptr %18, align 8, !tbaa !5
  %158 = load i64, ptr %30, align 8, !tbaa !9
  %159 = getelementptr inbounds %struct.complex, ptr %157, i64 %158
  %160 = getelementptr inbounds %struct.complex, ptr %159, i32 0, i32 0
  %161 = load float, ptr %160, align 4, !tbaa !11
  %162 = load ptr, ptr %20, align 8, !tbaa !5
  %163 = getelementptr inbounds float, ptr %162, i64 1
  store float %161, ptr %163, align 4, !tbaa !14
  br label %177

164:                                              ; preds = %151
  %165 = load ptr, ptr %17, align 8, !tbaa !5
  %166 = load i64, ptr %165, align 8, !tbaa !9
  %167 = add nsw i64 %166, 1
  %168 = load i64, ptr %26, align 8, !tbaa !9
  %169 = add nsw i64 %167, %168
  store i64 %169, ptr %30, align 8, !tbaa !9
  %170 = load ptr, ptr %18, align 8, !tbaa !5
  %171 = load i64, ptr %30, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.complex, ptr %170, i64 %171
  %173 = getelementptr inbounds %struct.complex, ptr %172, i32 0, i32 0
  %174 = load float, ptr %173, align 4, !tbaa !11
  %175 = load ptr, ptr %20, align 8, !tbaa !5
  %176 = getelementptr inbounds float, ptr %175, i64 1
  store float %174, ptr %176, align 4, !tbaa !14
  br label %177

177:                                              ; preds = %164, %154
  %178 = load i64, ptr %41, align 8, !tbaa !9
  %179 = icmp ne i64 %178, 0
  br i1 %179, label %180, label %191

180:                                              ; preds = %177
  %181 = load i64, ptr %28, align 8, !tbaa !9
  %182 = add nsw i64 %181, 1
  store i64 %182, ptr %30, align 8, !tbaa !9
  %183 = load ptr, ptr %21, align 8, !tbaa !5
  %184 = load i64, ptr %30, align 8, !tbaa !9
  %185 = getelementptr inbounds %struct.complex, ptr %183, i64 %184
  %186 = getelementptr inbounds %struct.complex, ptr %185, i32 0, i32 0
  store float 1.000000e+00, ptr %186, align 4, !tbaa !11
  %187 = load ptr, ptr %21, align 8, !tbaa !5
  %188 = load i64, ptr %30, align 8, !tbaa !9
  %189 = getelementptr inbounds %struct.complex, ptr %187, i64 %188
  %190 = getelementptr inbounds %struct.complex, ptr %189, i32 0, i32 1
  store float 0.000000e+00, ptr %190, align 4, !tbaa !15
  br label %191

191:                                              ; preds = %180, %177
  store i32 0, ptr %13, align 4
  store i32 1, ptr %47, align 4
  br label %343

192:                                              ; preds = %147
  %193 = call double @slamch_(ptr noundef @.str.5)
  %194 = fptrunc double %193 to float
  store float %194, ptr %43, align 4, !tbaa !14
  %195 = call double @slamch_(ptr noundef @.str.6)
  %196 = fptrunc double %195 to float
  store float %196, ptr %32, align 4, !tbaa !14
  %197 = load float, ptr %43, align 4, !tbaa !14
  %198 = load float, ptr %32, align 4, !tbaa !14
  %199 = fdiv float %197, %198
  store float %199, ptr %46, align 4, !tbaa !14
  %200 = load float, ptr %46, align 4, !tbaa !14
  %201 = fdiv float 1.000000e+00, %200
  store float %201, ptr %44, align 4, !tbaa !14
  %202 = load float, ptr %46, align 4, !tbaa !14
  %203 = fpext float %202 to double
  %204 = call double @sqrt(double noundef %203) #4
  %205 = fptrunc double %204 to float
  store float %205, ptr %36, align 4, !tbaa !14
  %206 = load float, ptr %44, align 4, !tbaa !14
  %207 = fpext float %206 to double
  %208 = call double @sqrt(double noundef %207) #4
  %209 = fptrunc double %208 to float
  store float %209, ptr %37, align 4, !tbaa !14
  %210 = load ptr, ptr %15, align 8, !tbaa !5
  %211 = load ptr, ptr %16, align 8, !tbaa !5
  %212 = load ptr, ptr %17, align 8, !tbaa !5
  %213 = load ptr, ptr %18, align 8, !tbaa !5
  %214 = load i64, ptr %27, align 8, !tbaa !9
  %215 = getelementptr inbounds %struct.complex, ptr %213, i64 %214
  %216 = load ptr, ptr %19, align 8, !tbaa !5
  %217 = load ptr, ptr %24, align 8, !tbaa !5
  %218 = getelementptr inbounds float, ptr %217, i64 1
  %219 = call double @clanhb_(ptr noundef @.str.7, ptr noundef %210, ptr noundef %211, ptr noundef %212, ptr noundef %215, ptr noundef %216, ptr noundef %218)
  %220 = fptrunc double %219 to float
  store float %220, ptr %34, align 4, !tbaa !14
  store i64 0, ptr %42, align 8, !tbaa !9
  %221 = load float, ptr %34, align 4, !tbaa !14
  %222 = fcmp ogt float %221, 0.000000e+00
  br i1 %222, label %223, label %231

223:                                              ; preds = %192
  %224 = load float, ptr %34, align 4, !tbaa !14
  %225 = load float, ptr %36, align 4, !tbaa !14
  %226 = fcmp olt float %224, %225
  br i1 %226, label %227, label %231

227:                                              ; preds = %223
  store i64 1, ptr %42, align 8, !tbaa !9
  %228 = load float, ptr %36, align 4, !tbaa !14
  %229 = load float, ptr %34, align 4, !tbaa !14
  %230 = fdiv float %228, %229
  store float %230, ptr %38, align 4, !tbaa !14
  br label %240

231:                                              ; preds = %223, %192
  %232 = load float, ptr %34, align 4, !tbaa !14
  %233 = load float, ptr %37, align 4, !tbaa !14
  %234 = fcmp ogt float %232, %233
  br i1 %234, label %235, label %239

235:                                              ; preds = %231
  store i64 1, ptr %42, align 8, !tbaa !9
  %236 = load float, ptr %37, align 4, !tbaa !14
  %237 = load float, ptr %34, align 4, !tbaa !14
  %238 = fdiv float %236, %237
  store float %238, ptr %38, align 4, !tbaa !14
  br label %239

239:                                              ; preds = %235, %231
  br label %240

240:                                              ; preds = %239, %227
  %241 = load i64, ptr %42, align 8, !tbaa !9
  %242 = icmp eq i64 %241, 1
  br i1 %242, label %243, label %269

243:                                              ; preds = %240
  %244 = load i64, ptr %40, align 8, !tbaa !9
  %245 = icmp ne i64 %244, 0
  br i1 %245, label %246, label %257

246:                                              ; preds = %243
  %247 = load ptr, ptr %17, align 8, !tbaa !5
  %248 = load ptr, ptr %17, align 8, !tbaa !5
  %249 = load ptr, ptr %16, align 8, !tbaa !5
  %250 = load ptr, ptr %16, align 8, !tbaa !5
  %251 = load ptr, ptr %18, align 8, !tbaa !5
  %252 = load i64, ptr %27, align 8, !tbaa !9
  %253 = getelementptr inbounds %struct.complex, ptr %251, i64 %252
  %254 = load ptr, ptr %19, align 8, !tbaa !5
  %255 = load ptr, ptr %25, align 8, !tbaa !5
  %256 = call i32 @clascl_(ptr noundef @.str.8, ptr noundef %247, ptr noundef %248, ptr noundef @c_b11, ptr noundef %38, ptr noundef %249, ptr noundef %250, ptr noundef %253, ptr noundef %254, ptr noundef %255)
  br label %268

257:                                              ; preds = %243
  %258 = load ptr, ptr %17, align 8, !tbaa !5
  %259 = load ptr, ptr %17, align 8, !tbaa !5
  %260 = load ptr, ptr %16, align 8, !tbaa !5
  %261 = load ptr, ptr %16, align 8, !tbaa !5
  %262 = load ptr, ptr %18, align 8, !tbaa !5
  %263 = load i64, ptr %27, align 8, !tbaa !9
  %264 = getelementptr inbounds %struct.complex, ptr %262, i64 %263
  %265 = load ptr, ptr %19, align 8, !tbaa !5
  %266 = load ptr, ptr %25, align 8, !tbaa !5
  %267 = call i32 @clascl_(ptr noundef @.str.9, ptr noundef %258, ptr noundef %259, ptr noundef @c_b11, ptr noundef %38, ptr noundef %260, ptr noundef %261, ptr noundef %264, ptr noundef %265, ptr noundef %266)
  br label %268

268:                                              ; preds = %257, %246
  br label %269

269:                                              ; preds = %268, %240
  store i64 1, ptr %33, align 8, !tbaa !9
  %270 = load ptr, ptr %14, align 8, !tbaa !5
  %271 = load ptr, ptr %15, align 8, !tbaa !5
  %272 = load ptr, ptr %16, align 8, !tbaa !5
  %273 = load ptr, ptr %17, align 8, !tbaa !5
  %274 = load ptr, ptr %18, align 8, !tbaa !5
  %275 = load i64, ptr %27, align 8, !tbaa !9
  %276 = getelementptr inbounds %struct.complex, ptr %274, i64 %275
  %277 = load ptr, ptr %19, align 8, !tbaa !5
  %278 = load ptr, ptr %20, align 8, !tbaa !5
  %279 = getelementptr inbounds float, ptr %278, i64 1
  %280 = load ptr, ptr %24, align 8, !tbaa !5
  %281 = load i64, ptr %33, align 8, !tbaa !9
  %282 = getelementptr inbounds float, ptr %280, i64 %281
  %283 = load ptr, ptr %21, align 8, !tbaa !5
  %284 = load i64, ptr %29, align 8, !tbaa !9
  %285 = getelementptr inbounds %struct.complex, ptr %283, i64 %284
  %286 = load ptr, ptr %22, align 8, !tbaa !5
  %287 = load ptr, ptr %23, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.complex, ptr %287, i64 1
  %289 = call i32 @chbtrd_(ptr noundef %270, ptr noundef %271, ptr noundef %272, ptr noundef %273, ptr noundef %276, ptr noundef %277, ptr noundef %279, ptr noundef %282, ptr noundef %285, ptr noundef %286, ptr noundef %288, ptr noundef %39)
  %290 = load i64, ptr %41, align 8, !tbaa !9
  %291 = icmp ne i64 %290, 0
  br i1 %291, label %301, label %292

292:                                              ; preds = %269
  %293 = load ptr, ptr %16, align 8, !tbaa !5
  %294 = load ptr, ptr %20, align 8, !tbaa !5
  %295 = getelementptr inbounds float, ptr %294, i64 1
  %296 = load ptr, ptr %24, align 8, !tbaa !5
  %297 = load i64, ptr %33, align 8, !tbaa !9
  %298 = getelementptr inbounds float, ptr %296, i64 %297
  %299 = load ptr, ptr %25, align 8, !tbaa !5
  %300 = call i32 @ssterf_(ptr noundef %293, ptr noundef %295, ptr noundef %298, ptr noundef %299)
  br label %322

301:                                              ; preds = %269
  %302 = load i64, ptr %33, align 8, !tbaa !9
  %303 = load ptr, ptr %16, align 8, !tbaa !5
  %304 = load i64, ptr %303, align 8, !tbaa !9
  %305 = add nsw i64 %302, %304
  store i64 %305, ptr %45, align 8, !tbaa !9
  %306 = load ptr, ptr %14, align 8, !tbaa !5
  %307 = load ptr, ptr %16, align 8, !tbaa !5
  %308 = load ptr, ptr %20, align 8, !tbaa !5
  %309 = getelementptr inbounds float, ptr %308, i64 1
  %310 = load ptr, ptr %24, align 8, !tbaa !5
  %311 = load i64, ptr %33, align 8, !tbaa !9
  %312 = getelementptr inbounds float, ptr %310, i64 %311
  %313 = load ptr, ptr %21, align 8, !tbaa !5
  %314 = load i64, ptr %29, align 8, !tbaa !9
  %315 = getelementptr inbounds %struct.complex, ptr %313, i64 %314
  %316 = load ptr, ptr %22, align 8, !tbaa !5
  %317 = load ptr, ptr %24, align 8, !tbaa !5
  %318 = load i64, ptr %45, align 8, !tbaa !9
  %319 = getelementptr inbounds float, ptr %317, i64 %318
  %320 = load ptr, ptr %25, align 8, !tbaa !5
  %321 = call i32 @csteqr_(ptr noundef %306, ptr noundef %307, ptr noundef %309, ptr noundef %312, ptr noundef %315, ptr noundef %316, ptr noundef %319, ptr noundef %320)
  br label %322

322:                                              ; preds = %301, %292
  %323 = load i64, ptr %42, align 8, !tbaa !9
  %324 = icmp eq i64 %323, 1
  br i1 %324, label %325, label %342

325:                                              ; preds = %322
  %326 = load ptr, ptr %25, align 8, !tbaa !5
  %327 = load i64, ptr %326, align 8, !tbaa !9
  %328 = icmp eq i64 %327, 0
  br i1 %328, label %329, label %332

329:                                              ; preds = %325
  %330 = load ptr, ptr %16, align 8, !tbaa !5
  %331 = load i64, ptr %330, align 8, !tbaa !9
  store i64 %331, ptr %35, align 8, !tbaa !9
  br label %336

332:                                              ; preds = %325
  %333 = load ptr, ptr %25, align 8, !tbaa !5
  %334 = load i64, ptr %333, align 8, !tbaa !9
  %335 = sub nsw i64 %334, 1
  store i64 %335, ptr %35, align 8, !tbaa !9
  br label %336

336:                                              ; preds = %332, %329
  %337 = load float, ptr %38, align 4, !tbaa !14
  %338 = fdiv float 1.000000e+00, %337
  store float %338, ptr %31, align 4, !tbaa !14
  %339 = load ptr, ptr %20, align 8, !tbaa !5
  %340 = getelementptr inbounds float, ptr %339, i64 1
  %341 = call i32 @f2c_sscal(ptr noundef %35, ptr noundef %31, ptr noundef %340, ptr noundef @c__1)
  br label %342

342:                                              ; preds = %336, %322
  store i32 0, ptr %13, align 4
  store i32 1, ptr %47, align 4
  br label %343

343:                                              ; preds = %342, %191, %146, %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  %344 = load i32, ptr %13, align 4
  ret i32 %344
}

; 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

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

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

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

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !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 [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@c_b11 = external hidden global float, align 4
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @chbev_(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, ptr noundef %11) local_unnamed_addr #0 {
  %13 = alloca i64, align 8
  %14 = alloca float, align 4
  %15 = alloca i64, align 8
  %16 = alloca float, align 4
  %17 = alloca i64, align 8
  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 8, ptr nonnull %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #3
  %18 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  %19 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.1) #3
  store i64 0, ptr %11, align 8, !tbaa !5
  %.not = icmp ne i64 %18, 0
  br i1 %.not, label %22, label %20

20:                                               ; preds = %12
  %21 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #3
  %.not134 = icmp eq i64 %21, 0
  br i1 %.not134, label %.thread.sink.split, label %22

22:                                               ; preds = %20, %12
  %.not135 = icmp eq i64 %19, 0
  br i1 %.not135, label %23, label %25

23:                                               ; preds = %22
  %24 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #3
  %.not136 = icmp eq i64 %24, 0
  br i1 %.not136, label %.thread.sink.split, label %25

25:                                               ; preds = %23, %22
  %26 = load i64, ptr %2, align 8, !tbaa !5
  %27 = icmp slt i64 %26, 0
  br i1 %27, label %.thread.sink.split, label %28

28:                                               ; preds = %25
  %29 = load i64, ptr %3, align 8, !tbaa !5
  %30 = icmp slt i64 %29, 0
  br i1 %30, label %.thread.sink.split, label %31

31:                                               ; preds = %28
  %32 = load i64, ptr %5, align 8, !tbaa !5
  %.not137 = icmp sgt i64 %32, %29
  br i1 %.not137, label %33, label %.thread.sink.split

33:                                               ; preds = %31
  %34 = load i64, ptr %8, align 8, !tbaa !5
  %35 = icmp slt i64 %34, 1
  %36 = icmp ult i64 %34, %26
  %or.cond = and i1 %.not, %36
  %or.cond148 = or i1 %35, %or.cond
  br i1 %or.cond148, label %.thread.sink.split, label %37

37:                                               ; preds = %33
  %.pr = load i64, ptr %11, align 8, !tbaa !5
  %.not138 = icmp eq i64 %.pr, 0
  br i1 %.not138, label %41, label %.thread

.thread.sink.split:                               ; preds = %33, %31, %28, %25, %23, %20
  %.sink = phi i64 [ -1, %20 ], [ -2, %23 ], [ -3, %25 ], [ -4, %28 ], [ -6, %31 ], [ -9, %33 ]
  store i64 %.sink, ptr %11, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %37
  %38 = phi i64 [ %.pr, %37 ], [ %.sink, %.thread.sink.split ]
  %39 = sub nsw i64 0, %38
  store i64 %39, ptr %13, align 8, !tbaa !5
  %40 = call i32 @xerbla_(ptr noundef nonnull @.str.4, ptr noundef nonnull %13) #3
  br label %79

41:                                               ; preds = %37
  switch i64 %26, label %44 [
    i64 0, label %79
    i64 1, label %42
  ]

42:                                               ; preds = %41
  %spec.select.idx = select i1 %.not135, i64 %29, i64 0
  %spec.select = getelementptr inbounds %struct.complex, ptr %4, i64 %spec.select.idx
  %storemerge142 = load float, ptr %spec.select, align 4, !tbaa !9
  store float %storemerge142, ptr %6, align 4, !tbaa !12
  br i1 %.not, label %43, label %79

43:                                               ; preds = %42
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %7, align 4, !tbaa !12
  br label %79

44:                                               ; preds = %41
  %45 = tail call double @slamch_(ptr noundef nonnull @.str.5) #3
  %46 = fptrunc double %45 to float
  %47 = tail call double @slamch_(ptr noundef nonnull @.str.6) #3
  %48 = fptrunc double %47 to float
  %49 = fdiv float %46, %48
  %50 = fdiv float 1.000000e+00, %49
  %sqrtf = tail call float @sqrtf(float noundef %49) #4
  %sqrtf139 = tail call float @sqrtf(float noundef %50) #4
  %51 = tail call double @clanhb_(ptr noundef nonnull @.str.7, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %10) #3
  %52 = fptrunc double %51 to float
  %53 = fcmp ogt float %52, 0.000000e+00
  %54 = fcmp ogt float %sqrtf, %52
  %or.cond143 = select i1 %53, i1 %54, i1 false
  br i1 %or.cond143, label %.sink.split, label %55

55:                                               ; preds = %44
  %56 = fcmp olt float %sqrtf139, %52
  br i1 %56, label %.sink.split, label %58

.sink.split:                                      ; preds = %55, %44
  %sqrtf139.pn = phi float [ %sqrtf, %44 ], [ %sqrtf139, %55 ]
  %storemerge147 = fdiv float %sqrtf139.pn, %52
  store float %storemerge147, ptr %16, align 4, !tbaa !12
  %.str.9..str.8 = select i1 %.not135, ptr @.str.9, ptr @.str.8
  %57 = call i32 @clascl_(ptr noundef nonnull %.str.9..str.8, ptr noundef nonnull %3, ptr noundef nonnull %3, ptr noundef nonnull @c_b11, ptr noundef nonnull %16, ptr noundef nonnull %2, ptr noundef nonnull %2, ptr noundef %4, ptr noundef nonnull %5, ptr noundef nonnull %11) #3
  br label %58

58:                                               ; preds = %.sink.split, %55
  %59 = phi i1 [ false, %55 ], [ true, %.sink.split ]
  %60 = call i32 @chbtrd_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %6, ptr noundef %10, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %9, ptr noundef nonnull %17) #3
  br i1 %.not, label %63, label %61

61:                                               ; preds = %58
  %62 = call i32 @ssterf_(ptr noundef nonnull %2, ptr noundef %6, ptr noundef %10, ptr noundef nonnull %11) #3
  br label %67

63:                                               ; preds = %58
  %64 = load i64, ptr %2, align 8, !tbaa !5
  %65 = getelementptr float, ptr %10, i64 %64
  %66 = call i32 @csteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %6, ptr noundef %10, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %65, ptr noundef nonnull %11) #3
  br label %67

67:                                               ; preds = %63, %61
  br i1 %59, label %68, label %79

68:                                               ; preds = %67
  %69 = load i64, ptr %11, align 8, !tbaa !5
  %70 = icmp eq i64 %69, 0
  br i1 %70, label %71, label %73

71:                                               ; preds = %68
  %72 = load i64, ptr %2, align 8, !tbaa !5
  br label %75

73:                                               ; preds = %68
  %74 = add nsw i64 %69, -1
  br label %75

75:                                               ; preds = %73, %71
  %storemerge = phi i64 [ %74, %73 ], [ %72, %71 ]
  store i64 %storemerge, ptr %15, align 8, !tbaa !5
  %76 = load float, ptr %16, align 4, !tbaa !12
  %77 = fdiv float 1.000000e+00, %76
  store float %77, ptr %14, align 4, !tbaa !12
  %78 = call i32 @f2c_sscal(ptr noundef nonnull %15, ptr noundef nonnull %14, ptr noundef %6, ptr noundef nonnull @c__1) #3
  br label %79

79:                                               ; preds = %67, %75, %42, %43, %41, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  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 @clanhb_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @clascl_(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 @chbtrd_(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 @ssterf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare float @sqrtf(float) local_unnamed_addr

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 }
attributes #4 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4}
!11 = !{!"float", !7, i64 0}
!12 = !{!11, !11, i64 0}


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