; LLVM IR from Algo-Phantoms/Algo-Tree :: Code/C++/k_ary_heap.ll (Z11restoreDownPiiii)

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z11restoreDownPiiii(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %16 = load i32, ptr %8, align 4, !tbaa !9
  %17 = add nsw i32 %16, 1
  %18 = zext i32 %17 to i64
  %19 = call ptr @llvm.stacksave.p0()
  store ptr %19, ptr %9, align 8
  %20 = alloca i32, i64 %18, align 16
  store i64 %18, ptr %10, align 8
  br label %21

21:                                               ; preds = %120, %4
  br label %22

22:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %48, %22
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = load i32, ptr %8, align 4, !tbaa !9
  %26 = icmp sle i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %51

28:                                               ; preds = %23
  %29 = load i32, ptr %8, align 4, !tbaa !9
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = mul nsw i32 %29, %30
  %32 = load i32, ptr %11, align 4, !tbaa !9
  %33 = add nsw i32 %31, %32
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %36, label %42

36:                                               ; preds = %28
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = load i32, ptr %7, align 4, !tbaa !9
  %39 = mul nsw i32 %37, %38
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = add nsw i32 %39, %40
  br label %43

42:                                               ; preds = %28
  br label %43

43:                                               ; preds = %42, %36
  %44 = phi i32 [ %41, %36 ], [ -1, %42 ]
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds i32, ptr %20, i64 %46
  store i32 %44, ptr %47, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %43
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %11, align 4, !tbaa !9
  br label %23, !llvm.loop !11

51:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 -1, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %88, %51
  %53 = load i32, ptr %14, align 4, !tbaa !9
  %54 = load i32, ptr %8, align 4, !tbaa !9
  %55 = icmp sle i32 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %91

57:                                               ; preds = %52
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i32, ptr %20, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = icmp ne i32 %61, -1
  br i1 %62, label %63, label %87

63:                                               ; preds = %57
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = load i32, ptr %14, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds i32, ptr %20, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds i32, ptr %64, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = icmp sgt i32 %71, %72
  br i1 %73, label %74, label %87

74:                                               ; preds = %63
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i32, ptr %20, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !9
  store i32 %78, ptr %13, align 4, !tbaa !9
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds i32, ptr %20, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds i32, ptr %79, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !9
  store i32 %86, ptr %12, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %74, %63, %57
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %14, align 4, !tbaa !9
  br label %52, !llvm.loop !13

91:                                               ; preds = %56
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = icmp eq i32 %92, -1
  br i1 %93, label %94, label %95

94:                                               ; preds = %91
  store i32 3, ptr %15, align 4
  br label %118

95:                                               ; preds = %91
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = load i32, ptr %7, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds i32, ptr %96, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds i32, ptr %101, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = icmp slt i32 %100, %105
  br i1 %106, label %107, label %116

107:                                              ; preds = %95
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = load i32, ptr %7, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds i32, ptr %108, i64 %110
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = load i32, ptr %13, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i32, ptr %112, i64 %114
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %111, ptr noundef nonnull align 4 dereferenceable(4) %115) #4
  br label %116

116:                                              ; preds = %107, %95
  %117 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %117, ptr %7, align 4, !tbaa !9
  store i32 0, ptr %15, align 4
  br label %118

118:                                              ; preds = %116, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %119 = load i32, ptr %15, align 4
  switch i32 %119, label %123 [
    i32 0, label %120
    i32 3, label %121
  ]

120:                                              ; preds = %118
  br label %21, !llvm.loop !14

121:                                              ; preds = %118
  %122 = load ptr, ptr %9, align 8
  call void @llvm.stackrestore.p0(ptr %122)
  ret void

123:                                              ; preds = %118
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #1

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


; 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 nounwind uwtable
define dso_local void @_Z11restoreDownPiiii(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = add i32 %3, 1
  %6 = zext i32 %5 to i64
  %7 = alloca i32, i64 %6, align 16
  %.not4554 = icmp slt i32 %3, 1
  br i1 %.not4554, label %.split61, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %4
  %8 = sext i32 %1 to i64
  %9 = add nsw i64 %6, -1
  %min.iters.check = icmp ult i32 %5, 5
  %n.vec = and i64 %9, -4
  %ind.end = or disjoint i64 %n.vec, 1
  %broadcast.splatinsert72 = insertelement <4 x i64> poison, i64 %8, i64 0
  %broadcast.splat73 = shufflevector <4 x i64> %broadcast.splatinsert72, <4 x i64> poison, <4 x i32> zeroinitializer
  %cmp.n = icmp eq i64 %9, %n.vec
  %xtraiter = and i64 %9, 1
  %10 = icmp eq i32 %5, 2
  %unroll_iter = and i64 %9, -2
  %invariant.gep = getelementptr inbounds i8, ptr %7, i64 4
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.backedge, %.lr.ph.preheader
  %.038 = phi i32 [ %2, %.lr.ph.preheader ], [ %.2.lcssa, %.lr.ph.backedge ]
  %.034 = phi i32 [ undef, %.lr.ph.preheader ], [ %.2.lcssa, %.lr.ph.backedge ]
  %11 = mul nsw i32 %.038, %3
  %12 = sext i32 %11 to i64
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

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

vector.ph:                                        ; preds = %.lr.ph
  %broadcast.splatinsert = insertelement <4 x i64> poison, i64 %12, i64 0
  %broadcast.splat = shufflevector <4 x i64> %broadcast.splatinsert, <4 x i64> 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 i64> [ <i64 1, i64 2, i64 3, i64 4>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %13 = add nsw <4 x i64> %vec.ind, %broadcast.splat
  %14 = icmp slt <4 x i64> %13, %broadcast.splat73
  %15 = trunc <4 x i64> %13 to <4 x i32>
  %16 = select <4 x i1> %14, <4 x i32> %15, <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>
  %17 = getelementptr inbounds i32, ptr %7, i64 %offset.idx
  store <4 x i32> %16, ptr %17, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %vec.ind.next = add <4 x i64> %vec.ind, <i64 4, i64 4, i64 4, i64 4>
  %18 = icmp eq i64 %index.next, %n.vec
  br i1 %18, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %..preheader_crit_edge.preheader, label %scalar.ph.preheader

..preheader_crit_edge.preheader:                  ; preds = %scalar.ph, %middle.block
  br i1 %10, label %._crit_edge.unr-lcssa, label %..preheader_crit_edge

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %19 = add nsw i64 %indvars.iv, %12
  %20 = icmp slt i64 %19, %8
  %21 = trunc nsw i64 %19 to i32
  %spec.select = select i1 %20, i32 %21, i32 -1
  %22 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv
  store i32 %spec.select, ptr %22, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %6
  br i1 %exitcond.not, label %..preheader_crit_edge.preheader, label %scalar.ph, !llvm.loop !13

._crit_edge.unr-lcssa:                            ; preds = %44, %..preheader_crit_edge.preheader
  %.136.lcssa.ph = phi i32 [ poison, %..preheader_crit_edge.preheader ], [ %.136.1, %44 ]
  %.2.lcssa.ph = phi i32 [ poison, %..preheader_crit_edge.preheader ], [ %.2.1, %44 ]
  %indvars.iv67.unr = phi i64 [ 1, %..preheader_crit_edge.preheader ], [ %indvars.iv.next68.1, %44 ]
  %.156.unr = phi i32 [ %.034, %..preheader_crit_edge.preheader ], [ %.2.1, %44 ]
  %.03555.unr = phi i32 [ -1, %..preheader_crit_edge.preheader ], [ %.136.1, %44 ]
  br i1 %lcmp.mod.not, label %._crit_edge, label %..preheader_crit_edge.epil

..preheader_crit_edge.epil:                       ; preds = %._crit_edge.unr-lcssa
  %23 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv67.unr
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %.not46.epil = icmp eq i32 %24, -1
  br i1 %.not46.epil, label %._crit_edge, label %25

25:                                               ; preds = %..preheader_crit_edge.epil
  %26 = sext i32 %24 to i64
  %27 = getelementptr inbounds i32, ptr %0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = icmp sgt i32 %28, %.03555.unr
  %spec.select47.epil = tail call i32 @llvm.smax.i32(i32 %28, i32 %.03555.unr)
  %spec.select48.epil = select i1 %29, i32 %24, i32 %.156.unr
  br label %._crit_edge

._crit_edge:                                      ; preds = %..preheader_crit_edge.epil, %25, %._crit_edge.unr-lcssa
  %.136.lcssa = phi i32 [ %.136.lcssa.ph, %._crit_edge.unr-lcssa ], [ %.03555.unr, %..preheader_crit_edge.epil ], [ %spec.select47.epil, %25 ]
  %.2.lcssa = phi i32 [ %.2.lcssa.ph, %._crit_edge.unr-lcssa ], [ %.156.unr, %..preheader_crit_edge.epil ], [ %spec.select48.epil, %25 ]
  %30 = icmp eq i32 %.136.lcssa, -1
  br i1 %30, label %.split61, label %45

..preheader_crit_edge:                            ; preds = %..preheader_crit_edge.preheader, %44
  %indvars.iv67 = phi i64 [ %indvars.iv.next68.1, %44 ], [ 1, %..preheader_crit_edge.preheader ]
  %.156 = phi i32 [ %.2.1, %44 ], [ %.034, %..preheader_crit_edge.preheader ]
  %.03555 = phi i32 [ %.136.1, %44 ], [ -1, %..preheader_crit_edge.preheader ]
  %niter = phi i64 [ %niter.next.1, %44 ], [ 0, %..preheader_crit_edge.preheader ]
  %31 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv67
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %.not46 = icmp eq i32 %32, -1
  br i1 %.not46, label %..preheader_crit_edge.1, label %33

33:                                               ; preds = %..preheader_crit_edge
  %34 = sext i32 %32 to i64
  %35 = getelementptr inbounds i32, ptr %0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = icmp sgt i32 %36, %.03555
  %spec.select47 = tail call i32 @llvm.smax.i32(i32 %36, i32 %.03555)
  %spec.select48 = select i1 %37, i32 %32, i32 %.156
  br label %..preheader_crit_edge.1

..preheader_crit_edge.1:                          ; preds = %33, %..preheader_crit_edge
  %.136 = phi i32 [ %.03555, %..preheader_crit_edge ], [ %spec.select47, %33 ]
  %.2 = phi i32 [ %.156, %..preheader_crit_edge ], [ %spec.select48, %33 ]
  %gep = getelementptr inbounds i32, ptr %invariant.gep, i64 %indvars.iv67
  %38 = load i32, ptr %gep, align 4, !tbaa !5
  %.not46.1 = icmp eq i32 %38, -1
  br i1 %.not46.1, label %44, label %39

39:                                               ; preds = %..preheader_crit_edge.1
  %40 = sext i32 %38 to i64
  %41 = getelementptr inbounds i32, ptr %0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = icmp sgt i32 %42, %.136
  %spec.select47.1 = tail call i32 @llvm.smax.i32(i32 %42, i32 %.136)
  %spec.select48.1 = select i1 %43, i32 %38, i32 %.2
  br label %44

44:                                               ; preds = %39, %..preheader_crit_edge.1
  %.136.1 = phi i32 [ %.136, %..preheader_crit_edge.1 ], [ %spec.select47.1, %39 ]
  %.2.1 = phi i32 [ %.2, %..preheader_crit_edge.1 ], [ %spec.select48.1, %39 ]
  %indvars.iv.next68.1 = add nuw nsw i64 %indvars.iv67, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %..preheader_crit_edge, !llvm.loop !14

45:                                               ; preds = %._crit_edge
  %46 = sext i32 %.038 to i64
  %47 = getelementptr inbounds i32, ptr %0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = sext i32 %.2.lcssa to i64
  %50 = getelementptr inbounds i32, ptr %0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = icmp slt i32 %48, %51
  br i1 %52, label %53, label %.lr.ph.backedge

.lr.ph.backedge:                                  ; preds = %45, %53
  br label %.lr.ph

53:                                               ; preds = %45
  tail call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 4 dereferenceable(4) %50) #3
  br label %.lr.ph.backedge

.split61:                                         ; preds = %._crit_edge, %4
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #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) }
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, !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 = distinct !{!14, !10}


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