; LLVM IR from upupming/algorithm :: acwing/算法竞赛进阶指南/0x44-分块/243. 一个简单的整数问题2.ll (Z5buildv)

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

@a = external dso_local global [100010 x i64], align 16
@sum = external dso_local global [100010 x i64], align 16
@L = external dso_local global [100010 x i32], align 16
@R = external dso_local global [100010 x i32], align 16
@pos = external dso_local global [100010 x i32], align 16
@n = external dso_local global i32, align 4
@t = external dso_local global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5buildv() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = load i32, ptr @n, align 4, !tbaa !5
  %6 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %5)
  %7 = fptosi double %6 to i32
  store i32 %7, ptr @t, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %28, %0
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = load i32, ptr @t, align 4, !tbaa !5
  %11 = icmp sle i32 %9, %10
  br i1 %11, label %13, label %12

12:                                               ; preds = %8
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #3
  br label %31

13:                                               ; preds = %8
  %14 = load i32, ptr %1, align 4, !tbaa !5
  %15 = sub nsw i32 %14, 1
  %16 = load i32, ptr @t, align 4, !tbaa !5
  %17 = mul nsw i32 %15, %16
  %18 = add nsw i32 %17, 1
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [100010 x i32], ptr @L, i64 0, i64 %20
  store i32 %18, ptr %21, align 4, !tbaa !5
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %23 = load i32, ptr @t, align 4, !tbaa !5
  %24 = mul nsw i32 %22, %23
  %25 = load i32, ptr %1, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [100010 x i32], ptr @R, i64 0, i64 %26
  store i32 %24, ptr %27, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %13
  %29 = load i32, ptr %1, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %1, align 4, !tbaa !5
  br label %8, !llvm.loop !9

31:                                               ; preds = %12
  %32 = load i32, ptr @t, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [100010 x i32], ptr @R, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = load i32, ptr @n, align 4, !tbaa !5
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %38, label %54

38:                                               ; preds = %31
  %39 = load i32, ptr @t, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr @t, align 4, !tbaa !5
  %41 = load i32, ptr @t, align 4, !tbaa !5
  %42 = sub nsw i32 %41, 1
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100010 x i32], ptr @R, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  %47 = load i32, ptr @t, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [100010 x i32], ptr @L, i64 0, i64 %48
  store i32 %46, ptr %49, align 4, !tbaa !5
  %50 = load i32, ptr @n, align 4, !tbaa !5
  %51 = load i32, ptr @t, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [100010 x i32], ptr @R, i64 0, i64 %52
  store i32 %50, ptr %53, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %38, %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %91, %54
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = load i32, ptr @t, align 4, !tbaa !5
  %58 = icmp sle i32 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  br label %94

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [100010 x i32], ptr @L, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !5
  store i32 %64, ptr %4, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %87, %60
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [100010 x i32], ptr @R, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = icmp sle i32 %66, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %65
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %90

73:                                               ; preds = %65
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = load i32, ptr %4, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [100010 x i32], ptr @pos, i64 0, i64 %76
  store i32 %74, ptr %77, align 4, !tbaa !5
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %79
  %81 = load i64, ptr %80, align 8, !tbaa !11
  %82 = load i32, ptr %2, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %83
  %85 = load i64, ptr %84, align 8, !tbaa !11
  %86 = add nsw i64 %85, %81
  store i64 %86, ptr %84, align 8, !tbaa !11
  br label %87

87:                                               ; preds = %73
  %88 = load i32, ptr %4, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %4, align 4, !tbaa !5
  br label %65, !llvm.loop !13

90:                                               ; preds = %72
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %2, align 4, !tbaa !5
  br label %55, !llvm.loop !14

94:                                               ; preds = %59
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) #1

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

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

attributes #0 = { mustprogress 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 mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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

@a = external dso_local local_unnamed_addr global [100010 x i64], align 16
@sum = external dso_local local_unnamed_addr global [100010 x i64], align 16
@L = external dso_local local_unnamed_addr global [100010 x i32], align 16
@R = external dso_local local_unnamed_addr global [100010 x i32], align 16
@pos = external dso_local local_unnamed_addr global [100010 x i32], align 16
@n = external dso_local local_unnamed_addr global i32, align 4
@t = external dso_local local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z5buildv() local_unnamed_addr #0 {
  %1 = load i32, ptr @n, align 4, !tbaa !5
  %2 = tail call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %1)
  %3 = fptosi double %2 to i32
  store i32 %3, ptr @t, align 4, !tbaa !5
  %.not21 = icmp slt i32 %3, 1
  br i1 %.not21, label %.._crit_edge_crit_edge, label %.lr.ph.preheader

.._crit_edge_crit_edge:                           ; preds = %0
  %.pre = sext i32 %3 to i64
  br label %._crit_edge

.lr.ph.preheader:                                 ; preds = %0
  %4 = zext nneg i32 %3 to i64
  %5 = add nuw i32 %3, 1
  %wide.trip.count = zext i32 %5 to i64
  %6 = zext nneg i32 %3 to i64
  %min.iters.check = icmp ult i32 %3, 8
  br i1 %min.iters.check, label %.lr.ph.preheader68, label %vector.ph

.lr.ph.preheader68:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %6, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %3, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> 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 ]
  %vec.ind = phi <4 x i32> [ <i32 1, i32 2, i32 3, i32 4>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %vec.ind44 = phi <4 x i32> [ <i32 1, i32 2, i32 3, i32 4>, %vector.ph ], [ %vec.ind.next47, %vector.body ]
  %step.add45 = add <4 x i32> %vec.ind44, <i32 4, i32 4, i32 4, i32 4>
  %offset.idx = or disjoint i64 %index, 1
  %7 = getelementptr inbounds [100010 x i32], ptr @L, i64 0, i64 %offset.idx
  %8 = add <4 x i32> %vec.ind, <i32 -1, i32 -1, i32 -1, i32 -1>
  %9 = add <4 x i32> %vec.ind, <i32 3, i32 3, i32 3, i32 3>
  %10 = mul <4 x i32> %8, %broadcast.splat
  %11 = mul <4 x i32> %9, %broadcast.splat
  %12 = add <4 x i32> %10, <i32 1, i32 1, i32 1, i32 1>
  %13 = add <4 x i32> %11, <i32 1, i32 1, i32 1, i32 1>
  %14 = getelementptr inbounds i8, ptr %7, i64 16
  store <4 x i32> %12, ptr %7, align 4, !tbaa !5
  store <4 x i32> %13, ptr %14, align 4, !tbaa !5
  %15 = getelementptr inbounds [100010 x i32], ptr @R, i64 0, i64 %offset.idx
  %16 = mul <4 x i32> %vec.ind44, %broadcast.splat
  %17 = mul <4 x i32> %step.add45, %broadcast.splat
  %18 = getelementptr inbounds i8, ptr %15, i64 16
  store <4 x i32> %16, ptr %15, align 4, !tbaa !5
  store <4 x i32> %17, ptr %18, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %vec.ind.next47 = add <4 x i32> %vec.ind44, <i32 8, i32 8, i32 8, i32 8>
  %19 = icmp eq i64 %index.next, %n.vec
  br i1 %19, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %6
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader68

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.._crit_edge_crit_edge ], [ %4, %middle.block ], [ %4, %.lr.ph ]
  %20 = getelementptr inbounds [100010 x i32], ptr @R, i64 0, i64 %.pre-phi
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %32, label %38

.lr.ph:                                           ; preds = %.lr.ph.preheader68, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader68 ]
  %24 = getelementptr inbounds [100010 x i32], ptr @L, i64 0, i64 %indvars.iv
  %25 = trunc i64 %indvars.iv to i32
  %26 = add i32 %25, -1
  %27 = mul i32 %26, %3
  %28 = add i32 %27, 1
  store i32 %28, ptr %24, align 4, !tbaa !5
  %29 = getelementptr inbounds [100010 x i32], ptr @R, i64 0, i64 %indvars.iv
  %30 = trunc i64 %indvars.iv to i32
  %31 = mul i32 %30, %3
  store i32 %31, ptr %29, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

32:                                               ; preds = %._crit_edge
  %33 = add nsw i32 %3, 1
  store i32 %33, ptr @t, align 4, !tbaa !5
  %34 = add nsw i32 %21, 1
  %35 = sext i32 %33 to i64
  %36 = getelementptr inbounds [100010 x i32], ptr @L, i64 0, i64 %35
  store i32 %34, ptr %36, align 4, !tbaa !5
  %37 = getelementptr inbounds [100010 x i32], ptr @R, i64 0, i64 %35
  store i32 %22, ptr %37, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %32, %._crit_edge
  %39 = phi i32 [ %33, %32 ], [ %3, %._crit_edge ]
  %.not1928 = icmp slt i32 %39, 1
  br i1 %.not1928, label %._crit_edge32, label %.lr.ph31.preheader

.lr.ph31.preheader:                               ; preds = %38
  %40 = add nuw i32 %39, 1
  %wide.trip.count41 = zext i32 %40 to i64
  br label %.lr.ph31

._crit_edge32:                                    ; preds = %61, %38
  ret void

.lr.ph31:                                         ; preds = %.lr.ph31.preheader, %61
  %indvars.iv38 = phi i64 [ 1, %.lr.ph31.preheader ], [ %indvars.iv.next39, %61 ]
  %41 = getelementptr inbounds [100010 x i32], ptr @L, i64 0, i64 %indvars.iv38
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = getelementptr inbounds [100010 x i32], ptr @R, i64 0, i64 %indvars.iv38
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %.not2023 = icmp sgt i32 %42, %44
  br i1 %.not2023, label %61, label %.lr.ph26

.lr.ph26:                                         ; preds = %.lr.ph31
  %45 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %indvars.iv38
  %.promoted = load i64, ptr %45, align 8, !tbaa !14
  %46 = sext i32 %42 to i64
  %47 = add i32 %44, 1
  %48 = trunc nuw nsw i64 %indvars.iv38 to i32
  %49 = sub i32 %44, %42
  %50 = zext i32 %49 to i64
  %51 = add nuw nsw i64 %50, 1
  %min.iters.check50 = icmp ult i32 %49, 3
  br i1 %min.iters.check50, label %scalar.ph49.preheader, label %vector.ph51

scalar.ph49.preheader:                            ; preds = %middle.block48, %.lr.ph26
  %indvars.iv34.ph = phi i64 [ %46, %.lr.ph26 ], [ %ind.end54, %middle.block48 ]
  %.ph = phi i64 [ %.promoted, %.lr.ph26 ], [ %60, %middle.block48 ]
  br label %scalar.ph49

vector.ph51:                                      ; preds = %.lr.ph26
  %n.vec53 = and i64 %51, 8589934588
  %ind.end54 = add nsw i64 %n.vec53, %46
  %52 = insertelement <2 x i64> <i64 poison, i64 0>, i64 %.promoted, i64 0
  %broadcast.splatinsert60 = insertelement <2 x i32> poison, i32 %48, i64 0
  %broadcast.splat61 = shufflevector <2 x i32> %broadcast.splatinsert60, <2 x i32> poison, <2 x i32> zeroinitializer
  br label %vector.body56

vector.body56:                                    ; preds = %vector.body56, %vector.ph51
  %index57 = phi i64 [ 0, %vector.ph51 ], [ %index.next63, %vector.body56 ]
  %vec.phi = phi <2 x i64> [ %52, %vector.ph51 ], [ %57, %vector.body56 ]
  %vec.phi58 = phi <2 x i64> [ zeroinitializer, %vector.ph51 ], [ %58, %vector.body56 ]
  %offset.idx59 = add i64 %index57, %46
  %53 = getelementptr inbounds [100010 x i32], ptr @pos, i64 0, i64 %offset.idx59
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  store <2 x i32> %broadcast.splat61, ptr %53, align 4, !tbaa !5
  store <2 x i32> %broadcast.splat61, ptr %54, align 4, !tbaa !5
  %55 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %offset.idx59
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %wide.load = load <2 x i64>, ptr %55, align 8, !tbaa !14
  %wide.load62 = load <2 x i64>, ptr %56, align 8, !tbaa !14
  %57 = add <2 x i64> %vec.phi, %wide.load
  %58 = add <2 x i64> %vec.phi58, %wide.load62
  %index.next63 = add nuw i64 %index57, 4
  %59 = icmp eq i64 %index.next63, %n.vec53
  br i1 %59, label %middle.block48, label %vector.body56, !llvm.loop !16

middle.block48:                                   ; preds = %vector.body56
  %bin.rdx = add <2 x i64> %58, %57
  %60 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n64 = icmp eq i64 %51, %n.vec53
  br i1 %cmp.n64, label %._crit_edge27, label %scalar.ph49.preheader

._crit_edge27:                                    ; preds = %scalar.ph49, %middle.block48
  %.lcssa = phi i64 [ %60, %middle.block48 ], [ %66, %scalar.ph49 ]
  store i64 %.lcssa, ptr %45, align 8, !tbaa !14
  br label %61

61:                                               ; preds = %._crit_edge27, %.lr.ph31
  %indvars.iv.next39 = add nuw nsw i64 %indvars.iv38, 1
  %exitcond42.not = icmp eq i64 %indvars.iv.next39, %wide.trip.count41
  br i1 %exitcond42.not, label %._crit_edge32, label %.lr.ph31, !llvm.loop !17

scalar.ph49:                                      ; preds = %scalar.ph49.preheader, %scalar.ph49
  %indvars.iv34 = phi i64 [ %indvars.iv.next35, %scalar.ph49 ], [ %indvars.iv34.ph, %scalar.ph49.preheader ]
  %62 = phi i64 [ %66, %scalar.ph49 ], [ %.ph, %scalar.ph49.preheader ]
  %63 = getelementptr inbounds [100010 x i32], ptr @pos, i64 0, i64 %indvars.iv34
  store i32 %48, ptr %63, align 4, !tbaa !5
  %64 = getelementptr inbounds [100010 x i64], ptr @a, i64 0, i64 %indvars.iv34
  %65 = load i64, ptr %64, align 8, !tbaa !14
  %66 = add nsw i64 %62, %65
  %indvars.iv.next35 = add nsw i64 %indvars.iv34, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next35 to i32
  %exitcond37.not = icmp eq i32 %47, %lftr.wideiv
  br i1 %exitcond37.not, label %._crit_edge27, label %scalar.ph49, !llvm.loop !18
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #2

attributes #0 = { mustprogress 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 mustprogress 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = !{!15, !15, i64 0}
!15 = !{!"long long", !7, i64 0}
!16 = distinct !{!16, !10, !11, !12}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10, !12, !11}


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