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

; 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 @sspsvx_(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 float, align 4
  %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 4, 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 float, 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 float, 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 float, 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 float, 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 float, 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 float, 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 float, 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 %265

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 float, ptr %162, i64 1
  %164 = load ptr, ptr %24, align 8, !tbaa !5
  %165 = getelementptr inbounds float, ptr %164, i64 1
  %166 = call i32 @f2c_scopy(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 float, 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 @ssptrf_(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 float 0.000000e+00, ptr %179, align 4, !tbaa !11
  store i32 0, ptr %18, align 4
  store i32 1, ptr %43, align 4
  br label %265

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 float, ptr %184, i64 1
  %186 = load ptr, ptr %33, align 8, !tbaa !5
  %187 = getelementptr inbounds float, ptr %186, i64 1
  %188 = call double @slansp_(ptr noundef @.str.5, ptr noundef %182, ptr noundef %183, ptr noundef %185, ptr noundef %187)
  %189 = fptrunc double %188 to float
  store float %189, ptr %41, align 4, !tbaa !11
  %190 = load ptr, ptr %20, align 8, !tbaa !5
  %191 = load ptr, ptr %21, align 8, !tbaa !5
  %192 = load ptr, ptr %24, align 8, !tbaa !5
  %193 = getelementptr inbounds float, ptr %192, i64 1
  %194 = load ptr, ptr %25, align 8, !tbaa !5
  %195 = getelementptr inbounds i64, ptr %194, i64 1
  %196 = load ptr, ptr %30, align 8, !tbaa !5
  %197 = load ptr, ptr %33, align 8, !tbaa !5
  %198 = getelementptr inbounds float, ptr %197, i64 1
  %199 = load ptr, ptr %34, align 8, !tbaa !5
  %200 = getelementptr inbounds i64, ptr %199, i64 1
  %201 = load ptr, ptr %35, align 8, !tbaa !5
  %202 = call i32 @sspcon_(ptr noundef %190, ptr noundef %191, ptr noundef %193, ptr noundef %195, ptr noundef %41, ptr noundef %196, ptr noundef %198, ptr noundef %200, ptr noundef %201)
  %203 = load ptr, ptr %21, align 8, !tbaa !5
  %204 = load ptr, ptr %22, align 8, !tbaa !5
  %205 = load ptr, ptr %26, align 8, !tbaa !5
  %206 = load i64, ptr %37, align 8, !tbaa !9
  %207 = getelementptr inbounds float, ptr %205, i64 %206
  %208 = load ptr, ptr %27, align 8, !tbaa !5
  %209 = load ptr, ptr %28, align 8, !tbaa !5
  %210 = load i64, ptr %39, align 8, !tbaa !9
  %211 = getelementptr inbounds float, ptr %209, i64 %210
  %212 = load ptr, ptr %29, align 8, !tbaa !5
  %213 = call i32 @slacpy_(ptr noundef @.str.6, ptr noundef %203, ptr noundef %204, ptr noundef %207, ptr noundef %208, ptr noundef %211, ptr noundef %212)
  %214 = load ptr, ptr %20, align 8, !tbaa !5
  %215 = load ptr, ptr %21, align 8, !tbaa !5
  %216 = load ptr, ptr %22, align 8, !tbaa !5
  %217 = load ptr, ptr %24, align 8, !tbaa !5
  %218 = getelementptr inbounds float, ptr %217, i64 1
  %219 = load ptr, ptr %25, align 8, !tbaa !5
  %220 = getelementptr inbounds i64, ptr %219, i64 1
  %221 = load ptr, ptr %28, align 8, !tbaa !5
  %222 = load i64, ptr %39, align 8, !tbaa !9
  %223 = getelementptr inbounds float, ptr %221, i64 %222
  %224 = load ptr, ptr %29, align 8, !tbaa !5
  %225 = load ptr, ptr %35, align 8, !tbaa !5
  %226 = call i32 @ssptrs_(ptr noundef %214, ptr noundef %215, ptr noundef %216, ptr noundef %218, ptr noundef %220, ptr noundef %223, ptr noundef %224, ptr noundef %225)
  %227 = load ptr, ptr %20, align 8, !tbaa !5
  %228 = load ptr, ptr %21, align 8, !tbaa !5
  %229 = load ptr, ptr %22, align 8, !tbaa !5
  %230 = load ptr, ptr %23, align 8, !tbaa !5
  %231 = getelementptr inbounds float, ptr %230, i64 1
  %232 = load ptr, ptr %24, align 8, !tbaa !5
  %233 = getelementptr inbounds float, ptr %232, i64 1
  %234 = load ptr, ptr %25, align 8, !tbaa !5
  %235 = getelementptr inbounds i64, ptr %234, i64 1
  %236 = load ptr, ptr %26, align 8, !tbaa !5
  %237 = load i64, ptr %37, align 8, !tbaa !9
  %238 = getelementptr inbounds float, ptr %236, i64 %237
  %239 = load ptr, ptr %27, align 8, !tbaa !5
  %240 = load ptr, ptr %28, align 8, !tbaa !5
  %241 = load i64, ptr %39, align 8, !tbaa !9
  %242 = getelementptr inbounds float, ptr %240, i64 %241
  %243 = load ptr, ptr %29, align 8, !tbaa !5
  %244 = load ptr, ptr %31, align 8, !tbaa !5
  %245 = getelementptr inbounds float, ptr %244, i64 1
  %246 = load ptr, ptr %32, align 8, !tbaa !5
  %247 = getelementptr inbounds float, ptr %246, i64 1
  %248 = load ptr, ptr %33, align 8, !tbaa !5
  %249 = getelementptr inbounds float, ptr %248, i64 1
  %250 = load ptr, ptr %34, align 8, !tbaa !5
  %251 = getelementptr inbounds i64, ptr %250, i64 1
  %252 = load ptr, ptr %35, align 8, !tbaa !5
  %253 = call i32 @ssprfs_(ptr noundef %227, ptr noundef %228, ptr noundef %229, ptr noundef %231, ptr noundef %233, ptr noundef %235, ptr noundef %238, ptr noundef %239, ptr noundef %242, ptr noundef %243, ptr noundef %245, ptr noundef %247, ptr noundef %249, ptr noundef %251, ptr noundef %252)
  %254 = load ptr, ptr %30, align 8, !tbaa !5
  %255 = load float, ptr %254, align 4, !tbaa !11
  %256 = fpext float %255 to double
  %257 = call double @slamch_(ptr noundef @.str.7)
  %258 = fcmp olt double %256, %257
  br i1 %258, label %259, label %264

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

264:                                              ; preds = %259, %181
  store i32 0, ptr %18, align 4
  store i32 1, ptr %43, align 4
  br label %265

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

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

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

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

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

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

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

declare i32 @ssprfs_(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 @slamch_(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 = !{!"float", !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 @sspsvx_(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 float, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  call void @llvm.lifetime.start.p0(i64 4, 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 %67

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_scopy(ptr noundef nonnull %18, ptr noundef %4, ptr noundef nonnull @c__1, ptr noundef %5, ptr noundef nonnull @c__1) #4
  %49 = call i32 @ssptrf_(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 float 0.000000e+00, ptr %11, align 4, !tbaa !9
  br label %67

53:                                               ; preds = %44, %43
  %54 = call double @slansp_(ptr noundef nonnull @.str.5, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %4, ptr noundef %14) #4
  %55 = fptrunc double %54 to float
  store float %55, ptr %19, align 4, !tbaa !9
  %56 = call i32 @sspcon_(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
  %57 = call i32 @slacpy_(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
  %58 = call i32 @ssptrs_(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
  %59 = call i32 @ssprfs_(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
  %60 = load float, ptr %11, align 4, !tbaa !9
  %61 = fpext float %60 to double
  %62 = call double @slamch_(ptr noundef nonnull @.str.7) #4
  %63 = fcmp ogt double %62, %61
  br i1 %63, label %64, label %67

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

67:                                               ; preds = %53, %64, %52, %.thread
  call void @llvm.lifetime.end.p0(i64 4, 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_scopy(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

declare i32 @ssprfs_(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 @slamch_(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 = !{!"float", !7, i64 0}


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