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

; 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 nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #2

; 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 @_ZN3vEB6DeleteEy(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %1) #3 align 2 {
  %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 i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %13 = load ptr, ptr %3, align 8
  %14 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 0
  %15 = load i64, ptr %14, align 8, !tbaa !11
  %16 = icmp eq i64 %15, 2
  br i1 %16, label %17, label %49

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

20:                                               ; preds = %17
  %21 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 2
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = load i64, ptr %22, align 8, !tbaa !9
  %24 = icmp eq i64 %23, 0
  br i1 %24, label %25, label %28

25:                                               ; preds = %20
  %26 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 2
  store ptr null, ptr %26, align 8, !tbaa !13
  %27 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 1
  store ptr null, ptr %27, align 8, !tbaa !14
  br label %31

28:                                               ; preds = %20
  %29 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 1
  %30 = load ptr, ptr %29, align 8, !tbaa !14
  store i64 1, ptr %30, align 8, !tbaa !9
  br label %31

31:                                               ; preds = %28, %25
  br label %48

32:                                               ; preds = %17
  %33 = load i64, ptr %4, align 8, !tbaa !9
  %34 = icmp eq i64 %33, 1
  br i1 %34, label %35, label %47

35:                                               ; preds = %32
  %36 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8, !tbaa !14
  %38 = load i64, ptr %37, align 8, !tbaa !9
  %39 = icmp eq i64 %38, 1
  br i1 %39, label %40, label %43

40:                                               ; preds = %35
  %41 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 2
  store ptr null, ptr %41, align 8, !tbaa !13
  %42 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 1
  store ptr null, ptr %42, align 8, !tbaa !14
  br label %46

43:                                               ; preds = %35
  %44 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 2
  %45 = load ptr, ptr %44, align 8, !tbaa !13
  store i64 0, ptr %45, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %43, %40
  br label %47

47:                                               ; preds = %46, %32
  br label %48

48:                                               ; preds = %47, %31
  br label %167

49:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %50 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 0
  %51 = load i64, ptr %50, align 8, !tbaa !11
  %52 = call noundef double @_ZSt4sqrtIyEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %51)
  %53 = fptoui double %52 to i64
  store i64 %53, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %54 = load i64, ptr %4, align 8, !tbaa !9
  %55 = load i64, ptr %5, align 8, !tbaa !9
  %56 = udiv i64 %54, %55
  store i64 %56, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %57 = load i64, ptr %4, align 8, !tbaa !9
  %58 = load i64, ptr %5, align 8, !tbaa !9
  %59 = urem i64 %57, %58
  store i64 %59, ptr %7, align 8, !tbaa !9
  %60 = load i64, ptr %4, align 8, !tbaa !9
  %61 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !14
  %63 = load i64, ptr %62, align 8, !tbaa !9
  %64 = icmp eq i64 %60, %63
  br i1 %64, label %65, label %96

65:                                               ; preds = %49
  %66 = load i64, ptr %4, align 8, !tbaa !9
  %67 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 2
  %68 = load ptr, ptr %67, align 8, !tbaa !13
  %69 = load i64, ptr %68, align 8, !tbaa !9
  %70 = icmp eq i64 %66, %69
  br i1 %70, label %71, label %74

71:                                               ; preds = %65
  %72 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 2
  store ptr null, ptr %72, align 8, !tbaa !13
  %73 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 1
  store ptr null, ptr %73, align 8, !tbaa !14
  br label %95

74:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %75 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 3
  %76 = load ptr, ptr %75, align 8, !tbaa !15
  %77 = call noundef i64 @_ZN3vEB3minEv(ptr noundef nonnull align 8 dereferenceable(40) %76)
  store i64 %77, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %78 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !16
  %80 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 3
  %81 = load ptr, ptr %80, align 8, !tbaa !15
  %82 = call noundef i64 @_ZN3vEB3minEv(ptr noundef nonnull align 8 dereferenceable(40) %81)
  %83 = getelementptr inbounds ptr, ptr %79, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = call noundef i64 @_ZN3vEB3minEv(ptr noundef nonnull align 8 dereferenceable(40) %84)
  store i64 %85, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %86 = load i64, ptr %8, align 8, !tbaa !9
  %87 = load i64, ptr %5, align 8, !tbaa !9
  %88 = mul i64 %86, %87
  %89 = load i64, ptr %9, align 8, !tbaa !9
  %90 = add i64 %88, %89
  store i64 %90, ptr %10, align 8, !tbaa !9
  %91 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZN3vEB6DeleteEy(ptr noundef nonnull align 8 dereferenceable(40) %13, i64 noundef %91)
  %92 = load i64, ptr %10, align 8, !tbaa !9
  %93 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !14
  store i64 %92, ptr %94, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %95

95:                                               ; preds = %74, %71
  br label %166

96:                                               ; preds = %49
  %97 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 4
  %98 = load ptr, ptr %97, align 8, !tbaa !16
  %99 = load i64, ptr %6, align 8, !tbaa !9
  %100 = getelementptr inbounds ptr, ptr %98, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  %102 = load i64, ptr %7, align 8, !tbaa !9
  call void @_ZN3vEB6DeleteEy(ptr noundef nonnull align 8 dereferenceable(40) %101, i64 noundef %102)
  %103 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !16
  %105 = load i64, ptr %6, align 8, !tbaa !9
  %106 = getelementptr inbounds ptr, ptr %104, i64 %105
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = getelementptr inbounds %class.vEB, ptr %107, i32 0, i32 1
  %109 = load ptr, ptr %108, align 8, !tbaa !14
  %110 = icmp eq ptr %109, null
  br i1 %110, label %111, label %127

111:                                              ; preds = %96
  %112 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 3
  %113 = load ptr, ptr %112, align 8, !tbaa !15
  %114 = load i64, ptr %6, align 8, !tbaa !9
  call void @_ZN3vEB6DeleteEy(ptr noundef nonnull align 8 dereferenceable(40) %113, i64 noundef %114)
  %115 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !16
  %117 = load i64, ptr %6, align 8, !tbaa !9
  %118 = getelementptr inbounds ptr, ptr %116, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = icmp eq ptr %119, null
  br i1 %120, label %122, label %121

121:                                              ; preds = %111
  call void @_ZdlPvm(ptr noundef %119, i64 noundef 40) #6
  br label %122

122:                                              ; preds = %121, %111
  %123 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !16
  %125 = load i64, ptr %6, align 8, !tbaa !9
  %126 = getelementptr inbounds ptr, ptr %124, i64 %125
  store ptr null, ptr %126, align 8, !tbaa !5
  br label %127

127:                                              ; preds = %122, %96
  %128 = load i64, ptr %4, align 8, !tbaa !9
  %129 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !13
  %131 = load i64, ptr %130, align 8, !tbaa !9
  %132 = icmp eq i64 %128, %131
  br i1 %132, label %133, label %165

133:                                              ; preds = %127
  %134 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 3
  %135 = load ptr, ptr %134, align 8, !tbaa !15
  %136 = getelementptr inbounds %class.vEB, ptr %135, i32 0, i32 1
  %137 = load ptr, ptr %136, align 8, !tbaa !14
  %138 = icmp eq ptr %137, null
  br i1 %138, label %139, label %145

139:                                              ; preds = %133
  %140 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 1
  %141 = load ptr, ptr %140, align 8, !tbaa !14
  %142 = load i64, ptr %141, align 8, !tbaa !9
  %143 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 2
  %144 = load ptr, ptr %143, align 8, !tbaa !13
  store i64 %142, ptr %144, align 8, !tbaa !9
  br label %164

145:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %146 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 3
  %147 = load ptr, ptr %146, align 8, !tbaa !15
  %148 = call noundef i64 @_ZN3vEB3maxEv(ptr noundef nonnull align 8 dereferenceable(40) %147)
  store i64 %148, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %149 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !16
  %151 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 3
  %152 = load ptr, ptr %151, align 8, !tbaa !15
  %153 = call noundef i64 @_ZN3vEB3maxEv(ptr noundef nonnull align 8 dereferenceable(40) %152)
  %154 = getelementptr inbounds ptr, ptr %150, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = call noundef i64 @_ZN3vEB3maxEv(ptr noundef nonnull align 8 dereferenceable(40) %155)
  store i64 %156, ptr %12, align 8, !tbaa !9
  %157 = load i64, ptr %11, align 8, !tbaa !9
  %158 = load i64, ptr %5, align 8, !tbaa !9
  %159 = mul i64 %157, %158
  %160 = load i64, ptr %12, align 8, !tbaa !9
  %161 = add i64 %159, %160
  %162 = getelementptr inbounds %class.vEB, ptr %13, i32 0, i32 2
  %163 = load ptr, ptr %162, align 8, !tbaa !13
  store i64 %161, ptr %163, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %164

164:                                              ; preds = %145, %139
  br label %165

165:                                              ; preds = %164, %127
  br label %166

166:                                              ; preds = %165, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %167

167:                                              ; preds = %166, %48
  ret void
}

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

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

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 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 = { 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 }
attributes #6 = { 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 16}
!14 = !{!12, !6, i64 8}
!15 = !{!12, !6, i64 24}
!16 = !{!12, !6, i64 32}


; 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 nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN3vEB6DeleteEy(ptr nocapture noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %1) local_unnamed_addr #2 align 2 {
  %3 = load i64, ptr %0, align 8, !tbaa !5
  %4 = icmp eq i64 %3, 2
  br i1 %4, label %5, label %24

5:                                                ; preds = %2
  switch i64 %1, label %common.ret25 [
    i64 0, label %6
    i64 1, label %15
  ]

6:                                                ; preds = %5
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = load ptr, ptr %7, align 8, !tbaa !11
  %9 = load i64, ptr %8, align 8, !tbaa !12
  %10 = icmp eq i64 %9, 0
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  br i1 %10, label %12, label %13

12:                                               ; preds = %6
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %11, i8 0, i64 16, i1 false)
  br label %common.ret25

13:                                               ; preds = %6
  %14 = load ptr, ptr %11, align 8, !tbaa !13
  store i64 1, ptr %14, align 8, !tbaa !12
  br label %common.ret25

15:                                               ; preds = %5
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  %18 = load i64, ptr %17, align 8, !tbaa !12
  %19 = icmp eq i64 %18, 1
  br i1 %19, label %20, label %21

20:                                               ; preds = %15
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %16, i8 0, i64 16, i1 false)
  br label %common.ret25

21:                                               ; preds = %15
  %22 = getelementptr inbounds i8, ptr %0, i64 16
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  store i64 0, ptr %23, align 8, !tbaa !12
  br label %common.ret25

24:                                               ; preds = %2
  %25 = tail call noundef double @_ZSt4sqrtIyEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %3)
  %26 = fptoui double %25 to i64
  %27 = udiv i64 %1, %26
  %28 = urem i64 %1, %26
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !13
  %31 = load i64, ptr %30, align 8, !tbaa !12
  %32 = icmp eq i64 %31, %1
  br i1 %32, label %33, label %53

33:                                               ; preds = %24
  %34 = getelementptr inbounds i8, ptr %0, i64 16
  %35 = load ptr, ptr %34, align 8, !tbaa !11
  %36 = load i64, ptr %35, align 8, !tbaa !12
  %37 = icmp eq i64 %36, %1
  br i1 %37, label %38, label %39

38:                                               ; preds = %33
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %29, i8 0, i64 16, i1 false)
  br label %common.ret25

common.ret25:                                     ; preds = %38, %86, %89, %75, %5, %13, %12, %20, %21, %39
  ret void

39:                                               ; preds = %33
  %40 = getelementptr inbounds i8, ptr %0, i64 24
  %41 = load ptr, ptr %40, align 8, !tbaa !14
  %42 = tail call noundef i64 @_ZN3vEB3minEv(ptr noundef nonnull align 8 dereferenceable(40) %41)
  %43 = getelementptr inbounds i8, ptr %0, i64 32
  %44 = load ptr, ptr %43, align 8, !tbaa !15
  %45 = load ptr, ptr %40, align 8, !tbaa !14
  %46 = tail call noundef i64 @_ZN3vEB3minEv(ptr noundef nonnull align 8 dereferenceable(40) %45)
  %47 = getelementptr inbounds ptr, ptr %44, i64 %46
  %48 = load ptr, ptr %47, align 8, !tbaa !16
  %49 = tail call noundef i64 @_ZN3vEB3minEv(ptr noundef nonnull align 8 dereferenceable(40) %48)
  %50 = mul i64 %42, %26
  %51 = add i64 %49, %50
  tail call void @_ZN3vEB6DeleteEy(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %51)
  %52 = load ptr, ptr %29, align 8, !tbaa !13
  store i64 %51, ptr %52, align 8, !tbaa !12
  br label %common.ret25

53:                                               ; preds = %24
  %54 = getelementptr inbounds i8, ptr %0, i64 32
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  %56 = getelementptr inbounds ptr, ptr %55, i64 %27
  %57 = load ptr, ptr %56, align 8, !tbaa !16
  tail call void @_ZN3vEB6DeleteEy(ptr noundef nonnull align 8 dereferenceable(40) %57, i64 noundef %28)
  %58 = load ptr, ptr %54, align 8, !tbaa !15
  %59 = getelementptr inbounds ptr, ptr %58, i64 %27
  %60 = load ptr, ptr %59, align 8, !tbaa !16
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  %63 = icmp eq ptr %62, null
  br i1 %63, label %64, label %75

64:                                               ; preds = %53
  %65 = getelementptr inbounds i8, ptr %0, i64 24
  %66 = load ptr, ptr %65, align 8, !tbaa !14
  tail call void @_ZN3vEB6DeleteEy(ptr noundef nonnull align 8 dereferenceable(40) %66, i64 noundef %27)
  %67 = load ptr, ptr %54, align 8, !tbaa !15
  %68 = getelementptr inbounds ptr, ptr %67, i64 %27
  %69 = load ptr, ptr %68, align 8, !tbaa !16
  %70 = icmp eq ptr %69, null
  br i1 %70, label %72, label %71

71:                                               ; preds = %64
  tail call void @_ZdlPvm(ptr noundef nonnull %69, i64 noundef 40) #4
  %.pre = load ptr, ptr %54, align 8, !tbaa !15
  br label %72

72:                                               ; preds = %71, %64
  %73 = phi ptr [ %.pre, %71 ], [ %67, %64 ]
  %74 = getelementptr inbounds ptr, ptr %73, i64 %27
  store ptr null, ptr %74, align 8, !tbaa !16
  br label %75

75:                                               ; preds = %72, %53
  %76 = getelementptr inbounds i8, ptr %0, i64 16
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = load i64, ptr %77, align 8, !tbaa !12
  %79 = icmp eq i64 %78, %1
  br i1 %79, label %80, label %common.ret25

80:                                               ; preds = %75
  %81 = getelementptr inbounds i8, ptr %0, i64 24
  %82 = load ptr, ptr %81, align 8, !tbaa !14
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  %84 = load ptr, ptr %83, align 8, !tbaa !13
  %85 = icmp eq ptr %84, null
  br i1 %85, label %86, label %89

86:                                               ; preds = %80
  %87 = load ptr, ptr %29, align 8, !tbaa !13
  %88 = load i64, ptr %87, align 8, !tbaa !12
  store i64 %88, ptr %77, align 8, !tbaa !12
  br label %common.ret25

89:                                               ; preds = %80
  %90 = tail call noundef i64 @_ZN3vEB3maxEv(ptr noundef nonnull align 8 dereferenceable(40) %82)
  %91 = load ptr, ptr %54, align 8, !tbaa !15
  %92 = load ptr, ptr %81, align 8, !tbaa !14
  %93 = tail call noundef i64 @_ZN3vEB3maxEv(ptr noundef nonnull align 8 dereferenceable(40) %92)
  %94 = getelementptr inbounds ptr, ptr %91, i64 %93
  %95 = load ptr, ptr %94, align 8, !tbaa !16
  %96 = tail call noundef i64 @_ZN3vEB3maxEv(ptr noundef nonnull align 8 dereferenceable(40) %95)
  %97 = mul i64 %90, %26
  %98 = add i64 %96, %97
  %99 = load ptr, ptr %76, align 8, !tbaa !11
  store i64 %98, ptr %99, align 8, !tbaa !12
  br label %common.ret25
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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


; Effective O3 passes: CorrelatedValuePropagationPass,DivRemPairsPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass