; LLVM IR from jgaeddert/liquid-dsp :: src/framing/src (framing_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.qdetector_cccf_s = type { i32, ptr, ptr, float, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, float, float, i32, i32, float, float, float, i32, float, float, float, float, i32, i32 }

@.str.11 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [53 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 @qdetector_cccf_create(ptr noundef %0, i32 noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %7 = load i32, ptr %5, align 4, !tbaa !9
  %8 = icmp eq i32 %7, 0
  br i1 %8, label %9, label %11

9:                                                ; preds = %2
  %10 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.11, i32 noundef 89, ptr noundef @.str.12)
  store ptr %10, ptr %3, align 8
  br label %187

11:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %12 = call noalias ptr @malloc(i64 noundef 152) #7
  store ptr %12, ptr %6, align 8, !tbaa !5
  %13 = load i32, ptr %5, align 4, !tbaa !9
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %14, i32 0, i32 0
  store i32 %13, ptr %15, align 8, !tbaa !11
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %16, i32 0, i32 0
  %18 = load i32, ptr %17, align 8, !tbaa !11
  %19 = zext i32 %18 to i64
  %20 = mul i64 %19, 8
  %21 = call noalias ptr @malloc(i64 noundef %20) #7
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %22, i32 0, i32 1
  store ptr %21, ptr %23, align 8, !tbaa !14
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %24, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !14
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %28, i32 0, i32 0
  %30 = load i32, ptr %29, align 8, !tbaa !11
  %31 = zext i32 %30 to i64
  %32 = mul i64 %31, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %26, ptr align 4 %27, i64 %32, i1 false)
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %33, i32 0, i32 1
  %35 = load ptr, ptr %34, align 8, !tbaa !14
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 8, !tbaa !11
  %39 = call float @liquid_sumsqcf(ptr noundef %35, i32 noundef %38)
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %40, i32 0, i32 3
  store float %39, ptr %41, align 8, !tbaa !15
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %42, i32 0, i32 0
  %44 = load i32, ptr %43, align 8, !tbaa !11
  %45 = mul i32 2, %44
  %46 = call i32 @liquid_nextpow2(i32 noundef %45)
  %47 = shl i32 1, %46
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %48, i32 0, i32 8
  store i32 %47, ptr %49, align 8, !tbaa !16
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %50, i32 0, i32 8
  %52 = load i32, ptr %51, align 8, !tbaa !16
  %53 = zext i32 %52 to i64
  %54 = mul i64 %53, 8
  %55 = call noalias ptr @malloc(i64 noundef %54) #7
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %56, i32 0, i32 4
  store ptr %55, ptr %57, align 8, !tbaa !17
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %58, i32 0, i32 8
  %60 = load i32, ptr %59, align 8, !tbaa !16
  %61 = zext i32 %60 to i64
  %62 = mul i64 %61, 8
  %63 = call noalias ptr @malloc(i64 noundef %62) #7
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %64, i32 0, i32 5
  store ptr %63, ptr %65, align 8, !tbaa !18
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %66, i32 0, i32 8
  %68 = load i32, ptr %67, align 8, !tbaa !16
  %69 = zext i32 %68 to i64
  %70 = mul i64 %69, 8
  %71 = call noalias ptr @malloc(i64 noundef %70) #7
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %72, i32 0, i32 6
  store ptr %71, ptr %73, align 8, !tbaa !19
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %74, i32 0, i32 8
  %76 = load i32, ptr %75, align 8, !tbaa !16
  %77 = zext i32 %76 to i64
  %78 = mul i64 %77, 8
  %79 = call noalias ptr @malloc(i64 noundef %78) #7
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %80, i32 0, i32 7
  store ptr %79, ptr %81, align 8, !tbaa !20
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %82, i32 0, i32 8
  %84 = load i32, ptr %83, align 8, !tbaa !16
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %85, i32 0, i32 4
  %87 = load ptr, ptr %86, align 8, !tbaa !17
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %88, i32 0, i32 5
  %90 = load ptr, ptr %89, align 8, !tbaa !18
  %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 %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %92, i32 0, i32 9
  store ptr %91, ptr %93, align 8, !tbaa !21
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %94, i32 0, i32 8
  %96 = load i32, ptr %95, align 8, !tbaa !16
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %97, i32 0, i32 6
  %99 = load ptr, ptr %98, align 8, !tbaa !19
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %100, i32 0, i32 7
  %102 = load ptr, ptr %101, align 8, !tbaa !20
  %103 = call ptr @fft_create_plan(i32 noundef %96, ptr noundef %99, ptr noundef %102, i32 noundef -1, i32 noundef 0)
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %104, i32 0, i32 10
  store ptr %103, ptr %105, align 8, !tbaa !22
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %106, i32 0, i32 8
  %108 = load i32, ptr %107, align 8, !tbaa !16
  %109 = zext i32 %108 to i64
  %110 = mul i64 %109, 8
  %111 = call noalias ptr @malloc(i64 noundef %110) #7
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %112, i32 0, i32 2
  store ptr %111, ptr %113, align 8, !tbaa !23
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !17
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %117, i32 0, i32 8
  %119 = load i32, ptr %118, align 8, !tbaa !16
  %120 = zext i32 %119 to i64
  %121 = mul i64 %120, 8
  call void @llvm.memset.p0.i64(ptr align 4 %116, i8 0, i64 %121, i1 false)
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !17
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %125, i32 0, i32 1
  %127 = load ptr, ptr %126, align 8, !tbaa !14
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %128, i32 0, i32 0
  %130 = load i32, ptr %129, align 8, !tbaa !11
  %131 = zext i32 %130 to i64
  %132 = mul i64 %131, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %124, ptr align 4 %127, i64 %132, i1 false)
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %133, i32 0, i32 9
  %135 = load ptr, ptr %134, align 8, !tbaa !21
  %136 = call i32 @fft_execute(ptr noundef %135)
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %137, i32 0, i32 2
  %139 = load ptr, ptr %138, align 8, !tbaa !23
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %140, i32 0, i32 5
  %142 = load ptr, ptr %141, align 8, !tbaa !18
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %143, i32 0, i32 8
  %145 = load i32, ptr %144, align 8, !tbaa !16
  %146 = zext i32 %145 to i64
  %147 = mul i64 %146, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %139, ptr align 4 %142, i64 %147, i1 false)
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %148, i32 0, i32 8
  %150 = load i32, ptr %149, align 8, !tbaa !16
  %151 = udiv i32 %150, 2
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %152, i32 0, i32 11
  store i32 %151, ptr %153, align 8, !tbaa !24
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %154, i32 0, i32 15
  store i32 0, ptr %155, align 8, !tbaa !25
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %156, i32 0, i32 16
  store float 0.000000e+00, ptr %157, align 4, !tbaa !26
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %158, i32 0, i32 17
  store float 0.000000e+00, ptr %159, align 8, !tbaa !27
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %160, i32 0, i32 24
  store i32 0, ptr %161, align 4, !tbaa !28
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %162, i32 0, i32 25
  store i32 0, ptr %163, align 8, !tbaa !29
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %164, i32 0, i32 4
  %166 = load ptr, ptr %165, align 8, !tbaa !17
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %167, i32 0, i32 8
  %169 = load i32, ptr %168, align 8, !tbaa !16
  %170 = zext i32 %169 to i64
  %171 = mul i64 %170, 8
  call void @llvm.memset.p0.i64(ptr align 4 %166, i8 0, i64 %171, i1 false)
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %172, i32 0, i32 18
  store float 0.000000e+00, ptr %173, align 4, !tbaa !30
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %174, i32 0, i32 20
  store float 0.000000e+00, ptr %175, align 4, !tbaa !31
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %176, i32 0, i32 21
  store float 0.000000e+00, ptr %177, align 8, !tbaa !32
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %178, i32 0, i32 22
  store float 0.000000e+00, ptr %179, align 4, !tbaa !33
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.qdetector_cccf_s, ptr %180, i32 0, i32 23
  store float 0.000000e+00, ptr %181, align 8, !tbaa !34
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = call i32 @qdetector_cccf_set_threshold(ptr noundef %182, float noundef 5.000000e-01)
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = call i32 @qdetector_cccf_set_range(ptr noundef %184, float noundef 0x3FD3333340000000)
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %186, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %187

187:                                              ; preds = %11, %9
  %188 = load ptr, ptr %3, align 8
  ret ptr %188
}

; 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 float @liquid_sumsqcf(ptr noundef, i32 noundef) #0

declare i32 @liquid_nextpow2(i32 noundef) #0

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

declare i32 @fft_execute(ptr noundef) #0

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @qdetector_cccf_set_range(ptr noundef, 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 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 nounwind willreturn memory(argmem: write) }
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 0}
!12 = !{!"qdetector_cccf_s", !10, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !13, i64 92, !13, i64 96, !10, i64 100, !10, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !10, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !10, i64 140, !10, i64 144}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !6, i64 8}
!15 = !{!12, !13, i64 24}
!16 = !{!12, !10, i64 64}
!17 = !{!12, !6, i64 32}
!18 = !{!12, !6, i64 40}
!19 = !{!12, !6, i64 48}
!20 = !{!12, !6, i64 56}
!21 = !{!12, !6, i64 72}
!22 = !{!12, !6, i64 80}
!23 = !{!12, !6, i64 16}
!24 = !{!12, !10, i64 88}
!25 = !{!12, !10, i64 104}
!26 = !{!12, !13, i64 108}
!27 = !{!12, !13, i64 112}
!28 = !{!12, !10, i64 140}
!29 = !{!12, !10, i64 144}
!30 = !{!12, !13, i64 116}
!31 = !{!12, !13, i64 124}
!32 = !{!12, !13, i64 128}
!33 = !{!12, !13, i64 132}
!34 = !{!12, !13, i64 136}


; 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.11 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [53 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 @qdetector_cccf_create(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #2 {
  %3 = icmp eq i32 %1, 0
  br i1 %3, label %4, label %6

4:                                                ; preds = %2
  %5 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.11, i32 noundef 89, ptr noundef nonnull @.str.12) #6
  br label %47

6:                                                ; preds = %2
  %7 = tail call noalias dereferenceable_or_null(152) ptr @malloc(i64 noundef 152) #7
  store i32 %1, ptr %7, align 8, !tbaa !5
  %8 = zext i32 %1 to i64
  %9 = shl nuw nsw i64 %8, 3
  %10 = tail call noalias ptr @malloc(i64 noundef %9) #7
  %11 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %10, ptr %11, align 8, !tbaa !12
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %0, i64 %9, i1 false)
  %12 = tail call float @liquid_sumsqcf(ptr noundef %10, i32 noundef %1) #6
  %13 = getelementptr inbounds i8, ptr %7, i64 24
  store float %12, ptr %13, align 8, !tbaa !13
  %14 = shl i32 %1, 1
  %15 = tail call i32 @liquid_nextpow2(i32 noundef %14) #6
  %16 = shl nuw i32 1, %15
  %17 = getelementptr inbounds i8, ptr %7, i64 64
  store i32 %16, ptr %17, align 8, !tbaa !14
  %18 = zext i32 %16 to i64
  %19 = shl nuw nsw i64 %18, 3
  %20 = tail call noalias ptr @malloc(i64 noundef %19) #7
  %21 = getelementptr inbounds i8, ptr %7, i64 32
  store ptr %20, ptr %21, align 8, !tbaa !15
  %22 = tail call noalias ptr @malloc(i64 noundef %19) #7
  %23 = getelementptr inbounds i8, ptr %7, i64 40
  store ptr %22, ptr %23, align 8, !tbaa !16
  %24 = tail call noalias ptr @malloc(i64 noundef %19) #7
  %25 = getelementptr inbounds i8, ptr %7, i64 48
  store ptr %24, ptr %25, align 8, !tbaa !17
  %26 = tail call noalias ptr @malloc(i64 noundef %19) #7
  %27 = getelementptr inbounds i8, ptr %7, i64 56
  store ptr %26, ptr %27, align 8, !tbaa !18
  %28 = tail call ptr @fft_create_plan(i32 noundef %16, ptr noundef %20, ptr noundef %22, i32 noundef 1, i32 noundef 0) #6
  %29 = getelementptr inbounds i8, ptr %7, i64 72
  store ptr %28, ptr %29, align 8, !tbaa !19
  %30 = tail call ptr @fft_create_plan(i32 noundef %16, ptr noundef %24, ptr noundef %26, i32 noundef -1, i32 noundef 0) #6
  %31 = getelementptr inbounds i8, ptr %7, i64 80
  store ptr %30, ptr %31, align 8, !tbaa !20
  %32 = tail call noalias ptr @malloc(i64 noundef %19) #7
  %33 = getelementptr inbounds i8, ptr %7, i64 16
  store ptr %32, ptr %33, align 8, !tbaa !21
  %34 = tail call i64 @llvm.usub.sat.i64(i64 %19, i64 %9)
  %35 = getelementptr i8, ptr %20, i64 %9
  tail call void @llvm.memset.p0.i64(ptr align 1 %35, i8 0, i64 %34, i1 false)
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %10, i64 %9, i1 false)
  %36 = tail call i32 @fft_execute(ptr noundef %28) #6
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %32, ptr noundef nonnull align 4 dereferenceable(1) %22, i64 %19, i1 false)
  %37 = lshr i32 %16, 1
  %38 = getelementptr inbounds i8, ptr %7, i64 88
  store i32 %37, ptr %38, align 8, !tbaa !22
  %39 = getelementptr inbounds i8, ptr %7, i64 104
  store i32 0, ptr %39, align 8, !tbaa !23
  %40 = getelementptr inbounds i8, ptr %7, i64 108
  store <2 x float> zeroinitializer, ptr %40, align 4, !tbaa !24
  %41 = getelementptr inbounds i8, ptr %7, i64 140
  store i32 0, ptr %41, align 4, !tbaa !25
  %42 = getelementptr inbounds i8, ptr %7, i64 144
  store i32 0, ptr %42, align 8, !tbaa !26
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %20, i8 0, i64 %19, i1 false)
  %43 = getelementptr inbounds i8, ptr %7, i64 116
  store float 0.000000e+00, ptr %43, align 4, !tbaa !27
  %44 = getelementptr inbounds i8, ptr %7, i64 124
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %44, i8 0, i64 16, i1 false)
  %45 = tail call i32 @qdetector_cccf_set_threshold(ptr noundef nonnull %7, float noundef 5.000000e-01)
  %46 = tail call i32 @qdetector_cccf_set_range(ptr noundef nonnull %7, float noundef 0x3FD3333340000000)
  br label %47

47:                                               ; preds = %6, %4
  %.0 = phi ptr [ %5, %4 ], [ %7, %6 ]
  ret ptr %.0
}

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

declare i32 @liquid_nextpow2(i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare i32 @fft_execute(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @qdetector_cccf_set_range(ptr noundef, float 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) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.usub.sat.i64(i64, i64) #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 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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, !7, i64 0}
!6 = !{!"qdetector_cccf_s", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !7, i64 64, !10, i64 72, !10, i64 80, !7, i64 88, !11, i64 92, !11, i64 96, !7, i64 100, !7, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !7, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !7, i64 140, !7, i64 144}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!6, !11, i64 24}
!14 = !{!6, !7, i64 64}
!15 = !{!6, !10, i64 32}
!16 = !{!6, !10, i64 40}
!17 = !{!6, !10, i64 48}
!18 = !{!6, !10, i64 56}
!19 = !{!6, !10, i64 72}
!20 = !{!6, !10, i64 80}
!21 = !{!6, !10, i64 16}
!22 = !{!6, !7, i64 88}
!23 = !{!6, !7, i64 104}
!24 = !{!11, !11, i64 0}
!25 = !{!6, !7, i64 140}
!26 = !{!6, !7, i64 144}
!27 = !{!6, !11, i64 116}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,TailCallElimPass