; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (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 i32, align 4

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

76:                                               ; preds = %11
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = call i32 @lsame_(ptr noundef %77, ptr noundef @.str.2)
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %82, label %80

80:                                               ; preds = %76
  %81 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -1, ptr %81, align 4, !tbaa !9
  br label %132

82:                                               ; preds = %76, %11
  %83 = load i32, ptr %36, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %91, label %85

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

89:                                               ; preds = %85
  %90 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -2, ptr %90, align 4, !tbaa !9
  br label %131

91:                                               ; preds = %85, %82
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = icmp slt i32 %93, 0
  br i1 %94, label %95, label %97

95:                                               ; preds = %91
  %96 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -3, ptr %96, align 4, !tbaa !9
  br label %130

97:                                               ; preds = %91
  %98 = load ptr, ptr %15, align 8, !tbaa !5
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = icmp slt i32 %99, 0
  br i1 %100, label %101, label %103

101:                                              ; preds = %97
  %102 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -4, ptr %102, align 4, !tbaa !9
  br label %129

103:                                              ; preds = %97
  %104 = load ptr, ptr %17, align 8, !tbaa !5
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  %109 = icmp slt i32 %105, %108
  br i1 %109, label %110, label %112

110:                                              ; preds = %103
  %111 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -6, ptr %111, align 4, !tbaa !9
  br label %128

112:                                              ; preds = %103
  %113 = load ptr, ptr %20, align 8, !tbaa !5
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = icmp slt i32 %114, 1
  br i1 %115, label %125, label %116

116:                                              ; preds = %112
  %117 = load i32, ptr %37, align 4, !tbaa !9
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %127

119:                                              ; preds = %116
  %120 = load ptr, ptr %20, align 8, !tbaa !5
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = load i32, ptr %122, align 4, !tbaa !9
  %124 = icmp slt i32 %121, %123
  br i1 %124, label %125, label %127

125:                                              ; preds = %119, %112
  %126 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -9, ptr %126, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %125, %119, %116
  br label %128

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

129:                                              ; preds = %128, %101
  br label %130

130:                                              ; preds = %129, %95
  br label %131

131:                                              ; preds = %130, %89
  br label %132

132:                                              ; preds = %131, %80
  %133 = load ptr, ptr %22, align 8, !tbaa !5
  %134 = load i32, ptr %133, align 4, !tbaa !9
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %141

136:                                              ; preds = %132
  %137 = load ptr, ptr %22, align 8, !tbaa !5
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = sub nsw i32 0, %138
  store i32 %139, ptr %27, align 4, !tbaa !9
  %140 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %27, i32 noundef 6)
  store i32 1, ptr %44, align 4
  br label %334

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

145:                                              ; preds = %141
  store i32 1, ptr %44, align 4
  br label %334

146:                                              ; preds = %141
  %147 = load ptr, ptr %14, align 8, !tbaa !5
  %148 = load i32, ptr %147, align 4, !tbaa !9
  %149 = icmp eq i32 %148, 1
  br i1 %149, label %150, label %184

150:                                              ; preds = %146
  %151 = load i32, ptr %36, align 4, !tbaa !9
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %162

153:                                              ; preds = %150
  %154 = load ptr, ptr %16, align 8, !tbaa !5
  %155 = load i32, ptr %23, align 4, !tbaa !9
  %156 = add nsw i32 %155, 1
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds double, ptr %154, i64 %157
  %159 = load double, ptr %158, align 8, !tbaa !11
  %160 = load ptr, ptr %18, align 8, !tbaa !5
  %161 = getelementptr inbounds double, ptr %160, i64 1
  store double %159, ptr %161, align 8, !tbaa !11
  br label %174

162:                                              ; preds = %150
  %163 = load ptr, ptr %16, align 8, !tbaa !5
  %164 = load ptr, ptr %15, align 8, !tbaa !5
  %165 = load i32, ptr %164, align 4, !tbaa !9
  %166 = add nsw i32 %165, 1
  %167 = load i32, ptr %23, align 4, !tbaa !9
  %168 = add nsw i32 %166, %167
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds double, ptr %163, i64 %169
  %171 = load double, ptr %170, align 8, !tbaa !11
  %172 = load ptr, ptr %18, align 8, !tbaa !5
  %173 = getelementptr inbounds double, ptr %172, i64 1
  store double %171, ptr %173, align 8, !tbaa !11
  br label %174

174:                                              ; preds = %162, %153
  %175 = load i32, ptr %37, align 4, !tbaa !9
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %177, label %183

177:                                              ; preds = %174
  %178 = load ptr, ptr %19, align 8, !tbaa !5
  %179 = load i32, ptr %25, align 4, !tbaa !9
  %180 = add nsw i32 %179, 1
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds double, ptr %178, i64 %181
  store double 1.000000e+00, ptr %182, align 8, !tbaa !11
  br label %183

183:                                              ; preds = %177, %174
  store i32 1, ptr %44, align 4
  br label %334

184:                                              ; preds = %146
  %185 = call double @dlamch_(ptr noundef @.str.5)
  store double %185, ptr %39, align 8, !tbaa !11
  %186 = call double @dlamch_(ptr noundef @.str.6)
  store double %186, ptr %43, align 8, !tbaa !11
  %187 = load double, ptr %39, align 8, !tbaa !11
  %188 = load double, ptr %43, align 8, !tbaa !11
  %189 = fdiv double %187, %188
  store double %189, ptr %42, align 8, !tbaa !11
  %190 = load double, ptr %42, align 8, !tbaa !11
  %191 = fdiv double 1.000000e+00, %190
  store double %191, ptr %40, align 8, !tbaa !11
  %192 = load double, ptr %42, align 8, !tbaa !11
  %193 = call double @sqrt(double noundef %192) #4
  store double %193, ptr %32, align 8, !tbaa !11
  %194 = load double, ptr %40, align 8, !tbaa !11
  %195 = call double @sqrt(double noundef %194) #4
  store double %195, ptr %33, align 8, !tbaa !11
  %196 = load ptr, ptr %13, align 8, !tbaa !5
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  %198 = load ptr, ptr %15, align 8, !tbaa !5
  %199 = load ptr, ptr %16, align 8, !tbaa !5
  %200 = load i32, ptr %24, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds double, ptr %199, i64 %201
  %203 = load ptr, ptr %17, align 8, !tbaa !5
  %204 = load ptr, ptr %21, align 8, !tbaa !5
  %205 = getelementptr inbounds double, ptr %204, i64 1
  %206 = call double @dlansb_(ptr noundef @.str.7, ptr noundef %196, ptr noundef %197, ptr noundef %198, ptr noundef %202, ptr noundef %203, ptr noundef %205)
  store double %206, ptr %30, align 8, !tbaa !11
  store i32 0, ptr %38, align 4, !tbaa !9
  %207 = load double, ptr %30, align 8, !tbaa !11
  %208 = fcmp ogt double %207, 0.000000e+00
  br i1 %208, label %209, label %217

209:                                              ; preds = %184
  %210 = load double, ptr %30, align 8, !tbaa !11
  %211 = load double, ptr %32, align 8, !tbaa !11
  %212 = fcmp olt double %210, %211
  br i1 %212, label %213, label %217

213:                                              ; preds = %209
  store i32 1, ptr %38, align 4, !tbaa !9
  %214 = load double, ptr %32, align 8, !tbaa !11
  %215 = load double, ptr %30, align 8, !tbaa !11
  %216 = fdiv double %214, %215
  store double %216, ptr %34, align 8, !tbaa !11
  br label %226

217:                                              ; preds = %209, %184
  %218 = load double, ptr %30, align 8, !tbaa !11
  %219 = load double, ptr %33, align 8, !tbaa !11
  %220 = fcmp ogt double %218, %219
  br i1 %220, label %221, label %225

221:                                              ; preds = %217
  store i32 1, ptr %38, align 4, !tbaa !9
  %222 = load double, ptr %33, align 8, !tbaa !11
  %223 = load double, ptr %30, align 8, !tbaa !11
  %224 = fdiv double %222, %223
  store double %224, ptr %34, align 8, !tbaa !11
  br label %225

225:                                              ; preds = %221, %217
  br label %226

226:                                              ; preds = %225, %213
  %227 = load i32, ptr %38, align 4, !tbaa !9
  %228 = icmp eq i32 %227, 1
  br i1 %228, label %229, label %255

229:                                              ; preds = %226
  %230 = load i32, ptr %36, align 4, !tbaa !9
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %232, label %243

232:                                              ; preds = %229
  %233 = load ptr, ptr %15, align 8, !tbaa !5
  %234 = load ptr, ptr %15, align 8, !tbaa !5
  %235 = load ptr, ptr %14, align 8, !tbaa !5
  %236 = load ptr, ptr %14, align 8, !tbaa !5
  %237 = load ptr, ptr %16, align 8, !tbaa !5
  %238 = load i32, ptr %24, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds double, ptr %237, i64 %239
  %241 = load ptr, ptr %17, align 8, !tbaa !5
  %242 = load ptr, ptr %22, align 8, !tbaa !5
  call void @dlascl_(ptr noundef @.str.8, ptr noundef %233, ptr noundef %234, ptr noundef @c_b11, ptr noundef %34, ptr noundef %235, ptr noundef %236, ptr noundef %240, ptr noundef %241, ptr noundef %242)
  br label %254

243:                                              ; preds = %229
  %244 = load ptr, ptr %15, align 8, !tbaa !5
  %245 = load ptr, ptr %15, align 8, !tbaa !5
  %246 = load ptr, ptr %14, align 8, !tbaa !5
  %247 = load ptr, ptr %14, align 8, !tbaa !5
  %248 = load ptr, ptr %16, align 8, !tbaa !5
  %249 = load i32, ptr %24, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds double, ptr %248, i64 %250
  %252 = load ptr, ptr %17, align 8, !tbaa !5
  %253 = load ptr, ptr %22, align 8, !tbaa !5
  call void @dlascl_(ptr noundef @.str.9, ptr noundef %244, ptr noundef %245, ptr noundef @c_b11, ptr noundef %34, ptr noundef %246, ptr noundef %247, ptr noundef %251, ptr noundef %252, ptr noundef %253)
  br label %254

254:                                              ; preds = %243, %232
  br label %255

255:                                              ; preds = %254, %226
  store i32 1, ptr %29, align 4, !tbaa !9
  %256 = load i32, ptr %29, align 4, !tbaa !9
  %257 = load ptr, ptr %14, align 8, !tbaa !5
  %258 = load i32, ptr %257, align 4, !tbaa !9
  %259 = add nsw i32 %256, %258
  store i32 %259, ptr %41, align 4, !tbaa !9
  %260 = load ptr, ptr %12, align 8, !tbaa !5
  %261 = load ptr, ptr %13, align 8, !tbaa !5
  %262 = load ptr, ptr %14, align 8, !tbaa !5
  %263 = load ptr, ptr %15, align 8, !tbaa !5
  %264 = load ptr, ptr %16, align 8, !tbaa !5
  %265 = load i32, ptr %24, align 4, !tbaa !9
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds double, ptr %264, i64 %266
  %268 = load ptr, ptr %17, align 8, !tbaa !5
  %269 = load ptr, ptr %18, align 8, !tbaa !5
  %270 = getelementptr inbounds double, ptr %269, i64 1
  %271 = load ptr, ptr %21, align 8, !tbaa !5
  %272 = load i32, ptr %29, align 4, !tbaa !9
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds double, ptr %271, i64 %273
  %275 = load ptr, ptr %19, align 8, !tbaa !5
  %276 = load i32, ptr %26, align 4, !tbaa !9
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds double, ptr %275, i64 %277
  %279 = load ptr, ptr %20, align 8, !tbaa !5
  %280 = load ptr, ptr %21, align 8, !tbaa !5
  %281 = load i32, ptr %41, align 4, !tbaa !9
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds double, ptr %280, i64 %282
  call void @dsbtrd_(ptr noundef %260, ptr noundef %261, ptr noundef %262, ptr noundef %263, ptr noundef %267, ptr noundef %268, ptr noundef %270, ptr noundef %274, ptr noundef %278, ptr noundef %279, ptr noundef %283, ptr noundef %35)
  %284 = load i32, ptr %37, align 4, !tbaa !9
  %285 = icmp ne i32 %284, 0
  br i1 %285, label %295, label %286

286:                                              ; preds = %255
  %287 = load ptr, ptr %14, align 8, !tbaa !5
  %288 = load ptr, ptr %18, align 8, !tbaa !5
  %289 = getelementptr inbounds double, ptr %288, i64 1
  %290 = load ptr, ptr %21, align 8, !tbaa !5
  %291 = load i32, ptr %29, align 4, !tbaa !9
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds double, ptr %290, i64 %292
  %294 = load ptr, ptr %22, align 8, !tbaa !5
  call void @dsterf_(ptr noundef %287, ptr noundef %289, ptr noundef %293, ptr noundef %294)
  br label %314

295:                                              ; preds = %255
  %296 = load ptr, ptr %12, align 8, !tbaa !5
  %297 = load ptr, ptr %14, align 8, !tbaa !5
  %298 = load ptr, ptr %18, align 8, !tbaa !5
  %299 = getelementptr inbounds double, ptr %298, i64 1
  %300 = load ptr, ptr %21, align 8, !tbaa !5
  %301 = load i32, ptr %29, align 4, !tbaa !9
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds double, ptr %300, i64 %302
  %304 = load ptr, ptr %19, align 8, !tbaa !5
  %305 = load i32, ptr %26, align 4, !tbaa !9
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds double, ptr %304, i64 %306
  %308 = load ptr, ptr %20, align 8, !tbaa !5
  %309 = load ptr, ptr %21, align 8, !tbaa !5
  %310 = load i32, ptr %41, align 4, !tbaa !9
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds double, ptr %309, i64 %311
  %313 = load ptr, ptr %22, align 8, !tbaa !5
  call void @dsteqr_(ptr noundef %296, ptr noundef %297, ptr noundef %299, ptr noundef %303, ptr noundef %307, ptr noundef %308, ptr noundef %312, ptr noundef %313)
  br label %314

314:                                              ; preds = %295, %286
  %315 = load i32, ptr %38, align 4, !tbaa !9
  %316 = icmp eq i32 %315, 1
  br i1 %316, label %317, label %333

317:                                              ; preds = %314
  %318 = load ptr, ptr %22, align 8, !tbaa !5
  %319 = load i32, ptr %318, align 4, !tbaa !9
  %320 = icmp eq i32 %319, 0
  br i1 %320, label %321, label %324

321:                                              ; preds = %317
  %322 = load ptr, ptr %14, align 8, !tbaa !5
  %323 = load i32, ptr %322, align 4, !tbaa !9
  store i32 %323, ptr %31, align 4, !tbaa !9
  br label %328

324:                                              ; preds = %317
  %325 = load ptr, ptr %22, align 8, !tbaa !5
  %326 = load i32, ptr %325, align 4, !tbaa !9
  %327 = sub nsw i32 %326, 1
  store i32 %327, ptr %31, align 4, !tbaa !9
  br label %328

328:                                              ; preds = %324, %321
  %329 = load double, ptr %34, align 8, !tbaa !11
  %330 = fdiv double 1.000000e+00, %329
  store double %330, ptr %28, align 8, !tbaa !11
  %331 = load ptr, ptr %18, align 8, !tbaa !5
  %332 = getelementptr inbounds double, ptr %331, i64 1
  call void @dscal_(ptr noundef %31, ptr noundef %28, ptr noundef %332, ptr noundef @c__1)
  br label %333

333:                                              ; preds = %328, %314
  store i32 1, ptr %44, align 4
  br label %334

334:                                              ; preds = %333, %183, %145, %136
  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 4, 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 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 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 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 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  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 @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 @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 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
@.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 i32, align 4

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

23:                                               ; preds = %11
  %24 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #4
  %.not132 = icmp eq i32 %24, 0
  br i1 %.not132, label %.thread.sink.split, label %25

25:                                               ; preds = %23, %11
  %.not133 = icmp eq i32 %22, 0
  br i1 %.not133, label %26, label %28

26:                                               ; preds = %25
  %27 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #4
  %.not134 = icmp eq i32 %27, 0
  br i1 %.not134, label %.thread.sink.split, label %28

28:                                               ; preds = %26, %25
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = icmp slt i32 %29, 0
  br i1 %30, label %.thread.sink.split, label %31

31:                                               ; preds = %28
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = icmp slt i32 %32, 0
  br i1 %33, label %.thread.sink.split, label %34

34:                                               ; preds = %31
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %.not135 = icmp sgt i32 %35, %32
  br i1 %.not135, label %36, label %.thread.sink.split

36:                                               ; preds = %34
  %37 = load i32, ptr %8, align 4, !tbaa !5
  %38 = icmp slt i32 %37, 1
  %39 = icmp ult i32 %37, %29
  %or.cond = and i1 %.not, %39
  %or.cond145 = or i1 %38, %or.cond
  br i1 %or.cond145, label %.thread.sink.split, label %40

40:                                               ; preds = %36
  %.pr = load i32, ptr %10, align 4, !tbaa !5
  %.not136 = icmp eq i32 %.pr, 0
  br i1 %.not136, label %44, label %.thread

.thread.sink.split:                               ; preds = %36, %34, %31, %28, %26, %23
  %.sink = phi i32 [ -1, %23 ], [ -2, %26 ], [ -3, %28 ], [ -4, %31 ], [ -6, %34 ], [ -9, %36 ]
  store i32 %.sink, ptr %10, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %40
  %41 = phi i32 [ %.pr, %40 ], [ %.sink, %.thread.sink.split ]
  %42 = sub nsw i32 0, %41
  store i32 %42, ptr %12, align 4, !tbaa !5
  %43 = call i32 @xerbla_(ptr noundef nonnull @.str.4, ptr noundef nonnull %12, i32 noundef 6) #4
  br label %82

44:                                               ; preds = %40
  switch i32 %29, label %51 [
    i32 0, label %82
    i32 1, label %45
  ]

45:                                               ; preds = %44
  %46 = add i32 %17, 1
  %47 = add i32 %46, %32
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds double, ptr %19, i64 %48
  %storemerge139.in = select i1 %.not133, ptr %49, ptr %4
  %storemerge139 = load double, ptr %storemerge139.in, align 8, !tbaa !9
  store double %storemerge139, ptr %6, align 8, !tbaa !9
  br i1 %.not, label %50, label %82

50:                                               ; preds = %45
  store double 1.000000e+00, ptr %7, align 8, !tbaa !9
  br label %82

51:                                               ; preds = %44
  %52 = tail call double @dlamch_(ptr noundef nonnull @.str.5) #4
  %53 = tail call double @dlamch_(ptr noundef nonnull @.str.6) #4
  %54 = fdiv double %52, %53
  %55 = fdiv double 1.000000e+00, %54
  %56 = tail call double @sqrt(double noundef %54) #4
  %57 = tail call double @sqrt(double noundef %55) #4
  %58 = 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
  %59 = fcmp ogt double %58, 0.000000e+00
  %60 = fcmp olt double %58, %56
  %or.cond140 = select i1 %59, i1 %60, i1 false
  br i1 %or.cond140, label %.sink.split, label %61

61:                                               ; preds = %51
  %62 = fcmp ogt double %58, %57
  br i1 %62, label %.sink.split, label %63

.sink.split:                                      ; preds = %61, %51
  %.pn = phi double [ %56, %51 ], [ %57, %61 ]
  %storemerge144 = fdiv double %.pn, %58
  store double %storemerge144, ptr %15, align 8, !tbaa !9
  %.str.9..str.8 = select i1 %.not133, ptr @.str.9, ptr @.str.8
  call void @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 %63

63:                                               ; preds = %.sink.split, %61
  %64 = phi i1 [ false, %61 ], [ true, %.sink.split ]
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr double, ptr %20, i64 %66
  %68 = getelementptr i8, ptr %67, i64 8
  call void @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 %68, ptr noundef nonnull %16) #4
  br i1 %.not, label %70, label %69

69:                                               ; preds = %63
  call void @dsterf_(ptr noundef nonnull %2, ptr noundef %6, ptr noundef %9, ptr noundef nonnull %10) #4
  br label %71

70:                                               ; preds = %63
  call void @dsteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %6, ptr noundef %9, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %68, ptr noundef nonnull %10) #4
  br label %71

71:                                               ; preds = %70, %69
  br i1 %64, label %72, label %82

72:                                               ; preds = %71
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %75, label %77

75:                                               ; preds = %72
  %76 = load i32, ptr %2, align 4, !tbaa !5
  br label %79

77:                                               ; preds = %72
  %78 = add nsw i32 %73, -1
  br label %79

79:                                               ; preds = %77, %75
  %storemerge = phi i32 [ %78, %77 ], [ %76, %75 ]
  store i32 %storemerge, ptr %14, align 4, !tbaa !5
  %80 = load double, ptr %15, align 8, !tbaa !9
  %81 = fdiv double 1.000000e+00, %80
  store double %81, ptr %13, align 8, !tbaa !9
  call void @dscal_(ptr noundef nonnull %14, ptr noundef nonnull %13, ptr noundef %6, ptr noundef nonnull @c__1) #4
  br label %82

82:                                               ; preds = %71, %79, %45, %50, %44, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #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 @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 @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 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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass