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

; 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.DexMethodSpec = type { ptr, ptr, ptr }
%"class.std::unique_ptr.261" = type { %"struct.std::__uniq_ptr_data.262" }
%"struct.std::__uniq_ptr_data.262" = type { %"class.std::__uniq_ptr_impl.263" }
%"class.std::__uniq_ptr_impl.263" = type { %"class.std::tuple.264" }
%"class.std::tuple.264" = type { %"struct.std::_Tuple_impl.265" }
%"struct.std::_Tuple_impl.265" = type { %"struct.std::_Head_base.268" }
%"struct.std::_Head_base.268" = 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.25 = external hidden unnamed_addr constant [55 x i8], align 1
@__PRETTY_FUNCTION__._ZN12RedexContext11make_methodEPK7DexTypePK9DexStringPK8DexProto = external hidden unnamed_addr constant [94 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 @_ZN12RedexContext11make_methodEPK7DexTypePK9DexStringPK8DexProto(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 ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.DexMethodSpec, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::unique_ptr.261", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct.DexMethodSpec, align 8
  %20 = alloca %"class.std::unique_ptr.261", 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
  %21 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %22, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %23, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %24, ptr %12, align 8, !tbaa !5
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %34

27:                                               ; preds = %4
  %28 = load ptr, ptr %11, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %34

30:                                               ; preds = %27
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %34

33:                                               ; preds = %30
  br label %36

34:                                               ; preds = %30, %27, %4
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.25, ptr noundef @.str.16, i32 noundef 680, ptr noundef @__PRETTY_FUNCTION__._ZN12RedexContext11make_methodEPK7DexTypePK9DexStringPK8DexProto, i32 noundef 2, ptr noundef @.str.17) #9
  unreachable

35:                                               ; No predecessors!
  br label %36

36:                                               ; preds = %35, %33
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN13DexMethodSpecC2EP7DexTypePK9DexStringP8DexProto(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef %37, ptr noundef %38, ptr noundef %39)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %40 = getelementptr inbounds %struct.RedexContext, ptr %21, i32 0, i32 15
  %41 = call noundef ptr @_ZNK9AtomicMapI13DexMethodSpecP12DexMethodRefSt4hashIS0_ESt8equal_toIS0_ELm83EE4loadERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(2664) %40, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef null)
  store ptr %41, ptr %14, align 8, !tbaa !5
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %46

44:                                               ; preds = %36
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %45, ptr %5, align 8
  store i32 1, ptr %15, align 4
  br label %64

46:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %47 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 88) #10
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN9DexMethodC1EP7DexTypePK9DexStringP8DexProto(ptr noundef nonnull align 8 dereferenceable(88) %47, ptr noundef %48, ptr noundef %49, ptr noundef %50)
          to label %51 unwind label %55

51:                                               ; preds = %46
  call void @_ZNSt10unique_ptrI9DexMethodNS0_7DeleterEEC2IS1_vEEPS0_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef %47) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %13, i64 24, i1 false), !tbaa.struct !9
  call void @_ZNSt10unique_ptrI9DexMethodNS0_7DeleterEEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %52 = getelementptr inbounds %struct.RedexContext, ptr %21, i32 0, i32 15
  %53 = invoke noundef ptr @_ZL10try_insertI9DexMethod12DexMethodRefNS0_7DeleterE13DexMethodSpec9AtomicMapIS3_PS1_St4hashIS3_ESt8equal_toIS3_ELm83EEEPT0_T2_St10unique_ptrIT_T1_EPT3_(ptr noundef byval(%struct.DexMethodSpec) align 8 %19, ptr noundef %20, ptr noundef %52)
          to label %54 unwind label %59

54:                                               ; preds = %51
  store ptr %53, ptr %5, align 8
  call void @_ZNSt10unique_ptrI9DexMethodNS0_7DeleterEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  store i32 1, ptr %15, align 4
  call void @_ZNSt10unique_ptrI9DexMethodNS0_7DeleterEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %64

55:                                               ; preds = %46
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %17, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %18, align 4
  call void @_ZdlPvm(ptr noundef %47, i64 noundef 88) #11
  br label %63

59:                                               ; preds = %51
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %17, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %18, align 4
  call void @_ZNSt10unique_ptrI9DexMethodNS0_7DeleterEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  call void @_ZNSt10unique_ptrI9DexMethodNS0_7DeleterEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br label %63

63:                                               ; preds = %59, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %66

64:                                               ; preds = %54, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  %65 = load ptr, ptr %5, align 8
  ret ptr %65

66:                                               ; preds = %63
  %67 = load ptr, ptr %17, align 8
  %68 = load i32, ptr %18, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13DexMethodSpecC2EP7DexTypePK9DexStringP8DexProto(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 @_ZNK9AtomicMapI13DexMethodSpecP12DexMethodRefSt4hashIS0_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 @_ZN9DexMethodC1EP7DexTypePK9DexStringP8DexProto(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef, ptr noundef) unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10unique_ptrI9DexMethodNS0_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_insertI9DexMethod12DexMethodRefNS0_7DeleterE13DexMethodSpec9AtomicMapIS3_PS1_St4hashIS3_ESt8equal_toIS3_ELm83EEEPT0_T2_St10unique_ptrIT_T1_EPT3_(ptr noundef byval(%struct.DexMethodSpec) align 8, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10unique_ptrI9DexMethodNS0_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_ptrI9DexMethodNS0_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 = { nounwind }
attributes #9 = { noreturn }
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.DexMethodSpec = type { ptr, ptr, ptr }
%"class.std::unique_ptr.261" = type { %"struct.std::__uniq_ptr_data.262" }
%"struct.std::__uniq_ptr_data.262" = type { %"class.std::__uniq_ptr_impl.263" }
%"class.std::__uniq_ptr_impl.263" = type { %"class.std::tuple.264" }
%"class.std::tuple.264" = type { %"struct.std::_Tuple_impl.265" }
%"struct.std::_Tuple_impl.265" = type { %"struct.std::_Head_base.268" }
%"struct.std::_Head_base.268" = 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.25 = external hidden unnamed_addr constant [55 x i8], align 1
@__PRETTY_FUNCTION__._ZN12RedexContext11make_methodEPK7DexTypePK9DexStringPK8DexProto = external hidden unnamed_addr constant [94 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 @_ZN12RedexContext11make_methodEPK7DexTypePK9DexStringPK8DexProto(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.DexMethodSpec, align 8
  %6 = alloca %"class.std::unique_ptr.261", align 8
  %7 = alloca %struct.DexMethodSpec, align 8
  %8 = alloca %"class.std::unique_ptr.261", 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.25, ptr noundef nonnull @.str.16, i32 noundef 680, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN12RedexContext11make_methodEPK7DexTypePK9DexStringPK8DexProto, 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 @_ZN13DexMethodSpecC2EP7DexTypePK9DexStringP8DexProto(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 368648
  %15 = call noundef ptr @_ZNK9AtomicMapI13DexMethodSpecP12DexMethodRefSt4hashIS0_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(88) ptr @_Znwm(i64 noundef 88) #10
  invoke void @_ZN9DexMethodC1EP7DexTypePK9DexStringP8DexProto(ptr noundef nonnull align 8 dereferenceable(88) %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_ptrI9DexMethodNS0_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_ptrI9DexMethodNS0_7DeleterEEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %19 = invoke noundef ptr @_ZL10try_insertI9DexMethod12DexMethodRefNS0_7DeleterE13DexMethodSpec9AtomicMapIS3_PS1_St4hashIS3_ESt8equal_toIS3_ELm83EEEPT0_T2_St10unique_ptrIT_T1_EPT3_(ptr noundef nonnull byval(%struct.DexMethodSpec) align 8 %7, ptr noundef nonnull %8, ptr noundef nonnull %14)
          to label %20 unwind label %23

20:                                               ; preds = %18
  call void @_ZNSt10unique_ptrI9DexMethodNS0_7DeleterEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @_ZNSt10unique_ptrI9DexMethodNS0_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 88) #11
  br label %25

23:                                               ; preds = %18
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrI9DexMethodNS0_7DeleterEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @_ZNSt10unique_ptrI9DexMethodNS0_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
  %.021 = phi ptr [ %19, %20 ], [ %15, %13 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  ret ptr %.021
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13DexMethodSpecC2EP7DexTypePK9DexStringP8DexProto(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 @_ZNK9AtomicMapI13DexMethodSpecP12DexMethodRefSt4hashIS0_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 @_ZN9DexMethodC1EP7DexTypePK9DexStringP8DexProto(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef, ptr noundef) unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10unique_ptrI9DexMethodNS0_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_insertI9DexMethod12DexMethodRefNS0_7DeleterE13DexMethodSpec9AtomicMapIS3_PS1_St4hashIS3_ESt8equal_toIS3_ELm83EEEPT0_T2_St10unique_ptrIT_T1_EPT3_(ptr noundef byval(%struct.DexMethodSpec) align 8, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10unique_ptrI9DexMethodNS0_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_ptrI9DexMethodNS0_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