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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @spptrf_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca float, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca float, align 4
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = getelementptr inbounds float, ptr %19, i32 -1
  store ptr %20, ptr %8, align 8, !tbaa !5
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 0, ptr %21, align 8, !tbaa !9
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = call i64 @lsame_(ptr noundef %22, ptr noundef @.str)
  store i64 %23, ptr %17, align 8, !tbaa !9
  %24 = load i64, ptr %17, align 8, !tbaa !9
  %25 = icmp ne i64 %24, 0
  br i1 %25, label %32, label %26

26:                                               ; preds = %4
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call i64 @lsame_(ptr noundef %27, ptr noundef @.str.1)
  %29 = icmp ne i64 %28, 0
  br i1 %29, label %32, label %30

30:                                               ; preds = %26
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 -1, ptr %31, align 8, !tbaa !9
  br label %39

32:                                               ; preds = %26, %4
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = load i64, ptr %33, align 8, !tbaa !9
  %35 = icmp slt i64 %34, 0
  br i1 %35, label %36, label %38

36:                                               ; preds = %32
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 -2, ptr %37, align 8, !tbaa !9
  br label %38

38:                                               ; preds = %36, %32
  br label %39

39:                                               ; preds = %38, %30
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = load i64, ptr %40, align 8, !tbaa !9
  %42 = icmp ne i64 %41, 0
  br i1 %42, label %43, label %48

43:                                               ; preds = %39
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = sub nsw i64 0, %45
  store i64 %46, ptr %10, align 8, !tbaa !9
  %47 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %10)
  store i32 0, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %195

48:                                               ; preds = %39
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = load i64, ptr %49, align 8, !tbaa !9
  %51 = icmp eq i64 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %48
  store i32 0, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %195

53:                                               ; preds = %48
  %54 = load i64, ptr %17, align 8, !tbaa !9
  %55 = icmp ne i64 %54, 0
  br i1 %55, label %56, label %116

56:                                               ; preds = %53
  store i64 0, ptr %15, align 8, !tbaa !9
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = load i64, ptr %57, align 8, !tbaa !9
  store i64 %58, ptr %10, align 8, !tbaa !9
  store i64 1, ptr %13, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %112, %56
  %60 = load i64, ptr %13, align 8, !tbaa !9
  %61 = load i64, ptr %10, align 8, !tbaa !9
  %62 = icmp sle i64 %60, %61
  br i1 %62, label %63, label %115

63:                                               ; preds = %59
  %64 = load i64, ptr %15, align 8, !tbaa !9
  %65 = add nsw i64 %64, 1
  store i64 %65, ptr %14, align 8, !tbaa !9
  %66 = load i64, ptr %13, align 8, !tbaa !9
  %67 = load i64, ptr %15, align 8, !tbaa !9
  %68 = add nsw i64 %67, %66
  store i64 %68, ptr %15, align 8, !tbaa !9
  %69 = load i64, ptr %13, align 8, !tbaa !9
  %70 = icmp sgt i64 %69, 1
  br i1 %70, label %71, label %80

71:                                               ; preds = %63
  %72 = load i64, ptr %13, align 8, !tbaa !9
  %73 = sub nsw i64 %72, 1
  store i64 %73, ptr %11, align 8, !tbaa !9
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds float, ptr %74, i64 1
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = load i64, ptr %14, align 8, !tbaa !9
  %78 = getelementptr inbounds float, ptr %76, i64 %77
  %79 = call i32 @f2c_stpsv(ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %11, ptr noundef %75, ptr noundef %78, ptr noundef @c__1)
  br label %80

80:                                               ; preds = %71, %63
  %81 = load i64, ptr %13, align 8, !tbaa !9
  %82 = sub nsw i64 %81, 1
  store i64 %82, ptr %11, align 8, !tbaa !9
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = load i64, ptr %15, align 8, !tbaa !9
  %85 = getelementptr inbounds float, ptr %83, i64 %84
  %86 = load float, ptr %85, align 4, !tbaa !11
  %87 = fpext float %86 to double
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = load i64, ptr %14, align 8, !tbaa !9
  %90 = getelementptr inbounds float, ptr %88, i64 %89
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = load i64, ptr %14, align 8, !tbaa !9
  %93 = getelementptr inbounds float, ptr %91, i64 %92
  %94 = call double @f2c_sdot(ptr noundef %11, ptr noundef %90, ptr noundef @c__1, ptr noundef %93, ptr noundef @c__1)
  %95 = fsub double %87, %94
  %96 = fptrunc double %95 to float
  store float %96, ptr %16, align 4, !tbaa !11
  %97 = load float, ptr %16, align 4, !tbaa !11
  %98 = fcmp ole float %97, 0.000000e+00
  br i1 %98, label %99, label %104

99:                                               ; preds = %80
  %100 = load float, ptr %16, align 4, !tbaa !11
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = load i64, ptr %15, align 8, !tbaa !9
  %103 = getelementptr inbounds float, ptr %101, i64 %102
  store float %100, ptr %103, align 4, !tbaa !11
  br label %191

104:                                              ; preds = %80
  %105 = load float, ptr %16, align 4, !tbaa !11
  %106 = fpext float %105 to double
  %107 = call double @sqrt(double noundef %106) #4
  %108 = fptrunc double %107 to float
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = load i64, ptr %15, align 8, !tbaa !9
  %111 = getelementptr inbounds float, ptr %109, i64 %110
  store float %108, ptr %111, align 4, !tbaa !11
  br label %112

112:                                              ; preds = %104
  %113 = load i64, ptr %13, align 8, !tbaa !9
  %114 = add nsw i64 %113, 1
  store i64 %114, ptr %13, align 8, !tbaa !9
  br label %59, !llvm.loop !13

115:                                              ; preds = %59
  br label %190

116:                                              ; preds = %53
  store i64 1, ptr %15, align 8, !tbaa !9
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = load i64, ptr %117, align 8, !tbaa !9
  store i64 %118, ptr %10, align 8, !tbaa !9
  store i64 1, ptr %13, align 8, !tbaa !9
  br label %119

119:                                              ; preds = %186, %116
  %120 = load i64, ptr %13, align 8, !tbaa !9
  %121 = load i64, ptr %10, align 8, !tbaa !9
  %122 = icmp sle i64 %120, %121
  br i1 %122, label %123, label %189

123:                                              ; preds = %119
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = load i64, ptr %15, align 8, !tbaa !9
  %126 = getelementptr inbounds float, ptr %124, i64 %125
  %127 = load float, ptr %126, align 4, !tbaa !11
  store float %127, ptr %16, align 4, !tbaa !11
  %128 = load float, ptr %16, align 4, !tbaa !11
  %129 = fcmp ole float %128, 0.000000e+00
  br i1 %129, label %130, label %135

130:                                              ; preds = %123
  %131 = load float, ptr %16, align 4, !tbaa !11
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = load i64, ptr %15, align 8, !tbaa !9
  %134 = getelementptr inbounds float, ptr %132, i64 %133
  store float %131, ptr %134, align 4, !tbaa !11
  br label %191

135:                                              ; preds = %123
  %136 = load float, ptr %16, align 4, !tbaa !11
  %137 = fpext float %136 to double
  %138 = call double @sqrt(double noundef %137) #4
  %139 = fptrunc double %138 to float
  store float %139, ptr %16, align 4, !tbaa !11
  %140 = load float, ptr %16, align 4, !tbaa !11
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = load i64, ptr %15, align 8, !tbaa !9
  %143 = getelementptr inbounds float, ptr %141, i64 %142
  store float %140, ptr %143, align 4, !tbaa !11
  %144 = load i64, ptr %13, align 8, !tbaa !9
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = load i64, ptr %145, align 8, !tbaa !9
  %147 = icmp slt i64 %144, %146
  br i1 %147, label %148, label %185

148:                                              ; preds = %135
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = load i64, ptr %149, align 8, !tbaa !9
  %151 = load i64, ptr %13, align 8, !tbaa !9
  %152 = sub nsw i64 %150, %151
  store i64 %152, ptr %11, align 8, !tbaa !9
  %153 = load float, ptr %16, align 4, !tbaa !11
  %154 = fdiv float 1.000000e+00, %153
  store float %154, ptr %12, align 4, !tbaa !11
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = load i64, ptr %15, align 8, !tbaa !9
  %157 = add nsw i64 %156, 1
  %158 = getelementptr inbounds float, ptr %155, i64 %157
  %159 = call i32 @f2c_sscal(ptr noundef %11, ptr noundef %12, ptr noundef %158, ptr noundef @c__1)
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = load i64, ptr %160, align 8, !tbaa !9
  %162 = load i64, ptr %13, align 8, !tbaa !9
  %163 = sub nsw i64 %161, %162
  store i64 %163, ptr %11, align 8, !tbaa !9
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = load i64, ptr %15, align 8, !tbaa !9
  %166 = add nsw i64 %165, 1
  %167 = getelementptr inbounds float, ptr %164, i64 %166
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = load i64, ptr %15, align 8, !tbaa !9
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = load i64, ptr %170, align 8, !tbaa !9
  %172 = add nsw i64 %169, %171
  %173 = load i64, ptr %13, align 8, !tbaa !9
  %174 = sub nsw i64 %172, %173
  %175 = add nsw i64 %174, 1
  %176 = getelementptr inbounds float, ptr %168, i64 %175
  %177 = call i32 @f2c_sspr(ptr noundef @.str.6, ptr noundef %11, ptr noundef @c_b16, ptr noundef %167, ptr noundef @c__1, ptr noundef %176)
  %178 = load i64, ptr %15, align 8, !tbaa !9
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  %180 = load i64, ptr %179, align 8, !tbaa !9
  %181 = add nsw i64 %178, %180
  %182 = load i64, ptr %13, align 8, !tbaa !9
  %183 = sub nsw i64 %181, %182
  %184 = add nsw i64 %183, 1
  store i64 %184, ptr %15, align 8, !tbaa !9
  br label %185

185:                                              ; preds = %148, %135
  br label %186

186:                                              ; preds = %185
  %187 = load i64, ptr %13, align 8, !tbaa !9
  %188 = add nsw i64 %187, 1
  store i64 %188, ptr %13, align 8, !tbaa !9
  br label %119, !llvm.loop !15

189:                                              ; preds = %119
  br label %190

190:                                              ; preds = %189, %115
  br label %194

191:                                              ; preds = %130, %99
  %192 = load i64, ptr %13, align 8, !tbaa !9
  %193 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 %192, ptr %193, align 8, !tbaa !9
  br label %194

194:                                              ; preds = %191, %190
  store i32 0, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %195

195:                                              ; preds = %194, %52, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %196 = load i32, ptr %5, align 4
  ret i32 %196
}

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 #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 = !{!"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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @spptrf_(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr nocapture noundef %3) local_unnamed_addr #0 {
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  %8 = getelementptr inbounds i8, ptr %2, i64 -4
  store i64 0, ptr %3, align 8, !tbaa !5
  %9 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  %.not = icmp eq i64 %9, 0
  br i1 %.not, label %10, label %12

10:                                               ; preds = %4
  %11 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #3
  %.not79 = icmp eq i64 %11, 0
  br i1 %.not79, label %.thread.sink.split, label %12

12:                                               ; preds = %10, %4
  %13 = load i64, ptr %1, align 8, !tbaa !5
  %14 = icmp slt i64 %13, 0
  br i1 %14, label %.thread.sink.split, label %15

15:                                               ; preds = %12
  %.pr = load i64, ptr %3, align 8, !tbaa !5
  %.not80 = icmp eq i64 %.pr, 0
  br i1 %.not80, label %19, label %.thread

.thread.sink.split:                               ; preds = %12, %10
  %.sink = phi i64 [ -1, %10 ], [ -2, %12 ]
  store i64 %.sink, ptr %3, align 8, !tbaa !5
  br label %.thread

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

19:                                               ; preds = %15
  %20 = icmp eq i64 %13, 0
  br i1 %20, label %.loopexit, label %21

21:                                               ; preds = %19
  br i1 %.not, label %.lr.ph97, label %22

22:                                               ; preds = %21
  %.pre = load float, ptr %2, align 4, !tbaa !9
  store i64 0, ptr %6, align 8, !tbaa !5
  %23 = fpext float %.pre to double
  %24 = call double @f2c_sdot(ptr noundef nonnull %6, ptr noundef nonnull %2, ptr noundef nonnull @c__1, ptr noundef nonnull %2, ptr noundef nonnull @c__1) #3
  %25 = fsub double %23, %24
  %26 = fptrunc double %25 to float
  %27 = fcmp ugt float %26, 0.000000e+00
  br i1 %27, label %28, label %.loopexit105

28:                                               ; preds = %22
  %sqrtf83.peel = call float @sqrtf(float noundef %26) #4
  store float %sqrtf83.peel, ptr %2, align 4, !tbaa !9
  %.not82.not.peel.not = icmp eq i64 %13, 1
  br i1 %.not82.not.peel.not, label %.loopexit, label %.lr.ph.peel.next

.lr.ph.peel.next:                                 ; preds = %28, %41
  %.07092 = phi i64 [ %29, %41 ], [ 1, %28 ]
  %.07191 = phi i64 [ %42, %41 ], [ 2, %28 ]
  %29 = add nuw nsw i64 %.07092, %.07191
  %30 = add nsw i64 %.07191, -1
  store i64 %30, ptr %6, align 8, !tbaa !5
  %31 = getelementptr float, ptr %2, i64 %.07092
  %32 = call i32 @f2c_stpsv(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %6, ptr noundef nonnull %2, ptr noundef %31, ptr noundef nonnull @c__1) #3
  store i64 %30, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds float, ptr %8, i64 %29
  %34 = load float, ptr %33, align 4, !tbaa !9
  %35 = fpext float %34 to double
  %36 = getelementptr float, ptr %2, i64 %.07092
  %37 = call double @f2c_sdot(ptr noundef nonnull %6, ptr noundef %36, ptr noundef nonnull @c__1, ptr noundef %36, ptr noundef nonnull @c__1) #3
  %38 = fsub double %35, %37
  %39 = fptrunc double %38 to float
  %40 = fcmp ugt float %39, 0.000000e+00
  br i1 %40, label %41, label %.loopexit105

.loopexit105:                                     ; preds = %.lr.ph.peel.next, %22
  %.lcssa102 = phi ptr [ %2, %22 ], [ %33, %.lr.ph.peel.next ]
  %.lcssa = phi float [ %26, %22 ], [ %39, %.lr.ph.peel.next ]
  %.07191.lcssa = phi i64 [ 1, %22 ], [ %.07191, %.lr.ph.peel.next ]
  store float %.lcssa, ptr %.lcssa102, align 4, !tbaa !9
  br label %.loopexit85

41:                                               ; preds = %.lr.ph.peel.next
  %sqrtf83 = call float @sqrtf(float noundef %39) #4
  store float %sqrtf83, ptr %33, align 4, !tbaa !9
  %42 = add nuw nsw i64 %.07191, 1
  %.not82.not = icmp slt i64 %.07191, %13
  br i1 %.not82.not, label %.lr.ph.peel.next, label %.loopexit, !llvm.loop !11

.lr.ph97:                                         ; preds = %21, %63
  %.172.neg96 = phi i64 [ %.172.neg, %63 ], [ -1, %21 ]
  %.195 = phi i64 [ %.2, %63 ], [ 1, %21 ]
  %.17294 = phi i64 [ %64, %63 ], [ 1, %21 ]
  %43 = getelementptr inbounds float, ptr %8, i64 %.195
  %44 = load float, ptr %43, align 4, !tbaa !9
  %45 = fcmp ugt float %44, 0.000000e+00
  br i1 %45, label %46, label %.loopexit85

46:                                               ; preds = %.lr.ph97
  %sqrtf = call float @sqrtf(float noundef %44) #4
  store float %sqrtf, ptr %43, align 4, !tbaa !9
  %47 = load i64, ptr %1, align 8, !tbaa !5
  %48 = icmp slt i64 %.17294, %47
  br i1 %48, label %49, label %63

49:                                               ; preds = %46
  %50 = sub nsw i64 %47, %.17294
  store i64 %50, ptr %6, align 8, !tbaa !5
  %51 = fdiv float 1.000000e+00, %sqrtf
  store float %51, ptr %7, align 4, !tbaa !9
  %52 = getelementptr float, ptr %2, i64 %.195
  %53 = call i32 @f2c_sscal(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %52, ptr noundef nonnull @c__1) #3
  %54 = load i64, ptr %1, align 8, !tbaa !5
  %55 = sub nsw i64 %54, %.17294
  store i64 %55, ptr %6, align 8, !tbaa !5
  %56 = getelementptr float, ptr %52, i64 %.172.neg96
  %57 = getelementptr float, ptr %56, i64 %54
  %58 = call i32 @f2c_sspr(ptr noundef nonnull @.str.6, ptr noundef nonnull %6, ptr noundef nonnull @c_b16, ptr noundef %52, ptr noundef nonnull @c__1, ptr noundef %57) #3
  %59 = load i64, ptr %1, align 8, !tbaa !5
  %60 = add nsw i64 %.172.neg96, 1
  %61 = add i64 %60, %.195
  %62 = add i64 %61, %59
  br label %63

63:                                               ; preds = %46, %49
  %.2 = phi i64 [ %62, %49 ], [ %.195, %46 ]
  %64 = add nuw nsw i64 %.17294, 1
  %.172.neg = xor i64 %.17294, -1
  %.not81.not = icmp slt i64 %.17294, %13
  br i1 %.not81.not, label %.lr.ph97, label %.loopexit, !llvm.loop !14

.loopexit85:                                      ; preds = %.lr.ph97, %.loopexit105
  %.273 = phi i64 [ %.07191.lcssa, %.loopexit105 ], [ %.17294, %.lr.ph97 ]
  store i64 %.273, ptr %3, align 8, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %41, %63, %28, %.loopexit85, %19, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret i32 0
}

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

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

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

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

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

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

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

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

declare float @sqrtf(float) local_unnamed_addr

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 }
attributes #4 = { mustprogress nofree nounwind willreturn memory(write) "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" }

!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 = distinct !{!11, !12, !13}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.peeled.count", i32 1}
!14 = distinct !{!14, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass