; LLVM IR from lichen-community-systems/signaletic :: libsignaletic/src (libsignaletic)

; 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.sig_dsp_ClockDetector = type { %struct.sig_dsp_Signal, %struct.sig_dsp_ClockDetector_Inputs, %struct.sig_dsp_ClockDetector_Parameters, %struct.sig_dsp_ClockDetector_Outputs, float, i8, i8, i32, float, i32 }
%struct.sig_dsp_Signal = type { ptr, ptr }
%struct.sig_dsp_ClockDetector_Inputs = type { ptr }
%struct.sig_dsp_ClockDetector_Parameters = type { float }
%struct.sig_dsp_ClockDetector_Outputs = type { ptr, ptr }
%struct.sig_AudioSettings = type { float, i64, i64 }

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

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

; Function Attrs: nounwind uwtable
define dso_local void @sig_dsp_ClockDetector_generate(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %15, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %16, i32 0, i32 1
  %18 = getelementptr inbounds %struct.sig_dsp_ClockDetector_Inputs, ptr %17, i32 0, i32 0
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  store ptr %19, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %20, i32 0, i32 4
  %22 = load float, ptr %21, align 8, !tbaa !18
  store float %22, ptr %5, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %23, i32 0, i32 8
  %25 = load float, ptr %24, align 4, !tbaa !20
  store float %25, ptr %6, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %26, i32 0, i32 5
  %28 = load i8, ptr %27, align 4, !tbaa !21, !range !22, !noundef !23
  %29 = trunc i8 %28 to i1
  %30 = zext i1 %29 to i8
  store i8 %30, ptr %7, align 1, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %31, i32 0, i32 6
  %33 = load i8, ptr %32, align 1, !tbaa !25
  %34 = zext i8 %33 to i32
  store i32 %34, ptr %8, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %35, i32 0, i32 7
  %37 = load i32, ptr %36, align 8, !tbaa !27
  store i32 %37, ptr %9, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %38, i32 0, i32 0
  %40 = getelementptr inbounds %struct.sig_dsp_Signal, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !28
  %42 = getelementptr inbounds %struct.sig_AudioSettings, ptr %41, i32 0, i32 0
  %43 = load float, ptr %42, align 8, !tbaa !29
  store float %43, ptr %10, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %44, i32 0, i32 2
  %46 = getelementptr inbounds %struct.sig_dsp_ClockDetector_Parameters, ptr %45, i32 0, i32 0
  %47 = load float, ptr %46, align 8, !tbaa !32
  store float %47, ptr %11, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %48, i32 0, i32 9
  %50 = load i32, ptr %49, align 8, !tbaa !33
  store i32 %50, ptr %12, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  store i64 0, ptr %13, align 8, !tbaa !34
  br label %51

51:                                               ; preds = %117, %1
  %52 = load i64, ptr %13, align 8, !tbaa !34
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds %struct.sig_dsp_Signal, ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !28
  %57 = getelementptr inbounds %struct.sig_AudioSettings, ptr %56, i32 0, i32 2
  %58 = load i64, ptr %57, align 8, !tbaa !35
  %59 = icmp ult i64 %52, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %120

61:                                               ; preds = %51
  %62 = load i32, ptr %9, align 4, !tbaa !26
  %63 = add i32 %62, 1
  store i32 %63, ptr %9, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = load i64, ptr %13, align 8, !tbaa !34
  %66 = getelementptr inbounds float, ptr %64, i64 %65
  %67 = load float, ptr %66, align 4, !tbaa !19
  store float %67, ptr %14, align 4, !tbaa !19
  %68 = load float, ptr %14, align 4, !tbaa !19
  %69 = fcmp ogt float %68, 0.000000e+00
  br i1 %69, label %70, label %75

70:                                               ; preds = %61
  %71 = load float, ptr %5, align 4, !tbaa !19
  %72 = load float, ptr %11, align 4, !tbaa !19
  %73 = fcmp olt float %71, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %70
  store i8 1, ptr %7, align 1, !tbaa !24
  br label %81

75:                                               ; preds = %70, %61
  %76 = load float, ptr %14, align 4, !tbaa !19
  %77 = load float, ptr %5, align 4, !tbaa !19
  %78 = fcmp olt float %76, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %75
  store i8 0, ptr %7, align 1, !tbaa !24
  br label %80

80:                                               ; preds = %79, %75
  br label %81

81:                                               ; preds = %80, %74
  %82 = load i8, ptr %7, align 1, !tbaa !24, !range !22, !noundef !23
  %83 = trunc i8 %82 to i1
  br i1 %83, label %84, label %100

84:                                               ; preds = %81
  %85 = load float, ptr %14, align 4, !tbaa !19
  %86 = load float, ptr %11, align 4, !tbaa !19
  %87 = fcmp oge float %85, %86
  br i1 %87, label %88, label %100

88:                                               ; preds = %84
  %89 = load i32, ptr %8, align 4, !tbaa !26
  %90 = add i32 %89, 1
  store i32 %90, ptr %8, align 4, !tbaa !26
  %91 = load i32, ptr %8, align 4, !tbaa !26
  %92 = icmp ugt i32 %91, 1
  br i1 %92, label %93, label %98

93:                                               ; preds = %88
  %94 = load float, ptr %10, align 4, !tbaa !19
  %95 = load i32, ptr %9, align 4, !tbaa !26
  %96 = load float, ptr %6, align 4, !tbaa !19
  %97 = call float @sig_dsp_ClockDetector_calcClockFreq(float noundef %94, i32 noundef %95, float noundef %96)
  store float %97, ptr %6, align 4, !tbaa !19
  store i32 1, ptr %8, align 4, !tbaa !26
  br label %98

98:                                               ; preds = %93, %88
  %99 = load i32, ptr %9, align 4, !tbaa !26
  store i32 %99, ptr %12, align 4, !tbaa !26
  store i32 0, ptr %9, align 4, !tbaa !26
  store i8 0, ptr %7, align 1, !tbaa !24
  br label %100

100:                                              ; preds = %98, %84, %81
  %101 = load float, ptr %6, align 4, !tbaa !19
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %102, i32 0, i32 3
  %104 = getelementptr inbounds %struct.sig_dsp_ClockDetector_Outputs, ptr %103, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8, !tbaa !36
  %106 = load i64, ptr %13, align 8, !tbaa !34
  %107 = getelementptr inbounds float, ptr %105, i64 %106
  store float %101, ptr %107, align 4, !tbaa !19
  %108 = load float, ptr %6, align 4, !tbaa !19
  %109 = fmul float %108, 6.000000e+01
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %110, i32 0, i32 3
  %112 = getelementptr inbounds %struct.sig_dsp_ClockDetector_Outputs, ptr %111, i32 0, i32 1
  %113 = load ptr, ptr %112, align 8, !tbaa !37
  %114 = load i64, ptr %13, align 8, !tbaa !34
  %115 = getelementptr inbounds float, ptr %113, i64 %114
  store float %109, ptr %115, align 4, !tbaa !19
  %116 = load float, ptr %14, align 4, !tbaa !19
  store float %116, ptr %5, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %117

117:                                              ; preds = %100
  %118 = load i64, ptr %13, align 8, !tbaa !34
  %119 = add i64 %118, 1
  store i64 %119, ptr %13, align 8, !tbaa !34
  br label %51, !llvm.loop !38

120:                                              ; preds = %60
  %121 = load float, ptr %5, align 4, !tbaa !19
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %122, i32 0, i32 4
  store float %121, ptr %123, align 8, !tbaa !18
  %124 = load float, ptr %6, align 4, !tbaa !19
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %125, i32 0, i32 8
  store float %124, ptr %126, align 4, !tbaa !20
  %127 = load i8, ptr %7, align 1, !tbaa !24, !range !22, !noundef !23
  %128 = trunc i8 %127 to i1
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %129, i32 0, i32 5
  %131 = zext i1 %128 to i8
  store i8 %131, ptr %130, align 4, !tbaa !21
  %132 = load i32, ptr %8, align 4, !tbaa !26
  %133 = trunc i32 %132 to i8
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %134, i32 0, i32 6
  store i8 %133, ptr %135, align 1, !tbaa !25
  %136 = load i32, ptr %9, align 4, !tbaa !26
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %137, i32 0, i32 7
  store i32 %136, ptr %138, align 8, !tbaa !27
  %139 = load i32, ptr %12, align 4, !tbaa !26
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.sig_dsp_ClockDetector, ptr %140, i32 0, i32 9
  store i32 %139, ptr %141, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @sig_dsp_ClockDetector_calcClockFreq(float noundef, i32 noundef, float noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint 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 #3 = { 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, !6, i64 16}
!10 = !{!"sig_dsp_ClockDetector", !11, i64 0, !12, i64 16, !13, i64 24, !15, i64 32, !14, i64 48, !16, i64 52, !7, i64 53, !17, i64 56, !14, i64 60, !17, i64 64}
!11 = !{!"sig_dsp_Signal", !6, i64 0, !6, i64 8}
!12 = !{!"sig_dsp_ClockDetector_Inputs", !6, i64 0}
!13 = !{!"sig_dsp_ClockDetector_Parameters", !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!"sig_dsp_ClockDetector_Outputs", !6, i64 0, !6, i64 8}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!10, !14, i64 48}
!19 = !{!14, !14, i64 0}
!20 = !{!10, !14, i64 60}
!21 = !{!10, !16, i64 52}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!16, !16, i64 0}
!25 = !{!10, !7, i64 53}
!26 = !{!17, !17, i64 0}
!27 = !{!10, !17, i64 56}
!28 = !{!10, !6, i64 0}
!29 = !{!30, !14, i64 0}
!30 = !{!"sig_AudioSettings", !14, i64 0, !31, i64 8, !31, i64 16}
!31 = !{!"long", !7, i64 0}
!32 = !{!10, !14, i64 24}
!33 = !{!10, !17, i64 64}
!34 = !{!31, !31, i64 0}
!35 = !{!30, !31, i64 16}
!36 = !{!10, !6, i64 32}
!37 = !{!10, !6, i64 40}
!38 = distinct !{!38, !39}
!39 = !{!"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"

; Function Attrs: nounwind uwtable
define dso_local void @sig_dsp_ClockDetector_generate(ptr nocapture noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 16
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 48
  %5 = load float, ptr %4, align 8, !tbaa !17
  %6 = getelementptr inbounds i8, ptr %0, i64 60
  %7 = load float, ptr %6, align 4, !tbaa !18
  %8 = getelementptr inbounds i8, ptr %0, i64 52
  %9 = load i8, ptr %8, align 4, !tbaa !19, !range !20, !noundef !21
  %10 = getelementptr inbounds i8, ptr %0, i64 53
  %11 = load i8, ptr %10, align 1, !tbaa !22
  %12 = getelementptr inbounds i8, ptr %0, i64 56
  %13 = load i32, ptr %12, align 8, !tbaa !23
  %14 = load ptr, ptr %0, align 8, !tbaa !24
  %15 = load float, ptr %14, align 8, !tbaa !25
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %17 = load float, ptr %16, align 8, !tbaa !28
  %18 = getelementptr inbounds i8, ptr %0, i64 64
  %19 = load i32, ptr %18, align 8, !tbaa !29
  %20 = getelementptr inbounds i8, ptr %14, i64 16
  %21 = load i64, ptr %20, align 8, !tbaa !30
  %.not79 = icmp eq i64 %21, 0
  br i1 %.not79, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %22 = zext i8 %11 to i32
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  %24 = getelementptr inbounds i8, ptr %0, i64 40
  br label %27

._crit_edge.loopexit:                             ; preds = %.thread
  %25 = trunc nuw i32 %.259 to i8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %1
  %.057.lcssa = phi i8 [ %11, %1 ], [ %25, %._crit_edge.loopexit ]
  %.055.lcssa = phi i32 [ %13, %1 ], [ %.156, %._crit_edge.loopexit ]
  %.052.lcssa = phi i8 [ %9, %1 ], [ %.254, %._crit_edge.loopexit ]
  %.050.lcssa = phi float [ %7, %1 ], [ %.2, %._crit_edge.loopexit ]
  %.049.lcssa = phi i32 [ %19, %1 ], [ %.1, %._crit_edge.loopexit ]
  %.0.lcssa = phi float [ %5, %1 ], [ %31, %._crit_edge.loopexit ]
  store float %.0.lcssa, ptr %4, align 8, !tbaa !17
  store float %.050.lcssa, ptr %6, align 4, !tbaa !18
  %26 = and i8 %.052.lcssa, 1
  store i8 %26, ptr %8, align 4, !tbaa !19
  store i8 %.057.lcssa, ptr %10, align 1, !tbaa !22
  store i32 %.055.lcssa, ptr %12, align 8, !tbaa !23
  store i32 %.049.lcssa, ptr %18, align 8, !tbaa !29
  ret void

27:                                               ; preds = %.lr.ph, %.thread
  %28 = phi ptr [ %14, %.lr.ph ], [ %42, %.thread ]
  %.073 = phi float [ %5, %.lr.ph ], [ %31, %.thread ]
  %.04872 = phi i64 [ 0, %.lr.ph ], [ %48, %.thread ]
  %.04971 = phi i32 [ %19, %.lr.ph ], [ %.1, %.thread ]
  %.05070 = phi float [ %7, %.lr.ph ], [ %.2, %.thread ]
  %.05269 = phi i8 [ %9, %.lr.ph ], [ %.254, %.thread ]
  %.05568 = phi i32 [ %13, %.lr.ph ], [ %.156, %.thread ]
  %.05767 = phi i32 [ %22, %.lr.ph ], [ %.259, %.thread ]
  %29 = add i32 %.05568, 1
  %30 = getelementptr inbounds float, ptr %3, i64 %.04872
  %31 = load float, ptr %30, align 4, !tbaa !31
  %32 = fcmp ogt float %31, 0.000000e+00
  %33 = fcmp olt float %.073, %17
  %or.cond = select i1 %32, i1 %33, i1 false
  br i1 %or.cond, label %36, label %34

34:                                               ; preds = %27
  %35 = fcmp olt float %31, %.073
  br i1 %35, label %.thread, label %36

36:                                               ; preds = %27, %34
  %.153 = phi i8 [ %.05269, %34 ], [ 1, %27 ]
  %37 = trunc nuw i8 %.153 to i1
  %38 = fcmp oge float %31, %17
  %or.cond62.not = select i1 %37, i1 %38, i1 false
  br i1 %or.cond62.not, label %39, label %.thread

39:                                               ; preds = %36
  %.not = icmp eq i32 %.05767, 0
  br i1 %.not, label %.thread, label %40

40:                                               ; preds = %39
  %41 = tail call float @sig_dsp_ClockDetector_calcClockFreq(float noundef %15, i32 noundef %29, float noundef %.05070)
  %.pre = load ptr, ptr %0, align 8, !tbaa !24
  br label %.thread

.thread:                                          ; preds = %34, %39, %40, %36
  %42 = phi ptr [ %28, %36 ], [ %.pre, %40 ], [ %28, %39 ], [ %28, %34 ]
  %.259 = phi i32 [ %.05767, %36 ], [ 1, %40 ], [ 1, %39 ], [ %.05767, %34 ]
  %.156 = phi i32 [ %29, %36 ], [ 0, %40 ], [ 0, %39 ], [ %29, %34 ]
  %.254 = phi i8 [ %.153, %36 ], [ 0, %40 ], [ 0, %39 ], [ 0, %34 ]
  %.2 = phi float [ %.05070, %36 ], [ %41, %40 ], [ %.05070, %39 ], [ %.05070, %34 ]
  %.1 = phi i32 [ %.04971, %36 ], [ %29, %40 ], [ %29, %39 ], [ %.04971, %34 ]
  %43 = load ptr, ptr %23, align 8, !tbaa !32
  %44 = getelementptr inbounds float, ptr %43, i64 %.04872
  store float %.2, ptr %44, align 4, !tbaa !31
  %45 = fmul float %.2, 6.000000e+01
  %46 = load ptr, ptr %24, align 8, !tbaa !33
  %47 = getelementptr inbounds float, ptr %46, i64 %.04872
  store float %45, ptr %47, align 4, !tbaa !31
  %48 = add nuw i64 %.04872, 1
  %49 = getelementptr inbounds i8, ptr %42, i64 16
  %50 = load i64, ptr %49, align 8, !tbaa !30
  %51 = icmp ult i64 %48, %50
  br i1 %51, label %27, label %._crit_edge.loopexit, !llvm.loop !34
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @sig_dsp_ClockDetector_calcClockFreq(float noundef, i32 noundef, float noundef) local_unnamed_addr #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 = { inlinehint 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" }

!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, !8, i64 16}
!6 = !{!"sig_dsp_ClockDetector", !7, i64 0, !11, i64 16, !12, i64 24, !14, i64 32, !13, i64 48, !15, i64 52, !9, i64 53, !16, i64 56, !13, i64 60, !16, i64 64}
!7 = !{!"sig_dsp_Signal", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"sig_dsp_ClockDetector_Inputs", !8, i64 0}
!12 = !{!"sig_dsp_ClockDetector_Parameters", !13, i64 0}
!13 = !{!"float", !9, i64 0}
!14 = !{!"sig_dsp_ClockDetector_Outputs", !8, i64 0, !8, i64 8}
!15 = !{!"_Bool", !9, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{!6, !13, i64 48}
!18 = !{!6, !13, i64 60}
!19 = !{!6, !15, i64 52}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!6, !9, i64 53}
!23 = !{!6, !16, i64 56}
!24 = !{!6, !8, i64 0}
!25 = !{!26, !13, i64 0}
!26 = !{!"sig_AudioSettings", !13, i64 0, !27, i64 8, !27, i64 16}
!27 = !{!"long", !9, i64 0}
!28 = !{!6, !13, i64 24}
!29 = !{!6, !16, i64 64}
!30 = !{!26, !27, i64 16}
!31 = !{!13, !13, i64 0}
!32 = !{!6, !8, i64 32}
!33 = !{!6, !8, i64 40}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


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