; LLVM IR from herrkaefer/AccelerateWatch :: AccelerateWatch/Classes/acceleratelib (dsbuffer)

; 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._dsbuffer_t = type { ptr, i64, i64, ptr, i8, ptr, ptr, i64, ptr }

@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@__PRETTY_FUNCTION__.dsbuffer_normalize_to_unit_variance = external hidden unnamed_addr constant [71 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; 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
declare dso_local void @dsbuffer_dump(ptr 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: nounwind uwtable
declare dso_local float @dsbuffer_mean(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @dsbuffer_add(ptr noundef, float noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @dsbuffer_multiply(ptr noundef, float noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @dsbuffer_normalize_to_unit_variance(ptr noundef %0, i1 noundef zeroext %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i64, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  %13 = zext i1 %1 to i8
  store i8 %13, ptr %5, align 1, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %3
  br label %18

17:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 465, ptr noundef @__PRETTY_FUNCTION__.dsbuffer_normalize_to_unit_variance) #4
  unreachable

18:                                               ; preds = %16
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %22

21:                                               ; preds = %18
  br label %23

22:                                               ; preds = %18
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 466, ptr noundef @__PRETTY_FUNCTION__.dsbuffer_normalize_to_unit_variance) #4
  unreachable

23:                                               ; preds = %21
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct._dsbuffer_t, ptr %24, i32 0, i32 1
  %26 = load i64, ptr %25, align 8, !tbaa !11
  %27 = icmp eq i64 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %23
  br label %113

29:                                               ; preds = %23
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct._dsbuffer_t, ptr %30, i32 0, i32 1
  %32 = load i64, ptr %31, align 8, !tbaa !11
  %33 = icmp eq i64 %32, 1
  br i1 %33, label %34, label %37

34:                                               ; preds = %29
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds float, ptr %35, i64 0
  store float 1.000000e+00, ptr %36, align 4, !tbaa !14
  br label %113

37:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = call float @dsbuffer_mean(ptr noundef %38)
  store float %39, ptr %7, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store float 0.000000e+00, ptr %8, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !16
  br label %40

40:                                               ; preds = %60, %37
  %41 = load i64, ptr %9, align 8, !tbaa !16
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._dsbuffer_t, ptr %42, i32 0, i32 1
  %44 = load i64, ptr %43, align 8, !tbaa !11
  %45 = icmp ult i64 %41, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %63

47:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct._dsbuffer_t, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  %51 = load i64, ptr %9, align 8, !tbaa !16
  %52 = getelementptr inbounds float, ptr %50, i64 %51
  %53 = load float, ptr %52, align 4, !tbaa !14
  %54 = load float, ptr %7, align 4, !tbaa !14
  %55 = fsub float %53, %54
  store float %55, ptr %10, align 4, !tbaa !14
  %56 = load float, ptr %10, align 4, !tbaa !14
  %57 = load float, ptr %10, align 4, !tbaa !14
  %58 = load float, ptr %8, align 4, !tbaa !14
  %59 = call float @llvm.fmuladd.f32(float %56, float %57, float %58)
  store float %59, ptr %8, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %60

60:                                               ; preds = %47
  %61 = load i64, ptr %9, align 8, !tbaa !16
  %62 = add i64 %61, 1
  store i64 %62, ptr %9, align 8, !tbaa !16
  br label %40, !llvm.loop !18

63:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %64 = load float, ptr %8, align 4, !tbaa !14
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct._dsbuffer_t, ptr %65, i32 0, i32 1
  %67 = load i64, ptr %66, align 8, !tbaa !11
  %68 = sub i64 %67, 1
  %69 = uitofp i64 %68 to float
  %70 = fdiv float %64, %69
  store float %70, ptr %11, align 4, !tbaa !14
  %71 = load i8, ptr %5, align 1, !tbaa !9, !range !20, !noundef !21
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %100

73:                                               ; preds = %63
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load float, ptr %7, align 4, !tbaa !14
  %76 = fneg float %75
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  call void @dsbuffer_add(ptr noundef %74, float noundef %76, ptr noundef %77)
  %78 = load float, ptr %11, align 4, !tbaa !14
  %79 = fcmp ogt float %78, 0.000000e+00
  br i1 %79, label %80, label %99

80:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !16
  br label %81

81:                                               ; preds = %95, %80
  %82 = load i64, ptr %12, align 8, !tbaa !16
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct._dsbuffer_t, ptr %83, i32 0, i32 1
  %85 = load i64, ptr %84, align 8, !tbaa !11
  %86 = icmp ult i64 %82, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %98

88:                                               ; preds = %81
  %89 = load float, ptr %11, align 4, !tbaa !14
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = load i64, ptr %12, align 8, !tbaa !16
  %92 = getelementptr inbounds float, ptr %90, i64 %91
  %93 = load float, ptr %92, align 4, !tbaa !14
  %94 = fdiv float %93, %89
  store float %94, ptr %92, align 4, !tbaa !14
  br label %95

95:                                               ; preds = %88
  %96 = load i64, ptr %12, align 8, !tbaa !16
  %97 = add i64 %96, 1
  store i64 %97, ptr %12, align 8, !tbaa !16
  br label %81, !llvm.loop !22

98:                                               ; preds = %87
  br label %99

99:                                               ; preds = %98, %73
  br label %112

100:                                              ; preds = %63
  %101 = load float, ptr %11, align 4, !tbaa !14
  %102 = fcmp ogt float %101, 0.000000e+00
  br i1 %102, label %103, label %108

103:                                              ; preds = %100
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = load float, ptr %11, align 4, !tbaa !14
  %106 = fdiv float 1.000000e+00, %105
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  call void @dsbuffer_multiply(ptr noundef %104, float noundef %106, ptr noundef %107)
  br label %111

108:                                              ; preds = %100
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  call void @dsbuffer_dump(ptr noundef %109, ptr noundef %110)
  br label %111

111:                                              ; preds = %108, %103
  br label %112

112:                                              ; preds = %111, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %113

113:                                              ; preds = %112, %34, %28
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn nounwind }
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 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"_dsbuffer_t", !6, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !6, i64 64}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!12, !6, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !19}


; 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.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@__PRETTY_FUNCTION__.dsbuffer_normalize_to_unit_variance = external hidden unnamed_addr constant [71 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local void @dsbuffer_dump(ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local float @dsbuffer_mean(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @dsbuffer_add(ptr noundef, float noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @dsbuffer_multiply(ptr noundef, float noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @dsbuffer_normalize_to_unit_variance(ptr noundef %0, i1 noundef zeroext %1, ptr noundef %2) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %4, label %5

4:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 465, ptr noundef nonnull @__PRETTY_FUNCTION__.dsbuffer_normalize_to_unit_variance) #3
  unreachable

5:                                                ; preds = %3
  %.not40 = icmp eq ptr %2, null
  br i1 %.not40, label %6, label %7

6:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 466, ptr noundef nonnull @__PRETTY_FUNCTION__.dsbuffer_normalize_to_unit_variance) #3
  unreachable

7:                                                ; preds = %5
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load i64, ptr %8, align 8, !tbaa !5
  switch i64 %9, label %11 [
    i64 0, label %.loopexit
    i64 1, label %10
  ]

10:                                               ; preds = %7
  store float 1.000000e+00, ptr %2, align 4, !tbaa !12
  br label %.loopexit

11:                                               ; preds = %7
  %12 = tail call float @dsbuffer_mean(ptr noundef nonnull %0)
  %13 = load i64, ptr %8, align 8, !tbaa !5
  %.not46 = icmp eq i64 %13, 0
  br i1 %.not46, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %11
  %14 = load ptr, ptr %0, align 8, !tbaa !14
  %xtraiter = and i64 %13, 3
  %15 = icmp ult i64 %13, 4
  br i1 %15, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %13, -4
  br label %24

._crit_edge.loopexit.unr-lcssa:                   ; preds = %24, %.lr.ph
  %.lcssa.ph = phi float [ poison, %.lr.ph ], [ %43, %24 ]
  %.03342.unr = phi float [ 0.000000e+00, %.lr.ph ], [ %43, %24 ]
  %.03441.unr = phi i64 [ 0, %.lr.ph ], [ %44, %24 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.03342.epil = phi float [ %19, %.epil.preheader ], [ %.03342.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.03441.epil = phi i64 [ %20, %.epil.preheader ], [ %.03441.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %16 = getelementptr inbounds float, ptr %14, i64 %.03441.epil
  %17 = load float, ptr %16, align 4, !tbaa !12
  %18 = fsub float %17, %12
  %19 = tail call float @llvm.fmuladd.f32(float %18, float %18, float %.03342.epil)
  %20 = add nuw i64 %.03441.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !15

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %11
  %.033.lcssa = phi float [ 0.000000e+00, %11 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %19, %.epil.preheader ]
  %21 = add i64 %13, -1
  %22 = uitofp i64 %21 to float
  %23 = fdiv float %.033.lcssa, %22
  br i1 %1, label %45, label %56

24:                                               ; preds = %24, %.lr.ph.new
  %.03342 = phi float [ 0.000000e+00, %.lr.ph.new ], [ %43, %24 ]
  %.03441 = phi i64 [ 0, %.lr.ph.new ], [ %44, %24 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %24 ]
  %25 = getelementptr inbounds float, ptr %14, i64 %.03441
  %26 = load float, ptr %25, align 4, !tbaa !12
  %27 = fsub float %26, %12
  %28 = tail call float @llvm.fmuladd.f32(float %27, float %27, float %.03342)
  %29 = or disjoint i64 %.03441, 1
  %30 = getelementptr inbounds float, ptr %14, i64 %29
  %31 = load float, ptr %30, align 4, !tbaa !12
  %32 = fsub float %31, %12
  %33 = tail call float @llvm.fmuladd.f32(float %32, float %32, float %28)
  %34 = or disjoint i64 %.03441, 2
  %35 = getelementptr inbounds float, ptr %14, i64 %34
  %36 = load float, ptr %35, align 4, !tbaa !12
  %37 = fsub float %36, %12
  %38 = tail call float @llvm.fmuladd.f32(float %37, float %37, float %33)
  %39 = or disjoint i64 %.03441, 3
  %40 = getelementptr inbounds float, ptr %14, i64 %39
  %41 = load float, ptr %40, align 4, !tbaa !12
  %42 = fsub float %41, %12
  %43 = tail call float @llvm.fmuladd.f32(float %42, float %42, float %38)
  %44 = add nuw i64 %.03441, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %24, !llvm.loop !17

45:                                               ; preds = %._crit_edge
  %46 = fneg float %12
  tail call void @dsbuffer_add(ptr noundef nonnull %0, float noundef %46, ptr noundef nonnull %2)
  %47 = fcmp ogt float %23, 0.000000e+00
  br i1 %47, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %45
  %48 = load i64, ptr %8, align 8, !tbaa !5
  %.not47 = icmp eq i64 %48, 0
  br i1 %.not47, label %.loopexit, label %.lr.ph45.preheader

.lr.ph45.preheader:                               ; preds = %.preheader
  %min.iters.check = icmp ult i64 %48, 4
  br i1 %min.iters.check, label %.lr.ph45.preheader49, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph45.preheader
  %n.vec = and i64 %48, -4
  %broadcast.splatinsert = insertelement <4 x float> poison, float %23, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %49 = getelementptr inbounds float, ptr %2, i64 %index
  %wide.load = load <4 x float>, ptr %49, align 4, !tbaa !12
  %50 = fdiv <4 x float> %wide.load, %broadcast.splat
  store <4 x float> %50, ptr %49, align 4, !tbaa !12
  %index.next = add nuw i64 %index, 4
  %51 = icmp eq i64 %index.next, %n.vec
  br i1 %51, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %48, %n.vec
  br i1 %cmp.n, label %.loopexit, label %.lr.ph45.preheader49

.lr.ph45.preheader49:                             ; preds = %middle.block, %.lr.ph45.preheader
  %.044.ph = phi i64 [ 0, %.lr.ph45.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph45

.lr.ph45:                                         ; preds = %.lr.ph45.preheader49, %.lr.ph45
  %.044 = phi i64 [ %55, %.lr.ph45 ], [ %.044.ph, %.lr.ph45.preheader49 ]
  %52 = getelementptr inbounds float, ptr %2, i64 %.044
  %53 = load float, ptr %52, align 4, !tbaa !12
  %54 = fdiv float %53, %23
  store float %54, ptr %52, align 4, !tbaa !12
  %55 = add nuw i64 %.044, 1
  %exitcond48.not = icmp eq i64 %55, %48
  br i1 %exitcond48.not, label %.loopexit, label %.lr.ph45, !llvm.loop !22

56:                                               ; preds = %._crit_edge
  %57 = fcmp ogt float %23, 0.000000e+00
  br i1 %57, label %58, label %60

58:                                               ; preds = %56
  %59 = fdiv float 1.000000e+00, %23
  tail call void @dsbuffer_multiply(ptr noundef nonnull %0, float noundef %59, ptr noundef nonnull %2)
  br label %.loopexit

60:                                               ; preds = %56
  tail call void @dsbuffer_dump(ptr noundef nonnull %0, ptr noundef nonnull %2)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph45, %middle.block, %.preheader, %45, %60, %58, %7, %10
  ret void
}

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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, !10, i64 8}
!6 = !{!"_dsbuffer_t", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !11, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !7, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !8, i64 0}
!14 = !{!6, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18, !20, !21}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !18, !21, !20}


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