; LLVM IR from facebook/redex :: libredex/VirtualScope.ll (ZN10virt_scope11ClassScopes18build_class_scopesEPK7DexType)

; 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<const DexType *, std::set<const DexType *, dextypes_comparator>>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator.196" }
%"struct.std::__detail::_Node_iterator.196" = type { %"struct.std::__detail::_Node_iterator_base.197" }
%"struct.std::__detail::_Node_iterator_base.197" = type { ptr }
%"struct.std::_Rb_tree_const_iterator.69" = type { ptr }
%"class.virt_scope::ClassScopes" = type { %class.UnorderedMap.121, %class.UnorderedMap.175, %class.UnorderedMap, %class.UnorderedMap, %"class.std::map.3" }
%class.UnorderedMap.121 = type { %"class.std::unordered_map.123" }
%"class.std::unordered_map.123" = type { %"class.std::_Hashtable.124" }
%"class.std::_Hashtable.124" = 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.175 = type { %"class.std::unordered_map.177" }
%"class.std::unordered_map.177" = type { %"class.std::_Hashtable.178" }
%"class.std::_Hashtable.178" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%class.UnorderedMap = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::map.3" = type { %"class.std::_Rb_tree.4" }
%"class.std::_Rb_tree.4" = type { %"struct.std::_Rb_tree<const DexString *, std::pair<const DexString *const, std::map<const DexProto *, std::vector<virt_scope::VirtualScope>, dexprotos_comparator>>, std::_Select1st<std::pair<const DexString *const, std::map<const DexProto *, std::vector<virt_scope::VirtualScope>, dexprotos_comparator>>>, dexstrings_comparator>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const DexString *, std::pair<const DexString *const, std::map<const DexProto *, std::vector<virt_scope::VirtualScope>, dexprotos_comparator>>, std::_Select1st<std::pair<const DexString *const, std::map<const DexProto *, std::vector<virt_scope::VirtualScope>, dexprotos_comparator>>>, dexstrings_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.198" = type { ptr, %"class.std::set.31" }
%"class.std::set.31" = type { %"class.std::_Rb_tree.32" }
%"class.std::_Rb_tree.32" = 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" }

@.str.10 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [51 x i8], align 1
@__PRETTY_FUNCTION__._ZN10virt_scope11ClassScopes18build_class_scopesEPK7DexType = external hidden unnamed_addr constant [66 x i8], align 1

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

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

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

; Function Attrs: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIPK7DexTypeES5_(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(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIPK7DexTypeEdeEv(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 @_ZNSt23_Rb_tree_const_iteratorIPK7DexTypeEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

declare noundef ptr @_ZN4type16java_lang_ObjectEv() #3

declare noundef ptr @_Z10type_classPK7DexType(ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10virt_scope11ClassScopes18build_class_scopesEPK7DexType(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1) #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.UnorderedMap<const DexType *, std::set<const DexType *, dextypes_comparator>>::FixedIterator", align 8
  %8 = alloca %"class.UnorderedMap<const DexType *, std::set<const DexType *, dextypes_comparator>>::FixedIterator", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator.69", align 8
  %11 = alloca %"struct.std::_Rb_tree_const_iterator.69", align 8
  %12 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = call noundef ptr @_Z10type_classPK7DexType(ptr noundef %14)
  store ptr %15, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %22, label %18

18:                                               ; preds = %2
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = call noundef ptr @_ZN4type16java_lang_ObjectEv()
  %21 = icmp eq ptr %19, %20
  br i1 %21, label %22, label %23

22:                                               ; preds = %18, %2
  br label %25

23:                                               ; preds = %18
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.55, ptr noundef @.str.10, i32 noundef 872, ptr noundef @__PRETTY_FUNCTION__._ZN10virt_scope11ClassScopes18build_class_scopesEPK7DexType, i32 noundef 2, ptr noundef @.str.11) #6
  unreachable

24:                                               ; No predecessors!
  br label %25

25:                                               ; preds = %24, %22
  %26 = getelementptr inbounds %"class.virt_scope::ClassScopes", ptr %13, i32 0, i32 4
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.virt_scope::ClassScopes", ptr %13, i32 0, i32 0
  call void @_ZN10virt_scope15get_root_scopesERKSt3mapIPK9DexStringS0_IPK8DexProtoSt6vectorINS_12VirtualScopeESaIS8_EE20dexprotos_comparatorSaISt4pairIKS6_SA_EEE21dexstrings_comparatorSaISC_IKS3_SG_EEEPK7DexTypeR12UnorderedMapISQ_S7_IPKS8_SaIST_EESt4hashISQ_ESt8equal_toISQ_EE(ptr noundef nonnull align 8 dereferenceable(48) %26, ptr noundef %27, ptr noundef nonnull align 8 dereferenceable(56) %28)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %29 = getelementptr inbounds %"class.virt_scope::ClassScopes", ptr %13, i32 0, i32 2
  %30 = call ptr @_ZN12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE4findERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %29, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %31 = getelementptr inbounds %"class.UnorderedMap<const DexType *, std::set<const DexType *, dextypes_comparator>>::FixedIterator", ptr %7, i32 0, i32 0
  %32 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.196", ptr %31, i32 0, i32 0
  %33 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.197", ptr %32, i32 0, i32 0
  store ptr %30, ptr %33, align 8
  store ptr %7, ptr %6, align 8, !tbaa !5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %35 = getelementptr inbounds %"class.virt_scope::ClassScopes", ptr %13, i32 0, i32 2
  %36 = call ptr @_ZN12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %35)
  %37 = getelementptr inbounds %"class.UnorderedMap<const DexType *, std::set<const DexType *, dextypes_comparator>>::FixedIterator", ptr %8, i32 0, i32 0
  %38 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.196", ptr %37, i32 0, i32 0
  %39 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.197", ptr %38, i32 0, i32 0
  store ptr %36, ptr %39, align 8
  %40 = call noundef zeroext i1 @_ZNK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE13FixedIteratorneERKSC_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br i1 %40, label %41, label %61

41:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = call noundef ptr @_ZNK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8) %42)
  %44 = getelementptr inbounds %"struct.std::pair.198", ptr %43, i32 0, i32 1
  store ptr %44, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = call ptr @_ZNKSt3setIPK7DexType19dextypes_comparatorSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %45) #5
  %47 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.69", ptr %10, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = call ptr @_ZNKSt3setIPK7DexType19dextypes_comparatorSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %48) #5
  %50 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.69", ptr %11, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  br label %51

51:                                               ; preds = %58, %41
  %52 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIPK7DexTypeES5_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %52, label %54, label %53

53:                                               ; preds = %51
  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 %9) #5
  br label %60

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIPK7DexTypeEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  store ptr %55, ptr %12, align 8, !tbaa !5
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  call void @_ZN10virt_scope11ClassScopes18build_class_scopesEPK7DexType(ptr noundef nonnull align 8 dereferenceable(272) %13, ptr noundef %57)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %58

58:                                               ; preds = %54
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIPK7DexTypeEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br label %51

60:                                               ; preds = %53
  br label %61

61:                                               ; preds = %60, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE13FixedIteratorneERKSC_(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 @_ZN12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE13FixedIteratorptEv(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 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 }
attributes #6 = { noreturn }

!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"}


; 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<const DexType *, std::set<const DexType *, dextypes_comparator>>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator.196" }
%"struct.std::__detail::_Node_iterator.196" = type { %"struct.std::__detail::_Node_iterator_base.197" }
%"struct.std::__detail::_Node_iterator_base.197" = type { ptr }
%"struct.std::_Rb_tree_const_iterator.69" = type { ptr }

@.str.10 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [51 x i8], align 1
@__PRETTY_FUNCTION__._ZN10virt_scope11ClassScopes18build_class_scopesEPK7DexType = external hidden unnamed_addr constant [66 x i8], align 1

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

; 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 ptr @_ZNKSt3setIPK7DexType19dextypes_comparatorSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

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

; Function Attrs: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIPK7DexTypeES5_(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(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIPK7DexTypeEdeEv(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 @_ZNSt23_Rb_tree_const_iteratorIPK7DexTypeEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

declare noundef ptr @_ZN4type16java_lang_ObjectEv() local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10virt_scope11ClassScopes18build_class_scopesEPK7DexType(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1) local_unnamed_addr #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca %"class.UnorderedMap<const DexType *, std::set<const DexType *, dextypes_comparator>>::FixedIterator", align 8
  %5 = alloca %"class.UnorderedMap<const DexType *, std::set<const DexType *, dextypes_comparator>>::FixedIterator", align 8
  %6 = alloca %"struct.std::_Rb_tree_const_iterator.69", align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator.69", align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  %8 = tail call noundef ptr @_Z10type_classPK7DexType(ptr noundef %1)
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %9, label %13

9:                                                ; preds = %2
  %10 = tail call noundef ptr @_ZN4type16java_lang_ObjectEv()
  %11 = icmp eq ptr %10, %1
  br i1 %11, label %13, label %12

12:                                               ; preds = %9
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.55, ptr noundef nonnull @.str.10, i32 noundef 872, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN10virt_scope11ClassScopes18build_class_scopesEPK7DexType, i32 noundef 2, ptr noundef nonnull @.str.11) #5
  unreachable

13:                                               ; preds = %2, %9
  %14 = getelementptr inbounds i8, ptr %0, i64 224
  tail call void @_ZN10virt_scope15get_root_scopesERKSt3mapIPK9DexStringS0_IPK8DexProtoSt6vectorINS_12VirtualScopeESaIS8_EE20dexprotos_comparatorSaISt4pairIKS6_SA_EEE21dexstrings_comparatorSaISC_IKS3_SG_EEEPK7DexTypeR12UnorderedMapISQ_S7_IPKS8_SaIST_EESt4hashISQ_ESt8equal_toISQ_EE(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(56) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %15 = getelementptr inbounds i8, ptr %0, i64 112
  %16 = call ptr @_ZN12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE4findERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %15, ptr noundef nonnull align 8 dereferenceable(8) %3)
  store ptr %16, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %17 = call ptr @_ZN12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %15)
  store ptr %17, ptr %5, align 8
  %18 = call noundef zeroext i1 @_ZNK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE13FixedIteratorneERKSC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br i1 %18, label %19, label %29

19:                                               ; preds = %13
  %20 = call noundef ptr @_ZNK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %22 = call ptr @_ZNKSt3setIPK7DexType19dextypes_comparatorSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %21) #6
  store ptr %22, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %23 = call ptr @_ZNKSt3setIPK7DexType19dextypes_comparatorSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %21) #6
  store ptr %23, ptr %7, align 8
  %24 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIPK7DexTypeES5_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %24, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %29

.lr.ph:                                           ; preds = %19, %.lr.ph
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIPK7DexTypeEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  call void @_ZN10virt_scope11ClassScopes18build_class_scopesEPK7DexType(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %26)
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIPK7DexTypeEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %28 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIPK7DexTypeES5_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %28, label %.lr.ph, label %._crit_edge

29:                                               ; preds = %._crit_edge, %13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE13FixedIteratorneERKSC_(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 @_ZN12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK12UnorderedMapIPK7DexTypeSt3setIS2_19dextypes_comparatorSaIS2_EESt4hashIS2_ESt8equal_toIS2_EE13FixedIteratorptEv(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 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 = { noreturn }
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"}


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