; LLVM IR from kdrag0n/fxdsp :: external/oboe/src/flowgraph/resampler (MultiChannelResampler)

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

%"class.resampler::MultiChannelResampler" = type <{ ptr, %"class.std::vector", i32, i32, %"class.std::vector", %"class.std::vector", i32, i32, i32, [4 x i8], %"class.resampler::HyperbolicCosineWindow", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.resampler::HyperbolicCosineWindow" = type { double, double }

; 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK9resampler21MultiChannelResampler10getNumTapsEv(ptr noundef nonnull align 8 dereferenceable(124)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN9resampler21MultiChannelResampler4sincEf(float noundef) #2 align 2

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

39:                                               ; preds = %6
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = sitofp i32 %40 to float
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = sitofp i32 %42 to float
  %44 = fdiv float %41, %43
  br label %51

45:                                               ; preds = %6
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = sitofp i32 %46 to float
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = sitofp i32 %48 to float
  %50 = fdiv float %47, %49
  br label %51

51:                                               ; preds = %45, %39
  %52 = phi float [ %44, %39 ], [ %50, %45 ]
  %53 = fmul float %35, %52
  store float %53, ptr %15, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %54 = call noundef i32 @_ZNK9resampler21MultiChannelResampler10getNumTapsEv(ptr noundef nonnull align 8 dereferenceable(124) %29)
  %55 = sdiv i32 %54, 2
  store i32 %55, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %56 = load i32, ptr %16, align 4, !tbaa !9
  %57 = sitofp i32 %56 to float
  %58 = fdiv float 1.000000e+00, %57
  store float %58, ptr %17, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %144, %51
  %60 = load i32, ptr %18, align 4, !tbaa !9
  %61 = load i32, ptr %10, align 4, !tbaa !9
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %147

64:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %65 = load double, ptr %14, align 8, !tbaa !11
  %66 = load i32, ptr %16, align 4, !tbaa !9
  %67 = sitofp i32 %66 to double
  %68 = fsub double %65, %67
  %69 = fptrunc double %68 to float
  store float %69, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store float 0.000000e+00, ptr %21, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %70 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %70, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %107, %64
  %72 = load i32, ptr %23, align 4, !tbaa !9
  %73 = call noundef i32 @_ZNK9resampler21MultiChannelResampler10getNumTapsEv(ptr noundef nonnull align 8 dereferenceable(124) %29)
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %71
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  br label %110

76:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  %77 = load float, ptr %20, align 4, !tbaa !13
  %78 = fpext float %77 to double
  %79 = fmul double %78, 0x400921FB54442D18
  %80 = fptrunc double %79 to float
  store float %80, ptr %24, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %81 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %29, i32 0, i32 10
  %82 = load float, ptr %20, align 4, !tbaa !13
  %83 = load float, ptr %17, align 4, !tbaa !13
  %84 = fmul float %82, %83
  %85 = fpext float %84 to double
  %86 = call noundef double @_ZN9resampler22HyperbolicCosineWindowclEd(ptr noundef nonnull align 8 dereferenceable(16) %81, double noundef %85)
  %87 = fptrunc double %86 to float
  store float %87, ptr %25, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %88 = load float, ptr %24, align 4, !tbaa !13
  %89 = load float, ptr %15, align 4, !tbaa !13
  %90 = fmul float %88, %89
  %91 = call noundef float @_ZN9resampler21MultiChannelResampler4sincEf(float noundef %90)
  %92 = load float, ptr %25, align 4, !tbaa !13
  %93 = fmul float %91, %92
  store float %93, ptr %26, align 4, !tbaa !13
  %94 = load float, ptr %26, align 4, !tbaa !13
  %95 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %29, i32 0, i32 1
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %13, align 4, !tbaa !9
  %98 = sext i32 %96 to i64
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %98)
  store float %94, ptr %99, align 4, !tbaa !13
  %100 = load float, ptr %26, align 4, !tbaa !13
  %101 = load float, ptr %21, align 4, !tbaa !13
  %102 = fadd float %101, %100
  store float %102, ptr %21, align 4, !tbaa !13
  %103 = load float, ptr %20, align 4, !tbaa !13
  %104 = fpext float %103 to double
  %105 = fadd double %104, 1.000000e+00
  %106 = fptrunc double %105 to float
  store float %106, ptr %20, align 4, !tbaa !13
  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 4, ptr %24) #3
  br label %107

107:                                              ; preds = %76
  %108 = load i32, ptr %23, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %23, align 4, !tbaa !9
  br label %71, !llvm.loop !15

110:                                              ; preds = %75
  %111 = load double, ptr %11, align 8, !tbaa !11
  %112 = load double, ptr %14, align 8, !tbaa !11
  %113 = fadd double %112, %111
  store double %113, ptr %14, align 8, !tbaa !11
  br label %114

114:                                              ; preds = %117, %110
  %115 = load double, ptr %14, align 8, !tbaa !11
  %116 = fcmp oge double %115, 1.000000e+00
  br i1 %116, label %117, label %120

117:                                              ; preds = %114
  %118 = load double, ptr %14, align 8, !tbaa !11
  %119 = fsub double %118, 1.000000e+00
  store double %119, ptr %14, align 8, !tbaa !11
  br label %114, !llvm.loop !17

120:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %121 = load float, ptr %21, align 4, !tbaa !13
  %122 = fpext float %121 to double
  %123 = fdiv double 1.000000e+00, %122
  %124 = fptrunc double %123 to float
  store float %124, ptr %27, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %140, %120
  %126 = load i32, ptr %28, align 4, !tbaa !9
  %127 = call noundef i32 @_ZNK9resampler21MultiChannelResampler10getNumTapsEv(ptr noundef nonnull align 8 dereferenceable(124) %29)
  %128 = icmp slt i32 %126, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %125
  store i32 10, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  br label %143

130:                                              ; preds = %125
  %131 = load float, ptr %27, align 4, !tbaa !13
  %132 = getelementptr inbounds %"class.resampler::MultiChannelResampler", ptr %29, i32 0, i32 1
  %133 = load i32, ptr %22, align 4, !tbaa !9
  %134 = load i32, ptr %28, align 4, !tbaa !9
  %135 = add nsw i32 %133, %134
  %136 = sext i32 %135 to i64
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %136)
  %138 = load float, ptr %137, align 4, !tbaa !13
  %139 = fmul float %138, %131
  store float %139, ptr %137, align 4, !tbaa !13
  br label %140

140:                                              ; preds = %130
  %141 = load i32, ptr %28, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %28, align 4, !tbaa !9
  br label %125, !llvm.loop !18

143:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %18, align 4, !tbaa !9
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %18, align 4, !tbaa !9
  br label %59, !llvm.loop !19

147:                                              ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN9resampler22HyperbolicCosineWindowclEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) #1 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { 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 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


; 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK9resampler21MultiChannelResampler10getNumTapsEv(ptr noundef nonnull align 8 dereferenceable(124)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN9resampler21MultiChannelResampler4sincEf(float noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9resampler21MultiChannelResampler20generateCoefficientsEiiidf(ptr noundef nonnull align 8 dereferenceable(124) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, float noundef %5) local_unnamed_addr #1 align 2 {
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = tail call noundef i32 @_ZNK9resampler21MultiChannelResampler10getNumTapsEv(ptr noundef nonnull align 8 dereferenceable(124) %0)
  %9 = mul nsw i32 %8, %3
  %10 = sext i32 %9 to i64
  tail call void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %10)
  %. = tail call i32 @llvm.smin.i32(i32 %2, i32 %1)
  %.79 = tail call i32 @llvm.smax.i32(i32 %2, i32 %1)
  %11 = sitofp i32 %. to float
  %12 = sitofp i32 %.79 to float
  %13 = fdiv float %11, %12
  %14 = fmul float %13, %5
  %15 = tail call noundef i32 @_ZNK9resampler21MultiChannelResampler10getNumTapsEv(ptr noundef nonnull align 8 dereferenceable(124) %0)
  %16 = sdiv i32 %15, 2
  %17 = sitofp i32 %16 to float
  %18 = fdiv float 1.000000e+00, %17
  %19 = icmp sgt i32 %3, 0
  br i1 %19, label %.lr.ph67, label %._crit_edge68

.lr.ph67:                                         ; preds = %6
  %20 = sitofp i32 %16 to double
  %21 = getelementptr inbounds i8, ptr %0, i64 104
  br label %22

._crit_edge68:                                    ; preds = %._crit_edge62, %6
  ret void

22:                                               ; preds = %.lr.ph67, %._crit_edge62
  %.03865 = phi i32 [ 0, %.lr.ph67 ], [ %.1.lcssa, %._crit_edge62 ]
  %.03964 = phi double [ 0.000000e+00, %.lr.ph67 ], [ %.140.lcssa, %._crit_edge62 ]
  %.04163 = phi i32 [ 0, %.lr.ph67 ], [ %52, %._crit_edge62 ]
  %23 = tail call noundef i32 @_ZNK9resampler21MultiChannelResampler10getNumTapsEv(ptr noundef nonnull align 8 dereferenceable(124) %0)
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %22
  %25 = fsub double %.03964, %20
  %26 = sext i32 %.03865 to i64
  br label %.lr.ph

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %27 = trunc nsw i64 %indvars.iv.next to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %22
  %.044.lcssa = phi float [ 0.000000e+00, %22 ], [ %41, %._crit_edge.loopexit ]
  %.1.lcssa = phi i32 [ %.03865, %22 ], [ %27, %._crit_edge.loopexit ]
  %28 = fadd double %.03964, %4
  %29 = fcmp ult double %28, 1.000000e+00
  br i1 %29, label %._crit_edge57, label %.lr.ph56

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %26, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.04251 = phi i32 [ 0, %.lr.ph.preheader ], [ %43, %.lr.ph ]
  %.043.in50 = phi double [ %25, %.lr.ph.preheader ], [ %42, %.lr.ph ]
  %.04449 = phi float [ 0.000000e+00, %.lr.ph.preheader ], [ %41, %.lr.ph ]
  %.043 = fptrunc double %.043.in50 to float
  %30 = fpext float %.043 to double
  %31 = fmul double %30, 0x400921FB54442D18
  %32 = fptrunc double %31 to float
  %33 = fmul float %18, %.043
  %34 = fpext float %33 to double
  %35 = tail call noundef double @_ZN9resampler22HyperbolicCosineWindowclEd(ptr noundef nonnull align 8 dereferenceable(16) %21, double noundef %34)
  %36 = fptrunc double %35 to float
  %37 = fmul float %14, %32
  %38 = tail call noundef float @_ZN9resampler21MultiChannelResampler4sincEf(float noundef %37)
  %39 = fmul float %38, %36
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %40 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv)
  store float %39, ptr %40, align 4, !tbaa !5
  %41 = fadd float %.04449, %39
  %42 = fadd double %30, 1.000000e+00
  %43 = add nuw nsw i32 %.04251, 1
  %44 = tail call noundef i32 @_ZNK9resampler21MultiChannelResampler10getNumTapsEv(ptr noundef nonnull align 8 dereferenceable(124) %0)
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !9

.lr.ph56:                                         ; preds = %._crit_edge, %.lr.ph56
  %.14054 = phi double [ %46, %.lr.ph56 ], [ %28, %._crit_edge ]
  %46 = fadd double %.14054, -1.000000e+00
  %47 = fcmp ult double %46, 1.000000e+00
  br i1 %47, label %._crit_edge57, label %.lr.ph56, !llvm.loop !11

._crit_edge57:                                    ; preds = %.lr.ph56, %._crit_edge
  %.140.lcssa = phi double [ %28, %._crit_edge ], [ %46, %.lr.ph56 ]
  %48 = fdiv float 1.000000e+00, %.044.lcssa
  %49 = tail call noundef i32 @_ZNK9resampler21MultiChannelResampler10getNumTapsEv(ptr noundef nonnull align 8 dereferenceable(124) %0)
  %50 = icmp sgt i32 %49, 0
  br i1 %50, label %.lr.ph61.preheader, label %._crit_edge62

.lr.ph61.preheader:                               ; preds = %._crit_edge57
  %51 = sext i32 %.03865 to i64
  br label %.lr.ph61

._crit_edge62:                                    ; preds = %.lr.ph61, %._crit_edge57
  %52 = add nuw nsw i32 %.04163, 1
  %exitcond.not = icmp eq i32 %52, %3
  br i1 %exitcond.not, label %._crit_edge68, label %22, !llvm.loop !12

.lr.ph61:                                         ; preds = %.lr.ph61.preheader, %.lr.ph61
  %indvars.iv72 = phi i64 [ 0, %.lr.ph61.preheader ], [ %indvars.iv.next73, %.lr.ph61 ]
  %53 = add nsw i64 %indvars.iv72, %51
  %54 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %53)
  %55 = load float, ptr %54, align 4, !tbaa !5
  %56 = fmul float %48, %55
  store float %56, ptr %54, align 4, !tbaa !5
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %57 = tail call noundef i32 @_ZNK9resampler21MultiChannelResampler10getNumTapsEv(ptr noundef nonnull align 8 dereferenceable(124) %0)
  %58 = sext i32 %57 to i64
  %59 = icmp slt i64 %indvars.iv.next73, %58
  br i1 %59, label %.lr.ph61, label %._crit_edge62, !llvm.loop !13
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN9resampler22HyperbolicCosineWindowclEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #2

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


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