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

; 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
@c__2 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@c_n1 = external hidden global i32, align 4
@c__3 = external hidden global i32, align 4
@c__4 = external hidden global i32, align 4
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@c_b21 = external hidden global float, align 4
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @chbev_2stage_(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, ptr noundef %12) #0 {
  %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 ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca 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 float, align 4
  %38 = alloca float, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca float, align 4
  %48 = alloca float, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca float, align 4
  %53 = alloca i32, align 4
  %54 = alloca float, align 4
  %55 = alloca i32, align 4
  %56 = 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
  store ptr %12, ptr %26, align 8, !tbaa !5
  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 4, 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 4, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 4, 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 4, ptr %45) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #4
  %57 = load ptr, ptr %19, align 8, !tbaa !5
  %58 = load i32, ptr %57, align 4, !tbaa !9
  store i32 %58, ptr %27, align 4, !tbaa !9
  %59 = load i32, ptr %27, align 4, !tbaa !9
  %60 = mul nsw i32 %59, 1
  %61 = add nsw i32 1, %60
  store i32 %61, ptr %28, align 4, !tbaa !9
  %62 = load i32, ptr %28, align 4, !tbaa !9
  %63 = load ptr, ptr %18, align 8, !tbaa !5
  %64 = sext i32 %62 to i64
  %65 = sub i64 0, %64
  %66 = getelementptr inbounds %struct.complex, ptr %63, i64 %65
  store ptr %66, ptr %18, align 8, !tbaa !5
  %67 = load ptr, ptr %20, align 8, !tbaa !5
  %68 = getelementptr inbounds float, ptr %67, i32 -1
  store ptr %68, ptr %20, align 8, !tbaa !5
  %69 = load ptr, ptr %22, align 8, !tbaa !5
  %70 = load i32, ptr %69, align 4, !tbaa !9
  store i32 %70, ptr %29, align 4, !tbaa !9
  %71 = load i32, ptr %29, align 4, !tbaa !9
  %72 = mul nsw i32 %71, 1
  %73 = add nsw i32 1, %72
  store i32 %73, ptr %30, align 4, !tbaa !9
  %74 = load i32, ptr %30, align 4, !tbaa !9
  %75 = load ptr, ptr %21, align 8, !tbaa !5
  %76 = sext i32 %74 to i64
  %77 = sub i64 0, %76
  %78 = getelementptr inbounds %struct.complex, ptr %75, i64 %77
  store ptr %78, ptr %21, align 8, !tbaa !5
  %79 = load ptr, ptr %23, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.complex, ptr %79, i32 -1
  store ptr %80, ptr %23, align 8, !tbaa !5
  %81 = load ptr, ptr %25, align 8, !tbaa !5
  %82 = getelementptr inbounds float, ptr %81, i32 -1
  store ptr %82, ptr %25, align 8, !tbaa !5
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = call i32 @lsame_(ptr noundef %83, ptr noundef @.str)
  store i32 %84, ptr %44, align 4, !tbaa !9
  %85 = load ptr, ptr %15, align 8, !tbaa !5
  %86 = call i32 @lsame_(ptr noundef %85, ptr noundef @.str.1)
  store i32 %86, ptr %42, align 4, !tbaa !9
  %87 = load ptr, ptr %24, align 8, !tbaa !5
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = icmp eq i32 %88, -1
  %90 = zext i1 %89 to i32
  store i32 %90, ptr %53, align 4, !tbaa !9
  %91 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 0, ptr %91, align 4, !tbaa !9
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = call i32 @lsame_(ptr noundef %92, ptr noundef @.str.2)
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %97, label %95

95:                                               ; preds = %13
  %96 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -1, ptr %96, align 4, !tbaa !9
  br label %147

97:                                               ; preds = %13
  %98 = load i32, ptr %42, align 4, !tbaa !9
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %106, label %100

100:                                              ; preds = %97
  %101 = load ptr, ptr %15, align 8, !tbaa !5
  %102 = call i32 @lsame_(ptr noundef %101, ptr noundef @.str.3)
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %106, label %104

104:                                              ; preds = %100
  %105 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -2, ptr %105, align 4, !tbaa !9
  br label %146

106:                                              ; preds = %100, %97
  %107 = load ptr, ptr %16, align 8, !tbaa !5
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %109 = icmp slt i32 %108, 0
  br i1 %109, label %110, label %112

110:                                              ; preds = %106
  %111 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -3, ptr %111, align 4, !tbaa !9
  br label %145

112:                                              ; preds = %106
  %113 = load ptr, ptr %17, align 8, !tbaa !5
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = icmp slt i32 %114, 0
  br i1 %115, label %116, label %118

116:                                              ; preds = %112
  %117 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -4, ptr %117, align 4, !tbaa !9
  br label %144

118:                                              ; preds = %112
  %119 = load ptr, ptr %19, align 8, !tbaa !5
  %120 = load i32, ptr %119, align 4, !tbaa !9
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  %122 = load i32, ptr %121, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  %124 = icmp slt i32 %120, %123
  br i1 %124, label %125, label %127

125:                                              ; preds = %118
  %126 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -6, ptr %126, align 4, !tbaa !9
  br label %143

127:                                              ; preds = %118
  %128 = load ptr, ptr %22, align 8, !tbaa !5
  %129 = load i32, ptr %128, align 4, !tbaa !9
  %130 = icmp slt i32 %129, 1
  br i1 %130, label %140, label %131

131:                                              ; preds = %127
  %132 = load i32, ptr %44, align 4, !tbaa !9
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %142

134:                                              ; preds = %131
  %135 = load ptr, ptr %22, align 8, !tbaa !5
  %136 = load i32, ptr %135, align 4, !tbaa !9
  %137 = load ptr, ptr %16, align 8, !tbaa !5
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = icmp slt i32 %136, %138
  br i1 %139, label %140, label %142

140:                                              ; preds = %134, %127
  %141 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -9, ptr %141, align 4, !tbaa !9
  br label %142

142:                                              ; preds = %140, %134, %131
  br label %143

143:                                              ; preds = %142, %125
  br label %144

144:                                              ; preds = %143, %116
  br label %145

145:                                              ; preds = %144, %110
  br label %146

146:                                              ; preds = %145, %104
  br label %147

147:                                              ; preds = %146, %95
  %148 = load ptr, ptr %26, align 8, !tbaa !5
  %149 = load i32, ptr %148, align 4, !tbaa !9
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %151, label %199

151:                                              ; preds = %147
  %152 = load ptr, ptr %16, align 8, !tbaa !5
  %153 = load i32, ptr %152, align 4, !tbaa !9
  %154 = icmp sle i32 %153, 1
  br i1 %154, label %155, label %164

155:                                              ; preds = %151
  store i32 1, ptr %41, align 4, !tbaa !9
  %156 = load i32, ptr %41, align 4, !tbaa !9
  %157 = sitofp i32 %156 to float
  %158 = load ptr, ptr %23, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.complex, ptr %158, i64 1
  %160 = getelementptr inbounds %struct.complex, ptr %159, i32 0, i32 0
  store float %157, ptr %160, align 4, !tbaa !11
  %161 = load ptr, ptr %23, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.complex, ptr %161, i64 1
  %163 = getelementptr inbounds %struct.complex, ptr %162, i32 0, i32 1
  store float 0.000000e+00, ptr %163, align 4, !tbaa !14
  br label %188

164:                                              ; preds = %151
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = load ptr, ptr %16, align 8, !tbaa !5
  %167 = load ptr, ptr %17, align 8, !tbaa !5
  %168 = call i32 @ilaenv2stage_(ptr noundef @c__2, ptr noundef @.str.4, ptr noundef %165, ptr noundef %166, ptr noundef %167, ptr noundef @c_n1, ptr noundef @c_n1)
  store i32 %168, ptr %45, align 4, !tbaa !9
  %169 = load ptr, ptr %14, align 8, !tbaa !5
  %170 = load ptr, ptr %16, align 8, !tbaa !5
  %171 = load ptr, ptr %17, align 8, !tbaa !5
  %172 = call i32 @ilaenv2stage_(ptr noundef @c__3, ptr noundef @.str.4, ptr noundef %169, ptr noundef %170, ptr noundef %171, ptr noundef %45, ptr noundef @c_n1)
  store i32 %172, ptr %40, align 4, !tbaa !9
  %173 = load ptr, ptr %14, align 8, !tbaa !5
  %174 = load ptr, ptr %16, align 8, !tbaa !5
  %175 = load ptr, ptr %17, align 8, !tbaa !5
  %176 = call i32 @ilaenv2stage_(ptr noundef @c__4, ptr noundef @.str.4, ptr noundef %173, ptr noundef %174, ptr noundef %175, ptr noundef %45, ptr noundef @c_n1)
  store i32 %176, ptr %43, align 4, !tbaa !9
  %177 = load i32, ptr %40, align 4, !tbaa !9
  %178 = load i32, ptr %43, align 4, !tbaa !9
  %179 = add nsw i32 %177, %178
  store i32 %179, ptr %41, align 4, !tbaa !9
  %180 = load i32, ptr %41, align 4, !tbaa !9
  %181 = sitofp i32 %180 to float
  %182 = load ptr, ptr %23, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.complex, ptr %182, i64 1
  %184 = getelementptr inbounds %struct.complex, ptr %183, i32 0, i32 0
  store float %181, ptr %184, align 4, !tbaa !11
  %185 = load ptr, ptr %23, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.complex, ptr %185, i64 1
  %187 = getelementptr inbounds %struct.complex, ptr %186, i32 0, i32 1
  store float 0.000000e+00, ptr %187, align 4, !tbaa !14
  br label %188

188:                                              ; preds = %164, %155
  %189 = load ptr, ptr %24, align 8, !tbaa !5
  %190 = load i32, ptr %189, align 4, !tbaa !9
  %191 = load i32, ptr %41, align 4, !tbaa !9
  %192 = icmp slt i32 %190, %191
  br i1 %192, label %193, label %198

193:                                              ; preds = %188
  %194 = load i32, ptr %53, align 4, !tbaa !9
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %198, label %196

196:                                              ; preds = %193
  %197 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -11, ptr %197, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %196, %193, %188
  br label %199

199:                                              ; preds = %198, %147
  %200 = load ptr, ptr %26, align 8, !tbaa !5
  %201 = load i32, ptr %200, align 4, !tbaa !9
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %208

203:                                              ; preds = %199
  %204 = load ptr, ptr %26, align 8, !tbaa !5
  %205 = load i32, ptr %204, align 4, !tbaa !9
  %206 = sub nsw i32 0, %205
  store i32 %206, ptr %31, align 4, !tbaa !9
  %207 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %31, i32 noundef 13)
  store i32 1, ptr %56, align 4
  br label %436

208:                                              ; preds = %199
  %209 = load i32, ptr %53, align 4, !tbaa !9
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %211, label %212

211:                                              ; preds = %208
  store i32 1, ptr %56, align 4
  br label %436

212:                                              ; preds = %208
  br label %213

213:                                              ; preds = %212
  %214 = load ptr, ptr %16, align 8, !tbaa !5
  %215 = load i32, ptr %214, align 4, !tbaa !9
  %216 = icmp eq i32 %215, 0
  br i1 %216, label %217, label %218

217:                                              ; preds = %213
  store i32 1, ptr %56, align 4
  br label %436

218:                                              ; preds = %213
  %219 = load ptr, ptr %16, align 8, !tbaa !5
  %220 = load i32, ptr %219, align 4, !tbaa !9
  %221 = icmp eq i32 %220, 1
  br i1 %221, label %222, label %267

222:                                              ; preds = %218
  %223 = load i32, ptr %42, align 4, !tbaa !9
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %225, label %236

225:                                              ; preds = %222
  %226 = load i32, ptr %27, align 4, !tbaa !9
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %31, align 4, !tbaa !9
  %228 = load ptr, ptr %18, align 8, !tbaa !5
  %229 = load i32, ptr %31, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds %struct.complex, ptr %228, i64 %230
  %232 = getelementptr inbounds %struct.complex, ptr %231, i32 0, i32 0
  %233 = load float, ptr %232, align 4, !tbaa !11
  %234 = load ptr, ptr %20, align 8, !tbaa !5
  %235 = getelementptr inbounds float, ptr %234, i64 1
  store float %233, ptr %235, align 4, !tbaa !15
  br label %250

236:                                              ; preds = %222
  %237 = load ptr, ptr %17, align 8, !tbaa !5
  %238 = load i32, ptr %237, align 4, !tbaa !9
  %239 = add nsw i32 %238, 1
  %240 = load i32, ptr %27, align 4, !tbaa !9
  %241 = add nsw i32 %239, %240
  store i32 %241, ptr %31, align 4, !tbaa !9
  %242 = load ptr, ptr %18, align 8, !tbaa !5
  %243 = load i32, ptr %31, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds %struct.complex, ptr %242, i64 %244
  %246 = getelementptr inbounds %struct.complex, ptr %245, i32 0, i32 0
  %247 = load float, ptr %246, align 4, !tbaa !11
  %248 = load ptr, ptr %20, align 8, !tbaa !5
  %249 = getelementptr inbounds float, ptr %248, i64 1
  store float %247, ptr %249, align 4, !tbaa !15
  br label %250

250:                                              ; preds = %236, %225
  %251 = load i32, ptr %44, align 4, !tbaa !9
  %252 = icmp ne i32 %251, 0
  br i1 %252, label %253, label %266

253:                                              ; preds = %250
  %254 = load i32, ptr %29, align 4, !tbaa !9
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %31, align 4, !tbaa !9
  %256 = load ptr, ptr %21, align 8, !tbaa !5
  %257 = load i32, ptr %31, align 4, !tbaa !9
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds %struct.complex, ptr %256, i64 %258
  %260 = getelementptr inbounds %struct.complex, ptr %259, i32 0, i32 0
  store float 1.000000e+00, ptr %260, align 4, !tbaa !11
  %261 = load ptr, ptr %21, align 8, !tbaa !5
  %262 = load i32, ptr %31, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds %struct.complex, ptr %261, i64 %263
  %265 = getelementptr inbounds %struct.complex, ptr %264, i32 0, i32 1
  store float 0.000000e+00, ptr %265, align 4, !tbaa !14
  br label %266

266:                                              ; preds = %253, %250
  store i32 1, ptr %56, align 4
  br label %436

267:                                              ; preds = %218
  %268 = call float @slamch_(ptr noundef @.str.6)
  store float %268, ptr %47, align 4, !tbaa !15
  %269 = call float @slamch_(ptr noundef @.str.7)
  store float %269, ptr %54, align 4, !tbaa !15
  %270 = load float, ptr %47, align 4, !tbaa !15
  %271 = load float, ptr %54, align 4, !tbaa !15
  %272 = fdiv float %270, %271
  store float %272, ptr %52, align 4, !tbaa !15
  %273 = load float, ptr %52, align 4, !tbaa !15
  %274 = fdiv float 1.000000e+00, %273
  store float %274, ptr %48, align 4, !tbaa !15
  %275 = load float, ptr %52, align 4, !tbaa !15
  %276 = fpext float %275 to double
  %277 = call double @sqrt(double noundef %276) #4
  %278 = fptrunc double %277 to float
  store float %278, ptr %36, align 4, !tbaa !15
  %279 = load float, ptr %48, align 4, !tbaa !15
  %280 = fpext float %279 to double
  %281 = call double @sqrt(double noundef %280) #4
  %282 = fptrunc double %281 to float
  store float %282, ptr %37, align 4, !tbaa !15
  %283 = load ptr, ptr %15, align 8, !tbaa !5
  %284 = load ptr, ptr %16, align 8, !tbaa !5
  %285 = load ptr, ptr %17, align 8, !tbaa !5
  %286 = load ptr, ptr %18, align 8, !tbaa !5
  %287 = load i32, ptr %28, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds %struct.complex, ptr %286, i64 %288
  %290 = load ptr, ptr %19, align 8, !tbaa !5
  %291 = load ptr, ptr %25, align 8, !tbaa !5
  %292 = getelementptr inbounds float, ptr %291, i64 1
  %293 = call float @clanhb_(ptr noundef @.str.8, ptr noundef %283, ptr noundef %284, ptr noundef %285, ptr noundef %289, ptr noundef %290, ptr noundef %292)
  store float %293, ptr %34, align 4, !tbaa !15
  store i32 0, ptr %46, align 4, !tbaa !9
  %294 = load float, ptr %34, align 4, !tbaa !15
  %295 = fcmp ogt float %294, 0.000000e+00
  br i1 %295, label %296, label %304

296:                                              ; preds = %267
  %297 = load float, ptr %34, align 4, !tbaa !15
  %298 = load float, ptr %36, align 4, !tbaa !15
  %299 = fcmp olt float %297, %298
  br i1 %299, label %300, label %304

300:                                              ; preds = %296
  store i32 1, ptr %46, align 4, !tbaa !9
  %301 = load float, ptr %36, align 4, !tbaa !15
  %302 = load float, ptr %34, align 4, !tbaa !15
  %303 = fdiv float %301, %302
  store float %303, ptr %38, align 4, !tbaa !15
  br label %313

304:                                              ; preds = %296, %267
  %305 = load float, ptr %34, align 4, !tbaa !15
  %306 = load float, ptr %37, align 4, !tbaa !15
  %307 = fcmp ogt float %305, %306
  br i1 %307, label %308, label %312

308:                                              ; preds = %304
  store i32 1, ptr %46, align 4, !tbaa !9
  %309 = load float, ptr %37, align 4, !tbaa !15
  %310 = load float, ptr %34, align 4, !tbaa !15
  %311 = fdiv float %309, %310
  store float %311, ptr %38, align 4, !tbaa !15
  br label %312

312:                                              ; preds = %308, %304
  br label %313

313:                                              ; preds = %312, %300
  %314 = load i32, ptr %46, align 4, !tbaa !9
  %315 = icmp eq i32 %314, 1
  br i1 %315, label %316, label %342

316:                                              ; preds = %313
  %317 = load i32, ptr %42, align 4, !tbaa !9
  %318 = icmp ne i32 %317, 0
  br i1 %318, label %319, label %330

319:                                              ; preds = %316
  %320 = load ptr, ptr %17, align 8, !tbaa !5
  %321 = load ptr, ptr %17, align 8, !tbaa !5
  %322 = load ptr, ptr %16, align 8, !tbaa !5
  %323 = load ptr, ptr %16, align 8, !tbaa !5
  %324 = load ptr, ptr %18, align 8, !tbaa !5
  %325 = load i32, ptr %28, align 4, !tbaa !9
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds %struct.complex, ptr %324, i64 %326
  %328 = load ptr, ptr %19, align 8, !tbaa !5
  %329 = load ptr, ptr %26, align 8, !tbaa !5
  call void @clascl_(ptr noundef @.str.9, ptr noundef %320, ptr noundef %321, ptr noundef @c_b21, ptr noundef %38, ptr noundef %322, ptr noundef %323, ptr noundef %327, ptr noundef %328, ptr noundef %329)
  br label %341

330:                                              ; preds = %316
  %331 = load ptr, ptr %17, align 8, !tbaa !5
  %332 = load ptr, ptr %17, align 8, !tbaa !5
  %333 = load ptr, ptr %16, align 8, !tbaa !5
  %334 = load ptr, ptr %16, align 8, !tbaa !5
  %335 = load ptr, ptr %18, align 8, !tbaa !5
  %336 = load i32, ptr %28, align 4, !tbaa !9
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds %struct.complex, ptr %335, i64 %337
  %339 = load ptr, ptr %19, align 8, !tbaa !5
  %340 = load ptr, ptr %26, align 8, !tbaa !5
  call void @clascl_(ptr noundef @.str.10, ptr noundef %331, ptr noundef %332, ptr noundef @c_b21, ptr noundef %38, ptr noundef %333, ptr noundef %334, ptr noundef %338, ptr noundef %339, ptr noundef %340)
  br label %341

341:                                              ; preds = %330, %319
  br label %342

342:                                              ; preds = %341, %313
  store i32 1, ptr %33, align 4, !tbaa !9
  store i32 1, ptr %55, align 4, !tbaa !9
  %343 = load i32, ptr %55, align 4, !tbaa !9
  %344 = load i32, ptr %40, align 4, !tbaa !9
  %345 = add nsw i32 %343, %344
  store i32 %345, ptr %49, align 4, !tbaa !9
  %346 = load ptr, ptr %24, align 8, !tbaa !5
  %347 = load i32, ptr %346, align 4, !tbaa !9
  %348 = load i32, ptr %49, align 4, !tbaa !9
  %349 = sub nsw i32 %347, %348
  %350 = add nsw i32 %349, 1
  store i32 %350, ptr %51, align 4, !tbaa !9
  %351 = load ptr, ptr %14, align 8, !tbaa !5
  %352 = load ptr, ptr %15, align 8, !tbaa !5
  %353 = load ptr, ptr %16, align 8, !tbaa !5
  %354 = load ptr, ptr %17, align 8, !tbaa !5
  %355 = load ptr, ptr %18, align 8, !tbaa !5
  %356 = load i32, ptr %28, align 4, !tbaa !9
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds %struct.complex, ptr %355, i64 %357
  %359 = load ptr, ptr %19, align 8, !tbaa !5
  %360 = load ptr, ptr %20, align 8, !tbaa !5
  %361 = getelementptr inbounds float, ptr %360, i64 1
  %362 = load ptr, ptr %25, align 8, !tbaa !5
  %363 = load i32, ptr %33, align 4, !tbaa !9
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds float, ptr %362, i64 %364
  %366 = load ptr, ptr %23, align 8, !tbaa !5
  %367 = load i32, ptr %55, align 4, !tbaa !9
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds %struct.complex, ptr %366, i64 %368
  %370 = load ptr, ptr %23, align 8, !tbaa !5
  %371 = load i32, ptr %49, align 4, !tbaa !9
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds %struct.complex, ptr %370, i64 %372
  call void @chetrd_hb2st_(ptr noundef @.str.2, ptr noundef %351, ptr noundef %352, ptr noundef %353, ptr noundef %354, ptr noundef %358, ptr noundef %359, ptr noundef %361, ptr noundef %365, ptr noundef %369, ptr noundef %40, ptr noundef %373, ptr noundef %51, ptr noundef %39)
  %374 = load i32, ptr %44, align 4, !tbaa !9
  %375 = icmp ne i32 %374, 0
  br i1 %375, label %385, label %376

376:                                              ; preds = %342
  %377 = load ptr, ptr %16, align 8, !tbaa !5
  %378 = load ptr, ptr %20, align 8, !tbaa !5
  %379 = getelementptr inbounds float, ptr %378, i64 1
  %380 = load ptr, ptr %25, align 8, !tbaa !5
  %381 = load i32, ptr %33, align 4, !tbaa !9
  %382 = sext i32 %381 to i64
  %383 = getelementptr inbounds float, ptr %380, i64 %382
  %384 = load ptr, ptr %26, align 8, !tbaa !5
  call void @ssterf_(ptr noundef %377, ptr noundef %379, ptr noundef %383, ptr noundef %384)
  br label %408

385:                                              ; preds = %342
  %386 = load i32, ptr %33, align 4, !tbaa !9
  %387 = load ptr, ptr %16, align 8, !tbaa !5
  %388 = load i32, ptr %387, align 4, !tbaa !9
  %389 = add nsw i32 %386, %388
  store i32 %389, ptr %50, align 4, !tbaa !9
  %390 = load ptr, ptr %14, align 8, !tbaa !5
  %391 = load ptr, ptr %16, align 8, !tbaa !5
  %392 = load ptr, ptr %20, align 8, !tbaa !5
  %393 = getelementptr inbounds float, ptr %392, i64 1
  %394 = load ptr, ptr %25, align 8, !tbaa !5
  %395 = load i32, ptr %33, align 4, !tbaa !9
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds float, ptr %394, i64 %396
  %398 = load ptr, ptr %21, align 8, !tbaa !5
  %399 = load i32, ptr %30, align 4, !tbaa !9
  %400 = sext i32 %399 to i64
  %401 = getelementptr inbounds %struct.complex, ptr %398, i64 %400
  %402 = load ptr, ptr %22, align 8, !tbaa !5
  %403 = load ptr, ptr %25, align 8, !tbaa !5
  %404 = load i32, ptr %50, align 4, !tbaa !9
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds float, ptr %403, i64 %405
  %407 = load ptr, ptr %26, align 8, !tbaa !5
  call void @csteqr_(ptr noundef %390, ptr noundef %391, ptr noundef %393, ptr noundef %397, ptr noundef %401, ptr noundef %402, ptr noundef %406, ptr noundef %407)
  br label %408

408:                                              ; preds = %385, %376
  %409 = load i32, ptr %46, align 4, !tbaa !9
  %410 = icmp eq i32 %409, 1
  br i1 %410, label %411, label %427

411:                                              ; preds = %408
  %412 = load ptr, ptr %26, align 8, !tbaa !5
  %413 = load i32, ptr %412, align 4, !tbaa !9
  %414 = icmp eq i32 %413, 0
  br i1 %414, label %415, label %418

415:                                              ; preds = %411
  %416 = load ptr, ptr %16, align 8, !tbaa !5
  %417 = load i32, ptr %416, align 4, !tbaa !9
  store i32 %417, ptr %35, align 4, !tbaa !9
  br label %422

418:                                              ; preds = %411
  %419 = load ptr, ptr %26, align 8, !tbaa !5
  %420 = load i32, ptr %419, align 4, !tbaa !9
  %421 = sub nsw i32 %420, 1
  store i32 %421, ptr %35, align 4, !tbaa !9
  br label %422

422:                                              ; preds = %418, %415
  %423 = load float, ptr %38, align 4, !tbaa !15
  %424 = fdiv float 1.000000e+00, %423
  store float %424, ptr %32, align 4, !tbaa !15
  %425 = load ptr, ptr %20, align 8, !tbaa !5
  %426 = getelementptr inbounds float, ptr %425, i64 1
  call void @sscal_(ptr noundef %35, ptr noundef %32, ptr noundef %426, ptr noundef @c__1)
  br label %427

427:                                              ; preds = %422, %408
  %428 = load i32, ptr %41, align 4, !tbaa !9
  %429 = sitofp i32 %428 to float
  %430 = load ptr, ptr %23, align 8, !tbaa !5
  %431 = getelementptr inbounds %struct.complex, ptr %430, i64 1
  %432 = getelementptr inbounds %struct.complex, ptr %431, i32 0, i32 0
  store float %429, ptr %432, align 4, !tbaa !11
  %433 = load ptr, ptr %23, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.complex, ptr %433, i64 1
  %435 = getelementptr inbounds %struct.complex, ptr %434, i32 0, i32 1
  store float 0.000000e+00, ptr %435, align 4, !tbaa !14
  store i32 1, ptr %56, align 4
  br label %436

436:                                              ; preds = %427, %266, %217, %211, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #4
  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 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 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 4, 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
  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 @ilaenv2stage_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare float @slamch_(ptr noundef) #2

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

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

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

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

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

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


; 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
@c__2 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@c_n1 = external hidden global i32, align 4
@c__3 = external hidden global i32, align 4
@c__4 = external hidden global i32, align 4
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@c_b21 = external hidden global float, align 4
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @chbev_2stage_(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 nocapture noundef readonly %10, ptr noundef %11, ptr noundef %12) local_unnamed_addr #0 {
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #3
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = add i32 %22, 1
  %narrow = xor i32 %22, -1
  %24 = sext i32 %narrow to i64
  %25 = getelementptr inbounds %struct.complex, ptr %4, i64 %24
  %26 = load i32, ptr %8, align 4, !tbaa !5
  %27 = add nsw i32 %26, 1
  %narrow175 = xor i32 %26, -1
  %28 = sext i32 %narrow175 to i64
  %29 = getelementptr inbounds %struct.complex, ptr %7, i64 %28
  %30 = getelementptr inbounds i8, ptr %9, i64 -8
  %31 = getelementptr inbounds i8, ptr %11, i64 -4
  %32 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  %33 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.1) #3
  %34 = load i32, ptr %10, align 4, !tbaa !5
  %35 = icmp eq i32 %34, -1
  store i32 0, ptr %12, align 4, !tbaa !5
  %36 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #3
  %.not = icmp eq i32 %36, 0
  br i1 %.not, label %.thread182.sink.split, label %37

37:                                               ; preds = %13
  %.not164 = icmp eq i32 %33, 0
  br i1 %.not164, label %38, label %40

38:                                               ; preds = %37
  %39 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #3
  %.not165 = icmp eq i32 %39, 0
  br i1 %.not165, label %.thread182.sink.split, label %40

40:                                               ; preds = %38, %37
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = icmp slt i32 %41, 0
  br i1 %42, label %.thread182.sink.split, label %43

43:                                               ; preds = %40
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = icmp slt i32 %44, 0
  br i1 %45, label %.thread182.sink.split, label %46

46:                                               ; preds = %43
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %.not166 = icmp sgt i32 %47, %44
  br i1 %.not166, label %48, label %.thread182.sink.split

48:                                               ; preds = %46
  %49 = load i32, ptr %8, align 4, !tbaa !5
  %50 = icmp slt i32 %49, 1
  br i1 %50, label %.thread182.sink.split, label %51

51:                                               ; preds = %48
  %.not167 = icmp ne i32 %32, 0
  %52 = icmp ult i32 %49, %41
  %or.cond176 = and i1 %.not167, %52
  br i1 %or.cond176, label %.thread182.sink.split, label %53

53:                                               ; preds = %51
  %.pr = load i32, ptr %12, align 4, !tbaa !5
  %54 = icmp eq i32 %.pr, 0
  br i1 %54, label %55, label %.thread182

55:                                               ; preds = %53
  %56 = icmp ult i32 %41, 2
  br i1 %56, label %63, label %57

57:                                               ; preds = %55
  %58 = tail call i32 @ilaenv2stage_(ptr noundef nonnull @c__2, ptr noundef nonnull @.str.4, ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1) #3
  store i32 %58, ptr %20, align 4, !tbaa !5
  %59 = call i32 @ilaenv2stage_(ptr noundef nonnull @c__3, ptr noundef nonnull @.str.4, ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %20, ptr noundef nonnull @c_n1) #3
  store i32 %59, ptr %19, align 4, !tbaa !5
  %60 = call i32 @ilaenv2stage_(ptr noundef nonnull @c__4, ptr noundef nonnull @.str.4, ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %20, ptr noundef nonnull @c_n1) #3
  %61 = add nsw i32 %59, %60
  %62 = sitofp i32 %61 to float
  br label %63

63:                                               ; preds = %55, %57
  %64 = phi i32 [ %59, %57 ], [ undef, %55 ]
  %.sink = phi float [ %62, %57 ], [ 1.000000e+00, %55 ]
  %.0 = phi i32 [ %61, %57 ], [ 1, %55 ]
  store float %.sink, ptr %9, align 4
  %65 = getelementptr inbounds i8, ptr %9, i64 4
  store float 0.000000e+00, ptr %65, align 4
  %66 = load i32, ptr %10, align 4, !tbaa !5
  %67 = icmp sge i32 %66, %.0
  %or.cond = select i1 %67, i1 true, i1 %35
  br i1 %or.cond, label %.thread, label %.thread182.sink.split

.thread:                                          ; preds = %63
  %.pr179.pr = load i32, ptr %12, align 4, !tbaa !5
  %.not168 = icmp eq i32 %.pr179.pr, 0
  br i1 %.not168, label %71, label %.thread182

.thread182.sink.split:                            ; preds = %63, %48, %51, %46, %43, %40, %38, %13
  %.sink192 = phi i32 [ -1, %13 ], [ -2, %38 ], [ -3, %40 ], [ -4, %43 ], [ -6, %46 ], [ -9, %51 ], [ -9, %48 ], [ -11, %63 ]
  store i32 %.sink192, ptr %12, align 4, !tbaa !5
  br label %.thread182

.thread182:                                       ; preds = %.thread182.sink.split, %53, %.thread
  %68 = phi i32 [ %.pr179.pr, %.thread ], [ %.pr, %53 ], [ %.sink192, %.thread182.sink.split ]
  %69 = sub nsw i32 0, %68
  store i32 %69, ptr %14, align 4, !tbaa !5
  %70 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %14, i32 noundef 13) #3
  br label %120

71:                                               ; preds = %.thread
  br i1 %35, label %120, label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %2, align 4, !tbaa !5
  switch i32 %73, label %84 [
    i32 0, label %120
    i32 1, label %74
  ]

74:                                               ; preds = %72
  br i1 %.not164, label %75, label %80

75:                                               ; preds = %74
  %76 = load i32, ptr %3, align 4, !tbaa !5
  %77 = add i32 %23, %76
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds %struct.complex, ptr %25, i64 %78
  br label %80

80:                                               ; preds = %74, %75
  %storemerge173.in = phi ptr [ %79, %75 ], [ %4, %74 ]
  %storemerge173 = load float, ptr %storemerge173.in, align 4, !tbaa !9
  store float %storemerge173, ptr %6, align 4, !tbaa !12
  %.not174 = icmp eq i32 %32, 0
  br i1 %.not174, label %120, label %81

81:                                               ; preds = %80
  store float 1.000000e+00, ptr %7, align 4, !tbaa !9
  %82 = sext i32 %27 to i64
  %83 = getelementptr inbounds %struct.complex, ptr %29, i64 %82, i32 1
  store float 0.000000e+00, ptr %83, align 4, !tbaa !13
  br label %120

84:                                               ; preds = %72
  %85 = call float @slamch_(ptr noundef nonnull @.str.6) #3
  %86 = call float @slamch_(ptr noundef nonnull @.str.7) #3
  %87 = fdiv float %85, %86
  %88 = fdiv float 1.000000e+00, %87
  %sqrtf = call float @sqrtf(float noundef %87) #4
  %sqrtf169 = call float @sqrtf(float noundef %88) #4
  %89 = call float @clanhb_(ptr noundef nonnull @.str.8, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %11) #3
  %90 = fcmp ogt float %89, 0.000000e+00
  %91 = fcmp olt float %89, %sqrtf
  %or.cond177 = select i1 %90, i1 %91, i1 false
  br i1 %or.cond177, label %.sink.split, label %92

92:                                               ; preds = %84
  %93 = fcmp ogt float %89, %sqrtf169
  br i1 %93, label %.sink.split, label %94

.sink.split:                                      ; preds = %92, %84
  %sqrtf169.pn = phi float [ %sqrtf, %84 ], [ %sqrtf169, %92 ]
  %storemerge190 = fdiv float %sqrtf169.pn, %89
  store float %storemerge190, ptr %17, align 4, !tbaa !12
  %.str.10..str.9 = select i1 %.not164, ptr @.str.10, ptr @.str.9
  call void @clascl_(ptr noundef nonnull %.str.10..str.9, ptr noundef nonnull %3, ptr noundef nonnull %3, ptr noundef nonnull @c_b21, ptr noundef nonnull %17, ptr noundef nonnull %2, ptr noundef nonnull %2, ptr noundef %4, ptr noundef nonnull %5, ptr noundef nonnull %12) #3
  br label %94

94:                                               ; preds = %.sink.split, %92
  %95 = phi i1 [ false, %92 ], [ true, %.sink.split ]
  %96 = load i32, ptr %10, align 4, !tbaa !5
  %97 = sub i32 %96, %64
  store i32 %97, ptr %21, align 4, !tbaa !5
  %98 = sext i32 %64 to i64
  %99 = getelementptr %struct.complex, ptr %30, i64 %98
  %100 = getelementptr i8, ptr %99, i64 8
  call void @chetrd_hb2st_(ptr noundef nonnull @.str.2, 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 %11, ptr noundef nonnull %9, ptr noundef nonnull %19, ptr noundef nonnull %100, ptr noundef nonnull %21, ptr noundef nonnull %18) #3
  %.not171 = icmp eq i32 %32, 0
  br i1 %.not171, label %101, label %102

101:                                              ; preds = %94
  call void @ssterf_(ptr noundef nonnull %2, ptr noundef %6, ptr noundef %11, ptr noundef nonnull %12) #3
  br label %107

102:                                              ; preds = %94
  %103 = load i32, ptr %2, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr float, ptr %31, i64 %104
  %106 = getelementptr i8, ptr %105, i64 4
  call void @csteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %6, ptr noundef %11, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %106, ptr noundef nonnull %12) #3
  br label %107

107:                                              ; preds = %102, %101
  br i1 %95, label %108, label %118

108:                                              ; preds = %107
  %109 = load i32, ptr %12, align 4, !tbaa !5
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %111, label %113

111:                                              ; preds = %108
  %112 = load i32, ptr %2, align 4, !tbaa !5
  br label %115

113:                                              ; preds = %108
  %114 = add nsw i32 %109, -1
  br label %115

115:                                              ; preds = %113, %111
  %storemerge = phi i32 [ %114, %113 ], [ %112, %111 ]
  store i32 %storemerge, ptr %16, align 4, !tbaa !5
  %116 = load float, ptr %17, align 4, !tbaa !12
  %117 = fdiv float 1.000000e+00, %116
  store float %117, ptr %15, align 4, !tbaa !12
  call void @sscal_(ptr noundef nonnull %16, ptr noundef nonnull %15, ptr noundef %6, ptr noundef nonnull @c__1) #3
  br label %118

118:                                              ; preds = %115, %107
  %119 = sitofp i32 %.0 to float
  store float %119, ptr %9, align 4, !tbaa !9
  store float 0.000000e+00, ptr %65, align 4, !tbaa !13
  br label %120

120:                                              ; preds = %80, %81, %72, %71, %118, %.thread182
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  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 @ilaenv2stage_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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 @clanhb_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare void @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 = !{!"int", !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}
!13 = !{!10, !11, i64 4}


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