; LLVM IR from Tudor67/Competitive-Programming :: Infoarena/ArhivaEducationala/#019_RadixSort/radixsort_sol1_buckets_TLE_70_puncte.l_5e8c4f2b (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.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::queue<int>, std::allocator<std::queue<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::queue<int>, std::allocator<std::queue<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::queue<int>, std::allocator<std::queue<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::queue<int>, std::allocator<std::queue<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }

; 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 i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.0", align 8
  %8 = alloca %"class.std::allocator.2", align 1
  %9 = alloca ptr, align 8
  %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
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #3
  %19 = trunc i64 %18 to i32
  store i32 %19, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 31, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 8, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 256, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  call void @_ZNSaISt5queueIiSt5dequeIiSaIiEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
  invoke void @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEC2EmRKS5_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 256, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %20 unwind label %25

20:                                               ; preds = %1
  call void @_ZNSt15__new_allocatorISt5queueIiSt5dequeIiSaIiEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %97, %20
  %22 = load i32, ptr %11, align 4, !tbaa !9
  %23 = icmp slt i32 %22, 31
  br i1 %23, label %29, label %24

24:                                               ; preds = %21
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %101

25:                                               ; preds = %1
  %26 = landingpad { ptr, i32 }
          cleanup
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %9, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %10, align 4
  call void @_ZNSt15__new_allocatorISt5queueIiSt5dequeIiSaIiEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  br label %102

29:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %52, %29
  %31 = load i32, ptr %13, align 4, !tbaa !9
  %32 = load i32, ptr %3, align 4, !tbaa !9
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %35, label %34

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

35:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = load i32, ptr %13, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %38) #3
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = load i32, ptr %11, align 4, !tbaa !9
  %42 = ashr i32 %40, %41
  %43 = and i32 %42, 255
  store i32 %43, ptr %14, align 4, !tbaa !9
  %44 = load i32, ptr %14, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %45) #3
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = load i32, ptr %13, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %49) #3
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %46, ptr noundef nonnull align 4 dereferenceable(4) %50)
          to label %51 unwind label %55

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

52:                                               ; preds = %51
  %53 = load i32, ptr %13, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %13, align 4, !tbaa !9
  br label %30, !llvm.loop !11

55:                                               ; preds = %35
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %9, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %100

59:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 -1, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %93, %59
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = icmp slt i32 %61, 256
  br i1 %62, label %64, label %63

63:                                               ; preds = %60
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  br label %96

64:                                               ; preds = %60
  br label %65

65:                                               ; preds = %87, %64
  %66 = load i32, ptr %16, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %67) #3
  %69 = invoke noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %68)
          to label %70 unwind label %88

70:                                               ; preds = %65
  %71 = xor i1 %69, true
  br i1 %71, label %72, label %92

72:                                               ; preds = %70
  %73 = load i32, ptr %16, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %74) #3
  %76 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %75)
          to label %77 unwind label %88

77:                                               ; preds = %72
  %78 = load i32, ptr %76, align 4, !tbaa !9
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = load i32, ptr %15, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %15, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %82) #3
  store i32 %78, ptr %83, align 4, !tbaa !9
  %84 = load i32, ptr %16, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %85) #3
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %86)
          to label %87 unwind label %88

87:                                               ; preds = %77
  br label %65, !llvm.loop !13

88:                                               ; preds = %77, %72, %65
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %9, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %100

92:                                               ; preds = %70
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %16, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %16, align 4, !tbaa !9
  br label %60, !llvm.loop !14

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

97:                                               ; preds = %96
  %98 = load i32, ptr %11, align 4, !tbaa !9
  %99 = add nsw i32 %98, 8
  store i32 %99, ptr %11, align 4, !tbaa !9
  br label %21, !llvm.loop !15

100:                                              ; preds = %88, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  br label %102

101:                                              ; preds = %24
  call void @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void

102:                                              ; preds = %100, %25
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %103

103:                                              ; preds = %102
  %104 = load ptr, ptr %9, align 8
  %105 = load i32, ptr %10, align 4
  %106 = insertvalue { ptr, i32 } poison, ptr %104, 0
  %107 = insertvalue { ptr, i32 } %106, i32 %105, 1
  resume { ptr, i32 } %107
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt5queueIiSt5dequeIiSaIiEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEC2EmRKS5_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; 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) #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt5queueIiSt5dequeIiSaIiEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { 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 = { 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.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::queue<int>, std::allocator<std::queue<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::queue<int>, std::allocator<std::queue<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::queue<int>, std::allocator<std::queue<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::queue<int>, std::allocator<std::queue<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }

; 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.std::vector.0", align 8
  %3 = alloca %"class.std::allocator.2", align 1
  %4 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #3
  call void @_ZNSaISt5queueIiSt5dequeIiSaIiEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #3
  invoke void @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEC2EmRKS5_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 256, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %5 unwind label %83

5:                                                ; preds = %1
  %6 = trunc i64 %4 to i32
  call void @_ZNSt15__new_allocatorISt5queueIiSt5dequeIiSaIiEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #3
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.preheader27.us.preheader, label %.preheader

.preheader27.us.preheader:                        ; preds = %5
  %wide.trip.count = and i64 %4, 2147483647
  br label %72

.preheader27.us.1:                                ; preds = %._crit_edge.us, %15
  %indvars.iv44.1 = phi i64 [ %indvars.iv.next45.1, %15 ], [ 0, %._crit_edge.us ]
  %8 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv44.1) #3
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = lshr i32 %9, 8
  %11 = and i32 %10, 255
  %12 = zext nneg i32 %11 to i64
  %13 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %12) #3
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv44.1) #3
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %15 unwind label %.split37.us.loopexit.split-lp.loopexit

15:                                               ; preds = %.preheader27.us.1
  %indvars.iv.next45.1 = add nuw nsw i64 %indvars.iv44.1, 1
  %exitcond47.1.not = icmp eq i64 %indvars.iv.next45.1, %wide.trip.count
  br i1 %exitcond47.1.not, label %.preheader.us.1, label %.preheader27.us.1, !llvm.loop !9

.preheader.us.1:                                  ; preds = %15, %._crit_edge.us.1
  %indvars.iv51.1 = phi i64 [ %indvars.iv.next52.1, %._crit_edge.us.1 ], [ 0, %15 ]
  %.02031.us.1 = phi i32 [ %.1.lcssa.us.1, %._crit_edge.us.1 ], [ -1, %15 ]
  %16 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv51.1) #3
  %17 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
  br i1 %17, label %._crit_edge.us.1, label %.lr.ph30.us.preheader.1

.lr.ph30.us.preheader.1:                          ; preds = %.preheader.us.1
  %18 = sext i32 %.02031.us.1 to i64
  br label %.lr.ph30.us.1

.lr.ph30.us.1:                                    ; preds = %.lr.ph30.us.1, %.lr.ph30.us.preheader.1
  %indvars.iv48.1 = phi i64 [ %18, %.lr.ph30.us.preheader.1 ], [ %indvars.iv.next49.1, %.lr.ph30.us.1 ]
  %19 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv51.1) #3
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %19)
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %indvars.iv.next49.1 = add nsw i64 %indvars.iv48.1, 1
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv.next49.1) #3
  store i32 %21, ptr %22, align 4, !tbaa !5
  %23 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv51.1) #3
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %23)
  %24 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv51.1) #3
  %25 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %24)
  br i1 %25, label %._crit_edge.us.loopexit.1, label %.lr.ph30.us.1, !llvm.loop !11

._crit_edge.us.loopexit.1:                        ; preds = %.lr.ph30.us.1
  %26 = trunc nsw i64 %indvars.iv.next49.1 to i32
  br label %._crit_edge.us.1

._crit_edge.us.1:                                 ; preds = %._crit_edge.us.loopexit.1, %.preheader.us.1
  %.1.lcssa.us.1 = phi i32 [ %.02031.us.1, %.preheader.us.1 ], [ %26, %._crit_edge.us.loopexit.1 ]
  %indvars.iv.next52.1 = add nuw nsw i64 %indvars.iv51.1, 1
  %exitcond54.1.not = icmp eq i64 %indvars.iv.next52.1, 256
  br i1 %exitcond54.1.not, label %.preheader27.us.2, label %.preheader.us.1, !llvm.loop !12

.preheader27.us.2:                                ; preds = %._crit_edge.us.1, %34
  %indvars.iv44.2 = phi i64 [ %indvars.iv.next45.2, %34 ], [ 0, %._crit_edge.us.1 ]
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv44.2) #3
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = lshr i32 %28, 16
  %30 = and i32 %29, 255
  %31 = zext nneg i32 %30 to i64
  %32 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %31) #3
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv44.2) #3
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %32, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %34 unwind label %.split37.us.loopexit.split-lp.loopexit.split-lp.loopexit

34:                                               ; preds = %.preheader27.us.2
  %indvars.iv.next45.2 = add nuw nsw i64 %indvars.iv44.2, 1
  %exitcond47.2.not = icmp eq i64 %indvars.iv.next45.2, %wide.trip.count
  br i1 %exitcond47.2.not, label %.preheader.us.2, label %.preheader27.us.2, !llvm.loop !9

.preheader.us.2:                                  ; preds = %34, %._crit_edge.us.2
  %indvars.iv51.2 = phi i64 [ %indvars.iv.next52.2, %._crit_edge.us.2 ], [ 0, %34 ]
  %.02031.us.2 = phi i32 [ %.1.lcssa.us.2, %._crit_edge.us.2 ], [ -1, %34 ]
  %35 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv51.2) #3
  %36 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %35)
  br i1 %36, label %._crit_edge.us.2, label %.lr.ph30.us.preheader.2

.lr.ph30.us.preheader.2:                          ; preds = %.preheader.us.2
  %37 = sext i32 %.02031.us.2 to i64
  br label %.lr.ph30.us.2

.lr.ph30.us.2:                                    ; preds = %.lr.ph30.us.2, %.lr.ph30.us.preheader.2
  %indvars.iv48.2 = phi i64 [ %37, %.lr.ph30.us.preheader.2 ], [ %indvars.iv.next49.2, %.lr.ph30.us.2 ]
  %38 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv51.2) #3
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %38)
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %indvars.iv.next49.2 = add nsw i64 %indvars.iv48.2, 1
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv.next49.2) #3
  store i32 %40, ptr %41, align 4, !tbaa !5
  %42 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv51.2) #3
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %42)
  %43 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv51.2) #3
  %44 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %43)
  br i1 %44, label %._crit_edge.us.loopexit.2, label %.lr.ph30.us.2, !llvm.loop !11

._crit_edge.us.loopexit.2:                        ; preds = %.lr.ph30.us.2
  %45 = trunc nsw i64 %indvars.iv.next49.2 to i32
  br label %._crit_edge.us.2

._crit_edge.us.2:                                 ; preds = %._crit_edge.us.loopexit.2, %.preheader.us.2
  %.1.lcssa.us.2 = phi i32 [ %.02031.us.2, %.preheader.us.2 ], [ %45, %._crit_edge.us.loopexit.2 ]
  %indvars.iv.next52.2 = add nuw nsw i64 %indvars.iv51.2, 1
  %exitcond54.2.not = icmp eq i64 %indvars.iv.next52.2, 256
  br i1 %exitcond54.2.not, label %.preheader27.us.3, label %.preheader.us.2, !llvm.loop !12

.preheader27.us.3:                                ; preds = %._crit_edge.us.2, %52
  %indvars.iv44.3 = phi i64 [ %indvars.iv.next45.3, %52 ], [ 0, %._crit_edge.us.2 ]
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv44.3) #3
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = lshr i32 %47, 24
  %49 = zext nneg i32 %48 to i64
  %50 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %49) #3
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv44.3) #3
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %50, ptr noundef nonnull align 4 dereferenceable(4) %51)
          to label %52 unwind label %.split37.us.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

52:                                               ; preds = %.preheader27.us.3
  %indvars.iv.next45.3 = add nuw nsw i64 %indvars.iv44.3, 1
  %exitcond47.3.not = icmp eq i64 %indvars.iv.next45.3, %wide.trip.count
  br i1 %exitcond47.3.not, label %.preheader.us.3, label %.preheader27.us.3, !llvm.loop !9

.preheader.us.3:                                  ; preds = %52, %._crit_edge.us.3
  %indvars.iv51.3 = phi i64 [ %indvars.iv.next52.3, %._crit_edge.us.3 ], [ 0, %52 ]
  %.02031.us.3 = phi i32 [ %.1.lcssa.us.3, %._crit_edge.us.3 ], [ -1, %52 ]
  %53 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv51.3) #3
  %54 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %53)
  br i1 %54, label %._crit_edge.us.3, label %.lr.ph30.us.preheader.3

.lr.ph30.us.preheader.3:                          ; preds = %.preheader.us.3
  %55 = sext i32 %.02031.us.3 to i64
  br label %.lr.ph30.us.3

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

._crit_edge.us.loopexit.3:                        ; preds = %.lr.ph30.us.3
  %63 = trunc nsw i64 %indvars.iv.next49.3 to i32
  br label %._crit_edge.us.3

._crit_edge.us.3:                                 ; preds = %._crit_edge.us.loopexit.3, %.preheader.us.3
  %.1.lcssa.us.3 = phi i32 [ %.02031.us.3, %.preheader.us.3 ], [ %63, %._crit_edge.us.loopexit.3 ]
  %indvars.iv.next52.3 = add nuw nsw i64 %indvars.iv51.3, 1
  %exitcond54.3.not = icmp eq i64 %indvars.iv.next52.3, 256
  br i1 %exitcond54.3.not, label %.split35.us, label %.preheader.us.3, !llvm.loop !12

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

._crit_edge.us.loopexit:                          ; preds = %.lr.ph30.us
  %71 = trunc nsw i64 %indvars.iv.next49 to i32
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.loopexit, %.preheader.us
  %.1.lcssa.us = phi i32 [ %.02031.us, %.preheader.us ], [ %71, %._crit_edge.us.loopexit ]
  %indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
  %exitcond54.not = icmp eq i64 %indvars.iv.next52, 256
  br i1 %exitcond54.not, label %.preheader27.us.1, label %.preheader.us, !llvm.loop !12

72:                                               ; preds = %.preheader27.us.preheader, %79
  %indvars.iv44 = phi i64 [ 0, %.preheader27.us.preheader ], [ %indvars.iv.next45, %79 ]
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv44) #3
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = and i32 %74, 255
  %76 = zext nneg i32 %75 to i64
  %77 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %76) #3
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv44) #3
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %77, ptr noundef nonnull align 4 dereferenceable(4) %78)
          to label %79 unwind label %.split37.us.loopexit

79:                                               ; preds = %72
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %exitcond47.not = icmp eq i64 %indvars.iv.next45, %wide.trip.count
  br i1 %exitcond47.not, label %.preheader.us, label %72, !llvm.loop !9

.preheader.us:                                    ; preds = %79, %._crit_edge.us
  %indvars.iv51 = phi i64 [ %indvars.iv.next52, %._crit_edge.us ], [ 0, %79 ]
  %.02031.us = phi i32 [ %.1.lcssa.us, %._crit_edge.us ], [ -1, %79 ]
  %80 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv51) #3
  %81 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %80)
  br i1 %81, label %._crit_edge.us, label %.lr.ph30.us.preheader

.lr.ph30.us.preheader:                            ; preds = %.preheader.us
  %82 = sext i32 %.02031.us to i64
  br label %.lr.ph30.us

.split37.us.loopexit:                             ; preds = %72
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.split37.us

.split37.us.loopexit.split-lp.loopexit:           ; preds = %.preheader27.us.1
  %lpad.loopexit55 = landingpad { ptr, i32 }
          cleanup
  br label %.split37.us

.split37.us.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.preheader27.us.2
  %lpad.loopexit58 = landingpad { ptr, i32 }
          cleanup
  br label %.split37.us

.split37.us.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %.preheader27.us.3
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.split37.us

.split37.us:                                      ; preds = %.split37.us.loopexit.split-lp.loopexit, %.split37.us.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.split37.us.loopexit.split-lp.loopexit.split-lp.loopexit, %.split37.us.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.split37.us.loopexit ], [ %lpad.loopexit55, %.split37.us.loopexit.split-lp.loopexit ], [ %lpad.loopexit58, %.split37.us.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.split37.us.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #3
  br label %129

.split35.us:                                      ; preds = %._crit_edge.3, %._crit_edge.us.3
  call void @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #3
  ret void

83:                                               ; preds = %1
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt5queueIiSt5dequeIiSaIiEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #3
  br label %129

.preheader:                                       ; preds = %5, %._crit_edge
  %indvars.iv41 = phi i64 [ %indvars.iv.next42, %._crit_edge ], [ 0, %5 ]
  %.02031 = phi i32 [ %.1.lcssa, %._crit_edge ], [ -1, %5 ]
  %85 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv41) #3
  %86 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %85)
  br i1 %86, label %._crit_edge, label %.lr.ph30.preheader

.lr.ph30.preheader:                               ; preds = %.preheader
  %87 = sext i32 %.02031 to i64
  br label %.lr.ph30

.preheader.1:                                     ; preds = %._crit_edge, %._crit_edge.1
  %indvars.iv41.1 = phi i64 [ %indvars.iv.next42.1, %._crit_edge.1 ], [ 0, %._crit_edge ]
  %.02031.1 = phi i32 [ %.1.lcssa.1, %._crit_edge.1 ], [ -1, %._crit_edge ]
  %88 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv41.1) #3
  %89 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %88)
  br i1 %89, label %._crit_edge.1, label %.lr.ph30.preheader.1

.lr.ph30.preheader.1:                             ; preds = %.preheader.1
  %90 = sext i32 %.02031.1 to i64
  br label %.lr.ph30.1

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

._crit_edge.loopexit.1:                           ; preds = %.lr.ph30.1
  %98 = trunc nsw i64 %indvars.iv.next.1 to i32
  br label %._crit_edge.1

._crit_edge.1:                                    ; preds = %._crit_edge.loopexit.1, %.preheader.1
  %.1.lcssa.1 = phi i32 [ %.02031.1, %.preheader.1 ], [ %98, %._crit_edge.loopexit.1 ]
  %indvars.iv.next42.1 = add nuw nsw i64 %indvars.iv41.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next42.1, 256
  br i1 %exitcond.1.not, label %.preheader.2, label %.preheader.1, !llvm.loop !12

.preheader.2:                                     ; preds = %._crit_edge.1, %._crit_edge.2
  %indvars.iv41.2 = phi i64 [ %indvars.iv.next42.2, %._crit_edge.2 ], [ 0, %._crit_edge.1 ]
  %.02031.2 = phi i32 [ %.1.lcssa.2, %._crit_edge.2 ], [ -1, %._crit_edge.1 ]
  %99 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv41.2) #3
  %100 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %99)
  br i1 %100, label %._crit_edge.2, label %.lr.ph30.preheader.2

.lr.ph30.preheader.2:                             ; preds = %.preheader.2
  %101 = sext i32 %.02031.2 to i64
  br label %.lr.ph30.2

.lr.ph30.2:                                       ; preds = %.lr.ph30.2, %.lr.ph30.preheader.2
  %indvars.iv.2 = phi i64 [ %101, %.lr.ph30.preheader.2 ], [ %indvars.iv.next.2, %.lr.ph30.2 ]
  %102 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv41.2) #3
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %102)
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %indvars.iv.next.2 = add nsw i64 %indvars.iv.2, 1
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv.next.2) #3
  store i32 %104, ptr %105, align 4, !tbaa !5
  %106 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv41.2) #3
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %106)
  %107 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv41.2) #3
  %108 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %107)
  br i1 %108, label %._crit_edge.loopexit.2, label %.lr.ph30.2, !llvm.loop !11

._crit_edge.loopexit.2:                           ; preds = %.lr.ph30.2
  %109 = trunc nsw i64 %indvars.iv.next.2 to i32
  br label %._crit_edge.2

._crit_edge.2:                                    ; preds = %._crit_edge.loopexit.2, %.preheader.2
  %.1.lcssa.2 = phi i32 [ %.02031.2, %.preheader.2 ], [ %109, %._crit_edge.loopexit.2 ]
  %indvars.iv.next42.2 = add nuw nsw i64 %indvars.iv41.2, 1
  %exitcond.2.not = icmp eq i64 %indvars.iv.next42.2, 256
  br i1 %exitcond.2.not, label %.preheader.3, label %.preheader.2, !llvm.loop !12

.preheader.3:                                     ; preds = %._crit_edge.2, %._crit_edge.3
  %indvars.iv41.3 = phi i64 [ %indvars.iv.next42.3, %._crit_edge.3 ], [ 0, %._crit_edge.2 ]
  %.02031.3 = phi i32 [ %.1.lcssa.3, %._crit_edge.3 ], [ -1, %._crit_edge.2 ]
  %110 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv41.3) #3
  %111 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %110)
  br i1 %111, label %._crit_edge.3, label %.lr.ph30.preheader.3

.lr.ph30.preheader.3:                             ; preds = %.preheader.3
  %112 = sext i32 %.02031.3 to i64
  br label %.lr.ph30.3

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

._crit_edge.loopexit.3:                           ; preds = %.lr.ph30.3
  %120 = trunc nsw i64 %indvars.iv.next.3 to i32
  br label %._crit_edge.3

._crit_edge.3:                                    ; preds = %._crit_edge.loopexit.3, %.preheader.3
  %.1.lcssa.3 = phi i32 [ %.02031.3, %.preheader.3 ], [ %120, %._crit_edge.loopexit.3 ]
  %indvars.iv.next42.3 = add nuw nsw i64 %indvars.iv41.3, 1
  %exitcond.3.not = icmp eq i64 %indvars.iv.next42.3, 256
  br i1 %exitcond.3.not, label %.split35.us, label %.preheader.3, !llvm.loop !12

.lr.ph30:                                         ; preds = %.lr.ph30.preheader, %.lr.ph30
  %indvars.iv = phi i64 [ %87, %.lr.ph30.preheader ], [ %indvars.iv.next, %.lr.ph30 ]
  %121 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv41) #3
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %121)
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv.next) #3
  store i32 %123, ptr %124, align 4, !tbaa !5
  %125 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv41) #3
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %125)
  %126 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv41) #3
  %127 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %126)
  br i1 %127, label %._crit_edge.loopexit, label %.lr.ph30, !llvm.loop !11

._crit_edge.loopexit:                             ; preds = %.lr.ph30
  %128 = trunc nsw i64 %indvars.iv.next to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %.1.lcssa = phi i32 [ %.02031, %.preheader ], [ %128, %._crit_edge.loopexit ]
  %indvars.iv.next42 = add nuw nsw i64 %indvars.iv41, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next42, 256
  br i1 %exitcond.not, label %.preheader.1, label %.preheader, !llvm.loop !12

129:                                              ; preds = %.split37.us, %83
  %.pn = phi { ptr, i32 } [ %lpad.phi, %.split37.us ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #3
  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: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt5queueIiSt5dequeIiSaIiEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt5queueIiSt5dequeIiSaIiEEESaIS4_EEC2EmRKS5_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; 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 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 #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt5queueIiSt5dequeIiSaIiEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { 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 = { 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,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass