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

; 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.anon = type { ptr }
%"class.ConcurrentContainer<std::unordered_set<const DexMethod *>, 83>::UnorderedIterable" = type { ptr }
%"class.cc_impl::ConcurrentContainerIterator" = type { ptr, i64, %"class.cc_impl::ConcurrentHashtableIterator" }
%"class.cc_impl::ConcurrentHashtableIterator" = type { ptr, i64, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.optimize_enums::EnumAnalyzeGeneratedMethods" = type { %"struct.optimize_enums::Config", %class.ConcurrentSet.23, %class.ConcurrentSet.31 }
%"struct.optimize_enums::Config" = type { i32, i8, i8, %class.UnorderedSet, %class.InsertOnlyConcurrentMap, %class.ConcurrentSet }
%class.UnorderedSet = type { %"class.std::unordered_set" }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%class.InsertOnlyConcurrentMap = type { %class.ConcurrentContainer }
%class.ConcurrentContainer = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable"] }
%"class.cc_impl::ConcurrentHashtable" = type { %"struct.std::atomic", %"struct.std::atomic.9", %"struct.std::atomic.11", %"struct.std::atomic.13" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { ptr }
%"struct.std::atomic.9" = type { %"struct.std::__atomic_base.10" }
%"struct.std::__atomic_base.10" = type { i64 }
%"struct.std::atomic.11" = type { %"struct.std::__atomic_base.12" }
%"struct.std::__atomic_base.12" = type { i8 }
%"struct.std::atomic.13" = type { %"struct.std::__atomic_base.14" }
%"struct.std::__atomic_base.14" = type { ptr }
%class.ConcurrentSet = type { %class.ConcurrentContainer.16 }
%class.ConcurrentContainer.16 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.17"] }
%"class.cc_impl::ConcurrentHashtable.17" = type { %"struct.std::atomic.18", %"struct.std::atomic.9", %"struct.std::atomic.11", %"struct.std::atomic.20" }
%"struct.std::atomic.18" = type { %"struct.std::__atomic_base.19" }
%"struct.std::__atomic_base.19" = type { ptr }
%"struct.std::atomic.20" = type { %"struct.std::__atomic_base.21" }
%"struct.std::__atomic_base.21" = type { ptr }
%class.ConcurrentSet.23 = type { %class.ConcurrentContainer.24 }
%class.ConcurrentContainer.24 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.25"] }
%"class.cc_impl::ConcurrentHashtable.25" = type { %"struct.std::atomic.26", %"struct.std::atomic.9", %"struct.std::atomic.11", %"struct.std::atomic.28" }
%"struct.std::atomic.26" = type { %"struct.std::__atomic_base.27" }
%"struct.std::__atomic_base.27" = type { ptr }
%"struct.std::atomic.28" = type { %"struct.std::__atomic_base.29" }
%"struct.std::__atomic_base.29" = type { ptr }
%class.ConcurrentSet.31 = type { %class.ConcurrentContainer.32 }
%class.ConcurrentContainer.32 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.33"] }
%"class.cc_impl::ConcurrentHashtable.33" = type { %"struct.std::atomic.34", %"struct.std::atomic.9", %"struct.std::atomic.11", %"struct.std::atomic.36" }
%"struct.std::atomic.34" = type { %"struct.std::__atomic_base.35" }
%"struct.std::__atomic_base.35" = type { ptr }
%"struct.std::atomic.36" = type { %"struct.std::__atomic_base.37" }
%"struct.std::__atomic_base.37" = type { ptr }

@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [99 x i8], align 1
@__PRETTY_FUNCTION__._ZN14optimize_enums27EnumAnalyzeGeneratedMethods14transform_codeERKSt6vectorIP8DexClassSaIS3_EE = external hidden unnamed_addr constant [82 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1

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: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN14optimize_enums27EnumAnalyzeGeneratedMethods14transform_codeERKSt6vectorIP8DexClassSaIS3_EE(ptr noundef nonnull align 8 dereferenceable(10720) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %class.anon, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.ConcurrentContainer<std::unordered_set<const DexMethod *>, 83>::UnorderedIterable", align 8
  %9 = alloca %"class.cc_impl::ConcurrentContainerIterator", align 8
  %10 = alloca %"class.cc_impl::ConcurrentContainerIterator", align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %3, align 8
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %20 = getelementptr inbounds %class.anon, ptr %5, i32 0, i32 0
  store ptr %18, ptr %20, align 8, !tbaa !9
  %21 = call noundef i64 @_ZN14redex_parallel19default_num_threadsEv()
  call void @"_ZN4walk8parallel4codeISt6vectorIP8DexClassSaIS4_EEZN14optimize_enums27EnumAnalyzeGeneratedMethods14transform_codeERKS6_E3$_0EEvRKT_RKT0_m"(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 0, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %22 = getelementptr inbounds %"class.optimize_enums::EnumAnalyzeGeneratedMethods", ptr %18, i32 0, i32 1
  %23 = call ptr @_Z17UnorderedIterableI13ConcurrentSetIPK9DexMethodSt4hashIS3_ESt8equal_toIS3_ELm83EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESB_EEbE4typeELb1EEDaRSB_(ptr noundef nonnull align 8 dereferenceable(2664) %22)
  %24 = getelementptr inbounds %"class.ConcurrentContainer<std::unordered_set<const DexMethod *>, 83>::UnorderedIterable", ptr %8, i32 0, i32 0
  store ptr %23, ptr %24, align 8
  store ptr %8, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #6
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN19ConcurrentContainerISt13unordered_setIPK9DexMethodSt4hashIS3_ESt8equal_toIS3_ESaIS3_EELm83EE17UnorderedIterable5beginEv(ptr dead_on_unwind writable sret(%"class.cc_impl::ConcurrentContainerIterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %25)
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #6
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN19ConcurrentContainerISt13unordered_setIPK9DexMethodSt4hashIS3_ESt8equal_toIS3_ESaIS3_EELm83EE17UnorderedIterable3endEv(ptr dead_on_unwind writable sret(%"class.cc_impl::ConcurrentContainerIterator") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %26)
  br label %27

27:                                               ; preds = %73, %2
  %28 = call noundef zeroext i1 @_ZNK7cc_impl27ConcurrentContainerIteratorINS_19ConcurrentHashtableIPK9DexMethodS4_St4hashIS4_ESt8equal_toIS4_EEELm83EEneERKSA_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(40) %10)
  br i1 %28, label %30, label %29

29:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %75

30:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cc_impl27ConcurrentContainerIteratorINS_19ConcurrentHashtableIPK9DexMethodS4_St4hashIS4_ESt8equal_toIS4_EEELm83EEdeEv(ptr noundef nonnull align 8 dereferenceable(40) %9)
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  store ptr %32, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = call noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26) %33)
  store ptr %34, ptr %12, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.optimize_enums::EnumAnalyzeGeneratedMethods", ptr %18, i32 0, i32 2
  %36 = call noundef i64 @_ZNK19ConcurrentContainerISt13unordered_setIPK7DexTypeSt4hashIS3_ESt8equal_toIS3_ESaIS3_EELm83EE12count_unsafeERKS3_(ptr noundef nonnull align 8 dereferenceable(2664) %35, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %37 = icmp ne i64 %36, 0
  br i1 %37, label %38, label %72

38:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  %40 = call noundef ptr @_Z10type_classPK7DexType(ptr noundef %39)
  store ptr %40, ptr %13, align 8, !tbaa !5
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %44

43:                                               ; preds = %38
  br label %46

44:                                               ; preds = %38
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.8, ptr noundef @.str.9, i32 noundef 35, ptr noundef @__PRETTY_FUNCTION__._ZN14optimize_enums27EnumAnalyzeGeneratedMethods14transform_codeERKSt6vectorIP8DexClassSaIS3_EE, i32 noundef 2, ptr noundef @.str.10) #7
  unreachable

45:                                               ; No predecessors!
  br label %46

46:                                               ; preds = %45, %43
  br label %47

47:                                               ; preds = %46
  %48 = call noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 40, i32 noundef 4)
  br i1 %48, label %49, label %65

49:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_Z4showB5cxx11PK12DexMethodRef(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef %50)
  %51 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_Z4showI8DexClassRSoENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef %52)
          to label %53 unwind label %56

53:                                               ; preds = %49
  %54 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 40, i32 noundef 4, i1 noundef zeroext false, ptr noundef @.str.11, ptr noundef %51, ptr noundef %54)
          to label %55 unwind label %60

55:                                               ; preds = %53
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %65

56:                                               ; preds = %49
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %16, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %17, align 4
  br label %64

60:                                               ; preds = %53
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %16, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %64

64:                                               ; preds = %60, %56
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %77

65:                                               ; preds = %55, %47
  br label %66

66:                                               ; preds = %65
  br label %67

67:                                               ; preds = %66
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN8DexClass13remove_methodEPK9DexMethod(ptr noundef nonnull align 8 dereferenceable(176) %68, ptr noundef %69)
  %70 = load i64, ptr %6, align 8, !tbaa !11
  %71 = add i64 %70, 1
  store i64 %71, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %72

72:                                               ; preds = %67, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %73

73:                                               ; preds = %72
  %74 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN7cc_impl27ConcurrentContainerIteratorINS_19ConcurrentHashtableIPK9DexMethodS4_St4hashIS4_ESt8equal_toIS4_EEELm83EEppEv(ptr noundef nonnull align 8 dereferenceable(40) %9)
  br label %27

75:                                               ; preds = %29
  %76 = load i64, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  ret i64 %76

77:                                               ; preds = %64
  %78 = load ptr, ptr %16, align 8
  %79 = load i32, ptr %17, align 4
  %80 = insertvalue { ptr, i32 } poison, ptr %78, 0
  %81 = insertvalue { ptr, i32 } %80, i32 %79, 1
  resume { ptr, i32 } %81
}

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN4walk8parallel4codeISt6vectorIP8DexClassSaIS4_EEZN14optimize_enums27EnumAnalyzeGeneratedMethods14transform_codeERKS6_E3$_0EEvRKT_RKT0_m"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2

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

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

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

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

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

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

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

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

declare noundef ptr @_Z10type_classPK7DexType(ptr noundef) #4

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

declare noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef, i32 noundef) #4

declare void @_Z5trace11TraceModuleibPKcz(i32 noundef, i32 noundef, i1 noundef zeroext, ptr noundef, ...) #4

declare void @_Z4showB5cxx11PK12DexMethodRef(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4showI8DexClassRSoENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) #2

declare void @_ZN8DexClass13remove_methodEPK9DexMethod(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef) #4

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { 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"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSZN14optimize_enums27EnumAnalyzeGeneratedMethods14transform_codeERKSt6vectorIP8DexClassSaIS3_EEE3$_0", !6, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.anon = type { ptr }
%"class.ConcurrentContainer<std::unordered_set<const DexMethod *>, 83>::UnorderedIterable" = type { ptr }
%"class.cc_impl::ConcurrentContainerIterator" = type { ptr, i64, %"class.cc_impl::ConcurrentHashtableIterator" }
%"class.cc_impl::ConcurrentHashtableIterator" = type { ptr, i64, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [99 x i8], align 1
@__PRETTY_FUNCTION__._ZN14optimize_enums27EnumAnalyzeGeneratedMethods14transform_codeERKSt6vectorIP8DexClassSaIS3_EE = external hidden unnamed_addr constant [82 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1

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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN14optimize_enums27EnumAnalyzeGeneratedMethods14transform_codeERKSt6vectorIP8DexClassSaIS3_EE(ptr noundef nonnull align 8 dereferenceable(10720) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.anon, align 8
  %4 = alloca %"class.ConcurrentContainer<std::unordered_set<const DexMethod *>, 83>::UnorderedIterable", align 8
  %5 = alloca %"class.cc_impl::ConcurrentContainerIterator", align 8
  %6 = alloca %"class.cc_impl::ConcurrentContainerIterator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store ptr %0, ptr %3, align 8, !tbaa !5
  %10 = tail call noundef i64 @_ZN14redex_parallel19default_num_threadsEv()
  call void @"_ZN4walk8parallel4codeISt6vectorIP8DexClassSaIS4_EEZN14optimize_enums27EnumAnalyzeGeneratedMethods14transform_codeERKS6_E3$_0EEvRKT_RKT0_m"(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %11 = getelementptr inbounds i8, ptr %0, i64 5392
  %12 = call ptr @_Z17UnorderedIterableI13ConcurrentSetIPK9DexMethodSt4hashIS3_ESt8equal_toIS3_ELm83EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESB_EEbE4typeELb1EEDaRSB_(ptr noundef nonnull align 8 dereferenceable(2664) %11)
  store ptr %12, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @_ZN19ConcurrentContainerISt13unordered_setIPK9DexMethodSt4hashIS3_ESt8equal_toIS3_ESaIS3_EELm83EE17UnorderedIterable5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.cc_impl::ConcurrentContainerIterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #6
  call void @_ZN19ConcurrentContainerISt13unordered_setIPK9DexMethodSt4hashIS3_ESt8equal_toIS3_ESaIS3_EELm83EE17UnorderedIterable3endEv(ptr dead_on_unwind nonnull writable sret(%"class.cc_impl::ConcurrentContainerIterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %13 = call noundef zeroext i1 @_ZNK7cc_impl27ConcurrentContainerIteratorINS_19ConcurrentHashtableIPK9DexMethodS4_St4hashIS4_ESt8equal_toIS4_EEELm83EEneERKSA_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(40) %6)
  br i1 %13, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %14 = getelementptr inbounds i8, ptr %0, i64 8056
  br label %15

._crit_edge:                                      ; preds = %38, %2
  %.014.lcssa = phi i64 [ 0, %2 ], [ %.1, %38 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  ret i64 %.014.lcssa

15:                                               ; preds = %.lr.ph, %38
  %.01421 = phi i64 [ 0, %.lr.ph ], [ %.1, %38 ]
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cc_impl27ConcurrentContainerIteratorINS_19ConcurrentHashtableIPK9DexMethodS4_St4hashIS4_ESt8equal_toIS4_EEELm83EEdeEv(ptr noundef nonnull align 8 dereferenceable(40) %5)
  %17 = load ptr, ptr %16, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %18 = call noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26) %17)
  store ptr %18, ptr %7, align 8, !tbaa !10
  %19 = call noundef i64 @_ZNK19ConcurrentContainerISt13unordered_setIPK7DexTypeSt4hashIS3_ESt8equal_toIS3_ESaIS3_EELm83EE12count_unsafeERKS3_(ptr noundef nonnull align 8 dereferenceable(2664) %14, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %.not = icmp eq i64 %19, 0
  br i1 %.not, label %38, label %20

20:                                               ; preds = %15
  %21 = load ptr, ptr %7, align 8, !tbaa !10
  %22 = call noundef ptr @_Z10type_classPK7DexType(ptr noundef %21)
  %.not16 = icmp eq ptr %22, null
  br i1 %.not16, label %23, label %24

23:                                               ; preds = %20
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.9, i32 noundef 35, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14optimize_enums27EnumAnalyzeGeneratedMethods14transform_codeERKSt6vectorIP8DexClassSaIS3_EE, i32 noundef 2, ptr noundef nonnull @.str.10) #7
  unreachable

24:                                               ; preds = %20
  %25 = call noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 40, i32 noundef 4)
  br i1 %25, label %26, label %36

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  call void @_Z4showB5cxx11PK12DexMethodRef(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull %17)
  %27 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  invoke void @_Z4showI8DexClassRSoENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull %22)
          to label %28 unwind label %31

28:                                               ; preds = %26
  %29 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 40, i32 noundef 4, i1 noundef zeroext false, ptr noundef nonnull @.str.11, ptr noundef %27, ptr noundef %29)
          to label %30 unwind label %33

30:                                               ; preds = %28
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %36

31:                                               ; preds = %26
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %35

33:                                               ; preds = %28
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %35

35:                                               ; preds = %33, %31
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn

36:                                               ; preds = %30, %24
  call void @_ZN8DexClass13remove_methodEPK9DexMethod(ptr noundef nonnull align 8 dereferenceable(176) %22, ptr noundef nonnull %17)
  %37 = add i64 %.01421, 1
  br label %38

38:                                               ; preds = %36, %15
  %.1 = phi i64 [ %37, %36 ], [ %.01421, %15 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %39 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN7cc_impl27ConcurrentContainerIteratorINS_19ConcurrentHashtableIPK9DexMethodS4_St4hashIS4_ESt8equal_toIS4_EEELm83EEppEv(ptr noundef nonnull align 8 dereferenceable(40) %5)
  %40 = call noundef zeroext i1 @_ZNK7cc_impl27ConcurrentContainerIteratorINS_19ConcurrentHashtableIPK9DexMethodS4_St4hashIS4_ESt8equal_toIS4_EEELm83EEneERKSA_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(40) %6)
  br i1 %40, label %15, label %._crit_edge
}

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN4walk8parallel4codeISt6vectorIP8DexClassSaIS4_EEZN14optimize_enums27EnumAnalyzeGeneratedMethods14transform_codeERKS6_E3$_0EEvRKT_RKT0_m"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

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

; 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 #5

declare noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @_Z5trace11TraceModuleibPKcz(i32 noundef, i32 noundef, i1 noundef zeroext, ptr noundef, ...) local_unnamed_addr #4

declare void @_Z4showB5cxx11PK12DexMethodRef(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4showI8DexClassRSoENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) local_unnamed_addr #2

declare void @_ZN8DexClass13remove_methodEPK9DexMethod(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef) local_unnamed_addr #4

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { 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, !7, i64 0}
!6 = !{!"_ZTSZN14optimize_enums27EnumAnalyzeGeneratedMethods14transform_codeERKSt6vectorIP8DexClassSaIS3_EEE3$_0", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}


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