; LLVM IR from facebook/redex :: libredex/RedexContext.ll (ZNK12RedexContext23ConcurrentStringStorage9get_statsEv)

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

%"struct.RedexContext::ConcurrentStringStorage::Stats" = type { i64, i64, i64, i64, i64, i64, i64 }
%class.anon.180 = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.RedexContext::ConcurrentStringStorage" = type { i64, i64, i64, %"struct.std::atomic.1", %"struct.std::atomic.1", %"struct.std::atomic.1", %"struct.std::atomic.1", %"struct.std::array.28", %"class.std::mutex", %"class.std::vector" }
%"struct.std::atomic.1" = type { %"struct.std::__atomic_base.2" }
%"struct.std::__atomic_base.2" = type { i64 }
%"struct.std::array.28" = type { [11 x %"struct.RedexContext::ConcurrentStringStorage::Slot"] }
%"struct.RedexContext::ConcurrentStringStorage::Slot" = type { %"struct.std::atomic.29", [56 x i8] }
%"struct.std::atomic.29" = type { %"struct.std::__atomic_base.30" }
%"struct.std::__atomic_base.30" = type { ptr }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::unique_ptr<RedexContext::ConcurrentStringStorage::Container>, std::allocator<std::unique_ptr<RedexContext::ConcurrentStringStorage::Container>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<RedexContext::ConcurrentStringStorage::Container>, std::allocator<std::unique_ptr<RedexContext::ConcurrentStringStorage::Container>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<RedexContext::ConcurrentStringStorage::Container>, std::allocator<std::unique_ptr<RedexContext::ConcurrentStringStorage::Container>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<RedexContext::ConcurrentStringStorage::Container>, std::allocator<std::unique_ptr<RedexContext::ConcurrentStringStorage::Container>>>::_Vector_impl_data" = type { 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: 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 @_ZNK12RedexContext23ConcurrentStringStorage9get_statsEv(ptr dead_on_unwind noalias writable sret(%"struct.RedexContext::ConcurrentStringStorage::Stats") align 8 %0, ptr noundef nonnull align 8 dereferenceable(824) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca %class.anon.180, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca ptr, align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  call void @_ZN12RedexContext23ConcurrentStringStorage5StatsC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  %14 = getelementptr inbounds %"struct.RedexContext::ConcurrentStringStorage", ptr %13, i32 0, i32 4
  %15 = call noundef i64 @_ZNKSt13__atomic_baseImE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 5) #5
  %16 = getelementptr inbounds %"struct.RedexContext::ConcurrentStringStorage::Stats", ptr %0, i32 0, i32 4
  store i64 %15, ptr %16, align 8, !tbaa !9
  %17 = getelementptr inbounds %"struct.RedexContext::ConcurrentStringStorage", ptr %13, i32 0, i32 5
  %18 = call noundef i64 @_ZNKSt13__atomic_baseImE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef 5) #5
  %19 = getelementptr inbounds %"struct.RedexContext::ConcurrentStringStorage::Stats", ptr %0, i32 0, i32 5
  store i64 %18, ptr %19, align 8, !tbaa !12
  %20 = getelementptr inbounds %"struct.RedexContext::ConcurrentStringStorage", ptr %13, i32 0, i32 6
  %21 = call noundef i64 @_ZNKSt13__atomic_baseImE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %20, i32 noundef 5) #5
  %22 = getelementptr inbounds %"struct.RedexContext::ConcurrentStringStorage::Stats", ptr %0, i32 0, i32 6
  store i64 %21, ptr %22, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %23 = getelementptr inbounds %class.anon.180, ptr %4, i32 0, i32 0
  store ptr %0, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %24 = getelementptr inbounds %"struct.RedexContext::ConcurrentStringStorage", ptr %13, i32 0, i32 7
  store ptr %24, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call noundef ptr @_ZNKSt5arrayIN12RedexContext23ConcurrentStringStorage4SlotELm11EE5beginEv(ptr noundef nonnull align 8 dereferenceable(704) %25) #5
  store ptr %26, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = call noundef ptr @_ZNKSt5arrayIN12RedexContext23ConcurrentStringStorage4SlotELm11EE3endEv(ptr noundef nonnull align 8 dereferenceable(704) %27) #5
  store ptr %28, ptr %7, align 8, !tbaa !5
  br label %29

29:                                               ; preds = %39, %2
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = icmp ne ptr %30, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  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 %42

34:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %35, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.RedexContext::ConcurrentStringStorage::Slot", ptr %36, i32 0, i32 0
  %38 = call noundef ptr @_ZNKSt6atomicIPN12RedexContext23ConcurrentStringStorage9ContainerEE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %37, i32 noundef 5) #5
  call void @"_ZZNK12RedexContext23ConcurrentStringStorage9get_statsEvENK3$_0clINS0_9ContainerEEEDaPT_"(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %38)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %39

39:                                               ; preds = %34
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.RedexContext::ConcurrentStringStorage::Slot", ptr %40, i32 1
  store ptr %41, ptr %6, align 8, !tbaa !5
  br label %29

42:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %43 = getelementptr inbounds %"struct.RedexContext::ConcurrentStringStorage", ptr %13, i32 0, i32 9
  store ptr %43, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = call ptr @_ZNKSt6vectorISt10unique_ptrIN12RedexContext23ConcurrentStringStorage9ContainerESt14default_deleteIS3_EESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #5
  %46 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %45, ptr %46, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = call ptr @_ZNKSt6vectorISt10unique_ptrIN12RedexContext23ConcurrentStringStorage9ContainerESt14default_deleteIS3_EESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #5
  %49 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %48, ptr %49, align 8
  br label %50

50:                                               ; preds = %57, %42
  %51 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt10unique_ptrIN12RedexContext23ConcurrentStringStorage9ContainerESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESI_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %51, label %53, label %52

52:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %59

53:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt10unique_ptrIN12RedexContext23ConcurrentStringStorage9ContainerESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  store ptr %54, ptr %12, align 8, !tbaa !5
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = call noundef ptr @_ZNKSt10unique_ptrIN12RedexContext23ConcurrentStringStorage9ContainerESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #5
  call void @"_ZZNK12RedexContext23ConcurrentStringStorage9get_statsEvENK3$_0clINS0_9ContainerEEEDaPT_"(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %56)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %57

57:                                               ; preds = %53
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt10unique_ptrIN12RedexContext23ConcurrentStringStorage9ContainerESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br label %50

59:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  ret void
}

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt13__atomic_baseImE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZNK12RedexContext23ConcurrentStringStorage9get_statsEvENK3$_0clINS0_9ContainerEEEDaPT_"(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt10unique_ptrIN12RedexContext23ConcurrentStringStorage9ContainerESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESI_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

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

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


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

%"struct.RedexContext::ConcurrentStringStorage::Stats" = type { i64, i64, i64, i64, i64, i64, i64 }
%class.anon.180 = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK12RedexContext23ConcurrentStringStorage9get_statsEv(ptr dead_on_unwind noalias nonnull writable sret(%"struct.RedexContext::ConcurrentStringStorage::Stats") align 8 %0, ptr noundef nonnull align 8 dereferenceable(824) %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %class.anon.180, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  tail call void @_ZN12RedexContext23ConcurrentStringStorage5StatsC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #4
  %6 = getelementptr inbounds i8, ptr %1, i64 32
  %7 = tail call noundef i64 @_ZNKSt13__atomic_baseImE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 5) #4
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 %7, ptr %8, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 40
  %10 = tail call noundef i64 @_ZNKSt13__atomic_baseImE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef 5) #4
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  store i64 %10, ptr %11, align 8, !tbaa !10
  %12 = getelementptr inbounds i8, ptr %1, i64 48
  %13 = tail call noundef i64 @_ZNKSt13__atomic_baseImE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 5) #4
  %14 = getelementptr inbounds i8, ptr %0, i64 48
  store i64 %13, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  store ptr %0, ptr %3, align 8, !tbaa !12
  %15 = getelementptr inbounds i8, ptr %1, i64 56
  %16 = tail call noundef ptr @_ZNKSt5arrayIN12RedexContext23ConcurrentStringStorage4SlotELm11EE5beginEv(ptr noundef nonnull align 8 dereferenceable(704) %15) #4
  %17 = tail call noundef ptr @_ZNKSt5arrayIN12RedexContext23ConcurrentStringStorage4SlotELm11EE3endEv(ptr noundef nonnull align 8 dereferenceable(704) %15) #4
  %.not11 = icmp eq ptr %16, %17
  br i1 %.not11, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %2
  %18 = getelementptr inbounds i8, ptr %1, i64 800
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %19 = call ptr @_ZNKSt6vectorISt10unique_ptrIN12RedexContext23ConcurrentStringStorage9ContainerESt14default_deleteIS3_EESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  store ptr %19, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %20 = call ptr @_ZNKSt6vectorISt10unique_ptrIN12RedexContext23ConcurrentStringStorage9ContainerESt14default_deleteIS3_EESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  store ptr %20, ptr %5, align 8
  %21 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt10unique_ptrIN12RedexContext23ConcurrentStringStorage9ContainerESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESI_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  br i1 %21, label %.lr.ph14, label %._crit_edge15

.lr.ph:                                           ; preds = %2, %.lr.ph
  %.012 = phi ptr [ %23, %.lr.ph ], [ %16, %2 ]
  %22 = call noundef ptr @_ZNKSt6atomicIPN12RedexContext23ConcurrentStringStorage9ContainerEE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %.012, i32 noundef 5) #4
  call void @"_ZZNK12RedexContext23ConcurrentStringStorage9get_statsEvENK3$_0clINS0_9ContainerEEEDaPT_"(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %22)
  %23 = getelementptr inbounds i8, ptr %.012, i64 64
  %.not = icmp eq ptr %23, %17
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge15:                                    ; preds = %.lr.ph14, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret void

.lr.ph14:                                         ; preds = %._crit_edge, %.lr.ph14
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt10unique_ptrIN12RedexContext23ConcurrentStringStorage9ContainerESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %25 = call noundef ptr @_ZNKSt10unique_ptrIN12RedexContext23ConcurrentStringStorage9ContainerESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #4
  call void @"_ZZNK12RedexContext23ConcurrentStringStorage9get_statsEvENK3$_0clINS0_9ContainerEEEDaPT_"(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %25)
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt10unique_ptrIN12RedexContext23ConcurrentStringStorage9ContainerESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %27 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt10unique_ptrIN12RedexContext23ConcurrentStringStorage9ContainerESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESI_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  br i1 %27, label %.lr.ph14, label %._crit_edge15
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt5arrayIN12RedexContext23ConcurrentStringStorage4SlotELm11EE5beginEv(ptr noundef nonnull align 8 dereferenceable(704)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt5arrayIN12RedexContext23ConcurrentStringStorage4SlotELm11EE3endEv(ptr noundef nonnull align 8 dereferenceable(704)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZNK12RedexContext23ConcurrentStringStorage9get_statsEvENK3$_0clINS0_9ContainerEEEDaPT_"(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt6atomicIPN12RedexContext23ConcurrentStringStorage9ContainerEE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt10unique_ptrIN12RedexContext23ConcurrentStringStorage9ContainerESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESI_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 32}
!6 = !{!"_ZTSN12RedexContext23ConcurrentStringStorage5StatsE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 40}
!11 = !{!6, !7, i64 48}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass