; LLVM IR from facebook/redex :: libredex (TypeSystem)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.127" = type { %"struct.std::_Vector_base.128" }
%"struct.std::_Vector_base.128" = type { %"struct.std::_Vector_base<const DexMethod *, std::allocator<const DexMethod *>>::_Vector_impl" }
%"struct.std::_Vector_base<const DexMethod *, std::allocator<const DexMethod *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const DexMethod *, std::allocator<const DexMethod *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const DexMethod *, std::allocator<const DexMethod *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.UnorderedMap.132 = type { %"class.std::unordered_map.134" }
%"class.std::unordered_map.134" = type { %"class.std::_Hashtable.135" }
%"class.std::_Hashtable.135" = 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.__gnu_cxx::__normal_iterator.148" = type { ptr }
%"class.std::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator.149" }
%"class.__gnu_cxx::__normal_iterator.149" = type { ptr }
%"class.UnorderedMap<const DexType *, DexMethod *>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator" }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.virt_scope::VirtualScope" = type { ptr, %"class.std::vector.119", %"class.std::set" }
%"class.std::vector.119" = type { %"struct.std::_Vector_base.120" }
%"struct.std::_Vector_base.120" = type { %"struct.std::_Vector_base<std::pair<DexMethod *, virt_scope::VirtualFlags>, std::allocator<std::pair<DexMethod *, virt_scope::VirtualFlags>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<DexMethod *, virt_scope::VirtualFlags>, std::allocator<std::pair<DexMethod *, virt_scope::VirtualFlags>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<DexMethod *, virt_scope::VirtualFlags>, std::allocator<std::pair<DexMethod *, virt_scope::VirtualFlags>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<DexMethod *, virt_scope::VirtualFlags>, std::allocator<std::pair<DexMethod *, virt_scope::VirtualFlags>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<const DexType *, const DexType *, std::_Identity<const DexType *>, dextypes_comparator>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const DexType *, const DexType *, std::_Identity<const DexType *>, dextypes_comparator>::_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::pair.124" = type <{ ptr, i16, [6 x i8] }>
%"struct.std::pair.150" = type { ptr, ptr }

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: 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 dso_local noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10TypeSystem11select_fromEPKN10virt_scope12VirtualScopeEPK7DexType(ptr dead_on_unwind noalias writable sret(%"class.std::vector.127") align 8 %0, ptr noundef nonnull align 8 dereferenceable(440) %1, ptr noundef %2, ptr noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i1, align 1
  %10 = alloca %class.UnorderedMap.132, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::reverse_iterator", align 8
  %21 = alloca %"class.std::reverse_iterator", align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %"class.UnorderedMap<const DexType *, DexMethod *>::FixedIterator", align 8
  %25 = alloca %"class.UnorderedMap<const DexType *, DexMethod *>::FixedIterator", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8
  store i1 false, ptr %9, align 1
  call void @_ZNSt6vectorIPK9DexMethodSaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr %10) #5
  invoke void @_ZN12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %27 unwind label %39

27:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  store i8 0, ptr %13, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.virt_scope::VirtualScope", ptr %28, i32 0, i32 1
  store ptr %29, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %30 = load ptr, ptr %14, align 8, !tbaa !5
  %31 = call ptr @_ZNKSt6vectorISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  %32 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.148", ptr %15, i32 0, i32 0
  store ptr %31, ptr %32, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  %34 = call ptr @_ZNKSt6vectorISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #5
  %35 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.148", ptr %16, i32 0, i32 0
  store ptr %34, ptr %35, align 8
  br label %36

36:                                               ; preds = %91, %27
  %37 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br i1 %37, label %43, label %38

38:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %94

39:                                               ; preds = %4
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %11, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %12, align 4
  br label %169

43:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %44 = call noundef nonnull align 8 dereferenceable(10) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  store ptr %44, ptr %17, align 8, !tbaa !5
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %17, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.std::pair.124", ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = invoke noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26) %48)
          to label %50 unwind label %71

50:                                               ; preds = %43
  %51 = invoke noundef zeroext i1 @_ZNK10TypeSystem10is_subtypeEPK7DexTypeS2_(ptr noundef nonnull align 8 dereferenceable(440) %26, ptr noundef %45, ptr noundef %49)
          to label %52 unwind label %71

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

53:                                               ; preds = %52
  %54 = load i8, ptr %13, align 1, !tbaa !9, !range !14, !noundef !15
  %55 = trunc i8 %54 to i1
  br i1 %55, label %64, label %56

56:                                               ; preds = %53
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = load ptr, ptr %17, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.std::pair.124", ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !11
  %61 = invoke noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26) %60)
          to label %62 unwind label %71

62:                                               ; preds = %56
  %63 = icmp eq ptr %57, %61
  br label %64

64:                                               ; preds = %62, %53
  %65 = phi i1 [ true, %53 ], [ %63, %62 ]
  %66 = zext i1 %65 to i8
  store i8 %66, ptr %13, align 1, !tbaa !9
  %67 = load ptr, ptr %17, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.std::pair.124", ptr %67, i32 0, i32 0
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK9DexMethodSaIS2_EE12emplace_backIJRKPS0_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %68)
          to label %70 unwind label %71

70:                                               ; preds = %64
  br label %90

71:                                               ; preds = %64, %56, %50, %43
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %11, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %12, align 4
  br label %93

75:                                               ; preds = %52
  %76 = load ptr, ptr %17, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.std::pair.124", ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %79 = load ptr, ptr %17, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.std::pair.124", ptr %79, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = invoke noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26) %81)
          to label %83 unwind label %86

83:                                               ; preds = %75
  store ptr %82, ptr %18, align 8, !tbaa !5
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EEixEOS2_(ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %85 unwind label %86

85:                                               ; preds = %83
  store ptr %78, ptr %84, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %90

86:                                               ; preds = %83, %75
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %11, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %93

90:                                               ; preds = %85, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %91

91:                                               ; preds = %90
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br label %36

93:                                               ; preds = %86, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %168

94:                                               ; preds = %38
  %95 = load i8, ptr %13, align 1, !tbaa !9, !range !14, !noundef !15
  %96 = trunc i8 %95 to i1
  br i1 %96, label %166, label %97

97:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10TypeSystem12parent_chainEPK7DexType(ptr noundef nonnull align 8 dereferenceable(440) %26, ptr noundef %98)
          to label %100 unwind label %107

100:                                              ; preds = %97
  store ptr %99, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZNKSt6vectorIPK7DexTypeSaIS2_EE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %101) #5
  br label %102

102:                                              ; preds = %157, %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %103 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZNKSt6vectorIPK7DexTypeSaIS2_EE4rendEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %103) #5
  %104 = invoke noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPKPK7DexTypeSt6vectorIS4_SaIS4_EEEEEbRKSt16reverse_iteratorIT_ESF_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %105 unwind label %111

105:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br i1 %104, label %115, label %106

106:                                              ; preds = %105
  store i32 4, ptr %22, align 4
  br label %162

107:                                              ; preds = %97
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %11, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %12, align 4
  br label %165

111:                                              ; preds = %102
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %11, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %163

115:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKPK7DexTypeSt6vectorIS4_SaIS4_EEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %117 unwind label %132

117:                                              ; preds = %115
  %118 = invoke ptr @_ZN12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EE4findERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull align 8 dereferenceable(8) %116)
          to label %119 unwind label %132

119:                                              ; preds = %117
  %120 = getelementptr inbounds %"class.UnorderedMap<const DexType *, DexMethod *>::FixedIterator", ptr %24, i32 0, i32 0
  %121 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %120, i32 0, i32 0
  %122 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %121, i32 0, i32 0
  store ptr %118, ptr %122, align 8
  store ptr %24, ptr %23, align 8, !tbaa !5
  %123 = load ptr, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %124 = invoke ptr @_ZN12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %125 unwind label %136

125:                                              ; preds = %119
  %126 = getelementptr inbounds %"class.UnorderedMap<const DexType *, DexMethod *>::FixedIterator", ptr %25, i32 0, i32 0
  %127 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %126, i32 0, i32 0
  %128 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %127, i32 0, i32 0
  store ptr %124, ptr %128, align 8
  %129 = invoke noundef zeroext i1 @_ZNK12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EE13FixedIteratoreqERKSA_(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %130 unwind label %136

130:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br i1 %129, label %131, label %140

131:                                              ; preds = %130
  store i32 6, ptr %22, align 4
  br label %151

132:                                              ; preds = %117, %115
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %11, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %12, align 4
  br label %154

136:                                              ; preds = %125, %119
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %11, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %153

140:                                              ; preds = %130
  %141 = load ptr, ptr %23, align 8, !tbaa !5
  %142 = invoke noundef ptr @_ZNK12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8) %141)
          to label %143 unwind label %147

143:                                              ; preds = %140
  %144 = getelementptr inbounds %"struct.std::pair.150", ptr %142, i32 0, i32 1
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK9DexMethodSaIS2_EE12emplace_backIJRPS0_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %144)
          to label %146 unwind label %147

146:                                              ; preds = %143
  store i32 4, ptr %22, align 4
  br label %151

147:                                              ; preds = %143, %140
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %11, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %12, align 4
  br label %153

151:                                              ; preds = %146, %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  %152 = load i32, ptr %22, align 4
  switch i32 %152, label %162 [
    i32 6, label %155
  ]

153:                                              ; preds = %147, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %154

154:                                              ; preds = %153, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %163

155:                                              ; preds = %151
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKPK7DexTypeSt6vectorIS4_SaIS4_EEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %157 unwind label %158

157:                                              ; preds = %155
  br label %102, !llvm.loop !16

158:                                              ; preds = %155
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %11, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %12, align 4
  br label %163

162:                                              ; preds = %151, %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %164

163:                                              ; preds = %158, %154, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %165

164:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %166

165:                                              ; preds = %163, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %168

166:                                              ; preds = %164, %94
  store i1 true, ptr %9, align 1
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @_ZN12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #5
  %167 = load i1, ptr %9, align 1
  br i1 %167, label %171, label %170

168:                                              ; preds = %165, %93
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @_ZN12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #5
  br label %169

169:                                              ; preds = %168, %39
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #5
  call void @_ZNSt6vectorIPK9DexMethodSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %172

170:                                              ; preds = %166
  call void @_ZNSt6vectorIPK9DexMethodSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %171

171:                                              ; preds = %170, %166
  ret void

172:                                              ; preds = %169
  %173 = load ptr, ptr %11, align 8
  %174 = load i32, ptr %12, align 4
  %175 = insertvalue { ptr, i32 } poison, ptr %173, 0
  %176 = insertvalue { ptr, i32 } %175, i32 %174, 1
  resume { ptr, i32 } %176
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_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_cxxneIPKSt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(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(10) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6vectorIPK7DexTypeSaIS2_EE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6vectorIPK7DexTypeSaIS2_EE4rendEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIP9DexMethodN10virt_scope12VirtualFlagsEE", !6, i64 0, !13, i64 8}
!13 = !{!"_ZTSN10virt_scope12VirtualFlagsE", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.127" = type { %"struct.std::_Vector_base.128" }
%"struct.std::_Vector_base.128" = type { %"struct.std::_Vector_base<const DexMethod *, std::allocator<const DexMethod *>>::_Vector_impl" }
%"struct.std::_Vector_base<const DexMethod *, std::allocator<const DexMethod *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const DexMethod *, std::allocator<const DexMethod *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const DexMethod *, std::allocator<const DexMethod *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.UnorderedMap.132 = type { %"class.std::unordered_map.134" }
%"class.std::unordered_map.134" = type { %"class.std::_Hashtable.135" }
%"class.std::_Hashtable.135" = 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.__gnu_cxx::__normal_iterator.148" = type { ptr }
%"class.std::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator.149" }
%"class.__gnu_cxx::__normal_iterator.149" = type { ptr }
%"class.UnorderedMap<const DexType *, DexMethod *>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator" }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

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 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 dso_local noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10TypeSystem11select_fromEPKN10virt_scope12VirtualScopeEPK7DexType(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector.127") align 8 %0, ptr noundef nonnull align 8 dereferenceable(440) %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.UnorderedMap.132, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::reverse_iterator", align 8
  %10 = alloca %"class.std::reverse_iterator", align 8
  %11 = alloca %"class.UnorderedMap<const DexType *, DexMethod *>::FixedIterator", align 8
  %12 = alloca %"class.UnorderedMap<const DexType *, DexMethod *>::FixedIterator", align 8
  tail call void @_ZNSt6vectorIPK9DexMethodSaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %5) #5
  call void @_ZN12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5)
  %13 = getelementptr inbounds i8, ptr %2, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %14 = call ptr @_ZNKSt6vectorISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %14, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %15 = call ptr @_ZNKSt6vectorISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %15, ptr %7, align 8
  %16 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %16, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %46

._crit_edge:                                      ; preds = %42
  %17 = trunc nuw i8 %.129 to i1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br i1 %17, label %78, label %46

.lr.ph:                                           ; preds = %4, %42
  %.02839 = phi i8 [ %.129, %42 ], [ 0, %4 ]
  %18 = call noundef nonnull align 8 dereferenceable(10) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = call noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26) %19)
  %21 = invoke noundef zeroext i1 @_ZNK10TypeSystem10is_subtypeEPK7DexTypeS2_(ptr noundef nonnull align 8 dereferenceable(440) %1, ptr noundef %3, ptr noundef %20)
          to label %22 unwind label %33

22:                                               ; preds = %.lr.ph
  br i1 %21, label %23, label %35

23:                                               ; preds = %22
  %24 = trunc nuw i8 %.02839 to i1
  br i1 %24, label %29, label %25

25:                                               ; preds = %23
  %26 = load ptr, ptr %18, align 8, !tbaa !5
  %27 = call noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26) %26)
  %28 = icmp eq ptr %27, %3
  br label %29

29:                                               ; preds = %25, %23
  %30 = phi i1 [ true, %23 ], [ %28, %25 ]
  %31 = zext i1 %30 to i8
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK9DexMethodSaIS2_EE12emplace_backIJRKPS0_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %42 unwind label %33

33:                                               ; preds = %29, %.lr.ph
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %45

35:                                               ; preds = %22
  %36 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %37 = call noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26) %36)
  store ptr %37, ptr %8, align 8, !tbaa !11
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EEixEOS2_(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %39 unwind label %40

39:                                               ; preds = %35
  store ptr %36, ptr %38, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %42

40:                                               ; preds = %35
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %45

42:                                               ; preds = %29, %39
  %.129 = phi i8 [ %31, %29 ], [ %.02839, %39 ]
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %44 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %44, label %.lr.ph, label %._crit_edge

45:                                               ; preds = %40, %33
  %.pn34 = phi { ptr, i32 } [ %34, %33 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %79

46:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %47 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10TypeSystem12parent_chainEPK7DexType(ptr noundef nonnull align 8 dereferenceable(440) %1, ptr noundef %3)
          to label %48 unwind label %52

48:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @_ZNKSt6vectorIPK7DexTypeSaIS2_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %47) #5
  br label %49

49:                                               ; preds = %75, %48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @_ZNKSt6vectorIPK7DexTypeSaIS2_EE4rendEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %47) #5
  %50 = invoke noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPKPK7DexTypeSt6vectorIS4_SaIS4_EEEEEbRKSt16reverse_iteratorIT_ESF_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %51 unwind label %54

51:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br i1 %50, label %56, label %.loopexit

52:                                               ; preds = %46
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %79

54:                                               ; preds = %49
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br label %77

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKPK7DexTypeSt6vectorIS4_SaIS4_EEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %58 = invoke ptr @_ZN12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EE4findERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 8 dereferenceable(8) %57)
          to label %59 unwind label %63

59:                                               ; preds = %56
  store ptr %58, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %60 = invoke ptr @_ZN12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %5)
          to label %61 unwind label %65

61:                                               ; preds = %59
  store ptr %60, ptr %12, align 8
  %62 = call noundef zeroext i1 @_ZNK12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EE13FixedIteratoreqERKSA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br i1 %62, label %75, label %67

63:                                               ; preds = %56
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %77

65:                                               ; preds = %59
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %74

67:                                               ; preds = %61
  %68 = call noundef ptr @_ZNK12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
  %69 = getelementptr inbounds i8, ptr %68, i64 8
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK9DexMethodSaIS2_EE12emplace_backIJRPS0_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %69)
          to label %73 unwind label %71

71:                                               ; preds = %67
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %74

73:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %.loopexit

74:                                               ; preds = %71, %65
  %.pn = phi { ptr, i32 } [ %72, %71 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %77

75:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKPK7DexTypeSt6vectorIS4_SaIS4_EEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  br label %49, !llvm.loop !12

.loopexit:                                        ; preds = %51, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %78

77:                                               ; preds = %63, %74, %54
  %.pn.pn.pn = phi { ptr, i32 } [ %55, %54 ], [ %.pn, %74 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %79

78:                                               ; preds = %.loopexit, %._crit_edge
  call void @_ZN12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #5
  ret void

79:                                               ; preds = %52, %77, %45
  %.pn34.pn = phi { ptr, i32 } [ %.pn34, %45 ], [ %.pn.pn.pn, %77 ], [ %53, %52 ]
  call void @_ZN12UnorderedMapIPK7DexTypeP9DexMethodSt4hashIS2_ESt8equal_toIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #5
  call void @_ZNSt6vectorIPK9DexMethodSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  resume { ptr, i32 } %.pn34.pn
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_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_cxxneIPKSt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(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(10) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6vectorIPK7DexTypeSaIS2_EE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6vectorIPK7DexTypeSaIS2_EE4rendEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

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


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