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

; 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 [80 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [58 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @liquid_firdes_fnyquist(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, float noundef %4, float noundef %5, ptr noundef %6) #0 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  store i32 %0, ptr %9, align 4, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !5
  store i32 %3, ptr %12, align 4, !tbaa !5
  store float %4, ptr %13, align 4, !tbaa !9
  store float %5, ptr %14, align 4, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !11
  %23 = load i32, ptr %11, align 4, !tbaa !5
  %24 = icmp ult i32 %23, 1
  br i1 %24, label %25, label %27

25:                                               ; preds = %7
  %26 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 56, ptr noundef @.str.1)
  store i32 %26, ptr %8, align 4
  br label %141

27:                                               ; preds = %7
  %28 = load i32, ptr %12, align 4, !tbaa !5
  %29 = icmp ult i32 %28, 1
  br i1 %29, label %30, label %32

30:                                               ; preds = %27
  %31 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 58, ptr noundef @.str.2)
  store i32 %31, ptr %8, align 4
  br label %141

32:                                               ; preds = %27
  %33 = load float, ptr %13, align 4, !tbaa !9
  %34 = fcmp olt float %33, 0.000000e+00
  br i1 %34, label %38, label %35

35:                                               ; preds = %32
  %36 = load float, ptr %13, align 4, !tbaa !9
  %37 = fcmp ogt float %36, 1.000000e+00
  br i1 %37, label %38, label %40

38:                                               ; preds = %35, %32
  %39 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 60, ptr noundef @.str.3)
  store i32 %39, ptr %8, align 4
  br label %141

40:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %41 = load i32, ptr %11, align 4, !tbaa !5
  %42 = mul i32 2, %41
  %43 = load i32, ptr %12, align 4, !tbaa !5
  %44 = mul i32 %42, %43
  %45 = add i32 %44, 1
  store i32 %45, ptr %17, align 4, !tbaa !5
  %46 = load i32, ptr %17, align 4, !tbaa !5
  %47 = zext i32 %46 to i64
  %48 = call ptr @llvm.stacksave.p0()
  store ptr %48, ptr %18, align 8
  %49 = alloca float, i64 %47, align 16
  store i64 %47, ptr %19, align 8
  %50 = load i32, ptr %17, align 4, !tbaa !5
  %51 = zext i32 %50 to i64
  %52 = alloca { float, float }, i64 %51, align 16
  store i64 %51, ptr %20, align 8
  %53 = load i32, ptr %17, align 4, !tbaa !5
  %54 = zext i32 %53 to i64
  %55 = alloca { float, float }, i64 %54, align 16
  store i64 %54, ptr %21, align 8
  %56 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %56, label %72 [
    i32 4, label %57
    i32 5, label %62
    i32 6, label %67
  ]

57:                                               ; preds = %40
  %58 = load i32, ptr %11, align 4, !tbaa !5
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %60 = load float, ptr %13, align 4, !tbaa !9
  %61 = call i32 @liquid_firdes_fexp_freqresponse(i32 noundef %58, i32 noundef %59, float noundef %60, ptr noundef %49)
  br label %74

62:                                               ; preds = %40
  %63 = load i32, ptr %11, align 4, !tbaa !5
  %64 = load i32, ptr %12, align 4, !tbaa !5
  %65 = load float, ptr %13, align 4, !tbaa !9
  %66 = call i32 @liquid_firdes_fsech_freqresponse(i32 noundef %63, i32 noundef %64, float noundef %65, ptr noundef %49)
  br label %74

67:                                               ; preds = %40
  %68 = load i32, ptr %11, align 4, !tbaa !5
  %69 = load i32, ptr %12, align 4, !tbaa !5
  %70 = load float, ptr %13, align 4, !tbaa !9
  %71 = call i32 @liquid_firdes_farcsech_freqresponse(i32 noundef %68, i32 noundef %69, float noundef %70, ptr noundef %49)
  br label %74

72:                                               ; preds = %40
  %73 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 83, ptr noundef @.str.4)
  store i32 %73, ptr %8, align 4
  store i32 1, ptr %22, align 4
  br label %139

74:                                               ; preds = %67, %62, %57
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %100, %74
  %76 = load i32, ptr %16, align 4, !tbaa !5
  %77 = load i32, ptr %17, align 4, !tbaa !5
  %78 = icmp ult i32 %76, %77
  br i1 %78, label %79, label %103

79:                                               ; preds = %75
  %80 = load i32, ptr %10, align 4, !tbaa !5
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %88

82:                                               ; preds = %79
  %83 = load i32, ptr %16, align 4, !tbaa !5
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds float, ptr %49, i64 %84
  %86 = load float, ptr %85, align 4, !tbaa !9
  %87 = call float @sqrtf(float noundef %86) #5
  br label %93

88:                                               ; preds = %79
  %89 = load i32, ptr %16, align 4, !tbaa !5
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds float, ptr %49, i64 %90
  %92 = load float, ptr %91, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %88, %82
  %94 = phi float [ %87, %82 ], [ %92, %88 ]
  %95 = load i32, ptr %16, align 4, !tbaa !5
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds { float, float }, ptr %52, i64 %96
  %98 = getelementptr inbounds { float, float }, ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds { float, float }, ptr %97, i32 0, i32 1
  store float %94, ptr %98, align 8
  store float 0.000000e+00, ptr %99, align 4
  br label %100

100:                                              ; preds = %93
  %101 = load i32, ptr %16, align 4, !tbaa !5
  %102 = add i32 %101, 1
  store i32 %102, ptr %16, align 4, !tbaa !5
  br label %75, !llvm.loop !13

103:                                              ; preds = %75
  %104 = load i32, ptr %17, align 4, !tbaa !5
  %105 = call i32 @fft_run(i32 noundef %104, ptr noundef %52, ptr noundef %55, i32 noundef -1, i32 noundef 0)
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %135, %103
  %107 = load i32, ptr %16, align 4, !tbaa !5
  %108 = load i32, ptr %17, align 4, !tbaa !5
  %109 = icmp ult i32 %107, %108
  br i1 %109, label %110, label %138

110:                                              ; preds = %106
  %111 = load i32, ptr %16, align 4, !tbaa !5
  %112 = load i32, ptr %11, align 4, !tbaa !5
  %113 = load i32, ptr %12, align 4, !tbaa !5
  %114 = mul i32 %112, %113
  %115 = add i32 %111, %114
  %116 = add i32 %115, 1
  %117 = load i32, ptr %17, align 4, !tbaa !5
  %118 = urem i32 %116, %117
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds { float, float }, ptr %55, i64 %119
  %121 = getelementptr inbounds { float, float }, ptr %120, i32 0, i32 0
  %122 = load float, ptr %121, align 8
  %123 = getelementptr inbounds { float, float }, ptr %120, i32 0, i32 1
  %124 = load float, ptr %123, align 4
  %125 = load i32, ptr %11, align 4, !tbaa !5
  %126 = uitofp i32 %125 to float
  %127 = fmul float %122, %126
  %128 = load i32, ptr %17, align 4, !tbaa !5
  %129 = uitofp i32 %128 to float
  %130 = fdiv float %127, %129
  %131 = load ptr, ptr %15, align 8, !tbaa !11
  %132 = load i32, ptr %16, align 4, !tbaa !5
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds float, ptr %131, i64 %133
  store float %130, ptr %134, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %110
  %136 = load i32, ptr %16, align 4, !tbaa !5
  %137 = add i32 %136, 1
  store i32 %137, ptr %16, align 4, !tbaa !5
  br label %106, !llvm.loop !15

138:                                              ; preds = %106
  store i32 0, ptr %8, align 4
  store i32 1, ptr %22, align 4
  br label %139

139:                                              ; preds = %138, %72
  %140 = load ptr, ptr %18, align 8
  call void @llvm.stackrestore.p0(ptr %140)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %141

141:                                              ; preds = %139, %38, %30, %25
  %142 = load i32, ptr %8, align 4
  ret i32 %142
}

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #1

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @liquid_firdes_fexp_freqresponse(i32 noundef, i32 noundef, float noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @liquid_firdes_fsech_freqresponse(i32 noundef, i32 noundef, float noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @liquid_firdes_farcsech_freqresponse(i32 noundef, i32 noundef, float noundef, ptr noundef) #0

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #4

declare i32 @fft_run(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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

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 = { "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 willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
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 = !{!"int", !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 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !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 [80 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [58 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @liquid_firdes_fnyquist(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, float noundef %4, float noundef %5, ptr nocapture noundef writeonly %6) local_unnamed_addr #0 {
  %8 = icmp eq i32 %2, 0
  br i1 %8, label %9, label %11

9:                                                ; preds = %7
  %10 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 56, ptr noundef nonnull @.str.1) #4
  br label %125

11:                                               ; preds = %7
  %12 = icmp eq i32 %3, 0
  br i1 %12, label %13, label %15

13:                                               ; preds = %11
  %14 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 58, ptr noundef nonnull @.str.2) #4
  br label %125

15:                                               ; preds = %11
  %16 = fcmp olt float %4, 0.000000e+00
  %17 = fcmp ogt float %4, 1.000000e+00
  %or.cond = or i1 %16, %17
  br i1 %or.cond, label %18, label %20

18:                                               ; preds = %15
  %19 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 60, ptr noundef nonnull @.str.3) #4
  br label %125

20:                                               ; preds = %15
  %21 = shl i32 %2, 1
  %22 = mul i32 %21, %3
  %23 = or disjoint i32 %22, 1
  %24 = zext i32 %23 to i64
  %25 = tail call ptr @llvm.stacksave.p0()
  %26 = alloca float, i64 %24, align 16
  %27 = alloca { float, float }, i64 %24, align 16
  %28 = alloca { float, float }, i64 %24, align 16
  switch i32 %0, label %35 [
    i32 4, label %29
    i32 5, label %31
    i32 6, label %33
  ]

29:                                               ; preds = %20
  %30 = call i32 @liquid_firdes_fexp_freqresponse(i32 noundef %2, i32 noundef %3, float noundef %4, ptr noundef nonnull %26)
  br label %37

31:                                               ; preds = %20
  %32 = call i32 @liquid_firdes_fsech_freqresponse(i32 noundef %2, i32 noundef %3, float noundef %4, ptr noundef nonnull %26)
  br label %37

33:                                               ; preds = %20
  %34 = call i32 @liquid_firdes_farcsech_freqresponse(i32 noundef %2, i32 noundef %3, float noundef %4, ptr noundef nonnull %26)
  br label %37

35:                                               ; preds = %20
  %36 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 83, ptr noundef nonnull @.str.4) #4
  br label %.loopexit

37:                                               ; preds = %33, %31, %29
  %.not47 = icmp eq i32 %1, 0
  %38 = or disjoint i32 %22, 1
  %wide.trip.count57 = zext i32 %38 to i64
  br i1 %.not47, label %.split.us.preheader, label %.split.preheader

.split.preheader:                                 ; preds = %37
  %39 = or disjoint i32 %22, 1
  %40 = zext i32 %39 to i64
  %xtraiter = and i64 %40, 3
  %41 = icmp ult i32 %22, 3
  br i1 %41, label %.split.epil.preheader, label %.split.preheader.new

.split.preheader.new:                             ; preds = %.split.preheader
  %unroll_iter = and i64 %40, 4294967292
  br label %.split

.split.us.preheader:                              ; preds = %37
  %min.iters.check = icmp ult i32 %22, 4
  br i1 %min.iters.check, label %.split.us.preheader81, label %vector.ph

vector.ph:                                        ; preds = %.split.us.preheader
  %42 = and i32 %22, -4
  %n.vec = zext i32 %42 to i64
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %43 = or disjoint i64 %index, 2
  %44 = getelementptr inbounds float, ptr %26, i64 %index
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %wide.load = load <2 x float>, ptr %44, align 16, !tbaa !5
  %wide.load66 = load <2 x float>, ptr %45, align 8, !tbaa !5
  %46 = getelementptr inbounds { float, float }, ptr %27, i64 %index
  %47 = getelementptr inbounds { float, float }, ptr %27, i64 %43
  %interleaved.vec = shufflevector <2 x float> %wide.load, <2 x float> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x float> %interleaved.vec, ptr %46, align 16
  %interleaved.vec67 = shufflevector <2 x float> %wide.load66, <2 x float> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x float> %interleaved.vec67, ptr %47, align 16
  %index.next = add nuw i64 %index, 4
  %48 = icmp eq i64 %index.next, %n.vec
  br i1 %48, label %.split.us.preheader81, label %vector.body, !llvm.loop !9

.split.us.preheader81:                            ; preds = %vector.body, %.split.us.preheader
  %indvars.iv54.ph = phi i64 [ 0, %.split.us.preheader ], [ %n.vec, %vector.body ]
  br label %.split.us

.split.us:                                        ; preds = %.split.us.preheader81, %.split.us
  %indvars.iv54 = phi i64 [ %indvars.iv.next55, %.split.us ], [ %indvars.iv54.ph, %.split.us.preheader81 ]
  %49 = getelementptr inbounds float, ptr %26, i64 %indvars.iv54
  %50 = load float, ptr %49, align 4, !tbaa !5
  %51 = getelementptr inbounds { float, float }, ptr %27, i64 %indvars.iv54
  %52 = getelementptr inbounds i8, ptr %51, i64 4
  store float %50, ptr %51, align 8
  store float 0.000000e+00, ptr %52, align 4
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %exitcond58 = icmp eq i64 %indvars.iv.next55, %wide.trip.count57
  br i1 %exitcond58, label %.split50.us, label %.split.us, !llvm.loop !13

.split:                                           ; preds = %.split, %.split.preheader.new
  %indvars.iv = phi i64 [ 0, %.split.preheader.new ], [ %indvars.iv.next.3, %.split ]
  %niter = phi i64 [ 0, %.split.preheader.new ], [ %niter.next.3, %.split ]
  %53 = getelementptr inbounds float, ptr %26, i64 %indvars.iv
  %54 = load float, ptr %53, align 16, !tbaa !5
  %55 = call float @sqrtf(float noundef %54) #4
  %56 = getelementptr inbounds { float, float }, ptr %27, i64 %indvars.iv
  %57 = getelementptr inbounds i8, ptr %56, i64 4
  store float %55, ptr %56, align 16
  store float 0.000000e+00, ptr %57, align 4
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %58 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.next
  %59 = load float, ptr %58, align 4, !tbaa !5
  %60 = call float @sqrtf(float noundef %59) #4
  %61 = getelementptr inbounds { float, float }, ptr %27, i64 %indvars.iv.next
  %62 = getelementptr inbounds i8, ptr %61, i64 4
  store float %60, ptr %61, align 8
  store float 0.000000e+00, ptr %62, align 4
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %63 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.next.1
  %64 = load float, ptr %63, align 8, !tbaa !5
  %65 = call float @sqrtf(float noundef %64) #4
  %66 = getelementptr inbounds { float, float }, ptr %27, i64 %indvars.iv.next.1
  %67 = getelementptr inbounds i8, ptr %66, i64 4
  store float %65, ptr %66, align 16
  store float 0.000000e+00, ptr %67, align 4
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %68 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.next.2
  %69 = load float, ptr %68, align 4, !tbaa !5
  %70 = call float @sqrtf(float noundef %69) #4
  %71 = getelementptr inbounds { float, float }, ptr %27, i64 %indvars.iv.next.2
  %72 = getelementptr inbounds i8, ptr %71, i64 4
  store float %70, ptr %71, align 8
  store float 0.000000e+00, ptr %72, align 4
  %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 %.split.epil.preheader, label %.split, !llvm.loop !14

.split.epil.preheader:                            ; preds = %.split.preheader, %.split
  %indvars.iv.unr = phi i64 [ 0, %.split.preheader ], [ %indvars.iv.next.3, %.split ]
  br label %.split.epil

.split.epil:                                      ; preds = %.split.epil, %.split.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.split.epil ], [ %indvars.iv.unr, %.split.epil.preheader ]
  %epil.iter = phi i64 [ %epil.iter.next, %.split.epil ], [ 0, %.split.epil.preheader ]
  %73 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.epil
  %74 = load float, ptr %73, align 4, !tbaa !5
  %75 = call float @sqrtf(float noundef %74) #4
  %76 = getelementptr inbounds { float, float }, ptr %27, i64 %indvars.iv.epil
  %77 = getelementptr inbounds i8, ptr %76, i64 4
  store float %75, ptr %76, align 8
  store float 0.000000e+00, ptr %77, align 4
  %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 %.split50.us, label %.split.epil, !llvm.loop !15

.split50.us:                                      ; preds = %.split.epil, %.split.us
  %78 = call i32 @fft_run(i32 noundef %23, ptr noundef nonnull %27, ptr noundef nonnull %28, i32 noundef -1, i32 noundef 0) #4
  %79 = mul i32 %3, %2
  %80 = add i32 %79, 1
  %81 = uitofp i32 %2 to float
  %82 = uitofp i32 %23 to float
  %min.iters.check70 = icmp ult i32 %22, 4
  br i1 %min.iters.check70, label %scalar.ph69.preheader, label %vector.ph71

vector.ph71:                                      ; preds = %.split50.us
  %83 = and i32 %22, -4
  %n.vec73 = zext i32 %83 to i64
  %broadcast.splatinsert = insertelement <4 x float> poison, float %81, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert77 = insertelement <4 x float> poison, float %82, i64 0
  %broadcast.splat78 = shufflevector <4 x float> %broadcast.splatinsert77, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body75

vector.body75:                                    ; preds = %vector.body75, %vector.ph71
  %index76 = phi i64 [ 0, %vector.ph71 ], [ %index.next79, %vector.body75 ]
  %84 = trunc i64 %index76 to i32
  %85 = or disjoint i32 %84, 1
  %86 = or disjoint i32 %84, 2
  %87 = or disjoint i32 %84, 3
  %88 = add i32 %80, %84
  %89 = add i32 %80, %85
  %90 = add i32 %80, %86
  %91 = add i32 %80, %87
  %92 = urem i32 %88, %23
  %93 = urem i32 %89, %23
  %94 = urem i32 %90, %23
  %95 = urem i32 %91, %23
  %96 = zext i32 %92 to i64
  %97 = zext i32 %93 to i64
  %98 = zext i32 %94 to i64
  %99 = zext i32 %95 to i64
  %100 = getelementptr inbounds { float, float }, ptr %28, i64 %96
  %101 = getelementptr inbounds { float, float }, ptr %28, i64 %97
  %102 = getelementptr inbounds { float, float }, ptr %28, i64 %98
  %103 = getelementptr inbounds { float, float }, ptr %28, i64 %99
  %104 = load float, ptr %100, align 8
  %105 = load float, ptr %101, align 8
  %106 = load float, ptr %102, align 8
  %107 = load float, ptr %103, align 8
  %108 = insertelement <4 x float> poison, float %104, i64 0
  %109 = insertelement <4 x float> %108, float %105, i64 1
  %110 = insertelement <4 x float> %109, float %106, i64 2
  %111 = insertelement <4 x float> %110, float %107, i64 3
  %112 = fmul <4 x float> %111, %broadcast.splat
  %113 = fdiv <4 x float> %112, %broadcast.splat78
  %114 = getelementptr inbounds float, ptr %6, i64 %index76
  store <4 x float> %113, ptr %114, align 4, !tbaa !5
  %index.next79 = add nuw i64 %index76, 4
  %115 = icmp eq i64 %index.next79, %n.vec73
  br i1 %115, label %scalar.ph69.preheader, label %vector.body75, !llvm.loop !17

scalar.ph69.preheader:                            ; preds = %vector.body75, %.split50.us
  %indvars.iv59.ph = phi i64 [ 0, %.split50.us ], [ %n.vec73, %vector.body75 ]
  br label %scalar.ph69

scalar.ph69:                                      ; preds = %scalar.ph69.preheader, %scalar.ph69
  %indvars.iv59 = phi i64 [ %indvars.iv.next60, %scalar.ph69 ], [ %indvars.iv59.ph, %scalar.ph69.preheader ]
  %116 = trunc nuw i64 %indvars.iv59 to i32
  %117 = add i32 %80, %116
  %118 = urem i32 %117, %23
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds { float, float }, ptr %28, i64 %119
  %121 = load float, ptr %120, align 8
  %122 = fmul float %121, %81
  %123 = fdiv float %122, %82
  %124 = getelementptr inbounds float, ptr %6, i64 %indvars.iv59
  store float %123, ptr %124, align 4, !tbaa !5
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %exitcond63 = icmp eq i64 %indvars.iv.next60, %wide.trip.count57
  br i1 %exitcond63, label %.loopexit, label %scalar.ph69, !llvm.loop !18

.loopexit:                                        ; preds = %scalar.ph69, %35
  %.0 = phi i32 [ %36, %35 ], [ 0, %scalar.ph69 ]
  call void @llvm.stackrestore.p0(ptr %25)
  br label %125

125:                                              ; preds = %.loopexit, %18, %13, %9
  %.1 = phi i32 [ %10, %9 ], [ %14, %13 ], [ %19, %18 ], [ %.0, %.loopexit ]
  ret i32 %.1
}

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @liquid_firdes_fexp_freqresponse(i32 noundef, i32 noundef, float noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @liquid_firdes_fsech_freqresponse(i32 noundef, i32 noundef, float noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @liquid_firdes_farcsech_freqresponse(i32 noundef, i32 noundef, float noundef, ptr noundef) local_unnamed_addr #0

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

declare i32 @fft_run(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

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 = { "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 willreturn }
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/C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !10, !11, !12}
!18 = distinct !{!18, !10, !12, !11}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass