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

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

@.str.65 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [60 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 @windowf_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

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

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

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) #3

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

14:                                               ; preds = %2
  %15 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.65, i32 noundef 65, ptr noundef @.str.66)
  store ptr %15, ptr %3, align 8
  br label %209

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %17 = call noalias ptr @malloc(i64 noundef 96) #8
  store ptr %17, ptr %6, align 8, !tbaa !11
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = load ptr, ptr %6, align 8, !tbaa !11
  %20 = getelementptr inbounds %struct.firhilbf_s, ptr %19, i32 0, i32 4
  store i32 %18, ptr %20, align 8, !tbaa !13
  %21 = load float, ptr %5, align 4, !tbaa !9
  %22 = call float @llvm.fabs.f32(float %21)
  %23 = load ptr, ptr %6, align 8, !tbaa !11
  %24 = getelementptr inbounds %struct.firhilbf_s, ptr %23, i32 0, i32 3
  store float %22, ptr %24, align 4, !tbaa !15
  %25 = load ptr, ptr %6, align 8, !tbaa !11
  %26 = getelementptr inbounds %struct.firhilbf_s, ptr %25, i32 0, i32 4
  %27 = load i32, ptr %26, align 8, !tbaa !13
  %28 = mul i32 4, %27
  %29 = add i32 %28, 1
  %30 = load ptr, ptr %6, align 8, !tbaa !11
  %31 = getelementptr inbounds %struct.firhilbf_s, ptr %30, i32 0, i32 2
  store i32 %29, ptr %31, align 8, !tbaa !16
  %32 = load ptr, ptr %6, align 8, !tbaa !11
  %33 = getelementptr inbounds %struct.firhilbf_s, ptr %32, i32 0, i32 2
  %34 = load i32, ptr %33, align 8, !tbaa !16
  %35 = zext i32 %34 to i64
  %36 = mul i64 %35, 4
  %37 = call noalias ptr @malloc(i64 noundef %36) #8
  %38 = load ptr, ptr %6, align 8, !tbaa !11
  %39 = getelementptr inbounds %struct.firhilbf_s, ptr %38, i32 0, i32 0
  store ptr %37, ptr %39, align 8, !tbaa !17
  %40 = load ptr, ptr %6, align 8, !tbaa !11
  %41 = getelementptr inbounds %struct.firhilbf_s, ptr %40, i32 0, i32 2
  %42 = load i32, ptr %41, align 8, !tbaa !16
  %43 = zext i32 %42 to i64
  %44 = mul i64 %43, 8
  %45 = call noalias ptr @malloc(i64 noundef %44) #8
  %46 = load ptr, ptr %6, align 8, !tbaa !11
  %47 = getelementptr inbounds %struct.firhilbf_s, ptr %46, i32 0, i32 1
  store ptr %45, ptr %47, align 8, !tbaa !18
  %48 = load ptr, ptr %6, align 8, !tbaa !11
  %49 = getelementptr inbounds %struct.firhilbf_s, ptr %48, i32 0, i32 4
  %50 = load i32, ptr %49, align 8, !tbaa !13
  %51 = mul i32 2, %50
  %52 = load ptr, ptr %6, align 8, !tbaa !11
  %53 = getelementptr inbounds %struct.firhilbf_s, ptr %52, i32 0, i32 6
  store i32 %51, ptr %53, align 8, !tbaa !19
  %54 = load ptr, ptr %6, align 8, !tbaa !11
  %55 = getelementptr inbounds %struct.firhilbf_s, ptr %54, i32 0, i32 6
  %56 = load i32, ptr %55, align 8, !tbaa !19
  %57 = zext i32 %56 to i64
  %58 = mul i64 %57, 4
  %59 = call noalias ptr @malloc(i64 noundef %58) #8
  %60 = load ptr, ptr %6, align 8, !tbaa !11
  %61 = getelementptr inbounds %struct.firhilbf_s, ptr %60, i32 0, i32 5
  store ptr %59, ptr %61, align 8, !tbaa !20
  %62 = load ptr, ptr %6, align 8, !tbaa !11
  %63 = getelementptr inbounds %struct.firhilbf_s, ptr %62, i32 0, i32 2
  %64 = load i32, ptr %63, align 8, !tbaa !16
  %65 = load ptr, ptr %6, align 8, !tbaa !11
  %66 = getelementptr inbounds %struct.firhilbf_s, ptr %65, i32 0, i32 3
  %67 = load float, ptr %66, align 4, !tbaa !15
  %68 = load ptr, ptr %6, align 8, !tbaa !11
  %69 = getelementptr inbounds %struct.firhilbf_s, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !17
  %71 = call i32 @liquid_firdes_kaiser(i32 noundef %64, float noundef 2.500000e-01, float noundef %67, float noundef 0.000000e+00, ptr noundef %70)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %135, %16
  %73 = load i32, ptr %7, align 4, !tbaa !5
  %74 = load ptr, ptr %6, align 8, !tbaa !11
  %75 = getelementptr inbounds %struct.firhilbf_s, ptr %74, i32 0, i32 2
  %76 = load i32, ptr %75, align 8, !tbaa !16
  %77 = icmp ult i32 %73, %76
  br i1 %77, label %78, label %138

78:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = uitofp i32 %79 to float
  %81 = load ptr, ptr %6, align 8, !tbaa !11
  %82 = getelementptr inbounds %struct.firhilbf_s, ptr %81, i32 0, i32 2
  %83 = load i32, ptr %82, align 8, !tbaa !16
  %84 = sub i32 %83, 1
  %85 = uitofp i32 %84 to float
  %86 = fdiv float %85, 2.000000e+00
  %87 = fsub float %80, %86
  store float %87, ptr %8, align 4, !tbaa !9
  %88 = load ptr, ptr %6, align 8, !tbaa !11
  %89 = getelementptr inbounds %struct.firhilbf_s, ptr %88, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !17
  %91 = load i32, ptr %7, align 4, !tbaa !5
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds float, ptr %90, i64 %92
  %94 = load float, ptr %93, align 4, !tbaa !9
  %95 = load float, ptr %8, align 4, !tbaa !9
  %96 = fpext float %95 to double
  %97 = fmul double 0.000000e+00, %96
  %98 = fmul double 0x3FF921FB54442D18, %96
  %99 = fptrunc double %97 to float
  %100 = fptrunc double %98 to float
  %101 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 0
  %102 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 1
  store float %99, ptr %101, align 4
  store float %100, ptr %102, align 4
  %103 = load <2 x float>, ptr %9, align 4
  %104 = call <2 x float> @cexpf(<2 x float> noundef %103) #7
  store <2 x float> %104, ptr %10, align 4
  %105 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %106 = load float, ptr %105, align 4
  %107 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %108 = load float, ptr %107, align 4
  %109 = fmul float %94, %106
  %110 = fmul float %94, %108
  %111 = load ptr, ptr %6, align 8, !tbaa !11
  %112 = getelementptr inbounds %struct.firhilbf_s, ptr %111, i32 0, i32 1
  %113 = load ptr, ptr %112, align 8, !tbaa !18
  %114 = load i32, ptr %7, align 4, !tbaa !5
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds { float, float }, ptr %113, i64 %115
  %117 = getelementptr inbounds { float, float }, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds { float, float }, ptr %116, i32 0, i32 1
  store float %109, ptr %117, align 4
  store float %110, ptr %118, align 4
  %119 = load ptr, ptr %6, align 8, !tbaa !11
  %120 = getelementptr inbounds %struct.firhilbf_s, ptr %119, i32 0, i32 1
  %121 = load ptr, ptr %120, align 8, !tbaa !18
  %122 = load i32, ptr %7, align 4, !tbaa !5
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds { float, float }, ptr %121, i64 %123
  %125 = getelementptr inbounds { float, float }, ptr %124, i32 0, i32 0
  %126 = load float, ptr %125, align 4
  %127 = getelementptr inbounds { float, float }, ptr %124, i32 0, i32 1
  %128 = load float, ptr %127, align 4
  %129 = load ptr, ptr %6, align 8, !tbaa !11
  %130 = getelementptr inbounds %struct.firhilbf_s, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !17
  %132 = load i32, ptr %7, align 4, !tbaa !5
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds float, ptr %131, i64 %133
  store float %128, ptr %134, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %135

135:                                              ; preds = %78
  %136 = load i32, ptr %7, align 4, !tbaa !5
  %137 = add i32 %136, 1
  store i32 %137, ptr %7, align 4, !tbaa !5
  br label %72, !llvm.loop !21

138:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %139

139:                                              ; preds = %165, %138
  %140 = load i32, ptr %7, align 4, !tbaa !5
  %141 = load ptr, ptr %6, align 8, !tbaa !11
  %142 = getelementptr inbounds %struct.firhilbf_s, ptr %141, i32 0, i32 2
  %143 = load i32, ptr %142, align 8, !tbaa !16
  %144 = icmp ult i32 %140, %143
  br i1 %144, label %145, label %168

145:                                              ; preds = %139
  %146 = load ptr, ptr %6, align 8, !tbaa !11
  %147 = getelementptr inbounds %struct.firhilbf_s, ptr %146, i32 0, i32 0
  %148 = load ptr, ptr %147, align 8, !tbaa !17
  %149 = load ptr, ptr %6, align 8, !tbaa !11
  %150 = getelementptr inbounds %struct.firhilbf_s, ptr %149, i32 0, i32 2
  %151 = load i32, ptr %150, align 8, !tbaa !16
  %152 = load i32, ptr %7, align 4, !tbaa !5
  %153 = sub i32 %151, %152
  %154 = sub i32 %153, 1
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds float, ptr %148, i64 %155
  %157 = load float, ptr %156, align 4, !tbaa !9
  %158 = load ptr, ptr %6, align 8, !tbaa !11
  %159 = getelementptr inbounds %struct.firhilbf_s, ptr %158, i32 0, i32 5
  %160 = load ptr, ptr %159, align 8, !tbaa !20
  %161 = load i32, ptr %11, align 4, !tbaa !5
  %162 = add i32 %161, 1
  store i32 %162, ptr %11, align 4, !tbaa !5
  %163 = zext i32 %161 to i64
  %164 = getelementptr inbounds float, ptr %160, i64 %163
  store float %157, ptr %164, align 4, !tbaa !9
  br label %165

165:                                              ; preds = %145
  %166 = load i32, ptr %7, align 4, !tbaa !5
  %167 = add i32 %166, 2
  store i32 %167, ptr %7, align 4, !tbaa !5
  br label %139, !llvm.loop !23

168:                                              ; preds = %139
  %169 = load ptr, ptr %6, align 8, !tbaa !11
  %170 = getelementptr inbounds %struct.firhilbf_s, ptr %169, i32 0, i32 4
  %171 = load i32, ptr %170, align 8, !tbaa !13
  %172 = mul i32 2, %171
  %173 = call ptr @windowf_create(i32 noundef %172)
  %174 = load ptr, ptr %6, align 8, !tbaa !11
  %175 = getelementptr inbounds %struct.firhilbf_s, ptr %174, i32 0, i32 7
  store ptr %173, ptr %175, align 8, !tbaa !24
  %176 = load ptr, ptr %6, align 8, !tbaa !11
  %177 = getelementptr inbounds %struct.firhilbf_s, ptr %176, i32 0, i32 4
  %178 = load i32, ptr %177, align 8, !tbaa !13
  %179 = mul i32 2, %178
  %180 = call ptr @windowf_create(i32 noundef %179)
  %181 = load ptr, ptr %6, align 8, !tbaa !11
  %182 = getelementptr inbounds %struct.firhilbf_s, ptr %181, i32 0, i32 8
  store ptr %180, ptr %182, align 8, !tbaa !25
  %183 = load ptr, ptr %6, align 8, !tbaa !11
  %184 = getelementptr inbounds %struct.firhilbf_s, ptr %183, i32 0, i32 4
  %185 = load i32, ptr %184, align 8, !tbaa !13
  %186 = mul i32 2, %185
  %187 = call ptr @windowf_create(i32 noundef %186)
  %188 = load ptr, ptr %6, align 8, !tbaa !11
  %189 = getelementptr inbounds %struct.firhilbf_s, ptr %188, i32 0, i32 9
  store ptr %187, ptr %189, align 8, !tbaa !26
  %190 = load ptr, ptr %6, align 8, !tbaa !11
  %191 = getelementptr inbounds %struct.firhilbf_s, ptr %190, i32 0, i32 4
  %192 = load i32, ptr %191, align 8, !tbaa !13
  %193 = mul i32 2, %192
  %194 = call ptr @windowf_create(i32 noundef %193)
  %195 = load ptr, ptr %6, align 8, !tbaa !11
  %196 = getelementptr inbounds %struct.firhilbf_s, ptr %195, i32 0, i32 10
  store ptr %194, ptr %196, align 8, !tbaa !27
  %197 = load ptr, ptr %6, align 8, !tbaa !11
  %198 = getelementptr inbounds %struct.firhilbf_s, ptr %197, i32 0, i32 5
  %199 = load ptr, ptr %198, align 8, !tbaa !20
  %200 = load ptr, ptr %6, align 8, !tbaa !11
  %201 = getelementptr inbounds %struct.firhilbf_s, ptr %200, i32 0, i32 6
  %202 = load i32, ptr %201, align 8, !tbaa !19
  %203 = call ptr @dotprod_rrrf_create(ptr noundef %199, i32 noundef %202)
  %204 = load ptr, ptr %6, align 8, !tbaa !11
  %205 = getelementptr inbounds %struct.firhilbf_s, ptr %204, i32 0, i32 11
  store ptr %203, ptr %205, align 8, !tbaa !28
  %206 = load ptr, ptr %6, align 8, !tbaa !11
  %207 = call i32 @firhilbf_reset(ptr noundef %206)
  %208 = load ptr, ptr %6, align 8, !tbaa !11
  store ptr %208, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %209

209:                                              ; preds = %168, %14
  %210 = load ptr, ptr %3, align 8
  ret ptr %210
}

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @firhilbf_reset(ptr noundef) #6

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


; 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.65 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [60 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 @windowf_create(i32 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local ptr @firhilbf_create(i32 noundef %0, float noundef %1) local_unnamed_addr #3 {
  %3 = icmp ult i32 %0, 2
  br i1 %3, label %4, label %.lr.ph.preheader

4:                                                ; preds = %2
  %5 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.65, i32 noundef 65, ptr noundef nonnull @.str.66) #6
  br label %72

.lr.ph.preheader:                                 ; preds = %2
  %6 = tail call noalias dereferenceable_or_null(96) ptr @malloc(i64 noundef 96) #7
  %7 = getelementptr inbounds i8, ptr %6, i64 24
  store i32 %0, ptr %7, align 8, !tbaa !5
  %8 = tail call float @llvm.fabs.f32(float %1)
  %9 = getelementptr inbounds i8, ptr %6, i64 20
  store float %8, ptr %9, align 4, !tbaa !12
  %10 = shl i32 %0, 2
  %11 = or disjoint i32 %10, 1
  %12 = getelementptr inbounds i8, ptr %6, i64 16
  store i32 %11, ptr %12, align 8, !tbaa !13
  %13 = zext i32 %11 to i64
  %14 = shl nuw nsw i64 %13, 2
  %15 = tail call noalias ptr @malloc(i64 noundef %14) #7
  store ptr %15, ptr %6, align 8, !tbaa !14
  %16 = shl nuw nsw i64 %13, 3
  %17 = tail call noalias ptr @malloc(i64 noundef %16) #7
  %18 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %17, ptr %18, align 8, !tbaa !15
  %19 = shl i32 %0, 1
  %20 = getelementptr inbounds i8, ptr %6, i64 40
  store i32 %19, ptr %20, align 8, !tbaa !16
  %21 = zext i32 %19 to i64
  %22 = shl nuw nsw i64 %21, 2
  %23 = tail call noalias ptr @malloc(i64 noundef %22) #7
  %24 = getelementptr inbounds i8, ptr %6, i64 32
  store ptr %23, ptr %24, align 8, !tbaa !17
  %25 = tail call i32 @liquid_firdes_kaiser(i32 noundef %11, float noundef 2.500000e-01, float noundef %8, float noundef 0.000000e+00, ptr noundef %15) #6
  %26 = uitofp i32 %10 to float
  %27 = fmul float %26, 5.000000e-01
  br label %.lr.ph

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

.lr.ph63.new:                                     ; preds = %.preheader
  %28 = add i32 %10, -1
  %29 = lshr i32 %28, 1
  %30 = add nuw i32 %29, 1
  %wide.trip.count = zext i32 %30 to i64
  br label %47

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %31 = trunc nuw i64 %indvars.iv to i32
  %32 = uitofp i32 %31 to float
  %33 = fsub float %32, %27
  %34 = getelementptr inbounds float, ptr %15, i64 %indvars.iv
  %35 = load float, ptr %34, align 4, !tbaa !18
  %36 = fpext float %33 to double
  %37 = fmul double %36, 0x3FF921FB54442D18
  %38 = fmul float %33, 0.000000e+00
  %39 = fptrunc double %37 to float
  %.sroa.01.0.vec.insert = insertelement <2 x float> poison, float %38, i64 0
  %.sroa.01.4.vec.insert = insertelement <2 x float> %.sroa.01.0.vec.insert, float %39, i64 1
  %40 = tail call <2 x float> @cexpf(<2 x float> noundef %.sroa.01.4.vec.insert) #6
  %41 = getelementptr inbounds { float, float }, ptr %17, i64 %indvars.iv
  %42 = insertelement <2 x float> poison, float %35, i64 0
  %43 = shufflevector <2 x float> %42, <2 x float> poison, <2 x i32> zeroinitializer
  %44 = fmul <2 x float> %43, %40
  store <2 x float> %44, ptr %41, align 4
  %45 = extractelement <2 x float> %44, i64 1
  store float %45, ptr %34, align 4, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %46 = icmp ult i64 %indvars.iv.next, %13
  br i1 %46, label %.lr.ph, label %.preheader, !llvm.loop !19

47:                                               ; preds = %47, %.lr.ph63.new
  %indvars.iv68 = phi i64 [ 1, %.lr.ph63.new ], [ %indvars.iv.next69.1, %47 ]
  %indvars.iv66 = phi i64 [ 0, %.lr.ph63.new ], [ %indvars.iv.next67.1, %47 ]
  %niter = phi i64 [ 0, %.lr.ph63.new ], [ %niter.next.1, %47 ]
  %48 = trunc nuw i64 %indvars.iv68 to i32
  %49 = xor i32 %48, -1
  %50 = add i32 %11, %49
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds float, ptr %15, i64 %51
  %53 = load float, ptr %52, align 4, !tbaa !18
  %indvars.iv.next67 = or disjoint i64 %indvars.iv66, 1
  %54 = getelementptr inbounds float, ptr %23, i64 %indvars.iv66
  store float %53, ptr %54, align 4, !tbaa !18
  %55 = trunc i64 %indvars.iv68 to i32
  %reass.sub = sub i32 %11, %55
  %56 = add i32 %reass.sub, -3
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds float, ptr %15, i64 %57
  %59 = load float, ptr %58, align 4, !tbaa !18
  %indvars.iv.next67.1 = add nuw nsw i64 %indvars.iv66, 2
  %60 = getelementptr inbounds float, ptr %23, i64 %indvars.iv.next67
  store float %59, ptr %60, align 4, !tbaa !18
  %indvars.iv.next69.1 = add nuw nsw i64 %indvars.iv68, 4
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %wide.trip.count
  br i1 %niter.ncmp.1, label %._crit_edge, label %47, !llvm.loop !21

._crit_edge:                                      ; preds = %47, %.preheader
  %61 = tail call ptr @windowf_create(i32 noundef %19) #6
  %62 = getelementptr inbounds i8, ptr %6, i64 48
  store ptr %61, ptr %62, align 8, !tbaa !22
  %63 = tail call ptr @windowf_create(i32 noundef %19) #6
  %64 = getelementptr inbounds i8, ptr %6, i64 56
  store ptr %63, ptr %64, align 8, !tbaa !23
  %65 = tail call ptr @windowf_create(i32 noundef %19) #6
  %66 = getelementptr inbounds i8, ptr %6, i64 64
  store ptr %65, ptr %66, align 8, !tbaa !24
  %67 = tail call ptr @windowf_create(i32 noundef %19) #6
  %68 = getelementptr inbounds i8, ptr %6, i64 72
  store ptr %67, ptr %68, align 8, !tbaa !25
  %69 = tail call ptr @dotprod_rrrf_create(ptr noundef %23, i32 noundef %19) #6
  %70 = getelementptr inbounds i8, ptr %6, i64 80
  store ptr %69, ptr %70, align 8, !tbaa !26
  %71 = tail call i32 @firhilbf_reset(ptr noundef nonnull %6)
  br label %72

72:                                               ; preds = %._crit_edge, %4
  %.055 = phi ptr [ %5, %4 ], [ %6, %._crit_edge ]
  ret ptr %.055
}

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @firhilbf_reset(ptr noundef) local_unnamed_addr #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 "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 24}
!6 = !{!"firhilbf_s", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 20, !10, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !10, i64 88}
!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 20}
!13 = !{!6, !10, i64 16}
!14 = !{!6, !7, i64 0}
!15 = !{!6, !7, i64 8}
!16 = !{!6, !10, i64 40}
!17 = !{!6, !7, i64 32}
!18 = !{!11, !11, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!6, !7, i64 48}
!23 = !{!6, !7, i64 56}
!24 = !{!6, !7, i64 64}
!25 = !{!6, !7, i64 72}
!26 = !{!6, !7, i64 80}


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