; LLVM IR from Mohammed-Shoaib/Coding-Problems :: Google/Code Jam/2021/Round 1A/B.ll (Z10prime_timeiRSt6vectorIlSaIlEES2_)

; 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 uwtable
define dso_local noundef i64 @_Z10prime_timeiRSt6vectorIlSaIlEES2_(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store i64 0, ptr %8, align 8, !tbaa !11
  store i64 0, ptr %7, align 8, !tbaa !11
  store i64 30000, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %37, %3
  %19 = load i32, ptr %10, align 4, !tbaa !5
  %20 = load i32, ptr %4, align 4, !tbaa !5
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %40

23:                                               ; preds = %18
  %24 = load ptr, ptr %5, align 8, !tbaa !9
  %25 = load i32, ptr %10, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %26) #4
  %28 = load i64, ptr %27, align 8, !tbaa !11
  %29 = load ptr, ptr %6, align 8, !tbaa !9
  %30 = load i32, ptr %10, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %31) #4
  %33 = load i64, ptr %32, align 8, !tbaa !11
  %34 = mul nsw i64 %28, %33
  %35 = load i64, ptr %8, align 8, !tbaa !11
  %36 = add nsw i64 %35, %34
  store i64 %36, ptr %8, align 8, !tbaa !11
  br label %37

37:                                               ; preds = %23
  %38 = load i32, ptr %10, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %10, align 4, !tbaa !5
  br label %18, !llvm.loop !13

40:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 2, ptr %11, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %124, %40
  %42 = load i32, ptr %11, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = load i64, ptr %8, align 8, !tbaa !11
  %45 = icmp slt i64 %43, %44
  br i1 %45, label %46, label %51

46:                                               ; preds = %41
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = load i64, ptr %9, align 8, !tbaa !11
  %50 = icmp sle i64 %48, %49
  br label %51

51:                                               ; preds = %46, %41
  %52 = phi i1 [ false, %41 ], [ %50, %46 ]
  br i1 %52, label %54, label %53

53:                                               ; preds = %51
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %127

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %55 = load i32, ptr %11, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  store i64 %56, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %57 = load i64, ptr %8, align 8, !tbaa !11
  %58 = load i32, ptr %11, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = sub nsw i64 %57, %59
  store i64 %60, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %107, %54
  %62 = load i32, ptr %15, align 4, !tbaa !5
  %63 = load i32, ptr %4, align 4, !tbaa !5
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %110

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %103, %66
  %68 = load i32, ptr %16, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = load ptr, ptr %6, align 8, !tbaa !9
  %71 = load i32, ptr %15, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %72) #4
  %74 = load i64, ptr %73, align 8, !tbaa !11
  %75 = icmp slt i64 %69, %74
  br i1 %75, label %76, label %85

76:                                               ; preds = %67
  %77 = load i64, ptr %14, align 8, !tbaa !11
  %78 = load ptr, ptr %5, align 8, !tbaa !9
  %79 = load i32, ptr %15, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %80) #4
  %82 = load i64, ptr %81, align 8, !tbaa !11
  %83 = srem i64 %77, %82
  %84 = icmp eq i64 %83, 0
  br label %85

85:                                               ; preds = %76, %67
  %86 = phi i1 [ false, %67 ], [ %84, %76 ]
  br i1 %86, label %88, label %87

87:                                               ; preds = %85
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %106

88:                                               ; preds = %85
  %89 = load ptr, ptr %5, align 8, !tbaa !9
  %90 = load i32, ptr %15, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %91) #4
  %93 = load i64, ptr %92, align 8, !tbaa !11
  %94 = load i64, ptr %13, align 8, !tbaa !11
  %95 = sub nsw i64 %94, %93
  store i64 %95, ptr %13, align 8, !tbaa !11
  %96 = load ptr, ptr %5, align 8, !tbaa !9
  %97 = load i32, ptr %15, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %98) #4
  %100 = load i64, ptr %99, align 8, !tbaa !11
  %101 = load i64, ptr %14, align 8, !tbaa !11
  %102 = sdiv i64 %101, %100
  store i64 %102, ptr %14, align 8, !tbaa !11
  br label %103

103:                                              ; preds = %88
  %104 = load i32, ptr %16, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %16, align 4, !tbaa !5
  br label %67, !llvm.loop !15

106:                                              ; preds = %87
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %15, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %15, align 4, !tbaa !5
  br label %61, !llvm.loop !16

110:                                              ; preds = %65
  %111 = load i64, ptr %13, align 8, !tbaa !11
  %112 = icmp eq i64 %111, 0
  br i1 %112, label %113, label %123

113:                                              ; preds = %110
  %114 = load i64, ptr %14, align 8, !tbaa !11
  %115 = icmp eq i64 %114, 1
  br i1 %115, label %116, label %123

116:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %117 = load i64, ptr %8, align 8, !tbaa !11
  %118 = load i32, ptr %11, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = sub nsw i64 %117, %119
  store i64 %120, ptr %17, align 8, !tbaa !11
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %122 = load i64, ptr %121, align 8, !tbaa !11
  store i64 %122, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %123

123:                                              ; preds = %116, %113, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %11, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %11, align 4, !tbaa !5
  br label %41, !llvm.loop !17

127:                                              ; preds = %53
  %128 = load i64, ptr %7, align 8, !tbaa !11
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret i64 %128
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

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

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


; 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 noundef i64 @_Z10prime_timeiRSt6vectorIlSaIlEES2_(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #0 {
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  store i64 0, ptr %4, align 8, !tbaa !5
  %6 = icmp slt i32 %0, 1
  br i1 %6, label %._crit_edge64, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %3
  %wide.trip.count = zext nneg i32 %0 to i64
  br label %.lr.ph

.preheader45:                                     ; preds = %.lr.ph
  %7 = icmp slt i64 %39, 3
  %brmerge = or i1 %7, %6
  br i1 %brmerge, label %._crit_edge64, label %.preheader.lr.ph.us.preheader

.preheader.lr.ph.us.preheader:                    ; preds = %.preheader45
  %8 = add nsw i64 %39, -3
  %umin = tail call i64 @llvm.umin.i64(i64 %8, i64 29998)
  %wide.trip.count76 = zext nneg i32 %0 to i64
  %9 = add nuw nsw i64 %umin, 2
  br label %.preheader.lr.ph.us

.preheader.lr.ph.us:                              ; preds = %.preheader.lr.ph.us.preheader, %14
  %indvars.iv78 = phi i64 [ 2, %.preheader.lr.ph.us.preheader ], [ %indvars.iv.next79, %14 ]
  %10 = sub nsw i64 %39, %indvars.iv78
  br label %.preheader.us

11:                                               ; preds = %._crit_edge.us
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  store i64 %10, ptr %5, align 8, !tbaa !5
  %12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %13 = load i64, ptr %12, align 8, !tbaa !5
  store i64 %13, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %14

14:                                               ; preds = %11, %._crit_edge.us
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %exitcond81.not = icmp eq i64 %indvars.iv78, %9
  br i1 %exitcond81.not, label %._crit_edge64.loopexit, label %.preheader.lr.ph.us, !llvm.loop !9

.lr.ph51.us:                                      ; preds = %.preheader.us, %19
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %19 ], [ 0, %.preheader.us ]
  %.149.us = phi i64 [ %25, %19 ], [ %.03758.us, %.preheader.us ]
  %.13948.us = phi i64 [ %22, %19 ], [ %.03857.us, %.preheader.us ]
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv73) #4
  %16 = load i64, ptr %15, align 8, !tbaa !5
  %17 = srem i64 %.149.us, %16
  %18 = icmp eq i64 %17, 0
  br i1 %18, label %19, label %.critedge.us

.critedge.us:                                     ; preds = %.lr.ph51.us, %19, %.preheader.us
  %.139.lcssa.us = phi i64 [ %.03857.us, %.preheader.us ], [ %22, %19 ], [ %.13948.us, %.lr.ph51.us ]
  %.1.lcssa.us = phi i64 [ %.03758.us, %.preheader.us ], [ %25, %19 ], [ %.149.us, %.lr.ph51.us ]
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %exitcond77.not = icmp eq i64 %indvars.iv.next74, %wide.trip.count76
  br i1 %exitcond77.not, label %._crit_edge.us, label %.preheader.us, !llvm.loop !11

19:                                               ; preds = %.lr.ph51.us
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv73) #4
  %21 = load i64, ptr %20, align 8, !tbaa !5
  %22 = sub nsw i64 %.13948.us, %21
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv73) #4
  %24 = load i64, ptr %23, align 8, !tbaa !5
  %25 = sdiv i64 %.149.us, %24
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv73) #4
  %27 = load i64, ptr %26, align 8, !tbaa !5
  %28 = icmp sgt i64 %27, %indvars.iv.next71
  br i1 %28, label %.lr.ph51.us, label %.critedge.us, !llvm.loop !12

.preheader.us:                                    ; preds = %.preheader.lr.ph.us, %.critedge.us
  %indvars.iv73 = phi i64 [ 0, %.preheader.lr.ph.us ], [ %indvars.iv.next74, %.critedge.us ]
  %.03758.us = phi i64 [ %10, %.preheader.lr.ph.us ], [ %.1.lcssa.us, %.critedge.us ]
  %.03857.us = phi i64 [ %indvars.iv78, %.preheader.lr.ph.us ], [ %.139.lcssa.us, %.critedge.us ]
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv73) #4
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %31 = icmp sgt i64 %30, 0
  br i1 %31, label %.lr.ph51.us, label %.critedge.us

._crit_edge.us:                                   ; preds = %.critedge.us
  %32 = icmp eq i64 %.139.lcssa.us, 0
  %33 = icmp eq i64 %.1.lcssa.us, 1
  %or.cond.us = select i1 %32, i1 %33, i1 false
  br i1 %or.cond.us, label %11, label %14

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.04246 = phi i64 [ 0, %.lr.ph.preheader ], [ %39, %.lr.ph ]
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #4
  %35 = load i64, ptr %34, align 8, !tbaa !5
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %37 = load i64, ptr %36, align 8, !tbaa !5
  %38 = mul nsw i64 %37, %35
  %39 = add nsw i64 %38, %.04246
  %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 %.preheader45, label %.lr.ph, !llvm.loop !13

._crit_edge64.loopexit:                           ; preds = %14
  %.pre = load i64, ptr %4, align 8, !tbaa !5
  br label %._crit_edge64

._crit_edge64:                                    ; preds = %.preheader45, %3, %._crit_edge64.loopexit
  %40 = phi i64 [ %.pre, %._crit_edge64.loopexit ], [ 0, %.preheader45 ], [ 0, %3 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  ret i64 %40
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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


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