; LLVM IR from facebook/redex :: libredex/MethodSimilarityGreedyOrderer.ll (ZN29MethodSimilarityGreedyOrderer8get_nextEv)

; 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.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.boost::optional" = type { %"class.boost::optional_detail::tc_optional_base" }
%"class.boost::optional_detail::tc_optional_base" = type { i8, i16 }
%"struct.boost::none_t" = type { i8 }
%"struct.std::_Rb_tree_iterator.146" = type { ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%class.MethodSimilarityGreedyOrderer = type { %"class.std::map", %class.UnorderedMap, %class.UnorderedMap.39, %"class.std::vector.61", %"class.boost::optional", %class.UnorderedMap.66 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned short, std::pair<const unsigned short, DexMethod *>, std::_Select1st<std::pair<const unsigned short, DexMethod *>>, std::less<unsigned short>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned short, std::pair<const unsigned short, DexMethod *>, std::_Select1st<std::pair<const unsigned short, DexMethod *>>, std::less<unsigned short>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%class.UnorderedMap = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable.20" }
%"class.std::_Hashtable.20" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%class.UnorderedMap.39 = type { %"class.std::unordered_map.41" }
%"class.std::unordered_map.41" = type { %"class.std::_Hashtable.42" }
%"class.std::_Hashtable.42" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.61" = type { %"struct.std::_Vector_base.62" }
%"struct.std::_Vector_base.62" = type { %"struct.std::_Vector_base<std::map<int, boost::dynamic_bitset<>, std::greater<int>>, std::allocator<std::map<int, boost::dynamic_bitset<>, std::greater<int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::map<int, boost::dynamic_bitset<>, std::greater<int>>, std::allocator<std::map<int, boost::dynamic_bitset<>, std::greater<int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::map<int, boost::dynamic_bitset<>, std::greater<int>>, std::allocator<std::map<int, boost::dynamic_bitset<>, std::greater<int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::map<int, boost::dynamic_bitset<>, std::greater<int>>, std::allocator<std::map<int, boost::dynamic_bitset<>, std::greater<int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.UnorderedMap.66 = type { %"class.std::unordered_map.68" }
%"class.std::unordered_map.68" = type { %"class.std::_Hashtable.69" }
%"class.std::_Hashtable.69" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::pair.154" = type { i16, ptr }

@.str.9 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [43 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: 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @_ZN29MethodSimilarityGreedyOrderer8get_nextEv(ptr noundef nonnull align 8 dereferenceable(248) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.boost::optional", align 2
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.boost::none_t", align 1
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.std::_Rb_tree_iterator.146", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator.146", align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i16, align 2
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca i16, align 2
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i16, align 2
  %19 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8
  %22 = getelementptr inbounds %class.MethodSimilarityGreedyOrderer, ptr %21, i32 0, i32 0
  %23 = call noundef zeroext i1 @_ZNKSt3mapItP9DexMethodSt4lessItESaISt4pairIKtS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %22) #5
  br i1 %23, label %24, label %25

24:                                               ; preds = %1
  call void @_ZN5boost8optionalItEC2Ev(ptr noundef nonnull align 2 dereferenceable(4) %2) #5
  br label %118

25:                                               ; preds = %1
  %26 = getelementptr inbounds %class.MethodSimilarityGreedyOrderer, ptr %21, i32 0, i32 4
  %27 = call noundef zeroext i1 @_ZN5boostneItEEbRKNS_8optionalIT_EENS_6none_tE(ptr noundef nonnull align 2 dereferenceable(4) %26) #5
  br i1 %27, label %28, label %100

28:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %29 = getelementptr inbounds %class.MethodSimilarityGreedyOrderer, ptr %21, i32 0, i32 3
  %30 = getelementptr inbounds %class.MethodSimilarityGreedyOrderer, ptr %21, i32 0, i32 4
  %31 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNR5boost8optionalItEdeEv(ptr noundef nonnull align 2 dereferenceable(4) %30)
  %32 = load i16, ptr %31, align 2, !tbaa !9
  %33 = zext i16 %32 to i64
  %34 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIiN5boost14dynamic_bitsetImSaImEEESt7greaterIiESaISt4pairIKiS4_EEESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %33) #5
  store ptr %34, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = call ptr @_ZNSt3mapIiN5boost14dynamic_bitsetImSaImEEESt7greaterIiESaISt4pairIKiS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %35) #5
  %37 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.146", ptr %6, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = call ptr @_ZNSt3mapIiN5boost14dynamic_bitsetImSaImEEESt7greaterIiESaISt4pairIKiS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %38) #5
  %40 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.146", ptr %7, i32 0, i32 0
  store ptr %39, ptr %40, align 8
  br label %41

41:                                               ; preds = %95, %28
  %42 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN5boost14dynamic_bitsetImSaImEEEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %42, label %44, label %43

43:                                               ; preds = %41
  store i32 2, ptr %8, align 4
  br label %97

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %45 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiN5boost14dynamic_bitsetImSaImEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  store ptr %45, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EKiN5boost14dynamic_bitsetImSaImEEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS9_(ptr noundef nonnull align 8 dereferenceable(40) %46) #5
  store ptr %47, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm1EKiN5boost14dynamic_bitsetImSaImEEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS9_(ptr noundef nonnull align 8 dereferenceable(40) %48) #5
  store ptr %49, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = call noundef i64 @_ZNK5boost14dynamic_bitsetImSaImEE10find_firstEv(ptr noundef nonnull align 8 dereferenceable(32) %50)
  store i64 %51, ptr %12, align 8, !tbaa !11
  br label %52

52:                                               ; preds = %85, %44
  %53 = load i64, ptr %12, align 8, !tbaa !11
  %54 = icmp ne i64 %53, -1
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  store i32 4, ptr %8, align 4
  br label %89

56:                                               ; preds = %52
  %57 = getelementptr inbounds %class.MethodSimilarityGreedyOrderer, ptr %21, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #5
  %58 = load i64, ptr %12, align 8, !tbaa !11
  %59 = trunc i64 %58 to i16
  store i16 %59, ptr %13, align 2, !tbaa !9
  %60 = call noundef i64 @_ZNKSt3mapItP9DexMethodSt4lessItESaISt4pairIKtS1_EEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(48) %57, ptr noundef nonnull align 2 dereferenceable(2) %13)
  %61 = icmp ne i64 %60, 0
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #5
  br i1 %61, label %62, label %84

62:                                               ; preds = %56
  br label %63

63:                                               ; preds = %62
  %64 = call noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 92, i32 noundef 3)
  br i1 %64, label %65, label %79

65:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #5
  %66 = getelementptr inbounds %class.MethodSimilarityGreedyOrderer, ptr %21, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #5
  %67 = load i64, ptr %12, align 8, !tbaa !11
  %68 = trunc i64 %67 to i16
  store i16 %68, ptr %15, align 2, !tbaa !9
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapItP9DexMethodSt4lessItESaISt4pairIKtS1_EEEixEOt(ptr noundef nonnull align 8 dereferenceable(48) %66, ptr noundef nonnull align 2 dereferenceable(2) %15)
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  call void @_Z4showB5cxx11PK12DexMethodRef(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef %70)
  %71 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = load i32, ptr %72, align 4, !tbaa !13
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 92, i32 noundef 3, i1 noundef zeroext false, ptr noundef @.str.9, ptr noundef %71, i32 noundef %73)
          to label %74 unwind label %75

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

75:                                               ; preds = %65
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %16, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %121

79:                                               ; preds = %74, %63
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 2, ptr %18) #5
  %82 = load i64, ptr %12, align 8, !tbaa !11
  %83 = trunc i64 %82 to i16
  store i16 %83, ptr %18, align 2, !tbaa !9
  call void @_ZN5boost8optionalItEC2EOt(ptr noundef nonnull align 2 dereferenceable(4) %2, ptr noundef nonnull align 2 dereferenceable(2) %18)
  call void @llvm.lifetime.end.p0(i64 2, ptr %18) #5
  store i32 1, ptr %8, align 4
  br label %89

84:                                               ; preds = %56
  br label %85

85:                                               ; preds = %84
  %86 = load ptr, ptr %11, align 8, !tbaa !5
  %87 = load i64, ptr %12, align 8, !tbaa !11
  %88 = call noundef i64 @_ZNK5boost14dynamic_bitsetImSaImEE9find_nextEm(ptr noundef nonnull align 8 dereferenceable(32) %86, i64 noundef %87)
  store i64 %88, ptr %12, align 8, !tbaa !11
  br label %52, !llvm.loop !15

89:                                               ; preds = %81, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %90 = load i32, ptr %8, align 4
  switch i32 %90, label %92 [
    i32 4, label %91
  ]

91:                                               ; preds = %89
  store i32 0, ptr %8, align 4
  br label %92

92:                                               ; preds = %91, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %93 = load i32, ptr %8, align 4
  switch i32 %93, label %97 [
    i32 0, label %94
  ]

94:                                               ; preds = %92
  br label %95

95:                                               ; preds = %94
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiN5boost14dynamic_bitsetImSaImEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br label %41

97:                                               ; preds = %92, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  %98 = load i32, ptr %8, align 4
  switch i32 %98, label %126 [
    i32 2, label %99
    i32 1, label %118
  ]

99:                                               ; preds = %97
  br label %100

100:                                              ; preds = %99, %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %101 = getelementptr inbounds %class.MethodSimilarityGreedyOrderer, ptr %21, i32 0, i32 0
  %102 = call ptr @_ZNSt3mapItP9DexMethodSt4lessItESaISt4pairIKtS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %101) #5
  %103 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %19, i32 0, i32 0
  store ptr %102, ptr %103, align 8
  %104 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKtP9DexMethodEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  %105 = getelementptr inbounds %"struct.std::pair.154", ptr %104, i32 0, i32 0
  call void @_ZN5boost8optionalItEC2ERKt(ptr noundef nonnull align 2 dereferenceable(4) %2, ptr noundef nonnull align 2 dereferenceable(2) %105)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %106

106:                                              ; preds = %100
  %107 = call noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 92, i32 noundef 3)
  br i1 %107, label %108, label %116

108:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #5
  %109 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNR5boost8optionalItEdeEv(ptr noundef nonnull align 2 dereferenceable(4) %2)
  call void @_Z4showIRtRSovENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEOT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 2 dereferenceable(2) %109)
  %110 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 92, i32 noundef 3, i1 noundef zeroext false, ptr noundef @.str.10, ptr noundef %110)
          to label %111 unwind label %112

111:                                              ; preds = %108
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #5
  br label %116

112:                                              ; preds = %108
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %16, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #5
  br label %121

116:                                              ; preds = %111, %106
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117, %97, %24
  %119 = getelementptr inbounds %"class.boost::optional", ptr %2, i32 0, i32 0
  %120 = load i32, ptr %119, align 2
  ret i32 %120

121:                                              ; preds = %112, %75
  %122 = load ptr, ptr %16, align 8
  %123 = load i32, ptr %17, align 4
  %124 = insertvalue { ptr, i32 } poison, ptr %122, 0
  %125 = insertvalue { ptr, i32 } %124, i32 %123, 1
  resume { ptr, i32 } %125

126:                                              ; preds = %97
  unreachable
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boostneItEEbRKNS_8optionalIT_EENS_6none_tE(ptr noundef nonnull align 2 dereferenceable(4)) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZNR5boost8optionalItEdeEv(ptr noundef nonnull align 2 dereferenceable(4)) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN5boost14dynamic_bitsetImSaImEEEEES9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EKiN5boost14dynamic_bitsetImSaImEEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS9_(ptr noundef nonnull align 8 dereferenceable(40)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm1EKiN5boost14dynamic_bitsetImSaImEEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS9_(ptr noundef nonnull align 8 dereferenceable(40)) #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost8optionalItEC2EOt(ptr noundef nonnull align 2 dereferenceable(4), ptr noundef nonnull align 2 dereferenceable(2)) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5boost8optionalItEC2ERKt(ptr noundef nonnull align 2 dereferenceable(4), ptr noundef nonnull align 2 dereferenceable(2)) unnamed_addr #1 align 2

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

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 = { "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 = { 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 #5 = { 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 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; 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.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.boost::optional" = type { %"class.boost::optional_detail::tc_optional_base" }
%"class.boost::optional_detail::tc_optional_base" = type { i8, i16 }
%"struct.std::_Rb_tree_iterator.146" = type { ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }

@.str.9 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [43 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 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; 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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @_ZN29MethodSimilarityGreedyOrderer8get_nextEv(ptr noundef nonnull align 8 dereferenceable(248) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.boost::optional", align 4
  %3 = alloca %"struct.std::_Rb_tree_iterator.146", align 8
  %4 = alloca %"struct.std::_Rb_tree_iterator.146", align 8
  %5 = alloca i16, align 2
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca i16, align 2
  %8 = alloca i16, align 2
  %9 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = tail call noundef zeroext i1 @_ZNKSt3mapItP9DexMethodSt4lessItESaISt4pairIKtS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  br i1 %11, label %12, label %13

12:                                               ; preds = %1
  call void @_ZN5boost8optionalItEC2Ev(ptr noundef nonnull align 2 dereferenceable(4) %2) #5
  br label %56

13:                                               ; preds = %1
  %14 = getelementptr inbounds i8, ptr %0, i64 184
  %15 = tail call noundef zeroext i1 @_ZN5boostneItEEbRKNS_8optionalIT_EENS_6none_tE(ptr noundef nonnull align 2 dereferenceable(4) %14) #5
  br i1 %15, label %16, label %46

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %0, i64 160
  %18 = tail call noundef nonnull align 2 dereferenceable(2) ptr @_ZNR5boost8optionalItEdeEv(ptr noundef nonnull align 2 dereferenceable(4) %14)
  %19 = load i16, ptr %18, align 2, !tbaa !5
  %20 = zext i16 %19 to i64
  %21 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3mapIiN5boost14dynamic_bitsetImSaImEEESt7greaterIiESaISt4pairIKiS4_EEESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %22 = tail call ptr @_ZNSt3mapIiN5boost14dynamic_bitsetImSaImEEESt7greaterIiESaISt4pairIKiS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %21) #5
  store ptr %22, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %23 = tail call ptr @_ZNSt3mapIiN5boost14dynamic_bitsetImSaImEEESt7greaterIiESaISt4pairIKiS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %21) #5
  store ptr %23, ptr %4, align 8
  %24 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN5boost14dynamic_bitsetImSaImEEEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %24, label %.lr.ph32, label %.thread24

.thread24:                                        ; preds = %._crit_edge, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %46

.lr.ph32:                                         ; preds = %16, %._crit_edge
  %25 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiN5boost14dynamic_bitsetImSaImEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EKiN5boost14dynamic_bitsetImSaImEEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS9_(ptr noundef nonnull align 8 dereferenceable(40) %25) #5
  %27 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm1EKiN5boost14dynamic_bitsetImSaImEEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS9_(ptr noundef nonnull align 8 dereferenceable(40) %25) #5
  %28 = call noundef i64 @_ZNK5boost14dynamic_bitsetImSaImEE10find_firstEv(ptr noundef nonnull align 8 dereferenceable(32) %27)
  %.not29 = icmp eq i64 %28, -1
  br i1 %.not29, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph32, %41
  %.01930 = phi i64 [ %42, %41 ], [ %28, %.lr.ph32 ]
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %5) #5
  %29 = trunc i64 %.01930 to i16
  store i16 %29, ptr %5, align 2, !tbaa !5
  %30 = call noundef i64 @_ZNKSt3mapItP9DexMethodSt4lessItESaISt4pairIKtS1_EEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 2 dereferenceable(2) %5)
  %.not21 = icmp eq i64 %30, 0
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %5) #5
  br i1 %.not21, label %41, label %31

31:                                               ; preds = %.lr.ph
  %32 = call noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 92, i32 noundef 3)
  br i1 %32, label %33, label %45

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %7) #5
  store i16 %29, ptr %7, align 2, !tbaa !5
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapItP9DexMethodSt4lessItESaISt4pairIKtS1_EEEixEOt(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 2 dereferenceable(2) %7)
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  call void @_Z4showB5cxx11PK12DexMethodRef(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef %35)
  %36 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  %37 = load i32, ptr %26, align 4, !tbaa !11
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 92, i32 noundef 3, i1 noundef zeroext false, ptr noundef nonnull @.str.9, ptr noundef %36, i32 noundef %37)
          to label %38 unwind label %39

38:                                               ; preds = %33
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  br label %45

39:                                               ; preds = %33
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %58

41:                                               ; preds = %.lr.ph
  %42 = call noundef i64 @_ZNK5boost14dynamic_bitsetImSaImEE9find_nextEm(ptr noundef nonnull align 8 dereferenceable(32) %27, i64 noundef %.01930)
  %.not = icmp eq i64 %42, -1
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %41, %.lr.ph32
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiN5boost14dynamic_bitsetImSaImEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %44 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN5boost14dynamic_bitsetImSaImEEEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %44, label %.lr.ph32, label %.thread24

45:                                               ; preds = %38, %31
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %8) #5
  store i16 %29, ptr %8, align 2, !tbaa !5
  call void @_ZN5boost8optionalItEC2EOt(ptr noundef nonnull align 2 dereferenceable(4) %2, ptr noundef nonnull align 2 dereferenceable(2) %8)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %56

46:                                               ; preds = %.thread24, %13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %47 = call ptr @_ZNSt3mapItP9DexMethodSt4lessItESaISt4pairIKtS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  store ptr %47, ptr %9, align 8
  %48 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKtP9DexMethodEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @_ZN5boost8optionalItEC2ERKt(ptr noundef nonnull align 2 dereferenceable(4) %2, ptr noundef nonnull align 2 dereferenceable(2) %48)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  %49 = call noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 92, i32 noundef 3)
  br i1 %49, label %50, label %56

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  %51 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNR5boost8optionalItEdeEv(ptr noundef nonnull align 2 dereferenceable(4) %2)
  call void @_Z4showIRtRSovENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEOT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 2 dereferenceable(2) %51)
  %52 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 92, i32 noundef 3, i1 noundef zeroext false, ptr noundef nonnull @.str.10, ptr noundef %52)
          to label %53 unwind label %54

53:                                               ; preds = %50
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %56

54:                                               ; preds = %50
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %58

56:                                               ; preds = %45, %53, %46, %12
  %57 = load i32, ptr %2, align 4
  ret i32 %57

58:                                               ; preds = %54, %39
  %.pn = phi { ptr, i32 } [ %55, %54 ], [ %40, %39 ]
  resume { ptr, i32 } %.pn
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boostneItEEbRKNS_8optionalIT_EENS_6none_tE(ptr noundef nonnull align 2 dereferenceable(4)) local_unnamed_addr #4

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiN5boost14dynamic_bitsetImSaImEEEEES9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EKiN5boost14dynamic_bitsetImSaImEEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS9_(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm1EKiN5boost14dynamic_bitsetImSaImEEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS9_(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost8optionalItEC2EOt(ptr noundef nonnull align 2 dereferenceable(4), ptr noundef nonnull align 2 dereferenceable(2)) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5boost8optionalItEC2ERKt(ptr noundef nonnull align 2 dereferenceable(4), ptr noundef nonnull align 2 dereferenceable(2)) unnamed_addr #1 align 2

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

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 = { "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 = { 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 #5 = { 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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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