; LLVM IR from jgaeddert/liquid-dsp :: src/modem/bench (freqmod_benchmark)

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

; Function Attrs: nounwind uwtable
define dso_local void @benchmark_freqmod(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca ptr, align 8
  %9 = alloca [20 x float], align 16
  %10 = alloca [20 x { float, float }], align 16
  %11 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store float 0x3FA99999A0000000, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %12 = load float, ptr %7, align 4, !tbaa !9
  %13 = call ptr @freqmod_create(float noundef %12)
  store ptr %13, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %14

14:                                               ; preds = %44, %3
  %15 = load i64, ptr %11, align 8, !tbaa !11
  %16 = icmp ult i64 %15, 20
  br i1 %16, label %17, label %47

17:                                               ; preds = %14
  %18 = load i64, ptr %11, align 8, !tbaa !11
  %19 = uitofp i64 %18 to double
  %20 = fmul double 0x401921FB54442D18, %19
  %21 = fdiv double %20, 2.000000e+01
  %22 = fadd double %21, 0.000000e+00
  %23 = fptrunc double %22 to float
  %24 = call float @cosf(float noundef %23) #5
  %25 = load i64, ptr %11, align 8, !tbaa !11
  %26 = uitofp i64 %25 to double
  %27 = fmul double 0x402921FB54442D18, %26
  %28 = fdiv double %27, 2.000000e+01
  %29 = fadd double %28, 0x3FD99999A0000000
  %30 = fptrunc double %29 to float
  %31 = call float @cosf(float noundef %30) #5
  %32 = fmul float 0x3FC99999A0000000, %31
  %33 = call float @llvm.fmuladd.f32(float 0x3FD3333340000000, float %24, float %32)
  %34 = load i64, ptr %11, align 8, !tbaa !11
  %35 = uitofp i64 %34 to double
  %36 = fmul double 0x4032D97C7F3321D2, %35
  %37 = fdiv double %36, 2.000000e+01
  %38 = fadd double %37, 0x3FFB333340000000
  %39 = fptrunc double %38 to float
  %40 = call float @cosf(float noundef %39) #5
  %41 = call float @llvm.fmuladd.f32(float 0x3FD99999A0000000, float %40, float %33)
  %42 = load i64, ptr %11, align 8, !tbaa !11
  %43 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 %42
  store float %41, ptr %43, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %17
  %45 = load i64, ptr %11, align 8, !tbaa !11
  %46 = add i64 %45, 1
  store i64 %46, ptr %11, align 8, !tbaa !11
  br label %14, !llvm.loop !13

47:                                               ; preds = %14
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = call i32 @getrusage(i32 noundef 0, ptr noundef %48) #5
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %50

50:                                               ; preds = %156, %47
  %51 = load i64, ptr %11, align 8, !tbaa !11
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = load i64, ptr %52, align 8, !tbaa !11
  %54 = icmp ult i64 %51, %53
  br i1 %54, label %55, label %159

55:                                               ; preds = %50
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 0
  %58 = load float, ptr %57, align 16, !tbaa !9
  %59 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 0
  %60 = call i32 @freqmod_modulate(ptr noundef %56, float noundef %58, ptr noundef %59)
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 1
  %63 = load float, ptr %62, align 4, !tbaa !9
  %64 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 1
  %65 = call i32 @freqmod_modulate(ptr noundef %61, float noundef %63, ptr noundef %64)
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 2
  %68 = load float, ptr %67, align 8, !tbaa !9
  %69 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 2
  %70 = call i32 @freqmod_modulate(ptr noundef %66, float noundef %68, ptr noundef %69)
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 3
  %73 = load float, ptr %72, align 4, !tbaa !9
  %74 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 3
  %75 = call i32 @freqmod_modulate(ptr noundef %71, float noundef %73, ptr noundef %74)
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 4
  %78 = load float, ptr %77, align 16, !tbaa !9
  %79 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 4
  %80 = call i32 @freqmod_modulate(ptr noundef %76, float noundef %78, ptr noundef %79)
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 5
  %83 = load float, ptr %82, align 4, !tbaa !9
  %84 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 5
  %85 = call i32 @freqmod_modulate(ptr noundef %81, float noundef %83, ptr noundef %84)
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 6
  %88 = load float, ptr %87, align 8, !tbaa !9
  %89 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 6
  %90 = call i32 @freqmod_modulate(ptr noundef %86, float noundef %88, ptr noundef %89)
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 7
  %93 = load float, ptr %92, align 4, !tbaa !9
  %94 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 7
  %95 = call i32 @freqmod_modulate(ptr noundef %91, float noundef %93, ptr noundef %94)
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 8
  %98 = load float, ptr %97, align 16, !tbaa !9
  %99 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 8
  %100 = call i32 @freqmod_modulate(ptr noundef %96, float noundef %98, ptr noundef %99)
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 9
  %103 = load float, ptr %102, align 4, !tbaa !9
  %104 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 9
  %105 = call i32 @freqmod_modulate(ptr noundef %101, float noundef %103, ptr noundef %104)
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 10
  %108 = load float, ptr %107, align 8, !tbaa !9
  %109 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 10
  %110 = call i32 @freqmod_modulate(ptr noundef %106, float noundef %108, ptr noundef %109)
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 11
  %113 = load float, ptr %112, align 4, !tbaa !9
  %114 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 11
  %115 = call i32 @freqmod_modulate(ptr noundef %111, float noundef %113, ptr noundef %114)
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 12
  %118 = load float, ptr %117, align 16, !tbaa !9
  %119 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 12
  %120 = call i32 @freqmod_modulate(ptr noundef %116, float noundef %118, ptr noundef %119)
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 13
  %123 = load float, ptr %122, align 4, !tbaa !9
  %124 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 13
  %125 = call i32 @freqmod_modulate(ptr noundef %121, float noundef %123, ptr noundef %124)
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 14
  %128 = load float, ptr %127, align 8, !tbaa !9
  %129 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 14
  %130 = call i32 @freqmod_modulate(ptr noundef %126, float noundef %128, ptr noundef %129)
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 15
  %133 = load float, ptr %132, align 4, !tbaa !9
  %134 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 15
  %135 = call i32 @freqmod_modulate(ptr noundef %131, float noundef %133, ptr noundef %134)
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 16
  %138 = load float, ptr %137, align 16, !tbaa !9
  %139 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 16
  %140 = call i32 @freqmod_modulate(ptr noundef %136, float noundef %138, ptr noundef %139)
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 17
  %143 = load float, ptr %142, align 4, !tbaa !9
  %144 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 17
  %145 = call i32 @freqmod_modulate(ptr noundef %141, float noundef %143, ptr noundef %144)
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 18
  %148 = load float, ptr %147, align 8, !tbaa !9
  %149 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 18
  %150 = call i32 @freqmod_modulate(ptr noundef %146, float noundef %148, ptr noundef %149)
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 19
  %153 = load float, ptr %152, align 4, !tbaa !9
  %154 = getelementptr inbounds [20 x { float, float }], ptr %10, i64 0, i64 19
  %155 = call i32 @freqmod_modulate(ptr noundef %151, float noundef %153, ptr noundef %154)
  br label %156

156:                                              ; preds = %55
  %157 = load i64, ptr %11, align 8, !tbaa !11
  %158 = add i64 %157, 1
  store i64 %158, ptr %11, align 8, !tbaa !11
  br label %50, !llvm.loop !15

159:                                              ; preds = %50
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = call i32 @getrusage(i32 noundef 0, ptr noundef %160) #5
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = load i64, ptr %162, align 8, !tbaa !11
  %164 = mul i64 %163, 20
  store i64 %164, ptr %162, align 8, !tbaa !11
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = call i32 @freqmod_destroy(ptr noundef %165)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

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

declare ptr @freqmod_create(float noundef) #2

; Function Attrs: nounwind
declare float @cosf(float noundef) #3

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

; Function Attrs: nounwind
declare i32 @getrusage(i32 noundef, ptr noundef) #3

declare i32 @freqmod_modulate(ptr noundef, float noundef, ptr noundef) #2

declare i32 @freqmod_destroy(ptr noundef) #2

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

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 = { "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 "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 }

!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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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

; Function Attrs: nounwind uwtable
define dso_local void @benchmark_freqmod(ptr noundef %0, ptr noundef %1, ptr nocapture noundef %2) local_unnamed_addr #0 {
  %4 = alloca [20 x float], align 16
  %5 = alloca [20 x { float, float }], align 16
  %6 = tail call ptr @freqmod_create(float noundef 0x3FA99999A0000000) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %5) #6
  br label %7

7:                                                ; preds = %3, %7
  %.033 = phi i64 [ 0, %3 ], [ %28, %7 ]
  %8 = uitofp nneg i64 %.033 to double
  %9 = fmul double %8, 0x401921FB54442D18
  %10 = fdiv double %9, 2.000000e+01
  %11 = fadd double %10, 0.000000e+00
  %12 = fptrunc double %11 to float
  %13 = tail call float @cosf(float noundef %12) #6
  %14 = fmul double %8, 0x402921FB54442D18
  %15 = fdiv double %14, 2.000000e+01
  %16 = fadd double %15, 0x3FD99999A0000000
  %17 = fptrunc double %16 to float
  %18 = tail call float @cosf(float noundef %17) #6
  %19 = fmul float %18, 0x3FC99999A0000000
  %20 = tail call float @llvm.fmuladd.f32(float %13, float 0x3FD3333340000000, float %19)
  %21 = fmul double %8, 0x4032D97C7F3321D2
  %22 = fdiv double %21, 2.000000e+01
  %23 = fadd double %22, 0x3FFB333340000000
  %24 = fptrunc double %23 to float
  %25 = tail call float @cosf(float noundef %24) #6
  %26 = tail call float @llvm.fmuladd.f32(float %25, float 0x3FD99999A0000000, float %20)
  %27 = getelementptr inbounds [20 x float], ptr %4, i64 0, i64 %.033
  store float %26, ptr %27, align 4, !tbaa !5
  %28 = add nuw nsw i64 %.033, 1
  %exitcond.not = icmp eq i64 %28, 20
  br i1 %exitcond.not, label %29, label %7, !llvm.loop !9

29:                                               ; preds = %7
  %30 = tail call i32 @getrusage(i32 noundef 0, ptr noundef %0) #6
  %31 = load i64, ptr %2, align 8, !tbaa !11
  %.not = icmp eq i64 %31, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %29
  %32 = load float, ptr %4, align 16, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %4, i64 4
  %34 = load float, ptr %33, align 4
  %35 = getelementptr inbounds i8, ptr %5, i64 8
  %36 = getelementptr inbounds i8, ptr %4, i64 8
  %37 = load float, ptr %36, align 8
  %38 = getelementptr inbounds i8, ptr %5, i64 16
  %39 = getelementptr inbounds i8, ptr %4, i64 12
  %40 = load float, ptr %39, align 4
  %41 = getelementptr inbounds i8, ptr %5, i64 24
  %42 = getelementptr inbounds i8, ptr %4, i64 16
  %43 = load float, ptr %42, align 16
  %44 = getelementptr inbounds i8, ptr %5, i64 32
  %45 = getelementptr inbounds i8, ptr %4, i64 20
  %46 = load float, ptr %45, align 4
  %47 = getelementptr inbounds i8, ptr %5, i64 40
  %48 = getelementptr inbounds i8, ptr %4, i64 24
  %49 = load float, ptr %48, align 8
  %50 = getelementptr inbounds i8, ptr %5, i64 48
  %51 = getelementptr inbounds i8, ptr %4, i64 28
  %52 = load float, ptr %51, align 4
  %53 = getelementptr inbounds i8, ptr %5, i64 56
  %54 = getelementptr inbounds i8, ptr %4, i64 32
  %55 = load float, ptr %54, align 16
  %56 = getelementptr inbounds i8, ptr %5, i64 64
  %57 = getelementptr inbounds i8, ptr %4, i64 36
  %58 = load float, ptr %57, align 4
  %59 = getelementptr inbounds i8, ptr %5, i64 72
  %60 = getelementptr inbounds i8, ptr %4, i64 40
  %61 = load float, ptr %60, align 8
  %62 = getelementptr inbounds i8, ptr %5, i64 80
  %63 = getelementptr inbounds i8, ptr %4, i64 44
  %64 = load float, ptr %63, align 4
  %65 = getelementptr inbounds i8, ptr %5, i64 88
  %66 = getelementptr inbounds i8, ptr %4, i64 48
  %67 = load float, ptr %66, align 16
  %68 = getelementptr inbounds i8, ptr %5, i64 96
  %69 = getelementptr inbounds i8, ptr %4, i64 52
  %70 = load float, ptr %69, align 4
  %71 = getelementptr inbounds i8, ptr %5, i64 104
  %72 = getelementptr inbounds i8, ptr %4, i64 56
  %73 = load float, ptr %72, align 8
  %74 = getelementptr inbounds i8, ptr %5, i64 112
  %75 = getelementptr inbounds i8, ptr %4, i64 60
  %76 = load float, ptr %75, align 4
  %77 = getelementptr inbounds i8, ptr %5, i64 120
  %78 = getelementptr inbounds i8, ptr %4, i64 64
  %79 = load float, ptr %78, align 16
  %80 = getelementptr inbounds i8, ptr %5, i64 128
  %81 = getelementptr inbounds i8, ptr %4, i64 68
  %82 = load float, ptr %81, align 4
  %83 = getelementptr inbounds i8, ptr %5, i64 136
  %84 = getelementptr inbounds i8, ptr %4, i64 72
  %85 = load float, ptr %84, align 8
  %86 = getelementptr inbounds i8, ptr %5, i64 144
  %87 = getelementptr inbounds i8, ptr %4, i64 76
  %88 = load float, ptr %87, align 4
  %89 = getelementptr inbounds i8, ptr %5, i64 152
  br label %90

90:                                               ; preds = %.lr.ph, %90
  %.134 = phi i64 [ 0, %.lr.ph ], [ %111, %90 ]
  %91 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %32, ptr noundef nonnull %5) #6
  %92 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %34, ptr noundef nonnull %35) #6
  %93 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %37, ptr noundef nonnull %38) #6
  %94 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %40, ptr noundef nonnull %41) #6
  %95 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %43, ptr noundef nonnull %44) #6
  %96 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %46, ptr noundef nonnull %47) #6
  %97 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %49, ptr noundef nonnull %50) #6
  %98 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %52, ptr noundef nonnull %53) #6
  %99 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %55, ptr noundef nonnull %56) #6
  %100 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %58, ptr noundef nonnull %59) #6
  %101 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %61, ptr noundef nonnull %62) #6
  %102 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %64, ptr noundef nonnull %65) #6
  %103 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %67, ptr noundef nonnull %68) #6
  %104 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %70, ptr noundef nonnull %71) #6
  %105 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %73, ptr noundef nonnull %74) #6
  %106 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %76, ptr noundef nonnull %77) #6
  %107 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %79, ptr noundef nonnull %80) #6
  %108 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %82, ptr noundef nonnull %83) #6
  %109 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %85, ptr noundef nonnull %86) #6
  %110 = call i32 @freqmod_modulate(ptr noundef %6, float noundef %88, ptr noundef nonnull %89) #6
  %111 = add nuw i64 %.134, 1
  %112 = load i64, ptr %2, align 8, !tbaa !11
  %113 = icmp ult i64 %111, %112
  br i1 %113, label %90, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %90, %29
  %114 = call i32 @getrusage(i32 noundef 0, ptr noundef %1) #6
  %115 = load i64, ptr %2, align 8, !tbaa !11
  %116 = mul i64 %115, 20
  store i64 %116, ptr %2, align 8, !tbaa !11
  %117 = call i32 @freqmod_destroy(ptr noundef %6) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #6
  ret void
}

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

declare ptr @freqmod_create(float noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind
declare i32 @getrusage(i32 noundef, ptr noundef) local_unnamed_addr #5

declare i32 @freqmod_modulate(ptr noundef, float noundef, ptr noundef) local_unnamed_addr #2

declare i32 @freqmod_destroy(ptr noundef) local_unnamed_addr #2

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

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 = { "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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !10}


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