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

@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [55 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

; 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_cccf_create(ptr noundef, i32 noundef) #2

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

18:                                               ; preds = %4
  %19 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.81, i32 noundef 102, ptr noundef @.str.82, ptr noundef @.str.3)
  store ptr %19, ptr %5, align 8
  br label %187

20:                                               ; preds = %4
  %21 = load i32, ptr %9, align 4, !tbaa !9
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %25

23:                                               ; preds = %20
  %24 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.81, i32 noundef 104, ptr noundef @.str.83, ptr noundef @.str.3)
  store ptr %24, ptr %5, align 8
  br label %187

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %26 = call noalias ptr @malloc(i64 noundef 80) #6
  store ptr %26, ptr %10, align 8, !tbaa !5
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  call void @iirfilt_cccf_init(ptr noundef %27)
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %29, i32 0, i32 4
  store i32 %28, ptr %30, align 4, !tbaa !11
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %32, i32 0, i32 5
  store i32 %31, ptr %33, align 8, !tbaa !13
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %34, i32 0, i32 5
  %36 = load i32, ptr %35, align 8, !tbaa !13
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %37, i32 0, i32 4
  %39 = load i32, ptr %38, align 4, !tbaa !11
  %40 = icmp ugt i32 %36, %39
  br i1 %40, label %41, label %45

41:                                               ; preds = %25
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %42, i32 0, i32 5
  %44 = load i32, ptr %43, align 8, !tbaa !13
  br label %49

45:                                               ; preds = %25
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %46, i32 0, i32 4
  %48 = load i32, ptr %47, align 4, !tbaa !11
  br label %49

49:                                               ; preds = %45, %41
  %50 = phi i32 [ %44, %41 ], [ %48, %45 ]
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %51, i32 0, i32 3
  store i32 %50, ptr %52, align 8, !tbaa !14
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %53, i32 0, i32 6
  store i32 0, ptr %54, align 4, !tbaa !15
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %55, i32 0, i32 5
  %57 = load i32, ptr %56, align 8, !tbaa !13
  %58 = zext i32 %57 to i64
  %59 = mul i64 %58, 8
  %60 = call noalias ptr @malloc(i64 noundef %59) #6
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %61, i32 0, i32 1
  store ptr %60, ptr %62, align 8, !tbaa !16
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %63, i32 0, i32 4
  %65 = load i32, ptr %64, align 4, !tbaa !11
  %66 = zext i32 %65 to i64
  %67 = mul i64 %66, 8
  %68 = call noalias ptr @malloc(i64 noundef %67) #6
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %69, i32 0, i32 0
  store ptr %68, ptr %70, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds { float, float }, ptr %71, i64 0
  %73 = getelementptr inbounds { float, float }, ptr %72, i32 0, i32 0
  %74 = load float, ptr %73, align 4
  %75 = getelementptr inbounds { float, float }, ptr %72, i32 0, i32 1
  %76 = load float, ptr %75, align 4
  %77 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %78 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  store float %74, ptr %77, align 4
  store float %76, ptr %78, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %111, %49
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %81, i32 0, i32 4
  %83 = load i32, ptr %82, align 4, !tbaa !11
  %84 = icmp ult i32 %80, %83
  br i1 %84, label %85, label %114

85:                                               ; preds = %79
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds { float, float }, ptr %86, i64 %88
  %90 = getelementptr inbounds { float, float }, ptr %89, i32 0, i32 0
  %91 = load float, ptr %90, align 4
  %92 = getelementptr inbounds { float, float }, ptr %89, i32 0, i32 1
  %93 = load float, ptr %92, align 4
  %94 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %95 = load float, ptr %94, align 4
  %96 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  %97 = load float, ptr %96, align 4
  %98 = call <2 x float> @__divsc3(float noundef %91, float noundef %93, float noundef %95, float noundef %97) #5
  store <2 x float> %98, ptr %13, align 4
  %99 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %100 = load float, ptr %99, align 4
  %101 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  %102 = load float, ptr %101, align 4
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %103, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8, !tbaa !17
  %106 = load i32, ptr %12, align 4, !tbaa !9
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds { float, float }, ptr %105, i64 %107
  %109 = getelementptr inbounds { float, float }, ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds { float, float }, ptr %108, i32 0, i32 1
  store float %100, ptr %109, align 4
  store float %102, ptr %110, align 4
  br label %111

111:                                              ; preds = %85
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = add i32 %112, 1
  store i32 %113, ptr %12, align 4, !tbaa !9
  br label %79, !llvm.loop !18

114:                                              ; preds = %79
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %147, %114
  %116 = load i32, ptr %12, align 4, !tbaa !9
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %117, i32 0, i32 5
  %119 = load i32, ptr %118, align 8, !tbaa !13
  %120 = icmp ult i32 %116, %119
  br i1 %120, label %121, label %150

121:                                              ; preds = %115
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = load i32, ptr %12, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds { float, float }, ptr %122, i64 %124
  %126 = getelementptr inbounds { float, float }, ptr %125, i32 0, i32 0
  %127 = load float, ptr %126, align 4
  %128 = getelementptr inbounds { float, float }, ptr %125, i32 0, i32 1
  %129 = load float, ptr %128, align 4
  %130 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %131 = load float, ptr %130, align 4
  %132 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  %133 = load float, ptr %132, align 4
  %134 = call <2 x float> @__divsc3(float noundef %127, float noundef %129, float noundef %131, float noundef %133) #5
  store <2 x float> %134, ptr %14, align 4
  %135 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 0
  %136 = load float, ptr %135, align 4
  %137 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 1
  %138 = load float, ptr %137, align 4
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %139, i32 0, i32 1
  %141 = load ptr, ptr %140, align 8, !tbaa !16
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds { float, float }, ptr %141, i64 %143
  %145 = getelementptr inbounds { float, float }, ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds { float, float }, ptr %144, i32 0, i32 1
  store float %136, ptr %145, align 4
  store float %138, ptr %146, align 4
  br label %147

147:                                              ; preds = %121
  %148 = load i32, ptr %12, align 4, !tbaa !9
  %149 = add i32 %148, 1
  store i32 %149, ptr %12, align 4, !tbaa !9
  br label %115, !llvm.loop !20

150:                                              ; preds = %115
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %151, i32 0, i32 3
  %153 = load i32, ptr %152, align 8, !tbaa !14
  %154 = zext i32 %153 to i64
  %155 = mul i64 %154, 8
  %156 = call noalias ptr @malloc(i64 noundef %155) #6
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %157, i32 0, i32 2
  store ptr %156, ptr %158, align 8, !tbaa !21
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %159, i32 0, i32 1
  %161 = load ptr, ptr %160, align 8, !tbaa !16
  %162 = getelementptr inbounds { float, float }, ptr %161, i64 1
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %163, i32 0, i32 5
  %165 = load i32, ptr %164, align 8, !tbaa !13
  %166 = sub i32 %165, 1
  %167 = call ptr @dotprod_cccf_create(ptr noundef %162, i32 noundef %166)
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %168, i32 0, i32 8
  store ptr %167, ptr %169, align 8, !tbaa !22
  %170 = load ptr, ptr %10, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %170, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8, !tbaa !17
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %173, i32 0, i32 4
  %175 = load i32, ptr %174, align 4, !tbaa !11
  %176 = call ptr @dotprod_cccf_create(ptr noundef %172, i32 noundef %175)
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %177, i32 0, i32 7
  store ptr %176, ptr %178, align 8, !tbaa !23
  %179 = load ptr, ptr %10, align 8, !tbaa !5
  %180 = call i32 @iirfilt_cccf_reset(ptr noundef %179)
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  %182 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %183 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  store float 1.000000e+00, ptr %182, align 4
  store float 0.000000e+00, ptr %183, align 4
  %184 = load <2 x float>, ptr %15, align 4
  %185 = call i32 @iirfilt_cccf_set_scale(ptr noundef %181, <2 x float> noundef %184)
  %186 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %186, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %187

187:                                              ; preds = %150, %23, %18
  %188 = load ptr, ptr %5, align 8
  ret ptr %188
}

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

; Function Attrs: nounwind uwtable
declare dso_local void @iirfilt_cccf_init(ptr noundef) #4

declare <2 x float> @__divsc3(float, float, float, float)

; Function Attrs: nounwind uwtable
declare dso_local i32 @iirfilt_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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 28}
!12 = !{!"iirfilt_cccf_s", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !7, i64 68}
!13 = !{!12, !10, i64 32}
!14 = !{!12, !10, i64 24}
!15 = !{!12, !10, i64 36}
!16 = !{!12, !6, i64 8}
!17 = !{!12, !6, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!12, !6, i64 16}
!22 = !{!12, !6, i64 48}
!23 = !{!12, !6, i64 40}


; 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.81 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [55 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 @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local ptr @iirfilt_cccf_create(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = icmp eq i32 %1, 0
  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.81, i32 noundef 102, ptr noundef nonnull @.str.82, ptr noundef nonnull @.str.3) #5
  br label %63

8:                                                ; preds = %4
  %9 = icmp eq i32 %3, 0
  br i1 %9, label %10, label %.lr.ph.preheader

10:                                               ; preds = %8
  %11 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.81, i32 noundef 104, ptr noundef nonnull @.str.83, ptr noundef nonnull @.str.3) #5
  br label %63

.lr.ph.preheader:                                 ; preds = %8
  %12 = tail call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #6
  tail call void @iirfilt_cccf_init(ptr noundef %12)
  %13 = getelementptr inbounds i8, ptr %12, i64 28
  store i32 %1, ptr %13, align 4, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %12, i64 32
  store i32 %3, ptr %14, align 8, !tbaa !11
  %. = tail call i32 @llvm.umax.i32(i32 %3, i32 %1)
  %15 = getelementptr inbounds i8, ptr %12, i64 24
  store i32 %., ptr %15, align 8, !tbaa !12
  %16 = getelementptr inbounds i8, ptr %12, i64 36
  store i32 0, ptr %16, align 4, !tbaa !13
  %17 = zext i32 %3 to i64
  %18 = shl nuw nsw i64 %17, 3
  %19 = tail call noalias ptr @malloc(i64 noundef %18) #6
  %20 = getelementptr inbounds i8, ptr %12, i64 8
  store ptr %19, ptr %20, align 8, !tbaa !14
  %21 = zext i32 %1 to i64
  %22 = shl nuw nsw i64 %21, 3
  %23 = tail call noalias ptr @malloc(i64 noundef %22) #6
  store ptr %23, ptr %12, align 8, !tbaa !15
  %24 = load float, ptr %2, align 4
  %25 = getelementptr inbounds i8, ptr %2, i64 4
  %26 = load float, ptr %25, align 4
  br label %.lr.ph

.preheader:                                       ; preds = %.lr.ph
  %.pre = load i32, ptr %14, align 8, !tbaa !11
  %.not56 = icmp eq i32 %.pre, 0
  br i1 %.not56, label %._crit_edge, label %.lr.ph55

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %27 = getelementptr inbounds { float, float }, ptr %0, i64 %indvars.iv
  %28 = load float, ptr %27, align 4
  %29 = getelementptr inbounds i8, ptr %27, i64 4
  %30 = load float, ptr %29, align 4
  %31 = tail call <2 x float> @__divsc3(float noundef %28, float noundef %30, float noundef %24, float noundef %26) #5
  %32 = load ptr, ptr %12, align 8, !tbaa !15
  %33 = getelementptr inbounds { float, float }, ptr %32, i64 %indvars.iv
  store <2 x float> %31, ptr %33, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %34 = load i32, ptr %13, align 4, !tbaa !5
  %35 = zext i32 %34 to i64
  %36 = icmp ult i64 %indvars.iv.next, %35
  br i1 %36, label %.lr.ph, label %.preheader, !llvm.loop !16

.lr.ph55:                                         ; preds = %.preheader, %.lr.ph55
  %indvars.iv59 = phi i64 [ %indvars.iv.next60, %.lr.ph55 ], [ 0, %.preheader ]
  %37 = getelementptr inbounds { float, float }, ptr %2, i64 %indvars.iv59
  %38 = load float, ptr %37, align 4
  %39 = getelementptr inbounds i8, ptr %37, i64 4
  %40 = load float, ptr %39, align 4
  %41 = tail call <2 x float> @__divsc3(float noundef %38, float noundef %40, float noundef %24, float noundef %26) #5
  %42 = load ptr, ptr %20, align 8, !tbaa !14
  %43 = getelementptr inbounds { float, float }, ptr %42, i64 %indvars.iv59
  store <2 x float> %41, ptr %43, align 4
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %44 = load i32, ptr %14, align 8, !tbaa !11
  %45 = zext i32 %44 to i64
  %46 = icmp ult i64 %indvars.iv.next60, %45
  br i1 %46, label %.lr.ph55, label %._crit_edge.loopexit, !llvm.loop !18

._crit_edge.loopexit:                             ; preds = %.lr.ph55
  %47 = add i32 %44, -1
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %.lcssa = phi i32 [ -1, %.preheader ], [ %47, %._crit_edge.loopexit ]
  %48 = load i32, ptr %15, align 8, !tbaa !12
  %49 = zext i32 %48 to i64
  %50 = shl nuw nsw i64 %49, 3
  %51 = tail call noalias ptr @malloc(i64 noundef %50) #6
  %52 = getelementptr inbounds i8, ptr %12, i64 16
  store ptr %51, ptr %52, align 8, !tbaa !19
  %53 = load ptr, ptr %20, align 8, !tbaa !14
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  %55 = tail call ptr @dotprod_cccf_create(ptr noundef nonnull %54, i32 noundef %.lcssa) #5
  %56 = getelementptr inbounds i8, ptr %12, i64 48
  store ptr %55, ptr %56, align 8, !tbaa !20
  %57 = load ptr, ptr %12, align 8, !tbaa !15
  %58 = load i32, ptr %13, align 4, !tbaa !5
  %59 = tail call ptr @dotprod_cccf_create(ptr noundef %57, i32 noundef %58) #5
  %60 = getelementptr inbounds i8, ptr %12, i64 40
  store ptr %59, ptr %60, align 8, !tbaa !21
  %61 = tail call i32 @iirfilt_cccf_reset(ptr noundef nonnull %12)
  %62 = tail call i32 @iirfilt_cccf_set_scale(ptr noundef nonnull %12, <2 x float> noundef <float 1.000000e+00, float 0.000000e+00>)
  br label %63

63:                                               ; preds = %._crit_edge, %10, %6
  %.0 = phi ptr [ %7, %6 ], [ %11, %10 ], [ %12, %._crit_edge ]
  ret ptr %.0
}

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

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

declare <2 x float> @__divsc3(float, float, float, float) local_unnamed_addr

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #4

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 28}
!6 = !{!"iirfilt_cccf_s", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !8, i64 68}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 32}
!12 = !{!6, !10, i64 24}
!13 = !{!6, !10, i64 36}
!14 = !{!6, !7, i64 8}
!15 = !{!6, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!6, !7, i64 16}
!20 = !{!6, !7, i64 48}
!21 = !{!6, !7, i64 40}


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