; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (dsyevd_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"

@.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_b27 = external hidden global double, align 8

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

77:                                               ; preds = %11
  %78 = load ptr, ptr %21, align 8, !tbaa !5
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = icmp eq i32 %79, -1
  br label %81

81:                                               ; preds = %77, %11
  %82 = phi i1 [ true, %11 ], [ %80, %77 ]
  %83 = zext i1 %82 to i32
  store i32 %83, ptr %50, align 4, !tbaa !9
  %84 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 0, ptr %84, align 4, !tbaa !9
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = call i32 @lsame_(ptr noundef %85, ptr noundef @.str.2)
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %90, label %88

88:                                               ; preds = %81
  %89 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -1, ptr %89, align 4, !tbaa !9
  br label %123

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

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

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

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

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

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

111:                                              ; preds = %105
  br label %115

112:                                              ; preds = %105
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = load i32, ptr %113, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %112, %111
  %116 = phi i32 [ 1, %111 ], [ %114, %112 ]
  %117 = icmp slt i32 %107, %116
  br i1 %117, label %118, label %120

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

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

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

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

123:                                              ; preds = %122, %88
  %124 = load ptr, ptr %22, align 8, !tbaa !5
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %127, label %202

127:                                              ; preds = %123
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  %129 = load i32, ptr %128, align 4, !tbaa !9
  %130 = icmp sle i32 %129, 1
  br i1 %130, label %131, label %132

131:                                              ; preds = %127
  store i32 1, ptr %47, align 4, !tbaa !9
  store i32 1, ptr %34, align 4, !tbaa !9
  br label %173

132:                                              ; preds = %127
  %133 = load ptr, ptr %12, align 8, !tbaa !5
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = call i32 @ilaenv2stage_(ptr noundef @c__1, ptr noundef @.str.4, ptr noundef %133, ptr noundef %134, ptr noundef @c_n1, ptr noundef @c_n1, ptr noundef @c_n1)
  store i32 %135, ptr %41, align 4, !tbaa !9
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  %137 = load ptr, ptr %14, align 8, !tbaa !5
  %138 = call i32 @ilaenv2stage_(ptr noundef @c__2, ptr noundef @.str.4, ptr noundef %136, ptr noundef %137, ptr noundef %41, ptr noundef @c_n1, ptr noundef @c_n1)
  store i32 %138, ptr %39, align 4, !tbaa !9
  %139 = load ptr, ptr %12, align 8, !tbaa !5
  %140 = load ptr, ptr %14, align 8, !tbaa !5
  %141 = call i32 @ilaenv2stage_(ptr noundef @c__3, ptr noundef @.str.4, ptr noundef %139, ptr noundef %140, ptr noundef %41, ptr noundef %39, ptr noundef @c_n1)
  store i32 %141, ptr %33, align 4, !tbaa !9
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = load ptr, ptr %14, align 8, !tbaa !5
  %144 = call i32 @ilaenv2stage_(ptr noundef @c__4, ptr noundef @.str.4, ptr noundef %142, ptr noundef %143, ptr noundef %41, ptr noundef %39, ptr noundef @c_n1)
  store i32 %144, ptr %36, align 4, !tbaa !9
  %145 = load i32, ptr %37, align 4, !tbaa !9
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %163

147:                                              ; preds = %132
  %148 = load ptr, ptr %14, align 8, !tbaa !5
  %149 = load i32, ptr %148, align 4, !tbaa !9
  %150 = mul nsw i32 %149, 5
  %151 = add nsw i32 %150, 3
  store i32 %151, ptr %47, align 4, !tbaa !9
  %152 = load ptr, ptr %14, align 8, !tbaa !5
  %153 = load i32, ptr %152, align 4, !tbaa !9
  store i32 %153, ptr %25, align 4, !tbaa !9
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = load i32, ptr %154, align 4, !tbaa !9
  %156 = mul nsw i32 %155, 6
  %157 = add nsw i32 %156, 1
  %158 = load i32, ptr %25, align 4, !tbaa !9
  %159 = load i32, ptr %25, align 4, !tbaa !9
  %160 = mul nsw i32 %158, %159
  %161 = shl i32 %160, 1
  %162 = add nsw i32 %157, %161
  store i32 %162, ptr %34, align 4, !tbaa !9
  br label %172

163:                                              ; preds = %132
  store i32 1, ptr %47, align 4, !tbaa !9
  %164 = load ptr, ptr %14, align 8, !tbaa !5
  %165 = load i32, ptr %164, align 4, !tbaa !9
  %166 = shl i32 %165, 1
  %167 = add nsw i32 %166, 1
  %168 = load i32, ptr %33, align 4, !tbaa !9
  %169 = add nsw i32 %167, %168
  %170 = load i32, ptr %36, align 4, !tbaa !9
  %171 = add nsw i32 %169, %170
  store i32 %171, ptr %34, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %163, %147
  br label %173

173:                                              ; preds = %172, %131
  %174 = load i32, ptr %34, align 4, !tbaa !9
  %175 = sitofp i32 %174 to double
  %176 = load ptr, ptr %18, align 8, !tbaa !5
  %177 = getelementptr inbounds double, ptr %176, i64 1
  store double %175, ptr %177, align 8, !tbaa !11
  %178 = load i32, ptr %47, align 4, !tbaa !9
  %179 = load ptr, ptr %20, align 8, !tbaa !5
  %180 = getelementptr inbounds i32, ptr %179, i64 1
  store i32 %178, ptr %180, align 4, !tbaa !9
  %181 = load ptr, ptr %19, align 8, !tbaa !5
  %182 = load i32, ptr %181, align 4, !tbaa !9
  %183 = load i32, ptr %34, align 4, !tbaa !9
  %184 = icmp slt i32 %182, %183
  br i1 %184, label %185, label %190

185:                                              ; preds = %173
  %186 = load i32, ptr %50, align 4, !tbaa !9
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %190, label %188

188:                                              ; preds = %185
  %189 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -8, ptr %189, align 4, !tbaa !9
  br label %201

190:                                              ; preds = %185, %173
  %191 = load ptr, ptr %21, align 8, !tbaa !5
  %192 = load i32, ptr %191, align 4, !tbaa !9
  %193 = load i32, ptr %47, align 4, !tbaa !9
  %194 = icmp slt i32 %192, %193
  br i1 %194, label %195, label %200

195:                                              ; preds = %190
  %196 = load i32, ptr %50, align 4, !tbaa !9
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %200, label %198

198:                                              ; preds = %195
  %199 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -10, ptr %199, align 4, !tbaa !9
  br label %200

200:                                              ; preds = %198, %195, %190
  br label %201

201:                                              ; preds = %200, %188
  br label %202

202:                                              ; preds = %201, %123
  %203 = load ptr, ptr %22, align 8, !tbaa !5
  %204 = load i32, ptr %203, align 4, !tbaa !9
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %211

206:                                              ; preds = %202
  %207 = load ptr, ptr %22, align 8, !tbaa !5
  %208 = load i32, ptr %207, align 4, !tbaa !9
  %209 = sub nsw i32 0, %208
  store i32 %209, ptr %25, align 4, !tbaa !9
  %210 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %25, i32 noundef 13)
  store i32 1, ptr %53, align 4
  br label %381

211:                                              ; preds = %202
  %212 = load i32, ptr %50, align 4, !tbaa !9
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %214, label %215

214:                                              ; preds = %211
  store i32 1, ptr %53, align 4
  br label %381

215:                                              ; preds = %211
  br label %216

216:                                              ; preds = %215
  %217 = load ptr, ptr %14, align 8, !tbaa !5
  %218 = load i32, ptr %217, align 4, !tbaa !9
  %219 = icmp eq i32 %218, 0
  br i1 %219, label %220, label %221

220:                                              ; preds = %216
  store i32 1, ptr %53, align 4
  br label %381

221:                                              ; preds = %216
  %222 = load ptr, ptr %14, align 8, !tbaa !5
  %223 = load i32, ptr %222, align 4, !tbaa !9
  %224 = icmp eq i32 %223, 1
  br i1 %224, label %225, label %243

225:                                              ; preds = %221
  %226 = load ptr, ptr %15, align 8, !tbaa !5
  %227 = load i32, ptr %23, align 4, !tbaa !9
  %228 = add nsw i32 %227, 1
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds double, ptr %226, i64 %229
  %231 = load double, ptr %230, align 8, !tbaa !11
  %232 = load ptr, ptr %17, align 8, !tbaa !5
  %233 = getelementptr inbounds double, ptr %232, i64 1
  store double %231, ptr %233, align 8, !tbaa !11
  %234 = load i32, ptr %37, align 4, !tbaa !9
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %242

236:                                              ; preds = %225
  %237 = load ptr, ptr %15, align 8, !tbaa !5
  %238 = load i32, ptr %23, align 4, !tbaa !9
  %239 = add nsw i32 %238, 1
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds double, ptr %237, i64 %240
  store double 1.000000e+00, ptr %241, align 8, !tbaa !11
  br label %242

242:                                              ; preds = %236, %225
  store i32 1, ptr %53, align 4
  br label %381

243:                                              ; preds = %221
  %244 = call double @dlamch_(ptr noundef @.str.6)
  store double %244, ptr %43, align 8, !tbaa !11
  %245 = call double @dlamch_(ptr noundef @.str.7)
  store double %245, ptr %51, align 8, !tbaa !11
  %246 = load double, ptr %43, align 8, !tbaa !11
  %247 = load double, ptr %51, align 8, !tbaa !11
  %248 = fdiv double %246, %247
  store double %248, ptr %49, align 8, !tbaa !11
  %249 = load double, ptr %49, align 8, !tbaa !11
  %250 = fdiv double 1.000000e+00, %249
  store double %250, ptr %44, align 8, !tbaa !11
  %251 = load double, ptr %49, align 8, !tbaa !11
  %252 = call double @sqrt(double noundef %251) #4
  store double %252, ptr %29, align 8, !tbaa !11
  %253 = load double, ptr %44, align 8, !tbaa !11
  %254 = call double @sqrt(double noundef %253) #4
  store double %254, ptr %30, align 8, !tbaa !11
  %255 = load ptr, ptr %13, align 8, !tbaa !5
  %256 = load ptr, ptr %14, align 8, !tbaa !5
  %257 = load ptr, ptr %15, align 8, !tbaa !5
  %258 = load i32, ptr %24, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds double, ptr %257, i64 %259
  %261 = load ptr, ptr %16, align 8, !tbaa !5
  %262 = load ptr, ptr %18, align 8, !tbaa !5
  %263 = getelementptr inbounds double, ptr %262, i64 1
  %264 = call double @dlansy_(ptr noundef @.str.8, ptr noundef %255, ptr noundef %256, ptr noundef %260, ptr noundef %261, ptr noundef %263)
  store double %264, ptr %28, align 8, !tbaa !11
  store i32 0, ptr %42, align 4, !tbaa !9
  %265 = load double, ptr %28, align 8, !tbaa !11
  %266 = fcmp ogt double %265, 0.000000e+00
  br i1 %266, label %267, label %275

267:                                              ; preds = %243
  %268 = load double, ptr %28, align 8, !tbaa !11
  %269 = load double, ptr %29, align 8, !tbaa !11
  %270 = fcmp olt double %268, %269
  br i1 %270, label %271, label %275

271:                                              ; preds = %267
  store i32 1, ptr %42, align 4, !tbaa !9
  %272 = load double, ptr %29, align 8, !tbaa !11
  %273 = load double, ptr %28, align 8, !tbaa !11
  %274 = fdiv double %272, %273
  store double %274, ptr %31, align 8, !tbaa !11
  br label %284

275:                                              ; preds = %267, %243
  %276 = load double, ptr %28, align 8, !tbaa !11
  %277 = load double, ptr %30, align 8, !tbaa !11
  %278 = fcmp ogt double %276, %277
  br i1 %278, label %279, label %283

279:                                              ; preds = %275
  store i32 1, ptr %42, align 4, !tbaa !9
  %280 = load double, ptr %30, align 8, !tbaa !11
  %281 = load double, ptr %28, align 8, !tbaa !11
  %282 = fdiv double %280, %281
  store double %282, ptr %31, align 8, !tbaa !11
  br label %283

283:                                              ; preds = %279, %275
  br label %284

284:                                              ; preds = %283, %271
  %285 = load i32, ptr %42, align 4, !tbaa !9
  %286 = icmp eq i32 %285, 1
  br i1 %286, label %287, label %297

287:                                              ; preds = %284
  %288 = load ptr, ptr %13, align 8, !tbaa !5
  %289 = load ptr, ptr %14, align 8, !tbaa !5
  %290 = load ptr, ptr %14, align 8, !tbaa !5
  %291 = load ptr, ptr %15, align 8, !tbaa !5
  %292 = load i32, ptr %24, align 4, !tbaa !9
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds double, ptr %291, i64 %293
  %295 = load ptr, ptr %16, align 8, !tbaa !5
  %296 = load ptr, ptr %22, align 8, !tbaa !5
  call void @dlascl_(ptr noundef %288, ptr noundef @c__0, ptr noundef @c__0, ptr noundef @c_b27, ptr noundef %31, ptr noundef %289, ptr noundef %290, ptr noundef %294, ptr noundef %295, ptr noundef %296)
  br label %297

297:                                              ; preds = %287, %284
  store i32 1, ptr %27, align 4, !tbaa !9
  %298 = load i32, ptr %27, align 4, !tbaa !9
  %299 = load ptr, ptr %14, align 8, !tbaa !5
  %300 = load i32, ptr %299, align 4, !tbaa !9
  %301 = add nsw i32 %298, %300
  store i32 %301, ptr %45, align 4, !tbaa !9
  %302 = load i32, ptr %45, align 4, !tbaa !9
  %303 = load ptr, ptr %14, align 8, !tbaa !5
  %304 = load i32, ptr %303, align 4, !tbaa !9
  %305 = add nsw i32 %302, %304
  store i32 %305, ptr %52, align 4, !tbaa !9
  %306 = load i32, ptr %52, align 4, !tbaa !9
  %307 = load i32, ptr %33, align 4, !tbaa !9
  %308 = add nsw i32 %306, %307
  store i32 %308, ptr %46, align 4, !tbaa !9
  %309 = load ptr, ptr %19, align 8, !tbaa !5
  %310 = load i32, ptr %309, align 4, !tbaa !9
  %311 = load i32, ptr %46, align 4, !tbaa !9
  %312 = sub nsw i32 %310, %311
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %48, align 4, !tbaa !9
  %314 = load i32, ptr %46, align 4, !tbaa !9
  %315 = load ptr, ptr %14, align 8, !tbaa !5
  %316 = load i32, ptr %315, align 4, !tbaa !9
  %317 = load ptr, ptr %14, align 8, !tbaa !5
  %318 = load i32, ptr %317, align 4, !tbaa !9
  %319 = mul nsw i32 %316, %318
  %320 = add nsw i32 %314, %319
  store i32 %320, ptr %38, align 4, !tbaa !9
  %321 = load ptr, ptr %19, align 8, !tbaa !5
  %322 = load i32, ptr %321, align 4, !tbaa !9
  %323 = load i32, ptr %38, align 4, !tbaa !9
  %324 = sub nsw i32 %322, %323
  %325 = add nsw i32 %324, 1
  store i32 %325, ptr %40, align 4, !tbaa !9
  %326 = load ptr, ptr %12, align 8, !tbaa !5
  %327 = load ptr, ptr %13, align 8, !tbaa !5
  %328 = load ptr, ptr %14, align 8, !tbaa !5
  %329 = load ptr, ptr %15, align 8, !tbaa !5
  %330 = load i32, ptr %24, align 4, !tbaa !9
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds double, ptr %329, i64 %331
  %333 = load ptr, ptr %16, align 8, !tbaa !5
  %334 = load ptr, ptr %17, align 8, !tbaa !5
  %335 = getelementptr inbounds double, ptr %334, i64 1
  %336 = load ptr, ptr %18, align 8, !tbaa !5
  %337 = load i32, ptr %27, align 4, !tbaa !9
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds double, ptr %336, i64 %338
  %340 = load ptr, ptr %18, align 8, !tbaa !5
  %341 = load i32, ptr %45, align 4, !tbaa !9
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds double, ptr %340, i64 %342
  %344 = load ptr, ptr %18, align 8, !tbaa !5
  %345 = load i32, ptr %52, align 4, !tbaa !9
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds double, ptr %344, i64 %346
  %348 = load ptr, ptr %18, align 8, !tbaa !5
  %349 = load i32, ptr %46, align 4, !tbaa !9
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds double, ptr %348, i64 %350
  call void @dsytrd_2stage_(ptr noundef %326, ptr noundef %327, ptr noundef %328, ptr noundef %332, ptr noundef %333, ptr noundef %335, ptr noundef %339, ptr noundef %343, ptr noundef %347, ptr noundef %33, ptr noundef %351, ptr noundef %48, ptr noundef %32)
  %352 = load i32, ptr %37, align 4, !tbaa !9
  %353 = icmp ne i32 %352, 0
  br i1 %353, label %363, label %354

354:                                              ; preds = %297
  %355 = load ptr, ptr %14, align 8, !tbaa !5
  %356 = load ptr, ptr %17, align 8, !tbaa !5
  %357 = getelementptr inbounds double, ptr %356, i64 1
  %358 = load ptr, ptr %18, align 8, !tbaa !5
  %359 = load i32, ptr %27, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds double, ptr %358, i64 %360
  %362 = load ptr, ptr %22, align 8, !tbaa !5
  call void @dsterf_(ptr noundef %355, ptr noundef %357, ptr noundef %361, ptr noundef %362)
  br label %364

363:                                              ; preds = %297
  store i32 1, ptr %53, align 4
  br label %381

364:                                              ; preds = %354
  %365 = load i32, ptr %42, align 4, !tbaa !9
  %366 = icmp eq i32 %365, 1
  br i1 %366, label %367, label %373

367:                                              ; preds = %364
  %368 = load double, ptr %31, align 8, !tbaa !11
  %369 = fdiv double 1.000000e+00, %368
  store double %369, ptr %26, align 8, !tbaa !11
  %370 = load ptr, ptr %14, align 8, !tbaa !5
  %371 = load ptr, ptr %17, align 8, !tbaa !5
  %372 = getelementptr inbounds double, ptr %371, i64 1
  call void @dscal_(ptr noundef %370, ptr noundef %26, ptr noundef %372, ptr noundef @c__1)
  br label %373

373:                                              ; preds = %367, %364
  %374 = load i32, ptr %34, align 4, !tbaa !9
  %375 = sitofp i32 %374 to double
  %376 = load ptr, ptr %18, align 8, !tbaa !5
  %377 = getelementptr inbounds double, ptr %376, i64 1
  store double %375, ptr %377, align 8, !tbaa !11
  %378 = load i32, ptr %47, align 4, !tbaa !9
  %379 = load ptr, ptr %20, align 8, !tbaa !5
  %380 = getelementptr inbounds i32, ptr %379, i64 1
  store i32 %378, ptr %380, align 4, !tbaa !9
  store i32 1, ptr %53, align 4
  br label %381

381:                                              ; preds = %373, %363, %242, %220, %214, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  ret void
}

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

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

declare i32 @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 double @dlamch_(ptr noundef) #2

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

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

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

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

declare void @dscal_(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, !12, i64 0}
!12 = !{!"double", !7, 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"

@.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_b27 = external hidden global double, align 8

; Function Attrs: nounwind uwtable
define dso_local void @dsyevd_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 nocapture noundef writeonly %8, ptr nocapture noundef readonly %9, ptr noundef %10) local_unnamed_addr #0 {
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %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 %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #5
  %20 = getelementptr inbounds i8, ptr %6, i64 -8
  %21 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #5
  %22 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.1) #5
  %23 = load i32, ptr %7, align 4, !tbaa !5
  %24 = icmp eq i32 %23, -1
  br i1 %24, label %28, label %25

25:                                               ; preds = %11
  %26 = load i32, ptr %9, align 4, !tbaa !5
  %27 = icmp eq i32 %26, -1
  br label %28

28:                                               ; preds = %25, %11
  %29 = phi i1 [ true, %11 ], [ %27, %25 ]
  store i32 0, ptr %10, align 4, !tbaa !5
  %30 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #5
  %.not = icmp eq i32 %30, 0
  br i1 %.not, label %.thread153.sink.split, label %31

31:                                               ; preds = %28
  %.not141 = icmp eq i32 %22, 0
  br i1 %.not141, label %32, label %34

32:                                               ; preds = %31
  %33 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #5
  %.not142 = icmp eq i32 %33, 0
  br i1 %.not142, label %.thread153.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 %.thread153.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 %.thread153.sink.split, label %40

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

42:                                               ; preds = %40
  %43 = icmp ult i32 %35, 2
  br i1 %43, label %60, label %44

44:                                               ; preds = %42
  %45 = 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) #5
  store i32 %45, ptr %18, align 4, !tbaa !5
  %46 = 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) #5
  store i32 %46, ptr %17, align 4, !tbaa !5
  %47 = 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) #5
  store i32 %47, ptr %16, align 4, !tbaa !5
  %48 = 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) #5
  %.not143 = icmp eq i32 %21, 0
  %49 = load i32, ptr %2, align 4, !tbaa !5
  br i1 %.not143, label %55, label %50

50:                                               ; preds = %44
  %51 = mul nsw i32 %49, 5
  %52 = add nsw i32 %51, 3
  store i32 %49, ptr %12, align 4, !tbaa !5
  %53 = shl i32 %49, 1
  %reass.add = add i32 %53, 6
  %reass.mul = mul i32 %reass.add, %49
  %54 = or disjoint i32 %reass.mul, 1
  br label %60

55:                                               ; preds = %44
  %56 = shl i32 %49, 1
  %57 = add i32 %48, 1
  %58 = add i32 %57, %56
  %59 = add i32 %58, %47
  br label %60

60:                                               ; preds = %42, %50, %55
  %61 = phi i32 [ %47, %50 ], [ %47, %55 ], [ undef, %42 ]
  %.0132 = phi i32 [ %54, %50 ], [ %59, %55 ], [ 1, %42 ]
  %.0 = phi i32 [ %52, %50 ], [ 1, %55 ], [ 1, %42 ]
  %62 = sitofp i32 %.0132 to double
  store double %62, ptr %6, align 8, !tbaa !9
  store i32 %.0, ptr %8, align 4, !tbaa !5
  %63 = load i32, ptr %7, align 4, !tbaa !5
  %64 = icmp sge i32 %63, %.0132
  %or.cond = select i1 %64, i1 true, i1 %29
  br i1 %or.cond, label %65, label %.thread153.sink.split

65:                                               ; preds = %60
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = icmp sge i32 %66, %.0
  %or.cond3 = select i1 %67, i1 true, i1 %29
  br i1 %or.cond3, label %.thread, label %.thread153.sink.split

.thread:                                          ; preds = %65
  %.pr149.pr = load i32, ptr %10, align 4, !tbaa !5
  %.not144 = icmp eq i32 %.pr149.pr, 0
  br i1 %.not144, label %71, label %.thread153

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

.thread153:                                       ; preds = %.thread153.sink.split, %40, %.thread
  %68 = phi i32 [ %.pr149.pr, %.thread ], [ %.pr, %40 ], [ %.sink, %.thread153.sink.split ]
  %69 = sub nsw i32 0, %68
  store i32 %69, ptr %12, align 4, !tbaa !5
  %70 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %12, i32 noundef 13) #5
  br label %110

71:                                               ; preds = %.thread
  br i1 %29, label %110, label %72

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

74:                                               ; preds = %72
  %75 = load double, ptr %3, align 8, !tbaa !9
  store double %75, ptr %5, align 8, !tbaa !9
  %.not146 = icmp eq i32 %21, 0
  br i1 %.not146, label %110, label %76

76:                                               ; preds = %74
  store double 1.000000e+00, ptr %3, align 8, !tbaa !9
  br label %110

77:                                               ; preds = %72
  %78 = call double @dlamch_(ptr noundef nonnull @.str.6) #5
  %79 = call double @dlamch_(ptr noundef nonnull @.str.7) #5
  %80 = fdiv double %78, %79
  %81 = fdiv double 1.000000e+00, %80
  %82 = call double @sqrt(double noundef %80) #5
  %83 = call double @sqrt(double noundef %81) #5
  %84 = call double @dlansy_(ptr noundef nonnull @.str.8, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef nonnull %6) #5
  %85 = fcmp ogt double %84, 0.000000e+00
  %86 = fcmp olt double %84, %82
  %or.cond147 = select i1 %85, i1 %86, i1 false
  br i1 %or.cond147, label %89, label %87

87:                                               ; preds = %77
  %88 = fcmp ogt double %84, %83
  br i1 %88, label %89, label %90

89:                                               ; preds = %87, %77
  %.pn = phi double [ %82, %77 ], [ %83, %87 ]
  %storemerge = fdiv double %.pn, %84
  store double %storemerge, ptr %14, align 8, !tbaa !9
  call void @dlascl_(ptr noundef %1, ptr noundef nonnull @c__0, ptr noundef nonnull @c__0, ptr noundef nonnull @c_b27, ptr noundef nonnull %14, ptr noundef nonnull %2, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef nonnull %10) #5
  br label %90

90:                                               ; preds = %87, %89
  %91 = phi i1 [ true, %89 ], [ false, %87 ]
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  %94 = add nsw i32 %93, %92
  %95 = add nsw i32 %94, %61
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = add i32 %96, 1
  %98 = sub i32 %97, %95
  store i32 %98, ptr %19, align 4, !tbaa !5
  %99 = sext i32 %93 to i64
  %100 = getelementptr inbounds double, ptr %20, i64 %99
  %101 = sext i32 %94 to i64
  %102 = getelementptr inbounds double, ptr %20, i64 %101
  %103 = sext i32 %95 to i64
  %104 = getelementptr inbounds double, ptr %20, i64 %103
  call void @dsytrd_2stage_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef nonnull %6, ptr noundef nonnull %100, ptr noundef nonnull %102, ptr noundef nonnull %16, ptr noundef nonnull %104, ptr noundef nonnull %19, ptr noundef nonnull %15) #5
  %.not145 = icmp eq i32 %21, 0
  br i1 %.not145, label %105, label %110

105:                                              ; preds = %90
  call void @dsterf_(ptr noundef nonnull %2, ptr noundef %5, ptr noundef nonnull %6, ptr noundef nonnull %10) #5
  br i1 %91, label %106, label %109

106:                                              ; preds = %105
  %107 = load double, ptr %14, align 8, !tbaa !9
  %108 = fdiv double 1.000000e+00, %107
  store double %108, ptr %13, align 8, !tbaa !9
  call void @dscal_(ptr noundef nonnull %2, ptr noundef nonnull %13, ptr noundef %5, ptr noundef nonnull @c__1) #5
  br label %109

109:                                              ; preds = %106, %105
  store double %62, ptr %6, align 8, !tbaa !9
  store i32 %.0, ptr %8, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %90, %74, %76, %72, %71, %109, %.thread153
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  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 double @dlamch_(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

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

declare void @dlascl_(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 @dsytrd_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 @dsterf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @dscal_(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

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

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 = { 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" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

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


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