; LLVM IR from jgaeddert/liquid-dsp :: src/filter/src (filter_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"

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

@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [69 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

; Function Attrs: nounwind uwtable
define dso_local ptr @fftfilt_crcf_create(ptr noundef %0, i32 noundef %1, i32 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  %10 = load i32, ptr %6, align 4, !tbaa !9
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %12, label %14

12:                                               ; preds = %3
  %13 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.10, i32 noundef 59, ptr noundef @.str.11, ptr noundef @.str.2)
  store ptr %13, ptr %4, align 8
  br label %164

14:                                               ; preds = %3
  %15 = load i32, ptr %7, align 4, !tbaa !9
  %16 = load i32, ptr %6, align 4, !tbaa !9
  %17 = sub i32 %16, 1
  %18 = icmp ult i32 %15, %17
  br i1 %18, label %19, label %23

19:                                               ; preds = %14
  %20 = load i32, ptr %6, align 4, !tbaa !9
  %21 = sub i32 %20, 1
  %22 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.10, i32 noundef 61, ptr noundef @.str.12, ptr noundef @.str.2, i32 noundef %21)
  store ptr %22, ptr %4, align 8
  br label %164

23:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %24 = call noalias ptr @malloc(i64 noundef 72) #6
  store ptr %24, ptr %8, align 8, !tbaa !5
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %26, i32 0, i32 1
  store i32 %25, ptr %27, align 8, !tbaa !11
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %29, i32 0, i32 2
  store i32 %28, ptr %30, align 4, !tbaa !14
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %31, i32 0, i32 1
  %33 = load i32, ptr %32, align 8, !tbaa !11
  %34 = zext i32 %33 to i64
  %35 = mul i64 %34, 4
  %36 = call noalias ptr @malloc(i64 noundef %35) #6
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %37, i32 0, i32 0
  store ptr %36, ptr %38, align 8, !tbaa !15
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !15
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = load i32, ptr %6, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  %45 = mul i64 %44, 4
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %41, ptr align 4 %42, i64 %45, i1 false)
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %46, i32 0, i32 2
  %48 = load i32, ptr %47, align 4, !tbaa !14
  %49 = mul i32 2, %48
  %50 = zext i32 %49 to i64
  %51 = mul i64 %50, 8
  %52 = call noalias ptr @malloc(i64 noundef %51) #6
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %53, i32 0, i32 3
  store ptr %52, ptr %54, align 8, !tbaa !16
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %55, i32 0, i32 2
  %57 = load i32, ptr %56, align 4, !tbaa !14
  %58 = mul i32 2, %57
  %59 = zext i32 %58 to i64
  %60 = mul i64 %59, 8
  %61 = call noalias ptr @malloc(i64 noundef %60) #6
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %62, i32 0, i32 4
  store ptr %61, ptr %63, align 8, !tbaa !17
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %64, i32 0, i32 2
  %66 = load i32, ptr %65, align 4, !tbaa !14
  %67 = mul i32 2, %66
  %68 = zext i32 %67 to i64
  %69 = mul i64 %68, 8
  %70 = call noalias ptr @malloc(i64 noundef %69) #6
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %71, i32 0, i32 5
  store ptr %70, ptr %72, align 8, !tbaa !18
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %73, i32 0, i32 2
  %75 = load i32, ptr %74, align 4, !tbaa !14
  %76 = zext i32 %75 to i64
  %77 = mul i64 %76, 8
  %78 = call noalias ptr @malloc(i64 noundef %77) #6
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %79, i32 0, i32 6
  store ptr %78, ptr %80, align 8, !tbaa !19
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %81, i32 0, i32 2
  %83 = load i32, ptr %82, align 4, !tbaa !14
  %84 = mul i32 2, %83
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %85, i32 0, i32 3
  %87 = load ptr, ptr %86, align 8, !tbaa !16
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !17
  %91 = call ptr @fft_create_plan(i32 noundef %84, ptr noundef %87, ptr noundef %90, i32 noundef 1, i32 noundef 0)
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %92, i32 0, i32 7
  store ptr %91, ptr %93, align 8, !tbaa !20
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %94, i32 0, i32 2
  %96 = load i32, ptr %95, align 4, !tbaa !14
  %97 = mul i32 2, %96
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %98, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !17
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %101, i32 0, i32 3
  %103 = load ptr, ptr %102, align 8, !tbaa !16
  %104 = call ptr @fft_create_plan(i32 noundef %97, ptr noundef %100, ptr noundef %103, i32 noundef -1, i32 noundef 0)
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %105, i32 0, i32 8
  store ptr %104, ptr %106, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %139, %23
  %108 = load i32, ptr %9, align 4, !tbaa !9
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %109, i32 0, i32 2
  %111 = load i32, ptr %110, align 4, !tbaa !14
  %112 = mul i32 2, %111
  %113 = icmp ult i32 %108, %112
  br i1 %113, label %114, label %142

114:                                              ; preds = %107
  %115 = load i32, ptr %9, align 4, !tbaa !9
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %116, i32 0, i32 1
  %118 = load i32, ptr %117, align 8, !tbaa !11
  %119 = icmp ult i32 %115, %118
  br i1 %119, label %120, label %128

120:                                              ; preds = %114
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !15
  %124 = load i32, ptr %9, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds float, ptr %123, i64 %125
  %127 = load float, ptr %126, align 4, !tbaa !22
  br label %129

128:                                              ; preds = %114
  br label %129

129:                                              ; preds = %128, %120
  %130 = phi float [ %127, %120 ], [ 0.000000e+00, %128 ]
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %131, i32 0, i32 3
  %133 = load ptr, ptr %132, align 8, !tbaa !16
  %134 = load i32, ptr %9, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds { float, float }, ptr %133, i64 %135
  %137 = getelementptr inbounds { float, float }, ptr %136, i32 0, i32 0
  %138 = getelementptr inbounds { float, float }, ptr %136, i32 0, i32 1
  store float %130, ptr %137, align 4
  store float 0.000000e+00, ptr %138, align 4
  br label %139

139:                                              ; preds = %129
  %140 = load i32, ptr %9, align 4, !tbaa !9
  %141 = add i32 %140, 1
  store i32 %141, ptr %9, align 4, !tbaa !9
  br label %107, !llvm.loop !23

142:                                              ; preds = %107
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %143, i32 0, i32 7
  %145 = load ptr, ptr %144, align 8, !tbaa !20
  %146 = call i32 @fft_execute(ptr noundef %145)
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %147, i32 0, i32 5
  %149 = load ptr, ptr %148, align 8, !tbaa !18
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %150, i32 0, i32 4
  %152 = load ptr, ptr %151, align 8, !tbaa !17
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.fftfilt_crcf_s, ptr %153, i32 0, i32 2
  %155 = load i32, ptr %154, align 4, !tbaa !14
  %156 = mul i32 2, %155
  %157 = zext i32 %156 to i64
  %158 = mul i64 %157, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %149, ptr align 4 %152, i64 %158, i1 false)
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = call i32 @fftfilt_crcf_set_scale(ptr noundef %159, float noundef 1.000000e+00)
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = call i32 @fftfilt_crcf_reset(ptr noundef %161)
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %163, ptr %4, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %164

164:                                              ; preds = %142, %19, %12
  %165 = load ptr, ptr %4, align 8
  ret ptr %165
}

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

declare ptr @fft_create_plan(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

declare i32 @fft_execute(ptr noundef) #0

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @fftfilt_crcf_reset(ptr 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 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"fftfilt_crcf_s", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !13, i64 64}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !10, i64 12}
!15 = !{!12, !6, i64 0}
!16 = !{!12, !6, i64 16}
!17 = !{!12, !6, i64 24}
!18 = !{!12, !6, i64 32}
!19 = !{!12, !6, i64 40}
!20 = !{!12, !6, i64 48}
!21 = !{!12, !6, i64 56}
!22 = !{!13, !13, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; 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.10 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [69 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

; Function Attrs: nounwind uwtable
define dso_local ptr @fftfilt_crcf_create(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = icmp eq i32 %1, 0
  br i1 %4, label %5, label %7

5:                                                ; preds = %3
  %6 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.10, i32 noundef 59, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.2) #5
  br label %62

7:                                                ; preds = %3
  %8 = add i32 %1, -1
  %9 = icmp ugt i32 %8, %2
  br i1 %9, label %10, label %12

10:                                               ; preds = %7
  %11 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.10, i32 noundef 61, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.2, i32 noundef %8) #5
  br label %62

12:                                               ; preds = %7
  %13 = tail call noalias dereferenceable_or_null(72) ptr @malloc(i64 noundef 72) #6
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  store i32 %1, ptr %14, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %13, i64 12
  store i32 %2, ptr %15, align 4, !tbaa !12
  %16 = zext i32 %1 to i64
  %17 = shl nuw nsw i64 %16, 2
  %18 = tail call noalias ptr @malloc(i64 noundef %17) #6
  store ptr %18, ptr %13, align 8, !tbaa !13
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %0, i64 %17, i1 false)
  %19 = shl i32 %2, 1
  %20 = zext i32 %19 to i64
  %21 = shl nuw nsw i64 %20, 3
  %22 = tail call noalias ptr @malloc(i64 noundef %21) #6
  %23 = getelementptr inbounds i8, ptr %13, i64 16
  store ptr %22, ptr %23, align 8, !tbaa !14
  %24 = tail call noalias ptr @malloc(i64 noundef %21) #6
  %25 = getelementptr inbounds i8, ptr %13, i64 24
  store ptr %24, ptr %25, align 8, !tbaa !15
  %26 = tail call noalias ptr @malloc(i64 noundef %21) #6
  %27 = getelementptr inbounds i8, ptr %13, i64 32
  store ptr %26, ptr %27, align 8, !tbaa !16
  %28 = zext i32 %2 to i64
  %29 = shl nuw nsw i64 %28, 3
  %30 = tail call noalias ptr @malloc(i64 noundef %29) #6
  %31 = getelementptr inbounds i8, ptr %13, i64 40
  store ptr %30, ptr %31, align 8, !tbaa !17
  %32 = tail call ptr @fft_create_plan(i32 noundef %19, ptr noundef %22, ptr noundef %24, i32 noundef 1, i32 noundef 0) #5
  %33 = getelementptr inbounds i8, ptr %13, i64 48
  store ptr %32, ptr %33, align 8, !tbaa !18
  %34 = tail call ptr @fft_create_plan(i32 noundef %19, ptr noundef %24, ptr noundef %22, i32 noundef -1, i32 noundef 0) #5
  %35 = getelementptr inbounds i8, ptr %13, i64 56
  store ptr %34, ptr %35, align 8, !tbaa !19
  %.mask = and i32 %2, 2147483647
  %.not = icmp eq i32 %.mask, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %12
  %umax = tail call i64 @llvm.umax.i64(i64 %20, i64 1)
  %xtraiter = and i64 %umax, 1
  %36 = icmp eq i64 %umax, 1
  br i1 %36, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %umax, 4294967294
  br label %.lr.ph

.lr.ph:                                           ; preds = %48, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %48 ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %48 ]
  %37 = icmp ult i64 %indvars.iv, %16
  br i1 %37, label %38, label %.lr.ph.1

38:                                               ; preds = %.lr.ph
  %39 = getelementptr inbounds float, ptr %18, i64 %indvars.iv
  %40 = load float, ptr %39, align 4, !tbaa !20
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph, %38
  %41 = phi float [ %40, %38 ], [ 0.000000e+00, %.lr.ph ]
  %42 = getelementptr inbounds { float, float }, ptr %22, i64 %indvars.iv
  %43 = getelementptr inbounds i8, ptr %42, i64 4
  store float %41, ptr %42, align 4
  store float 0.000000e+00, ptr %43, align 4
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %44 = icmp ult i64 %indvars.iv.next, %16
  br i1 %44, label %45, label %48

45:                                               ; preds = %.lr.ph.1
  %46 = getelementptr inbounds float, ptr %18, i64 %indvars.iv.next
  %47 = load float, ptr %46, align 4, !tbaa !20
  br label %48

48:                                               ; preds = %45, %.lr.ph.1
  %49 = phi float [ %47, %45 ], [ 0.000000e+00, %.lr.ph.1 ]
  %50 = getelementptr inbounds { float, float }, ptr %22, i64 %indvars.iv.next
  %51 = getelementptr inbounds i8, ptr %50, i64 4
  store float %49, ptr %50, align 4
  store float 0.000000e+00, ptr %51, align 4
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1.not = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1.not, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !21

._crit_edge.loopexit.unr-lcssa:                   ; preds = %48, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %48 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %52 = icmp ult i64 %indvars.iv.unr, %16
  br i1 %52, label %53, label %._crit_edge.loopexit.epilog-lcssa

53:                                               ; preds = %.lr.ph.epil
  %54 = getelementptr inbounds float, ptr %18, i64 %indvars.iv.unr
  %55 = load float, ptr %54, align 4, !tbaa !20
  br label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %53, %.lr.ph.epil
  %56 = phi float [ %55, %53 ], [ 0.000000e+00, %.lr.ph.epil ]
  %57 = getelementptr inbounds { float, float }, ptr %22, i64 %indvars.iv.unr
  %58 = getelementptr inbounds i8, ptr %57, i64 4
  store float %56, ptr %57, align 4
  store float 0.000000e+00, ptr %58, align 4
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %12
  %59 = tail call i32 @fft_execute(ptr noundef %32) #5
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %24, i64 %21, i1 false)
  %60 = tail call i32 @fftfilt_crcf_set_scale(ptr noundef nonnull %13, float noundef 1.000000e+00)
  %61 = tail call i32 @fftfilt_crcf_reset(ptr noundef nonnull %13)
  br label %62

62:                                               ; preds = %._crit_edge, %10, %5
  %.045 = phi ptr [ %6, %5 ], [ %11, %10 ], [ %13, %._crit_edge ]
  ret ptr %.045
}

declare ptr @fft_create_plan(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare i32 @fft_execute(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @fftfilt_crcf_reset(ptr noundef) local_unnamed_addr #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 nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #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 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 8}
!6 = !{!"fftfilt_crcf_s", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !11, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!6, !10, i64 12}
!13 = !{!6, !7, i64 0}
!14 = !{!6, !7, i64 16}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !7, i64 32}
!17 = !{!6, !7, i64 40}
!18 = !{!6, !7, i64 48}
!19 = !{!6, !7, i64 56}
!20 = !{!11, !11, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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