; LLVM IR from jgaeddert/liquid-dsp :: examples (resamp_crcf_rate_match_example)

; 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"

@__const.main.filename = external hidden unnamed_addr constant [33 x i8], align 16
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [52 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca [33 x i8], align 16
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca [200 x i8], align 16
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store float 0x3FF9E377A0000000, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 400, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 256, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store float 0x3FB99999A0000000, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 33, ptr %10) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main.filename, i64 33, i1 false)
  %24 = load i32, ptr %8, align 4, !tbaa !5
  %25 = mul i32 2, %24
  %26 = zext i32 %25 to i64
  %27 = call ptr @llvm.stacksave.p0()
  store ptr %27, ptr %11, align 8
  %28 = alloca { float, float }, i64 %26, align 16
  store i64 %26, ptr %12, align 8
  %29 = load i32, ptr %8, align 4, !tbaa !5
  %30 = mul i32 2, %29
  %31 = zext i32 %30 to i64
  %32 = alloca { float, float }, i64 %31, align 16
  store i64 %31, ptr %13, align 8
  %33 = load i32, ptr %8, align 4, !tbaa !5
  %34 = mul i32 2, %33
  %35 = zext i32 %34 to i64
  %36 = alloca { float, float }, i64 %35, align 16
  store i64 %35, ptr %14, align 8
  %37 = load i32, ptr %8, align 4, !tbaa !5
  %38 = zext i32 %37 to i64
  %39 = mul i64 %38, 8
  call void @llvm.memset.p0.i64(ptr align 16 %28, i8 0, i64 %39, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %40 = load float, ptr %6, align 4, !tbaa !11
  %41 = call ptr @resamp_crcf_create_default(float noundef %40)
  store ptr %41, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %42 = call ptr @resamp_crcf_create_default(float noundef 1.000000e+00)
  store ptr %42, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store float 0.000000e+00, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store float 1.000000e+00, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 200, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %43 = getelementptr inbounds [33 x i8], ptr %10, i64 0, i64 0
  %44 = call noalias ptr @fopen(ptr noundef %43, ptr noundef @.str)
  store ptr %44, ptr %21, align 8, !tbaa !9
  %45 = load ptr, ptr %21, align 8, !tbaa !9
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.1) #8
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef @.str.8)
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %97, %2
  %49 = load i32, ptr %17, align 4, !tbaa !5
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = icmp ult i32 %49, %50
  br i1 %51, label %52, label %100

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !5
  %53 = load ptr, ptr %15, align 8, !tbaa !9
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = call i32 @resamp_crcf_execute_block(ptr noundef %53, ptr noundef %28, i32 noundef %54, ptr noundef %32, ptr noundef %22)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 0, ptr %23, align 4, !tbaa !5
  %56 = load ptr, ptr %16, align 8, !tbaa !9
  %57 = load i32, ptr %22, align 4, !tbaa !5
  %58 = call i32 @resamp_crcf_execute_block(ptr noundef %56, ptr noundef %32, i32 noundef %57, ptr noundef %36, ptr noundef %23)
  %59 = load float, ptr %9, align 4, !tbaa !11
  %60 = fsub float 1.000000e+00, %59
  %61 = load float, ptr %18, align 4, !tbaa !11
  %62 = load float, ptr %9, align 4, !tbaa !11
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = uitofp i32 %63 to float
  %65 = load i32, ptr %23, align 4, !tbaa !5
  %66 = uitofp i32 %65 to float
  %67 = fdiv float %64, %66
  %68 = call float @logf(float noundef %67) #8
  %69 = fmul float %62, %68
  %70 = call float @llvm.fmuladd.f32(float %60, float %61, float %69)
  store float %70, ptr %18, align 4, !tbaa !11
  %71 = load ptr, ptr %16, align 8, !tbaa !9
  %72 = load float, ptr %9, align 4, !tbaa !11
  %73 = load float, ptr %18, align 4, !tbaa !11
  %74 = fmul float %72, %73
  %75 = call float @expf(float noundef %74) #8, !tbaa !5
  %76 = call i32 @resamp_crcf_adjust_rate(ptr noundef %71, float noundef %75)
  %77 = load ptr, ptr %16, align 8, !tbaa !9
  %78 = call float @resamp_crcf_get_rate(ptr noundef %77)
  store float %78, ptr %19, align 4, !tbaa !11
  %79 = getelementptr inbounds [200 x i8], ptr %20, i64 0, i64 0
  %80 = load i32, ptr %8, align 4, !tbaa !5
  %81 = load i32, ptr %22, align 4, !tbaa !5
  %82 = load i32, ptr %23, align 4, !tbaa !5
  %83 = load float, ptr %6, align 4, !tbaa !11
  %84 = fpext float %83 to double
  %85 = load float, ptr %19, align 4, !tbaa !11
  %86 = fpext float %85 to double
  %87 = load float, ptr %6, align 4, !tbaa !11
  %88 = load float, ptr %19, align 4, !tbaa !11
  %89 = fmul float %87, %88
  %90 = fpext float %89 to double
  %91 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %79, ptr noundef @.str.9, i32 noundef %80, i32 noundef %81, i32 noundef %82, double noundef %84, double noundef %86, double noundef %90) #8
  %92 = load ptr, ptr %21, align 8, !tbaa !9
  %93 = getelementptr inbounds [200 x i8], ptr %20, i64 0, i64 0
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef @.str.10, ptr noundef %93) #8
  %95 = getelementptr inbounds [200 x i8], ptr %20, i64 0, i64 0
  %96 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %95)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %97

97:                                               ; preds = %52
  %98 = load i32, ptr %17, align 4, !tbaa !5
  %99 = add i32 %98, 1
  store i32 %99, ptr %17, align 4, !tbaa !5
  br label %48, !llvm.loop !13

100:                                              ; preds = %48
  %101 = load float, ptr %6, align 4, !tbaa !11
  %102 = fpext float %101 to double
  %103 = load float, ptr %6, align 4, !tbaa !11
  %104 = load float, ptr %19, align 4, !tbaa !11
  %105 = fmul float %103, %104
  %106 = fpext float %105 to double
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %102, double noundef %106)
  %108 = load ptr, ptr %21, align 8, !tbaa !9
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.12) #8
  %110 = load ptr, ptr %21, align 8, !tbaa !9
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef @.str.13) #8
  %112 = load ptr, ptr %15, align 8, !tbaa !9
  %113 = call i32 @resamp_crcf_destroy(ptr noundef %112)
  %114 = load ptr, ptr %16, align 8, !tbaa !9
  %115 = call i32 @resamp_crcf_destroy(ptr noundef %114)
  store i32 0, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 200, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  %116 = load ptr, ptr %11, align 8
  call void @llvm.stackrestore.p0(ptr %116)
  call void @llvm.lifetime.end.p0(i64 33, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %117 = load i32, ptr %3, align 4
  ret i32 %117
}

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

; 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) #2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

declare ptr @resamp_crcf_create_default(float noundef) #5

declare noalias ptr @fopen(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #6

declare i32 @printf(ptr noundef, ...) #5

declare i32 @resamp_crcf_execute_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #5

; Function Attrs: nounwind
declare float @logf(float noundef) #6

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

declare i32 @resamp_crcf_adjust_rate(ptr noundef, float noundef) #5

; Function Attrs: nounwind
declare float @expf(float noundef) #6

declare float @resamp_crcf_get_rate(ptr noundef) #5

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #6

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

declare i32 @resamp_crcf_destroy(ptr noundef) #5

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "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 "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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }

!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, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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"

@__const.main.filename = external hidden unnamed_addr constant [33 x i8], align 16
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [52 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca [200 x i8], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [512 x { float, float }], align 16
  %7 = alloca [512 x { float, float }], align 16
  %8 = alloca [512 x { float, float }], align 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(2048) %6, i8 0, i64 2048, i1 false)
  %9 = tail call ptr @resamp_crcf_create_default(float noundef 0x3FF9E377A0000000) #7
  %10 = tail call ptr @resamp_crcf_create_default(float noundef 1.000000e+00) #7
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %3) #7
  %11 = tail call noalias ptr @fopen(ptr noundef nonnull @__const.main.filename, ptr noundef nonnull @.str)
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.1) #7
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8)
  br label %14

14:                                               ; preds = %2, %14
  %.03437 = phi float [ 0.000000e+00, %2 ], [ %23, %14 ]
  %.03536 = phi i32 [ 0, %2 ], [ %36, %14 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  %15 = call i32 @resamp_crcf_execute_block(ptr noundef %9, ptr noundef nonnull %6, i32 noundef 256, ptr noundef nonnull %7, ptr noundef nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = call i32 @resamp_crcf_execute_block(ptr noundef %10, ptr noundef nonnull %7, i32 noundef %16, ptr noundef nonnull %8, ptr noundef nonnull %5) #7
  %18 = load i32, ptr %5, align 4, !tbaa !5
  %19 = uitofp i32 %18 to float
  %20 = fdiv float 2.560000e+02, %19
  %21 = call float @logf(float noundef %20) #7
  %22 = fmul float %21, 0x3FB99999A0000000
  %23 = call float @llvm.fmuladd.f32(float %.03437, float 0x3FECCCCCC0000000, float %22)
  %24 = fmul float %23, 0x3FB99999A0000000
  %25 = call float @expf(float noundef %24) #7, !tbaa !5
  %26 = call i32 @resamp_crcf_adjust_rate(ptr noundef %10, float noundef %25) #7
  %27 = call float @resamp_crcf_get_rate(ptr noundef %10) #7
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = fpext float %27 to double
  %31 = fmul float %27, 0x3FF9E377A0000000
  %32 = fpext float %31 to double
  %33 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef 256, i32 noundef %28, i32 noundef %29, double noundef 0x3FF9E377A0000000, double noundef %30, double noundef %32) #7
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.10, ptr noundef nonnull %3) #7
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %36 = add nuw nsw i32 %.03536, 1
  %exitcond.not = icmp eq i32 %36, 400
  br i1 %exitcond.not, label %37, label %14, !llvm.loop !9

37:                                               ; preds = %14
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, double noundef 0x3FF9E377A0000000, double noundef %32)
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.12) #7
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.13) #7
  %41 = call i32 @resamp_crcf_destroy(ptr noundef %9) #7
  %42 = call i32 @resamp_crcf_destroy(ptr noundef %10) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %3) #7
  ret i32 0
}

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

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

declare ptr @resamp_crcf_create_default(float noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

declare i32 @resamp_crcf_execute_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @logf(float noundef) local_unnamed_addr #5

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

declare i32 @resamp_crcf_adjust_rate(ptr noundef, float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @expf(float noundef) local_unnamed_addr #5

declare float @resamp_crcf_get_rate(ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

declare i32 @resamp_crcf_destroy(ptr noundef) local_unnamed_addr #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 = { nofree nounwind "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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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