; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (dsbev_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__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 double, align 8
@.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 @dsbev_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) #0 {
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca double, align 8
  %31 = alloca i32, align 4
  %32 = alloca double, align 8
  %33 = alloca i32, align 4
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %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 i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca double, align 8
  %46 = alloca double, align 8
  %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 %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store ptr %3, ptr %16, align 8, !tbaa !5
  store ptr %4, ptr %17, align 8, !tbaa !5
  store ptr %5, ptr %18, align 8, !tbaa !5
  store ptr %6, ptr %19, align 8, !tbaa !5
  store ptr %7, ptr %20, align 8, !tbaa !5
  store ptr %8, ptr %21, align 8, !tbaa !5
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  store ptr %11, ptr %24, align 8, !tbaa !5
  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 8, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 8, ptr %45) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 %18, align 8, !tbaa !5
  %55 = load i32, ptr %54, align 4, !tbaa !9
  store i32 %55, ptr %25, align 4, !tbaa !9
  %56 = load i32, ptr %25, align 4, !tbaa !9
  %57 = mul nsw i32 %56, 1
  %58 = add nsw i32 1, %57
  store i32 %58, ptr %26, align 4, !tbaa !9
  %59 = load i32, ptr %26, align 4, !tbaa !9
  %60 = load ptr, ptr %17, 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 %17, align 8, !tbaa !5
  %64 = load ptr, ptr %19, align 8, !tbaa !5
  %65 = getelementptr inbounds double, ptr %64, i32 -1
  store ptr %65, ptr %19, align 8, !tbaa !5
  %66 = load ptr, ptr %21, align 8, !tbaa !5
  %67 = load i32, ptr %66, align 4, !tbaa !9
  store i32 %67, ptr %27, align 4, !tbaa !9
  %68 = load i32, ptr %27, align 4, !tbaa !9
  %69 = mul nsw i32 %68, 1
  %70 = add nsw i32 1, %69
  store i32 %70, ptr %28, align 4, !tbaa !9
  %71 = load i32, ptr %28, align 4, !tbaa !9
  %72 = load ptr, ptr %20, align 8, !tbaa !5
  %73 = sext i32 %71 to i64
  %74 = sub i64 0, %73
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  store ptr %75, ptr %20, align 8, !tbaa !5
  %76 = load ptr, ptr %22, align 8, !tbaa !5
  %77 = getelementptr inbounds double, ptr %76, i32 -1
  store ptr %77, ptr %22, align 8, !tbaa !5
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = call i32 @lsame_(ptr noundef %78, ptr noundef @.str)
  store i32 %79, ptr %42, align 4, !tbaa !9
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = call i32 @lsame_(ptr noundef %80, ptr noundef @.str.1)
  store i32 %81, ptr %40, align 4, !tbaa !9
  %82 = load ptr, ptr %23, align 8, !tbaa !5
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = icmp eq i32 %83, -1
  %85 = zext i1 %84 to i32
  store i32 %85, ptr %50, align 4, !tbaa !9
  %86 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 0, ptr %86, align 4, !tbaa !9
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = call i32 @lsame_(ptr noundef %87, ptr noundef @.str.2)
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %92, label %90

90:                                               ; preds = %12
  %91 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -1, ptr %91, align 4, !tbaa !9
  br label %142

92:                                               ; preds = %12
  %93 = load i32, ptr %40, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %101, label %95

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

99:                                               ; preds = %95
  %100 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -2, ptr %100, align 4, !tbaa !9
  br label %141

101:                                              ; preds = %95, %92
  %102 = load ptr, ptr %15, align 8, !tbaa !5
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = icmp slt i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %101
  %106 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -3, ptr %106, align 4, !tbaa !9
  br label %140

107:                                              ; preds = %101
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = icmp slt i32 %109, 0
  br i1 %110, label %111, label %113

111:                                              ; preds = %107
  %112 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -4, ptr %112, align 4, !tbaa !9
  br label %139

113:                                              ; preds = %107
  %114 = load ptr, ptr %18, align 8, !tbaa !5
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = load ptr, ptr %16, align 8, !tbaa !5
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  %119 = icmp slt i32 %115, %118
  br i1 %119, label %120, label %122

120:                                              ; preds = %113
  %121 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -6, ptr %121, align 4, !tbaa !9
  br label %138

122:                                              ; preds = %113
  %123 = load ptr, ptr %21, align 8, !tbaa !5
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = icmp slt i32 %124, 1
  br i1 %125, label %135, label %126

126:                                              ; preds = %122
  %127 = load i32, ptr %42, align 4, !tbaa !9
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %137

129:                                              ; preds = %126
  %130 = load ptr, ptr %21, align 8, !tbaa !5
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = load ptr, ptr %15, align 8, !tbaa !5
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = icmp slt i32 %131, %133
  br i1 %134, label %135, label %137

135:                                              ; preds = %129, %122
  %136 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -9, ptr %136, align 4, !tbaa !9
  br label %137

137:                                              ; preds = %135, %129, %126
  br label %138

138:                                              ; preds = %137, %120
  br label %139

139:                                              ; preds = %138, %111
  br label %140

140:                                              ; preds = %139, %105
  br label %141

141:                                              ; preds = %140, %99
  br label %142

142:                                              ; preds = %141, %90
  %143 = load ptr, ptr %24, align 8, !tbaa !5
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = icmp eq i32 %144, 0
  br i1 %145, label %146, label %189

146:                                              ; preds = %142
  %147 = load ptr, ptr %15, align 8, !tbaa !5
  %148 = load i32, ptr %147, align 4, !tbaa !9
  %149 = icmp sle i32 %148, 1
  br i1 %149, label %150, label %155

150:                                              ; preds = %146
  store i32 1, ptr %39, align 4, !tbaa !9
  %151 = load i32, ptr %39, align 4, !tbaa !9
  %152 = sitofp i32 %151 to double
  %153 = load ptr, ptr %22, align 8, !tbaa !5
  %154 = getelementptr inbounds double, ptr %153, i64 1
  store double %152, ptr %154, align 8, !tbaa !11
  br label %178

155:                                              ; preds = %146
  %156 = load ptr, ptr %13, align 8, !tbaa !5
  %157 = load ptr, ptr %15, align 8, !tbaa !5
  %158 = load ptr, ptr %16, align 8, !tbaa !5
  %159 = call i32 @ilaenv2stage_(ptr noundef @c__2, ptr noundef @.str.4, ptr noundef %156, ptr noundef %157, ptr noundef %158, ptr noundef @c_n1, ptr noundef @c_n1)
  store i32 %159, ptr %43, align 4, !tbaa !9
  %160 = load ptr, ptr %13, align 8, !tbaa !5
  %161 = load ptr, ptr %15, align 8, !tbaa !5
  %162 = load ptr, ptr %16, align 8, !tbaa !5
  %163 = call i32 @ilaenv2stage_(ptr noundef @c__3, ptr noundef @.str.4, ptr noundef %160, ptr noundef %161, ptr noundef %162, ptr noundef %43, ptr noundef @c_n1)
  store i32 %163, ptr %38, align 4, !tbaa !9
  %164 = load ptr, ptr %13, align 8, !tbaa !5
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = load ptr, ptr %16, align 8, !tbaa !5
  %167 = call i32 @ilaenv2stage_(ptr noundef @c__4, ptr noundef @.str.4, ptr noundef %164, ptr noundef %165, ptr noundef %166, ptr noundef %43, ptr noundef @c_n1)
  store i32 %167, ptr %41, align 4, !tbaa !9
  %168 = load ptr, ptr %15, align 8, !tbaa !5
  %169 = load i32, ptr %168, align 4, !tbaa !9
  %170 = load i32, ptr %38, align 4, !tbaa !9
  %171 = add nsw i32 %169, %170
  %172 = load i32, ptr %41, align 4, !tbaa !9
  %173 = add nsw i32 %171, %172
  store i32 %173, ptr %39, align 4, !tbaa !9
  %174 = load i32, ptr %39, align 4, !tbaa !9
  %175 = sitofp i32 %174 to double
  %176 = load ptr, ptr %22, align 8, !tbaa !5
  %177 = getelementptr inbounds double, ptr %176, i64 1
  store double %175, ptr %177, align 8, !tbaa !11
  br label %178

178:                                              ; preds = %155, %150
  %179 = load ptr, ptr %23, align 8, !tbaa !5
  %180 = load i32, ptr %179, align 4, !tbaa !9
  %181 = load i32, ptr %39, align 4, !tbaa !9
  %182 = icmp slt i32 %180, %181
  br i1 %182, label %183, label %188

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

186:                                              ; preds = %183
  %187 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -11, ptr %187, align 4, !tbaa !9
  br label %188

188:                                              ; preds = %186, %183, %178
  br label %189

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

193:                                              ; preds = %189
  %194 = load ptr, ptr %24, align 8, !tbaa !5
  %195 = load i32, ptr %194, align 4, !tbaa !9
  %196 = sub nsw i32 0, %195
  store i32 %196, ptr %29, align 4, !tbaa !9
  %197 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %29, i32 noundef 13)
  store i32 1, ptr %53, align 4
  br label %407

198:                                              ; preds = %189
  %199 = load i32, ptr %50, align 4, !tbaa !9
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %201, label %202

201:                                              ; preds = %198
  store i32 1, ptr %53, align 4
  br label %407

202:                                              ; preds = %198
  br label %203

203:                                              ; preds = %202
  %204 = load ptr, ptr %15, align 8, !tbaa !5
  %205 = load i32, ptr %204, align 4, !tbaa !9
  %206 = icmp eq i32 %205, 0
  br i1 %206, label %207, label %208

207:                                              ; preds = %203
  store i32 1, ptr %53, align 4
  br label %407

208:                                              ; preds = %203
  %209 = load ptr, ptr %15, align 8, !tbaa !5
  %210 = load i32, ptr %209, align 4, !tbaa !9
  %211 = icmp eq i32 %210, 1
  br i1 %211, label %212, label %246

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

215:                                              ; preds = %212
  %216 = load ptr, ptr %17, align 8, !tbaa !5
  %217 = load i32, ptr %25, align 4, !tbaa !9
  %218 = add nsw i32 %217, 1
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds double, ptr %216, i64 %219
  %221 = load double, ptr %220, align 8, !tbaa !11
  %222 = load ptr, ptr %19, align 8, !tbaa !5
  %223 = getelementptr inbounds double, ptr %222, i64 1
  store double %221, ptr %223, align 8, !tbaa !11
  br label %236

224:                                              ; preds = %212
  %225 = load ptr, ptr %17, align 8, !tbaa !5
  %226 = load ptr, ptr %16, align 8, !tbaa !5
  %227 = load i32, ptr %226, align 4, !tbaa !9
  %228 = add nsw i32 %227, 1
  %229 = load i32, ptr %25, align 4, !tbaa !9
  %230 = add nsw i32 %228, %229
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds double, ptr %225, i64 %231
  %233 = load double, ptr %232, align 8, !tbaa !11
  %234 = load ptr, ptr %19, align 8, !tbaa !5
  %235 = getelementptr inbounds double, ptr %234, i64 1
  store double %233, ptr %235, align 8, !tbaa !11
  br label %236

236:                                              ; preds = %224, %215
  %237 = load i32, ptr %42, align 4, !tbaa !9
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %239, label %245

239:                                              ; preds = %236
  %240 = load ptr, ptr %20, align 8, !tbaa !5
  %241 = load i32, ptr %27, align 4, !tbaa !9
  %242 = add nsw i32 %241, 1
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds double, ptr %240, i64 %243
  store double 1.000000e+00, ptr %244, align 8, !tbaa !11
  br label %245

245:                                              ; preds = %239, %236
  store i32 1, ptr %53, align 4
  br label %407

246:                                              ; preds = %208
  %247 = call double @dlamch_(ptr noundef @.str.6)
  store double %247, ptr %45, align 8, !tbaa !11
  %248 = call double @dlamch_(ptr noundef @.str.7)
  store double %248, ptr %51, align 8, !tbaa !11
  %249 = load double, ptr %45, align 8, !tbaa !11
  %250 = load double, ptr %51, align 8, !tbaa !11
  %251 = fdiv double %249, %250
  store double %251, ptr %49, align 8, !tbaa !11
  %252 = load double, ptr %49, align 8, !tbaa !11
  %253 = fdiv double 1.000000e+00, %252
  store double %253, ptr %46, align 8, !tbaa !11
  %254 = load double, ptr %49, align 8, !tbaa !11
  %255 = call double @sqrt(double noundef %254) #4
  store double %255, ptr %34, align 8, !tbaa !11
  %256 = load double, ptr %46, align 8, !tbaa !11
  %257 = call double @sqrt(double noundef %256) #4
  store double %257, ptr %35, align 8, !tbaa !11
  %258 = load ptr, ptr %14, align 8, !tbaa !5
  %259 = load ptr, ptr %15, align 8, !tbaa !5
  %260 = load ptr, ptr %16, align 8, !tbaa !5
  %261 = load ptr, ptr %17, align 8, !tbaa !5
  %262 = load i32, ptr %26, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds double, ptr %261, i64 %263
  %265 = load ptr, ptr %18, align 8, !tbaa !5
  %266 = load ptr, ptr %22, align 8, !tbaa !5
  %267 = getelementptr inbounds double, ptr %266, i64 1
  %268 = call double @dlansb_(ptr noundef @.str.8, ptr noundef %258, ptr noundef %259, ptr noundef %260, ptr noundef %264, ptr noundef %265, ptr noundef %267)
  store double %268, ptr %32, align 8, !tbaa !11
  store i32 0, ptr %44, align 4, !tbaa !9
  %269 = load double, ptr %32, align 8, !tbaa !11
  %270 = fcmp ogt double %269, 0.000000e+00
  br i1 %270, label %271, label %279

271:                                              ; preds = %246
  %272 = load double, ptr %32, align 8, !tbaa !11
  %273 = load double, ptr %34, align 8, !tbaa !11
  %274 = fcmp olt double %272, %273
  br i1 %274, label %275, label %279

275:                                              ; preds = %271
  store i32 1, ptr %44, align 4, !tbaa !9
  %276 = load double, ptr %34, align 8, !tbaa !11
  %277 = load double, ptr %32, align 8, !tbaa !11
  %278 = fdiv double %276, %277
  store double %278, ptr %36, align 8, !tbaa !11
  br label %288

279:                                              ; preds = %271, %246
  %280 = load double, ptr %32, align 8, !tbaa !11
  %281 = load double, ptr %35, align 8, !tbaa !11
  %282 = fcmp ogt double %280, %281
  br i1 %282, label %283, label %287

283:                                              ; preds = %279
  store i32 1, ptr %44, align 4, !tbaa !9
  %284 = load double, ptr %35, align 8, !tbaa !11
  %285 = load double, ptr %32, align 8, !tbaa !11
  %286 = fdiv double %284, %285
  store double %286, ptr %36, align 8, !tbaa !11
  br label %287

287:                                              ; preds = %283, %279
  br label %288

288:                                              ; preds = %287, %275
  %289 = load i32, ptr %44, align 4, !tbaa !9
  %290 = icmp eq i32 %289, 1
  br i1 %290, label %291, label %317

291:                                              ; preds = %288
  %292 = load i32, ptr %40, align 4, !tbaa !9
  %293 = icmp ne i32 %292, 0
  br i1 %293, label %294, label %305

294:                                              ; preds = %291
  %295 = load ptr, ptr %16, align 8, !tbaa !5
  %296 = load ptr, ptr %16, align 8, !tbaa !5
  %297 = load ptr, ptr %15, align 8, !tbaa !5
  %298 = load ptr, ptr %15, align 8, !tbaa !5
  %299 = load ptr, ptr %17, align 8, !tbaa !5
  %300 = load i32, ptr %26, align 4, !tbaa !9
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds double, ptr %299, i64 %301
  %303 = load ptr, ptr %18, align 8, !tbaa !5
  %304 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dlascl_(ptr noundef @.str.9, ptr noundef %295, ptr noundef %296, ptr noundef @c_b21, ptr noundef %36, ptr noundef %297, ptr noundef %298, ptr noundef %302, ptr noundef %303, ptr noundef %304)
  br label %316

305:                                              ; preds = %291
  %306 = load ptr, ptr %16, align 8, !tbaa !5
  %307 = load ptr, ptr %16, align 8, !tbaa !5
  %308 = load ptr, ptr %15, align 8, !tbaa !5
  %309 = load ptr, ptr %15, align 8, !tbaa !5
  %310 = load ptr, ptr %17, align 8, !tbaa !5
  %311 = load i32, ptr %26, align 4, !tbaa !9
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds double, ptr %310, i64 %312
  %314 = load ptr, ptr %18, align 8, !tbaa !5
  %315 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dlascl_(ptr noundef @.str.10, ptr noundef %306, ptr noundef %307, ptr noundef @c_b21, ptr noundef %36, ptr noundef %308, ptr noundef %309, ptr noundef %313, ptr noundef %314, ptr noundef %315)
  br label %316

316:                                              ; preds = %305, %294
  br label %317

317:                                              ; preds = %316, %288
  store i32 1, ptr %31, align 4, !tbaa !9
  %318 = load i32, ptr %31, align 4, !tbaa !9
  %319 = load ptr, ptr %15, align 8, !tbaa !5
  %320 = load i32, ptr %319, align 4, !tbaa !9
  %321 = add nsw i32 %318, %320
  store i32 %321, ptr %52, align 4, !tbaa !9
  %322 = load i32, ptr %52, align 4, !tbaa !9
  %323 = load i32, ptr %38, align 4, !tbaa !9
  %324 = add nsw i32 %322, %323
  store i32 %324, ptr %47, align 4, !tbaa !9
  %325 = load ptr, ptr %23, align 8, !tbaa !5
  %326 = load i32, ptr %325, align 4, !tbaa !9
  %327 = load i32, ptr %47, align 4, !tbaa !9
  %328 = sub nsw i32 %326, %327
  %329 = add nsw i32 %328, 1
  store i32 %329, ptr %48, align 4, !tbaa !9
  %330 = load ptr, ptr %13, align 8, !tbaa !5
  %331 = load ptr, ptr %14, align 8, !tbaa !5
  %332 = load ptr, ptr %15, align 8, !tbaa !5
  %333 = load ptr, ptr %16, align 8, !tbaa !5
  %334 = load ptr, ptr %17, align 8, !tbaa !5
  %335 = load i32, ptr %26, align 4, !tbaa !9
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds double, ptr %334, i64 %336
  %338 = load ptr, ptr %18, align 8, !tbaa !5
  %339 = load ptr, ptr %19, align 8, !tbaa !5
  %340 = getelementptr inbounds double, ptr %339, i64 1
  %341 = load ptr, ptr %22, align 8, !tbaa !5
  %342 = load i32, ptr %31, align 4, !tbaa !9
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds double, ptr %341, i64 %343
  %345 = load ptr, ptr %22, align 8, !tbaa !5
  %346 = load i32, ptr %52, align 4, !tbaa !9
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds double, ptr %345, i64 %347
  %349 = load ptr, ptr %22, align 8, !tbaa !5
  %350 = load i32, ptr %47, align 4, !tbaa !9
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds double, ptr %349, i64 %351
  call void @dsytrd_sb2st_(ptr noundef @.str.2, ptr noundef %330, ptr noundef %331, ptr noundef %332, ptr noundef %333, ptr noundef %337, ptr noundef %338, ptr noundef %340, ptr noundef %344, ptr noundef %348, ptr noundef %38, ptr noundef %352, ptr noundef %48, ptr noundef %37)
  %353 = load i32, ptr %42, align 4, !tbaa !9
  %354 = icmp ne i32 %353, 0
  br i1 %354, label %364, label %355

355:                                              ; preds = %317
  %356 = load ptr, ptr %15, align 8, !tbaa !5
  %357 = load ptr, ptr %19, align 8, !tbaa !5
  %358 = getelementptr inbounds double, ptr %357, i64 1
  %359 = load ptr, ptr %22, align 8, !tbaa !5
  %360 = load i32, ptr %31, align 4, !tbaa !9
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds double, ptr %359, i64 %361
  %363 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dsterf_(ptr noundef %356, ptr noundef %358, ptr noundef %362, ptr noundef %363)
  br label %383

364:                                              ; preds = %317
  %365 = load ptr, ptr %13, align 8, !tbaa !5
  %366 = load ptr, ptr %15, align 8, !tbaa !5
  %367 = load ptr, ptr %19, align 8, !tbaa !5
  %368 = getelementptr inbounds double, ptr %367, i64 1
  %369 = load ptr, ptr %22, align 8, !tbaa !5
  %370 = load i32, ptr %31, align 4, !tbaa !9
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds double, ptr %369, i64 %371
  %373 = load ptr, ptr %20, align 8, !tbaa !5
  %374 = load i32, ptr %28, align 4, !tbaa !9
  %375 = sext i32 %374 to i64
  %376 = getelementptr inbounds double, ptr %373, i64 %375
  %377 = load ptr, ptr %21, align 8, !tbaa !5
  %378 = load ptr, ptr %22, align 8, !tbaa !5
  %379 = load i32, ptr %47, align 4, !tbaa !9
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds double, ptr %378, i64 %380
  %382 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dsteqr_(ptr noundef %365, ptr noundef %366, ptr noundef %368, ptr noundef %372, ptr noundef %376, ptr noundef %377, ptr noundef %381, ptr noundef %382)
  br label %383

383:                                              ; preds = %364, %355
  %384 = load i32, ptr %44, align 4, !tbaa !9
  %385 = icmp eq i32 %384, 1
  br i1 %385, label %386, label %402

386:                                              ; preds = %383
  %387 = load ptr, ptr %24, align 8, !tbaa !5
  %388 = load i32, ptr %387, align 4, !tbaa !9
  %389 = icmp eq i32 %388, 0
  br i1 %389, label %390, label %393

390:                                              ; preds = %386
  %391 = load ptr, ptr %15, align 8, !tbaa !5
  %392 = load i32, ptr %391, align 4, !tbaa !9
  store i32 %392, ptr %33, align 4, !tbaa !9
  br label %397

393:                                              ; preds = %386
  %394 = load ptr, ptr %24, align 8, !tbaa !5
  %395 = load i32, ptr %394, align 4, !tbaa !9
  %396 = sub nsw i32 %395, 1
  store i32 %396, ptr %33, align 4, !tbaa !9
  br label %397

397:                                              ; preds = %393, %390
  %398 = load double, ptr %36, align 8, !tbaa !11
  %399 = fdiv double 1.000000e+00, %398
  store double %399, ptr %30, align 8, !tbaa !11
  %400 = load ptr, ptr %19, align 8, !tbaa !5
  %401 = getelementptr inbounds double, ptr %400, i64 1
  call void @dscal_(ptr noundef %33, ptr noundef %30, ptr noundef %401, ptr noundef @c__1)
  br label %402

402:                                              ; preds = %397, %383
  %403 = load i32, ptr %39, align 4, !tbaa !9
  %404 = sitofp i32 %403 to double
  %405 = load ptr, ptr %22, align 8, !tbaa !5
  %406 = getelementptr inbounds double, ptr %405, i64 1
  store double %404, ptr %406, align 8, !tbaa !11
  store i32 1, ptr %53, align 4
  br label %407

407:                                              ; preds = %402, %245, %207, %201, %193
  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 8, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 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 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 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
  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 @dlansb_(ptr noundef, 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_sb2st_(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 @dsterf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @dsteqr_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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__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 double, align 8
@.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 @dsbev_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) local_unnamed_addr #0 {
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #4
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %narrow = xor i32 %21, -1
  %22 = sext i32 %narrow to i64
  %23 = getelementptr inbounds double, ptr %4, i64 %22
  %24 = getelementptr inbounds i8, ptr %9, i64 -8
  %25 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %26 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.1) #4
  %27 = load i32, ptr %10, align 4, !tbaa !5
  %28 = icmp eq i32 %27, -1
  store i32 0, ptr %11, align 4, !tbaa !5
  %29 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #4
  %.not = icmp eq i32 %29, 0
  br i1 %.not, label %.thread177.sink.split, label %30

30:                                               ; preds = %12
  %.not160 = icmp eq i32 %26, 0
  br i1 %.not160, label %31, label %33

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

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

36:                                               ; preds = %33
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = icmp slt i32 %37, 0
  br i1 %38, label %.thread177.sink.split, label %39

39:                                               ; preds = %36
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %.not162 = icmp sgt i32 %40, %37
  br i1 %.not162, label %41, label %.thread177.sink.split

41:                                               ; preds = %39
  %42 = load i32, ptr %8, align 4, !tbaa !5
  %43 = icmp slt i32 %42, 1
  br i1 %43, label %.thread177.sink.split, label %44

44:                                               ; preds = %41
  %.not163 = icmp ne i32 %25, 0
  %45 = icmp ult i32 %42, %34
  %or.cond171 = and i1 %.not163, %45
  br i1 %or.cond171, label %.thread177.sink.split, label %46

46:                                               ; preds = %44
  %.pr = load i32, ptr %11, align 4, !tbaa !5
  %47 = icmp eq i32 %.pr, 0
  br i1 %47, label %48, label %.thread177

48:                                               ; preds = %46
  %49 = icmp ult i32 %34, 2
  br i1 %49, label %58, label %50

50:                                               ; preds = %48
  %51 = 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) #4
  store i32 %51, ptr %19, align 4, !tbaa !5
  %52 = 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 %19, ptr noundef nonnull @c_n1) #4
  store i32 %52, ptr %18, align 4, !tbaa !5
  %53 = 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 %19, ptr noundef nonnull @c_n1) #4
  %54 = load i32, ptr %2, align 4, !tbaa !5
  %55 = add i32 %54, %53
  %56 = add i32 %55, %52
  %57 = sitofp i32 %56 to double
  br label %58

58:                                               ; preds = %48, %50
  %59 = phi i32 [ %52, %50 ], [ undef, %48 ]
  %60 = phi i32 [ %54, %50 ], [ %34, %48 ]
  %storemerge = phi double [ %57, %50 ], [ 1.000000e+00, %48 ]
  %.0 = phi i32 [ %56, %50 ], [ 1, %48 ]
  store double %storemerge, ptr %9, align 8, !tbaa !9
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = icmp sge i32 %61, %.0
  %or.cond = select i1 %62, i1 true, i1 %28
  br i1 %or.cond, label %.thread, label %.thread177.sink.split

.thread:                                          ; preds = %58
  %.pr174.pr = load i32, ptr %11, align 4, !tbaa !5
  %.not164 = icmp eq i32 %.pr174.pr, 0
  br i1 %.not164, label %66, label %.thread177

.thread177.sink.split:                            ; preds = %58, %41, %44, %39, %36, %33, %31, %12
  %.sink = phi i32 [ -1, %12 ], [ -2, %31 ], [ -3, %33 ], [ -4, %36 ], [ -6, %39 ], [ -9, %44 ], [ -9, %41 ], [ -11, %58 ]
  store i32 %.sink, ptr %11, align 4, !tbaa !5
  br label %.thread177

.thread177:                                       ; preds = %.thread177.sink.split, %46, %.thread
  %63 = phi i32 [ %.pr174.pr, %.thread ], [ %.pr, %46 ], [ %.sink, %.thread177.sink.split ]
  %64 = sub nsw i32 0, %63
  store i32 %64, ptr %13, align 4, !tbaa !5
  %65 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %13, i32 noundef 13) #4
  br label %115

66:                                               ; preds = %.thread
  br i1 %28, label %115, label %67

67:                                               ; preds = %66
  switch i32 %60, label %77 [
    i32 0, label %115
    i32 1, label %68
  ]

68:                                               ; preds = %67
  br i1 %.not160, label %69, label %75

69:                                               ; preds = %68
  %70 = load i32, ptr %3, align 4, !tbaa !5
  %71 = add i32 %21, 1
  %72 = add i32 %71, %70
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds double, ptr %23, i64 %73
  br label %75

75:                                               ; preds = %68, %69
  %storemerge169.in = phi ptr [ %74, %69 ], [ %4, %68 ]
  %storemerge169 = load double, ptr %storemerge169.in, align 8, !tbaa !9
  store double %storemerge169, ptr %6, align 8, !tbaa !9
  %.not170 = icmp eq i32 %25, 0
  br i1 %.not170, label %115, label %76

76:                                               ; preds = %75
  store double 1.000000e+00, ptr %7, align 8, !tbaa !9
  br label %115

77:                                               ; preds = %67
  %78 = call double @dlamch_(ptr noundef nonnull @.str.6) #4
  %79 = call double @dlamch_(ptr noundef nonnull @.str.7) #4
  %80 = fdiv double %78, %79
  %81 = fdiv double 1.000000e+00, %80
  %82 = call double @sqrt(double noundef %80) #4
  %83 = call double @sqrt(double noundef %81) #4
  %84 = call double @dlansb_(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 nonnull %9) #4
  %85 = fcmp ogt double %84, 0.000000e+00
  %86 = fcmp olt double %84, %82
  %or.cond172 = select i1 %85, i1 %86, i1 false
  br i1 %or.cond172, label %.sink.split, label %87

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

.sink.split:                                      ; preds = %87, %77
  %.pn = phi double [ %82, %77 ], [ %83, %87 ]
  %storemerge185 = fdiv double %.pn, %84
  store double %storemerge185, ptr %16, align 8, !tbaa !9
  %.str.10..str.9 = select i1 %.not160, ptr @.str.10, ptr @.str.9
  call void @dlascl_(ptr noundef nonnull %.str.10..str.9, ptr noundef nonnull %3, ptr noundef nonnull %3, ptr noundef nonnull @c_b21, ptr noundef nonnull %16, ptr noundef nonnull %2, ptr noundef nonnull %2, ptr noundef %4, ptr noundef nonnull %5, ptr noundef nonnull %11) #4
  br label %89

89:                                               ; preds = %.sink.split, %87
  %90 = phi i1 [ false, %87 ], [ true, %.sink.split ]
  %91 = load i32, ptr %2, align 4, !tbaa !5
  %92 = add nsw i32 %91, 1
  %93 = add nsw i32 %92, %59
  %94 = load i32, ptr %10, align 4, !tbaa !5
  %reass.sub = sub i32 %94, %93
  %95 = add i32 %reass.sub, 1
  store i32 %95, ptr %20, align 4, !tbaa !5
  %96 = sext i32 %92 to i64
  %97 = getelementptr inbounds double, ptr %24, i64 %96
  %98 = sext i32 %93 to i64
  %99 = getelementptr inbounds double, ptr %24, i64 %98
  call void @dsytrd_sb2st_(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 nonnull %9, ptr noundef nonnull %97, ptr noundef nonnull %18, ptr noundef nonnull %99, ptr noundef nonnull %20, ptr noundef nonnull %17) #4
  %.not166 = icmp eq i32 %25, 0
  br i1 %.not166, label %100, label %101

100:                                              ; preds = %89
  call void @dsterf_(ptr noundef nonnull %2, ptr noundef %6, ptr noundef nonnull %9, ptr noundef nonnull %11) #4
  br label %102

101:                                              ; preds = %89
  call void @dsteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %6, ptr noundef nonnull %9, ptr noundef %7, ptr noundef nonnull %8, ptr noundef nonnull %99, ptr noundef nonnull %11) #4
  br label %102

102:                                              ; preds = %101, %100
  br i1 %90, label %103, label %113

103:                                              ; preds = %102
  %104 = load i32, ptr %11, align 4, !tbaa !5
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %106, label %108

106:                                              ; preds = %103
  %107 = load i32, ptr %2, align 4, !tbaa !5
  br label %110

108:                                              ; preds = %103
  %109 = add nsw i32 %104, -1
  br label %110

110:                                              ; preds = %108, %106
  %storemerge167 = phi i32 [ %109, %108 ], [ %107, %106 ]
  store i32 %storemerge167, ptr %15, align 4, !tbaa !5
  %111 = load double, ptr %16, align 8, !tbaa !9
  %112 = fdiv double 1.000000e+00, %111
  store double %112, ptr %14, align 8, !tbaa !9
  call void @dscal_(ptr noundef nonnull %15, ptr noundef nonnull %14, ptr noundef %6, ptr noundef nonnull @c__1) #4
  br label %113

113:                                              ; preds = %110, %102
  %114 = sitofp i32 %.0 to double
  store double %114, ptr %9, align 8, !tbaa !9
  br label %115

115:                                              ; preds = %75, %76, %67, %66, %113, %.thread177
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #4
  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 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #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 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 @dlansb_(ptr noundef, 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_sb2st_(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 @dsterf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @dsteqr_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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

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 = { 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