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

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

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

79:                                               ; preds = %17
  %80 = load ptr, ptr %19, align 8, !tbaa !5
  %81 = call i64 @lsame_(ptr noundef %80, ptr noundef @.str.1)
  %82 = icmp ne i64 %81, 0
  br i1 %82, label %85, label %83

83:                                               ; preds = %79
  %84 = load ptr, ptr %35, align 8, !tbaa !5
  store i64 -1, ptr %84, align 8, !tbaa !9
  br label %142

85:                                               ; preds = %79, %17
  %86 = load ptr, ptr %20, align 8, !tbaa !5
  %87 = call i64 @lsame_(ptr noundef %86, ptr noundef @.str.2)
  %88 = icmp ne i64 %87, 0
  br i1 %88, label %95, label %89

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

93:                                               ; preds = %89
  %94 = load ptr, ptr %35, align 8, !tbaa !5
  store i64 -2, ptr %94, align 8, !tbaa !9
  br label %141

95:                                               ; preds = %89, %85
  %96 = load ptr, ptr %21, align 8, !tbaa !5
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = icmp slt i64 %97, 0
  br i1 %98, label %99, label %101

99:                                               ; preds = %95
  %100 = load ptr, ptr %35, align 8, !tbaa !5
  store i64 -3, ptr %100, align 8, !tbaa !9
  br label %140

101:                                              ; preds = %95
  %102 = load ptr, ptr %22, align 8, !tbaa !5
  %103 = load i64, ptr %102, align 8, !tbaa !9
  %104 = icmp slt i64 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %101
  %106 = load ptr, ptr %35, align 8, !tbaa !5
  store i64 -4, ptr %106, align 8, !tbaa !9
  br label %139

107:                                              ; preds = %101
  %108 = load ptr, ptr %27, align 8, !tbaa !5
  %109 = load i64, ptr %108, align 8, !tbaa !9
  %110 = load ptr, ptr %21, align 8, !tbaa !5
  %111 = load i64, ptr %110, align 8, !tbaa !9
  %112 = icmp sge i64 1, %111
  br i1 %112, label %113, label %114

113:                                              ; preds = %107
  br label %117

114:                                              ; preds = %107
  %115 = load ptr, ptr %21, align 8, !tbaa !5
  %116 = load i64, ptr %115, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %114, %113
  %118 = phi i64 [ 1, %113 ], [ %116, %114 ]
  %119 = icmp slt i64 %109, %118
  br i1 %119, label %120, label %122

120:                                              ; preds = %117
  %121 = load ptr, ptr %35, align 8, !tbaa !5
  store i64 -9, ptr %121, align 8, !tbaa !9
  br label %138

122:                                              ; preds = %117
  %123 = load ptr, ptr %29, align 8, !tbaa !5
  %124 = load i64, ptr %123, align 8, !tbaa !9
  %125 = load ptr, ptr %21, align 8, !tbaa !5
  %126 = load i64, ptr %125, align 8, !tbaa !9
  %127 = icmp sge i64 1, %126
  br i1 %127, label %128, label %129

128:                                              ; preds = %122
  br label %132

129:                                              ; preds = %122
  %130 = load ptr, ptr %21, align 8, !tbaa !5
  %131 = load i64, ptr %130, align 8, !tbaa !9
  br label %132

132:                                              ; preds = %129, %128
  %133 = phi i64 [ 1, %128 ], [ %131, %129 ]
  %134 = icmp slt i64 %124, %133
  br i1 %134, label %135, label %137

135:                                              ; preds = %132
  %136 = load ptr, ptr %35, align 8, !tbaa !5
  store i64 -11, ptr %136, align 8, !tbaa !9
  br label %137

137:                                              ; preds = %135, %132
  br label %138

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

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

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

141:                                              ; preds = %140, %93
  br label %142

142:                                              ; preds = %141, %83
  %143 = load ptr, ptr %35, align 8, !tbaa !5
  %144 = load i64, ptr %143, align 8, !tbaa !9
  %145 = icmp ne i64 %144, 0
  br i1 %145, label %146, label %151

146:                                              ; preds = %142
  %147 = load ptr, ptr %35, align 8, !tbaa !5
  %148 = load i64, ptr %147, align 8, !tbaa !9
  %149 = sub nsw i64 0, %148
  store i64 %149, ptr %40, align 8, !tbaa !9
  %150 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %40)
  store i32 0, ptr %18, align 4
  store i32 1, ptr %43, align 4
  br label %263

151:                                              ; preds = %142
  %152 = load i64, ptr %42, align 8, !tbaa !9
  %153 = icmp ne i64 %152, 0
  br i1 %153, label %154, label %181

154:                                              ; preds = %151
  %155 = load ptr, ptr %21, align 8, !tbaa !5
  %156 = load i64, ptr %155, align 8, !tbaa !9
  %157 = load ptr, ptr %21, align 8, !tbaa !5
  %158 = load i64, ptr %157, align 8, !tbaa !9
  %159 = add nsw i64 %158, 1
  %160 = mul nsw i64 %156, %159
  %161 = sdiv i64 %160, 2
  store i64 %161, ptr %40, align 8, !tbaa !9
  %162 = load ptr, ptr %23, align 8, !tbaa !5
  %163 = getelementptr inbounds double, ptr %162, i64 1
  %164 = load ptr, ptr %24, align 8, !tbaa !5
  %165 = getelementptr inbounds double, ptr %164, i64 1
  %166 = call i32 @f2c_dcopy(ptr noundef %40, ptr noundef %163, ptr noundef @c__1, ptr noundef %165, ptr noundef @c__1)
  %167 = load ptr, ptr %20, align 8, !tbaa !5
  %168 = load ptr, ptr %21, align 8, !tbaa !5
  %169 = load ptr, ptr %24, align 8, !tbaa !5
  %170 = getelementptr inbounds double, ptr %169, i64 1
  %171 = load ptr, ptr %25, align 8, !tbaa !5
  %172 = getelementptr inbounds i64, ptr %171, i64 1
  %173 = load ptr, ptr %35, align 8, !tbaa !5
  %174 = call i32 @dsptrf_(ptr noundef %167, ptr noundef %168, ptr noundef %170, ptr noundef %172, ptr noundef %173)
  %175 = load ptr, ptr %35, align 8, !tbaa !5
  %176 = load i64, ptr %175, align 8, !tbaa !9
  %177 = icmp sgt i64 %176, 0
  br i1 %177, label %178, label %180

178:                                              ; preds = %154
  %179 = load ptr, ptr %30, align 8, !tbaa !5
  store double 0.000000e+00, ptr %179, align 8, !tbaa !11
  store i32 0, ptr %18, align 4
  store i32 1, ptr %43, align 4
  br label %263

180:                                              ; preds = %154
  br label %181

181:                                              ; preds = %180, %151
  %182 = load ptr, ptr %20, align 8, !tbaa !5
  %183 = load ptr, ptr %21, align 8, !tbaa !5
  %184 = load ptr, ptr %23, align 8, !tbaa !5
  %185 = getelementptr inbounds double, ptr %184, i64 1
  %186 = load ptr, ptr %33, align 8, !tbaa !5
  %187 = getelementptr inbounds double, ptr %186, i64 1
  %188 = call double @dlansp_(ptr noundef @.str.5, ptr noundef %182, ptr noundef %183, ptr noundef %185, ptr noundef %187)
  store double %188, ptr %41, align 8, !tbaa !11
  %189 = load ptr, ptr %20, align 8, !tbaa !5
  %190 = load ptr, ptr %21, align 8, !tbaa !5
  %191 = load ptr, ptr %24, align 8, !tbaa !5
  %192 = getelementptr inbounds double, ptr %191, i64 1
  %193 = load ptr, ptr %25, align 8, !tbaa !5
  %194 = getelementptr inbounds i64, ptr %193, i64 1
  %195 = load ptr, ptr %30, align 8, !tbaa !5
  %196 = load ptr, ptr %33, align 8, !tbaa !5
  %197 = getelementptr inbounds double, ptr %196, i64 1
  %198 = load ptr, ptr %34, align 8, !tbaa !5
  %199 = getelementptr inbounds i64, ptr %198, i64 1
  %200 = load ptr, ptr %35, align 8, !tbaa !5
  %201 = call i32 @dspcon_(ptr noundef %189, ptr noundef %190, ptr noundef %192, ptr noundef %194, ptr noundef %41, ptr noundef %195, ptr noundef %197, ptr noundef %199, ptr noundef %200)
  %202 = load ptr, ptr %21, align 8, !tbaa !5
  %203 = load ptr, ptr %22, align 8, !tbaa !5
  %204 = load ptr, ptr %26, align 8, !tbaa !5
  %205 = load i64, ptr %37, align 8, !tbaa !9
  %206 = getelementptr inbounds double, ptr %204, i64 %205
  %207 = load ptr, ptr %27, align 8, !tbaa !5
  %208 = load ptr, ptr %28, align 8, !tbaa !5
  %209 = load i64, ptr %39, align 8, !tbaa !9
  %210 = getelementptr inbounds double, ptr %208, i64 %209
  %211 = load ptr, ptr %29, align 8, !tbaa !5
  %212 = call i32 @dlacpy_(ptr noundef @.str.6, ptr noundef %202, ptr noundef %203, ptr noundef %206, ptr noundef %207, ptr noundef %210, ptr noundef %211)
  %213 = load ptr, ptr %20, align 8, !tbaa !5
  %214 = load ptr, ptr %21, align 8, !tbaa !5
  %215 = load ptr, ptr %22, align 8, !tbaa !5
  %216 = load ptr, ptr %24, align 8, !tbaa !5
  %217 = getelementptr inbounds double, ptr %216, i64 1
  %218 = load ptr, ptr %25, align 8, !tbaa !5
  %219 = getelementptr inbounds i64, ptr %218, i64 1
  %220 = load ptr, ptr %28, align 8, !tbaa !5
  %221 = load i64, ptr %39, align 8, !tbaa !9
  %222 = getelementptr inbounds double, ptr %220, i64 %221
  %223 = load ptr, ptr %29, align 8, !tbaa !5
  %224 = load ptr, ptr %35, align 8, !tbaa !5
  %225 = call i32 @dsptrs_(ptr noundef %213, ptr noundef %214, ptr noundef %215, ptr noundef %217, ptr noundef %219, ptr noundef %222, ptr noundef %223, ptr noundef %224)
  %226 = load ptr, ptr %20, align 8, !tbaa !5
  %227 = load ptr, ptr %21, align 8, !tbaa !5
  %228 = load ptr, ptr %22, align 8, !tbaa !5
  %229 = load ptr, ptr %23, align 8, !tbaa !5
  %230 = getelementptr inbounds double, ptr %229, i64 1
  %231 = load ptr, ptr %24, align 8, !tbaa !5
  %232 = getelementptr inbounds double, ptr %231, i64 1
  %233 = load ptr, ptr %25, align 8, !tbaa !5
  %234 = getelementptr inbounds i64, ptr %233, i64 1
  %235 = load ptr, ptr %26, align 8, !tbaa !5
  %236 = load i64, ptr %37, align 8, !tbaa !9
  %237 = getelementptr inbounds double, ptr %235, i64 %236
  %238 = load ptr, ptr %27, align 8, !tbaa !5
  %239 = load ptr, ptr %28, align 8, !tbaa !5
  %240 = load i64, ptr %39, align 8, !tbaa !9
  %241 = getelementptr inbounds double, ptr %239, i64 %240
  %242 = load ptr, ptr %29, align 8, !tbaa !5
  %243 = load ptr, ptr %31, align 8, !tbaa !5
  %244 = getelementptr inbounds double, ptr %243, i64 1
  %245 = load ptr, ptr %32, align 8, !tbaa !5
  %246 = getelementptr inbounds double, ptr %245, i64 1
  %247 = load ptr, ptr %33, align 8, !tbaa !5
  %248 = getelementptr inbounds double, ptr %247, i64 1
  %249 = load ptr, ptr %34, align 8, !tbaa !5
  %250 = getelementptr inbounds i64, ptr %249, i64 1
  %251 = load ptr, ptr %35, align 8, !tbaa !5
  %252 = call i32 @dsprfs_(ptr noundef %226, ptr noundef %227, ptr noundef %228, ptr noundef %230, ptr noundef %232, ptr noundef %234, ptr noundef %237, ptr noundef %238, ptr noundef %241, ptr noundef %242, ptr noundef %244, ptr noundef %246, ptr noundef %248, ptr noundef %250, ptr noundef %251)
  %253 = load ptr, ptr %30, align 8, !tbaa !5
  %254 = load double, ptr %253, align 8, !tbaa !11
  %255 = call double @dlamch_(ptr noundef @.str.7)
  %256 = fcmp olt double %254, %255
  br i1 %256, label %257, label %262

257:                                              ; preds = %181
  %258 = load ptr, ptr %21, align 8, !tbaa !5
  %259 = load i64, ptr %258, align 8, !tbaa !9
  %260 = add nsw i64 %259, 1
  %261 = load ptr, ptr %35, align 8, !tbaa !5
  store i64 %260, ptr %261, align 8, !tbaa !9
  br label %262

262:                                              ; preds = %257, %181
  store i32 0, ptr %18, align 4
  store i32 1, ptr %43, align 4
  br label %263

263:                                              ; preds = %262, %178, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #3
  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
  %264 = load i32, ptr %18, align 4
  ret i32 %264
}

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

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

declare double @dlansp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

declare double @dlamch_(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}


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

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

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

23:                                               ; preds = %21, %17
  %24 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.2) #4
  %.not101 = icmp eq i64 %24, 0
  br i1 %.not101, label %25, label %27

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

27:                                               ; preds = %25, %23
  %28 = load i64, ptr %2, 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 %3, align 8, !tbaa !5
  %32 = icmp slt i64 %31, 0
  br i1 %32, label %.thread.sink.split, label %33

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

36:                                               ; preds = %33
  %37 = load i64, ptr %10, align 8, !tbaa !5
  %38 = icmp slt i64 %37, %spec.select
  br i1 %38, label %.thread.sink.split, label %39

39:                                               ; preds = %36
  %.pr = load i64, ptr %16, align 8, !tbaa !5
  %.not103 = icmp eq i64 %.pr, 0
  br i1 %.not103, label %43, label %.thread

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

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

43:                                               ; preds = %39
  br i1 %.not, label %53, label %44

44:                                               ; preds = %43
  %45 = add nuw nsw i64 %28, 1
  %46 = mul nuw nsw i64 %45, %28
  %47 = lshr i64 %46, 1
  store i64 %47, ptr %18, align 8, !tbaa !5
  %48 = call i32 @f2c_dcopy(ptr noundef nonnull %18, ptr noundef %4, ptr noundef nonnull @c__1, ptr noundef %5, ptr noundef nonnull @c__1) #4
  %49 = call i32 @dsptrf_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %16) #4
  %50 = load i64, ptr %16, align 8, !tbaa !5
  %51 = icmp sgt i64 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %44
  store double 0.000000e+00, ptr %11, align 8, !tbaa !9
  br label %65

53:                                               ; preds = %44, %43
  %54 = call double @dlansp_(ptr noundef nonnull @.str.5, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %4, ptr noundef %14) #4
  store double %54, ptr %19, align 8, !tbaa !9
  %55 = call i32 @dspcon_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %19, ptr noundef %11, ptr noundef %14, ptr noundef %15, ptr noundef nonnull %16) #4
  %56 = call i32 @dlacpy_(ptr noundef nonnull @.str.6, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %9, ptr noundef nonnull %10) #4
  %57 = call i32 @dsptrs_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %5, ptr noundef %6, ptr noundef %9, ptr noundef nonnull %10, ptr noundef nonnull %16) #4
  %58 = call i32 @dsprfs_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %9, ptr noundef nonnull %10, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef nonnull %16) #4
  %59 = load double, ptr %11, align 8, !tbaa !9
  %60 = call double @dlamch_(ptr noundef nonnull @.str.7) #4
  %61 = fcmp olt double %59, %60
  br i1 %61, label %62, label %65

62:                                               ; preds = %53
  %63 = load i64, ptr %2, align 8, !tbaa !5
  %64 = add nsw i64 %63, 1
  store i64 %64, ptr %16, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %53, %62, %52, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  ret i32 0
}

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

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

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

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

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

declare double @dlansp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

declare double @dlamch_(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.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}


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