; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (cheev_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__1 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@c_n1 = external hidden global i32, align 4
@c__2 = 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
@c__0 = external hidden global i32, align 4
@c_b28 = external hidden global float, align 4

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

78:                                               ; preds = %10
  %79 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -1, ptr %79, align 4, !tbaa !9
  br label %113

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

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

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

89:                                               ; preds = %83, %80
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = icmp slt i32 %91, 0
  br i1 %92, label %93, label %95

93:                                               ; preds = %89
  %94 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -3, ptr %94, align 4, !tbaa !9
  br label %111

95:                                               ; preds = %89
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = icmp sge i32 1, %99
  br i1 %100, label %101, label %102

101:                                              ; preds = %95
  br label %105

102:                                              ; preds = %95
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = load i32, ptr %103, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %102, %101
  %106 = phi i32 [ 1, %101 ], [ %104, %102 ]
  %107 = icmp slt i32 %97, %106
  br i1 %107, label %108, label %110

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

110:                                              ; preds = %108, %105
  br label %111

111:                                              ; preds = %110, %93
  br label %112

112:                                              ; preds = %111, %87
  br label %113

113:                                              ; preds = %112, %78
  %114 = load ptr, ptr %20, align 8, !tbaa !5
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %154

117:                                              ; preds = %113
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = call i32 @ilaenv2stage_(ptr noundef @c__1, ptr noundef @.str.4, ptr noundef %118, ptr noundef %119, ptr noundef @c_n1, ptr noundef @c_n1, ptr noundef @c_n1)
  store i32 %120, ptr %38, align 4, !tbaa !9
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = call i32 @ilaenv2stage_(ptr noundef @c__2, ptr noundef @.str.4, ptr noundef %121, ptr noundef %122, ptr noundef %38, ptr noundef @c_n1, ptr noundef @c_n1)
  store i32 %123, ptr %37, align 4, !tbaa !9
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = call i32 @ilaenv2stage_(ptr noundef @c__3, ptr noundef @.str.4, ptr noundef %124, ptr noundef %125, ptr noundef %38, ptr noundef %37, ptr noundef @c_n1)
  store i32 %126, ptr %32, align 4, !tbaa !9
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = call i32 @ilaenv2stage_(ptr noundef @c__4, ptr noundef @.str.4, ptr noundef %127, ptr noundef %128, ptr noundef %38, ptr noundef %37, ptr noundef @c_n1)
  store i32 %129, ptr %35, align 4, !tbaa !9
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = load i32, ptr %32, align 4, !tbaa !9
  %133 = add nsw i32 %131, %132
  %134 = load i32, ptr %35, align 4, !tbaa !9
  %135 = add nsw i32 %133, %134
  store i32 %135, ptr %33, align 4, !tbaa !9
  %136 = load i32, ptr %33, align 4, !tbaa !9
  %137 = sitofp i32 %136 to float
  %138 = load ptr, ptr %17, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.complex, ptr %138, i64 1
  %140 = getelementptr inbounds %struct.complex, ptr %139, i32 0, i32 0
  store float %137, ptr %140, align 4, !tbaa !11
  %141 = load ptr, ptr %17, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.complex, ptr %141, i64 1
  %143 = getelementptr inbounds %struct.complex, ptr %142, i32 0, i32 1
  store float 0.000000e+00, ptr %143, align 4, !tbaa !14
  %144 = load ptr, ptr %18, align 8, !tbaa !5
  %145 = load i32, ptr %144, align 4, !tbaa !9
  %146 = load i32, ptr %33, align 4, !tbaa !9
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %148, label %153

148:                                              ; preds = %117
  %149 = load i32, ptr %46, align 4, !tbaa !9
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %153, label %151

151:                                              ; preds = %148
  %152 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -8, ptr %152, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %151, %148, %117
  br label %154

154:                                              ; preds = %153, %113
  %155 = load ptr, ptr %20, align 8, !tbaa !5
  %156 = load i32, ptr %155, align 4, !tbaa !9
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %163

158:                                              ; preds = %154
  %159 = load ptr, ptr %20, align 8, !tbaa !5
  %160 = load i32, ptr %159, align 4, !tbaa !9
  %161 = sub nsw i32 0, %160
  store i32 %161, ptr %23, align 4, !tbaa !9
  %162 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %23, i32 noundef 13)
  store i32 1, ptr %49, align 4
  br label %384

163:                                              ; preds = %154
  %164 = load i32, ptr %46, align 4, !tbaa !9
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %167

166:                                              ; preds = %163
  store i32 1, ptr %49, align 4
  br label %384

167:                                              ; preds = %163
  br label %168

168:                                              ; preds = %167
  %169 = load ptr, ptr %13, align 8, !tbaa !5
  %170 = load i32, ptr %169, align 4, !tbaa !9
  %171 = icmp eq i32 %170, 0
  br i1 %171, label %172, label %173

172:                                              ; preds = %168
  store i32 1, ptr %49, align 4
  br label %384

173:                                              ; preds = %168
  %174 = load ptr, ptr %13, align 8, !tbaa !5
  %175 = load i32, ptr %174, align 4, !tbaa !9
  %176 = icmp eq i32 %175, 1
  br i1 %176, label %177, label %210

177:                                              ; preds = %173
  %178 = load i32, ptr %21, align 4, !tbaa !9
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %23, align 4, !tbaa !9
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  %181 = load i32, ptr %23, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds %struct.complex, ptr %180, i64 %182
  %184 = getelementptr inbounds %struct.complex, ptr %183, i32 0, i32 0
  %185 = load float, ptr %184, align 4, !tbaa !11
  %186 = load ptr, ptr %16, align 8, !tbaa !5
  %187 = getelementptr inbounds float, ptr %186, i64 1
  store float %185, ptr %187, align 4, !tbaa !15
  %188 = load ptr, ptr %17, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.complex, ptr %188, i64 1
  %190 = getelementptr inbounds %struct.complex, ptr %189, i32 0, i32 0
  store float 1.000000e+00, ptr %190, align 4, !tbaa !11
  %191 = load ptr, ptr %17, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.complex, ptr %191, i64 1
  %193 = getelementptr inbounds %struct.complex, ptr %192, i32 0, i32 1
  store float 0.000000e+00, ptr %193, align 4, !tbaa !14
  %194 = load i32, ptr %36, align 4, !tbaa !9
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %209

196:                                              ; preds = %177
  %197 = load i32, ptr %21, align 4, !tbaa !9
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %23, align 4, !tbaa !9
  %199 = load ptr, ptr %14, align 8, !tbaa !5
  %200 = load i32, ptr %23, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds %struct.complex, ptr %199, i64 %201
  %203 = getelementptr inbounds %struct.complex, ptr %202, i32 0, i32 0
  store float 1.000000e+00, ptr %203, align 4, !tbaa !11
  %204 = load ptr, ptr %14, align 8, !tbaa !5
  %205 = load i32, ptr %23, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds %struct.complex, ptr %204, i64 %206
  %208 = getelementptr inbounds %struct.complex, ptr %207, i32 0, i32 1
  store float 0.000000e+00, ptr %208, align 4, !tbaa !14
  br label %209

209:                                              ; preds = %196, %177
  store i32 1, ptr %49, align 4
  br label %384

210:                                              ; preds = %173
  %211 = call float @slamch_(ptr noundef @.str.6)
  store float %211, ptr %40, align 4, !tbaa !15
  %212 = call float @slamch_(ptr noundef @.str.7)
  store float %212, ptr %47, align 4, !tbaa !15
  %213 = load float, ptr %40, align 4, !tbaa !15
  %214 = load float, ptr %47, align 4, !tbaa !15
  %215 = fdiv float %213, %214
  store float %215, ptr %45, align 4, !tbaa !15
  %216 = load float, ptr %45, align 4, !tbaa !15
  %217 = fdiv float 1.000000e+00, %216
  store float %217, ptr %41, align 4, !tbaa !15
  %218 = load float, ptr %45, align 4, !tbaa !15
  %219 = fpext float %218 to double
  %220 = call double @sqrt(double noundef %219) #4
  %221 = fptrunc double %220 to float
  store float %221, ptr %28, align 4, !tbaa !15
  %222 = load float, ptr %41, align 4, !tbaa !15
  %223 = fpext float %222 to double
  %224 = call double @sqrt(double noundef %223) #4
  %225 = fptrunc double %224 to float
  store float %225, ptr %29, align 4, !tbaa !15
  %226 = load ptr, ptr %12, align 8, !tbaa !5
  %227 = load ptr, ptr %13, align 8, !tbaa !5
  %228 = load ptr, ptr %14, align 8, !tbaa !5
  %229 = load i32, ptr %22, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds %struct.complex, ptr %228, i64 %230
  %232 = load ptr, ptr %15, align 8, !tbaa !5
  %233 = load ptr, ptr %19, align 8, !tbaa !5
  %234 = getelementptr inbounds float, ptr %233, i64 1
  %235 = call float @clanhe_(ptr noundef @.str.8, ptr noundef %226, ptr noundef %227, ptr noundef %231, ptr noundef %232, ptr noundef %234)
  store float %235, ptr %26, align 4, !tbaa !15
  store i32 0, ptr %39, align 4, !tbaa !9
  %236 = load float, ptr %26, align 4, !tbaa !15
  %237 = fcmp ogt float %236, 0.000000e+00
  br i1 %237, label %238, label %246

238:                                              ; preds = %210
  %239 = load float, ptr %26, align 4, !tbaa !15
  %240 = load float, ptr %28, align 4, !tbaa !15
  %241 = fcmp olt float %239, %240
  br i1 %241, label %242, label %246

242:                                              ; preds = %238
  store i32 1, ptr %39, align 4, !tbaa !9
  %243 = load float, ptr %28, align 4, !tbaa !15
  %244 = load float, ptr %26, align 4, !tbaa !15
  %245 = fdiv float %243, %244
  store float %245, ptr %30, align 4, !tbaa !15
  br label %255

246:                                              ; preds = %238, %210
  %247 = load float, ptr %26, align 4, !tbaa !15
  %248 = load float, ptr %29, align 4, !tbaa !15
  %249 = fcmp ogt float %247, %248
  br i1 %249, label %250, label %254

250:                                              ; preds = %246
  store i32 1, ptr %39, align 4, !tbaa !9
  %251 = load float, ptr %29, align 4, !tbaa !15
  %252 = load float, ptr %26, align 4, !tbaa !15
  %253 = fdiv float %251, %252
  store float %253, ptr %30, align 4, !tbaa !15
  br label %254

254:                                              ; preds = %250, %246
  br label %255

255:                                              ; preds = %254, %242
  %256 = load i32, ptr %39, align 4, !tbaa !9
  %257 = icmp eq i32 %256, 1
  br i1 %257, label %258, label %268

258:                                              ; preds = %255
  %259 = load ptr, ptr %12, align 8, !tbaa !5
  %260 = load ptr, ptr %13, align 8, !tbaa !5
  %261 = load ptr, ptr %13, align 8, !tbaa !5
  %262 = load ptr, ptr %14, align 8, !tbaa !5
  %263 = load i32, ptr %22, align 4, !tbaa !9
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds %struct.complex, ptr %262, i64 %264
  %266 = load ptr, ptr %15, align 8, !tbaa !5
  %267 = load ptr, ptr %20, align 8, !tbaa !5
  call void @clascl_(ptr noundef %259, ptr noundef @c__0, ptr noundef @c__0, ptr noundef @c_b28, ptr noundef %30, ptr noundef %260, ptr noundef %261, ptr noundef %265, ptr noundef %266, ptr noundef %267)
  br label %268

268:                                              ; preds = %258, %255
  store i32 1, ptr %25, align 4, !tbaa !9
  store i32 1, ptr %42, align 4, !tbaa !9
  %269 = load i32, ptr %42, align 4, !tbaa !9
  %270 = load ptr, ptr %13, align 8, !tbaa !5
  %271 = load i32, ptr %270, align 4, !tbaa !9
  %272 = add nsw i32 %269, %271
  store i32 %272, ptr %48, align 4, !tbaa !9
  %273 = load i32, ptr %48, align 4, !tbaa !9
  %274 = load i32, ptr %32, align 4, !tbaa !9
  %275 = add nsw i32 %273, %274
  store i32 %275, ptr %43, align 4, !tbaa !9
  %276 = load ptr, ptr %18, align 8, !tbaa !5
  %277 = load i32, ptr %276, align 4, !tbaa !9
  %278 = load i32, ptr %43, align 4, !tbaa !9
  %279 = sub nsw i32 %277, %278
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %44, align 4, !tbaa !9
  %281 = load ptr, ptr %11, align 8, !tbaa !5
  %282 = load ptr, ptr %12, align 8, !tbaa !5
  %283 = load ptr, ptr %13, align 8, !tbaa !5
  %284 = load ptr, ptr %14, align 8, !tbaa !5
  %285 = load i32, ptr %22, align 4, !tbaa !9
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds %struct.complex, ptr %284, i64 %286
  %288 = load ptr, ptr %15, align 8, !tbaa !5
  %289 = load ptr, ptr %16, align 8, !tbaa !5
  %290 = getelementptr inbounds float, ptr %289, i64 1
  %291 = load ptr, ptr %19, align 8, !tbaa !5
  %292 = load i32, ptr %25, align 4, !tbaa !9
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds float, ptr %291, i64 %293
  %295 = load ptr, ptr %17, align 8, !tbaa !5
  %296 = load i32, ptr %42, align 4, !tbaa !9
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds %struct.complex, ptr %295, i64 %297
  %299 = load ptr, ptr %17, align 8, !tbaa !5
  %300 = load i32, ptr %48, align 4, !tbaa !9
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds %struct.complex, ptr %299, i64 %301
  %303 = load ptr, ptr %17, align 8, !tbaa !5
  %304 = load i32, ptr %43, align 4, !tbaa !9
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds %struct.complex, ptr %303, i64 %305
  call void @chetrd_2stage_(ptr noundef %281, ptr noundef %282, ptr noundef %283, ptr noundef %287, ptr noundef %288, ptr noundef %290, ptr noundef %294, ptr noundef %298, ptr noundef %302, ptr noundef %32, ptr noundef %306, ptr noundef %44, ptr noundef %31)
  %307 = load i32, ptr %36, align 4, !tbaa !9
  %308 = icmp ne i32 %307, 0
  br i1 %308, label %318, label %309

309:                                              ; preds = %268
  %310 = load ptr, ptr %13, align 8, !tbaa !5
  %311 = load ptr, ptr %16, align 8, !tbaa !5
  %312 = getelementptr inbounds float, ptr %311, i64 1
  %313 = load ptr, ptr %19, align 8, !tbaa !5
  %314 = load i32, ptr %25, align 4, !tbaa !9
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds float, ptr %313, i64 %315
  %317 = load ptr, ptr %20, align 8, !tbaa !5
  call void @ssterf_(ptr noundef %310, ptr noundef %312, ptr noundef %316, ptr noundef %317)
  br label %356

318:                                              ; preds = %268
  %319 = load ptr, ptr %12, align 8, !tbaa !5
  %320 = load ptr, ptr %13, align 8, !tbaa !5
  %321 = load ptr, ptr %14, align 8, !tbaa !5
  %322 = load i32, ptr %22, align 4, !tbaa !9
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds %struct.complex, ptr %321, i64 %323
  %325 = load ptr, ptr %15, align 8, !tbaa !5
  %326 = load ptr, ptr %17, align 8, !tbaa !5
  %327 = load i32, ptr %42, align 4, !tbaa !9
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds %struct.complex, ptr %326, i64 %328
  %330 = load ptr, ptr %17, align 8, !tbaa !5
  %331 = load i32, ptr %43, align 4, !tbaa !9
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds %struct.complex, ptr %330, i64 %332
  call void @cungtr_(ptr noundef %319, ptr noundef %320, ptr noundef %324, ptr noundef %325, ptr noundef %329, ptr noundef %333, ptr noundef %44, ptr noundef %31)
  %334 = load i32, ptr %25, align 4, !tbaa !9
  %335 = load ptr, ptr %13, align 8, !tbaa !5
  %336 = load i32, ptr %335, align 4, !tbaa !9
  %337 = add nsw i32 %334, %336
  store i32 %337, ptr %43, align 4, !tbaa !9
  %338 = load ptr, ptr %11, align 8, !tbaa !5
  %339 = load ptr, ptr %13, align 8, !tbaa !5
  %340 = load ptr, ptr %16, align 8, !tbaa !5
  %341 = getelementptr inbounds float, ptr %340, i64 1
  %342 = load ptr, ptr %19, align 8, !tbaa !5
  %343 = load i32, ptr %25, align 4, !tbaa !9
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds float, ptr %342, i64 %344
  %346 = load ptr, ptr %14, align 8, !tbaa !5
  %347 = load i32, ptr %22, align 4, !tbaa !9
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds %struct.complex, ptr %346, i64 %348
  %350 = load ptr, ptr %15, align 8, !tbaa !5
  %351 = load ptr, ptr %19, align 8, !tbaa !5
  %352 = load i32, ptr %43, align 4, !tbaa !9
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds float, ptr %351, i64 %353
  %355 = load ptr, ptr %20, align 8, !tbaa !5
  call void @csteqr_(ptr noundef %338, ptr noundef %339, ptr noundef %341, ptr noundef %345, ptr noundef %349, ptr noundef %350, ptr noundef %354, ptr noundef %355)
  br label %356

356:                                              ; preds = %318, %309
  %357 = load i32, ptr %39, align 4, !tbaa !9
  %358 = icmp eq i32 %357, 1
  br i1 %358, label %359, label %375

359:                                              ; preds = %356
  %360 = load ptr, ptr %20, align 8, !tbaa !5
  %361 = load i32, ptr %360, align 4, !tbaa !9
  %362 = icmp eq i32 %361, 0
  br i1 %362, label %363, label %366

363:                                              ; preds = %359
  %364 = load ptr, ptr %13, align 8, !tbaa !5
  %365 = load i32, ptr %364, align 4, !tbaa !9
  store i32 %365, ptr %27, align 4, !tbaa !9
  br label %370

366:                                              ; preds = %359
  %367 = load ptr, ptr %20, align 8, !tbaa !5
  %368 = load i32, ptr %367, align 4, !tbaa !9
  %369 = sub nsw i32 %368, 1
  store i32 %369, ptr %27, align 4, !tbaa !9
  br label %370

370:                                              ; preds = %366, %363
  %371 = load float, ptr %30, align 4, !tbaa !15
  %372 = fdiv float 1.000000e+00, %371
  store float %372, ptr %24, align 4, !tbaa !15
  %373 = load ptr, ptr %16, align 8, !tbaa !5
  %374 = getelementptr inbounds float, ptr %373, i64 1
  call void @sscal_(ptr noundef %27, ptr noundef %24, ptr noundef %374, ptr noundef @c__1)
  br label %375

375:                                              ; preds = %370, %356
  %376 = load i32, ptr %33, align 4, !tbaa !9
  %377 = sitofp i32 %376 to float
  %378 = load ptr, ptr %17, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.complex, ptr %378, i64 1
  %380 = getelementptr inbounds %struct.complex, ptr %379, i32 0, i32 0
  store float %377, ptr %380, align 4, !tbaa !11
  %381 = load ptr, ptr %17, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.complex, ptr %381, i64 1
  %383 = getelementptr inbounds %struct.complex, ptr %382, i32 0, i32 1
  store float 0.000000e+00, ptr %383, align 4, !tbaa !14
  store i32 1, ptr %49, align 4
  br label %384

384:                                              ; preds = %375, %209, %172, %166, %158
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #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 @clanhe_(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_2stage_(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 @cungtr_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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__1 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@c_n1 = external hidden global i32, align 4
@c__2 = 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
@c__0 = external hidden global i32, align 4
@c_b28 = external hidden global float, align 4

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

31:                                               ; preds = %10
  %.not147 = icmp eq i32 %27, 0
  br i1 %.not147, label %32, label %34

32:                                               ; preds = %31
  %33 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #4
  %.not148 = icmp eq i32 %33, 0
  br i1 %.not148, label %.thread158.sink.split, label %34

34:                                               ; preds = %32, %31
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = icmp slt i32 %35, 0
  br i1 %36, label %.thread158.sink.split, label %37

37:                                               ; preds = %34
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %35, i32 1)
  %39 = icmp slt i32 %38, %spec.select
  br i1 %39, label %.thread158.sink.split, label %40

40:                                               ; preds = %37
  %.pr = load i32, ptr %9, align 4, !tbaa !5
  %41 = icmp eq i32 %.pr, 0
  br i1 %41, label %42, label %.thread158

42:                                               ; preds = %40
  %43 = tail call i32 @ilaenv2stage_(ptr noundef nonnull @c__1, ptr noundef nonnull @.str.4, ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1) #4
  store i32 %43, ptr %18, align 4, !tbaa !5
  %44 = call i32 @ilaenv2stage_(ptr noundef nonnull @c__2, ptr noundef nonnull @.str.4, ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %18, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1) #4
  store i32 %44, ptr %17, align 4, !tbaa !5
  %45 = call i32 @ilaenv2stage_(ptr noundef nonnull @c__3, ptr noundef nonnull @.str.4, ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %18, ptr noundef nonnull %17, ptr noundef nonnull @c_n1) #4
  store i32 %45, ptr %16, align 4, !tbaa !5
  %46 = call i32 @ilaenv2stage_(ptr noundef nonnull @c__4, ptr noundef nonnull @.str.4, ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %18, ptr noundef nonnull %17, ptr noundef nonnull @c_n1) #4
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = add i32 %47, %46
  %49 = add i32 %48, %45
  %50 = sitofp i32 %49 to float
  store float %50, ptr %6, align 4, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %6, i64 4
  store float 0.000000e+00, ptr %51, align 4, !tbaa !12
  %52 = load i32, ptr %7, align 4, !tbaa !5
  %53 = icmp sge i32 %52, %49
  %or.cond = select i1 %53, i1 true, i1 %29
  br i1 %or.cond, label %.thread, label %.thread158.sink.split

.thread:                                          ; preds = %42
  %.pr155.pr = load i32, ptr %9, align 4, !tbaa !5
  %.not149 = icmp eq i32 %.pr155.pr, 0
  br i1 %.not149, label %57, label %.thread158

.thread158.sink.split:                            ; preds = %42, %37, %34, %32, %10
  %.sink = phi i32 [ -1, %10 ], [ -2, %32 ], [ -3, %34 ], [ -5, %37 ], [ -8, %42 ]
  store i32 %.sink, ptr %9, align 4, !tbaa !5
  br label %.thread158

.thread158:                                       ; preds = %.thread158.sink.split, %40, %.thread
  %54 = phi i32 [ %.pr155.pr, %.thread ], [ %.pr, %40 ], [ %.sink, %.thread158.sink.split ]
  %55 = sub nsw i32 0, %54
  store i32 %55, ptr %11, align 4, !tbaa !5
  %56 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %11, i32 noundef 13) #4
  br label %104

57:                                               ; preds = %.thread
  br i1 %29, label %104, label %58

58:                                               ; preds = %57
  switch i32 %47, label %64 [
    i32 0, label %104
    i32 1, label %59
  ]

59:                                               ; preds = %58
  %60 = load float, ptr %3, align 4, !tbaa !9
  store float %60, ptr %5, align 4, !tbaa !13
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %6, align 4, !tbaa !13
  %.not152 = icmp eq i32 %26, 0
  br i1 %.not152, label %104, label %61

61:                                               ; preds = %59
  store float 1.000000e+00, ptr %3, align 4, !tbaa !9
  %62 = sext i32 %21 to i64
  %63 = getelementptr inbounds %struct.complex, ptr %23, i64 %62, i32 1
  store float 0.000000e+00, ptr %63, align 4, !tbaa !12
  br label %104

64:                                               ; preds = %58
  %65 = call float @slamch_(ptr noundef nonnull @.str.6) #4
  %66 = call float @slamch_(ptr noundef nonnull @.str.7) #4
  %67 = fdiv float %65, %66
  %68 = fdiv float 1.000000e+00, %67
  %sqrtf = call float @sqrtf(float noundef %67) #5
  %sqrtf150 = call float @sqrtf(float noundef %68) #5
  %69 = call float @clanhe_(ptr noundef nonnull @.str.8, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %8) #4
  %70 = fcmp ogt float %69, 0.000000e+00
  %71 = fcmp olt float %69, %sqrtf
  %or.cond153 = select i1 %70, i1 %71, i1 false
  br i1 %or.cond153, label %74, label %72

72:                                               ; preds = %64
  %73 = fcmp ogt float %69, %sqrtf150
  br i1 %73, label %74, label %75

74:                                               ; preds = %72, %64
  %sqrtf150.pn = phi float [ %sqrtf, %64 ], [ %sqrtf150, %72 ]
  %storemerge166 = fdiv float %sqrtf150.pn, %69
  store float %storemerge166, ptr %14, align 4, !tbaa !13
  call void @clascl_(ptr noundef %1, ptr noundef nonnull @c__0, ptr noundef nonnull @c__0, ptr noundef nonnull @c_b28, ptr noundef nonnull %14, ptr noundef nonnull %2, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef nonnull %9) #4
  br label %75

75:                                               ; preds = %72, %74
  %76 = phi i1 [ true, %74 ], [ false, %72 ]
  %77 = load i32, ptr %2, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  %79 = add nsw i32 %78, %45
  %80 = load i32, ptr %7, align 4, !tbaa !5
  %reass.sub = sub i32 %80, %79
  %81 = add i32 %reass.sub, 1
  store i32 %81, ptr %19, align 4, !tbaa !5
  %82 = sext i32 %78 to i64
  %83 = getelementptr inbounds %struct.complex, ptr %24, i64 %82
  %84 = sext i32 %79 to i64
  %85 = getelementptr inbounds %struct.complex, ptr %24, i64 %84
  call void @chetrd_2stage_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef %8, ptr noundef nonnull %6, ptr noundef nonnull %83, ptr noundef nonnull %16, ptr noundef nonnull %85, ptr noundef nonnull %19, ptr noundef nonnull %15) #4
  %.not151 = icmp eq i32 %26, 0
  br i1 %.not151, label %86, label %87

86:                                               ; preds = %75
  call void @ssterf_(ptr noundef nonnull %2, ptr noundef %5, ptr noundef %8, ptr noundef nonnull %9) #4
  br label %92

87:                                               ; preds = %75
  call void @cungtr_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %85, ptr noundef nonnull %19, ptr noundef nonnull %15) #4
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr float, ptr %25, i64 %89
  %91 = getelementptr i8, ptr %90, i64 4
  call void @csteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %8, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %91, ptr noundef nonnull %9) #4
  br label %92

92:                                               ; preds = %87, %86
  br i1 %76, label %93, label %103

93:                                               ; preds = %92
  %94 = load i32, ptr %9, align 4, !tbaa !5
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %98

96:                                               ; preds = %93
  %97 = load i32, ptr %2, align 4, !tbaa !5
  br label %100

98:                                               ; preds = %93
  %99 = add nsw i32 %94, -1
  br label %100

100:                                              ; preds = %98, %96
  %storemerge = phi i32 [ %99, %98 ], [ %97, %96 ]
  store i32 %storemerge, ptr %13, align 4, !tbaa !5
  %101 = load float, ptr %14, align 4, !tbaa !13
  %102 = fdiv float 1.000000e+00, %101
  store float %102, ptr %12, align 4, !tbaa !13
  call void @sscal_(ptr noundef nonnull %13, ptr noundef nonnull %12, ptr noundef %5, ptr noundef nonnull @c__1) #4
  br label %103

103:                                              ; preds = %100, %92
  store float %50, ptr %6, align 4, !tbaa !9
  store float 0.000000e+00, ptr %51, align 4, !tbaa !12
  br label %104

104:                                              ; preds = %59, %61, %58, %57, %103, %.thread158
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  ret void
}

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

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

declare i32 @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 @clanhe_(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_2stage_(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 @cungtr_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
attributes #5 = { 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 = !{!10, !11, i64 4}
!13 = !{!11, !11, i64 0}


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