; LLVM IR from facebook/redex :: service/method-dedup (MethodDedup)

; 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.UnorderedBag = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::set<DexMethod *, dexmethods_comparator>, std::allocator<std::set<DexMethod *, dexmethods_comparator>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<DexMethod *, dexmethods_comparator>, std::allocator<std::set<DexMethod *, dexmethods_comparator>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<DexMethod *, dexmethods_comparator>, std::allocator<std::set<DexMethod *, dexmethods_comparator>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<DexMethod *, dexmethods_comparator>, std::allocator<std::set<DexMethod *, dexmethods_comparator>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.UnorderedBag<std::set<DexMethod *, dexmethods_comparator>>::UnorderedIterable" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.116" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12method_dedup21group_similar_methodsERKSt6vectorIP9DexMethodSaIS2_EE(ptr dead_on_unwind noalias writable sret(%class.UnorderedBag) align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12method_dedup23group_identical_methodsERKSt6vectorIP9DexMethodSaIS2_EEb(ptr dead_on_unwind noalias writable sret(%class.UnorderedBag) align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i1 noundef zeroext %2) #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i1, align 1
  %8 = alloca %class.UnorderedBag, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.UnorderedBag<std::set<DexMethod *, dexmethods_comparator>>::UnorderedIterable", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.116", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.116", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %class.UnorderedBag, align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  %17 = zext i1 %2 to i8
  store i8 %17, ptr %6, align 1, !tbaa !9
  store i1 false, ptr %7, align 1
  call void @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #4
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN12method_dedup21group_similar_methodsERKSt6vectorIP9DexMethodSaIS2_EE(ptr dead_on_unwind writable sret(%class.UnorderedBag) align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %19 unwind label %34

19:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %20 = invoke ptr @_Z17UnorderedIterableI12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS3_EEETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESA_EEbE4typeELb1EEDaRSA_(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %21 unwind label %38

21:                                               ; preds = %19
  %22 = getelementptr inbounds %"class.UnorderedBag<std::set<DexMethod *, dexmethods_comparator>>::UnorderedIterable", ptr %12, i32 0, i32 0
  store ptr %20, ptr %22, align 8
  store ptr %12, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  %24 = invoke ptr @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEE17UnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %25 unwind label %42

25:                                               ; preds = %21
  %26 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.116", ptr %13, i32 0, i32 0
  store ptr %24, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = invoke ptr @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEE17UnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %29 unwind label %46

29:                                               ; preds = %25
  %30 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.116", ptr %14, i32 0, i32 0
  store ptr %28, ptr %30, align 8
  br label %31

31:                                               ; preds = %57, %29
  %32 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt3setIP9DexMethod21dexmethods_comparatorSaIS3_EESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  br i1 %32, label %50, label %33

33:                                               ; preds = %31
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %71

34:                                               ; preds = %3
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %9, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %10, align 4
  br label %73

38:                                               ; preds = %19
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %9, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %10, align 4
  br label %70

42:                                               ; preds = %21
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %9, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %10, align 4
  br label %69

46:                                               ; preds = %25
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %9, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %10, align 4
  br label %68

50:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %51 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt3setIP9DexMethod21dexmethods_comparatorSaIS3_EESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  store ptr %51, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #4
  %52 = load ptr, ptr %15, align 8, !tbaa !5
  %53 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %54 = trunc i8 %53 to i1
  invoke void @_ZN12_GLOBAL__N_128get_duplicate_methods_simpleERKSt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEb(ptr dead_on_unwind writable sret(%class.UnorderedBag) align 8 %16, ptr noundef nonnull align 8 dereferenceable(48) %52, i1 noundef zeroext %54)
          to label %55 unwind label %59

55:                                               ; preds = %50
  invoke void @_Z25insert_unordered_iterableI12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS3_EEES7_EvRT_RKT0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %56 unwind label %63

56:                                               ; preds = %55
  call void @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %57

57:                                               ; preds = %56
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt3setIP9DexMethod21dexmethods_comparatorSaIS3_EESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  br label %31

59:                                               ; preds = %50
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %9, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %10, align 4
  br label %67

63:                                               ; preds = %55
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %9, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %10, align 4
  call void @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  br label %67

67:                                               ; preds = %63, %59
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %68

68:                                               ; preds = %67, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %69

69:                                               ; preds = %68, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %70

70:                                               ; preds = %69, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  br label %73

71:                                               ; preds = %33
  store i1 true, ptr %7, align 1
  call void @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  %72 = load i1, ptr %7, align 1
  br i1 %72, label %75, label %74

73:                                               ; preds = %70, %34
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  call void @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  br label %76

74:                                               ; preds = %71
  call void @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  br label %75

75:                                               ; preds = %74, %71
  ret void

76:                                               ; preds = %73
  %77 = load ptr, ptr %9, align 8
  %78 = load i32, ptr %10, align 4
  %79 = insertvalue { ptr, i32 } poison, ptr %77, 0
  %80 = insertvalue { ptr, i32 } %79, i32 %78, 1
  resume { ptr, i32 } %80
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_128get_duplicate_methods_simpleERKSt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEb(ptr dead_on_unwind noalias writable sret(%class.UnorderedBag) align 8, ptr noundef nonnull align 8 dereferenceable(48), i1 noundef zeroext) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt3setIP9DexMethod21dexmethods_comparatorSaIS3_EESt6vectorIS6_SaIS6_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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}


; 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 = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::set<DexMethod *, dexmethods_comparator>, std::allocator<std::set<DexMethod *, dexmethods_comparator>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<DexMethod *, dexmethods_comparator>, std::allocator<std::set<DexMethod *, dexmethods_comparator>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<DexMethod *, dexmethods_comparator>, std::allocator<std::set<DexMethod *, dexmethods_comparator>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<DexMethod *, dexmethods_comparator>, std::allocator<std::set<DexMethod *, dexmethods_comparator>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.UnorderedBag<std::set<DexMethod *, dexmethods_comparator>>::UnorderedIterable" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.116" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12method_dedup21group_similar_methodsERKSt6vectorIP9DexMethodSaIS2_EE(ptr dead_on_unwind noalias writable sret(%class.UnorderedBag) align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12method_dedup23group_identical_methodsERKSt6vectorIP9DexMethodSaIS2_EEb(ptr dead_on_unwind noalias nonnull writable sret(%class.UnorderedBag) align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i1 noundef zeroext %2) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.UnorderedBag, align 8
  %5 = alloca %"class.UnorderedBag<std::set<DexMethod *, dexmethods_comparator>>::UnorderedIterable", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.116", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.116", align 8
  %8 = alloca %class.UnorderedBag, align 8
  tail call void @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  invoke void @_ZN12method_dedup21group_similar_methodsERKSt6vectorIP9DexMethodSaIS2_EE(ptr dead_on_unwind nonnull writable sret(%class.UnorderedBag) align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %9 unwind label %15

9:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %10 = invoke ptr @_Z17UnorderedIterableI12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS3_EEETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESA_EEbE4typeELb1EEDaRSA_(ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %11 unwind label %17

11:                                               ; preds = %9
  store ptr %10, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %12 = call ptr @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEE17UnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  store ptr %12, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %13 = call ptr @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEE17UnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  store ptr %13, ptr %7, align 8
  %14 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt3setIP9DexMethod21dexmethods_comparatorSaIS3_EESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  br i1 %14, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %21, %11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  ret void

15:                                               ; preds = %3
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %30

17:                                               ; preds = %9
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %29

.lr.ph:                                           ; preds = %11, %21
  %19 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt3setIP9DexMethod21dexmethods_comparatorSaIS3_EESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  invoke void @_ZN12_GLOBAL__N_128get_duplicate_methods_simpleERKSt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEb(ptr dead_on_unwind nonnull writable sret(%class.UnorderedBag) align 8 %8, ptr noundef nonnull align 8 dereferenceable(48) %19, i1 noundef zeroext %2)
          to label %20 unwind label %24

20:                                               ; preds = %.lr.ph
  invoke void @_Z25insert_unordered_iterableI12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS3_EEES7_EvRT_RKT0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %21 unwind label %26

21:                                               ; preds = %20
  call void @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt3setIP9DexMethod21dexmethods_comparatorSaIS3_EESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %23 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt3setIP9DexMethod21dexmethods_comparatorSaIS3_EESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  br i1 %23, label %.lr.ph, label %._crit_edge

24:                                               ; preds = %.lr.ph
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %28

26:                                               ; preds = %20
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  br label %28

28:                                               ; preds = %26, %24
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 24, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %29

29:                                               ; preds = %28, %17
  %.pn.pn = phi { ptr, i32 } [ %.pn, %28 ], [ %18, %17 ]
  call void @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %30

30:                                               ; preds = %29, %15
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %29 ], [ %16, %15 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  call void @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN12UnorderedBagISt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEE17UnorderedIterable3endEv(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_cxxneIPSt3setIP9DexMethod21dexmethods_comparatorSaIS3_EESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(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(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt3setIP9DexMethod21dexmethods_comparatorSaIS3_EESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_128get_duplicate_methods_simpleERKSt3setIP9DexMethod21dexmethods_comparatorSaIS2_EEb(ptr dead_on_unwind noalias writable sret(%class.UnorderedBag) align 8, ptr noundef nonnull align 8 dereferenceable(48), i1 noundef zeroext) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt3setIP9DexMethod21dexmethods_comparatorSaIS3_EESt6vectorIS6_SaIS6_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)"}


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