; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (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 i64, align 8
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@c_n1 = external hidden global i64, align 8
@.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 i32 @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 i32, align 4
  %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 ptr, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca [1 x i8], align 1
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = alloca i32, align 4
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %2, ptr %16, align 8, !tbaa !5
  store ptr %3, ptr %17, align 8, !tbaa !5
  store ptr %4, ptr %18, align 8, !tbaa !5
  store ptr %5, ptr %19, align 8, !tbaa !5
  store ptr %6, ptr %20, align 8, !tbaa !5
  store ptr %7, ptr %21, align 8, !tbaa !5
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store ptr %11, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #3
  %41 = load ptr, ptr %19, align 8, !tbaa !5
  %42 = load i64, ptr %41, align 8, !tbaa !9
  store i64 %42, ptr %26, align 8, !tbaa !9
  %43 = load i64, ptr %26, align 8, !tbaa !9
  %44 = add nsw i64 1, %43
  store i64 %44, ptr %27, align 8, !tbaa !9
  %45 = load i64, ptr %27, align 8, !tbaa !9
  %46 = load ptr, ptr %18, align 8, !tbaa !5
  %47 = sub i64 0, %45
  %48 = getelementptr inbounds double, ptr %46, i64 %47
  store ptr %48, ptr %18, align 8, !tbaa !5
  %49 = load ptr, ptr %21, align 8, !tbaa !5
  %50 = load i64, ptr %49, align 8, !tbaa !9
  store i64 %50, ptr %28, align 8, !tbaa !9
  %51 = load i64, ptr %28, align 8, !tbaa !9
  %52 = add nsw i64 1, %51
  store i64 %52, ptr %29, align 8, !tbaa !9
  %53 = load i64, ptr %29, align 8, !tbaa !9
  %54 = load ptr, ptr %20, align 8, !tbaa !5
  %55 = sub i64 0, %53
  %56 = getelementptr inbounds double, ptr %54, i64 %55
  store ptr %56, ptr %20, align 8, !tbaa !5
  %57 = load ptr, ptr %22, align 8, !tbaa !5
  %58 = getelementptr inbounds double, ptr %57, i32 -1
  store ptr %58, ptr %22, align 8, !tbaa !5
  %59 = load ptr, ptr %23, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %59, i32 -1
  store ptr %60, ptr %23, align 8, !tbaa !5
  %61 = load ptr, ptr %15, align 8, !tbaa !5
  %62 = call i64 @lsame_(ptr noundef %61, ptr noundef @.str)
  store i64 %62, ptr %36, align 8, !tbaa !9
  %63 = load ptr, ptr %16, align 8, !tbaa !5
  %64 = call i64 @lsame_(ptr noundef %63, ptr noundef @.str.1)
  store i64 %64, ptr %35, align 8, !tbaa !9
  %65 = load ptr, ptr %24, align 8, !tbaa !5
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = icmp eq i64 %66, -1
  %68 = zext i1 %67 to i32
  %69 = sext i32 %68 to i64
  store i64 %69, ptr %39, align 8, !tbaa !9
  %70 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 0, ptr %70, align 8, !tbaa !9
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = load i64, ptr %71, align 8, !tbaa !9
  %73 = icmp slt i64 %72, 1
  br i1 %73, label %78, label %74

74:                                               ; preds = %12
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = load i64, ptr %75, align 8, !tbaa !9
  %77 = icmp sgt i64 %76, 3
  br i1 %77, label %78, label %80

78:                                               ; preds = %74, %12
  %79 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -1, ptr %79, align 8, !tbaa !9
  br label %139

80:                                               ; preds = %74
  %81 = load i64, ptr %36, align 8, !tbaa !9
  %82 = icmp ne i64 %81, 0
  br i1 %82, label %89, label %83

83:                                               ; preds = %80
  %84 = load ptr, ptr %15, align 8, !tbaa !5
  %85 = call i64 @lsame_(ptr noundef %84, ptr noundef @.str.2)
  %86 = icmp ne i64 %85, 0
  br i1 %86, label %89, label %87

87:                                               ; preds = %83
  %88 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -2, ptr %88, align 8, !tbaa !9
  br label %138

89:                                               ; preds = %83, %80
  %90 = load i64, ptr %35, align 8, !tbaa !9
  %91 = icmp ne i64 %90, 0
  br i1 %91, label %98, label %92

92:                                               ; preds = %89
  %93 = load ptr, ptr %16, align 8, !tbaa !5
  %94 = call i64 @lsame_(ptr noundef %93, ptr noundef @.str.3)
  %95 = icmp ne i64 %94, 0
  br i1 %95, label %98, label %96

96:                                               ; preds = %92
  %97 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -3, ptr %97, align 8, !tbaa !9
  br label %137

98:                                               ; preds = %92, %89
  %99 = load ptr, ptr %17, align 8, !tbaa !5
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = icmp slt i64 %100, 0
  br i1 %101, label %102, label %104

102:                                              ; preds = %98
  %103 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -4, ptr %103, align 8, !tbaa !9
  br label %136

104:                                              ; preds = %98
  %105 = load ptr, ptr %19, align 8, !tbaa !5
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  %108 = load i64, ptr %107, align 8, !tbaa !9
  %109 = icmp sge i64 1, %108
  br i1 %109, label %110, label %111

110:                                              ; preds = %104
  br label %114

111:                                              ; preds = %104
  %112 = load ptr, ptr %17, align 8, !tbaa !5
  %113 = load i64, ptr %112, align 8, !tbaa !9
  br label %114

114:                                              ; preds = %111, %110
  %115 = phi i64 [ 1, %110 ], [ %113, %111 ]
  %116 = icmp slt i64 %106, %115
  br i1 %116, label %117, label %119

117:                                              ; preds = %114
  %118 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -6, ptr %118, align 8, !tbaa !9
  br label %135

119:                                              ; preds = %114
  %120 = load ptr, ptr %21, align 8, !tbaa !5
  %121 = load i64, ptr %120, align 8, !tbaa !9
  %122 = load ptr, ptr %17, align 8, !tbaa !5
  %123 = load i64, ptr %122, align 8, !tbaa !9
  %124 = icmp sge i64 1, %123
  br i1 %124, label %125, label %126

125:                                              ; preds = %119
  br label %129

126:                                              ; preds = %119
  %127 = load ptr, ptr %17, align 8, !tbaa !5
  %128 = load i64, ptr %127, align 8, !tbaa !9
  br label %129

129:                                              ; preds = %126, %125
  %130 = phi i64 [ 1, %125 ], [ %128, %126 ]
  %131 = icmp slt i64 %121, %130
  br i1 %131, label %132, label %134

132:                                              ; preds = %129
  %133 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -8, ptr %133, align 8, !tbaa !9
  br label %134

134:                                              ; preds = %132, %129
  br label %135

135:                                              ; preds = %134, %117
  br label %136

136:                                              ; preds = %135, %102
  br label %137

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

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

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

143:                                              ; preds = %139
  store i64 1, ptr %30, align 8, !tbaa !9
  %144 = load ptr, ptr %17, align 8, !tbaa !5
  %145 = load i64, ptr %144, align 8, !tbaa !9
  %146 = mul nsw i64 %145, 3
  %147 = sub nsw i64 %146, 1
  store i64 %147, ptr %31, align 8, !tbaa !9
  %148 = load i64, ptr %30, align 8, !tbaa !9
  %149 = load i64, ptr %31, align 8, !tbaa !9
  %150 = icmp sge i64 %148, %149
  br i1 %150, label %151, label %153

151:                                              ; preds = %143
  %152 = load i64, ptr %30, align 8, !tbaa !9
  br label %155

153:                                              ; preds = %143
  %154 = load i64, ptr %31, align 8, !tbaa !9
  br label %155

155:                                              ; preds = %153, %151
  %156 = phi i64 [ %152, %151 ], [ %154, %153 ]
  store i64 %156, ptr %37, align 8, !tbaa !9
  %157 = load ptr, ptr %16, align 8, !tbaa !5
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  %159 = call i64 @ilaenv_(ptr noundef @c__1, ptr noundef @.str.4, ptr noundef %157, ptr noundef %158, ptr noundef @c_n1, ptr noundef @c_n1, ptr noundef @c_n1)
  store i64 %159, ptr %32, align 8, !tbaa !9
  %160 = load i64, ptr %37, align 8, !tbaa !9
  store i64 %160, ptr %30, align 8, !tbaa !9
  %161 = load i64, ptr %32, align 8, !tbaa !9
  %162 = add nsw i64 %161, 2
  %163 = load ptr, ptr %17, align 8, !tbaa !5
  %164 = load i64, ptr %163, align 8, !tbaa !9
  %165 = mul nsw i64 %162, %164
  store i64 %165, ptr %31, align 8, !tbaa !9
  %166 = load i64, ptr %30, align 8, !tbaa !9
  %167 = load i64, ptr %31, align 8, !tbaa !9
  %168 = icmp sge i64 %166, %167
  br i1 %168, label %169, label %171

169:                                              ; preds = %155
  %170 = load i64, ptr %30, align 8, !tbaa !9
  br label %173

171:                                              ; preds = %155
  %172 = load i64, ptr %31, align 8, !tbaa !9
  br label %173

173:                                              ; preds = %171, %169
  %174 = phi i64 [ %170, %169 ], [ %172, %171 ]
  store i64 %174, ptr %38, align 8, !tbaa !9
  %175 = load i64, ptr %38, align 8, !tbaa !9
  %176 = sitofp i64 %175 to double
  %177 = load ptr, ptr %23, align 8, !tbaa !5
  %178 = getelementptr inbounds double, ptr %177, i64 1
  store double %176, ptr %178, align 8, !tbaa !11
  %179 = load ptr, ptr %24, align 8, !tbaa !5
  %180 = load i64, ptr %179, align 8, !tbaa !9
  %181 = load i64, ptr %37, align 8, !tbaa !9
  %182 = icmp slt i64 %180, %181
  br i1 %182, label %183, label %188

183:                                              ; preds = %173
  %184 = load i64, ptr %39, align 8, !tbaa !9
  %185 = icmp ne i64 %184, 0
  br i1 %185, label %188, label %186

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

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

189:                                              ; preds = %188, %139
  %190 = load ptr, ptr %25, align 8, !tbaa !5
  %191 = load i64, ptr %190, align 8, !tbaa !9
  %192 = icmp ne i64 %191, 0
  br i1 %192, label %193, label %198

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

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

201:                                              ; preds = %198
  store i32 0, ptr %13, align 4
  store i32 1, ptr %40, align 4
  br label %326

202:                                              ; preds = %198
  br label %203

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

207:                                              ; preds = %203
  store i32 0, ptr %13, align 4
  store i32 1, ptr %40, align 4
  br label %326

208:                                              ; preds = %203
  %209 = load ptr, ptr %16, align 8, !tbaa !5
  %210 = load ptr, ptr %17, align 8, !tbaa !5
  %211 = load ptr, ptr %20, align 8, !tbaa !5
  %212 = load i64, ptr %29, align 8, !tbaa !9
  %213 = getelementptr inbounds double, ptr %211, i64 %212
  %214 = load ptr, ptr %21, align 8, !tbaa !5
  %215 = load ptr, ptr %25, align 8, !tbaa !5
  %216 = call i32 @dpotrf_(ptr noundef %209, ptr noundef %210, ptr noundef %213, ptr noundef %214, ptr noundef %215)
  %217 = load ptr, ptr %25, align 8, !tbaa !5
  %218 = load i64, ptr %217, align 8, !tbaa !9
  %219 = icmp ne i64 %218, 0
  br i1 %219, label %220, label %227

220:                                              ; preds = %208
  %221 = load ptr, ptr %17, align 8, !tbaa !5
  %222 = load i64, ptr %221, align 8, !tbaa !9
  %223 = load ptr, ptr %25, align 8, !tbaa !5
  %224 = load i64, ptr %223, align 8, !tbaa !9
  %225 = add nsw i64 %222, %224
  %226 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 %225, ptr %226, align 8, !tbaa !9
  store i32 0, ptr %13, align 4
  store i32 1, ptr %40, align 4
  br label %326

227:                                              ; preds = %208
  %228 = load ptr, ptr %14, align 8, !tbaa !5
  %229 = load ptr, ptr %16, align 8, !tbaa !5
  %230 = load ptr, ptr %17, align 8, !tbaa !5
  %231 = load ptr, ptr %18, align 8, !tbaa !5
  %232 = load i64, ptr %27, align 8, !tbaa !9
  %233 = getelementptr inbounds double, ptr %231, i64 %232
  %234 = load ptr, ptr %19, align 8, !tbaa !5
  %235 = load ptr, ptr %20, align 8, !tbaa !5
  %236 = load i64, ptr %29, align 8, !tbaa !9
  %237 = getelementptr inbounds double, ptr %235, i64 %236
  %238 = load ptr, ptr %21, align 8, !tbaa !5
  %239 = load ptr, ptr %25, align 8, !tbaa !5
  %240 = call i32 @dsygst_(ptr noundef %228, ptr noundef %229, ptr noundef %230, ptr noundef %233, ptr noundef %234, ptr noundef %237, ptr noundef %238, ptr noundef %239)
  %241 = load ptr, ptr %15, align 8, !tbaa !5
  %242 = load ptr, ptr %16, align 8, !tbaa !5
  %243 = load ptr, ptr %17, align 8, !tbaa !5
  %244 = load ptr, ptr %18, align 8, !tbaa !5
  %245 = load i64, ptr %27, align 8, !tbaa !9
  %246 = getelementptr inbounds double, ptr %244, i64 %245
  %247 = load ptr, ptr %19, align 8, !tbaa !5
  %248 = load ptr, ptr %22, align 8, !tbaa !5
  %249 = getelementptr inbounds double, ptr %248, i64 1
  %250 = load ptr, ptr %23, align 8, !tbaa !5
  %251 = getelementptr inbounds double, ptr %250, i64 1
  %252 = load ptr, ptr %24, align 8, !tbaa !5
  %253 = load ptr, ptr %25, align 8, !tbaa !5
  %254 = call i32 @dsyev_(ptr noundef %241, ptr noundef %242, ptr noundef %243, ptr noundef %246, ptr noundef %247, ptr noundef %249, ptr noundef %251, ptr noundef %252, ptr noundef %253)
  %255 = load i64, ptr %36, align 8, !tbaa !9
  %256 = icmp ne i64 %255, 0
  br i1 %256, label %257, label %321

257:                                              ; preds = %227
  %258 = load ptr, ptr %17, align 8, !tbaa !5
  %259 = load i64, ptr %258, align 8, !tbaa !9
  store i64 %259, ptr %33, align 8, !tbaa !9
  %260 = load ptr, ptr %25, align 8, !tbaa !5
  %261 = load i64, ptr %260, align 8, !tbaa !9
  %262 = icmp sgt i64 %261, 0
  br i1 %262, label %263, label %267

263:                                              ; preds = %257
  %264 = load ptr, ptr %25, align 8, !tbaa !5
  %265 = load i64, ptr %264, align 8, !tbaa !9
  %266 = sub nsw i64 %265, 1
  store i64 %266, ptr %33, align 8, !tbaa !9
  br label %267

267:                                              ; preds = %263, %257
  %268 = load ptr, ptr %14, align 8, !tbaa !5
  %269 = load i64, ptr %268, align 8, !tbaa !9
  %270 = icmp eq i64 %269, 1
  br i1 %270, label %275, label %271

271:                                              ; preds = %267
  %272 = load ptr, ptr %14, align 8, !tbaa !5
  %273 = load i64, ptr %272, align 8, !tbaa !9
  %274 = icmp eq i64 %273, 2
  br i1 %274, label %275, label %295

275:                                              ; preds = %271, %267
  %276 = load i64, ptr %35, align 8, !tbaa !9
  %277 = icmp ne i64 %276, 0
  br i1 %277, label %278, label %280

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

280:                                              ; preds = %275
  %281 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 84, ptr %281, align 1, !tbaa !13
  br label %282

282:                                              ; preds = %280, %278
  %283 = load ptr, ptr %16, align 8, !tbaa !5
  %284 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %285 = load ptr, ptr %17, align 8, !tbaa !5
  %286 = load ptr, ptr %20, align 8, !tbaa !5
  %287 = load i64, ptr %29, align 8, !tbaa !9
  %288 = getelementptr inbounds double, ptr %286, i64 %287
  %289 = load ptr, ptr %21, align 8, !tbaa !5
  %290 = load ptr, ptr %18, align 8, !tbaa !5
  %291 = load i64, ptr %27, align 8, !tbaa !9
  %292 = getelementptr inbounds double, ptr %290, i64 %291
  %293 = load ptr, ptr %19, align 8, !tbaa !5
  %294 = call i32 @f2c_dtrsm(ptr noundef @.str.6, ptr noundef %283, ptr noundef %284, ptr noundef @.str.7, ptr noundef %285, ptr noundef %33, ptr noundef @c_b16, ptr noundef %288, ptr noundef %289, ptr noundef %292, ptr noundef %293)
  br label %320

295:                                              ; preds = %271
  %296 = load ptr, ptr %14, align 8, !tbaa !5
  %297 = load i64, ptr %296, align 8, !tbaa !9
  %298 = icmp eq i64 %297, 3
  br i1 %298, label %299, label %319

299:                                              ; preds = %295
  %300 = load i64, ptr %35, align 8, !tbaa !9
  %301 = icmp ne i64 %300, 0
  br i1 %301, label %302, label %304

302:                                              ; preds = %299
  %303 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 84, ptr %303, align 1, !tbaa !13
  br label %306

304:                                              ; preds = %299
  %305 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 78, ptr %305, align 1, !tbaa !13
  br label %306

306:                                              ; preds = %304, %302
  %307 = load ptr, ptr %16, align 8, !tbaa !5
  %308 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %309 = load ptr, ptr %17, align 8, !tbaa !5
  %310 = load ptr, ptr %20, align 8, !tbaa !5
  %311 = load i64, ptr %29, align 8, !tbaa !9
  %312 = getelementptr inbounds double, ptr %310, i64 %311
  %313 = load ptr, ptr %21, align 8, !tbaa !5
  %314 = load ptr, ptr %18, align 8, !tbaa !5
  %315 = load i64, ptr %27, align 8, !tbaa !9
  %316 = getelementptr inbounds double, ptr %314, i64 %315
  %317 = load ptr, ptr %19, align 8, !tbaa !5
  %318 = call i32 @f2c_dtrmm(ptr noundef @.str.6, ptr noundef %307, ptr noundef %308, ptr noundef @.str.7, ptr noundef %309, ptr noundef %33, ptr noundef @c_b16, ptr noundef %312, ptr noundef %313, ptr noundef %316, ptr noundef %317)
  br label %319

319:                                              ; preds = %306, %295
  br label %320

320:                                              ; preds = %319, %282
  br label %321

321:                                              ; preds = %320, %227
  %322 = load i64, ptr %38, align 8, !tbaa !9
  %323 = sitofp i64 %322 to double
  %324 = load ptr, ptr %23, align 8, !tbaa !5
  %325 = getelementptr inbounds double, ptr %324, i64 1
  store double %323, ptr %325, align 8, !tbaa !11
  store i32 0, ptr %13, align 4
  store i32 1, ptr %40, align 4
  br label %326

326:                                              ; preds = %321, %220, %207, %201, %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  %327 = load i32, ptr %13, align 4
  ret i32 %327
}

; 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 i64 @ilaenv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

declare i32 @f2c_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 i32 @f2c_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 = !{!"long", !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 i64, align 8
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@c_n1 = external hidden global i64, align 8
@.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 noundef i32 @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 i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca [1 x i8], align 1
  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 1, ptr nonnull %15) #4
  %16 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #4
  %17 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.1) #4
  %18 = load i64, ptr %10, align 8, !tbaa !5
  %19 = icmp eq i64 %18, -1
  store i64 0, ptr %11, align 8, !tbaa !5
  %20 = load i64, ptr %0, align 8, !tbaa !5
  %21 = add i64 %20, -4
  %or.cond129 = icmp ult i64 %21, -3
  br i1 %or.cond129, label %.thread136.sink.split, label %22

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

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

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

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

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

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

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

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

39:                                               ; preds = %37
  %40 = mul nuw nsw i64 %29, 3
  %41 = add nsw i64 %40, -1
  %42 = icmp eq i64 %29, 0
  %43 = select i1 %42, i64 1, i64 %41
  %44 = tail call i64 @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) #4
  %45 = add nsw i64 %44, 2
  %46 = load i64, ptr %3, align 8, !tbaa !5
  %47 = mul nsw i64 %46, %45
  %48 = tail call i64 @llvm.smax.i64(i64 %43, i64 %47)
  %49 = sitofp i64 %48 to double
  store double %49, ptr %9, align 8, !tbaa !9
  %50 = load i64, ptr %10, align 8, !tbaa !5
  %51 = icmp sge i64 %50, %43
  %or.cond = select i1 %51, i1 true, i1 %19
  br i1 %or.cond, label %.thread, label %.thread136.sink.split

.thread:                                          ; preds = %39
  %.pr133.pr = load i64, ptr %11, align 8, !tbaa !5
  %.not123 = icmp eq i64 %.pr133.pr, 0
  br i1 %.not123, label %55, label %.thread136

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

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

55:                                               ; preds = %.thread
  %56 = icmp eq i64 %46, 0
  %or.cond142 = select i1 %19, i1 true, i1 %56
  br i1 %or.cond142, label %79, 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 i64, ptr %11, align 8, !tbaa !5
  %.not124 = icmp eq i64 %59, 0
  br i1 %.not124, label %63, label %60

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

63:                                               ; preds = %57
  %64 = tail call i32 @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
  %65 = tail call i32 @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 %78, label %66

66:                                               ; preds = %63
  %67 = load i64, ptr %3, align 8, !tbaa !5
  store i64 %67, ptr %14, align 8, !tbaa !5
  %68 = load i64, ptr %11, align 8, !tbaa !5
  %69 = icmp sgt i64 %68, 0
  br i1 %69, label %70, label %72

70:                                               ; preds = %66
  %71 = add nsw i64 %68, -1
  store i64 %71, ptr %14, align 8, !tbaa !5
  br label %72

72:                                               ; preds = %70, %66
  %73 = load i64, ptr %0, align 8, !tbaa !5
  switch i64 %73, label %78 [
    i64 1, label %74
    i64 2, label %74
    i64 3, label %76
  ]

74:                                               ; preds = %72, %72
  %. = select i1 %.not120, i8 84, i8 78
  store i8 %., ptr %15, align 1, !tbaa !11
  %75 = call i32 @f2c_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 %78

76:                                               ; preds = %72
  %.131 = select i1 %.not120, i8 78, i8 84
  store i8 %.131, ptr %15, align 1, !tbaa !11
  %77 = call i32 @f2c_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 %78

78:                                               ; preds = %72, %74, %76, %63
  store double %49, ptr %9, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %55, %78, %60, %.thread136
  call void @llvm.lifetime.end.p0(i64 1, 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
  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 i64 @ilaenv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

declare i32 @f2c_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 i32 @f2c_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 i64 @llvm.smax.i64(i64, i64) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #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 = !{!"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}
!11 = !{!7, !7, i64 0}


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