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

; 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.symsync_crcf_s = type { i32, i32, i32, i32, i32, float, float, float, float, float, i32, float, float, [3 x float], [3 x float], ptr, float, i32, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [77 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: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

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

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

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

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

17:                                               ; preds = %4
  %18 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.155, i32 noundef 107, ptr noundef @.str.156, ptr noundef @.str.2)
  store ptr %18, ptr %5, align 8
  br label %220

19:                                               ; preds = %4
  %20 = load i32, ptr %7, align 4, !tbaa !5
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %24

22:                                               ; preds = %19
  %23 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.155, i32 noundef 109, ptr noundef @.str.157, ptr noundef @.str.2)
  store ptr %23, ptr %5, align 8
  br label %220

24:                                               ; preds = %19
  %25 = load i32, ptr %9, 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.155, i32 noundef 111, ptr noundef @.str.158, ptr noundef @.str.2)
  store ptr %28, ptr %5, align 8
  br label %220

29:                                               ; preds = %24
  %30 = load i32, ptr %9, align 4, !tbaa !5
  %31 = sub i32 %30, 1
  %32 = load i32, ptr %7, align 4, !tbaa !5
  %33 = urem i32 %31, %32
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %37

35:                                               ; preds = %29
  %36 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.155, i32 noundef 113, ptr noundef @.str.159, ptr noundef @.str.2)
  store ptr %36, ptr %5, align 8
  br label %220

37:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %38 = call noalias ptr @malloc(i64 noundef 112) #7
  store ptr %38, ptr %10, align 8, !tbaa !9
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = load ptr, ptr %10, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.symsync_crcf_s, ptr %40, i32 0, i32 1
  store i32 %39, ptr %41, align 4, !tbaa !11
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = load ptr, ptr %10, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.symsync_crcf_s, ptr %43, i32 0, i32 17
  store i32 %42, ptr %44, align 4, !tbaa !14
  %45 = load ptr, ptr %10, align 8, !tbaa !9
  %46 = call i32 @symsync_crcf_set_output_rate(ptr noundef %45, i32 noundef 1)
  %47 = load i32, ptr %9, align 4, !tbaa !5
  %48 = sub i32 %47, 1
  %49 = load ptr, ptr %10, align 8, !tbaa !9
  %50 = getelementptr inbounds %struct.symsync_crcf_s, ptr %49, i32 0, i32 17
  %51 = load i32, ptr %50, align 4, !tbaa !14
  %52 = udiv i32 %48, %51
  %53 = load ptr, ptr %10, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.symsync_crcf_s, ptr %53, i32 0, i32 0
  store i32 %52, ptr %54, align 8, !tbaa !15
  %55 = load i32, ptr %9, align 4, !tbaa !5
  %56 = zext i32 %55 to i64
  %57 = call ptr @llvm.stacksave.p0()
  store ptr %57, ptr %11, align 8
  %58 = alloca float, i64 %56, align 16
  store i64 %56, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store float 0.000000e+00, ptr %13, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %150, %37
  %60 = load i32, ptr %14, align 4, !tbaa !5
  %61 = load i32, ptr %9, align 4, !tbaa !5
  %62 = icmp ult i32 %60, %61
  br i1 %62, label %63, label %153

63:                                               ; preds = %59
  %64 = load i32, ptr %14, align 4, !tbaa !5
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %83

66:                                               ; preds = %63
  %67 = load ptr, ptr %8, align 8, !tbaa !9
  %68 = load i32, ptr %14, align 4, !tbaa !5
  %69 = add i32 %68, 1
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds float, ptr %67, i64 %70
  %72 = load float, ptr %71, align 4, !tbaa !16
  %73 = load ptr, ptr %8, align 8, !tbaa !9
  %74 = load i32, ptr %9, align 4, !tbaa !5
  %75 = sub i32 %74, 1
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds float, ptr %73, i64 %76
  %78 = load float, ptr %77, align 4, !tbaa !16
  %79 = fsub float %72, %78
  %80 = load i32, ptr %14, align 4, !tbaa !5
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds float, ptr %58, i64 %81
  store float %79, ptr %82, align 4, !tbaa !16
  br label %120

83:                                               ; preds = %63
  %84 = load i32, ptr %14, align 4, !tbaa !5
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = sub i32 %85, 1
  %87 = icmp eq i32 %84, %86
  br i1 %87, label %88, label %102

88:                                               ; preds = %83
  %89 = load ptr, ptr %8, align 8, !tbaa !9
  %90 = getelementptr inbounds float, ptr %89, i64 0
  %91 = load float, ptr %90, align 4, !tbaa !16
  %92 = load ptr, ptr %8, align 8, !tbaa !9
  %93 = load i32, ptr %14, align 4, !tbaa !5
  %94 = sub i32 %93, 1
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds float, ptr %92, i64 %95
  %97 = load float, ptr %96, align 4, !tbaa !16
  %98 = fsub float %91, %97
  %99 = load i32, ptr %14, align 4, !tbaa !5
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds float, ptr %58, i64 %100
  store float %98, ptr %101, align 4, !tbaa !16
  br label %119

102:                                              ; preds = %83
  %103 = load ptr, ptr %8, align 8, !tbaa !9
  %104 = load i32, ptr %14, align 4, !tbaa !5
  %105 = add i32 %104, 1
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds float, ptr %103, i64 %106
  %108 = load float, ptr %107, align 4, !tbaa !16
  %109 = load ptr, ptr %8, align 8, !tbaa !9
  %110 = load i32, ptr %14, align 4, !tbaa !5
  %111 = sub i32 %110, 1
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds float, ptr %109, i64 %112
  %114 = load float, ptr %113, align 4, !tbaa !16
  %115 = fsub float %108, %114
  %116 = load i32, ptr %14, align 4, !tbaa !5
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds float, ptr %58, i64 %117
  store float %115, ptr %118, align 4, !tbaa !16
  br label %119

119:                                              ; preds = %102, %88
  br label %120

120:                                              ; preds = %119, %66
  %121 = load ptr, ptr %8, align 8, !tbaa !9
  %122 = load i32, ptr %14, align 4, !tbaa !5
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds float, ptr %121, i64 %123
  %125 = load float, ptr %124, align 4, !tbaa !16
  %126 = load i32, ptr %14, align 4, !tbaa !5
  %127 = zext i32 %126 to i64
  %128 = getelementptr inbounds float, ptr %58, i64 %127
  %129 = load float, ptr %128, align 4, !tbaa !16
  %130 = fmul float %125, %129
  %131 = call float @llvm.fabs.f32(float %130)
  %132 = load float, ptr %13, align 4, !tbaa !16
  %133 = fcmp ogt float %131, %132
  br i1 %133, label %137, label %134

134:                                              ; preds = %120
  %135 = load i32, ptr %14, align 4, !tbaa !5
  %136 = icmp eq i32 %135, 0
  br i1 %136, label %137, label %149

137:                                              ; preds = %134, %120
  %138 = load ptr, ptr %8, align 8, !tbaa !9
  %139 = load i32, ptr %14, align 4, !tbaa !5
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds float, ptr %138, i64 %140
  %142 = load float, ptr %141, align 4, !tbaa !16
  %143 = load i32, ptr %14, align 4, !tbaa !5
  %144 = zext i32 %143 to i64
  %145 = getelementptr inbounds float, ptr %58, i64 %144
  %146 = load float, ptr %145, align 4, !tbaa !16
  %147 = fmul float %142, %146
  %148 = call float @llvm.fabs.f32(float %147)
  store float %148, ptr %13, align 4, !tbaa !16
  br label %149

149:                                              ; preds = %137, %134
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %14, align 4, !tbaa !5
  %152 = add i32 %151, 1
  store i32 %152, ptr %14, align 4, !tbaa !5
  br label %59, !llvm.loop !17

153:                                              ; preds = %59
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %154

154:                                              ; preds = %166, %153
  %155 = load i32, ptr %14, align 4, !tbaa !5
  %156 = load i32, ptr %9, align 4, !tbaa !5
  %157 = icmp ult i32 %155, %156
  br i1 %157, label %158, label %169

158:                                              ; preds = %154
  %159 = load float, ptr %13, align 4, !tbaa !16
  %160 = fdiv float 0x3FAEB851E0000000, %159
  %161 = load i32, ptr %14, align 4, !tbaa !5
  %162 = zext i32 %161 to i64
  %163 = getelementptr inbounds float, ptr %58, i64 %162
  %164 = load float, ptr %163, align 4, !tbaa !16
  %165 = fmul float %164, %160
  store float %165, ptr %163, align 4, !tbaa !16
  br label %166

166:                                              ; preds = %158
  %167 = load i32, ptr %14, align 4, !tbaa !5
  %168 = add i32 %167, 1
  store i32 %168, ptr %14, align 4, !tbaa !5
  br label %154, !llvm.loop !19

169:                                              ; preds = %154
  %170 = load ptr, ptr %10, align 8, !tbaa !9
  %171 = getelementptr inbounds %struct.symsync_crcf_s, ptr %170, i32 0, i32 17
  %172 = load i32, ptr %171, align 4, !tbaa !14
  %173 = load ptr, ptr %8, align 8, !tbaa !9
  %174 = load i32, ptr %9, align 4, !tbaa !5
  %175 = call ptr @firpfb_crcf_create(i32 noundef %172, ptr noundef %173, i32 noundef %174)
  %176 = load ptr, ptr %10, align 8, !tbaa !9
  %177 = getelementptr inbounds %struct.symsync_crcf_s, ptr %176, i32 0, i32 18
  store ptr %175, ptr %177, align 8, !tbaa !20
  %178 = load ptr, ptr %10, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct.symsync_crcf_s, ptr %178, i32 0, i32 17
  %180 = load i32, ptr %179, align 4, !tbaa !14
  %181 = load i32, ptr %9, align 4, !tbaa !5
  %182 = call ptr @firpfb_crcf_create(i32 noundef %180, ptr noundef %58, i32 noundef %181)
  %183 = load ptr, ptr %10, align 8, !tbaa !9
  %184 = getelementptr inbounds %struct.symsync_crcf_s, ptr %183, i32 0, i32 19
  store ptr %182, ptr %184, align 8, !tbaa !21
  %185 = load ptr, ptr %10, align 8, !tbaa !9
  %186 = getelementptr inbounds %struct.symsync_crcf_s, ptr %185, i32 0, i32 14
  %187 = getelementptr inbounds [3 x float], ptr %186, i64 0, i64 0
  store float 1.000000e+00, ptr %187, align 8, !tbaa !16
  %188 = load ptr, ptr %10, align 8, !tbaa !9
  %189 = getelementptr inbounds %struct.symsync_crcf_s, ptr %188, i32 0, i32 13
  %190 = getelementptr inbounds [3 x float], ptr %189, i64 0, i64 0
  store float 0.000000e+00, ptr %190, align 4, !tbaa !16
  %191 = load ptr, ptr %10, align 8, !tbaa !9
  %192 = getelementptr inbounds %struct.symsync_crcf_s, ptr %191, i32 0, i32 14
  %193 = getelementptr inbounds [3 x float], ptr %192, i64 0, i64 1
  store float 0.000000e+00, ptr %193, align 4, !tbaa !16
  %194 = load ptr, ptr %10, align 8, !tbaa !9
  %195 = getelementptr inbounds %struct.symsync_crcf_s, ptr %194, i32 0, i32 13
  %196 = getelementptr inbounds [3 x float], ptr %195, i64 0, i64 1
  store float 0.000000e+00, ptr %196, align 4, !tbaa !16
  %197 = load ptr, ptr %10, align 8, !tbaa !9
  %198 = getelementptr inbounds %struct.symsync_crcf_s, ptr %197, i32 0, i32 14
  %199 = getelementptr inbounds [3 x float], ptr %198, i64 0, i64 2
  store float 0.000000e+00, ptr %199, align 8, !tbaa !16
  %200 = load ptr, ptr %10, align 8, !tbaa !9
  %201 = getelementptr inbounds %struct.symsync_crcf_s, ptr %200, i32 0, i32 13
  %202 = getelementptr inbounds [3 x float], ptr %201, i64 0, i64 2
  store float 0.000000e+00, ptr %202, align 4, !tbaa !16
  %203 = load ptr, ptr %10, align 8, !tbaa !9
  %204 = getelementptr inbounds %struct.symsync_crcf_s, ptr %203, i32 0, i32 13
  %205 = getelementptr inbounds [3 x float], ptr %204, i64 0, i64 0
  %206 = load ptr, ptr %10, align 8, !tbaa !9
  %207 = getelementptr inbounds %struct.symsync_crcf_s, ptr %206, i32 0, i32 14
  %208 = getelementptr inbounds [3 x float], ptr %207, i64 0, i64 0
  %209 = call ptr @iirfiltsos_rrrf_create(ptr noundef %205, ptr noundef %208)
  %210 = load ptr, ptr %10, align 8, !tbaa !9
  %211 = getelementptr inbounds %struct.symsync_crcf_s, ptr %210, i32 0, i32 15
  store ptr %209, ptr %211, align 8, !tbaa !22
  %212 = load ptr, ptr %10, align 8, !tbaa !9
  %213 = call i32 @symsync_crcf_reset(ptr noundef %212)
  %214 = load ptr, ptr %10, align 8, !tbaa !9
  %215 = call i32 @symsync_crcf_set_lf_bw(ptr noundef %214, float noundef 0x3F847AE140000000)
  %216 = load ptr, ptr %10, align 8, !tbaa !9
  %217 = call i32 @symsync_crcf_unlock(ptr noundef %216)
  %218 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %218, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %219 = load ptr, ptr %11, align 8
  call void @llvm.stackrestore.p0(ptr %219)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %220

220:                                              ; preds = %169, %35, %27, %22, %17
  %221 = load ptr, ptr %5, align 8
  ret ptr %221
}

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

declare ptr @iirfiltsos_rrrf_create(ptr noundef, ptr noundef) #0

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

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

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

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 = { nocallback nofree nosync nounwind willreturn }
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 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, !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 4}
!12 = !{!"symsync_crcf_s", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !6, i64 40, !13, i64 44, !13, i64 48, !7, i64 52, !7, i64 64, !10, i64 80, !13, i64 88, !6, i64 92, !10, i64 96, !10, i64 104}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !6, i64 92}
!15 = !{!12, !6, i64 0}
!16 = !{!13, !13, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!12, !10, i64 96}
!21 = !{!12, !10, i64 104}
!22 = !{!12, !10, 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.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [77 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: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @symsync_crcf_create(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = icmp ult i32 %0, 2
  br i1 %5, label %6, label %8

6:                                                ; preds = %4
  %7 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.155, i32 noundef 107, ptr noundef nonnull @.str.156, ptr noundef nonnull @.str.2) #6
  br label %84

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

10:                                               ; preds = %8
  %11 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.155, i32 noundef 109, ptr noundef nonnull @.str.157, ptr noundef nonnull @.str.2) #6
  br label %84

12:                                               ; preds = %8
  %13 = icmp eq i32 %3, 0
  br i1 %13, label %14, label %16

14:                                               ; preds = %12
  %15 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.155, i32 noundef 111, ptr noundef nonnull @.str.158, ptr noundef nonnull @.str.2) #6
  br label %84

16:                                               ; preds = %12
  %17 = add i32 %3, -1
  %18 = urem i32 %17, %1
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %21, label %19

19:                                               ; preds = %16
  %20 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.155, i32 noundef 113, ptr noundef nonnull @.str.159, ptr noundef nonnull @.str.2) #6
  br label %84

21:                                               ; preds = %16
  %22 = tail call noalias dereferenceable_or_null(112) ptr @malloc(i64 noundef 112) #7
  %23 = getelementptr inbounds i8, ptr %22, i64 4
  store i32 %0, ptr %23, align 4, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %22, i64 92
  store i32 %1, ptr %24, align 4, !tbaa !12
  %25 = tail call i32 @symsync_crcf_set_output_rate(ptr noundef %22, i32 noundef 1)
  %26 = load i32, ptr %24, align 4, !tbaa !12
  %27 = udiv i32 %17, %26
  store i32 %27, ptr %22, align 8, !tbaa !13
  %28 = zext i32 %3 to i64
  %29 = tail call ptr @llvm.stacksave.p0()
  %30 = alloca float, i64 %28, align 16
  %31 = zext i32 %17 to i64
  %32 = getelementptr inbounds float, ptr %2, i64 %31
  %33 = getelementptr inbounds i8, ptr %2, i64 4
  %34 = load float, ptr %33, align 4, !tbaa !14
  %35 = load float, ptr %32, align 4, !tbaa !14
  %36 = fsub float %34, %35
  store float %36, ptr %30, align 16, !tbaa !14
  %37 = load float, ptr %2, align 4, !tbaa !14
  %38 = fmul float %37, %36
  %39 = tail call float @llvm.fabs.f32(float %38)
  %exitcond.peel.not = icmp eq i32 %3, 1
  br i1 %exitcond.peel.not, label %.preheader, label %.peel.next

.peel.next:                                       ; preds = %21
  %invariant.gep = getelementptr inbounds i8, ptr %2, i64 4
  %40 = getelementptr float, ptr %2, i64 %31
  %41 = getelementptr i8, ptr %40, i64 -4
  %42 = getelementptr inbounds float, ptr %30, i64 %31
  br label %49

.preheader:                                       ; preds = %59, %21
  %.170.lcssa = phi float [ %39, %21 ], [ %.170, %59 ]
  %43 = fdiv float 0x3FAEB851E0000000, %.170.lcssa
  %umax = tail call i32 @llvm.umax.i32(i32 %3, i32 1)
  %wide.trip.count83 = zext i32 %umax to i64
  %min.iters.check = icmp ult i32 %3, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

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

vector.ph:                                        ; preds = %.preheader
  %n.vec = and i64 %wide.trip.count83, 4294967288
  %broadcast.splatinsert = insertelement <4 x float> poison, float %43, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %44 = getelementptr inbounds float, ptr %30, i64 %index
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  %wide.load = load <4 x float>, ptr %44, align 16, !tbaa !14
  %wide.load87 = load <4 x float>, ptr %45, align 16, !tbaa !14
  %46 = fmul <4 x float> %broadcast.splat, %wide.load
  %47 = fmul <4 x float> %broadcast.splat, %wide.load87
  store <4 x float> %46, ptr %44, align 16, !tbaa !14
  store <4 x float> %47, ptr %45, align 16, !tbaa !14
  %index.next = add nuw i64 %index, 8
  %48 = icmp eq i64 %index.next, %n.vec
  br i1 %48, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count83
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

49:                                               ; preds = %59, %.peel.next
  %50 = phi float [ %37, %.peel.next ], [ %61, %59 ]
  %indvars.iv = phi i64 [ 1, %.peel.next ], [ %indvars.iv.next, %59 ]
  %.06975 = phi float [ %39, %.peel.next ], [ %.170, %59 ]
  %51 = icmp eq i64 %indvars.iv, %31
  br i1 %51, label %52, label %55

52:                                               ; preds = %49
  %53 = load float, ptr %41, align 4, !tbaa !14
  %54 = fsub float %37, %53
  store float %54, ptr %42, align 4, !tbaa !14
  br label %59

55:                                               ; preds = %49
  %gep = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv
  %56 = load float, ptr %gep, align 4, !tbaa !14
  %57 = fsub float %56, %50
  %58 = getelementptr inbounds float, ptr %30, i64 %indvars.iv
  store float %57, ptr %58, align 4, !tbaa !14
  br label %59

59:                                               ; preds = %52, %55
  %60 = getelementptr inbounds float, ptr %2, i64 %indvars.iv
  %61 = load float, ptr %60, align 4, !tbaa !14
  %62 = getelementptr inbounds float, ptr %30, i64 %indvars.iv
  %63 = load float, ptr %62, align 4, !tbaa !14
  %64 = fmul float %61, %63
  %65 = tail call float @llvm.fabs.f32(float %64)
  %66 = fcmp ogt float %65, %.06975
  %.170 = select i1 %66, float %65, float %.06975
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %28
  br i1 %exitcond.not, label %.preheader, label %49, !llvm.loop !19

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv80 = phi i64 [ %indvars.iv.next81, %scalar.ph ], [ %indvars.iv80.ph, %scalar.ph.preheader ]
  %67 = getelementptr inbounds float, ptr %30, i64 %indvars.iv80
  %68 = load float, ptr %67, align 4, !tbaa !14
  %69 = fmul float %43, %68
  store float %69, ptr %67, align 4, !tbaa !14
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %exitcond84.not = icmp eq i64 %indvars.iv.next81, %wide.trip.count83
  br i1 %exitcond84.not, label %.loopexit, label %scalar.ph, !llvm.loop !21

.loopexit:                                        ; preds = %scalar.ph, %middle.block
  %70 = load i32, ptr %24, align 4, !tbaa !12
  %71 = tail call ptr @firpfb_crcf_create(i32 noundef %70, ptr noundef nonnull %2, i32 noundef %3)
  %72 = getelementptr inbounds i8, ptr %22, i64 96
  store ptr %71, ptr %72, align 8, !tbaa !22
  %73 = load i32, ptr %24, align 4, !tbaa !12
  %74 = call ptr @firpfb_crcf_create(i32 noundef %73, ptr noundef nonnull %30, i32 noundef %3)
  %75 = getelementptr inbounds i8, ptr %22, i64 104
  store ptr %74, ptr %75, align 8, !tbaa !23
  %76 = getelementptr inbounds i8, ptr %22, i64 64
  %77 = getelementptr inbounds i8, ptr %22, i64 52
  %78 = getelementptr inbounds i8, ptr %22, i64 68
  store <2 x float> zeroinitializer, ptr %78, align 4, !tbaa !14
  store <4 x float> <float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00>, ptr %77, align 4, !tbaa !14
  %79 = call ptr @iirfiltsos_rrrf_create(ptr noundef nonnull %77, ptr noundef nonnull %76) #6
  %80 = getelementptr inbounds i8, ptr %22, i64 80
  store ptr %79, ptr %80, align 8, !tbaa !24
  %81 = call i32 @symsync_crcf_reset(ptr noundef nonnull %22)
  %82 = call i32 @symsync_crcf_set_lf_bw(ptr noundef nonnull %22, float noundef 0x3F847AE140000000)
  %83 = call i32 @symsync_crcf_unlock(ptr noundef nonnull %22)
  call void @llvm.stackrestore.p0(ptr %29)
  br label %84

84:                                               ; preds = %.loopexit, %19, %14, %10, %6
  %.071 = phi ptr [ %7, %6 ], [ %11, %10 ], [ %15, %14 ], [ %20, %19 ], [ %22, %.loopexit ]
  ret ptr %.071
}

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

declare ptr @iirfiltsos_rrrf_create(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #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 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 speculatable willreturn memory(none) }
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 4}
!6 = !{!"symsync_crcf_s", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40, !10, i64 44, !10, i64 48, !8, i64 52, !8, i64 64, !11, i64 80, !10, i64 88, !7, i64 92, !11, i64 96, !11, i64 104}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !7, i64 92}
!13 = !{!6, !7, i64 0}
!14 = !{!10, !10, i64 0}
!15 = distinct !{!15, !16, !17, !18}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !16, !20}
!20 = !{!"llvm.loop.peeled.count", i32 1}
!21 = distinct !{!21, !16, !18, !17}
!22 = !{!6, !11, i64 96}
!23 = !{!6, !11, i64 104}
!24 = !{!6, !11, i64 80}


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