; 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.15 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [68 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 @firpfbch2_crcf_create(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local ptr @firpfbch2_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 ne i32 %17, 0
  br i1 %18, label %19, label %25

19:                                               ; preds = %4
  %20 = load i32, ptr %6, align 4, !tbaa !5
  %21 = icmp ne i32 %20, 1
  br i1 %21, label %22, label %25

22:                                               ; preds = %19
  %23 = load i32, ptr %6, align 4, !tbaa !5
  %24 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.15, i32 noundef 139, ptr noundef @.str.19, ptr noundef @.str.2, i32 noundef %23)
  store ptr %24, ptr %5, align 8
  br label %135

25:                                               ; preds = %19, %4
  %26 = load i32, ptr %7, align 4, !tbaa !5
  %27 = icmp ult i32 %26, 2
  br i1 %27, label %32, label %28

28:                                               ; preds = %25
  %29 = load i32, ptr %7, align 4, !tbaa !5
  %30 = urem i32 %29, 2
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %34

32:                                               ; preds = %28, %25
  %33 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.15, i32 noundef 141, ptr noundef @.str.20, ptr noundef @.str.2)
  store ptr %33, ptr %5, align 8
  br label %135

34:                                               ; preds = %28
  %35 = load i32, ptr %8, align 4, !tbaa !5
  %36 = icmp ult i32 %35, 1
  br i1 %36, label %37, label %39

37:                                               ; preds = %34
  %38 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.15, i32 noundef 143, ptr noundef @.str.21, ptr noundef @.str.2)
  store ptr %38, ptr %5, align 8
  br label %135

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = mul i32 2, %40
  %42 = load i32, ptr %8, align 4, !tbaa !5
  %43 = mul i32 %41, %42
  %44 = add i32 %43, 1
  store i32 %44, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %45 = load i32, ptr %10, align 4, !tbaa !5
  %46 = zext i32 %45 to i64
  %47 = mul i64 %46, 4
  %48 = call noalias ptr @malloc(i64 noundef %47) #6
  store ptr %48, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %55

51:                                               ; preds = %39
  %52 = load i32, ptr %7, align 4, !tbaa !5
  %53 = uitofp i32 %52 to float
  %54 = fdiv float 1.000000e+00, %53
  br label %59

55:                                               ; preds = %39
  %56 = load i32, ptr %7, align 4, !tbaa !5
  %57 = uitofp i32 %56 to float
  %58 = fdiv float 5.000000e-01, %57
  br label %59

59:                                               ; preds = %55, %51
  %60 = phi float [ %54, %51 ], [ %58, %55 ]
  store float %60, ptr %12, align 4, !tbaa !9
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = load float, ptr %12, align 4, !tbaa !9
  %63 = load float, ptr %9, align 4, !tbaa !9
  %64 = load ptr, ptr %11, align 8, !tbaa !11
  %65 = call i32 @liquid_firdes_kaiser(i32 noundef %61, float noundef %62, float noundef %63, float noundef 0.000000e+00, ptr noundef %64)
  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 %66

66:                                               ; preds = %78, %59
  %67 = load i32, ptr %14, align 4, !tbaa !5
  %68 = load i32, ptr %10, align 4, !tbaa !5
  %69 = icmp ult i32 %67, %68
  br i1 %69, label %70, label %81

70:                                               ; preds = %66
  %71 = load ptr, ptr %11, align 8, !tbaa !11
  %72 = load i32, ptr %14, align 4, !tbaa !5
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds float, ptr %71, i64 %73
  %75 = load float, ptr %74, align 4, !tbaa !9
  %76 = load float, ptr %13, align 4, !tbaa !9
  %77 = fadd float %76, %75
  store float %77, ptr %13, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %70
  %79 = load i32, ptr %14, align 4, !tbaa !5
  %80 = add i32 %79, 1
  store i32 %80, ptr %14, align 4, !tbaa !5
  br label %66, !llvm.loop !13

81:                                               ; preds = %66
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %101, %81
  %83 = load i32, ptr %14, align 4, !tbaa !5
  %84 = load i32, ptr %10, align 4, !tbaa !5
  %85 = icmp ult i32 %83, %84
  br i1 %85, label %86, label %104

86:                                               ; preds = %82
  %87 = load ptr, ptr %11, align 8, !tbaa !11
  %88 = load i32, ptr %14, align 4, !tbaa !5
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %87, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !9
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = uitofp i32 %92 to float
  %94 = fmul float %91, %93
  %95 = load float, ptr %13, align 4, !tbaa !9
  %96 = fdiv float %94, %95
  %97 = load ptr, ptr %11, align 8, !tbaa !11
  %98 = load i32, ptr %14, align 4, !tbaa !5
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds float, ptr %97, i64 %99
  store float %96, ptr %100, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %86
  %102 = load i32, ptr %14, align 4, !tbaa !5
  %103 = add i32 %102, 1
  store i32 %103, ptr %14, align 4, !tbaa !5
  br label %82, !llvm.loop !15

104:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %105 = load i32, ptr %10, align 4, !tbaa !5
  %106 = zext i32 %105 to i64
  %107 = mul i64 %106, 4
  %108 = call noalias ptr @malloc(i64 noundef %107) #6
  store ptr %108, ptr %15, align 8, !tbaa !11
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %123, %104
  %110 = load i32, ptr %14, align 4, !tbaa !5
  %111 = load i32, ptr %10, align 4, !tbaa !5
  %112 = icmp ult i32 %110, %111
  br i1 %112, label %113, label %126

113:                                              ; preds = %109
  %114 = load ptr, ptr %11, align 8, !tbaa !11
  %115 = load i32, ptr %14, align 4, !tbaa !5
  %116 = zext i32 %115 to i64
  %117 = getelementptr inbounds float, ptr %114, i64 %116
  %118 = load float, ptr %117, align 4, !tbaa !9
  %119 = load ptr, ptr %15, align 8, !tbaa !11
  %120 = load i32, ptr %14, align 4, !tbaa !5
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds float, ptr %119, i64 %121
  store float %118, ptr %122, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %113
  %124 = load i32, ptr %14, align 4, !tbaa !5
  %125 = add i32 %124, 1
  store i32 %125, ptr %14, align 4, !tbaa !5
  br label %109, !llvm.loop !16

126:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %127 = load i32, ptr %6, align 4, !tbaa !5
  %128 = load i32, ptr %7, align 4, !tbaa !5
  %129 = load i32, ptr %8, align 4, !tbaa !5
  %130 = load ptr, ptr %15, align 8, !tbaa !11
  %131 = call ptr @firpfbch2_crcf_create(i32 noundef %127, i32 noundef %128, i32 noundef %129, ptr noundef %130)
  store ptr %131, ptr %16, align 8, !tbaa !11
  %132 = load ptr, ptr %11, align 8, !tbaa !11
  call void @free(ptr noundef %132) #5
  %133 = load ptr, ptr %15, align 8, !tbaa !11
  call void @free(ptr noundef %133) #5
  %134 = load ptr, ptr %16, align 8, !tbaa !11
  store ptr %134, 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 %135

135:                                              ; preds = %126, %37, %32, %22
  %136 = load ptr, ptr %5, align 8
  ret ptr %136
}

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.15 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [68 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 @firpfbch2_crcf_create(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local ptr @firpfbch2_crcf_create_kaiser(i32 noundef %0, i32 noundef %1, i32 noundef %2, float noundef %3) local_unnamed_addr #3 {
  %or.cond = icmp ugt i32 %0, 1
  br i1 %or.cond, label %5, label %7

5:                                                ; preds = %4
  %6 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.15, i32 noundef 139, ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.2, i32 noundef %0) #5
  br label %71

7:                                                ; preds = %4
  %8 = icmp ugt i32 %1, 1
  %9 = and i32 %1, 1
  %.not = icmp eq i32 %9, 0
  %or.cond56 = and i1 %8, %.not
  br i1 %or.cond56, label %12, label %10

10:                                               ; preds = %7
  %11 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.15, i32 noundef 141, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.2) #5
  br label %71

12:                                               ; preds = %7
  %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.15, i32 noundef 143, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.2) #5
  br label %71

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

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

.epil.preheader:                                  ; preds = %16, %37
  %indvars.iv.unr = phi i64 [ 0, %16 ], [ %indvars.iv.next.7, %37 ]
  %.04758.unr = phi float [ 0.000000e+00, %16 ], [ %61, %37 ]
  br label %29

29:                                               ; preds = %29, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.unr, %.epil.preheader ], [ %indvars.iv.next.epil, %29 ]
  %.04758.epil = phi float [ %.04758.unr, %.epil.preheader ], [ %32, %29 ]
  %epil.iter = phi i64 [ 0, %.epil.preheader ], [ %epil.iter.next, %29 ]
  %30 = getelementptr inbounds float, ptr %22, i64 %indvars.iv.epil
  %31 = load float, ptr %30, align 4, !tbaa !5
  %32 = fadd float %.04758.epil, %31
  %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 %29, !llvm.loop !9

.preheader:                                       ; preds = %29
  %min.iters.check = icmp ult i32 %18, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

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

vector.ph:                                        ; preds = %.preheader
  %n.vec = zext i32 %18 to i64
  %broadcast.splatinsert = insertelement <4 x float> poison, float %24, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert70 = insertelement <4 x float> poison, float %32, i64 0
  %broadcast.splat71 = shufflevector <4 x float> %broadcast.splatinsert70, <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 ]
  %33 = getelementptr inbounds float, ptr %22, i64 %index
  %wide.load = load <4 x float>, ptr %33, align 4, !tbaa !5
  %34 = fmul <4 x float> %wide.load, %broadcast.splat
  %35 = fdiv <4 x float> %34, %broadcast.splat71
  store <4 x float> %35, ptr %33, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %36 = icmp eq i64 %index.next, %n.vec
  br i1 %36, label %scalar.ph.preheader, label %vector.body, !llvm.loop !11

37:                                               ; preds = %37, %.new
  %indvars.iv = phi i64 [ 0, %.new ], [ %indvars.iv.next.7, %37 ]
  %.04758 = phi float [ 0.000000e+00, %.new ], [ %61, %37 ]
  %niter = phi i64 [ 0, %.new ], [ %niter.next.7, %37 ]
  %38 = getelementptr inbounds float, ptr %22, i64 %indvars.iv
  %39 = load float, ptr %38, align 4, !tbaa !5
  %40 = fadd float %.04758, %39
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %41 = getelementptr inbounds float, ptr %22, i64 %indvars.iv.next
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = fadd float %40, %42
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %44 = getelementptr inbounds float, ptr %22, i64 %indvars.iv.next.1
  %45 = load float, ptr %44, align 4, !tbaa !5
  %46 = fadd float %43, %45
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %47 = getelementptr inbounds float, ptr %22, i64 %indvars.iv.next.2
  %48 = load float, ptr %47, align 4, !tbaa !5
  %49 = fadd float %46, %48
  %indvars.iv.next.3 = or disjoint i64 %indvars.iv, 4
  %50 = getelementptr inbounds float, ptr %22, i64 %indvars.iv.next.3
  %51 = load float, ptr %50, align 4, !tbaa !5
  %52 = fadd float %49, %51
  %indvars.iv.next.4 = or disjoint i64 %indvars.iv, 5
  %53 = getelementptr inbounds float, ptr %22, i64 %indvars.iv.next.4
  %54 = load float, ptr %53, align 4, !tbaa !5
  %55 = fadd float %52, %54
  %indvars.iv.next.5 = or disjoint i64 %indvars.iv, 6
  %56 = getelementptr inbounds float, ptr %22, i64 %indvars.iv.next.5
  %57 = load float, ptr %56, align 4, !tbaa !5
  %58 = fadd float %55, %57
  %indvars.iv.next.6 = or disjoint i64 %indvars.iv, 7
  %59 = getelementptr inbounds float, ptr %22, i64 %indvars.iv.next.6
  %60 = load float, ptr %59, align 4, !tbaa !5
  %61 = fadd float %58, %60
  %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 %37, !llvm.loop !15

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv62 = phi i64 [ %indvars.iv.next63, %scalar.ph ], [ %indvars.iv62.ph, %scalar.ph.preheader ]
  %62 = getelementptr inbounds float, ptr %22, i64 %indvars.iv62
  %63 = load float, ptr %62, align 4, !tbaa !5
  %64 = fmul float %63, %24
  %65 = fdiv float %64, %32
  store float %65, ptr %62, align 4, !tbaa !5
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %exitcond66 = icmp eq i64 %indvars.iv.next63, %wide.trip.count
  br i1 %exitcond66, label %.loopexit, label %scalar.ph, !llvm.loop !16

.loopexit:                                        ; preds = %scalar.ph
  %66 = tail call noalias ptr @malloc(i64 noundef %21) #6
  %67 = zext i32 %18 to i64
  %68 = shl nuw nsw i64 %67, 2
  %69 = or disjoint i64 %68, 4
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %66, ptr noundef nonnull align 4 dereferenceable(1) %22, i64 %69, i1 false), !tbaa !5
  %70 = tail call ptr @firpfbch2_crcf_create(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %66)
  tail call void @free(ptr noundef nonnull %22) #5
  tail call void @free(ptr noundef %66) #5
  br label %71

71:                                               ; preds = %.loopexit, %14, %10, %5
  %.0 = phi ptr [ %6, %5 ], [ %11, %10 ], [ %15, %14 ], [ %70, %.loopexit ]
  ret ptr %.0
}

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

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 nounwind willreturn memory(argmem: readwrite) }
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 = !{!"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: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass