; LLVM IR from PetarV-/Algorithms :: Data Structures/van Emde Boas Tree.ll (ZN3vEB6insertEy)

; 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.vEB = type { i64, ptr, ptr, ptr, ptr }

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIyEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vEB6insertEy(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %11 = load ptr, ptr %3, align 8
  %12 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 0
  %13 = load i64, ptr %12, align 8, !tbaa !11
  %14 = icmp eq i64 %13, 2
  br i1 %14, label %15, label %61

15:                                               ; preds = %2
  %16 = load i64, ptr %4, align 8, !tbaa !9
  %17 = icmp eq i64 %16, 0
  br i1 %17, label %18, label %37

18:                                               ; preds = %15
  %19 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 1
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %32

22:                                               ; preds = %18
  %23 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #5
  %24 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 1
  store ptr %23, ptr %24, align 8, !tbaa !13
  %25 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #5
  %26 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 2
  store ptr %25, ptr %26, align 8, !tbaa !14
  %27 = load i64, ptr %4, align 8, !tbaa !9
  %28 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 2
  %29 = load ptr, ptr %28, align 8, !tbaa !14
  store i64 %27, ptr %29, align 8, !tbaa !9
  %30 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !13
  store i64 %27, ptr %31, align 8, !tbaa !9
  br label %36

32:                                               ; preds = %18
  %33 = load i64, ptr %4, align 8, !tbaa !9
  %34 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 1
  %35 = load ptr, ptr %34, align 8, !tbaa !13
  store i64 %33, ptr %35, align 8, !tbaa !9
  br label %36

36:                                               ; preds = %32, %22
  br label %60

37:                                               ; preds = %15
  %38 = load i64, ptr %4, align 8, !tbaa !9
  %39 = icmp eq i64 %38, 1
  br i1 %39, label %40, label %59

40:                                               ; preds = %37
  %41 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 2
  %42 = load ptr, ptr %41, align 8, !tbaa !14
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %54

44:                                               ; preds = %40
  %45 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #5
  %46 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 1
  store ptr %45, ptr %46, align 8, !tbaa !13
  %47 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #5
  %48 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 2
  store ptr %47, ptr %48, align 8, !tbaa !14
  %49 = load i64, ptr %4, align 8, !tbaa !9
  %50 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 2
  %51 = load ptr, ptr %50, align 8, !tbaa !14
  store i64 %49, ptr %51, align 8, !tbaa !9
  %52 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  store i64 %49, ptr %53, align 8, !tbaa !9
  br label %58

54:                                               ; preds = %40
  %55 = load i64, ptr %4, align 8, !tbaa !9
  %56 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 2
  %57 = load ptr, ptr %56, align 8, !tbaa !14
  store i64 %55, ptr %57, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %54, %44
  br label %59

59:                                               ; preds = %58, %37
  br label %60

60:                                               ; preds = %59, %36
  br label %147

61:                                               ; preds = %2
  %62 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !13
  %64 = icmp eq ptr %63, null
  br i1 %64, label %65, label %75

65:                                               ; preds = %61
  %66 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #5
  %67 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 1
  store ptr %66, ptr %67, align 8, !tbaa !13
  %68 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #5
  %69 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 2
  store ptr %68, ptr %69, align 8, !tbaa !14
  %70 = load i64, ptr %4, align 8, !tbaa !9
  %71 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 2
  %72 = load ptr, ptr %71, align 8, !tbaa !14
  store i64 %70, ptr %72, align 8, !tbaa !9
  %73 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !13
  store i64 %70, ptr %74, align 8, !tbaa !9
  br label %146

75:                                               ; preds = %61
  %76 = load i64, ptr %4, align 8, !tbaa !9
  %77 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !13
  %79 = load i64, ptr %78, align 8, !tbaa !9
  %80 = icmp ult i64 %76, %79
  br i1 %80, label %81, label %89

81:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %82 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !13
  %84 = load i64, ptr %83, align 8, !tbaa !9
  store i64 %84, ptr %5, align 8, !tbaa !9
  %85 = load i64, ptr %4, align 8, !tbaa !9
  %86 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 1
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  store i64 %85, ptr %87, align 8, !tbaa !9
  %88 = load i64, ptr %5, align 8, !tbaa !9
  call void @_ZN3vEB6insertEy(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef %88)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %145

89:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %90 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 0
  %91 = load i64, ptr %90, align 8, !tbaa !11
  %92 = call noundef double @_ZSt4sqrtIyEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %91)
  %93 = fptoui double %92 to i64
  store i64 %93, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %94 = load i64, ptr %4, align 8, !tbaa !9
  %95 = load i64, ptr %6, align 8, !tbaa !9
  %96 = udiv i64 %94, %95
  store i64 %96, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %97 = load i64, ptr %4, align 8, !tbaa !9
  %98 = load i64, ptr %6, align 8, !tbaa !9
  %99 = urem i64 %97, %98
  store i64 %99, ptr %8, align 8, !tbaa !9
  %100 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 4
  %101 = load ptr, ptr %100, align 8, !tbaa !15
  %102 = load i64, ptr %7, align 8, !tbaa !9
  %103 = getelementptr inbounds ptr, ptr %101, i64 %102
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = icmp eq ptr %104, null
  br i1 %105, label %106, label %127

106:                                              ; preds = %89
  %107 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #5
  %108 = load i64, ptr %6, align 8, !tbaa !9
  invoke void @_ZN3vEBC1Ey(ptr noundef nonnull align 8 dereferenceable(40) %107, i64 noundef %108)
          to label %109 unwind label %123

109:                                              ; preds = %106
  %110 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !15
  %112 = load i64, ptr %7, align 8, !tbaa !9
  %113 = getelementptr inbounds ptr, ptr %111, i64 %112
  store ptr %107, ptr %113, align 8, !tbaa !5
  %114 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !15
  %116 = load i64, ptr %7, align 8, !tbaa !9
  %117 = getelementptr inbounds ptr, ptr %115, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN3vEB6insertEy(ptr noundef nonnull align 8 dereferenceable(40) %118, i64 noundef %119)
  %120 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 3
  %121 = load ptr, ptr %120, align 8, !tbaa !16
  %122 = load i64, ptr %7, align 8, !tbaa !9
  call void @_ZN3vEB6insertEy(ptr noundef nonnull align 8 dereferenceable(40) %121, i64 noundef %122)
  br label %134

123:                                              ; preds = %106
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %9, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %107, i64 noundef 40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %148

127:                                              ; preds = %89
  %128 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 4
  %129 = load ptr, ptr %128, align 8, !tbaa !15
  %130 = load i64, ptr %7, align 8, !tbaa !9
  %131 = getelementptr inbounds ptr, ptr %129, i64 %130
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN3vEB6insertEy(ptr noundef nonnull align 8 dereferenceable(40) %132, i64 noundef %133)
  br label %134

134:                                              ; preds = %127, %109
  %135 = load i64, ptr %4, align 8, !tbaa !9
  %136 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 2
  %137 = load ptr, ptr %136, align 8, !tbaa !14
  %138 = load i64, ptr %137, align 8, !tbaa !9
  %139 = icmp ugt i64 %135, %138
  br i1 %139, label %140, label %144

140:                                              ; preds = %134
  %141 = load i64, ptr %4, align 8, !tbaa !9
  %142 = getelementptr inbounds %class.vEB, ptr %11, i32 0, i32 2
  %143 = load ptr, ptr %142, align 8, !tbaa !14
  store i64 %141, ptr %143, align 8, !tbaa !9
  br label %144

144:                                              ; preds = %140, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %145

145:                                              ; preds = %144, %81
  br label %146

146:                                              ; preds = %145, %65
  br label %147

147:                                              ; preds = %146, %60
  ret void

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

declare void @_ZN3vEBC1Ey(ptr, i64)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nobuiltin allocsize(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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { builtin allocsize(0) }
attributes #6 = { nounwind }
attributes #7 = { builtin 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 = !{!"long long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS3vEB", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!13 = !{!12, !6, i64 8}
!14 = !{!12, !6, i64 16}
!15 = !{!12, !6, i64 32}
!16 = !{!12, !6, i64 24}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIyEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) local_unnamed_addr #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vEB6insertEy(ptr nocapture noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = load i64, ptr %0, align 8, !tbaa !5
  %4 = icmp eq i64 %3, 2
  br i1 %4, label %tailrecurse._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !11
  %7 = icmp eq ptr %6, null
  br i1 %7, label %.split.us, label %.lr.ph.split

.lr.ph.split:                                     ; preds = %.lr.ph
  %8 = load i64, ptr %6, align 8, !tbaa !12
  %9 = icmp ugt i64 %8, %1
  br i1 %9, label %tailrecurse, label %._crit_edge

tailrecurse._crit_edge:                           ; preds = %tailrecurse, %2
  %.tr32.lcssa = phi i64 [ %1, %2 ], [ %33, %tailrecurse ]
  switch i64 %.tr32.lcssa, label %65 [
    i64 0, label %10
    i64 1, label %19
  ]

10:                                               ; preds = %tailrecurse._crit_edge
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %18

14:                                               ; preds = %10
  %15 = tail call noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #4
  store ptr %15, ptr %11, align 8, !tbaa !11
  %16 = tail call noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #4
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %16, ptr %17, align 8, !tbaa !13
  store i64 0, ptr %16, align 8, !tbaa !12
  store i64 0, ptr %15, align 8, !tbaa !12
  br label %65

18:                                               ; preds = %10
  store i64 0, ptr %12, align 8, !tbaa !12
  br label %65

19:                                               ; preds = %tailrecurse._crit_edge
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = load ptr, ptr %20, align 8, !tbaa !13
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %27

23:                                               ; preds = %19
  %24 = tail call noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #4
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %24, ptr %25, align 8, !tbaa !11
  %26 = tail call noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #4
  store ptr %26, ptr %20, align 8, !tbaa !13
  store i64 1, ptr %26, align 8, !tbaa !12
  store i64 1, ptr %24, align 8, !tbaa !12
  br label %65

27:                                               ; preds = %19
  store i64 1, ptr %21, align 8, !tbaa !12
  br label %65

28:                                               ; preds = %tailrecurse
  %29 = icmp ugt i64 %34, %33
  br i1 %29, label %tailrecurse, label %._crit_edge

.split.us:                                        ; preds = %.lr.ph
  %30 = tail call noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #4
  store ptr %30, ptr %5, align 8, !tbaa !11
  %31 = tail call noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #4
  %32 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %31, ptr %32, align 8, !tbaa !13
  store i64 %1, ptr %31, align 8, !tbaa !12
  store i64 %1, ptr %30, align 8, !tbaa !12
  br label %65

tailrecurse:                                      ; preds = %.lr.ph.split, %28
  %33 = phi i64 [ %34, %28 ], [ %8, %.lr.ph.split ]
  %34 = phi i64 [ %33, %28 ], [ %1, %.lr.ph.split ]
  store i64 %34, ptr %6, align 8, !tbaa !12
  %35 = load i64, ptr %0, align 8, !tbaa !5
  %36 = icmp eq i64 %35, 2
  br i1 %36, label %tailrecurse._crit_edge, label %28

._crit_edge:                                      ; preds = %28, %.lr.ph.split
  %.tr32.lcssa36 = phi i64 [ %1, %.lr.ph.split ], [ %33, %28 ]
  %.lcssa34 = phi i64 [ %3, %.lr.ph.split ], [ %35, %28 ]
  %37 = tail call noundef double @_ZSt4sqrtIyEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %.lcssa34)
  %38 = fptoui double %37 to i64
  %39 = udiv i64 %.tr32.lcssa36, %38
  %40 = urem i64 %.tr32.lcssa36, %38
  %41 = getelementptr inbounds i8, ptr %0, i64 32
  %42 = load ptr, ptr %41, align 8, !tbaa !14
  %43 = getelementptr inbounds ptr, ptr %42, i64 %39
  %44 = load ptr, ptr %43, align 8, !tbaa !15
  %45 = icmp eq ptr %44, null
  br i1 %45, label %46, label %58

46:                                               ; preds = %._crit_edge
  %47 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #4
  invoke void @_ZN3vEBC1Ey(ptr noundef nonnull align 8 dereferenceable(40) %47, i64 noundef %38)
          to label %48 unwind label %56

48:                                               ; preds = %46
  %49 = load ptr, ptr %41, align 8, !tbaa !14
  %50 = getelementptr inbounds ptr, ptr %49, i64 %39
  store ptr %47, ptr %50, align 8, !tbaa !15
  %51 = load ptr, ptr %41, align 8, !tbaa !14
  %52 = getelementptr inbounds ptr, ptr %51, i64 %39
  %53 = load ptr, ptr %52, align 8, !tbaa !15
  tail call void @_ZN3vEB6insertEy(ptr noundef nonnull align 8 dereferenceable(40) %53, i64 noundef %40)
  %54 = getelementptr inbounds i8, ptr %0, i64 24
  %55 = load ptr, ptr %54, align 8, !tbaa !16
  tail call void @_ZN3vEB6insertEy(ptr noundef nonnull align 8 dereferenceable(40) %55, i64 noundef %39)
  br label %59

56:                                               ; preds = %46
  %57 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %47, i64 noundef 40) #5
  resume { ptr, i32 } %57

58:                                               ; preds = %._crit_edge
  tail call void @_ZN3vEB6insertEy(ptr noundef nonnull align 8 dereferenceable(40) %44, i64 noundef %40)
  br label %59

59:                                               ; preds = %58, %48
  %60 = getelementptr inbounds i8, ptr %0, i64 16
  %61 = load ptr, ptr %60, align 8, !tbaa !13
  %62 = load i64, ptr %61, align 8, !tbaa !12
  %63 = icmp ult i64 %62, %.tr32.lcssa36
  br i1 %63, label %64, label %65

64:                                               ; preds = %59
  store i64 %.tr32.lcssa36, ptr %61, align 8, !tbaa !12
  br label %65

65:                                               ; preds = %59, %64, %tailrecurse._crit_edge, %.split.us, %18, %14, %23, %27
  ret void
}

declare void @_ZN3vEBC1Ey(ptr, i64) local_unnamed_addr

attributes #0 = { 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 #1 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { builtin allocsize(0) }
attributes #5 = { builtin 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, !7, i64 0}
!6 = !{!"_ZTS3vEB", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !10, i64 16}
!14 = !{!6, !10, i64 32}
!15 = !{!10, !10, i64 0}
!16 = !{!6, !10, i64 24}


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