; LLVM IR from jgaeddert/liquid-dsp :: src/filter/src (firdespm_halfband)

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

%struct.firdespm_halfband_s = type { i32, i32, float, ptr, i32, ptr, ptr, ptr, i32 }

@__const.firdespm_halfband_utility.des = external hidden unnamed_addr constant [2 x float], align 4
@__const.firdespm_halfband_utility.weights = external hidden unnamed_addr constant [2 x float], align 4

; Function Attrs: nounwind uwtable
define dso_local float @firdespm_halfband_utility(float noundef %0, ptr noundef %1) #0 {
  %3 = alloca float, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca [4 x float], align 16
  %9 = alloca [2 x float], align 4
  %10 = alloca [2 x float], align 4
  %11 = alloca [2 x i32], align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca { float, float }, align 4
  store float %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %17 = load ptr, ptr %4, align 8, !tbaa !9
  store ptr %17, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %18 = load ptr, ptr %5, align 8, !tbaa !9
  %19 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %18, i32 0, i32 2
  %20 = load float, ptr %19, align 8, !tbaa !11
  %21 = fmul float 5.000000e-01, %20
  %22 = load float, ptr %3, align 4, !tbaa !5
  %23 = fneg float %21
  %24 = call float @llvm.fmuladd.f32(float %23, float %22, float 2.500000e-01)
  store float %24, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %25, i32 0, i32 2
  %27 = load float, ptr %26, align 8, !tbaa !11
  %28 = call float @llvm.fmuladd.f32(float 5.000000e-01, float %27, float 2.500000e-01)
  store float %28, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  store float 0.000000e+00, ptr %8, align 4, !tbaa !5
  %29 = getelementptr inbounds float, ptr %8, i64 1
  %30 = load float, ptr %6, align 4, !tbaa !5
  store float %30, ptr %29, align 4, !tbaa !5
  %31 = getelementptr inbounds float, ptr %8, i64 2
  %32 = load float, ptr %7, align 4, !tbaa !5
  store float %32, ptr %31, align 4, !tbaa !5
  %33 = getelementptr inbounds float, ptr %8, i64 3
  store float 5.000000e-01, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 @__const.firdespm_halfband_utility.des, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 @__const.firdespm_halfband_utility.weights, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.memset.p0.i64(ptr align 4 %11, i8 0, i64 8, i1 false)
  %34 = load ptr, ptr %5, align 8, !tbaa !9
  %35 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %34, i32 0, i32 1
  %36 = load i32, ptr %35, align 4, !tbaa !14
  %37 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 0
  %38 = getelementptr inbounds [2 x float], ptr %9, i64 0, i64 0
  %39 = getelementptr inbounds [2 x float], ptr %10, i64 0, i64 0
  %40 = getelementptr inbounds [2 x i32], ptr %11, i64 0, i64 0
  %41 = load ptr, ptr %5, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %41, i32 0, i32 3
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = call i32 @firdespm_run(i32 noundef %36, i32 noundef 2, ptr noundef %37, ptr noundef %38, ptr noundef %39, ptr noundef %40, i32 noundef 0, ptr noundef %43)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !16
  br label %45

45:                                               ; preds = %71, %2
  %46 = load i32, ptr %12, align 4, !tbaa !16
  %47 = load ptr, ptr %5, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 8, !tbaa !17
  %50 = icmp ult i32 %46, %49
  br i1 %50, label %51, label %74

51:                                               ; preds = %45
  %52 = load ptr, ptr %5, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %52, i32 0, i32 3
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  %55 = load i32, ptr %12, align 4, !tbaa !16
  %56 = mul i32 2, %55
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds float, ptr %54, i64 %57
  store float 0.000000e+00, ptr %58, align 4, !tbaa !5
  %59 = load ptr, ptr %5, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %59, i32 0, i32 3
  %61 = load ptr, ptr %60, align 8, !tbaa !15
  %62 = load ptr, ptr %5, align 8, !tbaa !9
  %63 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %62, i32 0, i32 1
  %64 = load i32, ptr %63, align 4, !tbaa !14
  %65 = load i32, ptr %12, align 4, !tbaa !16
  %66 = mul i32 2, %65
  %67 = sub i32 %64, %66
  %68 = sub i32 %67, 1
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds float, ptr %61, i64 %69
  store float 0.000000e+00, ptr %70, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %51
  %72 = load i32, ptr %12, align 4, !tbaa !16
  %73 = add i32 %72, 1
  store i32 %73, ptr %12, align 4, !tbaa !16
  br label %45, !llvm.loop !18

74:                                               ; preds = %45
  store i32 0, ptr %12, align 4, !tbaa !16
  br label %75

75:                                               ; preds = %106, %74
  %76 = load i32, ptr %12, align 4, !tbaa !16
  %77 = load ptr, ptr %5, align 8, !tbaa !9
  %78 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %77, i32 0, i32 4
  %79 = load i32, ptr %78, align 8, !tbaa !20
  %80 = icmp ult i32 %76, %79
  br i1 %80, label %81, label %109

81:                                               ; preds = %75
  %82 = load i32, ptr %12, align 4, !tbaa !16
  %83 = load ptr, ptr %5, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %83, i32 0, i32 1
  %85 = load i32, ptr %84, align 4, !tbaa !14
  %86 = icmp ult i32 %82, %85
  br i1 %86, label %87, label %95

87:                                               ; preds = %81
  %88 = load ptr, ptr %5, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %88, i32 0, i32 3
  %90 = load ptr, ptr %89, align 8, !tbaa !15
  %91 = load i32, ptr %12, align 4, !tbaa !16
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds float, ptr %90, i64 %92
  %94 = load float, ptr %93, align 4, !tbaa !5
  br label %96

95:                                               ; preds = %81
  br label %96

96:                                               ; preds = %95, %87
  %97 = phi float [ %94, %87 ], [ 0.000000e+00, %95 ]
  %98 = load ptr, ptr %5, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %98, i32 0, i32 5
  %100 = load ptr, ptr %99, align 8, !tbaa !21
  %101 = load i32, ptr %12, align 4, !tbaa !16
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds { float, float }, ptr %100, i64 %102
  %104 = getelementptr inbounds { float, float }, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds { float, float }, ptr %103, i32 0, i32 1
  store float %97, ptr %104, align 4
  store float 0.000000e+00, ptr %105, align 4
  br label %106

106:                                              ; preds = %96
  %107 = load i32, ptr %12, align 4, !tbaa !16
  %108 = add i32 %107, 1
  store i32 %108, ptr %12, align 4, !tbaa !16
  br label %75, !llvm.loop !22

109:                                              ; preds = %75
  %110 = load ptr, ptr %5, align 8, !tbaa !9
  %111 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %110, i32 0, i32 7
  %112 = load ptr, ptr %111, align 8, !tbaa !23
  %113 = call i32 @fft_execute(ptr noundef %112)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store float 0.000000e+00, ptr %13, align 4, !tbaa !5
  store i32 0, ptr %12, align 4, !tbaa !16
  br label %114

114:                                              ; preds = %145, %109
  %115 = load i32, ptr %12, align 4, !tbaa !16
  %116 = load ptr, ptr %5, align 8, !tbaa !9
  %117 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %116, i32 0, i32 8
  %118 = load i32, ptr %117, align 8, !tbaa !24
  %119 = icmp ult i32 %115, %118
  br i1 %119, label %120, label %148

120:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %121 = load ptr, ptr %5, align 8, !tbaa !9
  %122 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %121, i32 0, i32 4
  %123 = load i32, ptr %122, align 8, !tbaa !20
  %124 = udiv i32 %123, 2
  %125 = load i32, ptr %12, align 4, !tbaa !16
  %126 = sub i32 %124, %125
  store i32 %126, ptr %14, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %127 = load ptr, ptr %5, align 8, !tbaa !9
  %128 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %127, i32 0, i32 6
  %129 = load ptr, ptr %128, align 8, !tbaa !25
  %130 = load i32, ptr %14, align 4, !tbaa !16
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds { float, float }, ptr %129, i64 %131
  %133 = getelementptr inbounds { float, float }, ptr %132, i32 0, i32 0
  %134 = load float, ptr %133, align 4
  %135 = getelementptr inbounds { float, float }, ptr %132, i32 0, i32 1
  %136 = load float, ptr %135, align 4
  %137 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %138 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  store float %134, ptr %137, align 4
  store float %136, ptr %138, align 4
  %139 = load <2 x float>, ptr %16, align 4
  %140 = call float @cabsf(<2 x float> noundef %139) #7
  store float %140, ptr %15, align 4, !tbaa !5
  %141 = load float, ptr %15, align 4, !tbaa !5
  %142 = load float, ptr %15, align 4, !tbaa !5
  %143 = load float, ptr %13, align 4, !tbaa !5
  %144 = call float @llvm.fmuladd.f32(float %141, float %142, float %143)
  store float %144, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %145

145:                                              ; preds = %120
  %146 = load i32, ptr %12, align 4, !tbaa !16
  %147 = add i32 %146, 1
  store i32 %147, ptr %12, align 4, !tbaa !16
  br label %114, !llvm.loop !26

148:                                              ; preds = %114
  %149 = load float, ptr %13, align 4, !tbaa !5
  %150 = load ptr, ptr %5, align 8, !tbaa !9
  %151 = getelementptr inbounds %struct.firdespm_halfband_s, ptr %150, i32 0, i32 8
  %152 = load i32, ptr %151, align 8, !tbaa !24
  %153 = uitofp i32 %152 to float
  %154 = fdiv float %149, %153
  %155 = call float @log10f(float noundef %154) #7
  %156 = fmul float 1.000000e+01, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret float %156
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

declare i32 @firdespm_run(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

declare i32 @fft_execute(ptr noundef) #5

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) #6

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

; Function Attrs: nounwind
declare float @log10f(float noundef) #6

attributes #0 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "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 #6 = { 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 #7 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"firdespm_halfband_s", !13, i64 0, !13, i64 4, !6, i64 8, !10, i64 16, !13, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !13, i64 56}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!12, !10, i64 16}
!16 = !{!13, !13, i64 0}
!17 = !{!12, !13, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!12, !13, i64 24}
!21 = !{!12, !10, i64 32}
!22 = distinct !{!22, !19}
!23 = !{!12, !10, i64 48}
!24 = !{!12, !13, i64 56}
!25 = !{!12, !10, i64 40}
!26 = distinct !{!26, !19}


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

@__const.firdespm_halfband_utility.des = external hidden unnamed_addr constant [2 x float], align 4
@__const.firdespm_halfband_utility.weights = external hidden unnamed_addr constant [2 x float], align 4

; Function Attrs: nounwind uwtable
define dso_local float @firdespm_halfband_utility(float noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [4 x float], align 16
  %4 = alloca [2 x float], align 8
  %5 = alloca [2 x float], align 8
  %6 = alloca [2 x i32], align 8
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load float, ptr %7, align 8, !tbaa !5
  %9 = fmul float %8, -5.000000e-01
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  store float 0.000000e+00, ptr %3, align 16, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %3, i64 4
  %11 = insertelement <2 x float> poison, float %9, i64 0
  %12 = insertelement <2 x float> %11, float %8, i64 1
  %13 = insertelement <2 x float> <float poison, float 5.000000e-01>, float %0, i64 0
  %14 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %12, <2 x float> %13, <2 x float> <float 2.500000e-01, float 2.500000e-01>)
  store <2 x float> %14, ptr %10, align 4, !tbaa !12
  %15 = getelementptr inbounds i8, ptr %3, i64 12
  store float 5.000000e-01, ptr %15, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %16 = load i64, ptr @__const.firdespm_halfband_utility.des, align 4
  store i64 %16, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %17 = load i64, ptr @__const.firdespm_halfband_utility.weights, align 4
  store i64 %17, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  store i64 0, ptr %6, align 8
  %18 = getelementptr inbounds i8, ptr %1, i64 4
  %19 = load i32, ptr %18, align 4, !tbaa !13
  %20 = getelementptr inbounds i8, ptr %1, i64 16
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %22 = call i32 @firdespm_run(i32 noundef %19, i32 noundef 2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef 0, ptr noundef %21) #7
  %23 = load i32, ptr %1, align 8, !tbaa !15
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %24 = load ptr, ptr %20, align 8, !tbaa !14
  %25 = load i32, ptr %18, align 4, !tbaa !13
  %wide.trip.count = zext i32 %23 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %26 = icmp eq i32 %23, 1
  br i1 %26, label %.preheader.loopexit.unr-lcssa, label %.lr.ph.new

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

.preheader.loopexit.unr-lcssa.loopexit:           ; preds = %38
  %27 = trunc nuw i64 %indvars.iv.next.1 to i32
  %28 = shl i32 %27, 1
  br label %.preheader.loopexit.unr-lcssa

.preheader.loopexit.unr-lcssa:                    ; preds = %.preheader.loopexit.unr-lcssa.loopexit, %.lr.ph
  %indvars.iv.unr = phi i32 [ 0, %.lr.ph ], [ %28, %.preheader.loopexit.unr-lcssa.loopexit ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.preheader.loopexit.epilog-lcssa

.preheader.loopexit.epilog-lcssa:                 ; preds = %.preheader.loopexit.unr-lcssa
  %29 = zext i32 %indvars.iv.unr to i64
  %30 = getelementptr inbounds float, ptr %24, i64 %29
  store float 0.000000e+00, ptr %30, align 4, !tbaa !12
  %31 = xor i32 %indvars.iv.unr, -1
  %32 = add i32 %25, %31
  %33 = zext i32 %32 to i64
  %34 = getelementptr inbounds float, ptr %24, i64 %33
  store float 0.000000e+00, ptr %34, align 4, !tbaa !12
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit.epilog-lcssa, %.preheader.loopexit.unr-lcssa, %2
  %35 = getelementptr inbounds i8, ptr %1, i64 24
  %36 = load i32, ptr %35, align 8, !tbaa !16
  %.not50 = icmp eq i32 %36, 0
  br i1 %.not50, label %._crit_edge, label %.lr.ph43

.lr.ph43:                                         ; preds = %.preheader
  %37 = getelementptr inbounds i8, ptr %1, i64 32
  br label %56

38:                                               ; preds = %38, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %38 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %38 ]
  %39 = trunc nuw i64 %indvars.iv to i32
  %40 = shl i32 %39, 1
  %41 = zext i32 %40 to i64
  %42 = getelementptr inbounds float, ptr %24, i64 %41
  store float 0.000000e+00, ptr %42, align 4, !tbaa !12
  %43 = xor i32 %40, -1
  %44 = add i32 %25, %43
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds float, ptr %24, i64 %45
  store float 0.000000e+00, ptr %46, align 4, !tbaa !12
  %47 = trunc i64 %indvars.iv to i32
  %48 = shl i32 %47, 1
  %49 = or disjoint i32 %48, 2
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds float, ptr %24, i64 %50
  store float 0.000000e+00, ptr %51, align 4, !tbaa !12
  %52 = xor i32 %48, -3
  %53 = add i32 %25, %52
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds float, ptr %24, i64 %54
  store float 0.000000e+00, ptr %55, align 4, !tbaa !12
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader.loopexit.unr-lcssa.loopexit, label %38, !llvm.loop !17

56:                                               ; preds = %.lr.ph43, %64
  %indvars.iv55 = phi i64 [ 0, %.lr.ph43 ], [ %indvars.iv.next56, %64 ]
  %57 = load i32, ptr %18, align 4, !tbaa !13
  %58 = zext i32 %57 to i64
  %59 = icmp ult i64 %indvars.iv55, %58
  br i1 %59, label %60, label %64

60:                                               ; preds = %56
  %61 = load ptr, ptr %20, align 8, !tbaa !14
  %62 = getelementptr inbounds float, ptr %61, i64 %indvars.iv55
  %63 = load float, ptr %62, align 4, !tbaa !12
  br label %64

64:                                               ; preds = %56, %60
  %65 = phi float [ %63, %60 ], [ 0.000000e+00, %56 ]
  %66 = load ptr, ptr %37, align 8, !tbaa !19
  %67 = getelementptr inbounds { float, float }, ptr %66, i64 %indvars.iv55
  %68 = getelementptr inbounds i8, ptr %67, i64 4
  store float %65, ptr %67, align 4
  store float 0.000000e+00, ptr %68, align 4
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %69 = load i32, ptr %35, align 8, !tbaa !16
  %70 = zext i32 %69 to i64
  %71 = icmp ult i64 %indvars.iv.next56, %70
  br i1 %71, label %56, label %._crit_edge, !llvm.loop !20

._crit_edge:                                      ; preds = %64, %.preheader
  %72 = getelementptr inbounds i8, ptr %1, i64 48
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  %74 = call i32 @fft_execute(ptr noundef %73) #7
  %75 = getelementptr inbounds i8, ptr %1, i64 56
  %76 = load i32, ptr %75, align 8, !tbaa !22
  %.not51 = icmp eq i32 %76, 0
  br i1 %.not51, label %._crit_edge48, label %.lr.ph47

.lr.ph47:                                         ; preds = %._crit_edge
  %77 = getelementptr inbounds i8, ptr %1, i64 40
  br label %78

78:                                               ; preds = %.lr.ph47, %78
  %.245 = phi i32 [ 0, %.lr.ph47 ], [ %88, %78 ]
  %.03844 = phi float [ 0.000000e+00, %.lr.ph47 ], [ %87, %78 ]
  %79 = load i32, ptr %35, align 8, !tbaa !16
  %80 = lshr i32 %79, 1
  %81 = sub i32 %80, %.245
  %82 = load ptr, ptr %77, align 8, !tbaa !23
  %83 = zext i32 %81 to i64
  %84 = getelementptr inbounds { float, float }, ptr %82, i64 %83
  %85 = load <2 x float>, ptr %84, align 4
  %86 = call float @cabsf(<2 x float> noundef %85) #7
  %87 = call float @llvm.fmuladd.f32(float %86, float %86, float %.03844)
  %88 = add nuw i32 %.245, 1
  %89 = load i32, ptr %75, align 8, !tbaa !22
  %90 = icmp ult i32 %88, %89
  br i1 %90, label %78, label %._crit_edge48.loopexit, !llvm.loop !24

._crit_edge48.loopexit:                           ; preds = %78
  %91 = uitofp i32 %89 to float
  %92 = fdiv float %87, %91
  br label %._crit_edge48

._crit_edge48:                                    ; preds = %._crit_edge48.loopexit, %._crit_edge
  %93 = phi float [ 0x7FF8000000000000, %._crit_edge ], [ %92, %._crit_edge48.loopexit ]
  %94 = call float @log10f(float noundef %93) #7
  %95 = fmul float %94, 1.000000e+01
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  ret float %95
}

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

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

declare i32 @firdespm_run(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @fft_execute(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @log10f(float noundef) local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #6

attributes #0 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "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 "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 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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, !10, i64 8}
!6 = !{!"firdespm_halfband_s", !7, i64 0, !7, i64 4, !10, i64 8, !11, i64 16, !7, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !7, i64 56}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !7, i64 4}
!14 = !{!6, !11, i64 16}
!15 = !{!6, !7, i64 0}
!16 = !{!6, !7, i64 24}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !11, i64 32}
!20 = distinct !{!20, !18}
!21 = !{!6, !11, i64 48}
!22 = !{!6, !7, i64 56}
!23 = !{!6, !11, i64 40}
!24 = distinct !{!24, !18}


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