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

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

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

42:                                               ; preds = %8
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = call i64 @lsame_(ptr noundef %43, ptr noundef @.str.1)
  %45 = icmp ne i64 %44, 0
  br i1 %45, label %48, label %46

46:                                               ; preds = %42
  %47 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -1, ptr %47, align 8, !tbaa !9
  br label %62

48:                                               ; preds = %42, %8
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = load i64, ptr %49, align 8, !tbaa !9
  %51 = icmp slt i64 %50, 0
  br i1 %51, label %52, label %54

52:                                               ; preds = %48
  %53 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -2, ptr %53, align 8, !tbaa !9
  br label %61

54:                                               ; preds = %48
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = load float, ptr %55, align 4, !tbaa !11
  %57 = fcmp olt float %56, 0.000000e+00
  br i1 %57, label %58, label %60

58:                                               ; preds = %54
  %59 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -4, ptr %59, align 8, !tbaa !9
  br label %60

60:                                               ; preds = %58, %54
  br label %61

61:                                               ; preds = %60, %52
  br label %62

62:                                               ; preds = %61, %46
  %63 = load ptr, ptr %17, align 8, !tbaa !5
  %64 = load i64, ptr %63, align 8, !tbaa !9
  %65 = icmp ne i64 %64, 0
  br i1 %65, label %66, label %71

66:                                               ; preds = %62
  %67 = load ptr, ptr %17, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = sub nsw i64 0, %68
  store i64 %69, ptr %18, align 8, !tbaa !9
  %70 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %18)
  store i32 0, ptr %9, align 4
  store i32 1, ptr %30, align 4
  br label %219

71:                                               ; preds = %62
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  store float 0.000000e+00, ptr %72, align 4, !tbaa !11
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = icmp eq i64 %74, 0
  br i1 %75, label %76, label %78

76:                                               ; preds = %71
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  store float 1.000000e+00, ptr %77, align 4, !tbaa !11
  store i32 0, ptr %9, align 4
  store i32 1, ptr %30, align 4
  br label %219

78:                                               ; preds = %71
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = load float, ptr %79, align 4, !tbaa !11
  %81 = fcmp oeq float %80, 0.000000e+00
  br i1 %81, label %82, label %83

82:                                               ; preds = %78
  store i32 0, ptr %9, align 4
  store i32 1, ptr %30, align 4
  br label %219

83:                                               ; preds = %78
  br label %84

84:                                               ; preds = %83
  %85 = call double @slamch_(ptr noundef @.str.3)
  %86 = fptrunc double %85 to float
  store float %86, ptr %29, align 4, !tbaa !11
  store i64 0, ptr %21, align 8, !tbaa !9
  %87 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  store i8 78, ptr %87, align 1, !tbaa !13
  br label %88

88:                                               ; preds = %206, %84
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = load i64, ptr %91, align 8, !tbaa !9
  %93 = add nsw i64 %92, 1
  %94 = getelementptr inbounds float, ptr %90, i64 %93
  %95 = load ptr, ptr %15, align 8, !tbaa !5
  %96 = getelementptr inbounds float, ptr %95, i64 1
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  %98 = getelementptr inbounds i64, ptr %97, i64 1
  %99 = getelementptr inbounds [3 x i64], ptr %23, i64 0, i64 0
  %100 = call i32 @slacn2_(ptr noundef %89, ptr noundef %94, ptr noundef %96, ptr noundef %98, ptr noundef %27, ptr noundef %21, ptr noundef %99)
  %101 = load i64, ptr %21, align 8, !tbaa !9
  %102 = icmp ne i64 %101, 0
  br i1 %102, label %103, label %207

103:                                              ; preds = %88
  %104 = load i64, ptr %24, align 8, !tbaa !9
  %105 = icmp ne i64 %104, 0
  br i1 %105, label %106, label %136

106:                                              ; preds = %103
  %107 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  %110 = getelementptr inbounds float, ptr %109, i64 1
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = getelementptr inbounds float, ptr %111, i64 1
  %113 = load ptr, ptr %15, align 8, !tbaa !5
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = load i64, ptr %114, align 8, !tbaa !9
  %116 = shl i64 %115, 1
  %117 = add nsw i64 %116, 1
  %118 = getelementptr inbounds float, ptr %113, i64 %117
  %119 = load ptr, ptr %17, align 8, !tbaa !5
  %120 = call i32 @slatps_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %107, ptr noundef %108, ptr noundef %110, ptr noundef %112, ptr noundef %25, ptr noundef %118, ptr noundef %119)
  %121 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  store i8 89, ptr %121, align 1, !tbaa !13
  %122 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = getelementptr inbounds float, ptr %124, i64 1
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  %127 = getelementptr inbounds float, ptr %126, i64 1
  %128 = load ptr, ptr %15, align 8, !tbaa !5
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = load i64, ptr %129, align 8, !tbaa !9
  %131 = shl i64 %130, 1
  %132 = add nsw i64 %131, 1
  %133 = getelementptr inbounds float, ptr %128, i64 %132
  %134 = load ptr, ptr %17, align 8, !tbaa !5
  %135 = call i32 @slatps_(ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %122, ptr noundef %123, ptr noundef %125, ptr noundef %127, ptr noundef %26, ptr noundef %133, ptr noundef %134)
  br label %166

136:                                              ; preds = %103
  %137 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = load ptr, ptr %12, align 8, !tbaa !5
  %140 = getelementptr inbounds float, ptr %139, i64 1
  %141 = load ptr, ptr %15, align 8, !tbaa !5
  %142 = getelementptr inbounds float, ptr %141, i64 1
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  %145 = load i64, ptr %144, align 8, !tbaa !9
  %146 = shl i64 %145, 1
  %147 = add nsw i64 %146, 1
  %148 = getelementptr inbounds float, ptr %143, i64 %147
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = call i32 @slatps_(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %137, ptr noundef %138, ptr noundef %140, ptr noundef %142, ptr noundef %25, ptr noundef %148, ptr noundef %149)
  %151 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  store i8 89, ptr %151, align 1, !tbaa !13
  %152 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  %155 = getelementptr inbounds float, ptr %154, i64 1
  %156 = load ptr, ptr %15, align 8, !tbaa !5
  %157 = getelementptr inbounds float, ptr %156, i64 1
  %158 = load ptr, ptr %15, align 8, !tbaa !5
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = load i64, ptr %159, align 8, !tbaa !9
  %161 = shl i64 %160, 1
  %162 = add nsw i64 %161, 1
  %163 = getelementptr inbounds float, ptr %158, i64 %162
  %164 = load ptr, ptr %17, align 8, !tbaa !5
  %165 = call i32 @slatps_(ptr noundef @.str.8, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %152, ptr noundef %153, ptr noundef %155, ptr noundef %157, ptr noundef %26, ptr noundef %163, ptr noundef %164)
  br label %166

166:                                              ; preds = %136, %106
  %167 = load float, ptr %25, align 4, !tbaa !11
  %168 = load float, ptr %26, align 4, !tbaa !11
  %169 = fmul float %167, %168
  store float %169, ptr %22, align 4, !tbaa !11
  %170 = load float, ptr %22, align 4, !tbaa !11
  %171 = fcmp une float %170, 1.000000e+00
  br i1 %171, label %172, label %206

172:                                              ; preds = %166
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  %174 = load ptr, ptr %15, align 8, !tbaa !5
  %175 = getelementptr inbounds float, ptr %174, i64 1
  %176 = call i64 @f2c_isamax(ptr noundef %173, ptr noundef %175, ptr noundef @c__1)
  store i64 %176, ptr %20, align 8, !tbaa !9
  %177 = load float, ptr %22, align 4, !tbaa !11
  %178 = fpext float %177 to double
  %179 = load ptr, ptr %15, align 8, !tbaa !5
  %180 = load i64, ptr %20, align 8, !tbaa !9
  %181 = getelementptr inbounds float, ptr %179, i64 %180
  %182 = load float, ptr %181, align 4, !tbaa !11
  store float %182, ptr %19, align 4, !tbaa !11
  %183 = load float, ptr %19, align 4, !tbaa !11
  %184 = fcmp oge float %183, 0.000000e+00
  br i1 %184, label %185, label %187

185:                                              ; preds = %172
  %186 = load float, ptr %19, align 4, !tbaa !11
  br label %190

187:                                              ; preds = %172
  %188 = load float, ptr %19, align 4, !tbaa !11
  %189 = fneg float %188
  br label %190

190:                                              ; preds = %187, %185
  %191 = phi float [ %186, %185 ], [ %189, %187 ]
  %192 = fpext float %191 to double
  %193 = load float, ptr %29, align 4, !tbaa !11
  %194 = fpext float %193 to double
  %195 = fmul double %192, %194
  %196 = fcmp olt double %178, %195
  br i1 %196, label %200, label %197

197:                                              ; preds = %190
  %198 = load float, ptr %22, align 4, !tbaa !11
  %199 = fcmp oeq float %198, 0.000000e+00
  br i1 %199, label %200, label %201

200:                                              ; preds = %197, %190
  br label %218

201:                                              ; preds = %197
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = load ptr, ptr %15, align 8, !tbaa !5
  %204 = getelementptr inbounds float, ptr %203, i64 1
  %205 = call i32 @srscl_(ptr noundef %202, ptr noundef %22, ptr noundef %204, ptr noundef @c__1)
  br label %206

206:                                              ; preds = %201, %166
  br label %88

207:                                              ; preds = %88
  %208 = load float, ptr %27, align 4, !tbaa !11
  %209 = fcmp une float %208, 0.000000e+00
  br i1 %209, label %210, label %217

210:                                              ; preds = %207
  %211 = load float, ptr %27, align 4, !tbaa !11
  %212 = fdiv float 1.000000e+00, %211
  %213 = load ptr, ptr %13, align 8, !tbaa !5
  %214 = load float, ptr %213, align 4, !tbaa !11
  %215 = fdiv float %212, %214
  %216 = load ptr, ptr %14, align 8, !tbaa !5
  store float %215, ptr %216, align 4, !tbaa !11
  br label %217

217:                                              ; preds = %210, %207
  br label %218

218:                                              ; preds = %217, %200
  store i32 0, ptr %9, align 4
  store i32 1, ptr %30, align 4
  br label %219

219:                                              ; preds = %218, %82, %76, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 24, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  %220 = load i32, ptr %9, align 4
  ret i32 %220
}

; 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 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 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!7, !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@c__1 = external hidden global i64, align 8

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

19:                                               ; preds = %8
  %20 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #3
  %.not62 = icmp eq i64 %20, 0
  br i1 %.not62, label %.thread.sink.split, label %21

21:                                               ; preds = %19, %8
  %22 = load i64, ptr %1, align 8, !tbaa !5
  %23 = icmp slt i64 %22, 0
  br i1 %23, label %.thread.sink.split, label %24

24:                                               ; preds = %21
  %25 = load float, ptr %3, align 4, !tbaa !9
  %26 = fcmp olt float %25, 0.000000e+00
  br i1 %26, label %.thread.sink.split, label %27

27:                                               ; preds = %24
  %.pr = load i64, ptr %7, align 8, !tbaa !5
  %.not63 = icmp eq i64 %.pr, 0
  br i1 %.not63, label %31, label %.thread

.thread.sink.split:                               ; preds = %24, %21, %19
  %.sink = phi i64 [ -1, %19 ], [ -2, %21 ], [ -4, %24 ]
  store i64 %.sink, ptr %7, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %27
  %28 = phi i64 [ %.pr, %27 ], [ %.sink, %.thread.sink.split ]
  %29 = sub nsw i64 0, %28
  store i64 %29, ptr %9, align 8, !tbaa !5
  %30 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %9) #3
  br label %.loopexit

31:                                               ; preds = %27
  store float 0.000000e+00, ptr %4, align 4, !tbaa !9
  %32 = icmp eq i64 %22, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %31
  store float 1.000000e+00, ptr %4, align 4, !tbaa !9
  br label %.loopexit

34:                                               ; preds = %31
  %35 = load float, ptr %3, align 4, !tbaa !9
  %36 = fcmp oeq float %35, 0.000000e+00
  br i1 %36, label %.loopexit, label %37

37:                                               ; preds = %34
  %38 = tail call double @slamch_(ptr noundef nonnull @.str.3) #3
  store i64 0, ptr %10, align 8, !tbaa !5
  store i8 78, ptr %16, align 1, !tbaa !11
  %39 = load i64, ptr %1, align 8, !tbaa !5
  %40 = getelementptr float, ptr %5, i64 %39
  %41 = call i32 @slacn2_(ptr noundef nonnull %1, ptr noundef %40, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %12) #3
  %42 = load i64, ptr %10, align 8, !tbaa !5
  %.not6469 = icmp eq i64 %42, 0
  br i1 %.not6469, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %37
  %43 = fptrunc double %38 to float
  %44 = fpext float %43 to double
  br i1 %.not, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %70
  %45 = load i64, ptr %1, align 8, !tbaa !5
  %.idx.us = shl i64 %45, 3
  %46 = getelementptr i8, ptr %5, i64 %.idx.us
  %47 = call i32 @slatps_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %16, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %5, ptr noundef nonnull %13, ptr noundef %46, ptr noundef nonnull %7) #3
  store i8 89, ptr %16, align 1, !tbaa !11
  %48 = load i64, ptr %1, align 8, !tbaa !5
  %.idx65.us = shl i64 %48, 3
  %49 = getelementptr i8, ptr %5, i64 %.idx65.us
  %50 = call i32 @slatps_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %16, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %5, ptr noundef nonnull %14, ptr noundef %49, ptr noundef nonnull %7) #3
  %51 = load float, ptr %13, align 4, !tbaa !9
  %52 = load float, ptr %14, align 4, !tbaa !9
  %53 = fmul float %51, %52
  store float %53, ptr %11, align 4, !tbaa !9
  %54 = fcmp une float %53, 1.000000e+00
  br i1 %54, label %55, label %70

55:                                               ; preds = %.lr.ph.split.us
  %56 = call i64 @f2c_isamax(ptr noundef nonnull %1, ptr noundef %5, ptr noundef nonnull @c__1) #3
  %57 = load float, ptr %11, align 4
  %58 = fpext float %57 to double
  %59 = getelementptr inbounds float, ptr %17, i64 %56
  %60 = load float, ptr %59, align 4, !tbaa !9
  %61 = fcmp oge float %60, 0.000000e+00
  %62 = fneg float %60
  %63 = select i1 %61, float %60, float %62
  %64 = fpext float %63 to double
  %65 = fmul double %44, %64
  %66 = fcmp ogt double %65, %58
  %67 = fcmp oeq float %57, 0.000000e+00
  %or.cond.us = or i1 %67, %66
  br i1 %or.cond.us, label %.loopexit, label %68

68:                                               ; preds = %55
  %69 = call i32 @srscl_(ptr noundef nonnull %1, ptr noundef nonnull %11, ptr noundef nonnull %5, ptr noundef nonnull @c__1) #3
  br label %70

70:                                               ; preds = %68, %.lr.ph.split.us
  %71 = load i64, ptr %1, align 8, !tbaa !5
  %72 = getelementptr float, ptr %5, i64 %71
  %73 = call i32 @slacn2_(ptr noundef nonnull %1, ptr noundef %72, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %12) #3
  %74 = load i64, ptr %10, align 8, !tbaa !5
  %.not64.us = icmp eq i64 %74, 0
  br i1 %.not64.us, label %._crit_edge, label %.lr.ph.split.us

.lr.ph.split:                                     ; preds = %.lr.ph, %100
  %75 = load i64, ptr %1, align 8, !tbaa !5
  %.idx66 = shl i64 %75, 3
  %76 = getelementptr i8, ptr %5, i64 %.idx66
  %77 = call i32 @slatps_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %16, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %5, ptr noundef nonnull %13, ptr noundef %76, ptr noundef nonnull %7) #3
  store i8 89, ptr %16, align 1, !tbaa !11
  %78 = load i64, ptr %1, align 8, !tbaa !5
  %.idx67 = shl i64 %78, 3
  %79 = getelementptr i8, ptr %5, i64 %.idx67
  %80 = call i32 @slatps_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %16, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %5, ptr noundef nonnull %14, ptr noundef %79, ptr noundef nonnull %7) #3
  %81 = load float, ptr %13, align 4, !tbaa !9
  %82 = load float, ptr %14, align 4, !tbaa !9
  %83 = fmul float %81, %82
  store float %83, ptr %11, align 4, !tbaa !9
  %84 = fcmp une float %83, 1.000000e+00
  br i1 %84, label %85, label %100

85:                                               ; preds = %.lr.ph.split
  %86 = call i64 @f2c_isamax(ptr noundef nonnull %1, ptr noundef %5, ptr noundef nonnull @c__1) #3
  %87 = load float, ptr %11, align 4
  %88 = fpext float %87 to double
  %89 = getelementptr inbounds float, ptr %17, i64 %86
  %90 = load float, ptr %89, align 4, !tbaa !9
  %91 = fcmp oge float %90, 0.000000e+00
  %92 = fneg float %90
  %93 = select i1 %91, float %90, float %92
  %94 = fpext float %93 to double
  %95 = fmul double %44, %94
  %96 = fcmp ogt double %95, %88
  %97 = fcmp oeq float %87, 0.000000e+00
  %or.cond = or i1 %97, %96
  br i1 %or.cond, label %.loopexit, label %98

98:                                               ; preds = %85
  %99 = call i32 @srscl_(ptr noundef nonnull %1, ptr noundef nonnull %11, ptr noundef nonnull %5, ptr noundef nonnull @c__1) #3
  br label %100

100:                                              ; preds = %98, %.lr.ph.split
  %101 = load i64, ptr %1, align 8, !tbaa !5
  %102 = getelementptr float, ptr %5, i64 %101
  %103 = call i32 @slacn2_(ptr noundef nonnull %1, ptr noundef %102, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %12) #3
  %104 = load i64, ptr %10, align 8, !tbaa !5
  %.not64 = icmp eq i64 %104, 0
  br i1 %.not64, label %._crit_edge, label %.lr.ph.split

._crit_edge:                                      ; preds = %100, %70, %37
  %105 = load float, ptr %15, align 4, !tbaa !9
  %106 = fcmp une float %105, 0.000000e+00
  br i1 %106, label %107, label %.loopexit

107:                                              ; preds = %._crit_edge
  %108 = fdiv float 1.000000e+00, %105
  %109 = load float, ptr %3, align 4, !tbaa !9
  %110 = fdiv float %108, %109
  store float %110, ptr %4, align 4, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %85, %55, %107, %._crit_edge, %34, %33, %.thread
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #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 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 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!7, !7, i64 0}


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