; LLVM IR from facebook/redex :: opt/outliner (PartialCandidateAdapter)

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

%"struct.std::pair" = type <{ %"class.UnorderedSet<const DexType *>::FixedIterator", i8, [7 x i8] }>
%"class.UnorderedSet<const DexType *>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator" }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair.212" = type <{ %"class.UnorderedSet<unsigned int>::FixedIterator", i8, [7 x i8] }>
%"class.UnorderedSet<unsigned int>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator.214" }
%"struct.std::__detail::_Node_iterator.214" = type { %"struct.std::__detail::_Node_iterator_base.215" }
%"struct.std::__detail::_Node_iterator_base.215" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%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 }
%"struct.outliner_impl::PartialCandidateNode" = type { %"class.std::vector", %class.UnorderedMap, %"class.std::vector.22" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl" }
%"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl" = type { %"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.UnorderedMap = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable.9" }
%"class.std::_Hashtable.9" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<std::pair<cfg::Edge *, std::shared_ptr<outliner_impl::PartialCandidateNode>>, std::allocator<std::pair<cfg::Edge *, std::shared_ptr<outliner_impl::PartialCandidateNode>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<cfg::Edge *, std::shared_ptr<outliner_impl::PartialCandidateNode>>, std::allocator<std::pair<cfg::Edge *, std::shared_ptr<outliner_impl::PartialCandidateNode>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<cfg::Edge *, std::shared_ptr<outliner_impl::PartialCandidateNode>>, std::allocator<std::pair<cfg::Edge *, std::shared_ptr<outliner_impl::PartialCandidateNode>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<cfg::Edge *, std::shared_ptr<outliner_impl::PartialCandidateNode>>, std::allocator<std::pair<cfg::Edge *, std::shared_ptr<outliner_impl::PartialCandidateNode>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.outliner_impl::PartialCandidateAdapter" = type { %"class.outliner_impl::CandidateAdapter", ptr, %"struct.outliner_impl::PartialCandidate", %"class.std::optional", ptr, %class.Lazy }
%"class.outliner_impl::CandidateAdapter" = type { ptr }
%"struct.outliner_impl::PartialCandidate" = type <{ %class.UnorderedSet, %"struct.outliner_impl::PartialCandidateNode", i64, i64, i32, [4 x i8] }>
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload_base.base", [3 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<unsigned int>::_Storage", i8 }>
%"union.std::_Optional_payload_base<unsigned int>::_Storage" = type { i32 }
%class.Lazy = type { %"class.std::function", %"class.std::unique_ptr" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.28" }
%"struct.std::_Head_base.28" = type { ptr }
%"struct.std::pair.217" = type { ptr, %"class.std::shared_ptr.219" }
%"class.std::shared_ptr.219" = type { %"class.std::__shared_ptr.220" }
%"class.std::__shared_ptr.220" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

@.str.8 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [89 x i8], align 1
@__PRETTY_FUNCTION__._ZNK13outliner_impl23PartialCandidateAdapter19gather_type_demandsERKNS_20PartialCandidateNodeE12UnorderedSetIjSt4hashIjESt8equal_toIjEERKSt8functionIFbP13IRInstructiontEEPS4_IPK7DexTypeS5_ISJ_ES7_ISJ_EE = external hidden unnamed_addr constant [215 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 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 uwtable
define dso_local void @_ZNK13outliner_impl23PartialCandidateAdapter19gather_type_demandsERKNS_20PartialCandidateNodeE12UnorderedSetIjSt4hashIjESt8equal_toIjEERKSt8functionIFbP13IRInstructiontEEPS4_IPK7DexTypeS5_ISJ_ES7_ISJ_EE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(104) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef %4) #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::pair.212", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca ptr, align 8
  %28 = alloca %class.UnorderedSet, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %31 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %32

32:                                               ; preds = %129, %5
  %33 = load i64, ptr %11, align 8, !tbaa !9
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.outliner_impl::PartialCandidateNode", ptr %34, i32 0, i32 0
  %36 = call noundef i64 @_ZNKSt6vectorIP13IRInstructionSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #6
  %37 = icmp ult i64 %33, %36
  br i1 %37, label %38, label %41

38:                                               ; preds = %32
  %39 = call noundef zeroext i1 @_ZNK12UnorderedSetIjSt4hashIjESt8equal_toIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %2)
  %40 = xor i1 %39, true
  br label %41

41:                                               ; preds = %38, %32
  %42 = phi i1 [ false, %32 ], [ %40, %38 ]
  br i1 %42, label %44, label %43

43:                                               ; preds = %41
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %132

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  store i8 0, ptr %13, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.outliner_impl::PartialCandidateNode", ptr %45, i32 0, i32 0
  %47 = load i64, ptr %11, align 8, !tbaa !9
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP13IRInstructionSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %47)
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  store ptr %49, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %89, %44
  %51 = load i64, ptr %15, align 8, !tbaa !9
  %52 = load ptr, ptr %14, align 8, !tbaa !5
  %53 = call noundef i64 @_ZNK13IRInstruction9srcs_sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %52)
  %54 = icmp ult i64 %51, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %92

56:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  %58 = load i64, ptr %15, align 8, !tbaa !9
  %59 = trunc i64 %58 to i16
  %60 = call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %57, i16 noundef zeroext %59)
  store i32 %60, ptr %16, align 4, !tbaa !13
  %61 = call noundef i64 @_ZNK12UnorderedSetIjSt4hashIjESt8equal_toIjEE5countERKj(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %62 = icmp ne i64 %61, 0
  %63 = xor i1 %62, true
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br i1 %63, label %64, label %65

64:                                               ; preds = %56
  br label %89

65:                                               ; preds = %56
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %66)
  %68 = call noundef zeroext i1 @_ZN6opcode9is_a_moveE8IROpcode(i16 noundef zeroext %67)
  br i1 %68, label %69, label %70

69:                                               ; preds = %65
  store i8 1, ptr %13, align 1, !tbaa !11
  br label %89

70:                                               ; preds = %65
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %72 = getelementptr inbounds %"class.outliner_impl::PartialCandidateAdapter", ptr %31, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !15
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  %75 = load i64, ptr %15, align 8, !tbaa !9
  %76 = call noundef ptr @_ZN13outliner_impl20OutlinerTypeAnalysis15get_type_demandEP13IRInstructionm(ptr noundef nonnull align 8 dereferenceable(248) %73, ptr noundef %74, i64 noundef %75)
  store ptr %76, ptr %17, align 8, !tbaa !5
  %77 = call { ptr, i8 } @_ZN12UnorderedSetIPK7DexTypeSt4hashIS2_ESt8equal_toIS2_EE6insertEOS2_(ptr noundef nonnull align 8 dereferenceable(56) %71, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %78 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 0
  %79 = extractvalue { ptr, i8 } %77, 0
  store ptr %79, ptr %78, align 8
  %80 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 1
  %81 = extractvalue { ptr, i8 } %77, 1
  store i8 %81, ptr %80, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = load i64, ptr %15, align 8, !tbaa !9
  %85 = trunc i64 %84 to i16
  %86 = call noundef zeroext i1 @_ZNKSt8functionIFbP13IRInstructiontEEclES1_t(ptr noundef nonnull align 8 dereferenceable(32) %82, ptr noundef %83, i16 noundef zeroext %85)
  br i1 %86, label %87, label %88

87:                                               ; preds = %70
  store i8 1, ptr %13, align 1, !tbaa !11
  br label %88

88:                                               ; preds = %87, %70
  br label %89

89:                                               ; preds = %88, %69, %64
  %90 = load i64, ptr %15, align 8, !tbaa !9
  %91 = add i64 %90, 1
  store i64 %91, ptr %15, align 8, !tbaa !9
  br label %50, !llvm.loop !50

92:                                               ; preds = %55
  %93 = load i8, ptr %13, align 1, !tbaa !11, !range !52, !noundef !53
  %94 = trunc i8 %93 to i1
  br i1 %94, label %95, label %98

95:                                               ; preds = %92
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = call noundef zeroext i1 @_ZNK13IRInstruction8has_destEv(ptr noundef nonnull align 8 dereferenceable(32) %96)
  br i1 %97, label %98, label %99

98:                                               ; preds = %95, %92
  br label %101

99:                                               ; preds = %95
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.8, ptr noundef @.str.9, i32 noundef 68, ptr noundef @__PRETTY_FUNCTION__._ZNK13outliner_impl23PartialCandidateAdapter19gather_type_demandsERKNS_20PartialCandidateNodeE12UnorderedSetIjSt4hashIjESt8equal_toIjEERKSt8functionIFbP13IRInstructiontEEPS4_IPK7DexTypeS5_ISJ_ES7_ISJ_EE, i32 noundef 2, ptr noundef @.str.10) #7
  unreachable

100:                                              ; No predecessors!
  br label %101

101:                                              ; preds = %100, %98
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = call noundef zeroext i1 @_ZNK13IRInstruction8has_destEv(ptr noundef nonnull align 8 dereferenceable(32) %102)
  br i1 %103, label %104, label %128

104:                                              ; preds = %101
  %105 = load i8, ptr %13, align 1, !tbaa !11, !range !52, !noundef !53
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %115

107:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %108)
  store i32 %109, ptr %19, align 4, !tbaa !13
  %110 = call { ptr, i8 } @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEE6insertEOj(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %111 = getelementptr inbounds { ptr, i8 }, ptr %20, i32 0, i32 0
  %112 = extractvalue { ptr, i8 } %110, 0
  store ptr %112, ptr %111, align 8
  %113 = getelementptr inbounds { ptr, i8 }, ptr %20, i32 0, i32 1
  %114 = extractvalue { ptr, i8 } %110, 1
  store i8 %114, ptr %113, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %119

115:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %116)
  store i32 %117, ptr %21, align 4, !tbaa !13
  %118 = call noundef i64 @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEE5eraseERKj(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) %21)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %119

119:                                              ; preds = %115, %107
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  %121 = call noundef zeroext i1 @_ZNK13IRInstruction12dest_is_wideEv(ptr noundef nonnull align 8 dereferenceable(32) %120)
  br i1 %121, label %122, label %127

122:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %123)
  %125 = add i32 %124, 1
  store i32 %125, ptr %22, align 4, !tbaa !13
  %126 = call noundef i64 @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEE5eraseERKj(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %127

127:                                              ; preds = %122, %119
  br label %128

128:                                              ; preds = %127, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  br label %129

129:                                              ; preds = %128
  %130 = load i64, ptr %11, align 8, !tbaa !9
  %131 = add i64 %130, 1
  store i64 %131, ptr %11, align 8, !tbaa !9
  br label %32, !llvm.loop !54

132:                                              ; preds = %43
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.outliner_impl::PartialCandidateNode", ptr %133, i32 0, i32 2
  %135 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESaIS8_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %134) #6
  br i1 %135, label %136, label %152

136:                                              ; preds = %132
  %137 = getelementptr inbounds %"class.outliner_impl::PartialCandidateAdapter", ptr %31, i32 0, i32 3
  %138 = call noundef zeroext i1 @_ZNKSt8optionalIjEcvbEv(ptr noundef nonnull align 4 dereferenceable(8) %137) #6
  br i1 %138, label %139, label %152

139:                                              ; preds = %136
  %140 = getelementptr inbounds %"class.outliner_impl::PartialCandidateAdapter", ptr %31, i32 0, i32 3
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIjEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %140) #6
  %142 = call noundef i64 @_ZNK12UnorderedSetIjSt4hashIjESt8equal_toIjEE5countERKj(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) %141)
  %143 = icmp ne i64 %142, 0
  br i1 %143, label %144, label %152

144:                                              ; preds = %139
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  %146 = getelementptr inbounds %"class.outliner_impl::PartialCandidateAdapter", ptr %31, i32 0, i32 4
  %147 = call { ptr, i8 } @_ZN12UnorderedSetIPK7DexTypeSt4hashIS2_ESt8equal_toIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %145, ptr noundef nonnull align 8 dereferenceable(8) %146)
  %148 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 0
  %149 = extractvalue { ptr, i8 } %147, 0
  store ptr %149, ptr %148, align 8
  %150 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 1
  %151 = extractvalue { ptr, i8 } %147, 1
  store i8 %151, ptr %150, align 8
  br label %152

152:                                              ; preds = %144, %139, %136, %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %153 = load ptr, ptr %7, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.outliner_impl::PartialCandidateNode", ptr %153, i32 0, i32 2
  store ptr %154, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %155 = load ptr, ptr %24, align 8, !tbaa !5
  %156 = call ptr @_ZNKSt6vectorISt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESaIS8_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %155) #6
  %157 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %156, ptr %157, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %158 = load ptr, ptr %24, align 8, !tbaa !5
  %159 = call ptr @_ZNKSt6vectorISt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESaIS8_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %158) #6
  %160 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %159, ptr %160, align 8
  br label %161

161:                                              ; preds = %172, %152
  %162 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESt6vectorIS9_SaIS9_EEEEbRKNS_17__normal_iteratorIT_T0_EESK_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br i1 %162, label %164, label %163

163:                                              ; preds = %161
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %178

164:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %165 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESt6vectorIS9_SaIS9_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  store ptr %165, ptr %27, align 8, !tbaa !5
  %166 = load ptr, ptr %27, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.std::pair.217", ptr %166, i32 0, i32 1
  %168 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt19__shared_ptr_accessIN13outliner_impl20PartialCandidateNodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %167) #6
  call void @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %28, ptr noundef nonnull align 8 dereferenceable(56) %2)
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZNK13outliner_impl23PartialCandidateAdapter19gather_type_demandsERKNS_20PartialCandidateNodeE12UnorderedSetIjSt4hashIjESt8equal_toIjEERKSt8functionIFbP13IRInstructiontEEPS4_IPK7DexTypeS5_ISJ_ES7_ISJ_EE(ptr noundef nonnull align 8 dereferenceable(256) %31, ptr noundef nonnull align 8 dereferenceable(104) %168, ptr noundef %28, ptr noundef nonnull align 8 dereferenceable(32) %169, ptr noundef %170)
          to label %171 unwind label %174

171:                                              ; preds = %164
  call void @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %172

172:                                              ; preds = %171
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESt6vectorIS9_SaIS9_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  br label %161

174:                                              ; preds = %164
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %29, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %30, align 4
  call void @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %179

178:                                              ; preds = %163
  ret void

179:                                              ; preds = %174
  %180 = load ptr, ptr %29, align 8
  %181 = load i32, ptr %30, align 4
  %182 = insertvalue { ptr, i32 } poison, ptr %180, 0
  %183 = insertvalue { ptr, i32 } %182, i32 %181, 1
  resume { ptr, i32 } %183
}

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

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

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

declare noundef i64 @_ZNK13IRInstruction9srcs_sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK12UnorderedSetIjSt4hashIjESt8equal_toIjEE5countERKj(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

declare noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode9is_a_moveE8IROpcode(i16 noundef zeroext) #4

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

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

declare noundef ptr @_ZN13outliner_impl20OutlinerTypeAnalysis15get_type_demandEP13IRInstructionm(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFbP13IRInstructiontEEclES1_t(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i16 noundef zeroext) #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEE5eraseERKj(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !6, i64 8}
!16 = !{!"_ZTSN13outliner_impl23PartialCandidateAdapterE", !17, i64 0, !6, i64 8, !18, i64 16, !37, i64 200, !6, i64 208, !41, i64 216}
!17 = !{!"_ZTSN13outliner_impl16CandidateAdapterE"}
!18 = !{!"_ZTSN13outliner_impl16PartialCandidateE", !19, i64 0, !25, i64 56, !10, i64 160, !10, i64 168, !14, i64 176}
!19 = !{!"_ZTS12UnorderedSetIjSt4hashIjESt8equal_toIjEE", !20, i64 0}
!20 = !{!"_ZTSSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE", !21, i64 0}
!21 = !{!"_ZTSSt10_HashtableIjjSaIjENSt8__detail9_IdentityESt8equal_toIjESt4hashIjENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !10, i64 8, !22, i64 16, !10, i64 24, !23, i64 32, !6, i64 48}
!22 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!23 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !24, i64 0, !10, i64 8}
!24 = !{!"float", !7, i64 0}
!25 = !{!"_ZTSN13outliner_impl20PartialCandidateNodeE", !26, i64 0, !30, i64 24, !33, i64 80}
!26 = !{!"_ZTSSt6vectorIP13IRInstructionSaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIP13IRInstructionSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTS12UnorderedMapIjN13outliner_impl10DefinedRegESt4hashIjESt8equal_toIjEE", !31, i64 0}
!31 = !{!"_ZTSSt13unordered_mapIjN13outliner_impl10DefinedRegESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !32, i64 0}
!32 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN13outliner_impl10DefinedRegEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !10, i64 8, !22, i64 16, !10, i64 24, !23, i64 32, !6, i64 48}
!33 = !{!"_ZTSSt6vectorISt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESaIS8_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseISt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESaIS8_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseISt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESaIS8_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseISt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESaIS8_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTSSt8optionalIjE", !38, i64 0}
!38 = !{!"_ZTSSt14_Optional_baseIjLb1ELb1EE", !39, i64 0}
!39 = !{!"_ZTSSt17_Optional_payloadIjLb1ELb1ELb1EE", !40, i64 0}
!40 = !{!"_ZTSSt22_Optional_payload_baseIjE", !7, i64 0, !12, i64 4}
!41 = !{!"_ZTS4LazyI12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EEE", !42, i64 0, !44, i64 32}
!42 = !{!"_ZTSSt8functionIFSt10unique_ptrI12UnorderedSetIP13IRInstructionSt4hashIS3_ESt8equal_toIS3_EESt14default_deleteIS8_EEvEE", !43, i64 0, !6, i64 24}
!43 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!44 = !{!"_ZTSSt10unique_ptrI12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EESt14default_deleteIS7_EE", !45, i64 0}
!45 = !{!"_ZTSSt15__uniq_ptr_dataI12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EESt14default_deleteIS7_ELb1ELb1EE", !46, i64 0}
!46 = !{!"_ZTSSt15__uniq_ptr_implI12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EESt14default_deleteIS7_EE", !47, i64 0}
!47 = !{!"_ZTSSt5tupleIJP12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EESt14default_deleteIS7_EEE", !48, i64 0}
!48 = !{!"_ZTSSt11_Tuple_implILm0EJP12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EESt14default_deleteIS7_EEE", !49, i64 0}
!49 = !{!"_ZTSSt10_Head_baseILm0EP12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EELb0EE", !6, i64 0}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}
!52 = !{i8 0, i8 2}
!53 = !{}
!54 = distinct !{!54, !51}


; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%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 }

@.str.8 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [89 x i8], align 1
@__PRETTY_FUNCTION__._ZNK13outliner_impl23PartialCandidateAdapter19gather_type_demandsERKNS_20PartialCandidateNodeE12UnorderedSetIjSt4hashIjESt8equal_toIjEERKSt8functionIFbP13IRInstructiontEEPS4_IPK7DexTypeS5_ISJ_ES7_ISJ_EE = external hidden unnamed_addr constant [215 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 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 uwtable
define dso_local void @_ZNK13outliner_impl23PartialCandidateAdapter19gather_type_demandsERKNS_20PartialCandidateNodeE12UnorderedSetIjSt4hashIjESt8equal_toIjEERKSt8functionIFbP13IRInstructiontEEPS4_IPK7DexTypeS5_ISJ_ES7_ISJ_EE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(104) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef %4) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %class.UnorderedSet, align 8
  %14 = tail call noundef i64 @_ZNKSt6vectorIP13IRInstructionSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.not52 = icmp eq i64 %14, 0
  br i1 %.not52, label %.critedge, label %.lr.ph47

.lr.ph47:                                         ; preds = %5
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  br label %16

16:                                               ; preds = %.lr.ph47, %59
  %.045 = phi i64 [ 0, %.lr.ph47 ], [ %60, %59 ]
  %17 = call noundef zeroext i1 @_ZNK12UnorderedSetIjSt4hashIjESt8equal_toIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %2)
  br i1 %17, label %.critedge, label %20

.critedge:                                        ; preds = %16, %59, %5
  %18 = getelementptr inbounds i8, ptr %1, i64 80
  %19 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESaIS8_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  br i1 %19, label %63, label %72

20:                                               ; preds = %16
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP13IRInstructionSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.045)
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = call noundef i64 @_ZNK13IRInstruction9srcs_sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  %.not53 = icmp eq i64 %23, 0
  br i1 %.not53, label %.thread, label %.lr.ph

._crit_edge:                                      ; preds = %35
  br i1 %.1, label %._crit_edge.thread, label %.thread

.lr.ph:                                           ; preds = %20, %.lr.ph.backedge
  %.03944 = phi i1 [ %.03944.be, %.lr.ph.backedge ], [ false, %20 ]
  %.04043 = phi i64 [ %.04043.be, %.lr.ph.backedge ], [ 0, %20 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %24 = trunc i64 %.04043 to i16
  %25 = call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %22, i16 noundef zeroext %24)
  store i32 %25, ptr %6, align 4, !tbaa !9
  %26 = call noundef i64 @_ZNK12UnorderedSetIjSt4hashIjESt8equal_toIjEE5countERKj(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %.not41 = icmp eq i64 %26, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br i1 %.not41, label %35, label %27

27:                                               ; preds = %.lr.ph
  %28 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  %29 = call noundef zeroext i1 @_ZN6opcode9is_a_moveE8IROpcode(i16 noundef zeroext %28)
  br i1 %29, label %.thread54, label %30

30:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %31 = load ptr, ptr %15, align 8, !tbaa !11
  %32 = call noundef ptr @_ZN13outliner_impl20OutlinerTypeAnalysis15get_type_demandEP13IRInstructionm(ptr noundef nonnull align 8 dereferenceable(248) %31, ptr noundef nonnull %22, i64 noundef %.04043)
  store ptr %32, ptr %7, align 8, !tbaa !5
  %33 = call { ptr, i8 } @_ZN12UnorderedSetIPK7DexTypeSt4hashIS2_ESt8equal_toIS2_EE6insertEOS2_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %34 = call noundef zeroext i1 @_ZNKSt8functionIFbP13IRInstructiontEEclES1_t(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull %22, i16 noundef zeroext %24)
  %spec.select = select i1 %34, i1 true, i1 %.03944
  br label %35

35:                                               ; preds = %30, %.lr.ph
  %.1 = phi i1 [ %.03944, %.lr.ph ], [ %spec.select, %30 ]
  %36 = add nuw i64 %.04043, 1
  %37 = call noundef i64 @_ZNK13IRInstruction9srcs_sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  %38 = icmp ult i64 %36, %37
  br i1 %38, label %.lr.ph.backedge, label %._crit_edge

.lr.ph.backedge:                                  ; preds = %35, %.thread54
  %.03944.be = phi i1 [ %.1, %35 ], [ true, %.thread54 ]
  %.04043.be = phi i64 [ %36, %35 ], [ %39, %.thread54 ]
  br label %.lr.ph, !llvm.loop !48

.thread54:                                        ; preds = %27
  %39 = add nuw i64 %.04043, 1
  %40 = call noundef i64 @_ZNK13IRInstruction9srcs_sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  %41 = icmp ult i64 %39, %40
  br i1 %41, label %.lr.ph.backedge, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.thread54, %._crit_edge
  %42 = call noundef zeroext i1 @_ZNK13IRInstruction8has_destEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  br i1 %42, label %44, label %43

43:                                               ; preds = %._crit_edge.thread
  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 68, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK13outliner_impl23PartialCandidateAdapter19gather_type_demandsERKNS_20PartialCandidateNodeE12UnorderedSetIjSt4hashIjESt8equal_toIjEERKSt8functionIFbP13IRInstructiontEEPS4_IPK7DexTypeS5_ISJ_ES7_ISJ_EE, i32 noundef 2, ptr noundef nonnull @.str.10) #7
  unreachable

44:                                               ; preds = %._crit_edge.thread
  %45 = call noundef zeroext i1 @_ZNK13IRInstruction8has_destEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  br i1 %45, label %47, label %59

.thread:                                          ; preds = %20, %._crit_edge
  %46 = call noundef zeroext i1 @_ZNK13IRInstruction8has_destEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  br i1 %46, label %50, label %59

47:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %48 = call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  store i32 %48, ptr %8, align 4, !tbaa !9
  %49 = call { ptr, i8 } @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEE6insertEOj(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %53

50:                                               ; preds = %.thread
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  %51 = call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  store i32 %51, ptr %9, align 4, !tbaa !9
  %52 = call noundef i64 @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEE5eraseERKj(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %53

53:                                               ; preds = %50, %47
  %54 = call noundef zeroext i1 @_ZNK13IRInstruction12dest_is_wideEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  br i1 %54, label %55, label %59

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %56 = call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  %57 = add i32 %56, 1
  store i32 %57, ptr %10, align 4, !tbaa !9
  %58 = call noundef i64 @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEE5eraseERKj(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  br label %59

59:                                               ; preds = %.thread, %53, %55, %44
  %60 = add nuw i64 %.045, 1
  %61 = call noundef i64 @_ZNKSt6vectorIP13IRInstructionSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %62 = icmp ult i64 %60, %61
  br i1 %62, label %16, label %.critedge, !llvm.loop !50

63:                                               ; preds = %.critedge
  %64 = getelementptr inbounds i8, ptr %0, i64 200
  %65 = call noundef zeroext i1 @_ZNKSt8optionalIjEcvbEv(ptr noundef nonnull align 4 dereferenceable(8) %64) #6
  br i1 %65, label %66, label %72

66:                                               ; preds = %63
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIjEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %64) #6
  %68 = call noundef i64 @_ZNK12UnorderedSetIjSt4hashIjESt8equal_toIjEE5countERKj(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) %67)
  %.not = icmp eq i64 %68, 0
  br i1 %.not, label %72, label %69

69:                                               ; preds = %66
  %70 = getelementptr inbounds i8, ptr %0, i64 208
  %71 = call { ptr, i8 } @_ZN12UnorderedSetIPK7DexTypeSt4hashIS2_ESt8equal_toIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %70)
  br label %72

72:                                               ; preds = %69, %66, %63, %.critedge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %73 = call ptr @_ZNKSt6vectorISt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESaIS8_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  store ptr %73, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %74 = call ptr @_ZNKSt6vectorISt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESaIS8_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  store ptr %74, ptr %12, align 8
  %75 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESt6vectorIS9_SaIS9_EEEEbRKNS_17__normal_iteratorIT_T0_EESK_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %75, label %.lr.ph50, label %._crit_edge51

._crit_edge51:                                    ; preds = %79, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  ret void

.lr.ph50:                                         ; preds = %72, %79
  %76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESt6vectorIS9_SaIS9_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  %78 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt19__shared_ptr_accessIN13outliner_impl20PartialCandidateNodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %77) #6
  call void @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 8 dereferenceable(56) %2)
  invoke void @_ZNK13outliner_impl23PartialCandidateAdapter19gather_type_demandsERKNS_20PartialCandidateNodeE12UnorderedSetIjSt4hashIjESt8equal_toIjEERKSt8functionIFbP13IRInstructiontEEPS4_IPK7DexTypeS5_ISJ_ES7_ISJ_EE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(104) %78, ptr noundef nonnull %13, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef %4)
          to label %79 unwind label %82

79:                                               ; preds = %.lr.ph50
  call void @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #6
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESt6vectorIS9_SaIS9_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %81 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESt6vectorIS9_SaIS9_EEEEbRKNS_17__normal_iteratorIT_T0_EESK_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %81, label %.lr.ph50, label %._crit_edge51

82:                                               ; preds = %.lr.ph50
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  resume { ptr, i32 } %83
}

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

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

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

declare noundef i64 @_ZNK13IRInstruction9srcs_sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK12UnorderedSetIjSt4hashIjESt8equal_toIjEE5countERKj(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

declare noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode9is_a_moveE8IROpcode(i16 noundef zeroext) local_unnamed_addr #4

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

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

declare noundef ptr @_ZN13outliner_impl20OutlinerTypeAnalysis15get_type_demandEP13IRInstructionm(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFbP13IRInstructiontEEclES1_t(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i16 noundef zeroext) local_unnamed_addr #1 align 2

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

; 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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEE5eraseERKj(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12UnorderedSetIjSt4hashIjESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTSN13outliner_impl23PartialCandidateAdapterE", !13, i64 0, !6, i64 8, !14, i64 16, !34, i64 200, !6, i64 208, !39, i64 216}
!13 = !{!"_ZTSN13outliner_impl16CandidateAdapterE"}
!14 = !{!"_ZTSN13outliner_impl16PartialCandidateE", !15, i64 0, !22, i64 56, !18, i64 160, !18, i64 168, !10, i64 176}
!15 = !{!"_ZTS12UnorderedSetIjSt4hashIjESt8equal_toIjEE", !16, i64 0}
!16 = !{!"_ZTSSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE", !17, i64 0}
!17 = !{!"_ZTSSt10_HashtableIjjSaIjENSt8__detail9_IdentityESt8equal_toIjESt4hashIjENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !18, i64 8, !19, i64 16, !18, i64 24, !20, i64 32, !6, i64 48}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!20 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !21, i64 0, !18, i64 8}
!21 = !{!"float", !7, i64 0}
!22 = !{!"_ZTSN13outliner_impl20PartialCandidateNodeE", !23, i64 0, !27, i64 24, !30, i64 80}
!23 = !{!"_ZTSSt6vectorIP13IRInstructionSaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIP13IRInstructionSaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTS12UnorderedMapIjN13outliner_impl10DefinedRegESt4hashIjESt8equal_toIjEE", !28, i64 0}
!28 = !{!"_ZTSSt13unordered_mapIjN13outliner_impl10DefinedRegESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !29, i64 0}
!29 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN13outliner_impl10DefinedRegEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !18, i64 8, !19, i64 16, !18, i64 24, !20, i64 32, !6, i64 48}
!30 = !{!"_ZTSSt6vectorISt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESaIS8_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseISt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESaIS8_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseISt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESaIS8_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseISt4pairIPN3cfg4EdgeESt10shared_ptrIN13outliner_impl20PartialCandidateNodeEEESaIS8_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSSt8optionalIjE", !35, i64 0}
!35 = !{!"_ZTSSt14_Optional_baseIjLb1ELb1EE", !36, i64 0}
!36 = !{!"_ZTSSt17_Optional_payloadIjLb1ELb1ELb1EE", !37, i64 0}
!37 = !{!"_ZTSSt22_Optional_payload_baseIjE", !7, i64 0, !38, i64 4}
!38 = !{!"bool", !7, i64 0}
!39 = !{!"_ZTS4LazyI12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EEE", !40, i64 0, !42, i64 32}
!40 = !{!"_ZTSSt8functionIFSt10unique_ptrI12UnorderedSetIP13IRInstructionSt4hashIS3_ESt8equal_toIS3_EESt14default_deleteIS8_EEvEE", !41, i64 0, !6, i64 24}
!41 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!42 = !{!"_ZTSSt10unique_ptrI12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EESt14default_deleteIS7_EE", !43, i64 0}
!43 = !{!"_ZTSSt15__uniq_ptr_dataI12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EESt14default_deleteIS7_ELb1ELb1EE", !44, i64 0}
!44 = !{!"_ZTSSt15__uniq_ptr_implI12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EESt14default_deleteIS7_EE", !45, i64 0}
!45 = !{!"_ZTSSt5tupleIJP12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EESt14default_deleteIS7_EEE", !46, i64 0}
!46 = !{!"_ZTSSt11_Tuple_implILm0EJP12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EESt14default_deleteIS7_EEE", !47, i64 0}
!47 = !{!"_ZTSSt10_Head_baseILm0EP12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EELb0EE", !6, i64 0}
!48 = distinct !{!48, !49}
!49 = !{!"llvm.loop.mustprogress"}
!50 = distinct !{!50, !49}


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