; 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.84 = external hidden unnamed_addr constant [73 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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #3

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

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

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

16:                                               ; preds = %3
  %17 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.81, i32 noundef 170, ptr noundef @.str.84, ptr noundef @.str.3)
  store ptr %17, ptr %4, align 8
  br label %146

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

76:                                               ; preds = %136, %18
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %78, i32 0, i32 10
  %80 = load i32, ptr %79, align 8, !tbaa !13
  %81 = icmp ult i32 %77, %80
  br i1 %81, label %82, label %139

82:                                               ; preds = %76
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %123, %82
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = icmp ult i32 %84, 3
  br i1 %85, label %86, label %126

86:                                               ; preds = %83
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %87, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8, !tbaa !17
  %90 = load i32, ptr %11, align 4, !tbaa !9
  %91 = mul i32 3, %90
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = add i32 %91, %92
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds { float, float }, ptr %89, i64 %94
  %96 = getelementptr inbounds { float, float }, ptr %95, i32 0, i32 0
  %97 = load float, ptr %96, align 4
  %98 = getelementptr inbounds { float, float }, ptr %95, i32 0, i32 1
  %99 = load float, ptr %98, align 4
  %100 = load i32, ptr %12, align 4, !tbaa !9
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds [3 x { float, float }], ptr %9, i64 0, i64 %101
  %103 = getelementptr inbounds { float, float }, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds { float, float }, ptr %102, i32 0, i32 1
  store float %97, ptr %103, align 8
  store float %99, ptr %104, align 4
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %105, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !16
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = mul i32 3, %108
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = add i32 %109, %110
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds { float, float }, ptr %107, i64 %112
  %114 = getelementptr inbounds { float, float }, ptr %113, i32 0, i32 0
  %115 = load float, ptr %114, align 4
  %116 = getelementptr inbounds { float, float }, ptr %113, i32 0, i32 1
  %117 = load float, ptr %116, align 4
  %118 = load i32, ptr %12, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds [3 x { float, float }], ptr %10, i64 0, i64 %119
  %121 = getelementptr inbounds { float, float }, ptr %120, i32 0, i32 0
  %122 = getelementptr inbounds { float, float }, ptr %120, i32 0, i32 1
  store float %115, ptr %121, align 8
  store float %117, ptr %122, align 4
  br label %123

123:                                              ; preds = %86
  %124 = load i32, ptr %12, align 4, !tbaa !9
  %125 = add i32 %124, 1
  store i32 %125, ptr %12, align 4, !tbaa !9
  br label %83, !llvm.loop !18

126:                                              ; preds = %83
  %127 = getelementptr inbounds [3 x { float, float }], ptr %10, i64 0, i64 0
  %128 = getelementptr inbounds [3 x { float, float }], ptr %9, i64 0, i64 0
  %129 = call ptr @iirfiltsos_cccf_create(ptr noundef %127, ptr noundef %128)
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %130, i32 0, i32 9
  %132 = load ptr, ptr %131, align 8, !tbaa !14
  %133 = load i32, ptr %11, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds ptr, ptr %132, i64 %134
  store ptr %129, ptr %135, align 8, !tbaa !5
  br label %136

136:                                              ; preds = %126
  %137 = load i32, ptr %11, align 4, !tbaa !9
  %138 = add i32 %137, 1
  store i32 %138, ptr %11, align 4, !tbaa !9
  br label %76, !llvm.loop !20

139:                                              ; preds = %76
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %142 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  store float 1.000000e+00, ptr %141, align 4
  store float 0.000000e+00, ptr %142, align 4
  %143 = load <2 x float>, ptr %13, align 4
  %144 = call i32 @iirfilt_cccf_set_scale(ptr noundef %140, <2 x float> noundef %143)
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %145, ptr %4, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %146

146:                                              ; preds = %139, %16
  %147 = load ptr, ptr %4, align 8
  ret ptr %147
}

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 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 #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 = !{!"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 36}
!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 64}
!14 = !{!12, !6, i64 56}
!15 = !{!12, !10, i64 24}
!16 = !{!12, !6, i64 0}
!17 = !{!12, !6, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; 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.84 = external hidden unnamed_addr constant [73 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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 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, ...) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @iirfilt_cccf_create_sos(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #4 {
  %4 = alloca [3 x { float, float }], align 16
  %5 = alloca [3 x { float, float }], align 16
  %6 = icmp eq i32 %2, 0
  br i1 %6, label %7, label %.preheader.preheader

7:                                                ; preds = %3
  %8 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.81, i32 noundef 170, ptr noundef nonnull @.str.84, ptr noundef nonnull @.str.3) #6
  br label %56

.preheader.preheader:                             ; preds = %3
  %9 = tail call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #7
  tail call void @iirfilt_cccf_init(ptr noundef %9)
  %10 = getelementptr inbounds i8, ptr %9, i64 36
  store i32 1, ptr %10, align 4, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %9, i64 64
  store i32 %2, ptr %11, align 8, !tbaa !11
  %12 = zext i32 %2 to i64
  %13 = shl nuw nsw i64 %12, 3
  %14 = tail call noalias ptr @malloc(i64 noundef %13) #7
  %15 = getelementptr inbounds i8, ptr %9, i64 56
  store ptr %14, ptr %15, align 8, !tbaa !12
  %16 = shl i32 %2, 1
  %17 = getelementptr inbounds i8, ptr %9, i64 24
  store i32 %16, ptr %17, align 8, !tbaa !13
  %18 = mul i32 %2, 3
  %19 = zext i32 %18 to i64
  %20 = shl nuw nsw i64 %19, 3
  %21 = tail call noalias ptr @malloc(i64 noundef %20) #7
  store ptr %21, ptr %9, align 8, !tbaa !14
  %22 = tail call noalias ptr @malloc(i64 noundef %20) #7
  %23 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %22, ptr %23, align 8, !tbaa !15
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %0, i64 %20, i1 false)
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %1, i64 %20, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %24 = getelementptr inbounds i8, ptr %4, i64 8
  %25 = getelementptr inbounds i8, ptr %5, i64 8
  %26 = getelementptr inbounds i8, ptr %4, i64 16
  %27 = getelementptr inbounds i8, ptr %5, i64 16
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %indvars.iv = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next, %.preheader ]
  %28 = load ptr, ptr %23, align 8, !tbaa !15
  %29 = trunc nuw i64 %indvars.iv to i32
  %30 = mul i32 %29, 3
  %31 = load ptr, ptr %9, align 8, !tbaa !14
  %32 = zext i32 %30 to i64
  %33 = getelementptr inbounds { float, float }, ptr %28, i64 %32
  %34 = load <2 x float>, ptr %33, align 4
  store <2 x float> %34, ptr %4, align 16
  %35 = getelementptr inbounds { float, float }, ptr %31, i64 %32
  %36 = load <2 x float>, ptr %35, align 4
  store <2 x float> %36, ptr %5, align 16
  %37 = add i32 %30, 1
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds { float, float }, ptr %28, i64 %38
  %40 = load <2 x float>, ptr %39, align 4
  store <2 x float> %40, ptr %24, align 8
  %41 = getelementptr inbounds { float, float }, ptr %31, i64 %38
  %42 = load <2 x float>, ptr %41, align 4
  store <2 x float> %42, ptr %25, align 8
  %43 = add i32 %30, 2
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds { float, float }, ptr %28, i64 %44
  %46 = load <2 x float>, ptr %45, align 4
  store <2 x float> %46, ptr %26, align 16
  %47 = getelementptr inbounds { float, float }, ptr %31, i64 %44
  %48 = load <2 x float>, ptr %47, align 4
  store <2 x float> %48, ptr %27, align 16
  %49 = call ptr @iirfiltsos_cccf_create(ptr noundef nonnull %5, ptr noundef nonnull %4)
  %50 = load ptr, ptr %15, align 8, !tbaa !12
  %51 = getelementptr inbounds ptr, ptr %50, i64 %indvars.iv
  store ptr %49, ptr %51, align 8, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %52 = load i32, ptr %11, align 8, !tbaa !11
  %53 = zext i32 %52 to i64
  %54 = icmp ult i64 %indvars.iv.next, %53
  br i1 %54, label %.preheader, label %._crit_edge, !llvm.loop !17

._crit_edge:                                      ; preds = %.preheader
  %55 = call i32 @iirfilt_cccf_set_scale(ptr noundef nonnull %9, <2 x float> noundef <float 1.000000e+00, float 0.000000e+00>)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %56

56:                                               ; preds = %._crit_edge, %7
  %.038 = phi ptr [ %8, %7 ], [ %9, %._crit_edge ]
  ret ptr %.038
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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 nounwind willreturn memory(argmem: readwrite) }
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 36}
!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 64}
!12 = !{!6, !7, i64 56}
!13 = !{!6, !10, i64 24}
!14 = !{!6, !7, i64 0}
!15 = !{!6, !7, i64 8}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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