; LLVM IR from jgaeddert/liquid-dsp :: src/framing/src (gmskframesync)

; 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.gmskframesync_s = type { ptr, i32, i32, float, ptr, ptr, %struct.framesyncstats_s, %struct.framedatastats_s, { float, float }, float, ptr, ptr, i32, float, float, i32, i32, float, ptr, float, float, float, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i8, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32 }
%struct.framesyncstats_s = type { float, float, float, ptr, i32, i32, i32, i32, i32, i32 }
%struct.framedatastats_s = type { i32, i32, i32, 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 i32 @gmskframesync_update_symsync(ptr noundef %0, float noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store float %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.gmskframesync_s, ptr %10, i32 0, i32 10
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = load float, ptr %5, align 4, !tbaa !9
  %14 = call i32 @firpfb_rrrf_push(ptr noundef %12, float noundef %13)
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.gmskframesync_s, ptr %15, i32 0, i32 11
  %17 = load ptr, ptr %16, align 8, !tbaa !17
  %18 = load float, ptr %5, align 4, !tbaa !9
  %19 = call i32 @firpfb_rrrf_push(ptr noundef %17, float noundef %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store float 0.000000e+00, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store float 0.000000e+00, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !18
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.gmskframesync_s, ptr %20, i32 0, i32 16
  %22 = load i32, ptr %21, align 8, !tbaa !19
  %23 = icmp sle i32 %22, 0
  br i1 %23, label %24, label %125

24:                                               ; preds = %3
  store i32 1, ptr %9, align 4, !tbaa !18
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.gmskframesync_s, ptr %25, i32 0, i32 1
  %27 = load i32, ptr %26, align 8, !tbaa !20
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.gmskframesync_s, ptr %28, i32 0, i32 16
  store i32 %27, ptr %29, align 8, !tbaa !19
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.gmskframesync_s, ptr %30, i32 0, i32 10
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.gmskframesync_s, ptr %33, i32 0, i32 15
  %35 = load i32, ptr %34, align 4, !tbaa !21
  %36 = call i32 @firpfb_rrrf_execute(ptr noundef %32, i32 noundef %35, ptr noundef %7)
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.gmskframesync_s, ptr %37, i32 0, i32 11
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.gmskframesync_s, ptr %40, i32 0, i32 15
  %42 = load i32, ptr %41, align 4, !tbaa !21
  %43 = call i32 @firpfb_rrrf_execute(ptr noundef %39, i32 noundef %42, ptr noundef %8)
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.gmskframesync_s, ptr %44, i32 0, i32 13
  %46 = load float, ptr %45, align 4, !tbaa !22
  %47 = load float, ptr %7, align 4, !tbaa !9
  %48 = load float, ptr %8, align 4, !tbaa !9
  %49 = fmul float %47, %48
  %50 = fmul float -0.000000e+00, %48
  %51 = fmul float 0x3FA99999A0000000, %49
  %52 = call float @llvm.fmuladd.f32(float 0x3FEFAE1480000000, float %46, float %51)
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.gmskframesync_s, ptr %53, i32 0, i32 13
  store float %52, ptr %54, align 4, !tbaa !22
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.gmskframesync_s, ptr %55, i32 0, i32 13
  %57 = load float, ptr %56, align 4, !tbaa !22
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.gmskframesync_s, ptr %58, i32 0, i32 14
  %60 = load float, ptr %59, align 8, !tbaa !23
  %61 = fadd float %60, %57
  store float %61, ptr %59, align 8, !tbaa !23
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.gmskframesync_s, ptr %62, i32 0, i32 14
  %64 = load float, ptr %63, align 8, !tbaa !23
  %65 = call float @llvm.round.f32(float %64)
  %66 = fptosi float %65 to i32
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.gmskframesync_s, ptr %67, i32 0, i32 15
  store i32 %66, ptr %68, align 4, !tbaa !21
  br label %69

69:                                               ; preds = %74, %24
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.gmskframesync_s, ptr %70, i32 0, i32 15
  %72 = load i32, ptr %71, align 4, !tbaa !21
  %73 = icmp slt i32 %72, 0
  br i1 %73, label %74, label %94

74:                                               ; preds = %69
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.gmskframesync_s, ptr %75, i32 0, i32 12
  %77 = load i32, ptr %76, align 8, !tbaa !24
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.gmskframesync_s, ptr %78, i32 0, i32 15
  %80 = load i32, ptr %79, align 4, !tbaa !21
  %81 = add i32 %80, %77
  store i32 %81, ptr %79, align 4, !tbaa !21
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.gmskframesync_s, ptr %82, i32 0, i32 12
  %84 = load i32, ptr %83, align 8, !tbaa !24
  %85 = uitofp i32 %84 to float
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.gmskframesync_s, ptr %86, i32 0, i32 14
  %88 = load float, ptr %87, align 8, !tbaa !23
  %89 = fadd float %88, %85
  store float %89, ptr %87, align 8, !tbaa !23
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.gmskframesync_s, ptr %90, i32 0, i32 16
  %92 = load i32, ptr %91, align 8, !tbaa !19
  %93 = add nsw i32 %92, -1
  store i32 %93, ptr %91, align 8, !tbaa !19
  br label %69, !llvm.loop !25

94:                                               ; preds = %69
  br label %95

95:                                               ; preds = %104, %94
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.gmskframesync_s, ptr %96, i32 0, i32 15
  %98 = load i32, ptr %97, align 4, !tbaa !21
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.gmskframesync_s, ptr %99, i32 0, i32 12
  %101 = load i32, ptr %100, align 8, !tbaa !24
  %102 = sub i32 %101, 1
  %103 = icmp ugt i32 %98, %102
  br i1 %103, label %104, label %124

104:                                              ; preds = %95
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.gmskframesync_s, ptr %105, i32 0, i32 12
  %107 = load i32, ptr %106, align 8, !tbaa !24
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.gmskframesync_s, ptr %108, i32 0, i32 15
  %110 = load i32, ptr %109, align 4, !tbaa !21
  %111 = sub i32 %110, %107
  store i32 %111, ptr %109, align 4, !tbaa !21
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.gmskframesync_s, ptr %112, i32 0, i32 12
  %114 = load i32, ptr %113, align 8, !tbaa !24
  %115 = uitofp i32 %114 to float
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.gmskframesync_s, ptr %116, i32 0, i32 14
  %118 = load float, ptr %117, align 8, !tbaa !23
  %119 = fsub float %118, %115
  store float %119, ptr %117, align 8, !tbaa !23
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.gmskframesync_s, ptr %120, i32 0, i32 16
  %122 = load i32, ptr %121, align 8, !tbaa !19
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %121, align 8, !tbaa !19
  br label %95, !llvm.loop !27

124:                                              ; preds = %95
  br label %125

125:                                              ; preds = %124, %3
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.gmskframesync_s, ptr %126, i32 0, i32 16
  %128 = load i32, ptr %127, align 8, !tbaa !19
  %129 = add nsw i32 %128, -1
  store i32 %129, ptr %127, align 8, !tbaa !19
  %130 = load float, ptr %7, align 4, !tbaa !9
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.gmskframesync_s, ptr %131, i32 0, i32 1
  %133 = load i32, ptr %132, align 8, !tbaa !20
  %134 = uitofp i32 %133 to float
  %135 = fdiv float %130, %134
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  store float %135, ptr %136, align 4, !tbaa !9
  %137 = load i32, ptr %9, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret i32 %137
}

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

declare i32 @firpfb_rrrf_execute(ptr noundef, i32 noundef, ptr noundef) #2

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

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

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 = { "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 nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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, !6, i64 128}
!12 = !{!"gmskframesync_s", !6, i64 0, !13, i64 8, !13, i64 12, !10, i64 16, !6, i64 24, !6, i64 32, !14, i64 40, !15, i64 88, !7, i64 112, !10, i64 120, !6, i64 128, !6, i64 136, !13, i64 144, !10, i64 148, !10, i64 152, !13, i64 156, !13, i64 160, !10, i64 164, !6, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !6, i64 192, !6, i64 200, !13, i64 208, !6, i64 216, !6, i64 224, !13, i64 232, !13, i64 236, !13, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !13, i64 280, !7, i64 284, !13, i64 288, !13, i64 292, !13, i64 296, !13, i64 300, !13, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !13, i64 336, !13, i64 340, !13, i64 344, !13, i64 348, !13, i64 352}
!13 = !{!"int", !7, i64 0}
!14 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44}
!15 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !16, i64 16}
!16 = !{!"long", !7, i64 0}
!17 = !{!12, !6, i64 136}
!18 = !{!13, !13, i64 0}
!19 = !{!12, !13, i64 160}
!20 = !{!12, !13, i64 8}
!21 = !{!12, !13, i64 156}
!22 = !{!12, !10, i64 148}
!23 = !{!12, !10, i64 152}
!24 = !{!12, !13, i64 144}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


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

; Function Attrs: mustprogress 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 range(i32 0, 2) i32 @gmskframesync_update_symsync(ptr nocapture noundef %0, float noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #1 {
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = getelementptr inbounds i8, ptr %0, i64 128
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = tail call i32 @firpfb_rrrf_push(ptr noundef %7, float noundef %1) #4
  %9 = getelementptr inbounds i8, ptr %0, i64 136
  %10 = load ptr, ptr %9, align 8, !tbaa !15
  %11 = tail call i32 @firpfb_rrrf_push(ptr noundef %10, float noundef %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  store float 0.000000e+00, ptr %4, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  store float 0.000000e+00, ptr %5, align 4, !tbaa !16
  %12 = getelementptr inbounds i8, ptr %0, i64 160
  %13 = load i32, ptr %12, align 8, !tbaa !17
  %14 = icmp slt i32 %13, 1
  br i1 %14, label %15, label %.loopexit

15:                                               ; preds = %3
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load i32, ptr %16, align 8, !tbaa !18
  store i32 %17, ptr %12, align 8, !tbaa !17
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %0, i64 156
  %20 = load i32, ptr %19, align 4, !tbaa !19
  %21 = call i32 @firpfb_rrrf_execute(ptr noundef %18, i32 noundef %20, ptr noundef nonnull %4) #4
  %22 = load ptr, ptr %9, align 8, !tbaa !15
  %23 = load i32, ptr %19, align 4, !tbaa !19
  %24 = call i32 @firpfb_rrrf_execute(ptr noundef %22, i32 noundef %23, ptr noundef nonnull %5) #4
  %25 = getelementptr inbounds i8, ptr %0, i64 148
  %26 = load float, ptr %25, align 4, !tbaa !20
  %27 = load float, ptr %4, align 4, !tbaa !16
  %28 = load float, ptr %5, align 4, !tbaa !16
  %29 = fmul float %27, %28
  %30 = fmul float %29, 0x3FA99999A0000000
  %31 = call float @llvm.fmuladd.f32(float %26, float 0x3FEFAE1480000000, float %30)
  store float %31, ptr %25, align 4, !tbaa !20
  %32 = getelementptr inbounds i8, ptr %0, i64 152
  %33 = load float, ptr %32, align 8, !tbaa !21
  %34 = fadd float %33, %31
  store float %34, ptr %32, align 8, !tbaa !21
  %35 = call float @llvm.round.f32(float %34)
  %36 = fptosi float %35 to i32
  store i32 %36, ptr %19, align 4, !tbaa !19
  %37 = icmp slt i32 %36, 0
  %38 = getelementptr inbounds i8, ptr %0, i64 144
  %39 = load i32, ptr %38, align 8, !tbaa !22
  br i1 %37, label %.lr.ph, label %..preheader_crit_edge50

..preheader_crit_edge50:                          ; preds = %15
  %.pre53.pre = load i32, ptr %12, align 8, !tbaa !17
  br label %.preheader

.lr.ph:                                           ; preds = %15
  %40 = uitofp i32 %39 to float
  %.promoted36 = load i32, ptr %12, align 8, !tbaa !17
  br label %44

..preheader_crit_edge:                            ; preds = %44
  store i32 %48, ptr %19, align 4, !tbaa !19
  store float %49, ptr %32, align 8, !tbaa !21
  br label %.preheader

.preheader:                                       ; preds = %..preheader_crit_edge50, %..preheader_crit_edge
  %.pre53 = phi i32 [ %.pre53.pre, %..preheader_crit_edge50 ], [ %50, %..preheader_crit_edge ]
  %.promoted41 = phi float [ %34, %..preheader_crit_edge50 ], [ %49, %..preheader_crit_edge ]
  %.promoted38 = phi i32 [ %36, %..preheader_crit_edge50 ], [ %48, %..preheader_crit_edge ]
  %41 = add i32 %39, -1
  %42 = icmp ugt i32 %.promoted38, %41
  br i1 %42, label %.lr.ph39, label %.loopexit

.lr.ph39:                                         ; preds = %.preheader
  %43 = uitofp nneg i32 %39 to float
  br label %52

44:                                               ; preds = %.lr.ph, %44
  %45 = phi i32 [ %.promoted36, %.lr.ph ], [ %50, %44 ]
  %46 = phi float [ %34, %.lr.ph ], [ %49, %44 ]
  %47 = phi i32 [ %36, %.lr.ph ], [ %48, %44 ]
  %48 = add i32 %39, %47
  %49 = fadd float %46, %40
  %50 = add nsw i32 %45, -1
  %51 = icmp slt i32 %48, 0
  br i1 %51, label %44, label %..preheader_crit_edge, !llvm.loop !23

52:                                               ; preds = %.lr.ph39, %52
  %53 = phi i32 [ %.pre53, %.lr.ph39 ], [ %58, %52 ]
  %54 = phi float [ %.promoted41, %.lr.ph39 ], [ %57, %52 ]
  %55 = phi i32 [ %.promoted38, %.lr.ph39 ], [ %56, %52 ]
  %56 = sub i32 %55, %39
  %57 = fsub float %54, %43
  %58 = add nsw i32 %53, 1
  %59 = icmp ugt i32 %56, %41
  br i1 %59, label %52, label %..loopexit_crit_edge, !llvm.loop !25

..loopexit_crit_edge:                             ; preds = %52
  store i32 %56, ptr %19, align 4, !tbaa !19
  store float %57, ptr %32, align 8, !tbaa !21
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader, %..loopexit_crit_edge, %3
  %60 = phi float [ 0.000000e+00, %3 ], [ %27, %..loopexit_crit_edge ], [ %27, %.preheader ]
  %61 = phi i32 [ %13, %3 ], [ %58, %..loopexit_crit_edge ], [ %.pre53, %.preheader ]
  %.0 = phi i32 [ 0, %3 ], [ 1, %..loopexit_crit_edge ], [ 1, %.preheader ]
  %62 = add nsw i32 %61, -1
  store i32 %62, ptr %12, align 8, !tbaa !17
  %63 = getelementptr inbounds i8, ptr %0, i64 8
  %64 = load i32, ptr %63, align 8, !tbaa !18
  %65 = uitofp i32 %64 to float
  %66 = fdiv float %60, %65
  store float %66, ptr %2, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  ret i32 %.0
}

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

declare i32 @firpfb_rrrf_execute(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

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

attributes #0 = { mustprogress 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 = { "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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, !7, i64 128}
!6 = !{!"gmskframesync_s", !7, i64 0, !10, i64 8, !10, i64 12, !11, i64 16, !7, i64 24, !7, i64 32, !12, i64 40, !13, i64 88, !8, i64 112, !11, i64 120, !7, i64 128, !7, i64 136, !10, i64 144, !11, i64 148, !11, i64 152, !10, i64 156, !10, i64 160, !11, i64 164, !7, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !7, i64 192, !7, i64 200, !10, i64 208, !7, i64 216, !7, i64 224, !10, i64 232, !10, i64 236, !10, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !7, i64 272, !10, i64 280, !8, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44}
!13 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !14, i64 16}
!14 = !{!"long", !8, i64 0}
!15 = !{!6, !7, i64 136}
!16 = !{!11, !11, i64 0}
!17 = !{!6, !10, i64 160}
!18 = !{!6, !10, i64 8}
!19 = !{!6, !10, i64 156}
!20 = !{!6, !11, i64 148}
!21 = !{!6, !11, i64 152}
!22 = !{!6, !10, i64 144}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


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