; LLVM IR from sp-nitech/SPTK :: third_party/REAPER/epoch_tracker (epoch_tracker)

; 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"

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk6reaper12EpochTracker16CrossCorrelationERKSt6vectorIfSaIfEEiiiiPS4_(ptr noundef nonnull align 8 dereferenceable(500) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6) #1 align 2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca float, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !5
  %29 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  %32 = load i32, ptr %10, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds float, ptr %31, i64 %33
  store ptr %34, ptr %15, align 8, !tbaa !5
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  call void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %37)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store float 0.000000e+00, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %56, %7
  %39 = load i32, ptr %17, align 4, !tbaa !9
  %40 = load i32, ptr %13, align 4, !tbaa !9
  %41 = icmp slt i32 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %59

43:                                               ; preds = %38
  %44 = load ptr, ptr %15, align 8, !tbaa !5
  %45 = load i32, ptr %17, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds float, ptr %44, i64 %46
  %48 = load float, ptr %47, align 4, !tbaa !11
  %49 = load ptr, ptr %15, align 8, !tbaa !5
  %50 = load i32, ptr %17, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds float, ptr %49, i64 %51
  %53 = load float, ptr %52, align 4, !tbaa !11
  %54 = load float, ptr %16, align 4, !tbaa !11
  %55 = call float @llvm.fmuladd.f32(float %48, float %53, float %54)
  store float %55, ptr %16, align 4, !tbaa !11
  br label %56

56:                                               ; preds = %43
  %57 = load i32, ptr %17, align 4, !tbaa !9
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %17, align 4, !tbaa !9
  br label %38, !llvm.loop !13

59:                                               ; preds = %42
  %60 = load float, ptr %16, align 4, !tbaa !11
  %61 = fpext float %60 to double
  %62 = fcmp oeq double %61, 0.000000e+00
  br i1 %62, label %63, label %78

63:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %74, %63
  %65 = load i32, ptr %18, align 4, !tbaa !9
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %77

69:                                               ; preds = %64
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = load i32, ptr %18, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %72) #5
  store float 0.000000e+00, ptr %73, align 4, !tbaa !11
  br label %74

74:                                               ; preds = %69
  %75 = load i32, ptr %18, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %18, align 4, !tbaa !9
  br label %64, !llvm.loop !15

77:                                               ; preds = %68
  store i32 1, ptr %19, align 4
  br label %193

78:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %79 = load i32, ptr %11, align 4, !tbaa !9
  %80 = load i32, ptr %13, align 4, !tbaa !9
  %81 = add nsw i32 %79, %80
  store i32 %81, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  store double 0.000000e+00, ptr %21, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %82 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %82, ptr %22, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %103, %78
  %84 = load i32, ptr %22, align 4, !tbaa !9
  %85 = load i32, ptr %20, align 4, !tbaa !9
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 8, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %106

88:                                               ; preds = %83
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = load i32, ptr %22, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds float, ptr %89, i64 %91
  %93 = load float, ptr %92, align 4, !tbaa !11
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = load i32, ptr %22, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds float, ptr %94, i64 %96
  %98 = load float, ptr %97, align 4, !tbaa !11
  %99 = fmul float %93, %98
  %100 = fpext float %99 to double
  %101 = load double, ptr %21, align 8, !tbaa !16
  %102 = fadd double %101, %100
  store double %102, ptr %21, align 8, !tbaa !16
  br label %103

103:                                              ; preds = %88
  %104 = load i32, ptr %22, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %22, align 4, !tbaa !9
  br label %83, !llvm.loop !18

106:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %107 = load i32, ptr %11, align 4, !tbaa !9
  %108 = load i32, ptr %12, align 4, !tbaa !9
  %109 = add nsw i32 %107, %108
  store i32 %109, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %110 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %110, ptr %25, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %187, %106
  %112 = load i32, ptr %25, align 4, !tbaa !9
  %113 = load i32, ptr %23, align 4, !tbaa !9
  %114 = icmp slt i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 11, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %192

116:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store float 0.000000e+00, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %117 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %117, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %136, %116
  %119 = load i32, ptr %28, align 4, !tbaa !9
  %120 = load i32, ptr %13, align 4, !tbaa !9
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 14, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %141

123:                                              ; preds = %118
  %124 = load ptr, ptr %15, align 8, !tbaa !5
  %125 = load i32, ptr %28, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds float, ptr %124, i64 %126
  %128 = load float, ptr %127, align 4, !tbaa !11
  %129 = load ptr, ptr %15, align 8, !tbaa !5
  %130 = load i32, ptr %27, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds float, ptr %129, i64 %131
  %133 = load float, ptr %132, align 4, !tbaa !11
  %134 = load float, ptr %26, align 4, !tbaa !11
  %135 = call float @llvm.fmuladd.f32(float %128, float %133, float %134)
  store float %135, ptr %26, align 4, !tbaa !11
  br label %136

136:                                              ; preds = %123
  %137 = load i32, ptr %28, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %28, align 4, !tbaa !9
  %139 = load i32, ptr %27, align 4, !tbaa !9
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %27, align 4, !tbaa !9
  br label %118, !llvm.loop !19

141:                                              ; preds = %122
  %142 = load double, ptr %21, align 8, !tbaa !16
  %143 = fcmp ole double %142, 0.000000e+00
  br i1 %143, label %144, label %145

144:                                              ; preds = %141
  store double 1.000000e+00, ptr %21, align 8, !tbaa !16
  br label %145

145:                                              ; preds = %144, %141
  %146 = load float, ptr %26, align 4, !tbaa !11
  %147 = fpext float %146 to double
  %148 = load float, ptr %16, align 4, !tbaa !11
  %149 = fpext float %148 to double
  %150 = load double, ptr %21, align 8, !tbaa !16
  %151 = fmul double %149, %150
  %152 = call double @sqrt(double noundef %151) #5
  %153 = fdiv double %147, %152
  %154 = fptrunc double %153 to float
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  %156 = load i32, ptr %24, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %155, i64 noundef %157) #5
  store float %154, ptr %158, align 4, !tbaa !11
  %159 = load ptr, ptr %15, align 8, !tbaa !5
  %160 = load i32, ptr %25, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds float, ptr %159, i64 %161
  %163 = load float, ptr %162, align 4, !tbaa !11
  %164 = load ptr, ptr %15, align 8, !tbaa !5
  %165 = load i32, ptr %25, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds float, ptr %164, i64 %166
  %168 = load float, ptr %167, align 4, !tbaa !11
  %169 = fmul float %163, %168
  %170 = fpext float %169 to double
  %171 = load double, ptr %21, align 8, !tbaa !16
  %172 = fsub double %171, %170
  store double %172, ptr %21, align 8, !tbaa !16
  %173 = load ptr, ptr %15, align 8, !tbaa !5
  %174 = load i32, ptr %27, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds float, ptr %173, i64 %175
  %177 = load float, ptr %176, align 4, !tbaa !11
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = load i32, ptr %27, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds float, ptr %178, i64 %180
  %182 = load float, ptr %181, align 4, !tbaa !11
  %183 = fmul float %177, %182
  %184 = fpext float %183 to double
  %185 = load double, ptr %21, align 8, !tbaa !16
  %186 = fadd double %185, %184
  store double %186, ptr %21, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %187

187:                                              ; preds = %145
  %188 = load i32, ptr %25, align 4, !tbaa !9
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %25, align 4, !tbaa !9
  %190 = load i32, ptr %24, align 4, !tbaa !9
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %24, align 4, !tbaa !9
  br label %111, !llvm.loop !20

192:                                              ; preds = %115
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %193

193:                                              ; preds = %192, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !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}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !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"

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk6reaper12EpochTracker16CrossCorrelationERKSt6vectorIfSaIfEEiiiiPS4_(ptr nocapture noundef nonnull readnone align 8 dereferenceable(500) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6) local_unnamed_addr #0 align 2 {
  %8 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %9 = sext i32 %2 to i64
  %10 = getelementptr inbounds float, ptr %8, i64 %9
  %11 = sext i32 %4 to i64
  tail call void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %11)
  %12 = icmp sgt i32 %5, 0
  br i1 %12, label %.lr.ph.preheader, label %.preheader

.lr.ph.preheader:                                 ; preds = %7
  %wide.trip.count = zext nneg i32 %5 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %13 = icmp ult i32 %5, 4
  br i1 %13, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa133.ph = phi float [ poison, %.lr.ph.preheader ], [ %31, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %.06676.unr = phi float [ 0.000000e+00, %.lr.ph.preheader ], [ %31, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.unr-lcssa ]
  %.06676.epil = phi float [ %16, %.lr.ph.epil ], [ %.06676.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %14 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.epil
  %15 = load float, ptr %14, align 4, !tbaa !5
  %16 = tail call float @llvm.fmuladd.f32(float %15, float %15, float %.06676.epil)
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.unr-lcssa
  %.lcssa133 = phi float [ %.lcssa133.ph, %._crit_edge.unr-lcssa ], [ %16, %.lr.ph.epil ]
  %17 = fpext float %.lcssa133 to double
  %18 = fcmp oeq float %.lcssa133, 0.000000e+00
  br i1 %18, label %.preheader, label %33

.preheader:                                       ; preds = %7, %._crit_edge
  %19 = icmp sgt i32 %4, 0
  br i1 %19, label %.lr.ph94.preheader, label %.loopexit

.lr.ph94.preheader:                               ; preds = %.preheader
  %wide.trip.count122 = zext nneg i32 %4 to i64
  br label %.lr.ph94

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %.06676 = phi float [ 0.000000e+00, %.lr.ph.preheader.new ], [ %31, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %20 = getelementptr inbounds float, ptr %10, i64 %indvars.iv
  %21 = load float, ptr %20, align 4, !tbaa !5
  %22 = tail call float @llvm.fmuladd.f32(float %21, float %21, float %.06676)
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %23 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.next
  %24 = load float, ptr %23, align 4, !tbaa !5
  %25 = tail call float @llvm.fmuladd.f32(float %24, float %24, float %22)
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %26 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.next.1
  %27 = load float, ptr %26, align 4, !tbaa !5
  %28 = tail call float @llvm.fmuladd.f32(float %27, float %27, float %25)
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %29 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.next.2
  %30 = load float, ptr %29, align 4, !tbaa !5
  %31 = tail call float @llvm.fmuladd.f32(float %30, float %30, float %28)
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !11

.lr.ph94:                                         ; preds = %.lr.ph94.preheader, %.lr.ph94
  %indvars.iv119 = phi i64 [ 0, %.lr.ph94.preheader ], [ %indvars.iv.next120, %.lr.ph94 ]
  %32 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv119) #4
  store float 0.000000e+00, ptr %32, align 4, !tbaa !5
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %exitcond123.not = icmp eq i64 %indvars.iv.next120, %wide.trip.count122
  br i1 %exitcond123.not, label %.loopexit, label %.lr.ph94, !llvm.loop !13

33:                                               ; preds = %._crit_edge
  br i1 %12, label %.lr.ph80.preheader, label %._crit_edge81

.lr.ph80.preheader:                               ; preds = %33
  %34 = add nsw i32 %5, %3
  %35 = sext i32 %3 to i64
  %36 = sext i32 %34 to i64
  br label %.lr.ph80

._crit_edge81:                                    ; preds = %.lr.ph80, %33
  %.068.lcssa = phi double [ 0.000000e+00, %33 ], [ %46, %.lr.ph80 ]
  %37 = icmp sgt i32 %4, 0
  br i1 %37, label %.preheader73.lr.ph, label %.loopexit

.preheader73.lr.ph:                               ; preds = %._crit_edge81
  %38 = add nsw i32 %4, %3
  %39 = sext i32 %3 to i64
  %40 = sext i32 %38 to i64
  %wide.trip.count112 = zext nneg i32 %5 to i64
  %xtraiter135 = and i64 %wide.trip.count112, 3
  %41 = icmp ult i32 %5, 4
  %unroll_iter140 = and i64 %wide.trip.count112, 2147483644
  %invariant.gep = getelementptr i8, ptr %10, i64 4
  %invariant.gep147 = getelementptr i8, ptr %10, i64 8
  %invariant.gep149 = getelementptr i8, ptr %10, i64 12
  %lcmp.mod137.not = icmp eq i64 %xtraiter135, 0
  br label %.preheader73

.lr.ph80:                                         ; preds = %.lr.ph80.preheader, %.lr.ph80
  %indvars.iv100 = phi i64 [ %35, %.lr.ph80.preheader ], [ %indvars.iv.next101, %.lr.ph80 ]
  %.06877 = phi double [ 0.000000e+00, %.lr.ph80.preheader ], [ %46, %.lr.ph80 ]
  %42 = getelementptr inbounds float, ptr %10, i64 %indvars.iv100
  %43 = load float, ptr %42, align 4, !tbaa !5
  %44 = fmul float %43, %43
  %45 = fpext float %44 to double
  %46 = fadd double %.06877, %45
  %indvars.iv.next101 = add nsw i64 %indvars.iv100, 1
  %47 = icmp slt i64 %indvars.iv.next101, %36
  br i1 %47, label %.lr.ph80, label %._crit_edge81, !llvm.loop !14

.preheader73:                                     ; preds = %.preheader73.lr.ph, %._crit_edge87
  %indvars.iv114 = phi i64 [ 0, %.preheader73.lr.ph ], [ %indvars.iv.next115, %._crit_edge87 ]
  %indvars.iv105 = phi i64 [ %39, %.preheader73.lr.ph ], [ %indvars.iv.next106, %._crit_edge87 ]
  %.190 = phi double [ %.068.lcssa, %.preheader73.lr.ph ], [ %70, %._crit_edge87 ]
  br i1 %12, label %.lr.ph86.preheader, label %._crit_edge87

.lr.ph86.preheader:                               ; preds = %.preheader73
  br i1 %41, label %._crit_edge87.loopexit.unr-lcssa, label %.lr.ph86

._crit_edge87.loopexit.unr-lcssa:                 ; preds = %.lr.ph86, %.lr.ph86.preheader
  %.lcssa.ph = phi float [ poison, %.lr.ph86.preheader ], [ %88, %.lr.ph86 ]
  %indvars.iv.next108.lcssa.ph = phi i64 [ poison, %.lr.ph86.preheader ], [ %indvars.iv.next108.3, %.lr.ph86 ]
  %indvars.iv107.unr = phi i64 [ %indvars.iv105, %.lr.ph86.preheader ], [ %indvars.iv.next108.3, %.lr.ph86 ]
  %indvars.iv103.unr = phi i64 [ 0, %.lr.ph86.preheader ], [ %indvars.iv.next104.3, %.lr.ph86 ]
  %.06383.unr = phi float [ 0.000000e+00, %.lr.ph86.preheader ], [ %88, %.lr.ph86 ]
  br i1 %lcmp.mod137.not, label %._crit_edge87, label %.lr.ph86.epil

.lr.ph86.epil:                                    ; preds = %._crit_edge87.loopexit.unr-lcssa, %.lr.ph86.epil
  %indvars.iv107.epil = phi i64 [ %indvars.iv.next108.epil, %.lr.ph86.epil ], [ %indvars.iv107.unr, %._crit_edge87.loopexit.unr-lcssa ]
  %indvars.iv103.epil = phi i64 [ %indvars.iv.next104.epil, %.lr.ph86.epil ], [ %indvars.iv103.unr, %._crit_edge87.loopexit.unr-lcssa ]
  %.06383.epil = phi float [ %52, %.lr.ph86.epil ], [ %.06383.unr, %._crit_edge87.loopexit.unr-lcssa ]
  %epil.iter136 = phi i64 [ %epil.iter136.next, %.lr.ph86.epil ], [ 0, %._crit_edge87.loopexit.unr-lcssa ]
  %48 = getelementptr inbounds float, ptr %10, i64 %indvars.iv103.epil
  %49 = load float, ptr %48, align 4, !tbaa !5
  %50 = getelementptr inbounds float, ptr %10, i64 %indvars.iv107.epil
  %51 = load float, ptr %50, align 4, !tbaa !5
  %52 = tail call float @llvm.fmuladd.f32(float %49, float %51, float %.06383.epil)
  %indvars.iv.next104.epil = add nuw nsw i64 %indvars.iv103.epil, 1
  %indvars.iv.next108.epil = add nsw i64 %indvars.iv107.epil, 1
  %epil.iter136.next = add i64 %epil.iter136, 1
  %epil.iter136.cmp.not = icmp eq i64 %epil.iter136.next, %xtraiter135
  br i1 %epil.iter136.cmp.not, label %._crit_edge87, label %.lr.ph86.epil, !llvm.loop !15

._crit_edge87:                                    ; preds = %._crit_edge87.loopexit.unr-lcssa, %.lr.ph86.epil, %.preheader73
  %.063.lcssa = phi float [ 0.000000e+00, %.preheader73 ], [ %.lcssa.ph, %._crit_edge87.loopexit.unr-lcssa ], [ %52, %.lr.ph86.epil ]
  %.062.lcssa.in = phi i64 [ %indvars.iv105, %.preheader73 ], [ %indvars.iv.next108.lcssa.ph, %._crit_edge87.loopexit.unr-lcssa ], [ %indvars.iv.next108.epil, %.lr.ph86.epil ]
  %53 = fcmp ugt double %.190, 0.000000e+00
  %.2 = select i1 %53, double %.190, double 1.000000e+00
  %54 = fpext float %.063.lcssa to double
  %55 = fmul double %.2, %17
  %56 = tail call double @sqrt(double noundef %55) #4
  %57 = fdiv double %54, %56
  %58 = fptrunc double %57 to float
  %59 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv114) #4
  store float %58, ptr %59, align 4, !tbaa !5
  %60 = getelementptr inbounds float, ptr %10, i64 %indvars.iv105
  %61 = load float, ptr %60, align 4, !tbaa !5
  %62 = fmul float %61, %61
  %63 = fpext float %62 to double
  %64 = fsub double %.2, %63
  %sext = shl i64 %.062.lcssa.in, 32
  %65 = ashr exact i64 %sext, 30
  %66 = getelementptr inbounds i8, ptr %10, i64 %65
  %67 = load float, ptr %66, align 4, !tbaa !5
  %68 = fmul float %67, %67
  %69 = fpext float %68 to double
  %70 = fadd double %64, %69
  %indvars.iv.next106 = add nsw i64 %indvars.iv105, 1
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %71 = icmp slt i64 %indvars.iv.next106, %40
  br i1 %71, label %.preheader73, label %.loopexit, !llvm.loop !16

.lr.ph86:                                         ; preds = %.lr.ph86.preheader, %.lr.ph86
  %indvars.iv107 = phi i64 [ %indvars.iv.next108.3, %.lr.ph86 ], [ %indvars.iv105, %.lr.ph86.preheader ]
  %indvars.iv103 = phi i64 [ %indvars.iv.next104.3, %.lr.ph86 ], [ 0, %.lr.ph86.preheader ]
  %.06383 = phi float [ %88, %.lr.ph86 ], [ 0.000000e+00, %.lr.ph86.preheader ]
  %niter141 = phi i64 [ %niter141.next.3, %.lr.ph86 ], [ 0, %.lr.ph86.preheader ]
  %72 = getelementptr inbounds float, ptr %10, i64 %indvars.iv103
  %73 = load float, ptr %72, align 4, !tbaa !5
  %74 = getelementptr inbounds float, ptr %10, i64 %indvars.iv107
  %75 = load float, ptr %74, align 4, !tbaa !5
  %76 = tail call float @llvm.fmuladd.f32(float %73, float %75, float %.06383)
  %indvars.iv.next104 = or disjoint i64 %indvars.iv103, 1
  %77 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.next104
  %78 = load float, ptr %77, align 4, !tbaa !5
  %gep = getelementptr float, ptr %invariant.gep, i64 %indvars.iv107
  %79 = load float, ptr %gep, align 4, !tbaa !5
  %80 = tail call float @llvm.fmuladd.f32(float %78, float %79, float %76)
  %indvars.iv.next104.1 = or disjoint i64 %indvars.iv103, 2
  %81 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.next104.1
  %82 = load float, ptr %81, align 4, !tbaa !5
  %gep148 = getelementptr float, ptr %invariant.gep147, i64 %indvars.iv107
  %83 = load float, ptr %gep148, align 4, !tbaa !5
  %84 = tail call float @llvm.fmuladd.f32(float %82, float %83, float %80)
  %indvars.iv.next104.2 = or disjoint i64 %indvars.iv103, 3
  %85 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.next104.2
  %86 = load float, ptr %85, align 4, !tbaa !5
  %gep150 = getelementptr float, ptr %invariant.gep149, i64 %indvars.iv107
  %87 = load float, ptr %gep150, align 4, !tbaa !5
  %88 = tail call float @llvm.fmuladd.f32(float %86, float %87, float %84)
  %indvars.iv.next104.3 = add nuw nsw i64 %indvars.iv103, 4
  %indvars.iv.next108.3 = add nsw i64 %indvars.iv107, 4
  %niter141.next.3 = add nuw i64 %niter141, 4
  %niter141.ncmp.3 = icmp eq i64 %niter141.next.3, %unroll_iter140
  br i1 %niter141.ncmp.3, label %._crit_edge87.loopexit.unr-lcssa, label %.lr.ph86, !llvm.loop !17

.loopexit:                                        ; preds = %._crit_edge87, %.lr.ph94, %._crit_edge81, %.preheader
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

attributes #0 = { mustprogress 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 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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" }
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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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