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

; 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::lock_guard" = type { ptr }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.std::pair.237" = type <{ ptr, i8, [7 x i8] }>
%struct.RedexContext = type { i8, i8, %class.ConcurrentSet, %class.ConcurrentSet.7, %class.InsertOnlyConcurrentSet, %"struct.RedexContext::LargeStringSet", %"struct.std::array.27", %"struct.RedexContext::ConcurrentStringStorage", %"struct.RedexContext::ConcurrentStringStorage", %"struct.RedexContext::ConcurrentStringStorage", %class.AtomicMap, %class.AtomicMap.41, %"class.std::mutex", %class.AtomicMap.49, %class.InsertOnlyConcurrentSet.57, %class.AtomicMap.65, %"class.std::mutex", %class.AtomicMap.73, ptr, %class.InsertOnlyConcurrentSet.81, %"class.std::mutex", %"class.std::vector.89", %"class.std::vector.94", %"class.std::mutex", %"class.std::vector.99", %class.UnorderedMap, i8, i8, %"class.std::mutex", %class.FrequentlyUsedPointers, %class.ConcurrentMap, %class.ConcurrentMap.137, i8, %"class.std::queue", %"class.std::mutex" }
%class.ConcurrentSet = type { %class.ConcurrentContainer }
%class.ConcurrentContainer = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable"] }
%"class.cc_impl::ConcurrentHashtable" = type { %"struct.std::atomic", %"struct.std::atomic.1", %"struct.std::atomic.3", %"struct.std::atomic.5" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { ptr }
%"struct.std::atomic.1" = type { %"struct.std::__atomic_base.2" }
%"struct.std::__atomic_base.2" = type { i64 }
%"struct.std::atomic.3" = type { %"struct.std::__atomic_base.4" }
%"struct.std::__atomic_base.4" = type { i8 }
%"struct.std::atomic.5" = type { %"struct.std::__atomic_base.6" }
%"struct.std::__atomic_base.6" = type { ptr }
%class.ConcurrentSet.7 = type { %class.ConcurrentContainer.8 }
%class.ConcurrentContainer.8 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.9"] }
%"class.cc_impl::ConcurrentHashtable.9" = type { %"struct.std::atomic.10", %"struct.std::atomic.1", %"struct.std::atomic.3", %"struct.std::atomic.12" }
%"struct.std::atomic.10" = type { %"struct.std::__atomic_base.11" }
%"struct.std::__atomic_base.11" = type { ptr }
%"struct.std::atomic.12" = type { %"struct.std::__atomic_base.13" }
%"struct.std::__atomic_base.13" = type { ptr }
%class.InsertOnlyConcurrentSet = type { %class.ConcurrentContainer.15 }
%class.ConcurrentContainer.15 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.16"] }
%"class.cc_impl::ConcurrentHashtable.16" = type { %"struct.std::atomic.17", %"struct.std::atomic.1", %"struct.std::atomic.3", %"struct.std::atomic.19" }
%"struct.std::atomic.17" = type { %"struct.std::__atomic_base.18" }
%"struct.std::__atomic_base.18" = type { ptr }
%"struct.std::atomic.19" = type { %"struct.std::__atomic_base.20" }
%"struct.std::__atomic_base.20" = type { ptr }
%"struct.RedexContext::LargeStringSet" = type { %"struct.std::array" }
%"struct.std::array" = type { [127 x %"class.RedexContext::ConcurrentProjectedStringSet"] }
%"class.RedexContext::ConcurrentProjectedStringSet" = type { %"struct.std::array.22", %"struct.std::array.26" }
%"struct.std::array.22" = type { [31 x %"class.std::set"] }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<const DexString *, const DexString *, std::_Identity<const DexString *>, RedexContext::StringSetKeyCompare>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const DexString *, const DexString *, std::_Identity<const DexString *>, RedexContext::StringSetKeyCompare>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::array.26" = type { [31 x %"class.std::mutex"] }
%"struct.std::array.27" = type { [128 x 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::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::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 }
%class.AtomicMap = type { %class.ConcurrentContainer.34 }
%class.ConcurrentContainer.34 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.35"] }
%"class.cc_impl::ConcurrentHashtable.35" = type { %"struct.std::atomic.36", %"struct.std::atomic.1", %"struct.std::atomic.3", %"struct.std::atomic.38" }
%"struct.std::atomic.36" = type { %"struct.std::__atomic_base.37" }
%"struct.std::__atomic_base.37" = type { ptr }
%"struct.std::atomic.38" = type { %"struct.std::__atomic_base.39" }
%"struct.std::__atomic_base.39" = type { ptr }
%class.AtomicMap.41 = type { %class.ConcurrentContainer.42 }
%class.ConcurrentContainer.42 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.43"] }
%"class.cc_impl::ConcurrentHashtable.43" = type { %"struct.std::atomic.44", %"struct.std::atomic.1", %"struct.std::atomic.3", %"struct.std::atomic.46" }
%"struct.std::atomic.44" = type { %"struct.std::__atomic_base.45" }
%"struct.std::__atomic_base.45" = type { ptr }
%"struct.std::atomic.46" = type { %"struct.std::__atomic_base.47" }
%"struct.std::__atomic_base.47" = type { ptr }
%class.AtomicMap.49 = type { %class.ConcurrentContainer.50 }
%class.ConcurrentContainer.50 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.51"] }
%"class.cc_impl::ConcurrentHashtable.51" = type { %"struct.std::atomic.52", %"struct.std::atomic.1", %"struct.std::atomic.3", %"struct.std::atomic.54" }
%"struct.std::atomic.52" = type { %"struct.std::__atomic_base.53" }
%"struct.std::__atomic_base.53" = type { ptr }
%"struct.std::atomic.54" = type { %"struct.std::__atomic_base.55" }
%"struct.std::__atomic_base.55" = type { ptr }
%class.InsertOnlyConcurrentSet.57 = type { %class.ConcurrentContainer.58 }
%class.ConcurrentContainer.58 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.59"] }
%"class.cc_impl::ConcurrentHashtable.59" = type { %"struct.std::atomic.60", %"struct.std::atomic.1", %"struct.std::atomic.3", %"struct.std::atomic.62" }
%"struct.std::atomic.60" = type { %"struct.std::__atomic_base.61" }
%"struct.std::__atomic_base.61" = type { ptr }
%"struct.std::atomic.62" = type { %"struct.std::__atomic_base.63" }
%"struct.std::__atomic_base.63" = type { ptr }
%class.AtomicMap.65 = type { %class.ConcurrentContainer.66 }
%class.ConcurrentContainer.66 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.67"] }
%"class.cc_impl::ConcurrentHashtable.67" = type { %"struct.std::atomic.68", %"struct.std::atomic.1", %"struct.std::atomic.3", %"struct.std::atomic.70" }
%"struct.std::atomic.68" = type { %"struct.std::__atomic_base.69" }
%"struct.std::__atomic_base.69" = type { ptr }
%"struct.std::atomic.70" = type { %"struct.std::__atomic_base.71" }
%"struct.std::__atomic_base.71" = type { ptr }
%class.AtomicMap.73 = type { %class.ConcurrentContainer.74 }
%class.ConcurrentContainer.74 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.75"] }
%"class.cc_impl::ConcurrentHashtable.75" = type { %"struct.std::atomic.76", %"struct.std::atomic.1", %"struct.std::atomic.3", %"struct.std::atomic.78" }
%"struct.std::atomic.76" = type { %"struct.std::__atomic_base.77" }
%"struct.std::__atomic_base.77" = type { ptr }
%"struct.std::atomic.78" = type { %"struct.std::__atomic_base.79" }
%"struct.std::__atomic_base.79" = type { ptr }
%class.InsertOnlyConcurrentSet.81 = type { %class.ConcurrentContainer.82 }
%class.ConcurrentContainer.82 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.83"] }
%"class.cc_impl::ConcurrentHashtable.83" = type { %"struct.std::atomic.84", %"struct.std::atomic.1", %"struct.std::atomic.3", %"struct.std::atomic.86" }
%"struct.std::atomic.84" = type { %"struct.std::__atomic_base.85" }
%"struct.std::__atomic_base.85" = type { ptr }
%"struct.std::atomic.86" = type { %"struct.std::__atomic_base.87" }
%"struct.std::__atomic_base.87" = type { ptr }
%"class.std::vector.89" = type { %"struct.std::_Vector_base.90" }
%"struct.std::_Vector_base.90" = type { %"struct.std::_Vector_base<DexClass *, std::allocator<DexClass *>>::_Vector_impl" }
%"struct.std::_Vector_base<DexClass *, std::allocator<DexClass *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DexClass *, std::allocator<DexClass *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DexClass *, std::allocator<DexClass *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.94" = type { %"struct.std::_Vector_base.95" }
%"struct.std::_Vector_base.95" = type { %"struct.std::_Vector_base<const DexType *, std::allocator<const DexType *>>::_Vector_impl" }
%"struct.std::_Vector_base<const DexType *, std::allocator<const DexType *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const DexType *, std::allocator<const DexType *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const DexType *, std::allocator<const DexType *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.99" = type { %"struct.std::_Vector_base.100" }
%"struct.std::_Vector_base.100" = type { %"struct.std::_Vector_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.UnorderedMap = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%class.FrequentlyUsedPointers = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %class.UnorderedSet }
%class.UnorderedSet = type { %"class.std::unordered_set" }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.111" }
%"class.std::_Hashtable.111" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%class.ConcurrentMap = type { %class.ConcurrentContainer.130, [83 x %"class.std::mutex"] }
%class.ConcurrentContainer.130 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.131"] }
%"class.cc_impl::ConcurrentHashtable.131" = type { %"struct.std::atomic.132", %"struct.std::atomic.1", %"struct.std::atomic.3", %"struct.std::atomic.134" }
%"struct.std::atomic.132" = type { %"struct.std::__atomic_base.133" }
%"struct.std::__atomic_base.133" = type { ptr }
%"struct.std::atomic.134" = type { %"struct.std::__atomic_base.135" }
%"struct.std::__atomic_base.135" = type { ptr }
%class.ConcurrentMap.137 = type { %class.ConcurrentContainer.138, [83 x %"class.std::mutex"] }
%class.ConcurrentContainer.138 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.139"] }
%"class.cc_impl::ConcurrentHashtable.139" = type { %"struct.std::atomic.140", %"struct.std::atomic.1", %"struct.std::atomic.3", %"struct.std::atomic.142" }
%"struct.std::atomic.140" = type { %"struct.std::__atomic_base.141" }
%"struct.std::__atomic_base.141" = type { ptr }
%"struct.std::atomic.142" = type { %"struct.std::__atomic_base.143" }
%"struct.std::__atomic_base.143" = type { ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<DexMethodRef *, std::allocator<DexMethodRef *>>::_Deque_impl" }
%"struct.std::_Deque_base<DexMethodRef *, std::allocator<DexMethodRef *>>::_Deque_impl" = type { %"struct.std::_Deque_base<DexMethodRef *, std::allocator<DexMethodRef *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<DexMethodRef *, std::allocator<DexMethodRef *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, 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.DexFieldRef = type <{ %struct.DexFieldSpec, i8, i8, [6 x i8] }>
%struct.DexFieldSpec = type { ptr, ptr, ptr }

@.str.16 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [3 x i8], align 1
@__PRETTY_FUNCTION__._ZN12RedexContext12mutate_fieldEP11DexFieldRefRK12DexFieldSpecb = external hidden unnamed_addr constant [75 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [56 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 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 nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK9AtomicMapI12DexFieldSpecP11DexFieldRefSt4hashIS0_ESt8equal_toIS0_ELm83EE4loadERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(2664), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN9AtomicMapI12DexFieldSpecP11DexFieldRefSt4hashIS0_ESt8equal_toIS0_ELm83EE7emplaceIJRS2_EEESt4pairIPSt6atomicIS2_EbERKS0_DpOT_(ptr noundef nonnull align 8 dereferenceable(2664), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12RedexContext12mutate_fieldEP11DexFieldRefRK12DexFieldSpecb(ptr noundef nonnull align 8 dereferenceable(389504) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i1 noundef zeroext %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca %"class.std::lock_guard", align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::basic_string_view", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca i1, align 1
  %19 = alloca i1, align 1
  %20 = alloca %"struct.std::pair.237", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %21 = zext i1 %3 to i8
  store i8 %21, ptr %8, align 1, !tbaa !9
  %22 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %23 = getelementptr inbounds %struct.RedexContext, ptr %22, i32 0, i32 12
  call void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(40) %23)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %class.DexFieldRef, ptr %24, i32 0, i32 0
  store ptr %25, ptr %10, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.RedexContext, ptr %22, i32 0, i32 11
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = invoke noundef i64 @_ZN19ConcurrentContainerISt13unordered_mapI12DexFieldSpecSt6atomicIP11DexFieldRefESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S5_EEELm83EE5eraseERSB_(ptr noundef nonnull align 8 dereferenceable(2664) %26, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %29 unwind label %117

29:                                               ; preds = %4
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.DexFieldSpec, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %38

34:                                               ; preds = %29
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.DexFieldSpec, ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  br label %43

38:                                               ; preds = %29
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %class.DexFieldRef, ptr %39, i32 0, i32 0
  %41 = getelementptr inbounds %struct.DexFieldSpec, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !13
  br label %43

43:                                               ; preds = %38, %34
  %44 = phi ptr [ %37, %34 ], [ %42, %38 ]
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.DexFieldSpec, ptr %45, i32 0, i32 0
  store ptr %44, ptr %46, align 8, !tbaa !11
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.DexFieldSpec, ptr %47, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8, !tbaa !15
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %55

51:                                               ; preds = %43
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.DexFieldSpec, ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  br label %60

55:                                               ; preds = %43
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %class.DexFieldRef, ptr %56, i32 0, i32 0
  %58 = getelementptr inbounds %struct.DexFieldSpec, ptr %57, i32 0, i32 1
  %59 = load ptr, ptr %58, align 8, !tbaa !16
  br label %60

60:                                               ; preds = %55, %51
  %61 = phi ptr [ %54, %51 ], [ %59, %55 ]
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.DexFieldSpec, ptr %62, i32 0, i32 1
  store ptr %61, ptr %63, align 8, !tbaa !15
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.DexFieldSpec, ptr %64, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !17
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %72

68:                                               ; preds = %60
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.DexFieldSpec, ptr %69, i32 0, i32 2
  %71 = load ptr, ptr %70, align 8, !tbaa !17
  br label %77

72:                                               ; preds = %60
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %class.DexFieldRef, ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds %struct.DexFieldSpec, ptr %74, i32 0, i32 2
  %76 = load ptr, ptr %75, align 8, !tbaa !18
  br label %77

77:                                               ; preds = %72, %68
  %78 = phi ptr [ %71, %68 ], [ %76, %72 ]
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.DexFieldSpec, ptr %79, i32 0, i32 2
  store ptr %78, ptr %80, align 8, !tbaa !17
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %class.DexFieldRef, ptr %82, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %83, ptr align 8 %81, i64 24, i1 false), !tbaa.struct !19
  %84 = load i8, ptr %8, align 1, !tbaa !9, !range !20, !noundef !21
  %85 = trunc i8 %84 to i1
  br i1 %85, label %86, label %137

86:                                               ; preds = %77
  %87 = getelementptr inbounds %struct.RedexContext, ptr %22, i32 0, i32 11
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = invoke noundef i64 @_ZNK19ConcurrentContainerISt13unordered_mapI12DexFieldSpecSt6atomicIP11DexFieldRefESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S5_EEELm83EE5countERSB_(ptr noundef nonnull align 8 dereferenceable(2664) %87, ptr noundef nonnull align 8 dereferenceable(24) %88)
          to label %90 unwind label %117

90:                                               ; preds = %86
  %91 = icmp ne i64 %89, 0
  br i1 %91, label %92, label %137

92:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !22
  br label %93

93:                                               ; preds = %134, %92
  br label %94

94:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #8
  %95 = load i32, ptr %13, align 4, !tbaa !22
  %96 = add i32 %95, 1
  store i32 %96, ptr %13, align 4, !tbaa !22
  call void @_ZNSt7__cxx119to_stringEj(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, i32 noundef %95) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef @.str.22, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %97 unwind label %121

97:                                               ; preds = %94
  %98 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  %99 = getelementptr inbounds { i64, ptr }, ptr %14, i32 0, i32 0
  %100 = extractvalue { i64, ptr } %98, 0
  store i64 %100, ptr %99, align 8
  %101 = getelementptr inbounds { i64, ptr }, ptr %14, i32 0, i32 1
  %102 = extractvalue { i64, ptr } %98, 1
  store ptr %102, ptr %101, align 8
  %103 = getelementptr inbounds { i64, ptr }, ptr %14, i32 0, i32 0
  %104 = load i64, ptr %103, align 8
  %105 = getelementptr inbounds { i64, ptr }, ptr %14, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8
  %107 = invoke noundef ptr @_ZN9DexString11make_stringESt17basic_string_viewIcSt11char_traitsIcEE(i64 %104, ptr %106)
          to label %108 unwind label %125

108:                                              ; preds = %97
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.DexFieldSpec, ptr %109, i32 0, i32 1
  store ptr %107, ptr %110, align 8, !tbaa !15
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  %111 = getelementptr inbounds %struct.RedexContext, ptr %22, i32 0, i32 11
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = invoke noundef i64 @_ZNK19ConcurrentContainerISt13unordered_mapI12DexFieldSpecSt6atomicIP11DexFieldRefESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S5_EEELm83EE5countERSB_(ptr noundef nonnull align 8 dereferenceable(2664) %111, ptr noundef nonnull align 8 dereferenceable(24) %112)
          to label %114 unwind label %130

114:                                              ; preds = %108
  %115 = icmp ne i64 %113, 0
  br i1 %115, label %134, label %116

116:                                              ; preds = %114
  br label %135

117:                                              ; preds = %168, %137, %86, %4
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %11, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %12, align 4
  br label %183

121:                                              ; preds = %94
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %11, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %12, align 4
  br label %129

125:                                              ; preds = %97
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %11, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  br label %129

129:                                              ; preds = %125, %121
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  br label %136

130:                                              ; preds = %108
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %11, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %12, align 4
  br label %136

134:                                              ; preds = %114
  br label %93, !llvm.loop !24

135:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %137

136:                                              ; preds = %130, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %183

137:                                              ; preds = %135, %90, %77
  %138 = getelementptr inbounds %struct.RedexContext, ptr %22, i32 0, i32 11
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  store i1 false, ptr %18, align 1
  store i1 false, ptr %19, align 1
  %140 = invoke noundef i64 @_ZNK19ConcurrentContainerISt13unordered_mapI12DexFieldSpecSt6atomicIP11DexFieldRefESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S5_EEELm83EE5countERSB_(ptr noundef nonnull align 8 dereferenceable(2664) %138, ptr noundef nonnull align 8 dereferenceable(24) %139)
          to label %141 unwind label %117

141:                                              ; preds = %137
  %142 = icmp ne i64 %140, 0
  br i1 %142, label %144, label %143

143:                                              ; preds = %141
  br label %162

144:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #8
  store i1 true, ptr %18, align 1
  %145 = getelementptr inbounds %struct.RedexContext, ptr %22, i32 0, i32 11
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = invoke noundef ptr @_ZNK9AtomicMapI12DexFieldSpecP11DexFieldRefSt4hashIS0_ESt8equal_toIS0_ELm83EE4loadERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(2664) %145, ptr noundef nonnull align 8 dereferenceable(24) %146, ptr noundef null)
          to label %148 unwind label %152

148:                                              ; preds = %144
  invoke void @_Z4showI11DexFieldRefRSoENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef %147)
          to label %149 unwind label %152

149:                                              ; preds = %148
  store i1 true, ptr %19, align 1
  %150 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.21, ptr noundef @.str.16, i32 noundef 617, ptr noundef @__PRETTY_FUNCTION__._ZN12RedexContext12mutate_fieldEP11DexFieldRefRK12DexFieldSpecb, i32 noundef 2, ptr noundef @.str.23, ptr noundef %150) #9
          to label %151 unwind label %156

151:                                              ; preds = %149
  unreachable

152:                                              ; preds = %148, %144
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %11, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %12, align 4
  br label %179

156:                                              ; preds = %149
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %11, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %12, align 4
  %160 = load i1, ptr %19, align 1
  br i1 %160, label %177, label %178

161:                                              ; No predecessors!
  br label %162

162:                                              ; preds = %161, %143
  %163 = load i1, ptr %19, align 1
  br i1 %163, label %164, label %165

164:                                              ; preds = %162
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  br label %165

165:                                              ; preds = %164, %162
  %166 = load i1, ptr %18, align 1
  br i1 %166, label %167, label %168

167:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  br label %168

168:                                              ; preds = %167, %165
  %169 = getelementptr inbounds %struct.RedexContext, ptr %22, i32 0, i32 11
  %170 = load ptr, ptr %10, align 8, !tbaa !5
  %171 = invoke { ptr, i8 } @_ZN9AtomicMapI12DexFieldSpecP11DexFieldRefSt4hashIS0_ESt8equal_toIS0_ELm83EE7emplaceIJRS2_EEESt4pairIPSt6atomicIS2_EbERKS0_DpOT_(ptr noundef nonnull align 8 dereferenceable(2664) %169, ptr noundef nonnull align 8 dereferenceable(24) %170, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %172 unwind label %117

172:                                              ; preds = %168
  %173 = getelementptr inbounds { ptr, i8 }, ptr %20, i32 0, i32 0
  %174 = extractvalue { ptr, i8 } %171, 0
  store ptr %174, ptr %173, align 8
  %175 = getelementptr inbounds { ptr, i8 }, ptr %20, i32 0, i32 1
  %176 = extractvalue { ptr, i8 } %171, 1
  store i8 %176, ptr %175, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  ret void

177:                                              ; preds = %156
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  br label %178

178:                                              ; preds = %177, %156
  br label %179

179:                                              ; preds = %178, %152
  %180 = load i1, ptr %18, align 1
  br i1 %180, label %181, label %182

181:                                              ; preds = %179
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  br label %182

182:                                              ; preds = %181, %179
  br label %183

183:                                              ; preds = %182, %136, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %184

184:                                              ; preds = %183
  %185 = load ptr, ptr %11, align 8
  %186 = load i32, ptr %12, align 4
  %187 = insertvalue { ptr, i32 } poison, ptr %185, 0
  %188 = insertvalue { ptr, i32 } %187, i32 %186, 1
  resume { ptr, i32 } %188
}

declare noundef ptr @_ZN9DexString11make_stringESt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEj(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) #7

; Function Attrs: mustprogress nounwind uwtable
declare { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4showI11DexFieldRefRSoENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) #2

attributes #0 = { 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { noreturn "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 = { "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 #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn }

!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 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS12DexFieldSpec", !6, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS11DexFieldRef", !12, i64 0, !10, i64 24, !10, i64 25}
!15 = !{!12, !6, i64 8}
!16 = !{!14, !6, i64 8}
!17 = !{!12, !6, i64 16}
!18 = !{!14, !6, i64 16}
!19 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!23, !23, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; 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::lock_guard" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str.16 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [3 x i8], align 1
@__PRETTY_FUNCTION__._ZN12RedexContext12mutate_fieldEP11DexFieldRefRK12DexFieldSpecb = external hidden unnamed_addr constant [75 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [56 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; 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
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2 align 2

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

; Function Attrs: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK9AtomicMapI12DexFieldSpecP11DexFieldRefSt4hashIS0_ESt8equal_toIS0_ELm83EE4loadERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(2664), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK19ConcurrentContainerISt13unordered_mapI12DexFieldSpecSt6atomicIP11DexFieldRefESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S5_EEELm83EE5countERSB_(ptr noundef nonnull align 8 dereferenceable(2664), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN9AtomicMapI12DexFieldSpecP11DexFieldRefSt4hashIS0_ESt8equal_toIS0_ELm83EE7emplaceIJRS2_EEESt4pairIPSt6atomicIS2_EbERKS0_DpOT_(ptr noundef nonnull align 8 dereferenceable(2664), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN19ConcurrentContainerISt13unordered_mapI12DexFieldSpecSt6atomicIP11DexFieldRefESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S5_EEELm83EE5eraseERSB_(ptr noundef nonnull align 8 dereferenceable(2664), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12RedexContext12mutate_fieldEP11DexFieldRefRK12DexFieldSpecb(ptr noundef nonnull align 8 dereferenceable(389504) %0, ptr noundef %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %2, i1 noundef zeroext %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::lock_guard", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %10 = getelementptr inbounds i8, ptr %0, i64 363280
  call void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(40) %10)
  %11 = getelementptr inbounds i8, ptr %0, i64 360616
  %12 = invoke noundef i64 @_ZN19ConcurrentContainerISt13unordered_mapI12DexFieldSpecSt6atomicIP11DexFieldRefESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S5_EEELm83EE5eraseERSB_(ptr noundef nonnull align 8 dereferenceable(2664) %11, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %13 unwind label %47

13:                                               ; preds = %4
  %14 = load ptr, ptr %2, align 8, !tbaa !9
  %.not = icmp eq ptr %14, null
  br i1 %.not, label %15, label %17

15:                                               ; preds = %13
  %16 = load ptr, ptr %1, align 8, !tbaa !11
  br label %17

17:                                               ; preds = %13, %15
  %18 = phi ptr [ %16, %15 ], [ %14, %13 ]
  store ptr %18, ptr %1, align 8, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %2, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !14
  %.not34 = icmp eq ptr %20, null
  br i1 %.not34, label %21, label %24

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %1, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  br label %24

24:                                               ; preds = %17, %21
  %25 = phi ptr [ %23, %21 ], [ %20, %17 ]
  %26 = getelementptr inbounds i8, ptr %1, i64 8
  store ptr %25, ptr %26, align 8, !tbaa !14
  %27 = getelementptr inbounds i8, ptr %2, i64 16
  %28 = load ptr, ptr %27, align 8, !tbaa !16
  %.not35 = icmp eq ptr %28, null
  br i1 %.not35, label %29, label %32

29:                                               ; preds = %24
  %30 = getelementptr inbounds i8, ptr %1, i64 16
  %31 = load ptr, ptr %30, align 8, !tbaa !17
  br label %32

32:                                               ; preds = %24, %29
  %33 = phi ptr [ %31, %29 ], [ %28, %24 ]
  %34 = getelementptr inbounds i8, ptr %1, i64 16
  store ptr %33, ptr %34, align 8, !tbaa !16
  br i1 %3, label %35, label %.loopexit

35:                                               ; preds = %32
  %36 = invoke noundef i64 @_ZNK19ConcurrentContainerISt13unordered_mapI12DexFieldSpecSt6atomicIP11DexFieldRefESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S5_EEELm83EE5countERSB_(ptr noundef nonnull align 8 dereferenceable(2664) %11, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %37 unwind label %47

37:                                               ; preds = %35
  %.not36 = icmp eq i64 %36, 0
  br i1 %.not36, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %37, %46
  %.030 = phi i32 [ %38, %46 ], [ 0, %37 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  %38 = add i32 %.030, 1
  call void @_ZNSt7__cxx119to_stringEj(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, i32 noundef %.030) #7
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull @.str.22, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %39 unwind label %49

39:                                               ; preds = %.preheader
  %40 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  %41 = extractvalue { i64, ptr } %40, 0
  %42 = extractvalue { i64, ptr } %40, 1
  %43 = invoke noundef ptr @_ZN9DexString11make_stringESt17basic_string_viewIcSt11char_traitsIcEE(i64 %41, ptr %42)
          to label %44 unwind label %51

44:                                               ; preds = %39
  store ptr %43, ptr %26, align 8, !tbaa !14
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  %45 = invoke noundef i64 @_ZNK19ConcurrentContainerISt13unordered_mapI12DexFieldSpecSt6atomicIP11DexFieldRefESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S5_EEELm83EE5countERSB_(ptr noundef nonnull align 8 dereferenceable(2664) %11, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %46 unwind label %54

46:                                               ; preds = %44
  %.not40 = icmp eq i64 %45, 0
  br i1 %.not40, label %.loopexit, label %.preheader, !llvm.loop !18

47:                                               ; preds = %68, %.loopexit, %35, %4
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %72

49:                                               ; preds = %.preheader
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %53

51:                                               ; preds = %39
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %53

53:                                               ; preds = %51, %49
  %.pn = phi { ptr, i32 } [ %52, %51 ], [ %50, %49 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  br label %72

54:                                               ; preds = %44
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %72

.loopexit:                                        ; preds = %46, %37, %32
  %56 = invoke noundef i64 @_ZNK19ConcurrentContainerISt13unordered_mapI12DexFieldSpecSt6atomicIP11DexFieldRefESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S5_EEELm83EE5countERSB_(ptr noundef nonnull align 8 dereferenceable(2664) %11, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %57 unwind label %47

57:                                               ; preds = %.loopexit
  %.not41 = icmp eq i64 %56, 0
  br i1 %.not41, label %68, label %58

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  %59 = invoke noundef ptr @_ZNK9AtomicMapI12DexFieldSpecP11DexFieldRefSt4hashIS0_ESt8equal_toIS0_ELm83EE4loadERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(2664) %11, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef null)
          to label %60 unwind label %64

60:                                               ; preds = %58
  invoke void @_Z4showI11DexFieldRefRSoENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef %59)
          to label %61 unwind label %64

61:                                               ; preds = %60
  %62 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.16, i32 noundef 617, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN12RedexContext12mutate_fieldEP11DexFieldRefRK12DexFieldSpecb, i32 noundef 2, ptr noundef nonnull @.str.23, ptr noundef %62) #8
          to label %63 unwind label %66

63:                                               ; preds = %61
  unreachable

64:                                               ; preds = %60, %58
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %71

66:                                               ; preds = %61
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %71

68:                                               ; preds = %57
  %69 = invoke { ptr, i8 } @_ZN9AtomicMapI12DexFieldSpecP11DexFieldRefSt4hashIS0_ESt8equal_toIS0_ELm83EE7emplaceIJRS2_EEESt4pairIPSt6atomicIS2_EbERKS0_DpOT_(ptr noundef nonnull align 8 dereferenceable(2664) %11, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %70 unwind label %47

70:                                               ; preds = %68
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  ret void

71:                                               ; preds = %64, %66
  %.pn42 = phi { ptr, i32 } [ %67, %66 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %72

72:                                               ; preds = %53, %54, %71, %47
  %.pn42.pn = phi { ptr, i32 } [ %.pn42, %71 ], [ %48, %47 ], [ %55, %54 ], [ %.pn, %53 ]
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  resume { ptr, i32 } %.pn42.pn
}

declare noundef ptr @_ZN9DexString11make_stringESt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEj(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4showI11DexFieldRefRSoENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) local_unnamed_addr #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "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 = { "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn }

!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, !6, i64 0}
!10 = !{!"_ZTS12DexFieldSpec", !6, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS11DexFieldRef", !10, i64 0, !13, i64 24, !13, i64 25}
!13 = !{!"bool", !7, i64 0}
!14 = !{!10, !6, i64 8}
!15 = !{!12, !6, i64 8}
!16 = !{!10, !6, i64 16}
!17 = !{!12, !6, i64 16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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