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

; 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.UnorderedMap = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.UnorderedMap<const DexType *, std::set<const DexType *, dextypes_comparator>>::ConstUnorderedIterable" = type { ptr }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { 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.26" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair" = type { ptr, %"class.std::set" }

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 void @_ZNSt3setIPK7DexType19dextypes_comparatorSaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12is_interfaceI8DexClassEbPT_(ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19build_interface_mapRK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE(ptr dead_on_unwind noalias writable sret(%class.UnorderedMap) align 8 %0, ptr noundef nonnull align 8 dereferenceable(56) %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca %"class.UnorderedMap<const DexType *, std::set<const DexType *, dextypes_comparator>>::ConstUnorderedIterable", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %11 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::set", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.std::pair.26", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i1 false, ptr %5, align 1
  call void @_ZN12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = invoke ptr @_Z17UnorderedIterableI12UnorderedMapIPK7DexTypeSt3setIS3_19dextypes_comparatorSaIS3_EESt4hashIS3_ESt8equal_toIS3_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESF_EEbE4typeELb1EEDaRKSF_(ptr noundef nonnull align 8 dereferenceable(56) %18)
          to label %20 unwind label %35

20:                                               ; preds = %2
  %21 = getelementptr inbounds %"class.UnorderedMap<const DexType *, std::set<const DexType *, dextypes_comparator>>::ConstUnorderedIterable", ptr %7, i32 0, i32 0
  store ptr %19, ptr %21, align 8
  store ptr %7, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = invoke ptr @_ZNK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE22ConstUnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %24 unwind label %39

24:                                               ; preds = %20
  %25 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %10, i32 0, i32 0
  %26 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %25, i32 0, i32 0
  store ptr %23, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = invoke ptr @_ZNK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE22ConstUnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %29 unwind label %43

29:                                               ; preds = %24
  %30 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %11, i32 0, i32 0
  %31 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %30, i32 0, i32 0
  store ptr %28, ptr %31, align 8
  br label %32

32:                                               ; preds = %90, %29
  %33 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPK7DexTypeSt3setIS4_19dextypes_comparatorSaIS4_EEELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %33, label %47, label %34

34:                                               ; preds = %32
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %105

35:                                               ; preds = %2
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %8, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %9, align 4
  br label %104

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

43:                                               ; preds = %24
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %8, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %9, align 4
  br label %102

47:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %48 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKPK7DexTypeSt3setIS4_19dextypes_comparatorSaIS4_EEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  store ptr %48, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.std::pair", ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = invoke noundef ptr @_Z10type_classPK7DexType(ptr noundef %51)
          to label %53 unwind label %57

53:                                               ; preds = %47
  store ptr %52, ptr %14, align 8, !tbaa !5
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = icmp eq ptr %54, null
  br i1 %55, label %56, label %61

56:                                               ; preds = %53
  store i32 3, ptr %12, align 4
  br label %84

57:                                               ; preds = %61, %47
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %8, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %9, align 4
  br label %101

61:                                               ; preds = %53
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  %63 = invoke noundef zeroext i1 @_Z12is_interfaceI8DexClassEbPT_(ptr noundef %62)
          to label %64 unwind label %57

64:                                               ; preds = %61
  br i1 %63, label %65, label %66

65:                                               ; preds = %64
  store i32 3, ptr %12, align 4
  br label %84

66:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #5
  call void @_ZNSt3setIPK7DexType19dextypes_comparatorSaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #5
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = invoke noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %68)
          to label %70 unwind label %92

70:                                               ; preds = %66
  invoke void @_Z16get_all_childrenRK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EES2_RS6_(ptr noundef nonnull align 8 dereferenceable(56) %67, ptr noundef %69, ptr noundef nonnull align 8 dereferenceable(48) %15)
          to label %71 unwind label %92

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  %73 = invoke noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %72)
          to label %74 unwind label %96

74:                                               ; preds = %71
  store ptr %73, ptr %16, align 8, !tbaa !5
  %75 = invoke { ptr, i8 } @_ZNSt3setIPK7DexType19dextypes_comparatorSaIS2_EE6insertEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %76 unwind label %96

76:                                               ; preds = %74
  %77 = getelementptr inbounds { ptr, i8 }, ptr %17, i32 0, i32 0
  %78 = extractvalue { ptr, i8 } %75, 0
  store ptr %78, ptr %77, align 8
  %79 = getelementptr inbounds { ptr, i8 }, ptr %17, i32 0, i32 1
  %80 = extractvalue { ptr, i8 } %75, 1
  store i8 %80, ptr %79, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_119build_interface_mapER12UnorderedMapIPK7DexTypeSt3setIS3_19dextypes_comparatorSaIS3_EESt4hashIS3_ESt8equal_toIS3_EERKSC_PK8DexClassRKS7_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %81, ptr noundef %82, ptr noundef nonnull align 8 dereferenceable(48) %15)
          to label %83 unwind label %92

83:                                               ; preds = %76
  call void @_ZNSt3setIPK7DexType19dextypes_comparatorSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #5
  store i32 0, ptr %12, align 4
  br label %84

84:                                               ; preds = %83, %65, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %85 = load i32, ptr %12, align 4
  switch i32 %85, label %87 [
    i32 0, label %86
  ]

86:                                               ; preds = %84
  store i32 0, ptr %12, align 4
  br label %87

87:                                               ; preds = %86, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %88 = load i32, ptr %12, align 4
  switch i32 %88, label %114 [
    i32 0, label %89
    i32 3, label %90
  ]

89:                                               ; preds = %87
  br label %90

90:                                               ; preds = %89, %87
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKPK7DexTypeSt3setIS4_19dextypes_comparatorSaIS4_EEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br label %32

92:                                               ; preds = %76, %70, %66
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %8, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %9, align 4
  br label %100

96:                                               ; preds = %74, %71
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %8, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %100

100:                                              ; preds = %96, %92
  call void @_ZNSt3setIPK7DexType19dextypes_comparatorSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #5
  br label %101

101:                                              ; preds = %100, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %102

102:                                              ; preds = %101, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %103

103:                                              ; preds = %102, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %104

104:                                              ; preds = %103, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @_ZN12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  br label %109

105:                                              ; preds = %34
  store i1 true, ptr %5, align 1
  store i32 1, ptr %12, align 4
  %106 = load i1, ptr %5, align 1
  br i1 %106, label %108, label %107

107:                                              ; preds = %105
  call void @_ZN12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  br label %108

108:                                              ; preds = %107, %105
  ret void

109:                                              ; preds = %104
  %110 = load ptr, ptr %8, align 8
  %111 = load i32, ptr %9, align 4
  %112 = insertvalue { ptr, i32 } poison, ptr %110, 0
  %113 = insertvalue { ptr, i32 } %112, i32 %111, 1
  resume { ptr, i32 } %113

114:                                              ; preds = %87
  unreachable
}

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

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

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

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

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

declare noundef ptr @_Z10type_classPK7DexType(ptr noundef) #4

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKPK7DexTypeSt3setIS4_19dextypes_comparatorSaIS4_EEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #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 = { "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, !6, i64 0}
!10 = !{!"_ZTSSt4pairIKPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EEE", !6, i64 0, !11, i64 8}
!11 = !{!"_ZTSSt3setIPK7DexType19dextypes_comparatorSaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt8_Rb_treeIPK7DexTypeS2_St9_IdentityIS2_E19dextypes_comparatorSaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt8_Rb_treeIPK7DexTypeS2_St9_IdentityIS2_E19dextypes_comparatorSaIS2_EE13_Rb_tree_implIS5_Lb1EEE", !14, i64 0, !16, i64 8}
!14 = !{!"_ZTSSt20_Rb_tree_key_compareI19dextypes_comparatorE", !15, i64 0}
!15 = !{!"_ZTS19dextypes_comparator"}
!16 = !{!"_ZTSSt15_Rb_tree_header", !17, i64 0, !19, i64 32}
!17 = !{!"_ZTSSt18_Rb_tree_node_base", !18, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!19 = !{!"long", !7, i64 0}


; 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.UnorderedMap = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.UnorderedMap<const DexType *, std::set<const DexType *, dextypes_comparator>>::ConstUnorderedIterable" = type { ptr }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { 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 }

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 void @_ZNSt3setIPK7DexType19dextypes_comparatorSaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12is_interfaceI8DexClassEbPT_(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19build_interface_mapRK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE(ptr dead_on_unwind noalias nonnull writable sret(%class.UnorderedMap) align 8 %0, ptr noundef nonnull align 8 dereferenceable(56) %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.UnorderedMap<const DexType *, std::set<const DexType *, dextypes_comparator>>::ConstUnorderedIterable", align 8
  %4 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %5 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %6 = alloca %"class.std::set", align 8
  %7 = alloca ptr, align 8
  tail call void @_ZN12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %8 = invoke ptr @_Z17UnorderedIterableI12UnorderedMapIPK7DexTypeSt3setIS3_19dextypes_comparatorSaIS3_EESt4hashIS3_ESt8equal_toIS3_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESF_EEbE4typeELb1EEDaRKSF_(ptr noundef nonnull align 8 dereferenceable(56) %1)
          to label %9 unwind label %13

9:                                                ; preds = %2
  store ptr %8, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %10 = call ptr @_ZNK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE22ConstUnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  store ptr %10, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %11 = call ptr @_ZNK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE22ConstUnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  store ptr %11, ptr %5, align 8
  %12 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPK7DexTypeSt3setIS4_19dextypes_comparatorSaIS4_EEELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %12, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %32, %9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret void

13:                                               ; preds = %2
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %41

.lr.ph:                                           ; preds = %9, %32
  %15 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKPK7DexTypeSt3setIS4_19dextypes_comparatorSaIS4_EEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = invoke noundef ptr @_Z10type_classPK7DexType(ptr noundef %16)
          to label %18 unwind label %20

18:                                               ; preds = %.lr.ph
  %19 = icmp eq ptr %17, null
  br i1 %19, label %32, label %22

20:                                               ; preds = %22, %.lr.ph
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %40

22:                                               ; preds = %18
  %23 = invoke noundef zeroext i1 @_Z12is_interfaceI8DexClassEbPT_(ptr noundef nonnull %17)
          to label %24 unwind label %20

24:                                               ; preds = %22
  br i1 %23, label %32, label %25

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #5
  call void @_ZNSt3setIPK7DexType19dextypes_comparatorSaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  %26 = call noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %17)
  invoke void @_Z16get_all_childrenRK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EES2_RS6_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef %26, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %27 unwind label %35

27:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %28 = call noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %17)
  store ptr %28, ptr %7, align 8, !tbaa !19
  %29 = invoke { ptr, i8 } @_ZNSt3setIPK7DexType19dextypes_comparatorSaIS2_EE6insertEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %30 unwind label %37

30:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  invoke void @_ZN12_GLOBAL__N_119build_interface_mapER12UnorderedMapIPK7DexTypeSt3setIS3_19dextypes_comparatorSaIS3_EESt4hashIS3_ESt8equal_toIS3_EERKSC_PK8DexClassRKS7_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull %17, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %31 unwind label %35

31:                                               ; preds = %30
  call void @_ZNSt3setIPK7DexType19dextypes_comparatorSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #5
  br label %32

32:                                               ; preds = %24, %18, %31
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKPK7DexTypeSt3setIS4_19dextypes_comparatorSaIS4_EEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %34 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPK7DexTypeSt3setIS4_19dextypes_comparatorSaIS4_EEELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %34, label %.lr.ph, label %._crit_edge

35:                                               ; preds = %30, %25
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %39

37:                                               ; preds = %27
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %39

39:                                               ; preds = %37, %35
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %38, %37 ]
  call void @_ZNSt3setIPK7DexType19dextypes_comparatorSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #5
  br label %40

40:                                               ; preds = %39, %20
  %.pn.pn = phi { ptr, i32 } [ %.pn, %39 ], [ %21, %20 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %41

41:                                               ; preds = %40, %13
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %40 ], [ %14, %13 ]
  call void @_ZN12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

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

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

declare noundef ptr @_Z10type_classPK7DexType(ptr noundef) local_unnamed_addr #4

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKPK7DexTypeSt3setIS4_19dextypes_comparatorSaIS4_EEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_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 = { "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 = !{!"_ZTSSt4pairIKPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EEE", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt3setIPK7DexType19dextypes_comparatorSaIS2_EE", !11, i64 0}
!11 = !{!"_ZTSSt8_Rb_treeIPK7DexTypeS2_St9_IdentityIS2_E19dextypes_comparatorSaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSNSt8_Rb_treeIPK7DexTypeS2_St9_IdentityIS2_E19dextypes_comparatorSaIS2_EE13_Rb_tree_implIS5_Lb1EEE", !13, i64 0, !15, i64 8}
!13 = !{!"_ZTSSt20_Rb_tree_key_compareI19dextypes_comparatorE", !14, i64 0}
!14 = !{!"_ZTS19dextypes_comparator"}
!15 = !{!"_ZTSSt15_Rb_tree_header", !16, i64 0, !18, i64 32}
!16 = !{!"_ZTSSt18_Rb_tree_node_base", !17, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!17 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!18 = !{!"long", !8, i64 0}
!19 = !{!7, !7, i64 0}


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