; LLVM IR from InnoFang/algo-set :: Data Structure/Sort/Radix Sort/main.ll (Z9radixSortRSt6vectorIiSaIiEE)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9radixSortRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(24) %0) #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca [10 x %"class.std::queue"], align 16
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %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
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %20 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %19, ptr %20, align 8
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  %23 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %22, ptr %23, align 8
  %24 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8
  %26 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8
  %28 = call ptr @_ZSt11max_elementIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr %25, ptr %27)
  %29 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %28, ptr %29, align 8
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %31 = load i32, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  store i32 %31, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 800, ptr %7) #5
  %32 = getelementptr inbounds [10 x %"class.std::queue"], ptr %7, i32 0, i32 0
  %33 = getelementptr inbounds %"class.std::queue", ptr %32, i64 10
  br label %34

34:                                               ; preds = %36, %1
  %35 = phi ptr [ %32, %1 ], [ %37, %36 ]
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %35)
          to label %36 unwind label %45

36:                                               ; preds = %34
  %37 = getelementptr inbounds %"class.std::queue", ptr %35, i64 1
  %38 = icmp eq ptr %37, %33
  br i1 %38, label %39, label %34

39:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 1, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 10, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %126, %39
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = load i32, ptr %3, align 4, !tbaa !9
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %55, label %44

44:                                               ; preds = %40
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %136

45:                                               ; preds = %34
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %8, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %9, align 4
  %49 = icmp eq ptr %32, %35
  br i1 %49, label %54, label %50

50:                                               ; preds = %50, %45
  %51 = phi ptr [ %35, %45 ], [ %52, %50 ]
  %52 = getelementptr inbounds %"class.std::queue", ptr %51, i64 -1
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %52) #5
  %53 = icmp eq ptr %52, %32
  br i1 %53, label %54, label %50

54:                                               ; preds = %50, %45
  br label %149

55:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %81, %55
  %57 = load i32, ptr %14, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #5
  %61 = icmp ult i64 %58, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %56
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %88

63:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = load i32, ptr %14, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %66) #5
  %68 = load i32, ptr %67, align 4, !tbaa !9
  %69 = load i32, ptr %11, align 4, !tbaa !9
  %70 = srem i32 %68, %69
  %71 = load i32, ptr %12, align 4, !tbaa !9
  %72 = sdiv i32 %70, %71
  store i32 %72, ptr %15, align 4, !tbaa !9
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [10 x %"class.std::queue"], ptr %7, i64 0, i64 %74
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = load i32, ptr %14, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %78) #5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %75, ptr noundef nonnull align 4 dereferenceable(4) %79)
          to label %80 unwind label %84

80:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %14, align 4, !tbaa !9
  br label %56, !llvm.loop !11

84:                                               ; preds = %63
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %8, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %133

88:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %122, %88
  %90 = load i32, ptr %17, align 4, !tbaa !9
  %91 = icmp slt i32 %90, 10
  br i1 %91, label %93, label %92

92:                                               ; preds = %89
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %125

93:                                               ; preds = %89
  br label %94

94:                                               ; preds = %116, %93
  %95 = load i32, ptr %17, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [10 x %"class.std::queue"], ptr %7, i64 0, i64 %96
  %98 = invoke noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %97)
          to label %99 unwind label %117

99:                                               ; preds = %94
  %100 = xor i1 %98, true
  br i1 %100, label %101, label %121

101:                                              ; preds = %99
  %102 = load i32, ptr %17, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [10 x %"class.std::queue"], ptr %7, i64 0, i64 %103
  %105 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %104)
          to label %106 unwind label %117

106:                                              ; preds = %101
  %107 = load i32, ptr %105, align 4, !tbaa !9
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  %109 = load i32, ptr %16, align 4, !tbaa !9
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %16, align 4, !tbaa !9
  %111 = sext i32 %109 to i64
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %111) #5
  store i32 %107, ptr %112, align 4, !tbaa !9
  %113 = load i32, ptr %17, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [10 x %"class.std::queue"], ptr %7, i64 0, i64 %114
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %115)
          to label %116 unwind label %117

116:                                              ; preds = %106
  br label %94, !llvm.loop !13

117:                                              ; preds = %106, %101, %94
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %8, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %133

121:                                              ; preds = %99
  br label %122

122:                                              ; preds = %121
  %123 = load i32, ptr %17, align 4, !tbaa !9
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %17, align 4, !tbaa !9
  br label %89, !llvm.loop !14

125:                                              ; preds = %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %10, align 4, !tbaa !9
  %128 = mul nsw i32 %127, 10
  store i32 %128, ptr %10, align 4, !tbaa !9
  %129 = load i32, ptr %11, align 4, !tbaa !9
  %130 = mul nsw i32 %129, 10
  store i32 %130, ptr %11, align 4, !tbaa !9
  %131 = load i32, ptr %12, align 4, !tbaa !9
  %132 = mul nsw i32 %131, 10
  store i32 %132, ptr %12, align 4, !tbaa !9
  br label %40, !llvm.loop !15

133:                                              ; preds = %117, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %134 = getelementptr inbounds [10 x %"class.std::queue"], ptr %7, i32 0, i32 0
  %135 = getelementptr inbounds %"class.std::queue", ptr %134, i64 10
  br label %144

136:                                              ; preds = %44
  %137 = getelementptr inbounds [10 x %"class.std::queue"], ptr %7, i32 0, i32 0
  %138 = getelementptr inbounds %"class.std::queue", ptr %137, i64 10
  br label %139

139:                                              ; preds = %139, %136
  %140 = phi ptr [ %138, %136 ], [ %141, %139 ]
  %141 = getelementptr inbounds %"class.std::queue", ptr %140, i64 -1
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %141) #5
  %142 = icmp eq ptr %141, %137
  br i1 %142, label %143, label %139

143:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 800, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void

144:                                              ; preds = %144, %133
  %145 = phi ptr [ %135, %133 ], [ %146, %144 ]
  %146 = getelementptr inbounds %"class.std::queue", ptr %145, i64 -1
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %146) #5
  %147 = icmp eq ptr %146, %134
  br i1 %147, label %148, label %144

148:                                              ; preds = %144
  br label %149

149:                                              ; preds = %148, %54
  call void @llvm.lifetime.end.p0(i64 800, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %150

150:                                              ; preds = %149
  %151 = load ptr, ptr %8, align 8
  %152 = load i32, ptr %9, align 4
  %153 = insertvalue { ptr, i32 } poison, ptr %151, 0
  %154 = insertvalue { ptr, i32 } %153, i32 %152, 1
  resume { ptr, i32 } %154
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11max_elementIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr, ptr) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 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: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #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) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) #3 align 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #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 = { 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ 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}
!15 = distinct !{!15, !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"

%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9radixSortRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(24) %0) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca [10 x %"class.std::queue"], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %4 = tail call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %5 = tail call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %6 = tail call ptr @_ZSt11max_elementIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr %4, ptr %5)
  store ptr %6, ptr %2, align 8
  %7 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %8 = load i32, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %3) #5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %.ptr.1 = getelementptr inbounds i8, ptr %3, i64 80
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.1)
          to label %9 unwind label %.preheader44.preheader

9:                                                ; preds = %1
  %.ptr.2 = getelementptr inbounds i8, ptr %3, i64 160
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.2)
          to label %10 unwind label %.preheader44.preheader

10:                                               ; preds = %9
  %.ptr.3 = getelementptr inbounds i8, ptr %3, i64 240
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.3)
          to label %11 unwind label %.preheader44.preheader

11:                                               ; preds = %10
  %.ptr.4 = getelementptr inbounds i8, ptr %3, i64 320
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.4)
          to label %12 unwind label %.preheader44.preheader

12:                                               ; preds = %11
  %.ptr.5 = getelementptr inbounds i8, ptr %3, i64 400
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.5)
          to label %13 unwind label %.preheader44.preheader

13:                                               ; preds = %12
  %.ptr.6 = getelementptr inbounds i8, ptr %3, i64 480
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.6)
          to label %14 unwind label %.preheader44.preheader

14:                                               ; preds = %13
  %.ptr.7 = getelementptr inbounds i8, ptr %3, i64 560
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.7)
          to label %15 unwind label %.preheader44.preheader

15:                                               ; preds = %14
  %.ptr.8 = getelementptr inbounds i8, ptr %3, i64 640
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.8)
          to label %16 unwind label %.preheader44.preheader

16:                                               ; preds = %15
  %.ptr.9 = getelementptr inbounds i8, ptr %3, i64 720
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.9)
          to label %.preheader43 unwind label %.preheader44.preheader

.preheader43:                                     ; preds = %16
  %17 = icmp sgt i32 %8, 1
  br i1 %17, label %.preheader42, label %.preheader

.preheader42:                                     ; preds = %.preheader43, %._crit_edge.9
  %.02955 = phi i32 [ %121, %._crit_edge.9 ], [ 1, %.preheader43 ]
  %.03054 = phi i32 [ %120, %._crit_edge.9 ], [ 10, %.preheader43 ]
  %.03153 = phi i32 [ %119, %._crit_edge.9 ], [ 1, %.preheader43 ]
  %18 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %.not = icmp eq i64 %18, 0
  br i1 %.not, label %.preheader41, label %.lr.ph

.preheader:                                       ; preds = %._crit_edge.9, %.preheader43
  %19 = getelementptr inbounds i8, ptr %3, i64 720
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %19) #5
  %20 = getelementptr inbounds i8, ptr %3, i64 640
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %20) #5
  %21 = getelementptr inbounds i8, ptr %3, i64 560
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %21) #5
  %22 = getelementptr inbounds i8, ptr %3, i64 480
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %22) #5
  %23 = getelementptr inbounds i8, ptr %3, i64 400
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %23) #5
  %24 = getelementptr inbounds i8, ptr %3, i64 320
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %24) #5
  %25 = getelementptr inbounds i8, ptr %3, i64 240
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %25) #5
  %26 = getelementptr inbounds i8, ptr %3, i64 160
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %26) #5
  %27 = getelementptr inbounds i8, ptr %3, i64 80
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %27) #5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #5
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %3) #5
  ret void

.preheader44.preheader:                           ; preds = %1, %9, %10, %11, %12, %13, %14, %15, %16
  %.ptr.lcssa.ph = phi ptr [ %.ptr.9, %16 ], [ %.ptr.8, %15 ], [ %.ptr.7, %14 ], [ %.ptr.6, %13 ], [ %.ptr.5, %12 ], [ %.ptr.4, %11 ], [ %.ptr.3, %10 ], [ %.ptr.2, %9 ], [ %.ptr.1, %1 ]
  %lpad.thr_comm = landingpad { ptr, i32 }
          cleanup
  br label %.preheader44

.preheader44:                                     ; preds = %.preheader44.preheader, %.preheader44
  %28 = phi ptr [ %29, %.preheader44 ], [ %.ptr.lcssa.ph, %.preheader44.preheader ]
  %29 = getelementptr inbounds i8, ptr %28, i64 -80
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %29) #5
  %30 = icmp eq ptr %29, %3
  br i1 %30, label %.loopexit, label %.preheader44

.preheader41:                                     ; preds = %39, %.preheader42
  %31 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %31, label %._crit_edge, label %.lr.ph50

.lr.ph:                                           ; preds = %.preheader42, %39
  %indvars.iv = phi i64 [ %indvars.iv.next, %39 ], [ 0, %.preheader42 ]
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #5
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = srem i32 %33, %.03054
  %35 = sdiv i32 %34, %.02955
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [10 x %"class.std::queue"], ptr %3, i64 0, i64 %36
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %37, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %39 unwind label %.loopexit.loopexit

39:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %40 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %41 = icmp ugt i64 %40, %indvars.iv.next
  br i1 %41, label %.lr.ph, label %.preheader41, !llvm.loop !9

.loopexit.loopexit:                               ; preds = %.lr.ph
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = getelementptr inbounds i8, ptr %3, i64 720
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %43) #5
  %44 = getelementptr inbounds i8, ptr %3, i64 640
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %44) #5
  %45 = getelementptr inbounds i8, ptr %3, i64 560
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %45) #5
  %46 = getelementptr inbounds i8, ptr %3, i64 480
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %46) #5
  %47 = getelementptr inbounds i8, ptr %3, i64 400
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %47) #5
  %48 = getelementptr inbounds i8, ptr %3, i64 320
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %48) #5
  %49 = getelementptr inbounds i8, ptr %3, i64 240
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %49) #5
  %50 = getelementptr inbounds i8, ptr %3, i64 160
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %50) #5
  %51 = getelementptr inbounds i8, ptr %3, i64 80
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %51) #5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #5
  br label %.loopexit

.lr.ph50:                                         ; preds = %.preheader41, %.lr.ph50
  %indvars.iv60 = phi i64 [ %indvars.iv.next61, %.lr.ph50 ], [ 0, %.preheader41 ]
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv60) #5
  store i32 %53, ptr %54, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %55 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %55, label %._crit_edge.loopexit, label %.lr.ph50, !llvm.loop !11

._crit_edge.loopexit:                             ; preds = %.lr.ph50
  %56 = trunc nsw i64 %indvars.iv.next61 to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader41
  %.1.lcssa = phi i32 [ 0, %.preheader41 ], [ %56, %._crit_edge.loopexit ]
  %57 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.1)
  br i1 %57, label %._crit_edge.1, label %.lr.ph50.preheader.1

.lr.ph50.preheader.1:                             ; preds = %._crit_edge
  %58 = sext i32 %.1.lcssa to i64
  br label %.lr.ph50.1

.lr.ph50.1:                                       ; preds = %.lr.ph50.1, %.lr.ph50.preheader.1
  %indvars.iv60.1 = phi i64 [ %58, %.lr.ph50.preheader.1 ], [ %indvars.iv.next61.1, %.lr.ph50.1 ]
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.1)
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %indvars.iv.next61.1 = add nsw i64 %indvars.iv60.1, 1
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv60.1) #5
  store i32 %60, ptr %61, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.1)
  %62 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.1)
  br i1 %62, label %._crit_edge.loopexit.1, label %.lr.ph50.1, !llvm.loop !11

._crit_edge.loopexit.1:                           ; preds = %.lr.ph50.1
  %63 = trunc nsw i64 %indvars.iv.next61.1 to i32
  br label %._crit_edge.1

._crit_edge.1:                                    ; preds = %._crit_edge.loopexit.1, %._crit_edge
  %.1.lcssa.1 = phi i32 [ %.1.lcssa, %._crit_edge ], [ %63, %._crit_edge.loopexit.1 ]
  %64 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.2)
  br i1 %64, label %._crit_edge.2, label %.lr.ph50.preheader.2

.lr.ph50.preheader.2:                             ; preds = %._crit_edge.1
  %65 = sext i32 %.1.lcssa.1 to i64
  br label %.lr.ph50.2

.lr.ph50.2:                                       ; preds = %.lr.ph50.2, %.lr.ph50.preheader.2
  %indvars.iv60.2 = phi i64 [ %65, %.lr.ph50.preheader.2 ], [ %indvars.iv.next61.2, %.lr.ph50.2 ]
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.2)
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %indvars.iv.next61.2 = add nsw i64 %indvars.iv60.2, 1
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv60.2) #5
  store i32 %67, ptr %68, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.2)
  %69 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.2)
  br i1 %69, label %._crit_edge.loopexit.2, label %.lr.ph50.2, !llvm.loop !11

._crit_edge.loopexit.2:                           ; preds = %.lr.ph50.2
  %70 = trunc nsw i64 %indvars.iv.next61.2 to i32
  br label %._crit_edge.2

._crit_edge.2:                                    ; preds = %._crit_edge.loopexit.2, %._crit_edge.1
  %.1.lcssa.2 = phi i32 [ %.1.lcssa.1, %._crit_edge.1 ], [ %70, %._crit_edge.loopexit.2 ]
  %71 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.3)
  br i1 %71, label %._crit_edge.3, label %.lr.ph50.preheader.3

.lr.ph50.preheader.3:                             ; preds = %._crit_edge.2
  %72 = sext i32 %.1.lcssa.2 to i64
  br label %.lr.ph50.3

.lr.ph50.3:                                       ; preds = %.lr.ph50.3, %.lr.ph50.preheader.3
  %indvars.iv60.3 = phi i64 [ %72, %.lr.ph50.preheader.3 ], [ %indvars.iv.next61.3, %.lr.ph50.3 ]
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.3)
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %indvars.iv.next61.3 = add nsw i64 %indvars.iv60.3, 1
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv60.3) #5
  store i32 %74, ptr %75, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.3)
  %76 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.3)
  br i1 %76, label %._crit_edge.loopexit.3, label %.lr.ph50.3, !llvm.loop !11

._crit_edge.loopexit.3:                           ; preds = %.lr.ph50.3
  %77 = trunc nsw i64 %indvars.iv.next61.3 to i32
  br label %._crit_edge.3

._crit_edge.3:                                    ; preds = %._crit_edge.loopexit.3, %._crit_edge.2
  %.1.lcssa.3 = phi i32 [ %.1.lcssa.2, %._crit_edge.2 ], [ %77, %._crit_edge.loopexit.3 ]
  %78 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.4)
  br i1 %78, label %._crit_edge.4, label %.lr.ph50.preheader.4

.lr.ph50.preheader.4:                             ; preds = %._crit_edge.3
  %79 = sext i32 %.1.lcssa.3 to i64
  br label %.lr.ph50.4

.lr.ph50.4:                                       ; preds = %.lr.ph50.4, %.lr.ph50.preheader.4
  %indvars.iv60.4 = phi i64 [ %79, %.lr.ph50.preheader.4 ], [ %indvars.iv.next61.4, %.lr.ph50.4 ]
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.4)
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %indvars.iv.next61.4 = add nsw i64 %indvars.iv60.4, 1
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv60.4) #5
  store i32 %81, ptr %82, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.4)
  %83 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.4)
  br i1 %83, label %._crit_edge.loopexit.4, label %.lr.ph50.4, !llvm.loop !11

._crit_edge.loopexit.4:                           ; preds = %.lr.ph50.4
  %84 = trunc nsw i64 %indvars.iv.next61.4 to i32
  br label %._crit_edge.4

._crit_edge.4:                                    ; preds = %._crit_edge.loopexit.4, %._crit_edge.3
  %.1.lcssa.4 = phi i32 [ %.1.lcssa.3, %._crit_edge.3 ], [ %84, %._crit_edge.loopexit.4 ]
  %85 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.5)
  br i1 %85, label %._crit_edge.5, label %.lr.ph50.preheader.5

.lr.ph50.preheader.5:                             ; preds = %._crit_edge.4
  %86 = sext i32 %.1.lcssa.4 to i64
  br label %.lr.ph50.5

.lr.ph50.5:                                       ; preds = %.lr.ph50.5, %.lr.ph50.preheader.5
  %indvars.iv60.5 = phi i64 [ %86, %.lr.ph50.preheader.5 ], [ %indvars.iv.next61.5, %.lr.ph50.5 ]
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.5)
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %indvars.iv.next61.5 = add nsw i64 %indvars.iv60.5, 1
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv60.5) #5
  store i32 %88, ptr %89, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.5)
  %90 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.5)
  br i1 %90, label %._crit_edge.loopexit.5, label %.lr.ph50.5, !llvm.loop !11

._crit_edge.loopexit.5:                           ; preds = %.lr.ph50.5
  %91 = trunc nsw i64 %indvars.iv.next61.5 to i32
  br label %._crit_edge.5

._crit_edge.5:                                    ; preds = %._crit_edge.loopexit.5, %._crit_edge.4
  %.1.lcssa.5 = phi i32 [ %.1.lcssa.4, %._crit_edge.4 ], [ %91, %._crit_edge.loopexit.5 ]
  %92 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.6)
  br i1 %92, label %._crit_edge.6, label %.lr.ph50.preheader.6

.lr.ph50.preheader.6:                             ; preds = %._crit_edge.5
  %93 = sext i32 %.1.lcssa.5 to i64
  br label %.lr.ph50.6

.lr.ph50.6:                                       ; preds = %.lr.ph50.6, %.lr.ph50.preheader.6
  %indvars.iv60.6 = phi i64 [ %93, %.lr.ph50.preheader.6 ], [ %indvars.iv.next61.6, %.lr.ph50.6 ]
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.6)
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %indvars.iv.next61.6 = add nsw i64 %indvars.iv60.6, 1
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv60.6) #5
  store i32 %95, ptr %96, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.6)
  %97 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.6)
  br i1 %97, label %._crit_edge.loopexit.6, label %.lr.ph50.6, !llvm.loop !11

._crit_edge.loopexit.6:                           ; preds = %.lr.ph50.6
  %98 = trunc nsw i64 %indvars.iv.next61.6 to i32
  br label %._crit_edge.6

._crit_edge.6:                                    ; preds = %._crit_edge.loopexit.6, %._crit_edge.5
  %.1.lcssa.6 = phi i32 [ %.1.lcssa.5, %._crit_edge.5 ], [ %98, %._crit_edge.loopexit.6 ]
  %99 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.7)
  br i1 %99, label %._crit_edge.7, label %.lr.ph50.preheader.7

.lr.ph50.preheader.7:                             ; preds = %._crit_edge.6
  %100 = sext i32 %.1.lcssa.6 to i64
  br label %.lr.ph50.7

.lr.ph50.7:                                       ; preds = %.lr.ph50.7, %.lr.ph50.preheader.7
  %indvars.iv60.7 = phi i64 [ %100, %.lr.ph50.preheader.7 ], [ %indvars.iv.next61.7, %.lr.ph50.7 ]
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.7)
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %indvars.iv.next61.7 = add nsw i64 %indvars.iv60.7, 1
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv60.7) #5
  store i32 %102, ptr %103, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.7)
  %104 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.7)
  br i1 %104, label %._crit_edge.loopexit.7, label %.lr.ph50.7, !llvm.loop !11

._crit_edge.loopexit.7:                           ; preds = %.lr.ph50.7
  %105 = trunc nsw i64 %indvars.iv.next61.7 to i32
  br label %._crit_edge.7

._crit_edge.7:                                    ; preds = %._crit_edge.loopexit.7, %._crit_edge.6
  %.1.lcssa.7 = phi i32 [ %.1.lcssa.6, %._crit_edge.6 ], [ %105, %._crit_edge.loopexit.7 ]
  %106 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.8)
  br i1 %106, label %._crit_edge.8, label %.lr.ph50.preheader.8

.lr.ph50.preheader.8:                             ; preds = %._crit_edge.7
  %107 = sext i32 %.1.lcssa.7 to i64
  br label %.lr.ph50.8

.lr.ph50.8:                                       ; preds = %.lr.ph50.8, %.lr.ph50.preheader.8
  %indvars.iv60.8 = phi i64 [ %107, %.lr.ph50.preheader.8 ], [ %indvars.iv.next61.8, %.lr.ph50.8 ]
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.8)
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %indvars.iv.next61.8 = add nsw i64 %indvars.iv60.8, 1
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv60.8) #5
  store i32 %109, ptr %110, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.8)
  %111 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.8)
  br i1 %111, label %._crit_edge.loopexit.8, label %.lr.ph50.8, !llvm.loop !11

._crit_edge.loopexit.8:                           ; preds = %.lr.ph50.8
  %112 = trunc nsw i64 %indvars.iv.next61.8 to i32
  br label %._crit_edge.8

._crit_edge.8:                                    ; preds = %._crit_edge.loopexit.8, %._crit_edge.7
  %.1.lcssa.8 = phi i32 [ %.1.lcssa.7, %._crit_edge.7 ], [ %112, %._crit_edge.loopexit.8 ]
  %113 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.9)
  br i1 %113, label %._crit_edge.9, label %.lr.ph50.preheader.9

.lr.ph50.preheader.9:                             ; preds = %._crit_edge.8
  %114 = sext i32 %.1.lcssa.8 to i64
  br label %.lr.ph50.9

.lr.ph50.9:                                       ; preds = %.lr.ph50.9, %.lr.ph50.preheader.9
  %indvars.iv60.9 = phi i64 [ %114, %.lr.ph50.preheader.9 ], [ %indvars.iv.next61.9, %.lr.ph50.9 ]
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.9)
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %indvars.iv.next61.9 = add nsw i64 %indvars.iv60.9, 1
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv60.9) #5
  store i32 %116, ptr %117, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.9)
  %118 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %.ptr.9)
  br i1 %118, label %._crit_edge.9, label %.lr.ph50.9, !llvm.loop !11

._crit_edge.9:                                    ; preds = %.lr.ph50.9, %._crit_edge.8
  %119 = mul nuw nsw i32 %.03153, 10
  %120 = mul nuw nsw i32 %.03054, 10
  %121 = mul nuw nsw i32 %.02955, 10
  %122 = icmp slt i32 %119, %8
  br i1 %122, label %.preheader42, label %.preheader, !llvm.loop !12

.loopexit:                                        ; preds = %.preheader44, %.loopexit.loopexit
  %.pn = phi { ptr, i32 } [ %42, %.loopexit.loopexit ], [ %lpad.thr_comm, %.preheader44 ]
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11max_elementIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr, ptr) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(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 @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 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: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) 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: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3 align 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #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 = { 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 #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 = distinct !{!12, !10}


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