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

; 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 [9 x i8], align 1
@c__1 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @dspgv_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #0 {
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca [1 x i8], align 1
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i32, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store ptr %3, ptr %16, align 8, !tbaa !5
  store ptr %4, ptr %17, align 8, !tbaa !5
  store ptr %5, ptr %18, align 8, !tbaa !5
  store ptr %6, ptr %19, align 8, !tbaa !5
  store ptr %7, ptr %20, align 8, !tbaa !5
  store ptr %8, ptr %21, align 8, !tbaa !5
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  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 1, 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
  %33 = load ptr, ptr %17, align 8, !tbaa !5
  %34 = getelementptr inbounds double, ptr %33, i32 -1
  store ptr %34, ptr %17, align 8, !tbaa !5
  %35 = load ptr, ptr %18, align 8, !tbaa !5
  %36 = getelementptr inbounds double, ptr %35, i32 -1
  store ptr %36, ptr %18, align 8, !tbaa !5
  %37 = load ptr, ptr %19, align 8, !tbaa !5
  %38 = getelementptr inbounds double, ptr %37, i32 -1
  store ptr %38, ptr %19, align 8, !tbaa !5
  %39 = load ptr, ptr %21, align 8, !tbaa !5
  %40 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %40, ptr %24, align 8, !tbaa !9
  %41 = load i64, ptr %24, align 8, !tbaa !9
  %42 = add nsw i64 1, %41
  store i64 %42, ptr %25, align 8, !tbaa !9
  %43 = load i64, ptr %25, align 8, !tbaa !9
  %44 = load ptr, ptr %20, align 8, !tbaa !5
  %45 = sub i64 0, %43
  %46 = getelementptr inbounds double, ptr %44, i64 %45
  store ptr %46, ptr %20, align 8, !tbaa !5
  %47 = load ptr, ptr %22, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %47, i32 -1
  store ptr %48, ptr %22, align 8, !tbaa !5
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = call i64 @lsame_(ptr noundef %49, ptr noundef @.str)
  store i64 %50, ptr %31, align 8, !tbaa !9
  %51 = load ptr, ptr %15, align 8, !tbaa !5
  %52 = call i64 @lsame_(ptr noundef %51, ptr noundef @.str.1)
  store i64 %52, ptr %30, align 8, !tbaa !9
  %53 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 0, ptr %53, align 8, !tbaa !9
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = load i64, ptr %54, align 8, !tbaa !9
  %56 = icmp slt i64 %55, 1
  br i1 %56, label %61, label %57

57:                                               ; preds = %11
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = load i64, ptr %58, align 8, !tbaa !9
  %60 = icmp sgt i64 %59, 3
  br i1 %60, label %61, label %63

61:                                               ; preds = %57, %11
  %62 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -1, ptr %62, align 8, !tbaa !9
  br label %106

63:                                               ; preds = %57
  %64 = load i64, ptr %31, align 8, !tbaa !9
  %65 = icmp ne i64 %64, 0
  br i1 %65, label %72, label %66

66:                                               ; preds = %63
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = call i64 @lsame_(ptr noundef %67, ptr noundef @.str.2)
  %69 = icmp ne i64 %68, 0
  br i1 %69, label %72, label %70

70:                                               ; preds = %66
  %71 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -2, ptr %71, align 8, !tbaa !9
  br label %105

72:                                               ; preds = %66, %63
  %73 = load i64, ptr %30, align 8, !tbaa !9
  %74 = icmp ne i64 %73, 0
  br i1 %74, label %81, label %75

75:                                               ; preds = %72
  %76 = load ptr, ptr %15, align 8, !tbaa !5
  %77 = call i64 @lsame_(ptr noundef %76, ptr noundef @.str.3)
  %78 = icmp ne i64 %77, 0
  br i1 %78, label %81, label %79

79:                                               ; preds = %75
  %80 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -3, ptr %80, align 8, !tbaa !9
  br label %104

81:                                               ; preds = %75, %72
  %82 = load ptr, ptr %16, align 8, !tbaa !5
  %83 = load i64, ptr %82, align 8, !tbaa !9
  %84 = icmp slt i64 %83, 0
  br i1 %84, label %85, label %87

85:                                               ; preds = %81
  %86 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -4, ptr %86, align 8, !tbaa !9
  br label %103

87:                                               ; preds = %81
  %88 = load ptr, ptr %21, align 8, !tbaa !5
  %89 = load i64, ptr %88, align 8, !tbaa !9
  %90 = icmp slt i64 %89, 1
  br i1 %90, label %100, label %91

91:                                               ; preds = %87
  %92 = load i64, ptr %31, align 8, !tbaa !9
  %93 = icmp ne i64 %92, 0
  br i1 %93, label %94, label %102

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

100:                                              ; preds = %94, %87
  %101 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -9, ptr %101, align 8, !tbaa !9
  br label %102

102:                                              ; preds = %100, %94, %91
  br label %103

103:                                              ; preds = %102, %85
  br label %104

104:                                              ; preds = %103, %79
  br label %105

105:                                              ; preds = %104, %70
  br label %106

106:                                              ; preds = %105, %61
  %107 = load ptr, ptr %23, align 8, !tbaa !5
  %108 = load i64, ptr %107, align 8, !tbaa !9
  %109 = icmp ne i64 %108, 0
  br i1 %109, label %110, label %115

110:                                              ; preds = %106
  %111 = load ptr, ptr %23, align 8, !tbaa !5
  %112 = load i64, ptr %111, align 8, !tbaa !9
  %113 = sub nsw i64 0, %112
  store i64 %113, ptr %26, align 8, !tbaa !9
  %114 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %26)
  store i32 0, ptr %12, align 4
  store i32 1, ptr %32, align 4
  br label %249

115:                                              ; preds = %106
  %116 = load ptr, ptr %16, align 8, !tbaa !5
  %117 = load i64, ptr %116, align 8, !tbaa !9
  %118 = icmp eq i64 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %115
  store i32 0, ptr %12, align 4
  store i32 1, ptr %32, align 4
  br label %249

120:                                              ; preds = %115
  %121 = load ptr, ptr %15, align 8, !tbaa !5
  %122 = load ptr, ptr %16, align 8, !tbaa !5
  %123 = load ptr, ptr %18, align 8, !tbaa !5
  %124 = getelementptr inbounds double, ptr %123, i64 1
  %125 = load ptr, ptr %23, align 8, !tbaa !5
  %126 = call i32 @dpptrf_(ptr noundef %121, ptr noundef %122, ptr noundef %124, ptr noundef %125)
  %127 = load ptr, ptr %23, align 8, !tbaa !5
  %128 = load i64, ptr %127, align 8, !tbaa !9
  %129 = icmp ne i64 %128, 0
  br i1 %129, label %130, label %137

130:                                              ; preds = %120
  %131 = load ptr, ptr %16, align 8, !tbaa !5
  %132 = load i64, ptr %131, align 8, !tbaa !9
  %133 = load ptr, ptr %23, align 8, !tbaa !5
  %134 = load i64, ptr %133, align 8, !tbaa !9
  %135 = add nsw i64 %132, %134
  %136 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 %135, ptr %136, align 8, !tbaa !9
  store i32 0, ptr %12, align 4
  store i32 1, ptr %32, align 4
  br label %249

137:                                              ; preds = %120
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = load ptr, ptr %15, align 8, !tbaa !5
  %140 = load ptr, ptr %16, align 8, !tbaa !5
  %141 = load ptr, ptr %17, align 8, !tbaa !5
  %142 = getelementptr inbounds double, ptr %141, i64 1
  %143 = load ptr, ptr %18, align 8, !tbaa !5
  %144 = getelementptr inbounds double, ptr %143, i64 1
  %145 = load ptr, ptr %23, align 8, !tbaa !5
  %146 = call i32 @dspgst_(ptr noundef %138, ptr noundef %139, ptr noundef %140, ptr noundef %142, ptr noundef %144, ptr noundef %145)
  %147 = load ptr, ptr %14, align 8, !tbaa !5
  %148 = load ptr, ptr %15, align 8, !tbaa !5
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  %150 = load ptr, ptr %17, align 8, !tbaa !5
  %151 = getelementptr inbounds double, ptr %150, i64 1
  %152 = load ptr, ptr %19, align 8, !tbaa !5
  %153 = getelementptr inbounds double, ptr %152, i64 1
  %154 = load ptr, ptr %20, align 8, !tbaa !5
  %155 = load i64, ptr %25, align 8, !tbaa !9
  %156 = getelementptr inbounds double, ptr %154, i64 %155
  %157 = load ptr, ptr %21, align 8, !tbaa !5
  %158 = load ptr, ptr %22, align 8, !tbaa !5
  %159 = getelementptr inbounds double, ptr %158, i64 1
  %160 = load ptr, ptr %23, align 8, !tbaa !5
  %161 = call i32 @dspev_(ptr noundef %147, ptr noundef %148, ptr noundef %149, ptr noundef %151, ptr noundef %153, ptr noundef %156, ptr noundef %157, ptr noundef %159, ptr noundef %160)
  %162 = load i64, ptr %31, align 8, !tbaa !9
  %163 = icmp ne i64 %162, 0
  br i1 %163, label %164, label %248

164:                                              ; preds = %137
  %165 = load ptr, ptr %16, align 8, !tbaa !5
  %166 = load i64, ptr %165, align 8, !tbaa !9
  store i64 %166, ptr %28, align 8, !tbaa !9
  %167 = load ptr, ptr %23, align 8, !tbaa !5
  %168 = load i64, ptr %167, align 8, !tbaa !9
  %169 = icmp sgt i64 %168, 0
  br i1 %169, label %170, label %174

170:                                              ; preds = %164
  %171 = load ptr, ptr %23, align 8, !tbaa !5
  %172 = load i64, ptr %171, align 8, !tbaa !9
  %173 = sub nsw i64 %172, 1
  store i64 %173, ptr %28, align 8, !tbaa !9
  br label %174

174:                                              ; preds = %170, %164
  %175 = load ptr, ptr %13, align 8, !tbaa !5
  %176 = load i64, ptr %175, align 8, !tbaa !9
  %177 = icmp eq i64 %176, 1
  br i1 %177, label %182, label %178

178:                                              ; preds = %174
  %179 = load ptr, ptr %13, align 8, !tbaa !5
  %180 = load i64, ptr %179, align 8, !tbaa !9
  %181 = icmp eq i64 %180, 2
  br i1 %181, label %182, label %212

182:                                              ; preds = %178, %174
  %183 = load i64, ptr %30, align 8, !tbaa !9
  %184 = icmp ne i64 %183, 0
  br i1 %184, label %185, label %187

185:                                              ; preds = %182
  %186 = getelementptr inbounds [1 x i8], ptr %29, i64 0, i64 0
  store i8 78, ptr %186, align 1, !tbaa !11
  br label %189

187:                                              ; preds = %182
  %188 = getelementptr inbounds [1 x i8], ptr %29, i64 0, i64 0
  store i8 84, ptr %188, align 1, !tbaa !11
  br label %189

189:                                              ; preds = %187, %185
  %190 = load i64, ptr %28, align 8, !tbaa !9
  store i64 %190, ptr %26, align 8, !tbaa !9
  store i64 1, ptr %27, align 8, !tbaa !9
  br label %191

191:                                              ; preds = %208, %189
  %192 = load i64, ptr %27, align 8, !tbaa !9
  %193 = load i64, ptr %26, align 8, !tbaa !9
  %194 = icmp sle i64 %192, %193
  br i1 %194, label %195, label %211

195:                                              ; preds = %191
  %196 = load ptr, ptr %15, align 8, !tbaa !5
  %197 = getelementptr inbounds [1 x i8], ptr %29, i64 0, i64 0
  %198 = load ptr, ptr %16, align 8, !tbaa !5
  %199 = load ptr, ptr %18, align 8, !tbaa !5
  %200 = getelementptr inbounds double, ptr %199, i64 1
  %201 = load ptr, ptr %20, align 8, !tbaa !5
  %202 = load i64, ptr %27, align 8, !tbaa !9
  %203 = load i64, ptr %24, align 8, !tbaa !9
  %204 = mul nsw i64 %202, %203
  %205 = add nsw i64 %204, 1
  %206 = getelementptr inbounds double, ptr %201, i64 %205
  %207 = call i32 @f2c_dtpsv(ptr noundef %196, ptr noundef %197, ptr noundef @.str.5, ptr noundef %198, ptr noundef %200, ptr noundef %206, ptr noundef @c__1)
  br label %208

208:                                              ; preds = %195
  %209 = load i64, ptr %27, align 8, !tbaa !9
  %210 = add nsw i64 %209, 1
  store i64 %210, ptr %27, align 8, !tbaa !9
  br label %191, !llvm.loop !12

211:                                              ; preds = %191
  br label %247

212:                                              ; preds = %178
  %213 = load ptr, ptr %13, align 8, !tbaa !5
  %214 = load i64, ptr %213, align 8, !tbaa !9
  %215 = icmp eq i64 %214, 3
  br i1 %215, label %216, label %246

216:                                              ; preds = %212
  %217 = load i64, ptr %30, align 8, !tbaa !9
  %218 = icmp ne i64 %217, 0
  br i1 %218, label %219, label %221

219:                                              ; preds = %216
  %220 = getelementptr inbounds [1 x i8], ptr %29, i64 0, i64 0
  store i8 84, ptr %220, align 1, !tbaa !11
  br label %223

221:                                              ; preds = %216
  %222 = getelementptr inbounds [1 x i8], ptr %29, i64 0, i64 0
  store i8 78, ptr %222, align 1, !tbaa !11
  br label %223

223:                                              ; preds = %221, %219
  %224 = load i64, ptr %28, align 8, !tbaa !9
  store i64 %224, ptr %26, align 8, !tbaa !9
  store i64 1, ptr %27, align 8, !tbaa !9
  br label %225

225:                                              ; preds = %242, %223
  %226 = load i64, ptr %27, align 8, !tbaa !9
  %227 = load i64, ptr %26, align 8, !tbaa !9
  %228 = icmp sle i64 %226, %227
  br i1 %228, label %229, label %245

229:                                              ; preds = %225
  %230 = load ptr, ptr %15, align 8, !tbaa !5
  %231 = getelementptr inbounds [1 x i8], ptr %29, i64 0, i64 0
  %232 = load ptr, ptr %16, align 8, !tbaa !5
  %233 = load ptr, ptr %18, align 8, !tbaa !5
  %234 = getelementptr inbounds double, ptr %233, i64 1
  %235 = load ptr, ptr %20, align 8, !tbaa !5
  %236 = load i64, ptr %27, align 8, !tbaa !9
  %237 = load i64, ptr %24, align 8, !tbaa !9
  %238 = mul nsw i64 %236, %237
  %239 = add nsw i64 %238, 1
  %240 = getelementptr inbounds double, ptr %235, i64 %239
  %241 = call i32 @f2c_dtpmv(ptr noundef %230, ptr noundef %231, ptr noundef @.str.5, ptr noundef %232, ptr noundef %234, ptr noundef %240, ptr noundef @c__1)
  br label %242

242:                                              ; preds = %229
  %243 = load i64, ptr %27, align 8, !tbaa !9
  %244 = add nsw i64 %243, 1
  store i64 %244, ptr %27, align 8, !tbaa !9
  br label %225, !llvm.loop !14

245:                                              ; preds = %225
  br label %246

246:                                              ; preds = %245, %212
  br label %247

247:                                              ; preds = %246, %211
  br label %248

248:                                              ; preds = %247, %137
  store i32 0, ptr %12, align 4
  store i32 1, ptr %32, align 4
  br label %249

249:                                              ; preds = %248, %130, %119, %110
  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 1, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  %250 = load i32, ptr %12, align 4
  ret i32 %250
}

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

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

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

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

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

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

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

declare i32 @f2c_dtpmv(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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; 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 [9 x i8], align 1
@c__1 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @dspgv_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) local_unnamed_addr #0 {
  %12 = alloca i64, align 8
  %13 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #3
  %14 = load i64, ptr %8, align 8, !tbaa !5
  %15 = xor i64 %14, -1
  %16 = getelementptr inbounds double, ptr %7, i64 %15
  %17 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #3
  %18 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.1) #3
  store i64 0, ptr %10, align 8, !tbaa !5
  %19 = load i64, ptr %0, align 8, !tbaa !5
  %20 = add i64 %19, -4
  %or.cond = icmp ult i64 %20, -3
  br i1 %or.cond, label %.thread.sink.split, label %21

21:                                               ; preds = %11
  %.not = icmp ne i64 %17, 0
  br i1 %.not, label %24, label %22

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

24:                                               ; preds = %22, %21
  %.not90 = icmp eq i64 %18, 0
  br i1 %.not90, label %25, label %27

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

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

30:                                               ; preds = %27
  %31 = load i64, ptr %8, align 8, !tbaa !5
  %32 = icmp slt i64 %31, 1
  %33 = icmp ult i64 %31, %28
  %or.cond100 = and i1 %.not, %33
  %or.cond103 = or i1 %32, %or.cond100
  br i1 %or.cond103, label %.thread.sink.split, label %34

34:                                               ; preds = %30
  %.pr = load i64, ptr %10, align 8, !tbaa !5
  %.not92 = icmp eq i64 %.pr, 0
  br i1 %.not92, label %38, label %.thread

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

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

38:                                               ; preds = %34
  %39 = icmp eq i64 %28, 0
  br i1 %39, label %.loopexit, label %40

40:                                               ; preds = %38
  %41 = tail call i32 @dpptrf_(ptr noundef %2, ptr noundef nonnull %3, ptr noundef %5, ptr noundef nonnull %10) #3
  %42 = load i64, ptr %10, align 8, !tbaa !5
  %.not93 = icmp eq i64 %42, 0
  br i1 %.not93, label %46, label %43

43:                                               ; preds = %40
  %44 = load i64, ptr %3, align 8, !tbaa !5
  %45 = add nsw i64 %44, %42
  store i64 %45, ptr %10, align 8, !tbaa !5
  br label %.loopexit

46:                                               ; preds = %40
  %47 = tail call i32 @dspgst_(ptr noundef nonnull %0, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef %5, ptr noundef nonnull %10) #3
  %48 = tail call i32 @dspev_(ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %9, ptr noundef nonnull %10) #3
  %.not94 = icmp eq i64 %17, 0
  br i1 %.not94, label %.loopexit, label %49

49:                                               ; preds = %46
  %50 = load i64, ptr %3, align 8, !tbaa !5
  %51 = load i64, ptr %10, align 8, !tbaa !5
  %52 = icmp sgt i64 %51, 0
  %53 = add nsw i64 %51, -1
  %spec.select = select i1 %52, i64 %53, i64 %50
  %54 = load i64, ptr %0, align 8, !tbaa !5
  switch i64 %54, label %.loopexit [
    i64 1, label %55
    i64 2, label %55
    i64 3, label %59
  ]

55:                                               ; preds = %49, %49
  %. = select i1 %.not90, i8 84, i8 78
  store i8 %., ptr %13, align 1, !tbaa !9
  %invariant.gep107 = getelementptr i8, ptr %16, i64 8
  %.not99109 = icmp slt i64 %spec.select, 1
  br i1 %.not99109, label %.loopexit, label %.lr.ph111

.lr.ph111:                                        ; preds = %55, %.lr.ph111
  %.082110 = phi i64 [ %58, %.lr.ph111 ], [ 1, %55 ]
  %56 = mul nsw i64 %.082110, %14
  %gep108 = getelementptr double, ptr %invariant.gep107, i64 %56
  %57 = call i32 @f2c_dtpsv(ptr noundef %2, ptr noundef nonnull %13, ptr noundef nonnull @.str.5, ptr noundef nonnull %3, ptr noundef %5, ptr noundef %gep108, ptr noundef nonnull @c__1) #3
  %58 = add nuw nsw i64 %.082110, 1
  %.not99.not = icmp slt i64 %.082110, %spec.select
  br i1 %.not99.not, label %.lr.ph111, label %.loopexit, !llvm.loop !10

59:                                               ; preds = %49
  %.101 = select i1 %.not90, i8 78, i8 84
  store i8 %.101, ptr %13, align 1, !tbaa !9
  %invariant.gep = getelementptr i8, ptr %16, i64 8
  %.not96105 = icmp slt i64 %spec.select, 1
  br i1 %.not96105, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %59, %.lr.ph
  %.1106 = phi i64 [ %62, %.lr.ph ], [ 1, %59 ]
  %60 = mul nsw i64 %.1106, %14
  %gep = getelementptr double, ptr %invariant.gep, i64 %60
  %61 = call i32 @f2c_dtpmv(ptr noundef %2, ptr noundef nonnull %13, ptr noundef nonnull @.str.5, ptr noundef nonnull %3, ptr noundef %5, ptr noundef %gep, ptr noundef nonnull @c__1) #3
  %62 = add nuw nsw i64 %.1106, 1
  %.not96.not = icmp slt i64 %.1106, %spec.select
  br i1 %.not96.not, label %.lr.ph, label %.loopexit, !llvm.loop !12

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph111, %59, %55, %46, %49, %38, %43, %.thread
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  ret i32 0
}

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

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

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

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

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

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

declare i32 @f2c_dtpmv(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

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 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass