; LLVM IR from facebook/redex :: opt/optimize_enums (EnumUpcastAnalysis)

; 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.cc_impl::ConcurrentContainerIterator.212" = type { ptr, i64, %"class.cc_impl::ConcurrentHashtableIterator.213" }
%"class.cc_impl::ConcurrentHashtableIterator.213" = type { ptr, i64, ptr }
%class.ConcurrentSet = type { %class.ConcurrentContainer.65 }
%class.ConcurrentContainer.65 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.66"] }
%"class.cc_impl::ConcurrentHashtable.66" = type { %"struct.std::atomic.67", %"struct.std::atomic.58", %"struct.std::atomic.60", %"struct.std::atomic.69" }
%"struct.std::atomic.67" = type { %"struct.std::__atomic_base.68" }
%"struct.std::__atomic_base.68" = type { ptr }
%"struct.std::atomic.58" = type { %"struct.std::__atomic_base.59" }
%"struct.std::__atomic_base.59" = type { i64 }
%"struct.std::atomic.60" = type { %"struct.std::__atomic_base.61" }
%"struct.std::__atomic_base.61" = type { i8 }
%"struct.std::atomic.69" = type { %"struct.std::__atomic_base.70" }
%"struct.std::__atomic_base.70" = type { ptr }
%class.anon.214 = type { ptr, ptr }
%"class.ConcurrentContainer<std::unordered_set<DexType *>, 83>::UnorderedIterable" = 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 nounwind uwtable
declare dso_local void @_ZN13ConcurrentSetIP7DexTypeSt4hashIS1_ESt8equal_toIS1_ELm83EEC2Ev(ptr noundef nonnull align 8 dereferenceable(2664)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN14redex_parallel19default_num_threadsEv() #2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_Z17UnorderedIterableI13ConcurrentSetIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ELm83EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESA_EEbE4typeELb1EEDaRSA_(ptr noundef nonnull align 8 dereferenceable(2664)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EE17UnorderedIterable5beginEv(ptr dead_on_unwind noalias writable sret(%"class.cc_impl::ConcurrentContainerIterator.212") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EE17UnorderedIterable3endEv(ptr dead_on_unwind noalias writable sret(%"class.cc_impl::ConcurrentContainerIterator.212") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cc_impl27ConcurrentContainerIteratorINS_19ConcurrentHashtableIP7DexTypeS3_St4hashIS3_ESt8equal_toIS3_EEELm83EEdeEv(ptr noundef nonnull align 8 dereferenceable(40)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EE5eraseERKS2_(ptr noundef nonnull align 8 dereferenceable(2664), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN7cc_impl27ConcurrentContainerIteratorINS_19ConcurrentHashtableIP7DexTypeS3_St4hashIS3_ESt8equal_toIS3_EEELm83EEppEv(ptr noundef nonnull align 8 dereferenceable(40)) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14optimize_enums30reject_enums_for_relaxed_initsERKSt6vectorIP8DexClassSaIS2_EEP13ConcurrentSetIP7DexTypeSt4hashIS9_ESt8equal_toIS9_ELm83EE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %class.ConcurrentSet, align 8
  %6 = alloca %class.anon.214, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.ConcurrentContainer<std::unordered_set<DexType *>, 83>::UnorderedIterable", align 8
  %11 = alloca %"class.cc_impl::ConcurrentContainerIterator.212", align 8
  %12 = alloca %"class.cc_impl::ConcurrentContainerIterator.212", align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2664, ptr %5) #4
  call void @_ZN13ConcurrentSetIP7DexTypeSt4hashIS1_ESt8equal_toIS1_ELm83EEC2Ev(ptr noundef nonnull align 8 dereferenceable(2664) %5) #4
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #4
  %15 = getelementptr inbounds %class.anon.214, ptr %6, i32 0, i32 0
  store ptr %4, ptr %15, align 8, !tbaa !5
  %16 = getelementptr inbounds %class.anon.214, ptr %6, i32 0, i32 1
  store ptr %5, ptr %16, align 8, !tbaa !5
  %17 = invoke noundef i64 @_ZN14redex_parallel19default_num_threadsEv()
          to label %18 unwind label %31

18:                                               ; preds = %2
  invoke void @"_ZN4walk8parallel4codeISt6vectorIP8DexClassSaIS4_EEZN14optimize_enums30reject_enums_for_relaxed_initsERKS6_P13ConcurrentSetIP7DexTypeSt4hashISC_ESt8equal_toISC_ELm83EEE3$_0EEvRKT_RKT0_m"(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef %17)
          to label %19 unwind label %31

19:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %20 = invoke ptr @_Z17UnorderedIterableI13ConcurrentSetIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ELm83EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESA_EEbE4typeELb1EEDaRSA_(ptr noundef nonnull align 8 dereferenceable(2664) %5)
          to label %21 unwind label %35

21:                                               ; preds = %19
  %22 = getelementptr inbounds %"class.ConcurrentContainer<std::unordered_set<DexType *>, 83>::UnorderedIterable", ptr %10, i32 0, i32 0
  store ptr %20, ptr %22, align 8
  store ptr %10, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #4
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EE17UnorderedIterable5beginEv(ptr dead_on_unwind writable sret(%"class.cc_impl::ConcurrentContainerIterator.212") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %24 unwind label %39

24:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #4
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EE17UnorderedIterable3endEv(ptr dead_on_unwind writable sret(%"class.cc_impl::ConcurrentContainerIterator.212") align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %26 unwind label %43

26:                                               ; preds = %24
  br label %27

27:                                               ; preds = %56, %26
  %28 = invoke noundef zeroext i1 @_ZNK7cc_impl27ConcurrentContainerIteratorINS_19ConcurrentHashtableIP7DexTypeS3_St4hashIS3_ESt8equal_toIS3_EEELm83EEneERKS9_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %29 unwind label %43

29:                                               ; preds = %27
  br i1 %28, label %47, label %30

30:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %64

31:                                               ; preds = %18, %2
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %7, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #4
  br label %65

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

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

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

47:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cc_impl27ConcurrentContainerIteratorINS_19ConcurrentHashtableIP7DexTypeS3_St4hashIS3_ESt8equal_toIS3_EEELm83EEdeEv(ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %49 unwind label %57

49:                                               ; preds = %47
  %50 = load ptr, ptr %48, align 8, !tbaa !5
  store ptr %50, ptr %13, align 8, !tbaa !5
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = invoke noundef i64 @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EE5eraseERKS2_(ptr noundef nonnull align 8 dereferenceable(2664) %51, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %53 unwind label %57

53:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %54

54:                                               ; preds = %53
  %55 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN7cc_impl27ConcurrentContainerIteratorINS_19ConcurrentHashtableIP7DexTypeS3_St4hashIS3_ESt8equal_toIS3_EEELm83EEppEv(ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %56 unwind label %43

56:                                               ; preds = %54
  br label %27

57:                                               ; preds = %49, %47
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %7, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %61

61:                                               ; preds = %57, %43
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #4
  br label %62

62:                                               ; preds = %61, %39
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %63

63:                                               ; preds = %62, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %65

64:                                               ; preds = %30
  call void @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EED2Ev(ptr noundef nonnull align 8 dereferenceable(2664) %5) #4
  call void @llvm.lifetime.end.p0(i64 2664, ptr %5) #4
  ret void

65:                                               ; preds = %63, %31
  call void @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EED2Ev(ptr noundef nonnull align 8 dereferenceable(2664) %5) #4
  call void @llvm.lifetime.end.p0(i64 2664, ptr %5) #4
  br label %66

66:                                               ; preds = %65
  %67 = load ptr, ptr %7, align 8
  %68 = load i32, ptr %8, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN4walk8parallel4codeISt6vectorIP8DexClassSaIS4_EEZN14optimize_enums30reject_enums_for_relaxed_initsERKS6_P13ConcurrentSetIP7DexTypeSt4hashISC_ESt8equal_toISC_ELm83EEE3$_0EEvRKT_RKT0_m"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #3 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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"}


; 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.cc_impl::ConcurrentContainerIterator.212" = type { ptr, i64, %"class.cc_impl::ConcurrentHashtableIterator.213" }
%"class.cc_impl::ConcurrentHashtableIterator.213" = type { ptr, i64, ptr }
%class.ConcurrentSet = type { %class.ConcurrentContainer.65 }
%class.ConcurrentContainer.65 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.66"] }
%"class.cc_impl::ConcurrentHashtable.66" = type { %"struct.std::atomic.67", %"struct.std::atomic.58", %"struct.std::atomic.60", %"struct.std::atomic.69" }
%"struct.std::atomic.67" = type { %"struct.std::__atomic_base.68" }
%"struct.std::__atomic_base.68" = type { ptr }
%"struct.std::atomic.58" = type { %"struct.std::__atomic_base.59" }
%"struct.std::__atomic_base.59" = type { i64 }
%"struct.std::atomic.60" = type { %"struct.std::__atomic_base.61" }
%"struct.std::__atomic_base.61" = type { i8 }
%"struct.std::atomic.69" = type { %"struct.std::__atomic_base.70" }
%"struct.std::__atomic_base.70" = type { ptr }
%class.anon.214 = type { ptr, ptr }
%"class.ConcurrentContainer<std::unordered_set<DexType *>, 83>::UnorderedIterable" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN14redex_parallel19default_num_threadsEv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_Z17UnorderedIterableI13ConcurrentSetIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ELm83EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESA_EEbE4typeELb1EEDaRSA_(ptr noundef nonnull align 8 dereferenceable(2664)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EE17UnorderedIterable5beginEv(ptr dead_on_unwind noalias writable sret(%"class.cc_impl::ConcurrentContainerIterator.212") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EE17UnorderedIterable3endEv(ptr dead_on_unwind noalias writable sret(%"class.cc_impl::ConcurrentContainerIterator.212") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EE5eraseERKS2_(ptr noundef nonnull align 8 dereferenceable(2664), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14optimize_enums30reject_enums_for_relaxed_initsERKSt6vectorIP8DexClassSaIS2_EEP13ConcurrentSetIP7DexTypeSt4hashIS9_ESt8equal_toIS9_ELm83EE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca %class.ConcurrentSet, align 8
  %5 = alloca %class.anon.214, align 8
  %6 = alloca %"class.ConcurrentContainer<std::unordered_set<DexType *>, 83>::UnorderedIterable", align 8
  %7 = alloca %"class.cc_impl::ConcurrentContainerIterator.212", align 8
  %8 = alloca %"class.cc_impl::ConcurrentContainerIterator.212", align 8
  %9 = alloca ptr, align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2664, ptr nonnull %4) #4
  call void @_ZN13ConcurrentSetIP7DexTypeSt4hashIS1_ESt8equal_toIS1_ELm83EEC2Ev(ptr noundef nonnull align 8 dereferenceable(2664) %4) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  store ptr %3, ptr %5, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %4, ptr %10, align 8, !tbaa !5
  %11 = invoke noundef i64 @_ZN14redex_parallel19default_num_threadsEv()
          to label %12 unwind label %20

12:                                               ; preds = %2
  invoke void @"_ZN4walk8parallel4codeISt6vectorIP8DexClassSaIS4_EEZN14optimize_enums30reject_enums_for_relaxed_initsERKS6_P13ConcurrentSetIP7DexTypeSt4hashISC_ESt8equal_toISC_ELm83EEE3$_0EEvRKT_RKT0_m"(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %11)
          to label %13 unwind label %20

13:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %14 = invoke ptr @_Z17UnorderedIterableI13ConcurrentSetIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ELm83EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESA_EEbE4typeELb1EEDaRSA_(ptr noundef nonnull align 8 dereferenceable(2664) %4)
          to label %15 unwind label %22

15:                                               ; preds = %13
  store ptr %14, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #4
  invoke void @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EE17UnorderedIterable5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.cc_impl::ConcurrentContainerIterator.212") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %16 unwind label %24

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #4
  invoke void @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EE17UnorderedIterable3endEv(ptr dead_on_unwind nonnull writable sret(%"class.cc_impl::ConcurrentContainerIterator.212") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %16, %32
  %17 = invoke noundef zeroext i1 @_ZNK7cc_impl27ConcurrentContainerIteratorINS_19ConcurrentHashtableIP7DexTypeS3_St4hashIS3_ESt8equal_toIS3_EEELm83EEneERKS9_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(40) %8)
          to label %18 unwind label %.loopexit

18:                                               ; preds = %.preheader
  br i1 %17, label %26, label %19

19:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EED2Ev(ptr noundef nonnull align 8 dereferenceable(2664) %4) #4
  call void @llvm.lifetime.end.p0(i64 2664, ptr nonnull %4) #4
  ret void

20:                                               ; preds = %12, %2
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %38

22:                                               ; preds = %13
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %38

24:                                               ; preds = %15
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %37

.loopexit:                                        ; preds = %.preheader, %32
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %36

.loopexit.split-lp:                               ; preds = %16
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %36

26:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cc_impl27ConcurrentContainerIteratorINS_19ConcurrentHashtableIP7DexTypeS3_St4hashIS3_ESt8equal_toIS3_EEELm83EEdeEv(ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %28 unwind label %34

28:                                               ; preds = %26
  %29 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %29, ptr %9, align 8, !tbaa !5
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = invoke noundef i64 @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EE5eraseERKS2_(ptr noundef nonnull align 8 dereferenceable(2664) %30, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %32 unwind label %34

32:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  %33 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN7cc_impl27ConcurrentContainerIteratorINS_19ConcurrentHashtableIP7DexTypeS3_St4hashIS3_ESt8equal_toIS3_EEELm83EEppEv(ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %.preheader unwind label %.loopexit

34:                                               ; preds = %28, %26
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br label %36

36:                                               ; preds = %.loopexit, %.loopexit.split-lp, %34
  %.pn = phi { ptr, i32 } [ %35, %34 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #4
  br label %37

37:                                               ; preds = %36, %24
  %.pn.pn = phi { ptr, i32 } [ %.pn, %36 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br label %38

38:                                               ; preds = %22, %37, %20
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %21, %20 ], [ %.pn.pn, %37 ], [ %23, %22 ]
  call void @_ZN19ConcurrentContainerISt13unordered_setIP7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaIS2_EELm83EED2Ev(ptr noundef nonnull align 8 dereferenceable(2664) %4) #4
  call void @llvm.lifetime.end.p0(i64 2664, ptr nonnull %4) #4
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN4walk8parallel4codeISt6vectorIP8DexClassSaIS4_EEZN14optimize_enums30reject_enums_for_relaxed_initsERKS6_P13ConcurrentSetIP7DexTypeSt4hashISC_ESt8equal_toISC_ELm83EEE3$_0EEvRKT_RKT0_m"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #3 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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"}


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