; LLVM IR from jgaeddert/liquid-dsp :: src/multichannel/src (firpfbch_crcf)

; 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.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [65 x i8], align 1

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) #0

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

declare i32 @liquid_firdes_kaiser(i32 noundef, float noundef, float noundef, float noundef, ptr noundef) #0

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @firpfbchr_crcf_create(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #4

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

19:                                               ; preds = %4
  %20 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.25, i32 noundef 132, ptr noundef @.str.30, ptr noundef @.str.2)
  store ptr %20, ptr %5, align 8
  br label %127

21:                                               ; preds = %4
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = icmp ult i32 %22, 1
  br i1 %23, label %24, label %26

24:                                               ; preds = %21
  %25 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.25, i32 noundef 134, ptr noundef @.str.31, ptr noundef @.str.2)
  store ptr %25, ptr %5, align 8
  br label %127

26:                                               ; preds = %21
  %27 = load i32, ptr %8, align 4, !tbaa !5
  %28 = icmp ult i32 %27, 1
  br i1 %28, label %29, label %31

29:                                               ; preds = %26
  %30 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.25, i32 noundef 136, ptr noundef @.str.32, ptr noundef @.str.2)
  store ptr %30, ptr %5, align 8
  br label %127

31:                                               ; preds = %26
  %32 = load float, ptr %9, align 4, !tbaa !9
  %33 = fcmp ole float %32, 0.000000e+00
  br i1 %33, label %34, label %36

34:                                               ; preds = %31
  %35 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.25, i32 noundef 138, ptr noundef @.str.33, ptr noundef @.str.2)
  store ptr %35, ptr %5, align 8
  br label %127

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = mul i32 2, %37
  %39 = load i32, ptr %8, align 4, !tbaa !5
  %40 = mul i32 %38, %39
  %41 = add i32 %40, 1
  store i32 %41, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %42 = load i32, ptr %10, align 4, !tbaa !5
  %43 = zext i32 %42 to i64
  %44 = mul i64 %43, 4
  %45 = call noalias ptr @malloc(i64 noundef %44) #6
  store ptr %45, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = uitofp i32 %46 to float
  %48 = fdiv float 5.000000e-01, %47
  store float %48, ptr %12, align 4, !tbaa !9
  %49 = load i32, ptr %10, align 4, !tbaa !5
  %50 = load float, ptr %12, align 4, !tbaa !9
  %51 = load float, ptr %9, align 4, !tbaa !9
  %52 = load ptr, ptr %11, align 8, !tbaa !11
  %53 = call i32 @liquid_firdes_kaiser(i32 noundef %49, float noundef %50, float noundef %51, float noundef 0.000000e+00, ptr noundef %52)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store float 0.000000e+00, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %66, %36
  %55 = load i32, ptr %14, align 4, !tbaa !5
  %56 = load i32, ptr %10, align 4, !tbaa !5
  %57 = icmp ult i32 %55, %56
  br i1 %57, label %58, label %69

58:                                               ; preds = %54
  %59 = load ptr, ptr %11, align 8, !tbaa !11
  %60 = load i32, ptr %14, align 4, !tbaa !5
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds float, ptr %59, i64 %61
  %63 = load float, ptr %62, align 4, !tbaa !9
  %64 = load float, ptr %13, align 4, !tbaa !9
  %65 = fadd float %64, %63
  store float %65, ptr %13, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %58
  %67 = load i32, ptr %14, align 4, !tbaa !5
  %68 = add i32 %67, 1
  store i32 %68, ptr %14, align 4, !tbaa !5
  br label %54, !llvm.loop !13

69:                                               ; preds = %54
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %93, %69
  %71 = load i32, ptr %14, align 4, !tbaa !5
  %72 = load i32, ptr %10, align 4, !tbaa !5
  %73 = icmp ult i32 %71, %72
  br i1 %73, label %74, label %96

74:                                               ; preds = %70
  %75 = load ptr, ptr %11, align 8, !tbaa !11
  %76 = load i32, ptr %14, align 4, !tbaa !5
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds float, ptr %75, i64 %77
  %79 = load float, ptr %78, align 4, !tbaa !9
  %80 = load i32, ptr %7, align 4, !tbaa !5
  %81 = uitofp i32 %80 to float
  %82 = call float @sqrtf(float noundef %81) #5
  %83 = fmul float %79, %82
  %84 = load i32, ptr %6, align 4, !tbaa !5
  %85 = uitofp i32 %84 to float
  %86 = fmul float %83, %85
  %87 = load float, ptr %13, align 4, !tbaa !9
  %88 = fdiv float %86, %87
  %89 = load ptr, ptr %11, align 8, !tbaa !11
  %90 = load i32, ptr %14, align 4, !tbaa !5
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds float, ptr %89, i64 %91
  store float %88, ptr %92, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %74
  %94 = load i32, ptr %14, align 4, !tbaa !5
  %95 = add i32 %94, 1
  store i32 %95, ptr %14, align 4, !tbaa !5
  br label %70, !llvm.loop !15

96:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %97 = load i32, ptr %10, align 4, !tbaa !5
  %98 = zext i32 %97 to i64
  %99 = mul i64 %98, 4
  %100 = call noalias ptr @malloc(i64 noundef %99) #6
  store ptr %100, ptr %15, align 8, !tbaa !11
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %115, %96
  %102 = load i32, ptr %14, align 4, !tbaa !5
  %103 = load i32, ptr %10, align 4, !tbaa !5
  %104 = icmp ult i32 %102, %103
  br i1 %104, label %105, label %118

105:                                              ; preds = %101
  %106 = load ptr, ptr %11, align 8, !tbaa !11
  %107 = load i32, ptr %14, align 4, !tbaa !5
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds float, ptr %106, i64 %108
  %110 = load float, ptr %109, align 4, !tbaa !9
  %111 = load ptr, ptr %15, align 8, !tbaa !11
  %112 = load i32, ptr %14, align 4, !tbaa !5
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds float, ptr %111, i64 %113
  store float %110, ptr %114, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %105
  %116 = load i32, ptr %14, align 4, !tbaa !5
  %117 = add i32 %116, 1
  store i32 %117, ptr %14, align 4, !tbaa !5
  br label %101, !llvm.loop !16

118:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %119 = load i32, ptr %6, align 4, !tbaa !5
  %120 = load i32, ptr %7, align 4, !tbaa !5
  %121 = load i32, ptr %8, align 4, !tbaa !5
  %122 = load ptr, ptr %15, align 8, !tbaa !11
  %123 = call ptr @firpfbchr_crcf_create(i32 noundef %119, i32 noundef %120, i32 noundef %121, ptr noundef %122)
  store ptr %123, ptr %16, align 8, !tbaa !11
  %124 = load ptr, ptr %11, align 8, !tbaa !11
  call void @free(ptr noundef %124) #5
  %125 = load ptr, ptr %15, align 8, !tbaa !11
  call void @free(ptr noundef %125) #5
  %126 = load ptr, ptr %16, align 8, !tbaa !11
  store ptr %126, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %127

127:                                              ; preds = %118, %34, %29, %24, %19
  %128 = load ptr, ptr %5, align 8
  ret ptr %128
}

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(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 "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 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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}
!16 = distinct !{!16, !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.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [65 x i8], align 1

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

declare i32 @liquid_firdes_kaiser(i32 noundef, float noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @firpfbchr_crcf_create(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local ptr @firpfbchr_crcf_create_kaiser(i32 noundef %0, i32 noundef %1, i32 noundef %2, float noundef %3) local_unnamed_addr #3 {
  %5 = icmp ult i32 %0, 2
  br i1 %5, label %6, label %8

6:                                                ; preds = %4
  %7 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.25, i32 noundef 132, ptr noundef nonnull @.str.30, ptr noundef nonnull @.str.2) #6
  br label %77

8:                                                ; preds = %4
  %9 = icmp eq i32 %1, 0
  br i1 %9, label %10, label %12

10:                                               ; preds = %8
  %11 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.25, i32 noundef 134, ptr noundef nonnull @.str.31, ptr noundef nonnull @.str.2) #6
  br label %77

12:                                               ; preds = %8
  %13 = icmp eq i32 %2, 0
  br i1 %13, label %14, label %16

14:                                               ; preds = %12
  %15 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.25, i32 noundef 136, ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.2) #6
  br label %77

16:                                               ; preds = %12
  %17 = fcmp ugt float %3, 0.000000e+00
  br i1 %17, label %20, label %18

18:                                               ; preds = %16
  %19 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.25, i32 noundef 138, ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.2) #6
  br label %77

20:                                               ; preds = %16
  %21 = shl i32 %0, 1
  %22 = mul i32 %21, %2
  %23 = or disjoint i32 %22, 1
  %24 = zext i32 %23 to i64
  %25 = shl nuw nsw i64 %24, 2
  %26 = tail call noalias ptr @malloc(i64 noundef %25) #7
  %27 = uitofp i32 %1 to float
  %28 = fdiv float 5.000000e-01, %27
  %29 = tail call i32 @liquid_firdes_kaiser(i32 noundef %23, float noundef %28, float noundef %3, float noundef 0.000000e+00, ptr noundef %26) #6
  %30 = or disjoint i32 %22, 1
  %wide.trip.count = zext i32 %30 to i64
  %xtraiter = and i64 %wide.trip.count, 7
  %31 = icmp ult i32 %22, 7
  br i1 %31, label %.epil.preheader, label %.new

.new:                                             ; preds = %20
  %unroll_iter = and i64 %wide.trip.count, 4294967288
  br label %42

.epil.preheader:                                  ; preds = %20, %42
  %indvars.iv.unr = phi i64 [ 0, %20 ], [ %indvars.iv.next.7, %42 ]
  %.04353.unr = phi float [ 0.000000e+00, %20 ], [ %66, %42 ]
  br label %32

32:                                               ; preds = %32, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.unr, %.epil.preheader ], [ %indvars.iv.next.epil, %32 ]
  %.04353.epil = phi float [ %.04353.unr, %.epil.preheader ], [ %35, %32 ]
  %epil.iter = phi i64 [ 0, %.epil.preheader ], [ %epil.iter.next, %32 ]
  %33 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.epil
  %34 = load float, ptr %33, align 4, !tbaa !5
  %35 = fadd float %.04353.epil, %34
  %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 %.preheader, label %32, !llvm.loop !9

.preheader:                                       ; preds = %32
  %sqrt = tail call float @llvm.sqrt.f32(float %27)
  %36 = uitofp i32 %0 to float
  %min.iters.check = icmp ult i32 %22, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %vector.body, %.preheader
  %indvars.iv57.ph = phi i64 [ 0, %.preheader ], [ %n.vec, %vector.body ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.preheader
  %n.vec = and i64 %wide.trip.count, 4294967292
  %broadcast.splatinsert = insertelement <4 x float> poison, float %sqrt, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert65 = insertelement <4 x float> poison, float %36, i64 0
  %broadcast.splat66 = shufflevector <4 x float> %broadcast.splatinsert65, <4 x float> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert67 = insertelement <4 x float> poison, float %35, i64 0
  %broadcast.splat68 = shufflevector <4 x float> %broadcast.splatinsert67, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %37 = getelementptr inbounds float, ptr %26, i64 %index
  %wide.load = load <4 x float>, ptr %37, align 4, !tbaa !5
  %38 = fmul <4 x float> %broadcast.splat, %wide.load
  %39 = fmul <4 x float> %38, %broadcast.splat66
  %40 = fdiv <4 x float> %39, %broadcast.splat68
  store <4 x float> %40, ptr %37, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %41 = icmp eq i64 %index.next, %n.vec
  br i1 %41, label %scalar.ph.preheader, label %vector.body, !llvm.loop !11

42:                                               ; preds = %42, %.new
  %indvars.iv = phi i64 [ 0, %.new ], [ %indvars.iv.next.7, %42 ]
  %.04353 = phi float [ 0.000000e+00, %.new ], [ %66, %42 ]
  %niter = phi i64 [ 0, %.new ], [ %niter.next.7, %42 ]
  %43 = getelementptr inbounds float, ptr %26, i64 %indvars.iv
  %44 = load float, ptr %43, align 4, !tbaa !5
  %45 = fadd float %.04353, %44
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %46 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.next
  %47 = load float, ptr %46, align 4, !tbaa !5
  %48 = fadd float %45, %47
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %49 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.next.1
  %50 = load float, ptr %49, align 4, !tbaa !5
  %51 = fadd float %48, %50
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %52 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.next.2
  %53 = load float, ptr %52, align 4, !tbaa !5
  %54 = fadd float %51, %53
  %indvars.iv.next.3 = or disjoint i64 %indvars.iv, 4
  %55 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.next.3
  %56 = load float, ptr %55, align 4, !tbaa !5
  %57 = fadd float %54, %56
  %indvars.iv.next.4 = or disjoint i64 %indvars.iv, 5
  %58 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.next.4
  %59 = load float, ptr %58, align 4, !tbaa !5
  %60 = fadd float %57, %59
  %indvars.iv.next.5 = or disjoint i64 %indvars.iv, 6
  %61 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.next.5
  %62 = load float, ptr %61, align 4, !tbaa !5
  %63 = fadd float %60, %62
  %indvars.iv.next.6 = or disjoint i64 %indvars.iv, 7
  %64 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.next.6
  %65 = load float, ptr %64, align 4, !tbaa !5
  %66 = fadd float %63, %65
  %indvars.iv.next.7 = add nuw nsw i64 %indvars.iv, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %.epil.preheader, label %42, !llvm.loop !15

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv57 = phi i64 [ %indvars.iv.next58, %scalar.ph ], [ %indvars.iv57.ph, %scalar.ph.preheader ]
  %67 = getelementptr inbounds float, ptr %26, i64 %indvars.iv57
  %68 = load float, ptr %67, align 4, !tbaa !5
  %69 = fmul float %sqrt, %68
  %70 = fmul float %69, %36
  %71 = fdiv float %70, %35
  store float %71, ptr %67, align 4, !tbaa !5
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %exitcond61 = icmp eq i64 %indvars.iv.next58, %wide.trip.count
  br i1 %exitcond61, label %.loopexit, label %scalar.ph, !llvm.loop !16

.loopexit:                                        ; preds = %scalar.ph
  %72 = tail call noalias ptr @malloc(i64 noundef %25) #7
  %73 = zext i32 %22 to i64
  %74 = shl nuw nsw i64 %73, 2
  %75 = or disjoint i64 %74, 4
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %72, ptr noundef nonnull align 4 dereferenceable(1) %26, i64 %75, i1 false), !tbaa !5
  %76 = tail call ptr @firpfbchr_crcf_create(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %72)
  tail call void @free(ptr noundef nonnull %26) #6
  tail call void @free(ptr noundef %72) #6
  br label %77

77:                                               ; preds = %.loopexit, %18, %14, %10, %6
  %.0 = phi ptr [ %7, %6 ], [ %11, %10 ], [ %15, %14 ], [ %19, %18 ], [ %76, %.loopexit ]
  ret ptr %.0
}

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

; 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) #5

attributes #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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

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


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass