; LLVM IR from jgaeddert/liquid-dsp :: src/multichannel/src (firpfbch_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.firpfbch_cccf_s = type { i32, i32, i32, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [92 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [67 x i8], align 1

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

18:                                               ; preds = %4
  %19 = load i32, ptr %6, align 4, !tbaa !5
  %20 = icmp ne i32 %19, 1
  br i1 %20, label %21, label %24

21:                                               ; preds = %18
  %22 = load i32, ptr %6, align 4, !tbaa !5
  %23 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 76, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %22)
  store ptr %23, ptr %5, align 8
  br label %223

24:                                               ; preds = %18, %4
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %29

27:                                               ; preds = %24
  %28 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 78, ptr noundef @.str.3, ptr noundef @.str.2)
  store ptr %28, ptr %5, align 8
  br label %223

29:                                               ; preds = %24
  %30 = load i32, ptr %8, align 4, !tbaa !5
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %34

32:                                               ; preds = %29
  %33 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 80, ptr noundef @.str.4, ptr noundef @.str.2)
  store ptr %33, ptr %5, align 8
  br label %223

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

78:                                               ; preds = %101, %34
  %79 = load i32, ptr %11, align 4, !tbaa !5
  %80 = load ptr, ptr %10, align 8, !tbaa !9
  %81 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %80, i32 0, i32 3
  %82 = load i32, ptr %81, align 4, !tbaa !15
  %83 = icmp ult i32 %79, %82
  br i1 %83, label %84, label %104

84:                                               ; preds = %78
  %85 = load ptr, ptr %9, align 8, !tbaa !9
  %86 = load i32, ptr %11, align 4, !tbaa !5
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds { float, float }, ptr %85, i64 %87
  %89 = getelementptr inbounds { float, float }, ptr %88, i32 0, i32 0
  %90 = load float, ptr %89, align 4
  %91 = getelementptr inbounds { float, float }, ptr %88, i32 0, i32 1
  %92 = load float, ptr %91, align 4
  %93 = load ptr, ptr %10, align 8, !tbaa !9
  %94 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !18
  %96 = load i32, ptr %11, align 4, !tbaa !5
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds { float, float }, ptr %95, i64 %97
  %99 = getelementptr inbounds { float, float }, ptr %98, i32 0, i32 0
  %100 = getelementptr inbounds { float, float }, ptr %98, i32 0, i32 1
  store float %90, ptr %99, align 4
  store float %92, ptr %100, align 4
  br label %101

101:                                              ; preds = %84
  %102 = load i32, ptr %11, align 4, !tbaa !5
  %103 = add i32 %102, 1
  store i32 %103, ptr %11, align 4, !tbaa !5
  br label %78, !llvm.loop !19

104:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %105 = load ptr, ptr %10, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %105, i32 0, i32 2
  %107 = load i32, ptr %106, align 8, !tbaa !14
  store i32 %107, ptr %13, align 4, !tbaa !5
  %108 = load i32, ptr %13, align 4, !tbaa !5
  %109 = zext i32 %108 to i64
  %110 = call ptr @llvm.stacksave.p0()
  store ptr %110, ptr %14, align 8
  %111 = alloca { float, float }, i64 %109, align 16
  store i64 %109, ptr %15, align 8
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %112

112:                                              ; preds = %168, %104
  %113 = load i32, ptr %11, align 4, !tbaa !5
  %114 = load ptr, ptr %10, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %114, i32 0, i32 1
  %116 = load i32, ptr %115, align 4, !tbaa !13
  %117 = icmp ult i32 %113, %116
  br i1 %117, label %118, label %171

118:                                              ; preds = %112
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %119

119:                                              ; preds = %148, %118
  %120 = load i32, ptr %12, align 4, !tbaa !5
  %121 = load i32, ptr %13, align 4, !tbaa !5
  %122 = icmp ult i32 %120, %121
  br i1 %122, label %123, label %151

123:                                              ; preds = %119
  %124 = load ptr, ptr %10, align 8, !tbaa !9
  %125 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %124, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !18
  %127 = load i32, ptr %11, align 4, !tbaa !5
  %128 = load i32, ptr %12, align 4, !tbaa !5
  %129 = load ptr, ptr %10, align 8, !tbaa !9
  %130 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %129, i32 0, i32 1
  %131 = load i32, ptr %130, align 4, !tbaa !13
  %132 = mul i32 %128, %131
  %133 = add i32 %127, %132
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds { float, float }, ptr %126, i64 %134
  %136 = getelementptr inbounds { float, float }, ptr %135, i32 0, i32 0
  %137 = load float, ptr %136, align 4
  %138 = getelementptr inbounds { float, float }, ptr %135, i32 0, i32 1
  %139 = load float, ptr %138, align 4
  %140 = load i32, ptr %13, align 4, !tbaa !5
  %141 = load i32, ptr %12, align 4, !tbaa !5
  %142 = sub i32 %140, %141
  %143 = sub i32 %142, 1
  %144 = zext i32 %143 to i64
  %145 = getelementptr inbounds { float, float }, ptr %111, i64 %144
  %146 = getelementptr inbounds { float, float }, ptr %145, i32 0, i32 0
  %147 = getelementptr inbounds { float, float }, ptr %145, i32 0, i32 1
  store float %137, ptr %146, align 8
  store float %139, ptr %147, align 4
  br label %148

148:                                              ; preds = %123
  %149 = load i32, ptr %12, align 4, !tbaa !5
  %150 = add i32 %149, 1
  store i32 %150, ptr %12, align 4, !tbaa !5
  br label %119, !llvm.loop !21

151:                                              ; preds = %119
  %152 = load i32, ptr %13, align 4, !tbaa !5
  %153 = call ptr @dotprod_cccf_create(ptr noundef %111, i32 noundef %152)
  %154 = load ptr, ptr %10, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %154, i32 0, i32 5
  %156 = load ptr, ptr %155, align 8, !tbaa !16
  %157 = load i32, ptr %11, align 4, !tbaa !5
  %158 = zext i32 %157 to i64
  %159 = getelementptr inbounds ptr, ptr %156, i64 %158
  store ptr %153, ptr %159, align 8, !tbaa !9
  %160 = load i32, ptr %13, align 4, !tbaa !5
  %161 = call ptr @windowcf_create(i32 noundef %160)
  %162 = load ptr, ptr %10, align 8, !tbaa !9
  %163 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %162, i32 0, i32 6
  %164 = load ptr, ptr %163, align 8, !tbaa !17
  %165 = load i32, ptr %11, align 4, !tbaa !5
  %166 = zext i32 %165 to i64
  %167 = getelementptr inbounds ptr, ptr %164, i64 %166
  store ptr %161, ptr %167, align 8, !tbaa !9
  br label %168

168:                                              ; preds = %151
  %169 = load i32, ptr %11, align 4, !tbaa !5
  %170 = add i32 %169, 1
  store i32 %170, ptr %11, align 4, !tbaa !5
  br label %112, !llvm.loop !22

171:                                              ; preds = %112
  %172 = load ptr, ptr %10, align 8, !tbaa !9
  %173 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %172, i32 0, i32 1
  %174 = load i32, ptr %173, align 4, !tbaa !13
  %175 = zext i32 %174 to i64
  %176 = mul i64 %175, 8
  %177 = call noalias ptr @malloc(i64 noundef %176) #6
  %178 = load ptr, ptr %10, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %178, i32 0, i32 9
  store ptr %177, ptr %179, align 8, !tbaa !23
  %180 = load ptr, ptr %10, align 8, !tbaa !9
  %181 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %180, i32 0, i32 1
  %182 = load i32, ptr %181, align 4, !tbaa !13
  %183 = zext i32 %182 to i64
  %184 = mul i64 %183, 8
  %185 = call noalias ptr @malloc(i64 noundef %184) #6
  %186 = load ptr, ptr %10, align 8, !tbaa !9
  %187 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %186, i32 0, i32 10
  store ptr %185, ptr %187, align 8, !tbaa !24
  %188 = load ptr, ptr %10, align 8, !tbaa !9
  %189 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %188, i32 0, i32 0
  %190 = load i32, ptr %189, align 8, !tbaa !11
  %191 = icmp eq i32 %190, 0
  br i1 %191, label %192, label %205

192:                                              ; preds = %171
  %193 = load ptr, ptr %10, align 8, !tbaa !9
  %194 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %193, i32 0, i32 1
  %195 = load i32, ptr %194, align 4, !tbaa !13
  %196 = load ptr, ptr %10, align 8, !tbaa !9
  %197 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %196, i32 0, i32 10
  %198 = load ptr, ptr %197, align 8, !tbaa !24
  %199 = load ptr, ptr %10, align 8, !tbaa !9
  %200 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %199, i32 0, i32 9
  %201 = load ptr, ptr %200, align 8, !tbaa !23
  %202 = call ptr @fft_create_plan(i32 noundef %195, ptr noundef %198, ptr noundef %201, i32 noundef 1, i32 noundef 0)
  %203 = load ptr, ptr %10, align 8, !tbaa !9
  %204 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %203, i32 0, i32 8
  store ptr %202, ptr %204, align 8, !tbaa !25
  br label %218

205:                                              ; preds = %171
  %206 = load ptr, ptr %10, align 8, !tbaa !9
  %207 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %206, i32 0, i32 1
  %208 = load i32, ptr %207, align 4, !tbaa !13
  %209 = load ptr, ptr %10, align 8, !tbaa !9
  %210 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %209, i32 0, i32 10
  %211 = load ptr, ptr %210, align 8, !tbaa !24
  %212 = load ptr, ptr %10, align 8, !tbaa !9
  %213 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %212, i32 0, i32 9
  %214 = load ptr, ptr %213, align 8, !tbaa !23
  %215 = call ptr @fft_create_plan(i32 noundef %208, ptr noundef %211, ptr noundef %214, i32 noundef -1, i32 noundef 0)
  %216 = load ptr, ptr %10, align 8, !tbaa !9
  %217 = getelementptr inbounds %struct.firpfbch_cccf_s, ptr %216, i32 0, i32 8
  store ptr %215, ptr %217, align 8, !tbaa !25
  br label %218

218:                                              ; preds = %205, %192
  %219 = load ptr, ptr %10, align 8, !tbaa !9
  %220 = call i32 @firpfbch_cccf_reset(ptr noundef %219)
  %221 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %221, ptr %5, align 8
  %222 = load ptr, ptr %14, align 8
  call void @llvm.stackrestore.p0(ptr %222)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %223

223:                                              ; preds = %218, %32, %27, %21
  %224 = load ptr, ptr %5, align 8
  ret ptr %224
}

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

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

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

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

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

declare ptr @windowcf_create(i32 noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @firpfbch_cccf_reset(ptr noundef) #0

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

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

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"firpfbch_cccf_s", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !10, i64 56, !10, i64 64}
!13 = !{!12, !6, i64 4}
!14 = !{!12, !6, i64 8}
!15 = !{!12, !6, i64 12}
!16 = !{!12, !10, i64 24}
!17 = !{!12, !10, i64 32}
!18 = !{!12, !10, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = !{!12, !10, i64 56}
!24 = !{!12, !10, i64 64}
!25 = !{!12, !10, i64 48}


; 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 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [67 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @firpfbch_cccf_create(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #0 {
  %or.cond = icmp ugt i32 %0, 1
  br i1 %or.cond, label %5, label %7

5:                                                ; preds = %4
  %6 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str, i32 noundef 76, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %0) #4
  br label %119

7:                                                ; preds = %4
  %8 = icmp eq i32 %1, 0
  br i1 %8, label %9, label %11

9:                                                ; preds = %7
  %10 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str, i32 noundef 78, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2) #4
  br label %119

11:                                               ; preds = %7
  %12 = icmp eq i32 %2, 0
  br i1 %12, label %13, label %15

13:                                               ; preds = %11
  %14 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str, i32 noundef 80, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2) #4
  br label %119

15:                                               ; preds = %11
  %16 = tail call noalias dereferenceable_or_null(72) ptr @malloc(i64 noundef 72) #5
  store i32 %0, ptr %16, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 4
  store i32 %1, ptr %17, align 4, !tbaa !11
  %18 = getelementptr inbounds i8, ptr %16, i64 8
  store i32 %2, ptr %18, align 8, !tbaa !12
  %19 = mul i32 %2, %1
  %20 = getelementptr inbounds i8, ptr %16, i64 12
  store i32 %19, ptr %20, align 4, !tbaa !13
  %21 = zext i32 %1 to i64
  %22 = shl nuw nsw i64 %21, 3
  %23 = tail call noalias ptr @malloc(i64 noundef %22) #5
  %24 = getelementptr inbounds i8, ptr %16, i64 24
  store ptr %23, ptr %24, align 8, !tbaa !14
  %25 = tail call noalias ptr @malloc(i64 noundef %22) #5
  %26 = getelementptr inbounds i8, ptr %16, i64 32
  store ptr %25, ptr %26, align 8, !tbaa !15
  %27 = zext i32 %19 to i64
  %28 = shl nuw nsw i64 %27, 3
  %29 = tail call noalias ptr @malloc(i64 noundef %28) #5
  %30 = getelementptr inbounds i8, ptr %16, i64 16
  store ptr %29, ptr %30, align 8, !tbaa !16
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %.preheader.us.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %15
  %min.iters.check = icmp ult i32 %19, 4
  br i1 %min.iters.check, label %.lr.ph.preheader122, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %27, 4294967292
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %31 = or disjoint i64 %index, 2
  %32 = getelementptr inbounds { float, float }, ptr %3, i64 %index
  %33 = getelementptr inbounds { float, float }, ptr %3, i64 %31
  %wide.vec = load <4 x float>, ptr %32, align 4
  %wide.vec94 = load <4 x float>, ptr %33, align 4
  %34 = getelementptr inbounds { float, float }, ptr %29, i64 %index
  %35 = getelementptr inbounds { float, float }, ptr %29, i64 %31
  store <4 x float> %wide.vec, ptr %34, align 4
  store <4 x float> %wide.vec94, ptr %35, align 4
  %index.next = add nuw i64 %index, 4
  %36 = icmp eq i64 %index.next, %n.vec
  br i1 %36, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %27
  br i1 %cmp.n, label %.preheader.us.preheader, label %.lr.ph.preheader122

.lr.ph.preheader122:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader122, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader122 ]
  %37 = getelementptr inbounds { float, float }, ptr %3, i64 %indvars.iv
  %38 = getelementptr inbounds { float, float }, ptr %29, i64 %indvars.iv
  %39 = load <2 x float>, ptr %37, align 4
  store <2 x float> %39, ptr %38, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %40 = icmp ult i64 %indvars.iv.next, %27
  br i1 %40, label %.lr.ph, label %.preheader.us.preheader, !llvm.loop !21

.preheader.us.preheader:                          ; preds = %.lr.ph, %middle.block, %15
  %41 = zext i32 %2 to i64
  %42 = tail call ptr @llvm.stacksave.p0()
  %43 = alloca { float, float }, i64 %41, align 16
  %44 = add nsw i64 %41, -1
  %45 = add i32 %2, -1
  %46 = zext i32 %45 to i64
  %47 = shl nuw nsw i64 %46, 3
  %scevgep = getelementptr i8, ptr %43, i64 %47
  %48 = or disjoint i64 %47, 4
  %scevgep102 = getelementptr i8, ptr %43, i64 %48
  %min.iters.check108 = icmp ult i32 %2, 30
  %49 = trunc i64 %44 to i32
  %50 = icmp ult i32 %45, %49
  %51 = icmp ugt i64 %44, 4294967295
  %52 = or i1 %50, %51
  %mul.result100.neg = mul nsw i64 %44, -8
  %53 = getelementptr i8, ptr %scevgep, i64 %mul.result100.neg
  %54 = icmp ugt ptr %53, %scevgep
  %mul.result104.neg = mul nsw i64 %44, -8
  %55 = getelementptr i8, ptr %scevgep102, i64 %mul.result104.neg
  %56 = icmp ugt ptr %55, %scevgep102
  %ident.check = icmp ne i32 %1, 1
  %57 = trunc i64 %44 to i32
  %58 = or i1 %54, %52
  %59 = or i1 %56, %58
  %60 = or i1 %59, %ident.check
  %n.vec111 = and i64 %41, 4294967294
  %invariant.gep = getelementptr i8, ptr %43, i64 -12
  %cmp.n121 = icmp eq i64 %n.vec111, %41
  %xtraiter = and i64 %41, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %61 = add nsw i64 %41, -1
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge75.us
  %indvars.iv87 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next88, %._crit_edge75.us ]
  %62 = trunc nuw i64 %indvars.iv87 to i32
  br i1 %min.iters.check108, label %scalar.ph107.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %.preheader.us
  %63 = trunc i64 %indvars.iv87 to i32
  %64 = xor i32 %63, -1
  %65 = icmp ult i32 %64, %57
  %66 = or i1 %65, %60
  br i1 %66, label %scalar.ph107.preheader, label %vector.body113

vector.body113:                                   ; preds = %vector.scevcheck, %vector.body113
  %index114 = phi i64 [ %index.next120, %vector.body113 ], [ 0, %vector.scevcheck ]
  %67 = trunc i64 %index114 to i32
  %68 = add i64 %index114, %indvars.iv87
  %69 = and i64 %68, 4294967295
  %70 = getelementptr inbounds { float, float }, ptr %29, i64 %69
  %wide.vec115 = load <4 x float>, ptr %70, align 4
  %71 = xor i32 %67, -1
  %72 = add i32 %71, %2
  %73 = zext i32 %72 to i64
  %gep = getelementptr { float, float }, ptr %invariant.gep, i64 %73, i32 1
  %interleaved.vec119 = shufflevector <4 x float> %wide.vec115, <4 x float> poison, <4 x i32> <i32 2, i32 3, i32 0, i32 1>
  store <4 x float> %interleaved.vec119, ptr %gep, align 8
  %index.next120 = add nuw i64 %index114, 2
  %74 = icmp eq i64 %index.next120, %n.vec111
  br i1 %74, label %middle.block106, label %vector.body113, !llvm.loop !22

middle.block106:                                  ; preds = %vector.body113
  br i1 %cmp.n121, label %._crit_edge75.us, label %scalar.ph107.preheader

scalar.ph107.preheader:                           ; preds = %middle.block106, %vector.scevcheck, %.preheader.us
  %indvars.iv84.ph = phi i64 [ 0, %vector.scevcheck ], [ 0, %.preheader.us ], [ %n.vec111, %middle.block106 ]
  br i1 %lcmp.mod.not, label %scalar.ph107.prol.loopexit, label %scalar.ph107.prol

scalar.ph107.prol:                                ; preds = %scalar.ph107.preheader
  %75 = trunc nuw i64 %indvars.iv84.ph to i32
  %76 = mul i32 %75, %1
  %77 = add i32 %76, %62
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds { float, float }, ptr %29, i64 %78
  %80 = xor i32 %75, -1
  %81 = add i32 %80, %2
  %82 = zext i32 %81 to i64
  %83 = getelementptr inbounds { float, float }, ptr %43, i64 %82
  %84 = load <2 x float>, ptr %79, align 4
  store <2 x float> %84, ptr %83, align 8
  %indvars.iv.next85.prol = or disjoint i64 %indvars.iv84.ph, 1
  br label %scalar.ph107.prol.loopexit

scalar.ph107.prol.loopexit:                       ; preds = %scalar.ph107.prol, %scalar.ph107.preheader
  %indvars.iv84.unr = phi i64 [ %indvars.iv84.ph, %scalar.ph107.preheader ], [ %indvars.iv.next85.prol, %scalar.ph107.prol ]
  %85 = icmp eq i64 %indvars.iv84.ph, %61
  br i1 %85, label %._crit_edge75.us, label %scalar.ph107

scalar.ph107:                                     ; preds = %scalar.ph107.prol.loopexit, %scalar.ph107
  %indvars.iv84 = phi i64 [ %indvars.iv.next85.1, %scalar.ph107 ], [ %indvars.iv84.unr, %scalar.ph107.prol.loopexit ]
  %86 = trunc nuw i64 %indvars.iv84 to i32
  %87 = mul i32 %86, %1
  %88 = add i32 %87, %62
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds { float, float }, ptr %29, i64 %89
  %91 = xor i32 %86, -1
  %92 = add i32 %91, %2
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds { float, float }, ptr %43, i64 %93
  %95 = load <2 x float>, ptr %90, align 4
  store <2 x float> %95, ptr %94, align 8
  %96 = trunc i64 %indvars.iv84 to i32
  %97 = add i32 %96, 1
  %98 = mul i32 %97, %1
  %99 = add i32 %98, %62
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds { float, float }, ptr %29, i64 %100
  %reass.sub = sub i32 %2, %96
  %102 = add i32 %reass.sub, -2
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds { float, float }, ptr %43, i64 %103
  %105 = load <2 x float>, ptr %101, align 4
  store <2 x float> %105, ptr %104, align 8
  %indvars.iv.next85.1 = add nuw nsw i64 %indvars.iv84, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next85.1, %41
  br i1 %exitcond.not.1, label %._crit_edge75.us, label %scalar.ph107, !llvm.loop !23

._crit_edge75.us:                                 ; preds = %scalar.ph107.prol.loopexit, %scalar.ph107, %middle.block106
  %106 = call ptr @dotprod_cccf_create(ptr noundef nonnull %43, i32 noundef %2) #4
  %107 = getelementptr inbounds ptr, ptr %23, i64 %indvars.iv87
  store ptr %106, ptr %107, align 8, !tbaa !24
  %108 = call ptr @windowcf_create(i32 noundef %2) #4
  %109 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv87
  store ptr %108, ptr %109, align 8, !tbaa !24
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %110 = icmp ult i64 %indvars.iv.next88, %21
  br i1 %110, label %.preheader.us, label %._crit_edge77, !llvm.loop !25

._crit_edge77:                                    ; preds = %._crit_edge75.us
  %111 = call noalias ptr @malloc(i64 noundef %22) #5
  %112 = getelementptr inbounds i8, ptr %16, i64 56
  store ptr %111, ptr %112, align 8, !tbaa !26
  %113 = call noalias ptr @malloc(i64 noundef %22) #5
  %114 = getelementptr inbounds i8, ptr %16, i64 64
  store ptr %113, ptr %114, align 8, !tbaa !27
  %115 = icmp eq i32 %0, 0
  %. = select i1 %115, i32 1, i32 -1
  %116 = call ptr @fft_create_plan(i32 noundef %1, ptr noundef %113, ptr noundef %111, i32 noundef %., i32 noundef 0) #4
  %117 = getelementptr inbounds i8, ptr %16, i64 48
  store ptr %116, ptr %117, align 8
  %118 = call i32 @firpfbch_cccf_reset(ptr noundef nonnull %16)
  call void @llvm.stackrestore.p0(ptr %42)
  br label %119

119:                                              ; preds = %._crit_edge77, %13, %9, %5
  %.0 = phi ptr [ %6, %5 ], [ %10, %9 ], [ %14, %13 ], [ %16, %._crit_edge77 ]
  ret ptr %.0
}

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #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 #2

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

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

declare ptr @windowcf_create(i32 noundef) local_unnamed_addr #1

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

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

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

attributes #0 = { 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 #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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #4 = { nounwind }
attributes #5 = { 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 = !{!"firpfbch_cccf_s", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !10, i64 48, !10, i64 56, !10, i64 64}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 12}
!14 = !{!6, !10, i64 24}
!15 = !{!6, !10, i64 32}
!16 = !{!6, !10, i64 16}
!17 = distinct !{!17, !18, !19, !20}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !18, !20, !19}
!22 = distinct !{!22, !18, !19, !20}
!23 = distinct !{!23, !18, !19}
!24 = !{!10, !10, i64 0}
!25 = distinct !{!25, !18}
!26 = !{!6, !10, i64 56}
!27 = !{!6, !10, i64 64}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass