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

; 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.DexFieldSpec = type { ptr, ptr, ptr }
%"class.std::unique_ptr.208" = type { %"struct.std::__uniq_ptr_data.209" }
%"struct.std::__uniq_ptr_data.209" = type { %"class.std::__uniq_ptr_impl.210" }
%"class.std::__uniq_ptr_impl.210" = type { %"class.std::tuple.211" }
%"class.std::tuple.211" = type { %"struct.std::_Tuple_impl.212" }
%"struct.std::_Tuple_impl.212" = type { %"struct.std::_Head_base.215" }
%"struct.std::_Head_base.215" = type { ptr }
%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 }

@.str.16 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [59 x i8], align 1
@__PRETTY_FUNCTION__._ZN12RedexContext10make_fieldEPK7DexTypePK9DexStringS2_ = external hidden unnamed_addr constant [91 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #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
define dso_local noundef ptr @_ZN12RedexContext10make_fieldEPK7DexTypePK9DexStringS2_(ptr noundef nonnull align 8 dereferenceable(389504) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #5 align 2 personality ptr @__gxx_personality_v0 {
  %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 %struct.DexFieldSpec, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::unique_ptr.208", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %struct.DexFieldSpec, align 8
  %17 = alloca %"class.std::unique_ptr.208", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %18 = load ptr, ptr %6, align 8
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %28

21:                                               ; preds = %4
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %28

24:                                               ; preds = %21
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %28

27:                                               ; preds = %24
  br label %30

28:                                               ; preds = %24, %21, %4
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.20, ptr noundef @.str.16, i32 noundef 543, ptr noundef @__PRETTY_FUNCTION__._ZN12RedexContext10make_fieldEPK7DexTypePK9DexStringS2_, i32 noundef 2, ptr noundef @.str.17) #8
  unreachable

29:                                               ; No predecessors!
  br label %30

30:                                               ; preds = %29, %27
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #9
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN12DexFieldSpecC2EP7DexTypePK9DexStringS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef %31, ptr noundef %32, ptr noundef %33)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %34 = getelementptr inbounds %struct.RedexContext, ptr %18, i32 0, i32 11
  %35 = call noundef ptr @_ZNK9AtomicMapI12DexFieldSpecP11DexFieldRefSt4hashIS0_ESt8equal_toIS0_ELm83EE4loadERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(2664) %34, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef null)
  store ptr %35, ptr %11, align 8, !tbaa !5
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %40

38:                                               ; preds = %30
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %39, ptr %5, align 8
  store i32 1, ptr %12, align 4
  br label %58

40:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %41 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 96) #10
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN8DexFieldC1EP7DexTypePK9DexStringS1_(ptr noundef nonnull align 8 dereferenceable(96) %41, ptr noundef %42, ptr noundef %43, ptr noundef %44)
          to label %45 unwind label %49

45:                                               ; preds = %40
  call void @_ZNSt10unique_ptrI8DexFieldNS0_7DeleterEEC2IS1_vEEPS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef %41) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %10, i64 24, i1 false), !tbaa.struct !9
  call void @_ZNSt10unique_ptrI8DexFieldNS0_7DeleterEEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  %46 = getelementptr inbounds %struct.RedexContext, ptr %18, i32 0, i32 11
  %47 = invoke noundef ptr @_ZL10try_insertI8DexField11DexFieldRefNS0_7DeleterE12DexFieldSpec9AtomicMapIS3_PS1_St4hashIS3_ESt8equal_toIS3_ELm83EEEPT0_T2_St10unique_ptrIT_T1_EPT3_(ptr noundef byval(%struct.DexFieldSpec) align 8 %16, ptr noundef %17, ptr noundef %46)
          to label %48 unwind label %53

48:                                               ; preds = %45
  store ptr %47, ptr %5, align 8
  call void @_ZNSt10unique_ptrI8DexFieldNS0_7DeleterEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  store i32 1, ptr %12, align 4
  call void @_ZNSt10unique_ptrI8DexFieldNS0_7DeleterEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %58

49:                                               ; preds = %40
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %14, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %15, align 4
  call void @_ZdlPvm(ptr noundef %41, i64 noundef 96) #11
  br label %57

53:                                               ; preds = %45
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %14, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %15, align 4
  call void @_ZNSt10unique_ptrI8DexFieldNS0_7DeleterEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  call void @_ZNSt10unique_ptrI8DexFieldNS0_7DeleterEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  br label %57

57:                                               ; preds = %53, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #9
  br label %60

58:                                               ; preds = %48, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #9
  %59 = load ptr, ptr %5, align 8
  ret ptr %59

60:                                               ; preds = %57
  %61 = load ptr, ptr %14, align 8
  %62 = load i32, ptr %15, align 4
  %63 = insertvalue { ptr, i32 } poison, ptr %61, 0
  %64 = insertvalue { ptr, i32 } %63, i32 %62, 1
  resume { ptr, i32 } %64
}

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

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

declare void @_ZN8DexFieldC1EP7DexTypePK9DexStringS1_(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef, ptr noundef, ptr noundef) unnamed_addr #7

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL10try_insertI8DexField11DexFieldRefNS0_7DeleterE12DexFieldSpec9AtomicMapIS3_PS1_St4hashIS3_ESt8equal_toIS3_ELm83EEEPT0_T2_St10unique_ptrIT_T1_EPT3_(ptr noundef byval(%struct.DexFieldSpec) align 8, ptr noundef, ptr noundef) #5

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 = { 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 = { "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 = { noreturn }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { 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 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5}


; 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.DexFieldSpec = type { ptr, ptr, ptr }
%"class.std::unique_ptr.208" = type { %"struct.std::__uniq_ptr_data.209" }
%"struct.std::__uniq_ptr_data.209" = type { %"class.std::__uniq_ptr_impl.210" }
%"class.std::__uniq_ptr_impl.210" = type { %"class.std::tuple.211" }
%"class.std::tuple.211" = type { %"struct.std::_Tuple_impl.212" }
%"struct.std::_Tuple_impl.212" = type { %"struct.std::_Head_base.215" }
%"struct.std::_Head_base.215" = type { ptr }

@.str.16 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [59 x i8], align 1
@__PRETTY_FUNCTION__._ZN12RedexContext10make_fieldEPK7DexTypePK9DexStringS2_ = external hidden unnamed_addr constant [91 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: mustprogress 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, ...) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN12RedexContext10make_fieldEPK7DexTypePK9DexStringS2_(ptr noundef nonnull align 8 dereferenceable(389504) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %struct.DexFieldSpec, align 8
  %6 = alloca %"class.std::unique_ptr.208", align 8
  %7 = alloca %struct.DexFieldSpec, align 8
  %8 = alloca %"class.std::unique_ptr.208", align 8
  %9 = icmp ne ptr %1, null
  %10 = icmp ne ptr %2, null
  %or.cond = and i1 %9, %10
  %11 = icmp ne ptr %3, null
  %or.cond3 = and i1 %or.cond, %11
  br i1 %or.cond3, label %13, label %12

12:                                               ; preds = %4
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.16, i32 noundef 543, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN12RedexContext10make_fieldEPK7DexTypePK9DexStringS2_, i32 noundef 2, ptr noundef nonnull @.str.17) #8
  unreachable

13:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #9
  call void @_ZN12DexFieldSpecC2EP7DexTypePK9DexStringS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %14 = getelementptr inbounds i8, ptr %0, i64 360616
  %15 = call noundef ptr @_ZNK9AtomicMapI12DexFieldSpecP11DexFieldRefSt4hashIS0_ESt8equal_toIS0_ELm83EE4loadERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(2664) %14, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef null)
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %16, label %26

16:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %17 = call noalias noundef nonnull dereferenceable(96) ptr @_Znwm(i64 noundef 96) #10
  invoke void @_ZN8DexFieldC1EP7DexTypePK9DexStringS1_(ptr noundef nonnull align 8 dereferenceable(96) %17, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
          to label %18 unwind label %21

18:                                               ; preds = %16
  call void @_ZNSt10unique_ptrI8DexFieldNS0_7DeleterEEC2IS1_vEEPS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull %17) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %5, i64 24, i1 false), !tbaa.struct !5
  call void @_ZNSt10unique_ptrI8DexFieldNS0_7DeleterEEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %19 = invoke noundef ptr @_ZL10try_insertI8DexField11DexFieldRefNS0_7DeleterE12DexFieldSpec9AtomicMapIS3_PS1_St4hashIS3_ESt8equal_toIS3_ELm83EEEPT0_T2_St10unique_ptrIT_T1_EPT3_(ptr noundef nonnull byval(%struct.DexFieldSpec) align 8 %7, ptr noundef nonnull %8, ptr noundef nonnull %14)
          to label %20 unwind label %23

20:                                               ; preds = %18
  call void @_ZNSt10unique_ptrI8DexFieldNS0_7DeleterEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @_ZNSt10unique_ptrI8DexFieldNS0_7DeleterEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  br label %26

21:                                               ; preds = %16
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %17, i64 noundef 96) #11
  br label %25

23:                                               ; preds = %18
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrI8DexFieldNS0_7DeleterEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @_ZNSt10unique_ptrI8DexFieldNS0_7DeleterEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  br label %25

25:                                               ; preds = %23, %21
  %.pn = phi { ptr, i32 } [ %24, %23 ], [ %22, %21 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  resume { ptr, i32 } %.pn

26:                                               ; preds = %13, %20
  %.018 = phi ptr [ %19, %20 ], [ %15, %13 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  ret ptr %.018
}

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

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

declare void @_ZN8DexFieldC1EP7DexTypePK9DexStringS1_(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef, ptr noundef, ptr noundef) unnamed_addr #7

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL10try_insertI8DexField11DexFieldRefNS0_7DeleterE12DexFieldSpec9AtomicMapIS3_PS1_St4hashIS3_ESt8equal_toIS3_ELm83EEEPT0_T2_St10unique_ptrIT_T1_EPT3_(ptr noundef byval(%struct.DexFieldSpec) align 8, ptr noundef, ptr noundef) local_unnamed_addr #5

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 = { 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 = { "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 = { noreturn }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { 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 = !{i64 0, i64 8, !6, i64 8, i64 8, !6, i64 16, i64 8, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass