; LLVM IR from facebook/redex :: libredex/CallGraph.ll (ZN10call_graph19get_num_nodes_edgesERKNS_5GraphE)

; 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.call_graph::CallgraphStats" = type { i32, i32, i32 }
%class.UnorderedSet.188 = type { %"class.std::unordered_set.190" }
%"class.std::unordered_set.190" = type { %"class.std::_Hashtable.191" }
%"class.std::_Hashtable.191" = 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.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<const call_graph::Node *, std::allocator<const call_graph::Node *>>::_Deque_impl" }
%"struct.std::_Deque_base<const call_graph::Node *, std::allocator<const call_graph::Node *>>::_Deque_impl" = type { %"struct.std::_Deque_base<const call_graph::Node *, std::allocator<const call_graph::Node *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<const call_graph::Node *, std::allocator<const call_graph::Node *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair.213" = type <{ %"class.UnorderedSet<const call_graph::Node *>::FixedIterator", i8, [7 x i8] }>
%"class.UnorderedSet<const call_graph::Node *>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator.215" }
%"struct.std::__detail::_Node_iterator.215" = type { %"struct.std::__detail::_Node_iterator_base.216" }
%"struct.std::__detail::_Node_iterator_base.216" = type { ptr }
%"class.call_graph::EdgesAdapter" = type { ptr }
%class.UnorderedSet.228 = type { %"class.std::unordered_set.230" }
%"class.std::unordered_set.230" = type { %"class.std::_Hashtable.231" }
%"class.std::_Hashtable.231" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.call_graph::EdgesAdapter::iterator" = type { ptr }
%"struct.std::pair.250" = type <{ %"class.UnorderedSet<IRInstruction *>::FixedIterator", i8, [7 x i8] }>
%"class.UnorderedSet<IRInstruction *>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator.252" }
%"struct.std::__detail::_Node_iterator.252" = type { %"struct.std::__detail::_Node_iterator_base.253" }
%"struct.std::__detail::_Node_iterator_base.253" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
define dso_local { i64, i32 } @_ZN10call_graph19get_num_nodes_edgesERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(8064) %0) #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.call_graph::CallgraphStats", align 4
  %3 = alloca ptr, align 8
  %4 = alloca %class.UnorderedSet.188, align 8
  %5 = alloca %"class.std::queue", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.std::pair.213", align 8
  %13 = alloca { ptr, i8 }, align 8
  %14 = alloca %"class.call_graph::EdgesAdapter", align 8
  %15 = alloca %class.UnorderedSet.228, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.call_graph::EdgesAdapter", align 8
  %18 = alloca %"class.call_graph::EdgesAdapter::iterator", align 8
  %19 = alloca %"class.call_graph::EdgesAdapter::iterator", align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"struct.std::pair.250", align 8
  %24 = alloca { i64, i32 }, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %4) #5
  call void @_ZN12UnorderedSetIPKN10call_graph4NodeESt4hashIS3_ESt8equal_toIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4)
  call void @llvm.lifetime.start.p0(i64 80, ptr %5) #5
  invoke void @_ZNSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEEC2IS6_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %25 unwind label %72

25:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = invoke noundef ptr @_ZNK10call_graph5Graph5entryEv(ptr noundef nonnull align 8 dereferenceable(8064) %26)
          to label %28 unwind label %76

28:                                               ; preds = %25
  store ptr %27, ptr %10, align 8, !tbaa !5
  invoke void @_ZNSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEE4pushEOS3_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %29 unwind label %76

29:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %30

30:                                               ; preds = %166, %29
  %31 = invoke noundef zeroext i1 @_ZNKSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %32 unwind label %80

32:                                               ; preds = %30
  %33 = xor i1 %31, true
  br i1 %33, label %34, label %168

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %36 unwind label %84

36:                                               ; preds = %34
  %37 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %37, ptr %11, align 8, !tbaa !5
  invoke void @_ZNSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %38 unwind label %84

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %39 = invoke { ptr, i8 } @_ZN12UnorderedSetIPKN10call_graph4NodeESt4hashIS3_ESt8equal_toIS3_EE7emplaceIJRS3_EEESt4pairINS8_13FixedIteratorEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %40 unwind label %88

40:                                               ; preds = %38
  store { ptr, i8 } %39, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %13, i64 9, i1 false)
  %41 = getelementptr inbounds %"struct.std::pair.213", ptr %12, i32 0, i32 1
  %42 = load i8, ptr %41, align 8, !tbaa !11, !range !17, !noundef !18
  %43 = trunc i8 %42 to i1
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  br i1 %43, label %44, label %166

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = invoke ptr @_ZNK10call_graph4Node7calleesEv(ptr noundef nonnull align 8 dereferenceable(64) %45)
          to label %47 unwind label %92

47:                                               ; preds = %44
  %48 = getelementptr inbounds %"class.call_graph::EdgesAdapter", ptr %14, i32 0, i32 0
  store ptr %46, ptr %48, align 8
  %49 = invoke noundef i64 @_ZNK10call_graph12EdgesAdapter4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %50 unwind label %92

50:                                               ; preds = %47
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = add i64 %52, %49
  %54 = trunc i64 %53 to i32
  store i32 %54, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr %15) #5
  invoke void @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %15)
          to label %55 unwind label %96

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = invoke ptr @_ZNK10call_graph4Node7calleesEv(ptr noundef nonnull align 8 dereferenceable(64) %56)
          to label %58 unwind label %100

58:                                               ; preds = %55
  %59 = getelementptr inbounds %"class.call_graph::EdgesAdapter", ptr %17, i32 0, i32 0
  store ptr %57, ptr %59, align 8
  store ptr %17, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  %61 = invoke ptr @_ZNK10call_graph12EdgesAdapter5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %60)
          to label %62 unwind label %104

62:                                               ; preds = %58
  %63 = getelementptr inbounds %"class.call_graph::EdgesAdapter::iterator", ptr %18, i32 0, i32 0
  store ptr %61, ptr %63, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %64 = load ptr, ptr %16, align 8, !tbaa !5
  %65 = invoke ptr @_ZNK10call_graph12EdgesAdapter3endEv(ptr noundef nonnull align 8 dereferenceable(8) %64)
          to label %66 unwind label %108

66:                                               ; preds = %62
  %67 = getelementptr inbounds %"class.call_graph::EdgesAdapter::iterator", ptr %19, i32 0, i32 0
  store ptr %65, ptr %67, align 8
  br label %68

68:                                               ; preds = %148, %66
  %69 = invoke noundef zeroext i1 @_ZNK10call_graph12EdgesAdapter8iteratorneERS1_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %70 unwind label %108

70:                                               ; preds = %68
  br i1 %69, label %112, label %71

71:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %153

72:                                               ; preds = %1
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %6, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %7, align 4
  br label %177

76:                                               ; preds = %28, %25
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %6, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %176

80:                                               ; preds = %170, %168, %30
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %6, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %7, align 4
  br label %176

84:                                               ; preds = %36, %34
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %6, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %7, align 4
  br label %167

88:                                               ; preds = %38
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %6, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  br label %167

92:                                               ; preds = %47, %44
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %6, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %167

96:                                               ; preds = %50
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %6, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %7, align 4
  br label %165

100:                                              ; preds = %55
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %6, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %7, align 4
  br label %152

104:                                              ; preds = %58
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %6, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %7, align 4
  br label %151

108:                                              ; preds = %146, %68, %62
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %6, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %7, align 4
  br label %150

112:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK10call_graph12EdgesAdapter8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %114 unwind label %133

114:                                              ; preds = %112
  store ptr %113, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %115 = load ptr, ptr %20, align 8, !tbaa !5
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = invoke noundef ptr @_ZNK10call_graph4Edge6calleeEv(ptr noundef nonnull align 8 dereferenceable(24) %116)
          to label %118 unwind label %137

118:                                              ; preds = %114
  store ptr %117, ptr %21, align 8, !tbaa !5
  invoke void @_ZNSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEE4pushEOS3_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %119 unwind label %137

119:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %120 = load ptr, ptr %20, align 8, !tbaa !5
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  %122 = invoke noundef ptr @_ZNK10call_graph4Edge11invoke_insnEv(ptr noundef nonnull align 8 dereferenceable(24) %121)
          to label %123 unwind label %141

123:                                              ; preds = %119
  store ptr %122, ptr %22, align 8, !tbaa !5
  %124 = load ptr, ptr %22, align 8, !tbaa !5
  %125 = icmp ne ptr %124, null
  br i1 %125, label %126, label %145

126:                                              ; preds = %123
  %127 = invoke { ptr, i8 } @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE7emplaceIJRS1_EEESt4pairINS6_13FixedIteratorEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %15, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %128 unwind label %141

128:                                              ; preds = %126
  %129 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 0
  %130 = extractvalue { ptr, i8 } %127, 0
  store ptr %130, ptr %129, align 8
  %131 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 1
  %132 = extractvalue { ptr, i8 } %127, 1
  store i8 %132, ptr %131, align 8
  br label %145

133:                                              ; preds = %112
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %6, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %7, align 4
  br label %149

137:                                              ; preds = %118, %114
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %6, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %149

141:                                              ; preds = %126, %119
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %6, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %149

145:                                              ; preds = %128, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %146

146:                                              ; preds = %145
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10call_graph12EdgesAdapter8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %148 unwind label %108

148:                                              ; preds = %146
  br label %68

149:                                              ; preds = %141, %137, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %150

150:                                              ; preds = %149, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %151

151:                                              ; preds = %150, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %152

152:                                              ; preds = %151, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %164

153:                                              ; preds = %71
  %154 = invoke noundef i64 @_ZNK12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %15)
          to label %155 unwind label %160

155:                                              ; preds = %153
  %156 = load i32, ptr %9, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = add i64 %157, %154
  %159 = trunc i64 %158 to i32
  store i32 %159, ptr %9, align 4, !tbaa !9
  call void @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %15) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %15) #5
  br label %166

160:                                              ; preds = %153
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %6, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %7, align 4
  br label %164

164:                                              ; preds = %160, %152
  call void @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %15) #5
  br label %165

165:                                              ; preds = %164, %96
  call void @llvm.lifetime.end.p0(i64 56, ptr %15) #5
  br label %167

166:                                              ; preds = %155, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %30, !llvm.loop !19

167:                                              ; preds = %165, %92, %88, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %176

168:                                              ; preds = %32
  %169 = invoke noundef i64 @_ZNK12UnorderedSetIPKN10call_graph4NodeESt4hashIS3_ESt8equal_toIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %170 unwind label %80

170:                                              ; preds = %168
  %171 = trunc i64 %169 to i32
  %172 = load i32, ptr %8, align 4, !tbaa !9
  %173 = load i32, ptr %9, align 4, !tbaa !9
  invoke void @_ZN10call_graph14CallgraphStatsC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef %171, i32 noundef %172, i32 noundef %173)
          to label %174 unwind label %80

174:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @_ZNSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %5) #5
  call void @_ZN12UnorderedSetIPKN10call_graph4NodeESt4hashIS3_ESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 4 %2, i64 12, i1 false)
  %175 = load { i64, i32 }, ptr %24, align 8
  ret { i64, i32 } %175

176:                                              ; preds = %167, %80, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @_ZNSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #5
  br label %177

177:                                              ; preds = %176, %72
  call void @llvm.lifetime.end.p0(i64 80, ptr %5) #5
  call void @_ZN12UnorderedSetIPKN10call_graph4NodeESt4hashIS3_ESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %4) #5
  br label %178

178:                                              ; preds = %177
  %179 = load ptr, ptr %6, align 8
  %180 = load i32, ptr %7, align 4
  %181 = insertvalue { ptr, i32 } poison, ptr %179, 0
  %182 = insertvalue { ptr, i32 } %181, i32 %180, 1
  resume { ptr, i32 } %182
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEE4pushEOS3_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !16, i64 8}
!12 = !{!"_ZTSSt4pairIN12UnorderedSetIPKN10call_graph4NodeESt4hashIS4_ESt8equal_toIS4_EE13FixedIteratorEbE", !13, i64 0, !16, i64 8}
!13 = !{!"_ZTSN12UnorderedSetIPKN10call_graph4NodeESt4hashIS3_ESt8equal_toIS3_EE13FixedIteratorE", !14, i64 0}
!14 = !{!"_ZTSNSt8__detail14_Node_iteratorIPKN10call_graph4NodeELb1ELb0EEE", !15, i64 0}
!15 = !{!"_ZTSNSt8__detail19_Node_iterator_baseIPKN10call_graph4NodeELb0EEE", !6, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !20}
!20 = !{!"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"

%"struct.call_graph::CallgraphStats" = type { i32, i32, i32 }
%class.UnorderedSet.188 = type { %"class.std::unordered_set.190" }
%"class.std::unordered_set.190" = type { %"class.std::_Hashtable.191" }
%"class.std::_Hashtable.191" = 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.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<const call_graph::Node *, std::allocator<const call_graph::Node *>>::_Deque_impl" }
%"struct.std::_Deque_base<const call_graph::Node *, std::allocator<const call_graph::Node *>>::_Deque_impl" = type { %"struct.std::_Deque_base<const call_graph::Node *, std::allocator<const call_graph::Node *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<const call_graph::Node *, std::allocator<const call_graph::Node *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.call_graph::EdgesAdapter" = type { ptr }
%class.UnorderedSet.228 = type { %"class.std::unordered_set.230" }
%"class.std::unordered_set.230" = type { %"class.std::_Hashtable.231" }
%"class.std::_Hashtable.231" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.call_graph::EdgesAdapter::iterator" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local { i64, i32 } @_ZN10call_graph19get_num_nodes_edgesERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(8064) %0) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.call_graph::CallgraphStats", align 8
  %3 = alloca %class.UnorderedSet.188, align 8
  %4 = alloca %"class.std::queue", align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.call_graph::EdgesAdapter", align 8
  %8 = alloca %class.UnorderedSet.228, align 8
  %9 = alloca %"class.call_graph::EdgesAdapter", align 8
  %10 = alloca %"class.call_graph::EdgesAdapter::iterator", align 8
  %11 = alloca %"class.call_graph::EdgesAdapter::iterator", align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #4
  call void @_ZN12UnorderedSetIPKN10call_graph4NodeESt4hashIS3_ESt8equal_toIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #4
  invoke void @_ZNSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEEC2IS6_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %14 unwind label %44

14:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %15 = call noundef ptr @_ZNK10call_graph5Graph5entryEv(ptr noundef nonnull align 8 dereferenceable(8064) %0)
  store ptr %15, ptr %5, align 8, !tbaa !5
  invoke void @_ZNSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEE4pushEOS3_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %16 unwind label %46

16:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  %17 = call noundef zeroext i1 @_ZNKSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  br i1 %17, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %16, %74
  %.02149 = phi i32 [ %.122, %74 ], [ 0, %16 ]
  %.02348 = phi i32 [ %.124, %74 ], [ 0, %16 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %19, ptr %6, align 8, !tbaa !5
  call void @_ZNSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  %20 = invoke { ptr, i8 } @_ZN12UnorderedSetIPKN10call_graph4NodeESt4hashIS3_ESt8equal_toIS3_EE7emplaceIJRS3_EEESt4pairINS8_13FixedIteratorEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %21 unwind label %48

21:                                               ; preds = %.lr.ph
  %.fca.1.extract = extractvalue { ptr, i8 } %20, 1
  %22 = trunc i8 %.fca.1.extract to i1
  br i1 %22, label %23, label %74

23:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = invoke ptr @_ZNK10call_graph4Node7calleesEv(ptr noundef nonnull align 8 dereferenceable(64) %24)
          to label %26 unwind label %50

26:                                               ; preds = %23
  store ptr %25, ptr %7, align 8
  %27 = call noundef i64 @_ZNK10call_graph12EdgesAdapter4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %28 = trunc i64 %27 to i32
  %29 = add i32 %.02149, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #4
  call void @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = invoke ptr @_ZNK10call_graph4Node7calleesEv(ptr noundef nonnull align 8 dereferenceable(64) %30)
          to label %32 unwind label %52

32:                                               ; preds = %26
  store ptr %31, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %33 = invoke ptr @_ZNK10call_graph12EdgesAdapter5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %34 unwind label %54

34:                                               ; preds = %32
  store ptr %33, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %35 = invoke ptr @_ZNK10call_graph12EdgesAdapter3endEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %36 unwind label %.loopexit.split-lp

36:                                               ; preds = %34
  store ptr %35, ptr %11, align 8
  br label %37

37:                                               ; preds = %69, %36
  %38 = invoke noundef zeroext i1 @_ZNK10call_graph12EdgesAdapter8iteratorneERS1_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %39 unwind label %.loopexit

39:                                               ; preds = %37
  br i1 %38, label %56, label %40

40:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  %41 = call noundef i64 @_ZNK12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %8)
  %42 = trunc i64 %41 to i32
  %43 = add i32 %.02348, %42
  call void @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #4
  br label %74

44:                                               ; preds = %1
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %80

46:                                               ; preds = %14
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %79

48:                                               ; preds = %.lr.ph
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %76

50:                                               ; preds = %23
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %76

52:                                               ; preds = %26
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %73

54:                                               ; preds = %32
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %72

.loopexit:                                        ; preds = %37
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %71

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

56:                                               ; preds = %39
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK10call_graph12EdgesAdapter8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = call noundef ptr @_ZNK10call_graph4Edge6calleeEv(ptr noundef nonnull align 8 dereferenceable(24) %58)
  store ptr %59, ptr %12, align 8, !tbaa !5
  invoke void @_ZNSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEE4pushEOS3_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %60 unwind label %65

60:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  %61 = load ptr, ptr %57, align 8, !tbaa !5
  %62 = call noundef ptr @_ZNK10call_graph4Edge11invoke_insnEv(ptr noundef nonnull align 8 dereferenceable(24) %61)
  store ptr %62, ptr %13, align 8, !tbaa !5
  %.not = icmp eq ptr %62, null
  br i1 %.not, label %69, label %63

63:                                               ; preds = %60
  %64 = invoke { ptr, i8 } @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE7emplaceIJRS1_EEESt4pairINS6_13FixedIteratorEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %69 unwind label %67

65:                                               ; preds = %56
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  br label %71

67:                                               ; preds = %63
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  br label %71

69:                                               ; preds = %63, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10call_graph12EdgesAdapter8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  br label %37

71:                                               ; preds = %.loopexit, %.loopexit.split-lp, %65, %67
  %.pn.pn = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  br label %72

72:                                               ; preds = %71, %54
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %71 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br label %73

73:                                               ; preds = %72, %52
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %72 ], [ %53, %52 ]
  call void @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #4
  br label %76

74:                                               ; preds = %40, %21
  %.124 = phi i32 [ %43, %40 ], [ %.02348, %21 ]
  %.122 = phi i32 [ %29, %40 ], [ %.02149, %21 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  %75 = call noundef zeroext i1 @_ZNKSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  br i1 %75, label %._crit_edge, label %.lr.ph, !llvm.loop !9

76:                                               ; preds = %73, %50, %48
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %73 ], [ %51, %50 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br label %79

._crit_edge:                                      ; preds = %74, %16
  %.023.lcssa = phi i32 [ 0, %16 ], [ %.124, %74 ]
  %.021.lcssa = phi i32 [ 0, %16 ], [ %.122, %74 ]
  %77 = call noundef i64 @_ZNK12UnorderedSetIPKN10call_graph4NodeESt4hashIS3_ESt8equal_toIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %3)
  %78 = trunc i64 %77 to i32
  call void @_ZN10call_graph14CallgraphStatsC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef %78, i32 noundef %.021.lcssa, i32 noundef %.023.lcssa)
  call void @_ZNSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #4
  call void @_ZN12UnorderedSetIPKN10call_graph4NodeESt4hashIS3_ESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #4
  %.sroa.0.0.copyload = load i64, ptr %2, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  %.sroa.2.0.copyload = load i32, ptr %.sroa.2.0..sroa_idx, align 8
  %.fca.0.insert = insertvalue { i64, i32 } poison, i64 %.sroa.0.0.copyload, 0
  %.fca.1.insert = insertvalue { i64, i32 } %.fca.0.insert, i32 %.sroa.2.0.copyload, 1
  ret { i64, i32 } %.fca.1.insert

79:                                               ; preds = %76, %46
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %76 ], [ %47, %46 ]
  call void @_ZNSt5queueIPKN10call_graph4NodeESt5dequeIS3_SaIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #4
  br label %80

80:                                               ; preds = %79, %44
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %79 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #4
  call void @_ZN12UnorderedSetIPKN10call_graph4NodeESt4hashIS3_ESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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