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

; 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_cccf_s = type { ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, { float, float } }

@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [69 x i8], align 1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @fftfilt_cccf_create(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4 {
  %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
  %10 = alloca { float, float }, 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
  %11 = load i32, ptr %6, align 4, !tbaa !9
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %15

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

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

20:                                               ; preds = %15
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = sub i32 %21, 1
  %23 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.11, i32 noundef 61, ptr noundef @.str.13, ptr noundef @.str.3, i32 noundef %22)
  store ptr %23, ptr %4, align 8
  br label %172

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

108:                                              ; preds = %144, %24
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.fftfilt_cccf_s, ptr %110, i32 0, i32 2
  %112 = load i32, ptr %111, align 4, !tbaa !13
  %113 = mul i32 2, %112
  %114 = icmp ult i32 %109, %113
  br i1 %114, label %115, label %147

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

121:                                              ; preds = %115
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.fftfilt_cccf_s, ptr %122, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8, !tbaa !14
  %125 = load i32, ptr %9, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds { float, float }, ptr %124, i64 %126
  %128 = getelementptr inbounds { float, float }, ptr %127, i32 0, i32 0
  %129 = load float, ptr %128, align 4
  %130 = getelementptr inbounds { float, float }, ptr %127, i32 0, i32 1
  %131 = load float, ptr %130, align 4
  br label %133

132:                                              ; preds = %115
  br label %133

133:                                              ; preds = %132, %121
  %134 = phi float [ %129, %121 ], [ 0.000000e+00, %132 ]
  %135 = phi float [ %131, %121 ], [ 0.000000e+00, %132 ]
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.fftfilt_cccf_s, ptr %136, i32 0, i32 3
  %138 = load ptr, ptr %137, align 8, !tbaa !15
  %139 = load i32, ptr %9, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds { float, float }, ptr %138, i64 %140
  %142 = getelementptr inbounds { float, float }, ptr %141, i32 0, i32 0
  %143 = getelementptr inbounds { float, float }, ptr %141, i32 0, i32 1
  store float %134, ptr %142, align 4
  store float %135, ptr %143, align 4
  br label %144

144:                                              ; preds = %133
  %145 = load i32, ptr %9, align 4, !tbaa !9
  %146 = add i32 %145, 1
  store i32 %146, ptr %9, align 4, !tbaa !9
  br label %108, !llvm.loop !21

147:                                              ; preds = %108
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.fftfilt_cccf_s, ptr %148, i32 0, i32 7
  %150 = load ptr, ptr %149, align 8, !tbaa !19
  %151 = call i32 @fft_execute(ptr noundef %150)
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.fftfilt_cccf_s, ptr %152, i32 0, i32 5
  %154 = load ptr, ptr %153, align 8, !tbaa !17
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.fftfilt_cccf_s, ptr %155, i32 0, i32 4
  %157 = load ptr, ptr %156, align 8, !tbaa !16
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.fftfilt_cccf_s, ptr %158, i32 0, i32 2
  %160 = load i32, ptr %159, align 4, !tbaa !13
  %161 = mul i32 2, %160
  %162 = zext i32 %161 to i64
  %163 = mul i64 %162, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %154, ptr align 4 %157, i64 %163, i1 false)
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %166 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  store float 1.000000e+00, ptr %165, align 4
  store float 0.000000e+00, ptr %166, align 4
  %167 = load <2 x float>, ptr %10, align 4
  %168 = call i32 @fftfilt_cccf_set_scale(ptr noundef %164, <2 x float> noundef %167)
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = call i32 @fftfilt_cccf_reset(ptr noundef %169)
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %171, ptr %4, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %172

172:                                              ; preds = %147, %20, %13
  %173 = load ptr, ptr %4, align 8
  ret ptr %173
}

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

declare i32 @fft_execute(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @fftfilt_cccf_set_scale(ptr noundef, <2 x float> noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @fftfilt_cccf_reset(ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #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 = !{!"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_cccf_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, !7, i64 64}
!13 = !{!12, !10, i64 12}
!14 = !{!12, !6, i64 0}
!15 = !{!12, !6, i64 16}
!16 = !{!12, !6, i64 24}
!17 = !{!12, !6, i64 32}
!18 = !{!12, !6, i64 40}
!19 = !{!12, !6, i64 48}
!20 = !{!12, !6, i64 56}
!21 = distinct !{!21, !22}
!22 = !{!"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.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [69 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @fftfilt_cccf_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.11, i32 noundef 59, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.3) #6
  br label %59

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.11, i32 noundef 61, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.3, i32 noundef %8) #6
  br label %59

12:                                               ; preds = %7
  %13 = tail call noalias dereferenceable_or_null(72) ptr @malloc(i64 noundef 72) #7
  %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 !11
  %16 = zext i32 %1 to i64
  %17 = shl nuw nsw i64 %16, 3
  %18 = tail call noalias ptr @malloc(i64 noundef %17) #7
  store ptr %18, ptr %13, align 8, !tbaa !12
  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) #7
  %23 = getelementptr inbounds i8, ptr %13, i64 16
  store ptr %22, ptr %23, align 8, !tbaa !13
  %24 = tail call noalias ptr @malloc(i64 noundef %21) #7
  %25 = getelementptr inbounds i8, ptr %13, i64 24
  store ptr %24, ptr %25, align 8, !tbaa !14
  %26 = tail call noalias ptr @malloc(i64 noundef %21) #7
  %27 = getelementptr inbounds i8, ptr %13, i64 32
  store ptr %26, ptr %27, align 8, !tbaa !15
  %28 = zext i32 %2 to i64
  %29 = shl nuw nsw i64 %28, 3
  %30 = tail call noalias ptr @malloc(i64 noundef %29) #7
  %31 = getelementptr inbounds i8, ptr %13, i64 40
  store ptr %30, ptr %31, align 8, !tbaa !16
  %32 = tail call ptr @fft_create_plan(i32 noundef %19, ptr noundef %22, ptr noundef %24, i32 noundef 1, i32 noundef 0) #6
  %33 = getelementptr inbounds i8, ptr %13, i64 48
  store ptr %32, ptr %33, align 8, !tbaa !17
  %34 = tail call ptr @fft_create_plan(i32 noundef %19, ptr noundef %24, ptr noundef %22, i32 noundef -1, i32 noundef 0) #6
  %35 = getelementptr inbounds i8, ptr %13, i64 56
  store ptr %34, ptr %35, align 8, !tbaa !18
  %.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 = %47, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %47 ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %47 ]
  %37 = icmp ult i64 %indvars.iv, %16
  br i1 %37, label %38, label %.lr.ph.1

38:                                               ; preds = %.lr.ph
  %39 = getelementptr inbounds { float, float }, ptr %18, i64 %indvars.iv
  %40 = load <2 x float>, ptr %39, align 4
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph, %38
  %41 = phi <2 x float> [ %40, %38 ], [ zeroinitializer, %.lr.ph ]
  %42 = getelementptr inbounds { float, float }, ptr %22, i64 %indvars.iv
  store <2 x float> %41, ptr %42, align 4
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %43 = icmp ult i64 %indvars.iv.next, %16
  br i1 %43, label %44, label %47

44:                                               ; preds = %.lr.ph.1
  %45 = getelementptr inbounds { float, float }, ptr %18, i64 %indvars.iv.next
  %46 = load <2 x float>, ptr %45, align 4
  br label %47

47:                                               ; preds = %44, %.lr.ph.1
  %48 = phi <2 x float> [ %46, %44 ], [ zeroinitializer, %.lr.ph.1 ]
  %49 = getelementptr inbounds { float, float }, ptr %22, i64 %indvars.iv.next
  store <2 x float> %48, ptr %49, 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 !19

._crit_edge.loopexit.unr-lcssa:                   ; preds = %47, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %47 ]
  %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
  %50 = icmp ult i64 %indvars.iv.unr, %16
  br i1 %50, label %51, label %._crit_edge.loopexit.epilog-lcssa

51:                                               ; preds = %.lr.ph.epil
  %52 = getelementptr inbounds { float, float }, ptr %18, i64 %indvars.iv.unr
  %53 = load <2 x float>, ptr %52, align 4
  br label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %51, %.lr.ph.epil
  %54 = phi <2 x float> [ %53, %51 ], [ zeroinitializer, %.lr.ph.epil ]
  %55 = getelementptr inbounds { float, float }, ptr %22, i64 %indvars.iv.unr
  store <2 x float> %54, ptr %55, align 4
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %12
  %56 = tail call i32 @fft_execute(ptr noundef %32) #6
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %24, i64 %21, i1 false)
  %57 = tail call i32 @fftfilt_cccf_set_scale(ptr noundef nonnull %13, <2 x float> noundef <float 1.000000e+00, float 0.000000e+00>)
  %58 = tail call i32 @fftfilt_cccf_reset(ptr noundef nonnull %13)
  br label %59

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

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

declare i32 @fft_execute(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @fftfilt_cccf_set_scale(ptr noundef, <2 x float> noundef) local_unnamed_addr #2

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

; 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #5

attributes #0 = { 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 #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 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 8}
!6 = !{!"fftfilt_cccf_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, !8, 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 = !{!6, !10, i64 12}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !7, i64 16}
!14 = !{!6, !7, i64 24}
!15 = !{!6, !7, i64 32}
!16 = !{!6, !7, i64 40}
!17 = !{!6, !7, i64 48}
!18 = !{!6, !7, i64 56}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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