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

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

%"struct.std::pair.76" = type <{ %"class.UnorderedSet<const DexMethod *>::FixedIterator", i8, [7 x i8] }>
%"class.UnorderedSet<const 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 }
%"class.UnorderedBag<method_override_graph::Node *>::ConstUnorderedIterable" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.78" = type { ptr }
%"struct.method_override_graph::Node" = type <{ ptr, %class.UnorderedBag, %class.UnorderedBag, %"class.std::unique_ptr", i8, [7 x i8] }>
%class.UnorderedBag = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<method_override_graph::Node *, std::allocator<method_override_graph::Node *>>::_Vector_impl" }
%"struct.std::_Vector_base<method_override_graph::Node *, std::allocator<method_override_graph::Node *>>::_Vector_impl" = type { %"struct.std::_Vector_base<method_override_graph::Node *, std::allocator<method_override_graph::Node *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<method_override_graph::Node *, std::allocator<method_override_graph::Node *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.5" }
%"struct.std::_Head_base.5" = type { ptr }

; 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 uwtable
define dso_local void @_ZNK21method_override_graph4Node24gather_connected_methodsEP12UnorderedSetIPK9DexMethodSt4hashIS4_ESt8equal_toIS4_EE(ptr noundef nonnull align 8 dereferenceable(65) %0, ptr noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.std::pair.76", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.UnorderedBag<method_override_graph::Node *>::ConstUnorderedIterable", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.78", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.78", align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.UnorderedBag<method_override_graph::Node *>::ConstUnorderedIterable", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.78", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.78", align 8
  %16 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8
  %18 = getelementptr inbounds %"struct.method_override_graph::Node", ptr %17, i32 0, i32 0
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %22

21:                                               ; preds = %2
  br label %89

22:                                               ; preds = %2
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.method_override_graph::Node", ptr %17, i32 0, i32 0
  %25 = call { ptr, i8 } @_ZN12UnorderedSetIPK9DexMethodSt4hashIS2_ESt8equal_toIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %23, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %26 = getelementptr inbounds { ptr, i8 }, ptr %5, i32 0, i32 0
  %27 = extractvalue { ptr, i8 } %25, 0
  store ptr %27, ptr %26, align 8
  %28 = getelementptr inbounds { ptr, i8 }, ptr %5, i32 0, i32 1
  %29 = extractvalue { ptr, i8 } %25, 1
  store i8 %29, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %30 = getelementptr inbounds %"struct.method_override_graph::Node", ptr %17, i32 0, i32 2
  %31 = call ptr @_Z17UnorderedIterableI12UnorderedBagIPN21method_override_graph4NodeEETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ES7_EEbE4typeELb1EEDaRKS7_(ptr noundef nonnull align 8 dereferenceable(24) %30)
  %32 = getelementptr inbounds %"class.UnorderedBag<method_override_graph::Node *>::ConstUnorderedIterable", ptr %7, i32 0, i32 0
  store ptr %31, ptr %32, align 8
  store ptr %7, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = call ptr @_ZNK12UnorderedBagIPN21method_override_graph4NodeEE22ConstUnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %33)
  %35 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.78", ptr %8, i32 0, i32 0
  store ptr %34, ptr %35, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = call ptr @_ZNK12UnorderedBagIPN21method_override_graph4NodeEE22ConstUnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %36)
  %38 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.78", ptr %9, i32 0, i32 0
  store ptr %37, ptr %38, align 8
  br label %39

39:                                               ; preds = %57, %22
  %40 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  br i1 %40, label %42, label %41

41:                                               ; preds = %39
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %59

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  store ptr %44, ptr %11, align 8, !tbaa !5
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.method_override_graph::Node", ptr %46, i32 0, i32 0
  %48 = call noundef i64 @_ZNK12UnorderedSetIPK9DexMethodSt4hashIS2_ESt8equal_toIS2_EE5countERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %45, ptr noundef nonnull align 8 dereferenceable(8) %47)
  %49 = icmp ne i64 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %42
  store i32 3, ptr %10, align 4
  br label %54

51:                                               ; preds = %42
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK21method_override_graph4Node24gather_connected_methodsEP12UnorderedSetIPK9DexMethodSt4hashIS4_ESt8equal_toIS4_EE(ptr noundef nonnull align 8 dereferenceable(65) %52, ptr noundef %53)
  store i32 0, ptr %10, align 4
  br label %54

54:                                               ; preds = %51, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %55 = load i32, ptr %10, align 4
  switch i32 %55, label %90 [
    i32 0, label %56
    i32 3, label %57
  ]

56:                                               ; preds = %54
  br label %57

57:                                               ; preds = %56, %54
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br label %39

59:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %60 = getelementptr inbounds %"struct.method_override_graph::Node", ptr %17, i32 0, i32 1
  %61 = call ptr @_Z17UnorderedIterableI12UnorderedBagIPN21method_override_graph4NodeEETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ES7_EEbE4typeELb1EEDaRKS7_(ptr noundef nonnull align 8 dereferenceable(24) %60)
  %62 = getelementptr inbounds %"class.UnorderedBag<method_override_graph::Node *>::ConstUnorderedIterable", ptr %13, i32 0, i32 0
  store ptr %61, ptr %62, align 8
  store ptr %13, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = call ptr @_ZNK12UnorderedBagIPN21method_override_graph4NodeEE22ConstUnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %63)
  %65 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.78", ptr %14, i32 0, i32 0
  store ptr %64, ptr %65, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = call ptr @_ZNK12UnorderedBagIPN21method_override_graph4NodeEE22ConstUnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %66)
  %68 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.78", ptr %15, i32 0, i32 0
  store ptr %67, ptr %68, align 8
  br label %69

69:                                               ; preds = %87, %59
  %70 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  br i1 %70, label %72, label %71

71:                                               ; preds = %69
  store i32 4, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %89

72:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  store ptr %74, ptr %16, align 8, !tbaa !5
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = load ptr, ptr %16, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.method_override_graph::Node", ptr %76, i32 0, i32 0
  %78 = call noundef i64 @_ZNK12UnorderedSetIPK9DexMethodSt4hashIS2_ESt8equal_toIS2_EE5countERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %75, ptr noundef nonnull align 8 dereferenceable(8) %77)
  %79 = icmp ne i64 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %72
  store i32 5, ptr %10, align 4
  br label %84

81:                                               ; preds = %72
  %82 = load ptr, ptr %16, align 8, !tbaa !5
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK21method_override_graph4Node24gather_connected_methodsEP12UnorderedSetIPK9DexMethodSt4hashIS4_ESt8equal_toIS4_EE(ptr noundef nonnull align 8 dereferenceable(65) %82, ptr noundef %83)
  store i32 0, ptr %10, align 4
  br label %84

84:                                               ; preds = %81, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %85 = load i32, ptr %10, align 4
  switch i32 %85, label %90 [
    i32 0, label %86
    i32 5, label %87
  ]

86:                                               ; preds = %84
  br label %87

87:                                               ; preds = %86, %84
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  br label %69

89:                                               ; preds = %71, %21
  ret void

90:                                               ; preds = %84, %54
  unreachable
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK12UnorderedSetIPK9DexMethodSt4hashIS2_ESt8equal_toIS2_EE5countERKS2_(ptr noundef nonnull align 8 dereferenceable(56), 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 @_ZN9__gnu_cxx17__normal_iteratorIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 = !{!"_ZTSN21method_override_graph4NodeE", !6, i64 0, !11, i64 8, !11, i64 32, !16, i64 56, !22, i64 64}
!11 = !{!"_ZTS12UnorderedBagIPN21method_override_graph4NodeEE", !12, i64 0}
!12 = !{!"_ZTSSt6vectorIPN21method_override_graph4NodeESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIPN21method_override_graph4NodeESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN21method_override_graph4NodeESaIS2_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN21method_override_graph4NodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"_ZTSSt10unique_ptrIN21method_override_graph29OtherInterfaceImplementationsESt14default_deleteIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_dataIN21method_override_graph29OtherInterfaceImplementationsESt14default_deleteIS1_ELb1ELb1EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_implIN21method_override_graph29OtherInterfaceImplementationsESt14default_deleteIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt5tupleIJPN21method_override_graph29OtherInterfaceImplementationsESt14default_deleteIS1_EEE", !20, i64 0}
!20 = !{!"_ZTSSt11_Tuple_implILm0EJPN21method_override_graph29OtherInterfaceImplementationsESt14default_deleteIS1_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_Head_baseILm0EPN21method_override_graph29OtherInterfaceImplementationsELb0EE", !6, i64 0}
!22 = !{!"bool", !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.UnorderedBag<method_override_graph::Node *>::ConstUnorderedIterable" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.78" = type { ptr }

; 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 uwtable
define dso_local void @_ZNK21method_override_graph4Node24gather_connected_methodsEP12UnorderedSetIPK9DexMethodSt4hashIS4_ESt8equal_toIS4_EE(ptr noundef nonnull align 8 dereferenceable(65) %0, ptr noundef %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %"class.UnorderedBag<method_override_graph::Node *>::ConstUnorderedIterable", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.78", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.78", align 8
  %6 = alloca %"class.UnorderedBag<method_override_graph::Node *>::ConstUnorderedIterable", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.78", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.78", align 8
  %9 = load ptr, ptr %0, align 8, !tbaa !5
  %10 = icmp eq ptr %9, null
  br i1 %10, label %37, label %11

11:                                               ; preds = %2
  %12 = tail call { ptr, i8 } @_ZN12UnorderedSetIPK9DexMethodSt4hashIS2_ESt8equal_toIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %13 = getelementptr inbounds i8, ptr %0, i64 32
  %14 = tail call ptr @_Z17UnorderedIterableI12UnorderedBagIPN21method_override_graph4NodeEETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ES7_EEbE4typeELb1EEDaRKS7_(ptr noundef nonnull align 8 dereferenceable(24) %13)
  store ptr %14, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %15 = call ptr @_ZNK12UnorderedBagIPN21method_override_graph4NodeEE22ConstUnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  store ptr %15, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %16 = call ptr @_ZNK12UnorderedBagIPN21method_override_graph4NodeEE22ConstUnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  store ptr %16, ptr %5, align 8
  %17 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  br i1 %17, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %27, %11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = call ptr @_Z17UnorderedIterableI12UnorderedBagIPN21method_override_graph4NodeEETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ES7_EEbE4typeELb1EEDaRKS7_(ptr noundef nonnull align 8 dereferenceable(24) %18)
  store ptr %19, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %20 = call ptr @_ZNK12UnorderedBagIPN21method_override_graph4NodeEE22ConstUnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  store ptr %20, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %21 = call ptr @_ZNK12UnorderedBagIPN21method_override_graph4NodeEE22ConstUnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  store ptr %21, ptr %8, align 8
  %22 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %22, label %.lr.ph16, label %._crit_edge17

.lr.ph:                                           ; preds = %11, %27
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %24 = load ptr, ptr %23, align 8, !tbaa !22
  %25 = call noundef i64 @_ZNK12UnorderedSetIPK9DexMethodSt4hashIS2_ESt8equal_toIS2_EE5countERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %.not14 = icmp eq i64 %25, 0
  br i1 %.not14, label %26, label %27

26:                                               ; preds = %.lr.ph
  call void @_ZNK21method_override_graph4Node24gather_connected_methodsEP12UnorderedSetIPK9DexMethodSt4hashIS4_ESt8equal_toIS4_EE(ptr noundef nonnull align 8 dereferenceable(65) %24, ptr noundef nonnull %1)
  br label %27

27:                                               ; preds = %.lr.ph, %26
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %29 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  br i1 %29, label %.lr.ph, label %._crit_edge

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

.lr.ph16:                                         ; preds = %._crit_edge, %34
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %31 = load ptr, ptr %30, align 8, !tbaa !22
  %32 = call noundef i64 @_ZNK12UnorderedSetIPK9DexMethodSt4hashIS2_ESt8equal_toIS2_EE5countERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %.not = icmp eq i64 %32, 0
  br i1 %.not, label %33, label %34

33:                                               ; preds = %.lr.ph16
  call void @_ZNK21method_override_graph4Node24gather_connected_methodsEP12UnorderedSetIPK9DexMethodSt4hashIS4_ESt8equal_toIS4_EE(ptr noundef nonnull align 8 dereferenceable(65) %31, ptr noundef nonnull %1)
  br label %34

34:                                               ; preds = %.lr.ph16, %33
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %36 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %36, label %.lr.ph16, label %._crit_edge17

37:                                               ; preds = %2, %._crit_edge17
  ret void
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK12UnorderedSetIPK9DexMethodSt4hashIS2_ESt8equal_toIS2_EE5countERKS2_(ptr noundef nonnull align 8 dereferenceable(56), 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 @_ZN9__gnu_cxx17__normal_iteratorIPKPN21method_override_graph4NodeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 = !{!"_ZTSN21method_override_graph4NodeE", !7, i64 0, !10, i64 8, !10, i64 32, !15, i64 56, !21, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS12UnorderedBagIPN21method_override_graph4NodeEE", !11, i64 0}
!11 = !{!"_ZTSSt6vectorIPN21method_override_graph4NodeESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIPN21method_override_graph4NodeESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIPN21method_override_graph4NodeESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN21method_override_graph4NodeESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!15 = !{!"_ZTSSt10unique_ptrIN21method_override_graph29OtherInterfaceImplementationsESt14default_deleteIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_dataIN21method_override_graph29OtherInterfaceImplementationsESt14default_deleteIS1_ELb1ELb1EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_implIN21method_override_graph29OtherInterfaceImplementationsESt14default_deleteIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt5tupleIJPN21method_override_graph29OtherInterfaceImplementationsESt14default_deleteIS1_EEE", !19, i64 0}
!19 = !{!"_ZTSSt11_Tuple_implILm0EJPN21method_override_graph29OtherInterfaceImplementationsESt14default_deleteIS1_EEE", !20, i64 0}
!20 = !{!"_ZTSSt10_Head_baseILm0EPN21method_override_graph29OtherInterfaceImplementationsELb0EE", !7, i64 0}
!21 = !{!"bool", !8, i64 0}
!22 = !{!7, !7, i64 0}


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