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

@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [59 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

declare ptr @windowcf_create(i32 noundef) #2

; 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: nounwind uwtable
define dso_local ptr @resamp2_cccf_create(i32 noundef %0, float noundef %1, float noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca { float, float }, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store float %1, ptr %6, align 4, !tbaa !9
  store float %2, ptr %7, align 4, !tbaa !9
  %15 = load i32, ptr %5, align 4, !tbaa !5
  %16 = icmp ult i32 %15, 2
  br i1 %16, label %17, label %19

17:                                               ; preds = %3
  %18 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.143, i32 noundef 70, ptr noundef @.str.144, ptr noundef @.str.3)
  store ptr %18, ptr %4, align 8
  br label %215

19:                                               ; preds = %3
  %20 = load float, ptr %6, align 4, !tbaa !9
  %21 = fcmp olt float %20, -5.000000e-01
  br i1 %21, label %25, label %22

22:                                               ; preds = %19
  %23 = load float, ptr %6, align 4, !tbaa !9
  %24 = fcmp ogt float %23, 5.000000e-01
  br i1 %24, label %25, label %29

25:                                               ; preds = %22, %19
  %26 = load float, ptr %6, align 4, !tbaa !9
  %27 = fpext float %26 to double
  %28 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.143, i32 noundef 72, ptr noundef @.str.145, ptr noundef @.str.3, double noundef %27)
  store ptr %28, ptr %4, align 8
  br label %215

29:                                               ; preds = %22
  %30 = load float, ptr %7, align 4, !tbaa !9
  %31 = fcmp olt float %30, 0.000000e+00
  br i1 %31, label %32, label %36

32:                                               ; preds = %29
  %33 = load float, ptr %7, align 4, !tbaa !9
  %34 = fpext float %33 to double
  %35 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.143, i32 noundef 74, ptr noundef @.str.146, ptr noundef @.str.3, double noundef %34)
  store ptr %35, ptr %4, align 8
  br label %215

36:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %37 = call noalias ptr @malloc(i64 noundef 80) #8
  store ptr %37, ptr %8, align 8, !tbaa !11
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = load ptr, ptr %8, align 8, !tbaa !11
  %40 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %39, i32 0, i32 1
  store i32 %38, ptr %40, align 8, !tbaa !13
  %41 = load float, ptr %6, align 4, !tbaa !9
  %42 = load ptr, ptr %8, align 8, !tbaa !11
  %43 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %42, i32 0, i32 3
  store float %41, ptr %43, align 8, !tbaa !15
  %44 = load float, ptr %7, align 4, !tbaa !9
  %45 = load ptr, ptr %8, align 8, !tbaa !11
  %46 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %45, i32 0, i32 4
  store float %44, ptr %46, align 4, !tbaa !16
  %47 = load ptr, ptr %8, align 8, !tbaa !11
  %48 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %47, i32 0, i32 1
  %49 = load i32, ptr %48, align 8, !tbaa !13
  %50 = mul i32 4, %49
  %51 = add i32 %50, 1
  %52 = load ptr, ptr %8, align 8, !tbaa !11
  %53 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %52, i32 0, i32 2
  store i32 %51, ptr %53, align 4, !tbaa !17
  %54 = load ptr, ptr %8, align 8, !tbaa !11
  %55 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %54, i32 0, i32 2
  %56 = load i32, ptr %55, align 4, !tbaa !17
  %57 = zext i32 %56 to i64
  %58 = mul i64 %57, 8
  %59 = call noalias ptr @malloc(i64 noundef %58) #8
  %60 = load ptr, ptr %8, align 8, !tbaa !11
  %61 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %60, i32 0, i32 0
  store ptr %59, ptr %61, align 8, !tbaa !18
  %62 = load ptr, ptr %8, align 8, !tbaa !11
  %63 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %62, i32 0, i32 1
  %64 = load i32, ptr %63, align 8, !tbaa !13
  %65 = mul i32 2, %64
  %66 = load ptr, ptr %8, align 8, !tbaa !11
  %67 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %66, i32 0, i32 7
  store i32 %65, ptr %67, align 8, !tbaa !19
  %68 = load ptr, ptr %8, align 8, !tbaa !11
  %69 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %68, i32 0, i32 7
  %70 = load i32, ptr %69, align 8, !tbaa !19
  %71 = zext i32 %70 to i64
  %72 = mul i64 %71, 8
  %73 = call noalias ptr @malloc(i64 noundef %72) #8
  %74 = load ptr, ptr %8, align 8, !tbaa !11
  %75 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %74, i32 0, i32 5
  store ptr %73, ptr %75, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %76 = load ptr, ptr %8, align 8, !tbaa !11
  %77 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %76, i32 0, i32 2
  %78 = load i32, ptr %77, align 4, !tbaa !17
  %79 = zext i32 %78 to i64
  %80 = call ptr @llvm.stacksave.p0()
  store ptr %80, ptr %10, align 8
  %81 = alloca float, i64 %79, align 16
  store i64 %79, ptr %11, align 8
  %82 = load ptr, ptr %8, align 8, !tbaa !11
  %83 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %82, i32 0, i32 1
  %84 = load i32, ptr %83, align 8, !tbaa !13
  %85 = load ptr, ptr %8, align 8, !tbaa !11
  %86 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %85, i32 0, i32 4
  %87 = load float, ptr %86, align 4, !tbaa !16
  %88 = call i32 @liquid_firdespm_halfband_as(i32 noundef %84, float noundef %87, ptr noundef %81)
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %143, %36
  %90 = load i32, ptr %9, align 4, !tbaa !5
  %91 = load ptr, ptr %8, align 8, !tbaa !11
  %92 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %91, i32 0, i32 2
  %93 = load i32, ptr %92, align 4, !tbaa !17
  %94 = icmp ult i32 %90, %93
  br i1 %94, label %95, label %146

95:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = uitofp i32 %96 to float
  %98 = load ptr, ptr %8, align 8, !tbaa !11
  %99 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %98, i32 0, i32 2
  %100 = load i32, ptr %99, align 4, !tbaa !17
  %101 = sub i32 %100, 1
  %102 = uitofp i32 %101 to float
  %103 = fdiv float %102, 2.000000e+00
  %104 = fsub float %97, %103
  store float %104, ptr %12, align 4, !tbaa !9
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds float, ptr %81, i64 %106
  %108 = load float, ptr %107, align 4, !tbaa !9
  %109 = fmul float 2.000000e+00, %108
  %110 = load float, ptr %12, align 4, !tbaa !9
  %111 = fpext float %110 to double
  %112 = fmul double 0x401921FB54442D18, %111
  %113 = load ptr, ptr %8, align 8, !tbaa !11
  %114 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %113, i32 0, i32 3
  %115 = load float, ptr %114, align 8, !tbaa !15
  %116 = fpext float %115 to double
  %117 = fmul double %112, %116
  %118 = fptrunc double %117 to float
  %119 = call float @cosf(float noundef %118) #7
  %120 = load float, ptr %12, align 4, !tbaa !9
  %121 = fpext float %120 to double
  %122 = fmul double 0x401921FB54442D18, %121
  %123 = load ptr, ptr %8, align 8, !tbaa !11
  %124 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %123, i32 0, i32 3
  %125 = load float, ptr %124, align 8, !tbaa !15
  %126 = fpext float %125 to double
  %127 = fmul double %122, %126
  %128 = fptrunc double %127 to float
  %129 = call float @sinf(float noundef %128) #7
  %130 = fmul float 0.000000e+00, %129
  %131 = fmul float 1.000000e+00, %129
  %132 = fadd float %119, %130
  %133 = fmul float %109, %132
  %134 = fmul float %109, %131
  %135 = load ptr, ptr %8, align 8, !tbaa !11
  %136 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !18
  %138 = load i32, ptr %9, align 4, !tbaa !5
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds { float, float }, ptr %137, i64 %139
  %141 = getelementptr inbounds { float, float }, ptr %140, i32 0, i32 0
  %142 = getelementptr inbounds { float, float }, ptr %140, i32 0, i32 1
  store float %133, ptr %141, align 4
  store float %134, ptr %142, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %143

143:                                              ; preds = %95
  %144 = load i32, ptr %9, align 4, !tbaa !5
  %145 = add i32 %144, 1
  store i32 %145, ptr %9, align 4, !tbaa !5
  br label %89, !llvm.loop !21

146:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %178, %146
  %148 = load i32, ptr %9, align 4, !tbaa !5
  %149 = load ptr, ptr %8, align 8, !tbaa !11
  %150 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %149, i32 0, i32 2
  %151 = load i32, ptr %150, align 4, !tbaa !17
  %152 = icmp ult i32 %148, %151
  br i1 %152, label %153, label %181

153:                                              ; preds = %147
  %154 = load ptr, ptr %8, align 8, !tbaa !11
  %155 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !18
  %157 = load ptr, ptr %8, align 8, !tbaa !11
  %158 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %157, i32 0, i32 2
  %159 = load i32, ptr %158, align 4, !tbaa !17
  %160 = load i32, ptr %9, align 4, !tbaa !5
  %161 = sub i32 %159, %160
  %162 = sub i32 %161, 1
  %163 = zext i32 %162 to i64
  %164 = getelementptr inbounds { float, float }, ptr %156, i64 %163
  %165 = getelementptr inbounds { float, float }, ptr %164, i32 0, i32 0
  %166 = load float, ptr %165, align 4
  %167 = getelementptr inbounds { float, float }, ptr %164, i32 0, i32 1
  %168 = load float, ptr %167, align 4
  %169 = load ptr, ptr %8, align 8, !tbaa !11
  %170 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %169, i32 0, i32 5
  %171 = load ptr, ptr %170, align 8, !tbaa !20
  %172 = load i32, ptr %13, align 4, !tbaa !5
  %173 = add i32 %172, 1
  store i32 %173, ptr %13, align 4, !tbaa !5
  %174 = zext i32 %172 to i64
  %175 = getelementptr inbounds { float, float }, ptr %171, i64 %174
  %176 = getelementptr inbounds { float, float }, ptr %175, i32 0, i32 0
  %177 = getelementptr inbounds { float, float }, ptr %175, i32 0, i32 1
  store float %166, ptr %176, align 4
  store float %168, ptr %177, align 4
  br label %178

178:                                              ; preds = %153
  %179 = load i32, ptr %9, align 4, !tbaa !5
  %180 = add i32 %179, 2
  store i32 %180, ptr %9, align 4, !tbaa !5
  br label %147, !llvm.loop !23

181:                                              ; preds = %147
  %182 = load ptr, ptr %8, align 8, !tbaa !11
  %183 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %182, i32 0, i32 5
  %184 = load ptr, ptr %183, align 8, !tbaa !20
  %185 = load ptr, ptr %8, align 8, !tbaa !11
  %186 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %185, i32 0, i32 1
  %187 = load i32, ptr %186, align 8, !tbaa !13
  %188 = mul i32 2, %187
  %189 = call ptr @dotprod_cccf_create(ptr noundef %184, i32 noundef %188)
  %190 = load ptr, ptr %8, align 8, !tbaa !11
  %191 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %190, i32 0, i32 6
  store ptr %189, ptr %191, align 8, !tbaa !24
  %192 = load ptr, ptr %8, align 8, !tbaa !11
  %193 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %192, i32 0, i32 1
  %194 = load i32, ptr %193, align 8, !tbaa !13
  %195 = mul i32 2, %194
  %196 = call ptr @windowcf_create(i32 noundef %195)
  %197 = load ptr, ptr %8, align 8, !tbaa !11
  %198 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %197, i32 0, i32 8
  store ptr %196, ptr %198, align 8, !tbaa !25
  %199 = load ptr, ptr %8, align 8, !tbaa !11
  %200 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %199, i32 0, i32 1
  %201 = load i32, ptr %200, align 8, !tbaa !13
  %202 = mul i32 2, %201
  %203 = call ptr @windowcf_create(i32 noundef %202)
  %204 = load ptr, ptr %8, align 8, !tbaa !11
  %205 = getelementptr inbounds %struct.resamp2_cccf_s, ptr %204, i32 0, i32 9
  store ptr %203, ptr %205, align 8, !tbaa !26
  %206 = load ptr, ptr %8, align 8, !tbaa !11
  %207 = call i32 @resamp2_cccf_reset(ptr noundef %206)
  %208 = load ptr, ptr %8, align 8, !tbaa !11
  %209 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 0
  %210 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 1
  store float 1.000000e+00, ptr %209, align 4
  store float 0.000000e+00, ptr %210, align 4
  %211 = load <2 x float>, ptr %14, align 4
  %212 = call i32 @resamp2_cccf_set_scale(ptr noundef %208, <2 x float> noundef %211)
  %213 = load ptr, ptr %8, align 8, !tbaa !11
  store ptr %213, ptr %4, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  %214 = load ptr, ptr %10, align 8
  call void @llvm.stackrestore.p0(ptr %214)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %215

215:                                              ; preds = %181, %32, %25, %17
  %216 = load ptr, ptr %4, align 8
  ret ptr %216
}

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

; Function Attrs: nounwind
declare float @sinf(float noundef) #6

declare i32 @liquid_firdespm_halfband_as(i32 noundef, float noundef, ptr noundef) #2

; Function Attrs: nounwind
declare float @cosf(float noundef) #6

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

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 = { 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 #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 = { nocallback nofree nosync nounwind willreturn }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{!14, !6, i64 8}
!14 = !{!"resamp2_cccf_s", !12, i64 0, !6, i64 8, !6, i64 12, !10, i64 16, !10, i64 20, !12, i64 24, !12, i64 32, !6, i64 40, !12, i64 48, !12, i64 56, !7, i64 64, !6, i64 72}
!15 = !{!14, !10, i64 16}
!16 = !{!14, !10, i64 20}
!17 = !{!14, !6, i64 12}
!18 = !{!14, !12, i64 0}
!19 = !{!14, !6, i64 40}
!20 = !{!14, !12, i64 24}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!14, !12, i64 32}
!25 = !{!14, !12, i64 48}
!26 = !{!14, !12, i64 56}


; 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.143 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [59 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 @windowcf_create(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local ptr @resamp2_cccf_create(i32 noundef %0, float noundef %1, float noundef %2) local_unnamed_addr #2 {
  %4 = icmp ult i32 %0, 2
  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.143, i32 noundef 70, ptr noundef nonnull @.str.144, ptr noundef nonnull @.str.3) #7
  br label %87

7:                                                ; preds = %3
  %8 = tail call float @llvm.fabs.f32(float %1)
  %or.cond = fcmp ogt float %8, 5.000000e-01
  br i1 %or.cond, label %9, label %12

9:                                                ; preds = %7
  %10 = fpext float %1 to double
  %11 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.143, i32 noundef 72, ptr noundef nonnull @.str.145, ptr noundef nonnull @.str.3, double noundef %10) #7
  br label %87

12:                                               ; preds = %7
  %13 = fcmp olt float %2, 0.000000e+00
  br i1 %13, label %14, label %.lr.ph.preheader

14:                                               ; preds = %12
  %15 = fpext float %2 to double
  %16 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.143, i32 noundef 74, ptr noundef nonnull @.str.146, ptr noundef nonnull @.str.3, double noundef %15) #7
  br label %87

.lr.ph.preheader:                                 ; preds = %12
  %17 = tail call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #8
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  store i32 %0, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %17, i64 16
  store float %1, ptr %19, align 8, !tbaa !12
  %20 = getelementptr inbounds i8, ptr %17, i64 20
  store float %2, ptr %20, align 4, !tbaa !13
  %21 = shl i32 %0, 2
  %22 = or disjoint i32 %21, 1
  %23 = getelementptr inbounds i8, ptr %17, i64 12
  store i32 %22, ptr %23, align 4, !tbaa !14
  %24 = zext i32 %22 to i64
  %25 = shl nuw nsw i64 %24, 3
  %26 = tail call noalias ptr @malloc(i64 noundef %25) #8
  store ptr %26, ptr %17, align 8, !tbaa !15
  %27 = shl i32 %0, 1
  %28 = getelementptr inbounds i8, ptr %17, i64 40
  store i32 %27, ptr %28, align 8, !tbaa !16
  %29 = zext i32 %27 to i64
  %30 = shl nuw nsw i64 %29, 3
  %31 = tail call noalias ptr @malloc(i64 noundef %30) #8
  %32 = getelementptr inbounds i8, ptr %17, i64 24
  store ptr %31, ptr %32, align 8, !tbaa !17
  %33 = tail call ptr @llvm.stacksave.p0()
  %34 = alloca float, i64 %24, align 16
  %35 = call i32 @liquid_firdespm_halfband_as(i32 noundef %0, float noundef %2, ptr noundef nonnull %34) #7
  %36 = uitofp i32 %21 to float
  %37 = fmul float %36, 5.000000e-01
  %38 = fpext float %1 to double
  br label %.lr.ph

.preheader:                                       ; preds = %.lr.ph
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph67.preheader.new

.lr.ph67.preheader.new:                           ; preds = %.preheader
  %39 = add i32 %21, -1
  %40 = lshr i32 %39, 1
  br label %.lr.ph67

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %41 = trunc nuw i64 %indvars.iv to i32
  %42 = uitofp i32 %41 to float
  %43 = fsub float %42, %37
  %44 = getelementptr inbounds float, ptr %34, i64 %indvars.iv
  %45 = load float, ptr %44, align 4, !tbaa !18
  %46 = fmul float %45, 2.000000e+00
  %47 = fpext float %43 to double
  %48 = fmul double %47, 0x401921FB54442D18
  %49 = fmul double %48, %38
  %50 = fptrunc double %49 to float
  %51 = call float @cosf(float noundef %50) #7
  %52 = call float @sinf(float noundef %50) #7
  %53 = fmul float %52, 0.000000e+00
  %54 = fadd float %51, %53
  %55 = getelementptr inbounds { float, float }, ptr %26, i64 %indvars.iv
  %56 = insertelement <2 x float> poison, float %46, i64 0
  %57 = shufflevector <2 x float> %56, <2 x float> poison, <2 x i32> zeroinitializer
  %58 = insertelement <2 x float> poison, float %54, i64 0
  %59 = insertelement <2 x float> %58, float %52, i64 1
  %60 = fmul <2 x float> %57, %59
  store <2 x float> %60, ptr %55, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %61 = icmp ult i64 %indvars.iv.next, %24
  br i1 %61, label %.lr.ph, label %.preheader, !llvm.loop !19

.lr.ph67:                                         ; preds = %.lr.ph67, %.lr.ph67.preheader.new
  %.066 = phi i32 [ 0, %.lr.ph67.preheader.new ], [ %73, %.lr.ph67 ]
  %.165 = phi i32 [ 1, %.lr.ph67.preheader.new ], [ %77, %.lr.ph67 ]
  %niter = phi i32 [ 0, %.lr.ph67.preheader.new ], [ %niter.next.1, %.lr.ph67 ]
  %62 = xor i32 %.165, -1
  %63 = add i32 %22, %62
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds { float, float }, ptr %26, i64 %64
  %66 = or disjoint i32 %.066, 1
  %67 = zext i32 %.066 to i64
  %68 = getelementptr inbounds { float, float }, ptr %31, i64 %67
  %69 = load <2 x float>, ptr %65, align 4
  store <2 x float> %69, ptr %68, align 4
  %reass.sub = sub i32 %22, %.165
  %70 = add i32 %reass.sub, -3
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds { float, float }, ptr %26, i64 %71
  %73 = add i32 %.066, 2
  %74 = zext i32 %66 to i64
  %75 = getelementptr inbounds { float, float }, ptr %31, i64 %74
  %76 = load <2 x float>, ptr %72, align 4
  store <2 x float> %76, ptr %75, align 4
  %77 = add i32 %.165, 4
  %niter.next.1 = add i32 %niter, 2
  %78 = or disjoint i32 %niter, 1
  %niter.ncmp.1 = icmp eq i32 %78, %40
  br i1 %niter.ncmp.1, label %._crit_edge, label %.lr.ph67, !llvm.loop !21

._crit_edge:                                      ; preds = %.lr.ph67, %.preheader
  %79 = call ptr @dotprod_cccf_create(ptr noundef %31, i32 noundef %27) #7
  %80 = getelementptr inbounds i8, ptr %17, i64 32
  store ptr %79, ptr %80, align 8, !tbaa !22
  %81 = call ptr @windowcf_create(i32 noundef %27) #7
  %82 = getelementptr inbounds i8, ptr %17, i64 48
  store ptr %81, ptr %82, align 8, !tbaa !23
  %83 = call ptr @windowcf_create(i32 noundef %27) #7
  %84 = getelementptr inbounds i8, ptr %17, i64 56
  store ptr %83, ptr %84, align 8, !tbaa !24
  %85 = call i32 @resamp2_cccf_reset(ptr noundef nonnull %17)
  %86 = call i32 @resamp2_cccf_set_scale(ptr noundef nonnull %17, <2 x float> noundef <float 1.000000e+00, float 0.000000e+00>)
  call void @llvm.stackrestore.p0(ptr %33)
  br label %87

87:                                               ; preds = %._crit_edge, %14, %9, %5
  %.056 = phi ptr [ %6, %5 ], [ %11, %9 ], [ %16, %14 ], [ %17, %._crit_edge ]
  ret ptr %.056
}

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sinf(float noundef) local_unnamed_addr #5

declare i32 @liquid_firdespm_halfband_as(i32 noundef, float noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @cosf(float noundef) local_unnamed_addr #5

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

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #5 = { mustprogress nofree nounwind willreturn memory(write) "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { 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 = !{!"resamp2_cccf_s", !7, i64 0, !10, i64 8, !10, i64 12, !11, i64 16, !11, i64 20, !7, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !7, i64 56, !8, i64 64, !10, i64 72}
!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, !11, i64 16}
!13 = !{!6, !11, i64 20}
!14 = !{!6, !10, i64 12}
!15 = !{!6, !7, i64 0}
!16 = !{!6, !10, i64 40}
!17 = !{!6, !7, i64 24}
!18 = !{!11, !11, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!6, !7, i64 32}
!23 = !{!6, !7, i64 48}
!24 = !{!6, !7, i64 56}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass