; LLVM IR from Ryuk17/SpeechAlgorithms :: WebRTC_AEC/src (aec_resampler)

; 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.resampler_t = type { [320 x i16], float, i32, [400 x i32], i32, float }

@.str = external hidden unnamed_addr constant [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__.WebRtcAec_ResampleLinear = external hidden unnamed_addr constant [81 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 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: 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 @WebRtcAec_ResampleLinear(ptr noundef %0, ptr noundef %1, i32 noundef %2, float noundef %3, ptr noundef %4, ptr noundef %5) #1 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store float %3, ptr %10, align 4, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %20, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %21 = load i32, ptr %9, align 4, !tbaa !9
  %22 = icmp slt i32 %21, 0
  br i1 %22, label %27, label %23

23:                                               ; preds = %6
  %24 = load i32, ptr %9, align 4, !tbaa !9
  %25 = icmp sgt i32 %24, 160
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  br label %28

27:                                               ; preds = %23, %6
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 85, ptr noundef @__PRETTY_FUNCTION__.WebRtcAec_ResampleLinear) #6
  unreachable

28:                                               ; preds = %26
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %32

31:                                               ; preds = %28
  br label %33

32:                                               ; preds = %28
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 86, ptr noundef @__PRETTY_FUNCTION__.WebRtcAec_ResampleLinear) #6
  unreachable

33:                                               ; preds = %31
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %37

36:                                               ; preds = %33
  br label %38

37:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 87, ptr noundef @__PRETTY_FUNCTION__.WebRtcAec_ResampleLinear) #6
  unreachable

38:                                               ; preds = %36
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  br label %43

42:                                               ; preds = %38
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 88, ptr noundef @__PRETTY_FUNCTION__.WebRtcAec_ResampleLinear) #6
  unreachable

43:                                               ; preds = %41
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  br label %48

47:                                               ; preds = %43
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 89, ptr noundef @__PRETTY_FUNCTION__.WebRtcAec_ResampleLinear) #6
  unreachable

48:                                               ; preds = %46
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.resampler_t, ptr %49, i32 0, i32 0
  %51 = getelementptr inbounds [320 x i16], ptr %50, i64 0, i64 81
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = mul i64 %54, 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %51, ptr align 2 %52, i64 %55, i1 false)
  %56 = load float, ptr %10, align 4, !tbaa !11
  %57 = fadd float 1.000000e+00, %56
  store float %57, ptr %15, align 4, !tbaa !11
  store i32 0, ptr %19, align 4, !tbaa !9
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.resampler_t, ptr %58, i32 0, i32 0
  %60 = getelementptr inbounds [320 x i16], ptr %59, i64 0, i64 80
  store ptr %60, ptr %14, align 8, !tbaa !5
  %61 = load float, ptr %15, align 4, !tbaa !11
  %62 = load i32, ptr %19, align 4, !tbaa !9
  %63 = sitofp i32 %62 to float
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.resampler_t, ptr %64, i32 0, i32 1
  %66 = load float, ptr %65, align 4, !tbaa !13
  %67 = call float @llvm.fmuladd.f32(float %61, float %63, float %66)
  store float %67, ptr %16, align 4, !tbaa !11
  %68 = load float, ptr %16, align 4, !tbaa !11
  %69 = fptosi float %68 to i32
  store i32 %69, ptr %18, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %110, %48
  %71 = load i32, ptr %18, align 4, !tbaa !9
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %74, label %128

74:                                               ; preds = %70
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = load i32, ptr %18, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds i16, ptr %75, i64 %77
  %79 = load i16, ptr %78, align 2, !tbaa !15
  %80 = sext i16 %79 to i32
  %81 = sitofp i32 %80 to float
  %82 = load float, ptr %16, align 4, !tbaa !11
  %83 = load i32, ptr %18, align 4, !tbaa !9
  %84 = sitofp i32 %83 to float
  %85 = fsub float %82, %84
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = load i32, ptr %18, align 4, !tbaa !9
  %88 = add nsw i32 %87, 1
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i16, ptr %86, i64 %89
  %91 = load i16, ptr %90, align 2, !tbaa !15
  %92 = sext i16 %91 to i32
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = load i32, ptr %18, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds i16, ptr %93, i64 %95
  %97 = load i16, ptr %96, align 2, !tbaa !15
  %98 = sext i16 %97 to i32
  %99 = sub nsw i32 %92, %98
  %100 = sitofp i32 %99 to float
  %101 = call float @llvm.fmuladd.f32(float %85, float %100, float %81)
  store float %101, ptr %17, align 4, !tbaa !11
  %102 = load float, ptr %17, align 4, !tbaa !11
  %103 = fcmp ogt float %102, 3.276700e+04
  br i1 %103, label %104, label %105

104:                                              ; preds = %74
  store float 3.276700e+04, ptr %17, align 4, !tbaa !11
  br label %110

105:                                              ; preds = %74
  %106 = load float, ptr %17, align 4, !tbaa !11
  %107 = fcmp olt float %106, -3.276800e+04
  br i1 %107, label %108, label %109

108:                                              ; preds = %105
  store float -3.276800e+04, ptr %17, align 4, !tbaa !11
  br label %109

109:                                              ; preds = %108, %105
  br label %110

110:                                              ; preds = %109, %104
  %111 = load float, ptr %17, align 4, !tbaa !11
  %112 = fptosi float %111 to i16
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = load i32, ptr %19, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds i16, ptr %113, i64 %115
  store i16 %112, ptr %116, align 2, !tbaa !15
  %117 = load i32, ptr %19, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %19, align 4, !tbaa !9
  %119 = load float, ptr %15, align 4, !tbaa !11
  %120 = load i32, ptr %19, align 4, !tbaa !9
  %121 = sitofp i32 %120 to float
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.resampler_t, ptr %122, i32 0, i32 1
  %124 = load float, ptr %123, align 4, !tbaa !13
  %125 = call float @llvm.fmuladd.f32(float %119, float %121, float %124)
  store float %125, ptr %16, align 4, !tbaa !11
  %126 = load float, ptr %16, align 4, !tbaa !11
  %127 = fptosi float %126 to i32
  store i32 %127, ptr %18, align 4, !tbaa !9
  br label %70, !llvm.loop !17

128:                                              ; preds = %70
  %129 = load i32, ptr %19, align 4, !tbaa !9
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 %129, ptr %130, align 4, !tbaa !9
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = sitofp i32 %132 to float
  %134 = load float, ptr %15, align 4, !tbaa !11
  %135 = load i32, ptr %9, align 4, !tbaa !9
  %136 = sitofp i32 %135 to float
  %137 = fneg float %136
  %138 = call float @llvm.fmuladd.f32(float %133, float %134, float %137)
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.resampler_t, ptr %139, i32 0, i32 1
  %141 = load float, ptr %140, align 4, !tbaa !13
  %142 = fadd float %141, %138
  store float %142, ptr %140, align 4, !tbaa !13
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.resampler_t, ptr %143, i32 0, i32 0
  %145 = getelementptr inbounds [320 x i16], ptr %144, i64 0, i64 0
  %146 = load ptr, ptr %13, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.resampler_t, ptr %146, i32 0, i32 0
  %148 = load i32, ptr %9, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [320 x i16], ptr %147, i64 0, i64 %149
  %151 = load i32, ptr %9, align 4, !tbaa !9
  %152 = sub nsw i32 320, %151
  %153 = sext i32 %152 to i64
  %154 = mul i64 %153, 2
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %145, ptr align 2 %150, i64 %154, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

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

; 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

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 = { noreturn 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 640}
!14 = !{!"", !7, i64 0, !12, i64 640, !10, i64 644, !7, i64 648, !10, i64 2248, !12, i64 2252}
!15 = !{!16, !16, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"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 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__.WebRtcAec_ResampleLinear = external hidden unnamed_addr constant [81 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @WebRtcAec_ResampleLinear(ptr noundef %0, ptr noundef readonly %1, i32 noundef %2, float noundef %3, ptr noundef writeonly %4, ptr noundef writeonly %5) local_unnamed_addr #0 {
  %or.cond = icmp ugt i32 %2, 160
  br i1 %or.cond, label %7, label %8

7:                                                ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 85, ptr noundef nonnull @__PRETTY_FUNCTION__.WebRtcAec_ResampleLinear) #4
  unreachable

8:                                                ; preds = %6
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %9, label %10

9:                                                ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 86, ptr noundef nonnull @__PRETTY_FUNCTION__.WebRtcAec_ResampleLinear) #4
  unreachable

10:                                               ; preds = %8
  %.not55 = icmp eq ptr %1, null
  br i1 %.not55, label %11, label %12

11:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 87, ptr noundef nonnull @__PRETTY_FUNCTION__.WebRtcAec_ResampleLinear) #4
  unreachable

12:                                               ; preds = %10
  %.not56 = icmp eq ptr %4, null
  br i1 %.not56, label %13, label %14

13:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 88, ptr noundef nonnull @__PRETTY_FUNCTION__.WebRtcAec_ResampleLinear) #4
  unreachable

14:                                               ; preds = %12
  %.not57 = icmp eq ptr %5, null
  br i1 %.not57, label %15, label %16

15:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 89, ptr noundef nonnull @__PRETTY_FUNCTION__.WebRtcAec_ResampleLinear) #4
  unreachable

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %0, i64 162
  %18 = zext nneg i32 %2 to i64
  %19 = shl nuw nsw i64 %18, 1
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 2 %17, ptr nonnull align 2 %1, i64 %19, i1 false)
  %20 = fadd float %3, 1.000000e+00
  %21 = getelementptr inbounds i8, ptr %0, i64 160
  %22 = getelementptr inbounds i8, ptr %0, i64 640
  %23 = load float, ptr %22, align 4, !tbaa !5
  %24 = tail call float @llvm.fmuladd.f32(float %20, float 0.000000e+00, float %23)
  %.04658 = fptosi float %24 to i32
  %25 = icmp slt i32 %.04658, %2
  br i1 %25, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %16, %43
  %indvars.iv = phi i64 [ %indvars.iv.next, %43 ], [ 0, %16 ]
  %.04661 = phi i32 [ %.046, %43 ], [ %.04658, %16 ]
  %.04859 = phi float [ %48, %43 ], [ %24, %16 ]
  %26 = sext i32 %.04661 to i64
  %27 = getelementptr inbounds i16, ptr %21, i64 %26
  %28 = load i16, ptr %27, align 2, !tbaa !11
  %29 = sext i16 %28 to i32
  %30 = sitofp i16 %28 to float
  %31 = sitofp i32 %.04661 to float
  %32 = fsub float %.04859, %31
  %33 = getelementptr i8, ptr %27, i64 2
  %34 = load i16, ptr %33, align 2, !tbaa !11
  %35 = sext i16 %34 to i32
  %36 = sub nsw i32 %35, %29
  %37 = sitofp i32 %36 to float
  %38 = tail call float @llvm.fmuladd.f32(float %32, float %37, float %30)
  %39 = fcmp ogt float %38, 3.276700e+04
  br i1 %39, label %43, label %40

40:                                               ; preds = %.lr.ph
  %41 = fcmp olt float %38, -3.276800e+04
  br i1 %41, label %42, label %43

42:                                               ; preds = %40
  br label %43

43:                                               ; preds = %.lr.ph, %40, %42
  %.047 = phi float [ -3.276800e+04, %42 ], [ %38, %40 ], [ 3.276700e+04, %.lr.ph ]
  %44 = fptosi float %.047 to i16
  %45 = getelementptr inbounds i16, ptr %4, i64 %indvars.iv
  store i16 %44, ptr %45, align 2, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %46 = trunc nuw i64 %indvars.iv.next to i32
  %47 = uitofp nneg i32 %46 to float
  %48 = tail call float @llvm.fmuladd.f32(float %20, float %47, float %23)
  %.046 = fptosi float %48 to i32
  %49 = icmp slt i32 %.046, %2
  br i1 %49, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %43, %16
  %.0.lcssa = phi i32 [ 0, %16 ], [ %46, %43 ]
  store i32 %.0.lcssa, ptr %5, align 4, !tbaa !15
  %50 = uitofp nneg i32 %.0.lcssa to float
  %51 = uitofp nneg i32 %2 to float
  %52 = fneg float %51
  %53 = tail call float @llvm.fmuladd.f32(float %50, float %20, float %52)
  %54 = fadd float %23, %53
  store float %54, ptr %22, align 4, !tbaa !5
  %55 = getelementptr inbounds [320 x i16], ptr %0, i64 0, i64 %18
  %56 = shl nuw nsw i32 %2, 1
  %57 = sub nuw nsw i32 640, %56
  %58 = zext nneg i32 %57 to i64
  tail call void @llvm.memmove.p0.p0.i64(ptr nonnull align 4 %0, ptr nonnull align 2 %55, i64 %58, i1 false)
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; 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

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 = { noreturn 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn 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, !9, i64 640}
!6 = !{!"", !7, i64 0, !9, i64 640, !10, i64 644, !7, i64 648, !10, i64 2248, !9, i64 2252}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"float", !7, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!10, !10, i64 0}


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