; 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.90 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [41 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

declare ptr @dotprod_cccf_copy(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @iirfilt_cccf_copy(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %11

9:                                                ; preds = %1
  %10 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.81, i32 noundef 438, ptr noundef @.str.90, ptr noundef @.str.3)
  store ptr %10, ptr %2, align 8
  br label %176

11:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %12 = call noalias ptr @malloc(i64 noundef 80) #6
  store ptr %12, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %13, ptr align 8 %14, i64 80, i1 false)
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %15, i32 0, i32 6
  %17 = load i32, ptr %16, align 4, !tbaa !9
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %89

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

89:                                               ; preds = %11
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %90, i32 0, i32 6
  %92 = load i32, ptr %91, align 4, !tbaa !9
  %93 = icmp eq i32 %92, 1
  br i1 %93, label %94, label %170

94:                                               ; preds = %89
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %95, i32 0, i32 10
  %97 = load i32, ptr %96, align 8, !tbaa !20
  %98 = mul i32 3, %97
  %99 = zext i32 %98 to i64
  %100 = mul i64 %99, 8
  %101 = call noalias ptr @malloc(i64 noundef %100) #6
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %102, i32 0, i32 0
  store ptr %101, ptr %103, align 8, !tbaa !15
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %104, i32 0, i32 10
  %106 = load i32, ptr %105, align 8, !tbaa !20
  %107 = mul i32 3, %106
  %108 = zext i32 %107 to i64
  %109 = mul i64 %108, 8
  %110 = call noalias ptr @malloc(i64 noundef %109) #6
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %111, i32 0, i32 1
  store ptr %110, ptr %112, align 8, !tbaa !13
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %113, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8, !tbaa !15
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %116, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8, !tbaa !15
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %119, i32 0, i32 10
  %121 = load i32, ptr %120, align 8, !tbaa !20
  %122 = mul i32 3, %121
  %123 = zext i32 %122 to i64
  %124 = mul i64 %123, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %115, ptr align 4 %118, i64 %124, i1 false)
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %125, i32 0, i32 1
  %127 = load ptr, ptr %126, align 8, !tbaa !13
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %128, i32 0, i32 1
  %130 = load ptr, ptr %129, align 8, !tbaa !13
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %131, i32 0, i32 10
  %133 = load i32, ptr %132, align 8, !tbaa !20
  %134 = mul i32 3, %133
  %135 = zext i32 %134 to i64
  %136 = mul i64 %135, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %127, ptr align 4 %130, i64 %136, i1 false)
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %137, i32 0, i32 10
  %139 = load i32, ptr %138, align 8, !tbaa !20
  %140 = zext i32 %139 to i64
  %141 = mul i64 %140, 8
  %142 = call noalias ptr @malloc(i64 noundef %141) #6
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %143, i32 0, i32 9
  store ptr %142, ptr %144, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !22
  br label %145

145:                                              ; preds = %166, %94
  %146 = load i32, ptr %5, align 4, !tbaa !22
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %147, i32 0, i32 10
  %149 = load i32, ptr %148, align 8, !tbaa !20
  %150 = icmp ult i32 %146, %149
  br i1 %150, label %151, label %169

151:                                              ; preds = %145
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %152, i32 0, i32 9
  %154 = load ptr, ptr %153, align 8, !tbaa !21
  %155 = load i32, ptr %5, align 4, !tbaa !22
  %156 = zext i32 %155 to i64
  %157 = getelementptr inbounds ptr, ptr %154, i64 %156
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = call ptr @iirfiltsos_cccf_copy(ptr noundef %158)
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.iirfilt_cccf_s, ptr %160, i32 0, i32 9
  %162 = load ptr, ptr %161, align 8, !tbaa !21
  %163 = load i32, ptr %5, align 4, !tbaa !22
  %164 = zext i32 %163 to i64
  %165 = getelementptr inbounds ptr, ptr %162, i64 %164
  store ptr %159, ptr %165, align 8, !tbaa !5
  br label %166

166:                                              ; preds = %151
  %167 = load i32, ptr %5, align 4, !tbaa !22
  %168 = add i32 %167, 1
  store i32 %168, ptr %5, align 4, !tbaa !22
  br label %145, !llvm.loop !23

169:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %172

170:                                              ; preds = %89
  %171 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.81, i32 noundef 473, ptr noundef @.str.91, ptr noundef @.str.3)
  store ptr %171, ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %175

172:                                              ; preds = %169
  br label %173

173:                                              ; preds = %172, %19
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %174, ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %175

175:                                              ; preds = %173, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  br label %176

176:                                              ; preds = %175, %9
  %177 = load ptr, ptr %2, align 8
  ret ptr %177
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @iirfiltsos_cccf_copy(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 }
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, !11, i64 36}
!10 = !{!"iirfilt_cccf_s", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !7, i64 68}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 32}
!13 = !{!10, !6, i64 8}
!14 = !{!10, !11, i64 28}
!15 = !{!10, !6, i64 0}
!16 = !{!10, !11, i64 24}
!17 = !{!10, !6, i64 16}
!18 = !{!10, !6, i64 48}
!19 = !{!10, !6, i64 40}
!20 = !{!10, !11, i64 64}
!21 = !{!10, !6, i64 56}
!22 = !{!11, !11, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; 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.90 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [41 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

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

declare ptr @dotprod_cccf_copy(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @iirfilt_cccf_copy(ptr noundef readonly %0) local_unnamed_addr #3 {
  %2 = icmp eq ptr %0, null
  br i1 %2, label %3, label %5

3:                                                ; preds = %1
  %4 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.81, i32 noundef 438, ptr noundef nonnull @.str.90, ptr noundef nonnull @.str.3) #5
  br label %.loopexit

5:                                                ; preds = %1
  %6 = tail call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #6
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 8 dereferenceable(80) %0, i64 80, i1 false)
  %7 = getelementptr inbounds i8, ptr %0, i64 36
  %8 = load i32, ptr %7, align 4, !tbaa !5
  switch i32 %8, label %63 [
    i32 0, label %9
    i32 1, label %40
  ]

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %6, i64 32
  %11 = load i32, ptr %10, align 8, !tbaa !11
  %12 = zext i32 %11 to i64
  %13 = shl nuw nsw i64 %12, 3
  %14 = tail call noalias ptr @malloc(i64 noundef %13) #6
  %15 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %14, ptr %15, align 8, !tbaa !12
  %16 = getelementptr inbounds i8, ptr %6, i64 28
  %17 = load i32, ptr %16, align 4, !tbaa !13
  %18 = zext i32 %17 to i64
  %19 = shl nuw nsw i64 %18, 3
  %20 = tail call noalias ptr @malloc(i64 noundef %19) #6
  store ptr %20, ptr %6, align 8, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %6, i64 24
  %22 = load i32, ptr %21, align 8, !tbaa !15
  %23 = zext i32 %22 to i64
  %24 = shl nuw nsw i64 %23, 3
  %25 = tail call noalias ptr @malloc(i64 noundef %24) #6
  %26 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %25, ptr %26, align 8, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !12
  tail call void @llvm.memmove.p0.p0.i64(ptr align 4 %14, ptr align 4 %28, i64 %13, i1 false)
  %29 = load ptr, ptr %0, align 8, !tbaa !14
  tail call void @llvm.memmove.p0.p0.i64(ptr align 4 %20, ptr align 4 %29, i64 %19, i1 false)
  %30 = getelementptr inbounds i8, ptr %0, i64 16
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  tail call void @llvm.memmove.p0.p0.i64(ptr align 4 %25, ptr align 4 %31, i64 %24, i1 false)
  %32 = getelementptr inbounds i8, ptr %0, i64 48
  %33 = load ptr, ptr %32, align 8, !tbaa !17
  %34 = tail call ptr @dotprod_cccf_copy(ptr noundef %33) #5
  %35 = getelementptr inbounds i8, ptr %6, i64 48
  store ptr %34, ptr %35, align 8, !tbaa !17
  %36 = getelementptr inbounds i8, ptr %0, i64 40
  %37 = load ptr, ptr %36, align 8, !tbaa !18
  %38 = tail call ptr @dotprod_cccf_copy(ptr noundef %37) #5
  %39 = getelementptr inbounds i8, ptr %6, i64 40
  store ptr %38, ptr %39, align 8, !tbaa !18
  br label %.loopexit

40:                                               ; preds = %5
  %41 = getelementptr inbounds i8, ptr %6, i64 64
  %42 = load i32, ptr %41, align 8, !tbaa !19
  %43 = mul i32 %42, 3
  %44 = zext i32 %43 to i64
  %45 = shl nuw nsw i64 %44, 3
  %46 = tail call noalias ptr @malloc(i64 noundef %45) #6
  store ptr %46, ptr %6, align 8, !tbaa !14
  %47 = tail call noalias ptr @malloc(i64 noundef %45) #6
  %48 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %47, ptr %48, align 8, !tbaa !12
  %49 = load ptr, ptr %0, align 8, !tbaa !14
  tail call void @llvm.memmove.p0.p0.i64(ptr align 4 %46, ptr align 4 %49, i64 %45, i1 false)
  %50 = getelementptr inbounds i8, ptr %0, i64 8
  %51 = load ptr, ptr %50, align 8, !tbaa !12
  tail call void @llvm.memmove.p0.p0.i64(ptr align 4 %47, ptr align 4 %51, i64 %45, i1 false)
  %52 = zext i32 %42 to i64
  %53 = shl nuw nsw i64 %52, 3
  %54 = tail call noalias ptr @malloc(i64 noundef %53) #6
  %55 = getelementptr inbounds i8, ptr %6, i64 56
  store ptr %54, ptr %55, align 8, !tbaa !20
  %.not = icmp eq i32 %42, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %40
  %56 = getelementptr inbounds i8, ptr %0, i64 56
  br label %57

57:                                               ; preds = %.lr.ph, %57
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %57 ]
  %58 = load ptr, ptr %56, align 8, !tbaa !20
  %59 = getelementptr inbounds ptr, ptr %58, i64 %indvars.iv
  %60 = load ptr, ptr %59, align 8, !tbaa !21
  %61 = tail call ptr @iirfiltsos_cccf_copy(ptr noundef %60)
  %62 = getelementptr inbounds ptr, ptr %54, i64 %indvars.iv
  store ptr %61, ptr %62, align 8, !tbaa !21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %52
  br i1 %exitcond.not, label %.loopexit, label %57, !llvm.loop !22

63:                                               ; preds = %5
  %64 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.81, i32 noundef 473, ptr noundef nonnull @.str.91, ptr noundef nonnull @.str.3) #5
  br label %.loopexit

.loopexit:                                        ; preds = %57, %40, %63, %9, %3
  %.1 = phi ptr [ %4, %3 ], [ %64, %63 ], [ %6, %9 ], [ %6, %40 ], [ %6, %57 ]
  ret ptr %.1
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @iirfiltsos_cccf_copy(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) #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 nounwind willreturn memory(argmem: readwrite) }
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 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 32}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !10, i64 28}
!14 = !{!6, !7, i64 0}
!15 = !{!6, !10, i64 24}
!16 = !{!6, !7, i64 16}
!17 = !{!6, !7, i64 48}
!18 = !{!6, !7, i64 40}
!19 = !{!6, !10, i64 64}
!20 = !{!6, !7, i64 56}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass