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

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

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

73:                                               ; preds = %11
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  %75 = call i64 @lsame_(ptr noundef %74, ptr noundef @.str.2)
  %76 = icmp ne i64 %75, 0
  br i1 %76, label %79, label %77

77:                                               ; preds = %73
  %78 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -1, ptr %78, align 8, !tbaa !9
  br label %129

79:                                               ; preds = %73, %11
  %80 = load i64, ptr %38, align 8, !tbaa !9
  %81 = icmp ne i64 %80, 0
  br i1 %81, label %88, label %82

82:                                               ; preds = %79
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = call i64 @lsame_(ptr noundef %83, ptr noundef @.str.3)
  %85 = icmp ne i64 %84, 0
  br i1 %85, label %88, label %86

86:                                               ; preds = %82
  %87 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -2, ptr %87, align 8, !tbaa !9
  br label %128

88:                                               ; preds = %82, %79
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = load i64, ptr %89, align 8, !tbaa !9
  %91 = icmp slt i64 %90, 0
  br i1 %91, label %92, label %94

92:                                               ; preds = %88
  %93 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -3, ptr %93, align 8, !tbaa !9
  br label %127

94:                                               ; preds = %88
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = load i64, ptr %95, align 8, !tbaa !9
  %97 = icmp slt i64 %96, 0
  br i1 %97, label %98, label %100

98:                                               ; preds = %94
  %99 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -4, ptr %99, align 8, !tbaa !9
  br label %126

100:                                              ; preds = %94
  %101 = load ptr, ptr %18, align 8, !tbaa !5
  %102 = load i64, ptr %101, align 8, !tbaa !9
  %103 = load ptr, ptr %16, align 8, !tbaa !5
  %104 = load i64, ptr %103, align 8, !tbaa !9
  %105 = add nsw i64 %104, 1
  %106 = icmp slt i64 %102, %105
  br i1 %106, label %107, label %109

107:                                              ; preds = %100
  %108 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -6, ptr %108, align 8, !tbaa !9
  br label %125

109:                                              ; preds = %100
  %110 = load ptr, ptr %21, align 8, !tbaa !5
  %111 = load i64, ptr %110, align 8, !tbaa !9
  %112 = icmp slt i64 %111, 1
  br i1 %112, label %122, label %113

113:                                              ; preds = %109
  %114 = load i64, ptr %39, align 8, !tbaa !9
  %115 = icmp ne i64 %114, 0
  br i1 %115, label %116, label %124

116:                                              ; preds = %113
  %117 = load ptr, ptr %21, align 8, !tbaa !5
  %118 = load i64, ptr %117, align 8, !tbaa !9
  %119 = load ptr, ptr %15, align 8, !tbaa !5
  %120 = load i64, ptr %119, align 8, !tbaa !9
  %121 = icmp slt i64 %118, %120
  br i1 %121, label %122, label %124

122:                                              ; preds = %116, %109
  %123 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -9, ptr %123, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %122, %116, %113
  br label %125

125:                                              ; preds = %124, %107
  br label %126

126:                                              ; preds = %125, %98
  br label %127

127:                                              ; preds = %126, %92
  br label %128

128:                                              ; preds = %127, %86
  br label %129

129:                                              ; preds = %128, %77
  %130 = load ptr, ptr %23, align 8, !tbaa !5
  %131 = load i64, ptr %130, align 8, !tbaa !9
  %132 = icmp ne i64 %131, 0
  br i1 %132, label %133, label %138

133:                                              ; preds = %129
  %134 = load ptr, ptr %23, align 8, !tbaa !5
  %135 = load i64, ptr %134, align 8, !tbaa !9
  %136 = sub nsw i64 0, %135
  store i64 %136, ptr %28, align 8, !tbaa !9
  %137 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %28)
  store i32 0, ptr %12, align 4
  store i32 1, ptr %45, align 4
  br label %323

138:                                              ; preds = %129
  %139 = load ptr, ptr %15, align 8, !tbaa !5
  %140 = load i64, ptr %139, align 8, !tbaa !9
  %141 = icmp eq i64 %140, 0
  br i1 %141, label %142, label %143

142:                                              ; preds = %138
  store i32 0, ptr %12, align 4
  store i32 1, ptr %45, align 4
  br label %323

143:                                              ; preds = %138
  %144 = load ptr, ptr %15, align 8, !tbaa !5
  %145 = load i64, ptr %144, align 8, !tbaa !9
  %146 = icmp eq i64 %145, 1
  br i1 %146, label %147, label %178

147:                                              ; preds = %143
  %148 = load i64, ptr %38, align 8, !tbaa !9
  %149 = icmp ne i64 %148, 0
  br i1 %149, label %150, label %158

150:                                              ; preds = %147
  %151 = load ptr, ptr %17, align 8, !tbaa !5
  %152 = load i64, ptr %24, align 8, !tbaa !9
  %153 = add nsw i64 %152, 1
  %154 = getelementptr inbounds double, ptr %151, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !11
  %156 = load ptr, ptr %19, align 8, !tbaa !5
  %157 = getelementptr inbounds double, ptr %156, i64 1
  store double %155, ptr %157, align 8, !tbaa !11
  br label %169

158:                                              ; preds = %147
  %159 = load ptr, ptr %17, align 8, !tbaa !5
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  %161 = load i64, ptr %160, align 8, !tbaa !9
  %162 = add nsw i64 %161, 1
  %163 = load i64, ptr %24, align 8, !tbaa !9
  %164 = add nsw i64 %162, %163
  %165 = getelementptr inbounds double, ptr %159, i64 %164
  %166 = load double, ptr %165, align 8, !tbaa !11
  %167 = load ptr, ptr %19, align 8, !tbaa !5
  %168 = getelementptr inbounds double, ptr %167, i64 1
  store double %166, ptr %168, align 8, !tbaa !11
  br label %169

169:                                              ; preds = %158, %150
  %170 = load i64, ptr %39, align 8, !tbaa !9
  %171 = icmp ne i64 %170, 0
  br i1 %171, label %172, label %177

172:                                              ; preds = %169
  %173 = load ptr, ptr %20, align 8, !tbaa !5
  %174 = load i64, ptr %26, align 8, !tbaa !9
  %175 = add nsw i64 %174, 1
  %176 = getelementptr inbounds double, ptr %173, i64 %175
  store double 1.000000e+00, ptr %176, align 8, !tbaa !11
  br label %177

177:                                              ; preds = %172, %169
  store i32 0, ptr %12, align 4
  store i32 1, ptr %45, align 4
  br label %323

178:                                              ; preds = %143
  %179 = call double @dlamch_(ptr noundef @.str.5)
  store double %179, ptr %41, align 8, !tbaa !11
  %180 = call double @dlamch_(ptr noundef @.str.6)
  store double %180, ptr %30, align 8, !tbaa !11
  %181 = load double, ptr %41, align 8, !tbaa !11
  %182 = load double, ptr %30, align 8, !tbaa !11
  %183 = fdiv double %181, %182
  store double %183, ptr %44, align 8, !tbaa !11
  %184 = load double, ptr %44, align 8, !tbaa !11
  %185 = fdiv double 1.000000e+00, %184
  store double %185, ptr %42, align 8, !tbaa !11
  %186 = load double, ptr %44, align 8, !tbaa !11
  %187 = call double @sqrt(double noundef %186) #4
  store double %187, ptr %34, align 8, !tbaa !11
  %188 = load double, ptr %42, align 8, !tbaa !11
  %189 = call double @sqrt(double noundef %188) #4
  store double %189, ptr %35, align 8, !tbaa !11
  %190 = load ptr, ptr %14, align 8, !tbaa !5
  %191 = load ptr, ptr %15, align 8, !tbaa !5
  %192 = load ptr, ptr %16, align 8, !tbaa !5
  %193 = load ptr, ptr %17, align 8, !tbaa !5
  %194 = load i64, ptr %25, align 8, !tbaa !9
  %195 = getelementptr inbounds double, ptr %193, i64 %194
  %196 = load ptr, ptr %18, align 8, !tbaa !5
  %197 = load ptr, ptr %22, align 8, !tbaa !5
  %198 = getelementptr inbounds double, ptr %197, i64 1
  %199 = call double @dlansb_(ptr noundef @.str.7, ptr noundef %190, ptr noundef %191, ptr noundef %192, ptr noundef %195, ptr noundef %196, ptr noundef %198)
  store double %199, ptr %32, align 8, !tbaa !11
  store i64 0, ptr %40, align 8, !tbaa !9
  %200 = load double, ptr %32, align 8, !tbaa !11
  %201 = fcmp ogt double %200, 0.000000e+00
  br i1 %201, label %202, label %210

202:                                              ; preds = %178
  %203 = load double, ptr %32, align 8, !tbaa !11
  %204 = load double, ptr %34, align 8, !tbaa !11
  %205 = fcmp olt double %203, %204
  br i1 %205, label %206, label %210

206:                                              ; preds = %202
  store i64 1, ptr %40, align 8, !tbaa !9
  %207 = load double, ptr %34, align 8, !tbaa !11
  %208 = load double, ptr %32, align 8, !tbaa !11
  %209 = fdiv double %207, %208
  store double %209, ptr %36, align 8, !tbaa !11
  br label %219

210:                                              ; preds = %202, %178
  %211 = load double, ptr %32, align 8, !tbaa !11
  %212 = load double, ptr %35, align 8, !tbaa !11
  %213 = fcmp ogt double %211, %212
  br i1 %213, label %214, label %218

214:                                              ; preds = %210
  store i64 1, ptr %40, align 8, !tbaa !9
  %215 = load double, ptr %35, align 8, !tbaa !11
  %216 = load double, ptr %32, align 8, !tbaa !11
  %217 = fdiv double %215, %216
  store double %217, ptr %36, align 8, !tbaa !11
  br label %218

218:                                              ; preds = %214, %210
  br label %219

219:                                              ; preds = %218, %206
  %220 = load i64, ptr %40, align 8, !tbaa !9
  %221 = icmp eq i64 %220, 1
  br i1 %221, label %222, label %248

222:                                              ; preds = %219
  %223 = load i64, ptr %38, align 8, !tbaa !9
  %224 = icmp ne i64 %223, 0
  br i1 %224, label %225, label %236

225:                                              ; preds = %222
  %226 = load ptr, ptr %16, align 8, !tbaa !5
  %227 = load ptr, ptr %16, align 8, !tbaa !5
  %228 = load ptr, ptr %15, align 8, !tbaa !5
  %229 = load ptr, ptr %15, align 8, !tbaa !5
  %230 = load ptr, ptr %17, align 8, !tbaa !5
  %231 = load i64, ptr %25, align 8, !tbaa !9
  %232 = getelementptr inbounds double, ptr %230, i64 %231
  %233 = load ptr, ptr %18, align 8, !tbaa !5
  %234 = load ptr, ptr %23, align 8, !tbaa !5
  %235 = call i32 @dlascl_(ptr noundef @.str.8, ptr noundef %226, ptr noundef %227, ptr noundef @c_b11, ptr noundef %36, ptr noundef %228, ptr noundef %229, ptr noundef %232, ptr noundef %233, ptr noundef %234)
  br label %247

236:                                              ; preds = %222
  %237 = load ptr, ptr %16, align 8, !tbaa !5
  %238 = load ptr, ptr %16, align 8, !tbaa !5
  %239 = load ptr, ptr %15, align 8, !tbaa !5
  %240 = load ptr, ptr %15, align 8, !tbaa !5
  %241 = load ptr, ptr %17, align 8, !tbaa !5
  %242 = load i64, ptr %25, align 8, !tbaa !9
  %243 = getelementptr inbounds double, ptr %241, i64 %242
  %244 = load ptr, ptr %18, align 8, !tbaa !5
  %245 = load ptr, ptr %23, align 8, !tbaa !5
  %246 = call i32 @dlascl_(ptr noundef @.str.9, ptr noundef %237, ptr noundef %238, ptr noundef @c_b11, ptr noundef %36, ptr noundef %239, ptr noundef %240, ptr noundef %243, ptr noundef %244, ptr noundef %245)
  br label %247

247:                                              ; preds = %236, %225
  br label %248

248:                                              ; preds = %247, %219
  store i64 1, ptr %31, align 8, !tbaa !9
  %249 = load i64, ptr %31, align 8, !tbaa !9
  %250 = load ptr, ptr %15, align 8, !tbaa !5
  %251 = load i64, ptr %250, align 8, !tbaa !9
  %252 = add nsw i64 %249, %251
  store i64 %252, ptr %43, align 8, !tbaa !9
  %253 = load ptr, ptr %13, align 8, !tbaa !5
  %254 = load ptr, ptr %14, align 8, !tbaa !5
  %255 = load ptr, ptr %15, align 8, !tbaa !5
  %256 = load ptr, ptr %16, align 8, !tbaa !5
  %257 = load ptr, ptr %17, align 8, !tbaa !5
  %258 = load i64, ptr %25, align 8, !tbaa !9
  %259 = getelementptr inbounds double, ptr %257, i64 %258
  %260 = load ptr, ptr %18, align 8, !tbaa !5
  %261 = load ptr, ptr %19, align 8, !tbaa !5
  %262 = getelementptr inbounds double, ptr %261, i64 1
  %263 = load ptr, ptr %22, align 8, !tbaa !5
  %264 = load i64, ptr %31, align 8, !tbaa !9
  %265 = getelementptr inbounds double, ptr %263, i64 %264
  %266 = load ptr, ptr %20, align 8, !tbaa !5
  %267 = load i64, ptr %27, align 8, !tbaa !9
  %268 = getelementptr inbounds double, ptr %266, i64 %267
  %269 = load ptr, ptr %21, align 8, !tbaa !5
  %270 = load ptr, ptr %22, align 8, !tbaa !5
  %271 = load i64, ptr %43, align 8, !tbaa !9
  %272 = getelementptr inbounds double, ptr %270, i64 %271
  %273 = call i32 @dsbtrd_(ptr noundef %253, ptr noundef %254, ptr noundef %255, ptr noundef %256, ptr noundef %259, ptr noundef %260, ptr noundef %262, ptr noundef %265, ptr noundef %268, ptr noundef %269, ptr noundef %272, ptr noundef %37)
  %274 = load i64, ptr %39, align 8, !tbaa !9
  %275 = icmp ne i64 %274, 0
  br i1 %275, label %285, label %276

276:                                              ; preds = %248
  %277 = load ptr, ptr %15, align 8, !tbaa !5
  %278 = load ptr, ptr %19, align 8, !tbaa !5
  %279 = getelementptr inbounds double, ptr %278, i64 1
  %280 = load ptr, ptr %22, align 8, !tbaa !5
  %281 = load i64, ptr %31, align 8, !tbaa !9
  %282 = getelementptr inbounds double, ptr %280, i64 %281
  %283 = load ptr, ptr %23, align 8, !tbaa !5
  %284 = call i32 @dsterf_(ptr noundef %277, ptr noundef %279, ptr noundef %282, ptr noundef %283)
  br label %302

285:                                              ; preds = %248
  %286 = load ptr, ptr %13, align 8, !tbaa !5
  %287 = load ptr, ptr %15, align 8, !tbaa !5
  %288 = load ptr, ptr %19, align 8, !tbaa !5
  %289 = getelementptr inbounds double, ptr %288, i64 1
  %290 = load ptr, ptr %22, align 8, !tbaa !5
  %291 = load i64, ptr %31, align 8, !tbaa !9
  %292 = getelementptr inbounds double, ptr %290, i64 %291
  %293 = load ptr, ptr %20, align 8, !tbaa !5
  %294 = load i64, ptr %27, align 8, !tbaa !9
  %295 = getelementptr inbounds double, ptr %293, i64 %294
  %296 = load ptr, ptr %21, align 8, !tbaa !5
  %297 = load ptr, ptr %22, align 8, !tbaa !5
  %298 = load i64, ptr %43, align 8, !tbaa !9
  %299 = getelementptr inbounds double, ptr %297, i64 %298
  %300 = load ptr, ptr %23, align 8, !tbaa !5
  %301 = call i32 @dsteqr_(ptr noundef %286, ptr noundef %287, ptr noundef %289, ptr noundef %292, ptr noundef %295, ptr noundef %296, ptr noundef %299, ptr noundef %300)
  br label %302

302:                                              ; preds = %285, %276
  %303 = load i64, ptr %40, align 8, !tbaa !9
  %304 = icmp eq i64 %303, 1
  br i1 %304, label %305, label %322

305:                                              ; preds = %302
  %306 = load ptr, ptr %23, align 8, !tbaa !5
  %307 = load i64, ptr %306, align 8, !tbaa !9
  %308 = icmp eq i64 %307, 0
  br i1 %308, label %309, label %312

309:                                              ; preds = %305
  %310 = load ptr, ptr %15, align 8, !tbaa !5
  %311 = load i64, ptr %310, align 8, !tbaa !9
  store i64 %311, ptr %33, align 8, !tbaa !9
  br label %316

312:                                              ; preds = %305
  %313 = load ptr, ptr %23, align 8, !tbaa !5
  %314 = load i64, ptr %313, align 8, !tbaa !9
  %315 = sub nsw i64 %314, 1
  store i64 %315, ptr %33, align 8, !tbaa !9
  br label %316

316:                                              ; preds = %312, %309
  %317 = load double, ptr %36, align 8, !tbaa !11
  %318 = fdiv double 1.000000e+00, %317
  store double %318, ptr %29, align 8, !tbaa !11
  %319 = load ptr, ptr %19, align 8, !tbaa !5
  %320 = getelementptr inbounds double, ptr %319, i64 1
  %321 = call i32 @f2c_dscal(ptr noundef %33, ptr noundef %29, ptr noundef %320, ptr noundef @c__1)
  br label %322

322:                                              ; preds = %316, %302
  store i32 0, ptr %12, align 4
  store i32 1, ptr %45, align 4
  br label %323

323:                                              ; preds = %322, %177, %142, %133
  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 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  %324 = load i32, ptr %12, align 4
  ret i32 %324
}

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

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

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

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

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

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

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

declare i32 @f2c_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 = !{!"long", !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
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@c_b11 = external hidden global double, align 8
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i64, align 8

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

19:                                               ; preds = %11
  %20 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #4
  %.not133 = icmp eq i64 %20, 0
  br i1 %.not133, label %.thread.sink.split, label %21

21:                                               ; preds = %19, %11
  %.not134 = icmp eq i64 %18, 0
  br i1 %.not134, label %22, label %24

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

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

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

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

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

36:                                               ; preds = %32
  %.pr = load i64, ptr %10, align 8, !tbaa !5
  %.not137 = icmp eq i64 %.pr, 0
  br i1 %.not137, label %40, label %.thread

.thread.sink.split:                               ; preds = %32, %30, %27, %24, %22, %19
  %.sink = phi i64 [ -1, %19 ], [ -2, %22 ], [ -3, %24 ], [ -4, %27 ], [ -6, %30 ], [ -9, %32 ]
  store i64 %.sink, ptr %10, align 8, !tbaa !5
  br label %.thread

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

40:                                               ; preds = %36
  switch i64 %25, label %43 [
    i64 0, label %77
    i64 1, label %41
  ]

41:                                               ; preds = %40
  %spec.select.idx = select i1 %.not134, i64 %28, i64 0
  %spec.select = getelementptr inbounds double, ptr %4, i64 %spec.select.idx
  %storemerge140 = load double, ptr %spec.select, align 8, !tbaa !9
  store double %storemerge140, ptr %6, align 8, !tbaa !9
  br i1 %.not, label %42, label %77

42:                                               ; preds = %41
  store double 1.000000e+00, ptr %7, align 8, !tbaa !9
  br label %77

43:                                               ; preds = %40
  %44 = tail call double @dlamch_(ptr noundef nonnull @.str.5) #4
  %45 = tail call double @dlamch_(ptr noundef nonnull @.str.6) #4
  %46 = fdiv double %44, %45
  %47 = fdiv double 1.000000e+00, %46
  %48 = tail call double @sqrt(double noundef %46) #4
  %49 = tail call double @sqrt(double noundef %47) #4
  %50 = tail call double @dlansb_(ptr noundef nonnull @.str.7, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %9) #4
  %51 = fcmp ogt double %50, 0.000000e+00
  %52 = fcmp olt double %50, %48
  %or.cond141 = select i1 %51, i1 %52, i1 false
  br i1 %or.cond141, label %.sink.split, label %53

53:                                               ; preds = %43
  %54 = fcmp ogt double %50, %49
  br i1 %54, label %.sink.split, label %56

.sink.split:                                      ; preds = %53, %43
  %.pn = phi double [ %48, %43 ], [ %49, %53 ]
  %storemerge145 = fdiv double %.pn, %50
  store double %storemerge145, ptr %15, align 8, !tbaa !9
  %.str.9..str.8 = select i1 %.not134, ptr @.str.9, ptr @.str.8
  %55 = call i32 @dlascl_(ptr noundef nonnull %.str.9..str.8, ptr noundef nonnull %3, ptr noundef nonnull %3, ptr noundef nonnull @c_b11, ptr noundef nonnull %15, ptr noundef nonnull %2, ptr noundef nonnull %2, ptr noundef %4, ptr noundef nonnull %5, ptr noundef nonnull %10) #4
  br label %56

56:                                               ; preds = %.sink.split, %53
  %57 = phi i1 [ false, %53 ], [ true, %.sink.split ]
  %58 = load i64, ptr %2, align 8, !tbaa !5
  %59 = getelementptr double, ptr %9, i64 %58
  %60 = call i32 @dsbtrd_(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 %9, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %59, ptr noundef nonnull %16) #4
  br i1 %.not, label %63, label %61

61:                                               ; preds = %56
  %62 = call i32 @dsterf_(ptr noundef nonnull %2, ptr noundef %6, ptr noundef %9, ptr noundef nonnull %10) #4
  br label %65

63:                                               ; preds = %56
  %64 = call i32 @dsteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %6, ptr noundef %9, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %59, ptr noundef nonnull %10) #4
  br label %65

65:                                               ; preds = %63, %61
  br i1 %57, label %66, label %77

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

69:                                               ; preds = %66
  %70 = load i64, ptr %2, align 8, !tbaa !5
  br label %73

71:                                               ; preds = %66
  %72 = add nsw i64 %67, -1
  br label %73

73:                                               ; preds = %71, %69
  %storemerge = phi i64 [ %72, %71 ], [ %70, %69 ]
  store i64 %storemerge, ptr %14, align 8, !tbaa !5
  %74 = load double, ptr %15, align 8, !tbaa !9
  %75 = fdiv double 1.000000e+00, %74
  store double %75, ptr %13, align 8, !tbaa !9
  %76 = call i32 @f2c_dscal(ptr noundef nonnull %14, ptr noundef nonnull %13, ptr noundef %6, ptr noundef nonnull @c__1) #4
  br label %77

77:                                               ; preds = %65, %73, %41, %42, %40, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  ret i32 0
}

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

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

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

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

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

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

declare i32 @f2c_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 = !{!"long", !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,SROAPass,SimplifyCFGPass,TailCallElimPass