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

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

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

49:                                               ; preds = %9
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = call i64 @lsame_(ptr noundef %50, ptr noundef @.str.1)
  %52 = icmp ne i64 %51, 0
  br label %53

53:                                               ; preds = %49, %9
  %54 = phi i1 [ true, %9 ], [ %52, %49 ]
  %55 = zext i1 %54 to i32
  %56 = sext i32 %55 to i64
  store i64 %56, ptr %31, align 8, !tbaa !9
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = call i64 @lsame_(ptr noundef %57, ptr noundef @.str.2)
  store i64 %58, ptr %34, align 8, !tbaa !9
  %59 = load i64, ptr %31, align 8, !tbaa !9
  %60 = icmp ne i64 %59, 0
  br i1 %60, label %67, label %61

61:                                               ; preds = %53
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = call i64 @lsame_(ptr noundef %62, ptr noundef @.str.3)
  %64 = icmp ne i64 %63, 0
  br i1 %64, label %67, label %65

65:                                               ; preds = %61
  %66 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -1, ptr %66, align 8, !tbaa !9
  br label %94

67:                                               ; preds = %61, %53
  %68 = load i64, ptr %28, align 8, !tbaa !9
  %69 = icmp ne i64 %68, 0
  br i1 %69, label %76, label %70

70:                                               ; preds = %67
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = call i64 @lsame_(ptr noundef %71, ptr noundef @.str.4)
  %73 = icmp ne i64 %72, 0
  br i1 %73, label %76, label %74

74:                                               ; preds = %70
  %75 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -2, ptr %75, align 8, !tbaa !9
  br label %93

76:                                               ; preds = %70, %67
  %77 = load i64, ptr %34, align 8, !tbaa !9
  %78 = icmp ne i64 %77, 0
  br i1 %78, label %85, label %79

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

83:                                               ; preds = %79
  %84 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -3, ptr %84, align 8, !tbaa !9
  br label %92

85:                                               ; preds = %79, %76
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = load i64, ptr %86, align 8, !tbaa !9
  %88 = icmp slt i64 %87, 0
  br i1 %88, label %89, label %91

89:                                               ; preds = %85
  %90 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -4, ptr %90, align 8, !tbaa !9
  br label %91

91:                                               ; preds = %89, %85
  br label %92

92:                                               ; preds = %91, %83
  br label %93

93:                                               ; preds = %92, %74
  br label %94

94:                                               ; preds = %93, %65
  %95 = load ptr, ptr %19, align 8, !tbaa !5
  %96 = load i64, ptr %95, align 8, !tbaa !9
  %97 = icmp ne i64 %96, 0
  br i1 %97, label %98, label %103

98:                                               ; preds = %94
  %99 = load ptr, ptr %19, align 8, !tbaa !5
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = sub nsw i64 0, %100
  store i64 %101, ptr %20, align 8, !tbaa !9
  %102 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %20)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %248

103:                                              ; preds = %94
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = load i64, ptr %104, align 8, !tbaa !9
  %106 = icmp eq i64 %105, 0
  br i1 %106, label %107, label %109

107:                                              ; preds = %103
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  store float 1.000000e+00, ptr %108, align 4, !tbaa !12
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %248

109:                                              ; preds = %103
  %110 = load ptr, ptr %16, align 8, !tbaa !5
  store float 0.000000e+00, ptr %110, align 4, !tbaa !12
  %111 = call double @slamch_(ptr noundef @.str.6)
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = icmp sge i64 1, %113
  br i1 %114, label %115, label %116

115:                                              ; preds = %109
  br label %119

116:                                              ; preds = %109
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  %118 = load i64, ptr %117, align 8, !tbaa !9
  br label %119

119:                                              ; preds = %116, %115
  %120 = phi i64 [ 1, %115 ], [ %118, %116 ]
  %121 = sitofp i64 %120 to float
  %122 = fpext float %121 to double
  %123 = fmul double %111, %122
  %124 = fptrunc double %123 to float
  store float %124, ptr %33, align 4, !tbaa !12
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = load ptr, ptr %13, align 8, !tbaa !5
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  %129 = load ptr, ptr %15, align 8, !tbaa !5
  %130 = getelementptr inbounds float, ptr %129, i64 1
  %131 = load ptr, ptr %17, align 8, !tbaa !5
  %132 = getelementptr inbounds float, ptr %131, i64 1
  %133 = call double @slantp_(ptr noundef %125, ptr noundef %126, ptr noundef %127, ptr noundef %128, ptr noundef %130, ptr noundef %132)
  %134 = fptrunc double %133 to float
  store float %134, ptr %27, align 4, !tbaa !12
  %135 = load float, ptr %27, align 4, !tbaa !12
  %136 = fcmp ogt float %135, 0.000000e+00
  br i1 %136, label %137, label %246

137:                                              ; preds = %119
  store float 0.000000e+00, ptr %30, align 4, !tbaa !12
  %138 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 78, ptr %138, align 1, !tbaa !11
  %139 = load i64, ptr %31, align 8, !tbaa !9
  %140 = icmp ne i64 %139, 0
  br i1 %140, label %141, label %142

141:                                              ; preds = %137
  store i64 1, ptr %24, align 8, !tbaa !9
  br label %143

142:                                              ; preds = %137
  store i64 2, ptr %24, align 8, !tbaa !9
  br label %143

143:                                              ; preds = %142, %141
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %144

144:                                              ; preds = %235, %143
  %145 = load ptr, ptr %14, align 8, !tbaa !5
  %146 = load ptr, ptr %17, align 8, !tbaa !5
  %147 = load ptr, ptr %14, align 8, !tbaa !5
  %148 = load i64, ptr %147, align 8, !tbaa !9
  %149 = add nsw i64 %148, 1
  %150 = getelementptr inbounds float, ptr %146, i64 %149
  %151 = load ptr, ptr %17, align 8, !tbaa !5
  %152 = getelementptr inbounds float, ptr %151, i64 1
  %153 = load ptr, ptr %18, align 8, !tbaa !5
  %154 = getelementptr inbounds i64, ptr %153, i64 1
  %155 = getelementptr inbounds [3 x i64], ptr %26, i64 0, i64 0
  %156 = call i32 @slacn2_(ptr noundef %145, ptr noundef %150, ptr noundef %152, ptr noundef %154, ptr noundef %30, ptr noundef %23, ptr noundef %155)
  %157 = load i64, ptr %23, align 8, !tbaa !9
  %158 = icmp ne i64 %157, 0
  br i1 %158, label %159, label %236

159:                                              ; preds = %144
  %160 = load i64, ptr %23, align 8, !tbaa !9
  %161 = load i64, ptr %24, align 8, !tbaa !9
  %162 = icmp eq i64 %160, %161
  br i1 %162, label %163, label %180

163:                                              ; preds = %159
  %164 = load ptr, ptr %12, align 8, !tbaa !5
  %165 = load ptr, ptr %13, align 8, !tbaa !5
  %166 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %167 = load ptr, ptr %14, align 8, !tbaa !5
  %168 = load ptr, ptr %15, align 8, !tbaa !5
  %169 = getelementptr inbounds float, ptr %168, i64 1
  %170 = load ptr, ptr %17, align 8, !tbaa !5
  %171 = getelementptr inbounds float, ptr %170, i64 1
  %172 = load ptr, ptr %17, align 8, !tbaa !5
  %173 = load ptr, ptr %14, align 8, !tbaa !5
  %174 = load i64, ptr %173, align 8, !tbaa !9
  %175 = shl i64 %174, 1
  %176 = add nsw i64 %175, 1
  %177 = getelementptr inbounds float, ptr %172, i64 %176
  %178 = load ptr, ptr %19, align 8, !tbaa !5
  %179 = call i32 @slatps_(ptr noundef %164, ptr noundef @.str.7, ptr noundef %165, ptr noundef %166, ptr noundef %167, ptr noundef %169, ptr noundef %171, ptr noundef %25, ptr noundef %177, ptr noundef %178)
  br label %197

180:                                              ; preds = %159
  %181 = load ptr, ptr %12, align 8, !tbaa !5
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %184 = load ptr, ptr %14, align 8, !tbaa !5
  %185 = load ptr, ptr %15, align 8, !tbaa !5
  %186 = getelementptr inbounds float, ptr %185, i64 1
  %187 = load ptr, ptr %17, align 8, !tbaa !5
  %188 = getelementptr inbounds float, ptr %187, i64 1
  %189 = load ptr, ptr %17, align 8, !tbaa !5
  %190 = load ptr, ptr %14, align 8, !tbaa !5
  %191 = load i64, ptr %190, align 8, !tbaa !9
  %192 = shl i64 %191, 1
  %193 = add nsw i64 %192, 1
  %194 = getelementptr inbounds float, ptr %189, i64 %193
  %195 = load ptr, ptr %19, align 8, !tbaa !5
  %196 = call i32 @slatps_(ptr noundef %181, ptr noundef @.str.8, ptr noundef %182, ptr noundef %183, ptr noundef %184, ptr noundef %186, ptr noundef %188, ptr noundef %25, ptr noundef %194, ptr noundef %195)
  br label %197

197:                                              ; preds = %180, %163
  %198 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 89, ptr %198, align 1, !tbaa !11
  %199 = load float, ptr %25, align 4, !tbaa !12
  %200 = fcmp une float %199, 1.000000e+00
  br i1 %200, label %201, label %235

201:                                              ; preds = %197
  %202 = load ptr, ptr %14, align 8, !tbaa !5
  %203 = load ptr, ptr %17, align 8, !tbaa !5
  %204 = getelementptr inbounds float, ptr %203, i64 1
  %205 = call i64 @f2c_isamax(ptr noundef %202, ptr noundef %204, ptr noundef @c__1)
  store i64 %205, ptr %22, align 8, !tbaa !9
  %206 = load ptr, ptr %17, align 8, !tbaa !5
  %207 = load i64, ptr %22, align 8, !tbaa !9
  %208 = getelementptr inbounds float, ptr %206, i64 %207
  %209 = load float, ptr %208, align 4, !tbaa !12
  store float %209, ptr %21, align 4, !tbaa !12
  %210 = load float, ptr %21, align 4, !tbaa !12
  %211 = fcmp oge float %210, 0.000000e+00
  br i1 %211, label %212, label %214

212:                                              ; preds = %201
  %213 = load float, ptr %21, align 4, !tbaa !12
  br label %217

214:                                              ; preds = %201
  %215 = load float, ptr %21, align 4, !tbaa !12
  %216 = fneg float %215
  br label %217

217:                                              ; preds = %214, %212
  %218 = phi float [ %213, %212 ], [ %216, %214 ]
  %219 = fpext float %218 to double
  %220 = fptrunc double %219 to float
  store float %220, ptr %29, align 4, !tbaa !12
  %221 = load float, ptr %25, align 4, !tbaa !12
  %222 = load float, ptr %29, align 4, !tbaa !12
  %223 = load float, ptr %33, align 4, !tbaa !12
  %224 = fmul float %222, %223
  %225 = fcmp olt float %221, %224
  br i1 %225, label %229, label %226

226:                                              ; preds = %217
  %227 = load float, ptr %25, align 4, !tbaa !12
  %228 = fcmp oeq float %227, 0.000000e+00
  br i1 %228, label %229, label %230

229:                                              ; preds = %226, %217
  br label %247

230:                                              ; preds = %226
  %231 = load ptr, ptr %14, align 8, !tbaa !5
  %232 = load ptr, ptr %17, align 8, !tbaa !5
  %233 = getelementptr inbounds float, ptr %232, i64 1
  %234 = call i32 @srscl_(ptr noundef %231, ptr noundef %25, ptr noundef %233, ptr noundef @c__1)
  br label %235

235:                                              ; preds = %230, %197
  br label %144

236:                                              ; preds = %144
  %237 = load float, ptr %30, align 4, !tbaa !12
  %238 = fcmp une float %237, 0.000000e+00
  br i1 %238, label %239, label %245

239:                                              ; preds = %236
  %240 = load float, ptr %27, align 4, !tbaa !12
  %241 = fdiv float 1.000000e+00, %240
  %242 = load float, ptr %30, align 4, !tbaa !12
  %243 = fdiv float %241, %242
  %244 = load ptr, ptr %16, align 8, !tbaa !5
  store float %243, ptr %244, align 4, !tbaa !12
  br label %245

245:                                              ; preds = %239, %236
  br label %246

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

247:                                              ; preds = %246, %229
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %248

248:                                              ; preds = %247, %107, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  %249 = load i32, ptr %10, align 4
  ret i32 %249
}

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

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

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

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

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

declare i32 @srscl_(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 = !{!13, !13, i64 0}
!13 = !{!"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 [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@c__1 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @stpcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef writeonly %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #0 {
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca float, align 4
  %13 = alloca [3 x i64], align 16
  %14 = alloca float, align 4
  %15 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #3
  %16 = getelementptr inbounds i8, ptr %6, i64 -4
  store i64 0, ptr %8, align 8, !tbaa !5
  %17 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #3
  %18 = load i8, ptr %0, align 1, !tbaa !9
  %19 = icmp eq i8 %18, 49
  br i1 %19, label %.thread, label %21

.thread:                                          ; preds = %9
  %20 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #3
  br label %26

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

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

26:                                               ; preds = %.thread, %24, %21
  %27 = phi i64 [ %20, %.thread ], [ %23, %24 ], [ %23, %21 ]
  %. = phi i64 [ 1, %.thread ], [ 2, %24 ], [ 1, %21 ]
  %.not75 = icmp eq i64 %17, 0
  br i1 %.not75, label %28, label %30

28:                                               ; preds = %26
  %29 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.4) #3
  %.not76 = icmp eq i64 %29, 0
  br i1 %.not76, label %.thread83.sink.split, label %30

30:                                               ; preds = %28, %26
  %.not77 = icmp eq i64 %27, 0
  br i1 %.not77, label %31, label %33

31:                                               ; preds = %30
  %32 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str) #3
  %.not78 = icmp eq i64 %32, 0
  br i1 %.not78, label %.thread83.sink.split, label %33

33:                                               ; preds = %31, %30
  %34 = load i64, ptr %3, align 8, !tbaa !5
  %35 = icmp slt i64 %34, 0
  br i1 %35, label %.thread83.sink.split, label %36

36:                                               ; preds = %33
  %.pr = load i64, ptr %8, align 8, !tbaa !5
  %.not79 = icmp eq i64 %.pr, 0
  br i1 %.not79, label %40, label %.thread83

.thread83.sink.split:                             ; preds = %33, %31, %28, %24
  %.sink = phi i64 [ -1, %24 ], [ -2, %28 ], [ -3, %31 ], [ -4, %33 ]
  store i64 %.sink, ptr %8, align 8, !tbaa !5
  br label %.thread83

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

40:                                               ; preds = %36
  %41 = icmp eq i64 %34, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %40
  store float 1.000000e+00, ptr %5, align 4, !tbaa !10
  br label %.loopexit

43:                                               ; preds = %40
  store float 0.000000e+00, ptr %5, align 4, !tbaa !10
  %44 = tail call double @slamch_(ptr noundef nonnull @.str.6) #3
  %45 = load i64, ptr %3, align 8, !tbaa !5
  %46 = icmp slt i64 %45, 2
  %47 = uitofp nneg i64 %45 to float
  %48 = fpext float %47 to double
  %49 = select i1 %46, double 1.000000e+00, double %48
  %50 = fmul double %44, %49
  %51 = fptrunc double %50 to float
  %52 = tail call double @slantp_(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef %6) #3
  %53 = fptrunc double %52 to float
  %54 = fcmp ogt float %53, 0.000000e+00
  br i1 %54, label %55, label %.loopexit

55:                                               ; preds = %43
  store float 0.000000e+00, ptr %14, align 4, !tbaa !10
  store i8 78, ptr %15, align 1, !tbaa !9
  store i64 0, ptr %11, align 8, !tbaa !5
  %56 = load i64, ptr %3, align 8, !tbaa !5
  %57 = getelementptr float, ptr %6, i64 %56
  %58 = call i32 @slacn2_(ptr noundef nonnull %3, ptr noundef %57, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %14, ptr noundef nonnull %11, ptr noundef nonnull %13) #3
  %59 = load i64, ptr %11, align 8, !tbaa !5
  %.not8086 = icmp eq i64 %59, 0
  br i1 %.not8086, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %55, %80
  %60 = phi i64 [ %84, %80 ], [ %59, %55 ]
  %61 = icmp eq i64 %60, %.
  %62 = load i64, ptr %3, align 8, !tbaa !5
  %.idx81 = shl i64 %62, 3
  %63 = getelementptr i8, ptr %6, i64 %.idx81
  %.str.7..str.8 = select i1 %61, ptr @.str.7, ptr @.str.8
  %64 = call i32 @slatps_(ptr noundef %1, ptr noundef nonnull %.str.7..str.8, ptr noundef %2, ptr noundef nonnull %15, ptr noundef nonnull %3, ptr noundef %4, ptr noundef %6, ptr noundef nonnull %12, ptr noundef %63, ptr noundef nonnull %8) #3
  store i8 89, ptr %15, align 1, !tbaa !9
  %65 = load float, ptr %12, align 4, !tbaa !10
  %66 = fcmp une float %65, 1.000000e+00
  br i1 %66, label %67, label %80

67:                                               ; preds = %.lr.ph
  %68 = call i64 @f2c_isamax(ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull @c__1) #3
  %69 = getelementptr inbounds float, ptr %16, i64 %68
  %70 = load float, ptr %69, align 4, !tbaa !10
  %71 = fcmp oge float %70, 0.000000e+00
  %72 = fneg float %70
  %73 = select i1 %71, float %70, float %72
  %74 = load float, ptr %12, align 4
  %75 = fmul float %73, %51
  %76 = fcmp olt float %74, %75
  %77 = fcmp oeq float %74, 0.000000e+00
  %or.cond = or i1 %77, %76
  br i1 %or.cond, label %.loopexit, label %78

78:                                               ; preds = %67
  %79 = call i32 @srscl_(ptr noundef nonnull %3, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #3
  br label %80

80:                                               ; preds = %78, %.lr.ph
  %81 = load i64, ptr %3, align 8, !tbaa !5
  %82 = getelementptr float, ptr %6, i64 %81
  %83 = call i32 @slacn2_(ptr noundef nonnull %3, ptr noundef %82, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %14, ptr noundef nonnull %11, ptr noundef nonnull %13) #3
  %84 = load i64, ptr %11, align 8, !tbaa !5
  %.not80 = icmp eq i64 %84, 0
  br i1 %.not80, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %80, %55
  %85 = load float, ptr %14, align 4, !tbaa !10
  %86 = fcmp une float %85, 0.000000e+00
  br i1 %86, label %87, label %.loopexit

87:                                               ; preds = %._crit_edge
  %88 = fdiv float 1.000000e+00, %53
  %89 = fdiv float %88, %85
  store float %89, ptr %5, align 4, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %67, %._crit_edge, %87, %43, %42, %.thread83
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #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 double @slamch_(ptr noundef) local_unnamed_addr #2

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

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

declare i32 @slatps_(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 i64 @f2c_isamax(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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


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