; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (dsygv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@c_n1 = external hidden global i32, align 4
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@c_b16 = external hidden global double, align 8

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

76:                                               ; preds = %12
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = icmp sgt i32 %78, 3
  br i1 %79, label %80, label %82

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

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

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

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

91:                                               ; preds = %85, %82
  %92 = load i32, ptr %33, align 4, !tbaa !9
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %100, label %94

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

98:                                               ; preds = %94
  %99 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -3, ptr %99, align 4, !tbaa !9
  br label %139

100:                                              ; preds = %94, %91
  %101 = load ptr, ptr %16, align 8, !tbaa !5
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = icmp slt i32 %102, 0
  br i1 %103, label %104, label %106

104:                                              ; preds = %100
  %105 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -4, ptr %105, align 4, !tbaa !9
  br label %138

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

112:                                              ; preds = %106
  br label %116

113:                                              ; preds = %106
  %114 = load ptr, ptr %16, align 8, !tbaa !5
  %115 = load i32, ptr %114, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %113, %112
  %117 = phi i32 [ 1, %112 ], [ %115, %113 ]
  %118 = icmp slt i32 %108, %117
  br i1 %118, label %119, label %121

119:                                              ; preds = %116
  %120 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -6, ptr %120, align 4, !tbaa !9
  br label %137

121:                                              ; preds = %116
  %122 = load ptr, ptr %20, align 8, !tbaa !5
  %123 = load i32, ptr %122, align 4, !tbaa !9
  %124 = load ptr, ptr %16, align 8, !tbaa !5
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = icmp sge i32 1, %125
  br i1 %126, label %127, label %128

127:                                              ; preds = %121
  br label %131

128:                                              ; preds = %121
  %129 = load ptr, ptr %16, align 8, !tbaa !5
  %130 = load i32, ptr %129, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %128, %127
  %132 = phi i32 [ 1, %127 ], [ %130, %128 ]
  %133 = icmp slt i32 %123, %132
  br i1 %133, label %134, label %136

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

136:                                              ; preds = %134, %131
  br label %137

137:                                              ; preds = %136, %119
  br label %138

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

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

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

141:                                              ; preds = %140, %80
  %142 = load ptr, ptr %24, 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 %191

145:                                              ; preds = %141
  store i32 1, ptr %29, align 4, !tbaa !9
  %146 = load ptr, ptr %16, align 8, !tbaa !5
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = mul nsw i32 %147, 3
  %149 = sub nsw i32 %148, 1
  store i32 %149, ptr %30, align 4, !tbaa !9
  %150 = load i32, ptr %29, align 4, !tbaa !9
  %151 = load i32, ptr %30, align 4, !tbaa !9
  %152 = icmp sge i32 %150, %151
  br i1 %152, label %153, label %155

153:                                              ; preds = %145
  %154 = load i32, ptr %29, align 4, !tbaa !9
  br label %157

155:                                              ; preds = %145
  %156 = load i32, ptr %30, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %155, %153
  %158 = phi i32 [ %154, %153 ], [ %156, %155 ]
  store i32 %158, ptr %36, align 4, !tbaa !9
  %159 = load ptr, ptr %15, align 8, !tbaa !5
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  %161 = call i32 @ilaenv_(ptr noundef @c__1, ptr noundef @.str.4, ptr noundef %159, ptr noundef %160, ptr noundef @c_n1, ptr noundef @c_n1, ptr noundef @c_n1, i32 noundef 6, i32 noundef 1)
  store i32 %161, ptr %35, align 4, !tbaa !9
  %162 = load i32, ptr %36, align 4, !tbaa !9
  store i32 %162, ptr %29, align 4, !tbaa !9
  %163 = load i32, ptr %35, align 4, !tbaa !9
  %164 = add nsw i32 %163, 2
  %165 = load ptr, ptr %16, align 8, !tbaa !5
  %166 = load i32, ptr %165, align 4, !tbaa !9
  %167 = mul nsw i32 %164, %166
  store i32 %167, ptr %30, align 4, !tbaa !9
  %168 = load i32, ptr %29, align 4, !tbaa !9
  %169 = load i32, ptr %30, align 4, !tbaa !9
  %170 = icmp sge i32 %168, %169
  br i1 %170, label %171, label %173

171:                                              ; preds = %157
  %172 = load i32, ptr %29, align 4, !tbaa !9
  br label %175

173:                                              ; preds = %157
  %174 = load i32, ptr %30, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %173, %171
  %176 = phi i32 [ %172, %171 ], [ %174, %173 ]
  store i32 %176, ptr %37, align 4, !tbaa !9
  %177 = load i32, ptr %37, align 4, !tbaa !9
  %178 = sitofp i32 %177 to double
  %179 = load ptr, ptr %22, align 8, !tbaa !5
  %180 = getelementptr inbounds double, ptr %179, i64 1
  store double %178, ptr %180, align 8, !tbaa !11
  %181 = load ptr, ptr %23, align 8, !tbaa !5
  %182 = load i32, ptr %181, align 4, !tbaa !9
  %183 = load i32, ptr %36, align 4, !tbaa !9
  %184 = icmp slt i32 %182, %183
  br i1 %184, label %185, label %190

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

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

190:                                              ; preds = %188, %185, %175
  br label %191

191:                                              ; preds = %190, %141
  %192 = load ptr, ptr %24, align 8, !tbaa !5
  %193 = load i32, ptr %192, align 4, !tbaa !9
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %195, label %200

195:                                              ; preds = %191
  %196 = load ptr, ptr %24, align 8, !tbaa !5
  %197 = load i32, ptr %196, align 4, !tbaa !9
  %198 = sub nsw i32 0, %197
  store i32 %198, ptr %29, align 4, !tbaa !9
  %199 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %29, i32 noundef 6)
  store i32 1, ptr %39, align 4
  br label %332

200:                                              ; preds = %191
  %201 = load i32, ptr %38, align 4, !tbaa !9
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %204

203:                                              ; preds = %200
  store i32 1, ptr %39, align 4
  br label %332

204:                                              ; preds = %200
  br label %205

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

209:                                              ; preds = %205
  store i32 1, ptr %39, align 4
  br label %332

210:                                              ; preds = %205
  %211 = load ptr, ptr %15, align 8, !tbaa !5
  %212 = load ptr, ptr %16, align 8, !tbaa !5
  %213 = load ptr, ptr %19, align 8, !tbaa !5
  %214 = load i32, ptr %28, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds double, ptr %213, i64 %215
  %217 = load ptr, ptr %20, align 8, !tbaa !5
  %218 = load ptr, ptr %24, align 8, !tbaa !5
  %219 = call i32 @dpotrf_(ptr noundef %211, ptr noundef %212, ptr noundef %216, ptr noundef %217, ptr noundef %218)
  %220 = load ptr, ptr %24, align 8, !tbaa !5
  %221 = load i32, ptr %220, align 4, !tbaa !9
  %222 = icmp ne i32 %221, 0
  br i1 %222, label %223, label %230

223:                                              ; preds = %210
  %224 = load ptr, ptr %16, align 8, !tbaa !5
  %225 = load i32, ptr %224, align 4, !tbaa !9
  %226 = load ptr, ptr %24, align 8, !tbaa !5
  %227 = load i32, ptr %226, align 4, !tbaa !9
  %228 = add nsw i32 %225, %227
  %229 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 %228, ptr %229, align 4, !tbaa !9
  store i32 1, ptr %39, align 4
  br label %332

230:                                              ; preds = %210
  %231 = load ptr, ptr %13, align 8, !tbaa !5
  %232 = load ptr, ptr %15, align 8, !tbaa !5
  %233 = load ptr, ptr %16, align 8, !tbaa !5
  %234 = load ptr, ptr %17, align 8, !tbaa !5
  %235 = load i32, ptr %26, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds double, ptr %234, i64 %236
  %238 = load ptr, ptr %18, align 8, !tbaa !5
  %239 = load ptr, ptr %19, align 8, !tbaa !5
  %240 = load i32, ptr %28, align 4, !tbaa !9
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds double, ptr %239, i64 %241
  %243 = load ptr, ptr %20, align 8, !tbaa !5
  %244 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dsygst_(ptr noundef %231, ptr noundef %232, ptr noundef %233, ptr noundef %237, ptr noundef %238, ptr noundef %242, ptr noundef %243, ptr noundef %244)
  %245 = load ptr, ptr %14, align 8, !tbaa !5
  %246 = load ptr, ptr %15, align 8, !tbaa !5
  %247 = load ptr, ptr %16, align 8, !tbaa !5
  %248 = load ptr, ptr %17, align 8, !tbaa !5
  %249 = load i32, ptr %26, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds double, ptr %248, i64 %250
  %252 = load ptr, ptr %18, align 8, !tbaa !5
  %253 = load ptr, ptr %21, align 8, !tbaa !5
  %254 = getelementptr inbounds double, ptr %253, i64 1
  %255 = load ptr, ptr %22, align 8, !tbaa !5
  %256 = getelementptr inbounds double, ptr %255, i64 1
  %257 = load ptr, ptr %23, align 8, !tbaa !5
  %258 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dsyev_(ptr noundef %245, ptr noundef %246, ptr noundef %247, ptr noundef %251, ptr noundef %252, ptr noundef %254, ptr noundef %256, ptr noundef %257, ptr noundef %258)
  %259 = load i32, ptr %34, align 4, !tbaa !9
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %261, label %327

261:                                              ; preds = %230
  %262 = load ptr, ptr %16, align 8, !tbaa !5
  %263 = load i32, ptr %262, align 4, !tbaa !9
  store i32 %263, ptr %31, align 4, !tbaa !9
  %264 = load ptr, ptr %24, align 8, !tbaa !5
  %265 = load i32, ptr %264, align 4, !tbaa !9
  %266 = icmp sgt i32 %265, 0
  br i1 %266, label %267, label %271

267:                                              ; preds = %261
  %268 = load ptr, ptr %24, align 8, !tbaa !5
  %269 = load i32, ptr %268, align 4, !tbaa !9
  %270 = sub nsw i32 %269, 1
  store i32 %270, ptr %31, align 4, !tbaa !9
  br label %271

271:                                              ; preds = %267, %261
  %272 = load ptr, ptr %13, align 8, !tbaa !5
  %273 = load i32, ptr %272, align 4, !tbaa !9
  %274 = icmp eq i32 %273, 1
  br i1 %274, label %279, label %275

275:                                              ; preds = %271
  %276 = load ptr, ptr %13, align 8, !tbaa !5
  %277 = load i32, ptr %276, align 4, !tbaa !9
  %278 = icmp eq i32 %277, 2
  br i1 %278, label %279, label %300

279:                                              ; preds = %275, %271
  %280 = load i32, ptr %33, align 4, !tbaa !9
  %281 = icmp ne i32 %280, 0
  br i1 %281, label %282, label %284

282:                                              ; preds = %279
  %283 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 78, ptr %283, align 1, !tbaa !13
  br label %286

284:                                              ; preds = %279
  %285 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 84, ptr %285, align 1, !tbaa !13
  br label %286

286:                                              ; preds = %284, %282
  %287 = load ptr, ptr %15, align 8, !tbaa !5
  %288 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %289 = load ptr, ptr %16, align 8, !tbaa !5
  %290 = load ptr, ptr %19, align 8, !tbaa !5
  %291 = load i32, ptr %28, align 4, !tbaa !9
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds double, ptr %290, i64 %292
  %294 = load ptr, ptr %20, align 8, !tbaa !5
  %295 = load ptr, ptr %17, align 8, !tbaa !5
  %296 = load i32, ptr %26, align 4, !tbaa !9
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds double, ptr %295, i64 %297
  %299 = load ptr, ptr %18, align 8, !tbaa !5
  call void @dtrsm_(ptr noundef @.str.6, ptr noundef %287, ptr noundef %288, ptr noundef @.str.7, ptr noundef %289, ptr noundef %31, ptr noundef @c_b16, ptr noundef %293, ptr noundef %294, ptr noundef %298, ptr noundef %299)
  br label %326

300:                                              ; preds = %275
  %301 = load ptr, ptr %13, align 8, !tbaa !5
  %302 = load i32, ptr %301, align 4, !tbaa !9
  %303 = icmp eq i32 %302, 3
  br i1 %303, label %304, label %325

304:                                              ; preds = %300
  %305 = load i32, ptr %33, align 4, !tbaa !9
  %306 = icmp ne i32 %305, 0
  br i1 %306, label %307, label %309

307:                                              ; preds = %304
  %308 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 84, ptr %308, align 1, !tbaa !13
  br label %311

309:                                              ; preds = %304
  %310 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 78, ptr %310, align 1, !tbaa !13
  br label %311

311:                                              ; preds = %309, %307
  %312 = load ptr, ptr %15, align 8, !tbaa !5
  %313 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %314 = load ptr, ptr %16, align 8, !tbaa !5
  %315 = load ptr, ptr %19, align 8, !tbaa !5
  %316 = load i32, ptr %28, align 4, !tbaa !9
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds double, ptr %315, i64 %317
  %319 = load ptr, ptr %20, align 8, !tbaa !5
  %320 = load ptr, ptr %17, align 8, !tbaa !5
  %321 = load i32, ptr %26, align 4, !tbaa !9
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds double, ptr %320, i64 %322
  %324 = load ptr, ptr %18, align 8, !tbaa !5
  call void @dtrmm_(ptr noundef @.str.6, ptr noundef %312, ptr noundef %313, ptr noundef @.str.7, ptr noundef %314, ptr noundef %31, ptr noundef @c_b16, ptr noundef %318, ptr noundef %319, ptr noundef %323, ptr noundef %324)
  br label %325

325:                                              ; preds = %311, %300
  br label %326

326:                                              ; preds = %325, %286
  br label %327

327:                                              ; preds = %326, %230
  %328 = load i32, ptr %37, align 4, !tbaa !9
  %329 = sitofp i32 %328 to double
  %330 = load ptr, ptr %22, align 8, !tbaa !5
  %331 = getelementptr inbounds double, ptr %330, i64 1
  store double %329, ptr %331, align 8, !tbaa !11
  store i32 1, ptr %39, align 4
  br label %332

332:                                              ; preds = %327, %223, %209, %203, %195
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  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 @ilaenv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

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

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

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

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

declare void @dtrsm_(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 @dtrmm_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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 }

!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}
!13 = !{!7, !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@c_n1 = external hidden global i32, align 4
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@c_b16 = external hidden global double, align 8

; Function Attrs: nounwind uwtable
define dso_local void @dsygv_(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) local_unnamed_addr #0 {
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #4
  %16 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #4
  %17 = tail call i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.1) #4
  %18 = load i32, ptr %10, align 4, !tbaa !5
  %19 = icmp eq i32 %18, -1
  store i32 0, ptr %11, align 4, !tbaa !5
  %20 = load i32, ptr %0, align 4, !tbaa !5
  %21 = add i32 %20, -4
  %or.cond128 = icmp ult i32 %21, -3
  br i1 %or.cond128, label %.thread135.sink.split, label %22

22:                                               ; preds = %12
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %23, label %25

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

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

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

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

31:                                               ; preds = %28
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %29, i32 1)
  %33 = icmp slt i32 %32, %spec.select
  br i1 %33, label %.thread135.sink.split, label %34

34:                                               ; preds = %31
  %35 = load i32, ptr %7, align 4, !tbaa !5
  %36 = icmp slt i32 %35, %spec.select
  br i1 %36, label %.thread135.sink.split, label %37

37:                                               ; preds = %34
  %.pr = load i32, ptr %11, align 4, !tbaa !5
  %38 = icmp eq i32 %.pr, 0
  br i1 %38, label %39, label %.thread135

39:                                               ; preds = %37
  %40 = mul nuw nsw i32 %29, 3
  %41 = add nsw i32 %40, -1
  %42 = icmp eq i32 %29, 0
  %43 = select i1 %42, i32 1, i32 %41
  %44 = tail call i32 @ilaenv_(ptr noundef nonnull @c__1, ptr noundef nonnull @.str.4, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1, i32 noundef 6, i32 noundef 1) #4
  %45 = add nsw i32 %44, 2
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = mul nsw i32 %46, %45
  %48 = tail call i32 @llvm.smax.i32(i32 %43, i32 %47)
  %49 = sitofp i32 %48 to double
  store double %49, ptr %9, align 8, !tbaa !9
  %50 = load i32, ptr %10, align 4, !tbaa !5
  %51 = icmp sge i32 %50, %43
  %or.cond = select i1 %51, i1 true, i1 %19
  br i1 %or.cond, label %.thread, label %.thread135.sink.split

.thread:                                          ; preds = %39
  %.pr132.pr = load i32, ptr %11, align 4, !tbaa !5
  %.not122 = icmp eq i32 %.pr132.pr, 0
  br i1 %.not122, label %55, label %.thread135

.thread135.sink.split:                            ; preds = %39, %34, %31, %28, %26, %23, %12
  %.sink = phi i32 [ -1, %12 ], [ -2, %23 ], [ -3, %26 ], [ -4, %28 ], [ -6, %31 ], [ -8, %34 ], [ -11, %39 ]
  store i32 %.sink, ptr %11, align 4, !tbaa !5
  br label %.thread135

.thread135:                                       ; preds = %.thread135.sink.split, %37, %.thread
  %52 = phi i32 [ %.pr132.pr, %.thread ], [ %.pr, %37 ], [ %.sink, %.thread135.sink.split ]
  %53 = sub nsw i32 0, %52
  store i32 %53, ptr %13, align 4, !tbaa !5
  %54 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %13, i32 noundef 6) #4
  br label %75

55:                                               ; preds = %.thread
  %56 = icmp eq i32 %46, 0
  %or.cond141 = select i1 %19, i1 true, i1 %56
  br i1 %or.cond141, label %75, label %57

57:                                               ; preds = %55
  %58 = tail call i32 @dpotrf_(ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %7, ptr noundef nonnull %11) #4
  %59 = load i32, ptr %11, align 4, !tbaa !5
  %.not123 = icmp eq i32 %59, 0
  br i1 %.not123, label %63, label %60

60:                                               ; preds = %57
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = add nsw i32 %61, %59
  store i32 %62, ptr %11, align 4, !tbaa !5
  br label %75

63:                                               ; preds = %57
  tail call void @dsygst_(ptr noundef nonnull %0, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %6, ptr noundef nonnull %7, ptr noundef nonnull %11) #4
  tail call void @dsyev_(ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11) #4
  br i1 %.not, label %74, label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %65, ptr %14, align 4, !tbaa !5
  %66 = load i32, ptr %11, align 4, !tbaa !5
  %67 = icmp sgt i32 %66, 0
  br i1 %67, label %68, label %70

68:                                               ; preds = %64
  %69 = add nsw i32 %66, -1
  store i32 %69, ptr %14, align 4, !tbaa !5
  br label %70

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

72:                                               ; preds = %70, %70
  %. = select i1 %.not119, i8 84, i8 78
  store i8 %., ptr %15, align 1, !tbaa !11
  call void @dtrsm_(ptr noundef nonnull @.str.6, ptr noundef %2, ptr noundef nonnull %15, ptr noundef nonnull @.str.7, ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef nonnull @c_b16, ptr noundef %6, ptr noundef nonnull %7, ptr noundef %4, ptr noundef nonnull %5) #4
  br label %74

73:                                               ; preds = %70
  %.130 = select i1 %.not119, i8 78, i8 84
  store i8 %.130, ptr %15, align 1, !tbaa !11
  call void @dtrmm_(ptr noundef nonnull @.str.6, ptr noundef %2, ptr noundef nonnull %15, ptr noundef nonnull @.str.7, ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef nonnull @c_b16, ptr noundef %6, ptr noundef nonnull %7, ptr noundef %4, ptr noundef nonnull %5) #4
  br label %74

74:                                               ; preds = %70, %72, %73, %63
  store double %49, ptr %9, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %55, %74, %60, %.thread135
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  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 @ilaenv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

declare void @dsygst_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @dsyev_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

!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}
!11 = !{!7, !7, i64 0}


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