; LLVM IR from facebook/redex :: service/method-merger (MethodMerger)

; 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.method_merger::Stats" = type { i32, i32, i32 }
%class.UnorderedSet = type { %"class.std::unordered_set" }
%"class.std::unordered_set" = 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.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<method_reference::CallSite, std::allocator<method_reference::CallSite>>::_Vector_impl" }
%"struct.std::_Vector_base<method_reference::CallSite, std::allocator<method_reference::CallSite>>::_Vector_impl" = type { %"struct.std::_Vector_base<method_reference::CallSite, std::allocator<method_reference::CallSite>>::_Vector_impl_data" }
%"struct.std::_Vector_base<method_reference::CallSite, std::allocator<method_reference::CallSite>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.(anonymous namespace)::RefCounter" = type { %class.UnorderedMap }
%class.UnorderedMap = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable.20" }
%"class.std::_Hashtable.20" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%class.UnorderedMap.33 = type { %"class.std::unordered_map.35" }
%"class.std::unordered_map.35" = type { %"class.std::_Hashtable.36" }
%"class.std::_Hashtable.36" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.54" = 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] }
%"struct.method_reference::CallSite" = type { ptr, ptr, ptr, ptr }
%"struct.method_reference::NewCallee" = type { ptr, %"class.boost::optional" }
%"class.boost::optional" = type { %"class.boost::optional_detail::optional_base" }
%"class.boost::optional_detail::optional_base" = type { i8, [7 x i8], %"class.boost::optional_detail::aligned_storage" }
%"class.boost::optional_detail::aligned_storage" = type { %"union.boost::optional_detail::aligned_storage<std::vector<unsigned int>>::dummy_u" }
%"union.boost::optional_detail::aligned_storage<std::vector<unsigned int>>::dummy_u" = type { [24 x i8] }

@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [28 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; 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
define dso_local { i64, i32 } @_ZN13method_merger13merge_methodsERKSt6vectorIS0_IP9DexMethodSaIS2_EESaIS4_EERKS0_IP8DexClassSaISA_EE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.method_merger::Stats", align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %class.UnorderedSet, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector.9", align 8
  %11 = alloca %"class.(anonymous namespace)::RefCounter", align 8
  %12 = alloca %class.UnorderedMap.33, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.54", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.54", align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca { i64, i32 }, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @_ZN13method_merger5StatsC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #6
  call void @llvm.lifetime.start.p0(i64 56, ptr %6) #6
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN12_GLOBAL__N_125methodgroups_to_methodsetERKSt6vectorIS0_IP9DexMethodSaIS2_EESaIS4_EE(ptr dead_on_unwind writable sret(%class.UnorderedSet) align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %26)
  %27 = invoke noundef zeroext i1 @_ZNK12UnorderedSetIP9DexMethodSt4hashIS1_ESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %6)
          to label %28 unwind label %30

28:                                               ; preds = %2
  br i1 %27, label %29, label %34

29:                                               ; preds = %28
  store i32 1, ptr %9, align 4
  br label %203

30:                                               ; preds = %2
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %7, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %8, align 4
  br label %205

34:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN16method_reference17collect_call_refsI12UnorderedSetIP9DexMethodSt4hashIS3_ESt8equal_toIS3_EEEESt6vectorINS_8CallSiteESaISA_EERKS9_IP8DexClassSaISE_EERKT_(ptr dead_on_unwind writable sret(%"class.std::vector.9") align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(56) %6)
          to label %36 unwind label %49

36:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 56, ptr %11) #6
  invoke void @_ZN12_GLOBAL__N_110RefCounterC2ERSt6vectorIN16method_reference8CallSiteESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %37 unwind label %53

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 56, ptr %12) #6
  invoke void @_ZN12UnorderedMapIP9DexMethodN16method_reference9NewCalleeESt4hashIS1_ESt8equal_toIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %12)
          to label %38 unwind label %57

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %39, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %40 = load ptr, ptr %13, align 8, !tbaa !5
  %41 = call ptr @_ZNKSt6vectorIS_IP9DexMethodSaIS1_EESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  %42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  %44 = call ptr @_ZNKSt6vectorIS_IP9DexMethodSaIS1_EESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  br label %46

46:                                               ; preds = %65, %38
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt6vectorIP9DexMethodSaIS3_EES1_IS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br i1 %47, label %61, label %48

48:                                               ; preds = %46
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %71

49:                                               ; preds = %34
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %7, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %8, align 4
  br label %202

53:                                               ; preds = %36
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %7, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %8, align 4
  br label %201

57:                                               ; preds = %37
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %7, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %8, align 4
  br label %200

61:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt6vectorIP9DexMethodSaIS3_EES1_IS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  store ptr %62, ptr %16, align 8, !tbaa !5
  %63 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_119generate_dispatchesERKSt6vectorIP9DexMethodSaIS2_EERKNS_10RefCounterEP12UnorderedMapIS2_N16method_reference9NewCalleeESt4hashIS2_ESt8equal_toIS2_EEPN13method_merger5StatsE(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef %12, ptr noundef %3)
          to label %64 unwind label %67

64:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %65

65:                                               ; preds = %64
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt6vectorIP9DexMethodSaIS3_EES1_IS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br label %46

67:                                               ; preds = %61
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %7, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %199

71:                                               ; preds = %48
  %72 = invoke noundef zeroext i1 @_ZNK12UnorderedMapIP9DexMethodN16method_reference9NewCalleeESt4hashIS1_ESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %12)
          to label %73 unwind label %75

73:                                               ; preds = %71
  br i1 %72, label %74, label %79

74:                                               ; preds = %73
  store i32 1, ptr %9, align 4
  br label %198

75:                                               ; preds = %190, %187, %180, %177, %170, %167, %163, %71
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %7, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %8, align 4
  br label %199

79:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store ptr %10, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %80 = load ptr, ptr %17, align 8, !tbaa !5
  %81 = call ptr @_ZNSt6vectorIN16method_reference8CallSiteESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #6
  %82 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.54", ptr %18, i32 0, i32 0
  store ptr %81, ptr %82, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %83 = load ptr, ptr %17, align 8, !tbaa !5
  %84 = call ptr @_ZNSt6vectorIN16method_reference8CallSiteESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %83) #6
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.54", ptr %19, i32 0, i32 0
  store ptr %84, ptr %85, align 8
  br label %86

86:                                               ; preds = %159, %79
  %87 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN16method_reference8CallSiteESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br i1 %87, label %89, label %88

88:                                               ; preds = %86
  store i32 4, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %163

89:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %90 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN16method_reference8CallSiteESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  store ptr %90, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %91 = load ptr, ptr %20, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.method_reference::CallSite", ptr %91, i32 0, i32 3
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  store ptr %93, ptr %21, align 8, !tbaa !5
  %94 = invoke noundef i64 @_ZNK12UnorderedMapIP9DexMethodN16method_reference9NewCalleeESt4hashIS1_ESt8equal_toIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %12, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %95 unwind label %98

95:                                               ; preds = %89
  %96 = icmp ne i64 %94, 0
  br i1 %96, label %102, label %97

97:                                               ; preds = %95
  store i32 5, ptr %9, align 4
  br label %153

98:                                               ; preds = %89
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %7, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %8, align 4
  br label %162

102:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %103 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN12UnorderedMapIP9DexMethodN16method_reference9NewCalleeESt4hashIS1_ESt8equal_toIS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %12, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %104 unwind label %127

104:                                              ; preds = %102
  store ptr %103, ptr %22, align 8, !tbaa !5
  %105 = load ptr, ptr %20, align 8, !tbaa !5
  %106 = load ptr, ptr %22, align 8, !tbaa !5
  invoke void @_ZN16method_reference14patch_callsiteERKNS_8CallSiteERKNS_9NewCalleeE(ptr noundef nonnull align 8 dereferenceable(32) %105, ptr noundef nonnull align 8 dereferenceable(40) %106)
          to label %107 unwind label %127

107:                                              ; preds = %104
  br label %108

108:                                              ; preds = %107
  %109 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 74, i32 noundef 9)
          to label %110 unwind label %127

110:                                              ; preds = %108
  br i1 %109, label %111, label %150

111:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #6
  %112 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_Z4showB5cxx11PK12DexMethodRef(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef %112)
          to label %113 unwind label %131

113:                                              ; preds = %111
  %114 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  %115 = load ptr, ptr %22, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.method_reference::NewCallee", ptr %115, i32 0, i32 1
  %117 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5boost8optionalISt6vectorIjSaIjEEE3getEv(ptr noundef nonnull align 8 dereferenceable(32) %116)
          to label %118 unwind label %135

118:                                              ; preds = %113
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef 0) #6
  %120 = load i32, ptr %119, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #6
  %121 = load ptr, ptr %22, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.method_reference::NewCallee", ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !13
  invoke void @_Z4showB5cxx11PK12DexMethodRef(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %24, ptr noundef %123)
          to label %124 unwind label %139

124:                                              ; preds = %118
  %125 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 74, i32 noundef 9, i1 noundef zeroext false, ptr noundef @.str.8, ptr noundef %114, i32 noundef %120, ptr noundef %125)
          to label %126 unwind label %143

126:                                              ; preds = %124
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  br label %150

127:                                              ; preds = %108, %104, %102
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %7, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %8, align 4
  br label %161

131:                                              ; preds = %111
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %7, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %8, align 4
  br label %149

135:                                              ; preds = %113
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %7, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %8, align 4
  br label %148

139:                                              ; preds = %118
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %7, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %8, align 4
  br label %147

143:                                              ; preds = %124
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %7, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %147

147:                                              ; preds = %143, %139
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  br label %148

148:                                              ; preds = %147, %135
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br label %149

149:                                              ; preds = %148, %131
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  br label %161

150:                                              ; preds = %126, %110
  br label %151

151:                                              ; preds = %150
  br label %152

152:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  store i32 0, ptr %9, align 4
  br label %153

153:                                              ; preds = %152, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  %154 = load i32, ptr %9, align 4
  switch i32 %154, label %156 [
    i32 0, label %155
  ]

155:                                              ; preds = %153
  store i32 0, ptr %9, align 4
  br label %156

156:                                              ; preds = %155, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  %157 = load i32, ptr %9, align 4
  switch i32 %157, label %211 [
    i32 0, label %158
    i32 5, label %159
  ]

158:                                              ; preds = %156
  br label %159

159:                                              ; preds = %158, %156
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN16method_reference8CallSiteESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br label %86

161:                                              ; preds = %149, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %162

162:                                              ; preds = %161, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %199

163:                                              ; preds = %88
  %164 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 74, i32 noundef 3)
          to label %165 unwind label %75

165:                                              ; preds = %163
  br i1 %164, label %166, label %197

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %166
  %168 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 74, i32 noundef 3)
          to label %169 unwind label %75

169:                                              ; preds = %167
  br i1 %168, label %170, label %174

170:                                              ; preds = %169
  %171 = getelementptr inbounds %"struct.method_merger::Stats", ptr %3, i32 0, i32 0
  %172 = load i32, ptr %171, align 4, !tbaa !19
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 74, i32 noundef 3, i1 noundef zeroext false, ptr noundef @.str.9, i32 noundef %172)
          to label %173 unwind label %75

173:                                              ; preds = %170
  br label %174

174:                                              ; preds = %173, %169
  br label %175

175:                                              ; preds = %174
  br label %176

176:                                              ; preds = %175
  br label %177

177:                                              ; preds = %176
  %178 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 74, i32 noundef 3)
          to label %179 unwind label %75

179:                                              ; preds = %177
  br i1 %178, label %180, label %184

180:                                              ; preds = %179
  %181 = getelementptr inbounds %"struct.method_merger::Stats", ptr %3, i32 0, i32 1
  %182 = load i32, ptr %181, align 4, !tbaa !21
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 74, i32 noundef 3, i1 noundef zeroext false, ptr noundef @.str.10, i32 noundef %182)
          to label %183 unwind label %75

183:                                              ; preds = %180
  br label %184

184:                                              ; preds = %183, %179
  br label %185

185:                                              ; preds = %184
  br label %186

186:                                              ; preds = %185
  br label %187

187:                                              ; preds = %186
  %188 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 74, i32 noundef 3)
          to label %189 unwind label %75

189:                                              ; preds = %187
  br i1 %188, label %190, label %194

190:                                              ; preds = %189
  %191 = getelementptr inbounds %"struct.method_merger::Stats", ptr %3, i32 0, i32 2
  %192 = load i32, ptr %191, align 4, !tbaa !22
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 74, i32 noundef 3, i1 noundef zeroext false, ptr noundef @.str.11, i32 noundef %192)
          to label %193 unwind label %75

193:                                              ; preds = %190
  br label %194

194:                                              ; preds = %193, %189
  br label %195

195:                                              ; preds = %194
  br label %196

196:                                              ; preds = %195
  br label %197

197:                                              ; preds = %196, %165
  store i32 1, ptr %9, align 4
  br label %198

198:                                              ; preds = %197, %74
  call void @_ZN12UnorderedMapIP9DexMethodN16method_reference9NewCalleeESt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %12) #6
  call void @_ZN12_GLOBAL__N_110RefCounterD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #6
  call void @_ZNSt6vectorIN16method_reference8CallSiteESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  br label %203

199:                                              ; preds = %162, %75, %67
  call void @_ZN12UnorderedMapIP9DexMethodN16method_reference9NewCalleeESt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #6
  br label %200

200:                                              ; preds = %199, %57
  call void @llvm.lifetime.end.p0(i64 56, ptr %12) #6
  call void @_ZN12_GLOBAL__N_110RefCounterD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #6
  br label %201

201:                                              ; preds = %200, %53
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #6
  call void @_ZNSt6vectorIN16method_reference8CallSiteESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %202

202:                                              ; preds = %201, %49
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  br label %205

203:                                              ; preds = %198, %29
  call void @_ZN12UnorderedSetIP9DexMethodSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 4 %3, i64 12, i1 false)
  %204 = load { i64, i32 }, ptr %25, align 8
  ret { i64, i32 } %204

205:                                              ; preds = %202, %30
  call void @_ZN12UnorderedSetIP9DexMethodSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #6
  br label %206

206:                                              ; preds = %205
  %207 = load ptr, ptr %7, align 8
  %208 = load i32, ptr %8, align 4
  %209 = insertvalue { ptr, i32 } poison, ptr %207, 0
  %210 = insertvalue { ptr, i32 } %209, i32 %208, 1
  resume { ptr, i32 } %210

211:                                              ; preds = %156
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13method_merger5StatsC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_125methodgroups_to_methodsetERKSt6vectorIS0_IP9DexMethodSaIS2_EESaIS4_EE(ptr dead_on_unwind noalias writable sret(%class.UnorderedSet) align 8, ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12UnorderedSetIP9DexMethodSt4hashIS1_ESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

declare void @_ZN16method_reference17collect_call_refsI12UnorderedSetIP9DexMethodSt4hashIS3_ESt8equal_toIS3_EEEESt6vectorINS_8CallSiteESaISA_EERKS9_IP8DexClassSaISE_EERKT_(ptr dead_on_unwind writable sret(%"class.std::vector.9") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(56)) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_110RefCounterC2ERSt6vectorIN16method_reference8CallSiteESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_119generate_dispatchesERKSt6vectorIP9DexMethodSaIS2_EERKNS_10RefCounterEP12UnorderedMapIS2_N16method_reference9NewCalleeESt4hashIS2_ESt8equal_toIS2_EEPN13method_merger5StatsE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12UnorderedMapIP9DexMethodN16method_reference9NewCalleeESt4hashIS1_ESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

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

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

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

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

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

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

declare void @_ZN16method_reference14patch_callsiteERKNS_8CallSiteERKNS_9NewCalleeE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) #4

declare noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef, i32 noundef) #4

declare void @_Z5trace11TraceModuleibPKcz(i32 noundef, i32 noundef, i1 noundef zeroext, ptr noundef, ...) #4

declare void @_Z4showB5cxx11PK12DexMethodRef(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) #4

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12UnorderedSetIP9DexMethodSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 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) #5

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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 24}
!10 = !{!"_ZTSN16method_reference8CallSiteE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSN16method_reference9NewCalleeE", !6, i64 0, !15, i64 8}
!15 = !{!"_ZTSN5boost8optionalISt6vectorIjSaIjEEEE", !16, i64 0}
!16 = !{!"_ZTSN5boost15optional_detail13optional_baseISt6vectorIjSaIjEEEE", !17, i64 0, !18, i64 8}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSN5boost15optional_detail15aligned_storageISt6vectorIjSaIjEEEE", !7, i64 0}
!19 = !{!20, !12, i64 0}
!20 = !{!"_ZTSN13method_merger5StatsE", !12, i64 0, !12, i64 4, !12, i64 8}
!21 = !{!20, !12, i64 4}
!22 = !{!20, !12, i64 8}


; 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.method_merger::Stats" = type { i32, i32, i32 }
%class.UnorderedSet = type { %"class.std::unordered_set" }
%"class.std::unordered_set" = 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.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<method_reference::CallSite, std::allocator<method_reference::CallSite>>::_Vector_impl" }
%"struct.std::_Vector_base<method_reference::CallSite, std::allocator<method_reference::CallSite>>::_Vector_impl" = type { %"struct.std::_Vector_base<method_reference::CallSite, std::allocator<method_reference::CallSite>>::_Vector_impl_data" }
%"struct.std::_Vector_base<method_reference::CallSite, std::allocator<method_reference::CallSite>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.(anonymous namespace)::RefCounter" = type { %class.UnorderedMap }
%class.UnorderedMap = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable.20" }
%"class.std::_Hashtable.20" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%class.UnorderedMap.33 = type { %"class.std::unordered_map.35" }
%"class.std::unordered_map.35" = type { %"class.std::_Hashtable.36" }
%"class.std::_Hashtable.36" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.54" = 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.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [28 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress 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
define dso_local { i64, i32 } @_ZN13method_merger13merge_methodsERKSt6vectorIS0_IP9DexMethodSaIS2_EESaIS4_EERKS0_IP8DexClassSaISA_EE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.method_merger::Stats", align 8
  %4 = alloca %class.UnorderedSet, align 8
  %5 = alloca %"class.std::vector.9", align 8
  %6 = alloca %"class.(anonymous namespace)::RefCounter", align 8
  %7 = alloca %class.UnorderedMap.33, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.54", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.54", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @_ZN13method_merger5StatsC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #5
  call void @_ZN12_GLOBAL__N_125methodgroups_to_methodsetERKSt6vectorIS0_IP9DexMethodSaIS2_EESaIS4_EE(ptr dead_on_unwind nonnull writable sret(%class.UnorderedSet) align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %0)
  %15 = call noundef zeroext i1 @_ZNK12UnorderedSetIP9DexMethodSt4hashIS1_ESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %4)
  br i1 %15, label %105, label %16

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  invoke void @_ZN16method_reference17collect_call_refsI12UnorderedSetIP9DexMethodSt4hashIS3_ESt8equal_toIS3_EEEESt6vectorINS_8CallSiteESaISA_EERKS9_IP8DexClassSaISE_EERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.9") align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %17 unwind label %23

17:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %6) #5
  invoke void @_ZN12_GLOBAL__N_110RefCounterC2ERSt6vectorIN16method_reference8CallSiteESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %18 unwind label %25

18:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %7) #5
  call void @_ZN12UnorderedMapIP9DexMethodN16method_reference9NewCalleeESt4hashIS1_ESt8equal_toIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %19 = call ptr @_ZNKSt6vectorIS_IP9DexMethodSaIS1_EESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  store ptr %19, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %20 = call ptr @_ZNKSt6vectorIS_IP9DexMethodSaIS1_EESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  store ptr %20, ptr %9, align 8
  %21 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt6vectorIP9DexMethodSaIS3_EES1_IS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %28, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %22 = call noundef zeroext i1 @_ZNK12UnorderedMapIP9DexMethodN16method_reference9NewCalleeESt4hashIS1_ESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %7)
  br i1 %22, label %101, label %35

23:                                               ; preds = %16
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %104

25:                                               ; preds = %17
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %103

.lr.ph:                                           ; preds = %18, %28
  %27 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt6vectorIP9DexMethodSaIS3_EES1_IS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  invoke void @_ZN12_GLOBAL__N_119generate_dispatchesERKSt6vectorIP9DexMethodSaIS2_EERKNS_10RefCounterEP12UnorderedMapIS2_N16method_reference9NewCalleeESt4hashIS2_ESt8equal_toIS2_EEPN13method_merger5StatsE(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull %7, ptr noundef nonnull %3)
          to label %28 unwind label %31

28:                                               ; preds = %.lr.ph
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt6vectorIP9DexMethodSaIS3_EES1_IS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %30 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt6vectorIP9DexMethodSaIS3_EES1_IS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %30, label %.lr.ph, label %._crit_edge

31:                                               ; preds = %.lr.ph
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %102

33:                                               ; preds = %98, %95, %92, %89, %87, %84, %._crit_edge35
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %102

35:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %36 = call ptr @_ZNSt6vectorIN16method_reference8CallSiteESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  store ptr %36, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %37 = call ptr @_ZNSt6vectorIN16method_reference8CallSiteESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  store ptr %37, ptr %11, align 8
  %38 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN16method_reference8CallSiteESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %38, label %.lr.ph34, label %._crit_edge35

._crit_edge35:                                    ; preds = %79, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %39 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 74, i32 noundef 3)
          to label %83 unwind label %33

.lr.ph34:                                         ; preds = %35, %79
  %40 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN16method_reference8CallSiteESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %41 = getelementptr inbounds i8, ptr %40, i64 24
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  store ptr %42, ptr %12, align 8, !tbaa !10
  %43 = invoke noundef i64 @_ZNK12UnorderedMapIP9DexMethodN16method_reference9NewCalleeESt4hashIS1_ESt8equal_toIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %44 unwind label %45

44:                                               ; preds = %.lr.ph34
  %.not = icmp eq i64 %43, 0
  br i1 %.not, label %79, label %47

45:                                               ; preds = %.lr.ph34
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %82

47:                                               ; preds = %44
  %48 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN12UnorderedMapIP9DexMethodN16method_reference9NewCalleeESt4hashIS1_ESt8equal_toIS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %49 unwind label %66

49:                                               ; preds = %47
  invoke void @_ZN16method_reference14patch_callsiteERKNS_8CallSiteERKNS_9NewCalleeE(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull align 8 dereferenceable(40) %48)
          to label %50 unwind label %66

50:                                               ; preds = %49
  %51 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 74, i32 noundef 9)
          to label %52 unwind label %66

52:                                               ; preds = %50
  br i1 %51, label %53, label %79

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #5
  %54 = load ptr, ptr %12, align 8, !tbaa !10
  invoke void @_Z4showB5cxx11PK12DexMethodRef(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef %54)
          to label %55 unwind label %68

55:                                               ; preds = %53
  %56 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  %57 = getelementptr inbounds i8, ptr %48, i64 8
  %58 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5boost8optionalISt6vectorIjSaIjEEE3getEv(ptr noundef nonnull align 8 dereferenceable(32) %57)
          to label %59 unwind label %70

59:                                               ; preds = %55
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef 0) #5
  %61 = load i32, ptr %60, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #5
  %62 = load ptr, ptr %48, align 8, !tbaa !13
  invoke void @_Z4showB5cxx11PK12DexMethodRef(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef %62)
          to label %63 unwind label %72

63:                                               ; preds = %59
  %64 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 74, i32 noundef 9, i1 noundef zeroext false, ptr noundef nonnull @.str.8, ptr noundef %56, i32 noundef %61, ptr noundef %64)
          to label %65 unwind label %74

65:                                               ; preds = %63
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #5
  br label %79

66:                                               ; preds = %50, %49, %47
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %82

68:                                               ; preds = %53
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %78

70:                                               ; preds = %55
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %77

72:                                               ; preds = %59
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %63
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %76

76:                                               ; preds = %74, %72
  %.pn = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #5
  br label %77

77:                                               ; preds = %76, %70
  %.pn.pn = phi { ptr, i32 } [ %.pn, %76 ], [ %71, %70 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br label %78

78:                                               ; preds = %77, %68
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %77 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #5
  br label %82

79:                                               ; preds = %52, %65, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN16method_reference8CallSiteESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %81 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN16method_reference8CallSiteESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %81, label %.lr.ph34, label %._crit_edge35

82:                                               ; preds = %66, %78, %45
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %46, %45 ], [ %.pn.pn.pn, %78 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br label %102

83:                                               ; preds = %._crit_edge35
  br i1 %39, label %84, label %101

84:                                               ; preds = %83
  %85 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 74, i32 noundef 3)
          to label %86 unwind label %33

86:                                               ; preds = %84
  br i1 %85, label %87, label %89

87:                                               ; preds = %86
  %88 = load i32, ptr %3, align 8, !tbaa !19
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 74, i32 noundef 3, i1 noundef zeroext false, ptr noundef nonnull @.str.9, i32 noundef %88)
          to label %89 unwind label %33

89:                                               ; preds = %86, %87
  %90 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 74, i32 noundef 3)
          to label %91 unwind label %33

91:                                               ; preds = %89
  br i1 %90, label %92, label %95

92:                                               ; preds = %91
  %93 = getelementptr inbounds i8, ptr %3, i64 4
  %94 = load i32, ptr %93, align 4, !tbaa !21
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 74, i32 noundef 3, i1 noundef zeroext false, ptr noundef nonnull @.str.10, i32 noundef %94)
          to label %95 unwind label %33

95:                                               ; preds = %91, %92
  %96 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 74, i32 noundef 3)
          to label %97 unwind label %33

97:                                               ; preds = %95
  br i1 %96, label %98, label %101

98:                                               ; preds = %97
  %99 = getelementptr inbounds i8, ptr %3, i64 8
  %100 = load i32, ptr %99, align 8, !tbaa !22
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 74, i32 noundef 3, i1 noundef zeroext false, ptr noundef nonnull @.str.11, i32 noundef %100)
          to label %101 unwind label %33

101:                                              ; preds = %83, %98, %97, %._crit_edge
  call void @_ZN12UnorderedMapIP9DexMethodN16method_reference9NewCalleeESt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #5
  call void @_ZN12_GLOBAL__N_110RefCounterD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #5
  call void @_ZNSt6vectorIN16method_reference8CallSiteESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  br label %105

102:                                              ; preds = %82, %33, %31
  %.pn29 = phi { ptr, i32 } [ %32, %31 ], [ %.pn.pn.pn.pn.pn, %82 ], [ %34, %33 ]
  call void @_ZN12UnorderedMapIP9DexMethodN16method_reference9NewCalleeESt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #5
  call void @_ZN12_GLOBAL__N_110RefCounterD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #5
  br label %103

103:                                              ; preds = %102, %25
  %.pn29.pn = phi { ptr, i32 } [ %.pn29, %102 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #5
  call void @_ZNSt6vectorIN16method_reference8CallSiteESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  br label %104

104:                                              ; preds = %103, %23
  %.pn29.pn.pn = phi { ptr, i32 } [ %.pn29.pn, %103 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @_ZN12UnorderedSetIP9DexMethodSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn29.pn.pn

105:                                              ; preds = %2, %101
  call void @_ZN12UnorderedSetIP9DexMethodSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #5
  %.sroa.0.0.copyload = load i64, ptr %3, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  %.sroa.2.0.copyload = load i32, ptr %.sroa.2.0..sroa_idx, align 8
  %.fca.0.insert = insertvalue { i64, i32 } poison, i64 %.sroa.0.0.copyload, 0
  %.fca.1.insert = insertvalue { i64, i32 } %.fca.0.insert, i32 %.sroa.2.0.copyload, 1
  ret { i64, i32 } %.fca.1.insert
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13method_merger5StatsC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_125methodgroups_to_methodsetERKSt6vectorIS0_IP9DexMethodSaIS2_EESaIS4_EE(ptr dead_on_unwind noalias writable sret(%class.UnorderedSet) align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

declare void @_ZN16method_reference17collect_call_refsI12UnorderedSetIP9DexMethodSt4hashIS3_ESt8equal_toIS3_EEEESt6vectorINS_8CallSiteESaISA_EERKS9_IP8DexClassSaISE_EERKT_(ptr dead_on_unwind writable sret(%"class.std::vector.9") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_110RefCounterC2ERSt6vectorIN16method_reference8CallSiteESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_119generate_dispatchesERKSt6vectorIP9DexMethodSaIS2_EERKNS_10RefCounterEP12UnorderedMapIS2_N16method_reference9NewCalleeESt4hashIS2_ESt8equal_toIS2_EEPN13method_merger5StatsE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN12UnorderedMapIP9DexMethodN16method_reference9NewCalleeESt4hashIS1_ESt8equal_toIS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

declare void @_ZN16method_reference14patch_callsiteERKNS_8CallSiteERKNS_9NewCalleeE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4

declare noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @_Z5trace11TraceModuleibPKcz(i32 noundef, i32 noundef, i1 noundef zeroext, ptr noundef, ...) local_unnamed_addr #4

declare void @_Z4showB5cxx11PK12DexMethodRef(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) local_unnamed_addr #4

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

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

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

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

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

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 24}
!6 = !{!"_ZTSN16method_reference8CallSiteE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"_ZTSN16method_reference9NewCalleeE", !7, i64 0, !15, i64 8}
!15 = !{!"_ZTSN5boost8optionalISt6vectorIjSaIjEEEE", !16, i64 0}
!16 = !{!"_ZTSN5boost15optional_detail13optional_baseISt6vectorIjSaIjEEEE", !17, i64 0, !18, i64 8}
!17 = !{!"bool", !8, i64 0}
!18 = !{!"_ZTSN5boost15optional_detail15aligned_storageISt6vectorIjSaIjEEEE", !8, i64 0}
!19 = !{!20, !12, i64 0}
!20 = !{!"_ZTSN13method_merger5StatsE", !12, i64 0, !12, i64 4, !12, i64 8}
!21 = !{!20, !12, i64 4}
!22 = !{!20, !12, i64 8}


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