; LLVM IR from ADJA/algos :: Other (RadixSort)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@n = external dso_local global i32, align 4
@a = external dso_local global [105000 x i32], align 16
@buckets = external dso_local global [10 x %"class.std::vector"], align 16
@power = external dso_local global i32, align 4
@minNum = external dso_local global i32, align 4
@maxNum = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %23, %0
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %16 = icmp sle i32 %14, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %26

18:                                               ; preds = %13
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %20
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %21)
  br label %23

23:                                               ; preds = %18
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %2, align 4, !tbaa !5
  br label %13, !llvm.loop !9

26:                                               ; preds = %17
  %27 = load i32, ptr getelementptr inbounds ([105000 x i32], ptr @a, i64 0, i64 1), align 4, !tbaa !5
  store i32 %27, ptr @minNum, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 2, ptr %3, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %44, %26
  %29 = load i32, ptr %3, align 4, !tbaa !5
  %30 = load i32, ptr @n, align 4, !tbaa !5
  %31 = icmp sle i32 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %47

33:                                               ; preds = %28
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %35
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @minNum, ptr noundef nonnull align 4 dereferenceable(4) %36)
  %38 = load i32, ptr %37, align 4, !tbaa !5
  store i32 %38, ptr @minNum, align 4, !tbaa !5
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %40
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @maxNum, ptr noundef nonnull align 4 dereferenceable(4) %41)
  %43 = load i32, ptr %42, align 4, !tbaa !5
  store i32 %43, ptr @maxNum, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %33
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %3, align 4, !tbaa !5
  br label %28, !llvm.loop !11

47:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %60, %47
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = load i32, ptr @n, align 4, !tbaa !5
  %51 = icmp sle i32 %49, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %63

53:                                               ; preds = %48
  %54 = load i32, ptr @minNum, align 4, !tbaa !5
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = sub nsw i32 %58, %54
  store i32 %59, ptr %57, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %53
  %61 = load i32, ptr %4, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %4, align 4, !tbaa !5
  br label %48, !llvm.loop !12

63:                                               ; preds = %52
  br label %64

64:                                               ; preds = %141, %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %73, %64
  %66 = load i32, ptr %5, align 4, !tbaa !5
  %67 = icmp slt i32 %66, 10
  br i1 %67, label %69, label %68

68:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %76

69:                                               ; preds = %65
  %70 = load i32, ptr %5, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [10 x %"class.std::vector"], ptr @buckets, i64 0, i64 %71
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %72) #6
  br label %73

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

76:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %96, %76
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = load i32, ptr @n, align 4, !tbaa !5
  %80 = icmp sle i32 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %99

82:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %83 = load i32, ptr %6, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = load i32, ptr @power, align 4, !tbaa !5
  %88 = sdiv i32 %86, %87
  %89 = srem i32 %88, 10
  store i32 %89, ptr %7, align 4, !tbaa !5
  %90 = load i32, ptr %7, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [10 x %"class.std::vector"], ptr @buckets, i64 0, i64 %91
  %93 = load i32, ptr %6, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %94
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %92, ptr noundef nonnull align 4 dereferenceable(4) %95)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %96

96:                                               ; preds = %82
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %6, align 4, !tbaa !5
  br label %77, !llvm.loop !14

99:                                               ; preds = %81
  store i32 0, ptr @n, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %131, %99
  %101 = load i32, ptr %8, align 4, !tbaa !5
  %102 = icmp slt i32 %101, 10
  br i1 %102, label %104, label %103

103:                                              ; preds = %100
  store i32 19, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %134

104:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %127, %104
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = load i32, ptr %8, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [10 x %"class.std::vector"], ptr @buckets, i64 0, i64 %108
  %110 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %109) #6
  %111 = trunc i64 %110 to i32
  %112 = icmp slt i32 %106, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %105
  store i32 22, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %130

114:                                              ; preds = %105
  %115 = load i32, ptr @n, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr @n, align 4, !tbaa !5
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [10 x %"class.std::vector"], ptr @buckets, i64 0, i64 %118
  %120 = load i32, ptr %10, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %121) #6
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = load i32, ptr @n, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %125
  store i32 %123, ptr %126, align 4, !tbaa !5
  br label %127

127:                                              ; preds = %114
  %128 = load i32, ptr %10, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %10, align 4, !tbaa !5
  br label %105, !llvm.loop !15

130:                                              ; preds = %113
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %8, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %8, align 4, !tbaa !5
  br label %100, !llvm.loop !16

134:                                              ; preds = %103
  %135 = load i32, ptr @power, align 4, !tbaa !5
  %136 = mul nsw i32 %135, 10
  store i32 %136, ptr @power, align 4, !tbaa !5
  %137 = load i32, ptr @power, align 4, !tbaa !5
  %138 = load i32, ptr @maxNum, align 4, !tbaa !5
  %139 = icmp sgt i32 %137, %138
  br i1 %139, label %140, label %141

140:                                              ; preds = %134
  br label %142

141:                                              ; preds = %134
  br label %64, !llvm.loop !17

142:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %143

143:                                              ; preds = %156, %142
  %144 = load i32, ptr %11, align 4, !tbaa !5
  %145 = load i32, ptr @n, align 4, !tbaa !5
  %146 = icmp sle i32 %144, %145
  br i1 %146, label %148, label %147

147:                                              ; preds = %143
  store i32 25, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %159

148:                                              ; preds = %143
  %149 = load i32, ptr %11, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = load i32, ptr @minNum, align 4, !tbaa !5
  %154 = add nsw i32 %152, %153
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %154)
  br label %156

156:                                              ; preds = %148
  %157 = load i32, ptr %11, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %11, align 4, !tbaa !5
  br label %143, !llvm.loop !18

159:                                              ; preds = %147
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr 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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #5 align 2

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

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

declare i32 @printf(ptr noundef, ...) #1

attributes #0 = { mustprogress norecurse 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 = { "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 = { 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 = { 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 #5 = { 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 #6 = { 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 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !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"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@n = external dso_local global i32, align 4
@a = external dso_local global [105000 x i32], align 16
@buckets = external dso_local global [10 x %"class.std::vector"], align 16
@power = external dso_local local_unnamed_addr global i32, align 4
@minNum = external dso_local global i32, align 4
@maxNum = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %.not43 = icmp slt i32 %2, 1
  br i1 %.not43, label %.preheader42.thread, label %.lr.ph

.preheader42.thread:                              ; preds = %0
  %3 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 4), align 4, !tbaa !5
  store i32 %3, ptr @minNum, align 4, !tbaa !5
  br label %.preheader40.preheader

._crit_edge:                                      ; preds = %.lr.ph
  %4 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 4), align 4, !tbaa !5
  store i32 %4, ptr @minNum, align 4, !tbaa !5
  %.not3545 = icmp slt i32 %7, 2
  br i1 %.not3545, label %.preheader42, label %.lr.ph48

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %5 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %indvars.iv
  %6 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %5)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %.not.not = icmp slt i64 %indvars.iv, %8
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader42:                                     ; preds = %.lr.ph48, %._crit_edge
  %.lcssa = phi i32 [ %7, %._crit_edge ], [ %22, %.lr.ph48 ]
  %.not3649 = icmp slt i32 %.lcssa, 1
  br i1 %.not3649, label %.preheader40.preheader, label %.lr.ph51

.lr.ph51:                                         ; preds = %.preheader42
  %9 = load i32, ptr @minNum, align 4, !tbaa !5
  %10 = add nuw i32 %.lcssa, 1
  %wide.trip.count = zext i32 %10 to i64
  %11 = zext nneg i32 %.lcssa to i64
  %min.iters.check = icmp ult i32 %.lcssa, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

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

vector.ph:                                        ; preds = %.lr.ph51
  %n.vec = and i64 %11, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %9, 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 ]
  %offset.idx = or disjoint i64 %index, 1
  %12 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %offset.idx
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %wide.load = load <4 x i32>, ptr %12, align 4, !tbaa !5
  %wide.load106 = load <4 x i32>, ptr %13, align 4, !tbaa !5
  %14 = sub nsw <4 x i32> %wide.load, %broadcast.splat
  %15 = sub nsw <4 x i32> %wide.load106, %broadcast.splat
  store <4 x i32> %14, ptr %12, align 4, !tbaa !5
  store <4 x i32> %15, ptr %13, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %16 = icmp eq i64 %index.next, %n.vec
  br i1 %16, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %11
  br i1 %cmp.n, label %.preheader40.preheader, label %scalar.ph.preheader

.lr.ph48:                                         ; preds = %._crit_edge, %.lr.ph48
  %indvars.iv67 = phi i64 [ %indvars.iv.next68, %.lr.ph48 ], [ 2, %._crit_edge ]
  %17 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %indvars.iv67
  %18 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @minNum, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %19 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %19, ptr @minNum, align 4, !tbaa !5
  %20 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @maxNum, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %21 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %21, ptr @maxNum, align 4, !tbaa !5
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %.not35.not = icmp slt i64 %indvars.iv67, %23
  br i1 %.not35.not, label %.lr.ph48, label %.preheader42, !llvm.loop !14

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %scalar.ph ], [ %indvars.iv70.ph, %scalar.ph.preheader ]
  %24 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %indvars.iv70
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = sub nsw i32 %25, %9
  store i32 %26, ptr %24, align 4, !tbaa !5
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next71, %wide.trip.count
  br i1 %exitcond.not, label %.preheader40.preheader, label %scalar.ph, !llvm.loop !15

.preheader40.preheader:                           ; preds = %scalar.ph, %middle.block, %.preheader42.thread, %.preheader42
  br label %.preheader40

.preheader40:                                     ; preds = %.preheader40.preheader, %._crit_edge59.9
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @buckets) #5
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 24)) #5
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 48)) #5
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 72)) #5
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 96)) #5
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 120)) #5
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 144)) #5
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 168)) #5
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 192)) #5
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 216)) #5
  %27 = load i32, ptr @n, align 4, !tbaa !5
  %.not3753 = icmp slt i32 %27, 1
  br i1 %.not3753, label %._crit_edge56, label %.lr.ph55

._crit_edge56:                                    ; preds = %.lr.ph55, %.preheader40
  store i32 0, ptr @n, align 4, !tbaa !5
  %28 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @buckets) #5
  %29 = trunc i64 %28 to i32
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph58, label %._crit_edge59

.lr.ph55:                                         ; preds = %.preheader40, %.lr.ph55
  %indvars.iv77 = phi i64 [ %indvars.iv.next78, %.lr.ph55 ], [ 1, %.preheader40 ]
  %31 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %indvars.iv77
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = load i32, ptr @power, align 4, !tbaa !5
  %34 = sdiv i32 %32, %33
  %35 = srem i32 %34, 10
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [10 x %"class.std::vector"], ptr @buckets, i64 0, i64 %36
  tail call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 4 dereferenceable(4) %31)
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %38 = load i32, ptr @n, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %.not37.not = icmp slt i64 %indvars.iv77, %39
  br i1 %.not37.not, label %.lr.ph55, label %._crit_edge56, !llvm.loop !16

.preheader:                                       ; preds = %._crit_edge59.9
  %40 = load i32, ptr @n, align 4, !tbaa !5
  %.not3861 = icmp slt i32 %40, 1
  br i1 %.not3861, label %._crit_edge64, label %.lr.ph63

._crit_edge59:                                    ; preds = %.lr.ph58, %._crit_edge56
  %41 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 24)) #5
  %42 = trunc i64 %41 to i32
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.lr.ph58.1, label %._crit_edge59.1

.lr.ph58.1:                                       ; preds = %._crit_edge59, %.lr.ph58.1
  %indvars.iv80.1 = phi i64 [ %indvars.iv.next81.1, %.lr.ph58.1 ], [ 0, %._crit_edge59 ]
  %44 = load i32, ptr @n, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr @n, align 4, !tbaa !5
  %46 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 24), i64 noundef %indvars.iv80.1) #5
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = load i32, ptr @n, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %49
  store i32 %47, ptr %50, align 4, !tbaa !5
  %indvars.iv.next81.1 = add nuw nsw i64 %indvars.iv80.1, 1
  %51 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 24)) #5
  %sext90 = shl i64 %51, 32
  %52 = ashr exact i64 %sext90, 32
  %53 = icmp slt i64 %indvars.iv.next81.1, %52
  br i1 %53, label %.lr.ph58.1, label %._crit_edge59.1, !llvm.loop !17

._crit_edge59.1:                                  ; preds = %.lr.ph58.1, %._crit_edge59
  %54 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 48)) #5
  %55 = trunc i64 %54 to i32
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.lr.ph58.2, label %._crit_edge59.2

.lr.ph58.2:                                       ; preds = %._crit_edge59.1, %.lr.ph58.2
  %indvars.iv80.2 = phi i64 [ %indvars.iv.next81.2, %.lr.ph58.2 ], [ 0, %._crit_edge59.1 ]
  %57 = load i32, ptr @n, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr @n, align 4, !tbaa !5
  %59 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 48), i64 noundef %indvars.iv80.2) #5
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = load i32, ptr @n, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %62
  store i32 %60, ptr %63, align 4, !tbaa !5
  %indvars.iv.next81.2 = add nuw nsw i64 %indvars.iv80.2, 1
  %64 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 48)) #5
  %sext91 = shl i64 %64, 32
  %65 = ashr exact i64 %sext91, 32
  %66 = icmp slt i64 %indvars.iv.next81.2, %65
  br i1 %66, label %.lr.ph58.2, label %._crit_edge59.2, !llvm.loop !17

._crit_edge59.2:                                  ; preds = %.lr.ph58.2, %._crit_edge59.1
  %67 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 72)) #5
  %68 = trunc i64 %67 to i32
  %69 = icmp sgt i32 %68, 0
  br i1 %69, label %.lr.ph58.3, label %._crit_edge59.3

.lr.ph58.3:                                       ; preds = %._crit_edge59.2, %.lr.ph58.3
  %indvars.iv80.3 = phi i64 [ %indvars.iv.next81.3, %.lr.ph58.3 ], [ 0, %._crit_edge59.2 ]
  %70 = load i32, ptr @n, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr @n, align 4, !tbaa !5
  %72 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 72), i64 noundef %indvars.iv80.3) #5
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = load i32, ptr @n, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %75
  store i32 %73, ptr %76, align 4, !tbaa !5
  %indvars.iv.next81.3 = add nuw nsw i64 %indvars.iv80.3, 1
  %77 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 72)) #5
  %sext92 = shl i64 %77, 32
  %78 = ashr exact i64 %sext92, 32
  %79 = icmp slt i64 %indvars.iv.next81.3, %78
  br i1 %79, label %.lr.ph58.3, label %._crit_edge59.3, !llvm.loop !17

._crit_edge59.3:                                  ; preds = %.lr.ph58.3, %._crit_edge59.2
  %80 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 96)) #5
  %81 = trunc i64 %80 to i32
  %82 = icmp sgt i32 %81, 0
  br i1 %82, label %.lr.ph58.4, label %._crit_edge59.4

.lr.ph58.4:                                       ; preds = %._crit_edge59.3, %.lr.ph58.4
  %indvars.iv80.4 = phi i64 [ %indvars.iv.next81.4, %.lr.ph58.4 ], [ 0, %._crit_edge59.3 ]
  %83 = load i32, ptr @n, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr @n, align 4, !tbaa !5
  %85 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 96), i64 noundef %indvars.iv80.4) #5
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = load i32, ptr @n, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %88
  store i32 %86, ptr %89, align 4, !tbaa !5
  %indvars.iv.next81.4 = add nuw nsw i64 %indvars.iv80.4, 1
  %90 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 96)) #5
  %sext93 = shl i64 %90, 32
  %91 = ashr exact i64 %sext93, 32
  %92 = icmp slt i64 %indvars.iv.next81.4, %91
  br i1 %92, label %.lr.ph58.4, label %._crit_edge59.4, !llvm.loop !17

._crit_edge59.4:                                  ; preds = %.lr.ph58.4, %._crit_edge59.3
  %93 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 120)) #5
  %94 = trunc i64 %93 to i32
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %.lr.ph58.5, label %._crit_edge59.5

.lr.ph58.5:                                       ; preds = %._crit_edge59.4, %.lr.ph58.5
  %indvars.iv80.5 = phi i64 [ %indvars.iv.next81.5, %.lr.ph58.5 ], [ 0, %._crit_edge59.4 ]
  %96 = load i32, ptr @n, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr @n, align 4, !tbaa !5
  %98 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 120), i64 noundef %indvars.iv80.5) #5
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = load i32, ptr @n, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %101
  store i32 %99, ptr %102, align 4, !tbaa !5
  %indvars.iv.next81.5 = add nuw nsw i64 %indvars.iv80.5, 1
  %103 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 120)) #5
  %sext94 = shl i64 %103, 32
  %104 = ashr exact i64 %sext94, 32
  %105 = icmp slt i64 %indvars.iv.next81.5, %104
  br i1 %105, label %.lr.ph58.5, label %._crit_edge59.5, !llvm.loop !17

._crit_edge59.5:                                  ; preds = %.lr.ph58.5, %._crit_edge59.4
  %106 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 144)) #5
  %107 = trunc i64 %106 to i32
  %108 = icmp sgt i32 %107, 0
  br i1 %108, label %.lr.ph58.6, label %._crit_edge59.6

.lr.ph58.6:                                       ; preds = %._crit_edge59.5, %.lr.ph58.6
  %indvars.iv80.6 = phi i64 [ %indvars.iv.next81.6, %.lr.ph58.6 ], [ 0, %._crit_edge59.5 ]
  %109 = load i32, ptr @n, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr @n, align 4, !tbaa !5
  %111 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 144), i64 noundef %indvars.iv80.6) #5
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = load i32, ptr @n, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %114
  store i32 %112, ptr %115, align 4, !tbaa !5
  %indvars.iv.next81.6 = add nuw nsw i64 %indvars.iv80.6, 1
  %116 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 144)) #5
  %sext95 = shl i64 %116, 32
  %117 = ashr exact i64 %sext95, 32
  %118 = icmp slt i64 %indvars.iv.next81.6, %117
  br i1 %118, label %.lr.ph58.6, label %._crit_edge59.6, !llvm.loop !17

._crit_edge59.6:                                  ; preds = %.lr.ph58.6, %._crit_edge59.5
  %119 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 168)) #5
  %120 = trunc i64 %119 to i32
  %121 = icmp sgt i32 %120, 0
  br i1 %121, label %.lr.ph58.7, label %._crit_edge59.7

.lr.ph58.7:                                       ; preds = %._crit_edge59.6, %.lr.ph58.7
  %indvars.iv80.7 = phi i64 [ %indvars.iv.next81.7, %.lr.ph58.7 ], [ 0, %._crit_edge59.6 ]
  %122 = load i32, ptr @n, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr @n, align 4, !tbaa !5
  %124 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 168), i64 noundef %indvars.iv80.7) #5
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = load i32, ptr @n, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %127
  store i32 %125, ptr %128, align 4, !tbaa !5
  %indvars.iv.next81.7 = add nuw nsw i64 %indvars.iv80.7, 1
  %129 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 168)) #5
  %sext96 = shl i64 %129, 32
  %130 = ashr exact i64 %sext96, 32
  %131 = icmp slt i64 %indvars.iv.next81.7, %130
  br i1 %131, label %.lr.ph58.7, label %._crit_edge59.7, !llvm.loop !17

._crit_edge59.7:                                  ; preds = %.lr.ph58.7, %._crit_edge59.6
  %132 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 192)) #5
  %133 = trunc i64 %132 to i32
  %134 = icmp sgt i32 %133, 0
  br i1 %134, label %.lr.ph58.8, label %._crit_edge59.8

.lr.ph58.8:                                       ; preds = %._crit_edge59.7, %.lr.ph58.8
  %indvars.iv80.8 = phi i64 [ %indvars.iv.next81.8, %.lr.ph58.8 ], [ 0, %._crit_edge59.7 ]
  %135 = load i32, ptr @n, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr @n, align 4, !tbaa !5
  %137 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 192), i64 noundef %indvars.iv80.8) #5
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = load i32, ptr @n, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %140
  store i32 %138, ptr %141, align 4, !tbaa !5
  %indvars.iv.next81.8 = add nuw nsw i64 %indvars.iv80.8, 1
  %142 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 192)) #5
  %sext97 = shl i64 %142, 32
  %143 = ashr exact i64 %sext97, 32
  %144 = icmp slt i64 %indvars.iv.next81.8, %143
  br i1 %144, label %.lr.ph58.8, label %._crit_edge59.8, !llvm.loop !17

._crit_edge59.8:                                  ; preds = %.lr.ph58.8, %._crit_edge59.7
  %145 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 216)) #5
  %146 = trunc i64 %145 to i32
  %147 = icmp sgt i32 %146, 0
  br i1 %147, label %.lr.ph58.9, label %._crit_edge59.9

.lr.ph58.9:                                       ; preds = %._crit_edge59.8, %.lr.ph58.9
  %indvars.iv80.9 = phi i64 [ %indvars.iv.next81.9, %.lr.ph58.9 ], [ 0, %._crit_edge59.8 ]
  %148 = load i32, ptr @n, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr @n, align 4, !tbaa !5
  %150 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 216), i64 noundef %indvars.iv80.9) #5
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = load i32, ptr @n, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %153
  store i32 %151, ptr %154, align 4, !tbaa !5
  %indvars.iv.next81.9 = add nuw nsw i64 %indvars.iv80.9, 1
  %155 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @buckets, i64 216)) #5
  %sext98 = shl i64 %155, 32
  %156 = ashr exact i64 %sext98, 32
  %157 = icmp slt i64 %indvars.iv.next81.9, %156
  br i1 %157, label %.lr.ph58.9, label %._crit_edge59.9, !llvm.loop !17

._crit_edge59.9:                                  ; preds = %.lr.ph58.9, %._crit_edge59.8
  %158 = load i32, ptr @power, align 4, !tbaa !5
  %159 = mul nsw i32 %158, 10
  store i32 %159, ptr @power, align 4, !tbaa !5
  %160 = load i32, ptr @maxNum, align 4, !tbaa !5
  %161 = icmp sgt i32 %159, %160
  br i1 %161, label %.preheader, label %.preheader40, !llvm.loop !18

.lr.ph58:                                         ; preds = %._crit_edge56, %.lr.ph58
  %indvars.iv80 = phi i64 [ %indvars.iv.next81, %.lr.ph58 ], [ 0, %._crit_edge56 ]
  %162 = load i32, ptr @n, align 4, !tbaa !5
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr @n, align 4, !tbaa !5
  %164 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @buckets, i64 noundef %indvars.iv80) #5
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = load i32, ptr @n, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %167
  store i32 %165, ptr %168, align 4, !tbaa !5
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %169 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @buckets) #5
  %sext = shl i64 %169, 32
  %170 = ashr exact i64 %sext, 32
  %171 = icmp slt i64 %indvars.iv.next81, %170
  br i1 %171, label %.lr.ph58, label %._crit_edge59, !llvm.loop !17

._crit_edge64:                                    ; preds = %.lr.ph63, %.preheader
  ret i32 0

.lr.ph63:                                         ; preds = %.preheader, %.lr.ph63
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %.lr.ph63 ], [ 1, %.preheader ]
  %172 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %indvars.iv87
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = load i32, ptr @minNum, align 4, !tbaa !5
  %175 = add nsw i32 %174, %173
  %176 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %175)
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %177 = load i32, ptr @n, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %.not38.not = icmp slt i64 %indvars.iv87, %178
  br i1 %.not38.not, label %.lr.ph63, label %._crit_edge64, !llvm.loop !19
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

attributes #0 = { mustprogress norecurse 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 = { nofree 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 = { 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 = { 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 = { 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 #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 = !{!"int", !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, !13}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10, !13, !12}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


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