; LLVM IR from alibaba/euler :: euler/core/graph/graph.ll (ZNK5euler5Graph10SampleEdgeEii)

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

%"class.std::vector.189" = type { %"struct.std::_Vector_base.190" }
%"struct.std::_Vector_base.190" = type { %"struct.std::_Vector_base<std::tuple<unsigned long, unsigned long, int>, std::allocator<std::tuple<unsigned long, unsigned long, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<unsigned long, unsigned long, int>, std::allocator<std::tuple<unsigned long, unsigned long, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<unsigned long, unsigned long, int>, std::allocator<std::tuple<unsigned long, unsigned long, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<unsigned long, unsigned long, int>, std::allocator<std::tuple<unsigned long, unsigned long, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.euler::LogMessage" = type { %"class.std::__cxx11::basic_ostringstream.base", ptr, i32, i32, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"struct.std::pair.154" = type { i32, float }
%"struct.std::pair.194" = type <{ %"class.std::tuple", float, [4 x i8] }>
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.106", %"struct.std::_Head_base.109" }
%"struct.std::_Tuple_impl.106" = type { %"struct.std::_Tuple_impl.107", %"struct.std::_Head_base.108" }
%"struct.std::_Tuple_impl.107" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.108" = type { i64 }
%"struct.std::_Head_base.109" = type { i64 }
%"class.euler::Graph" = type { %"class.std::vector.3", %"class.std::vector.3", %"class.std::unordered_map", %"class.std::unordered_map.13", %"class.std::unordered_map.29", i8, i8, i8, i8, i32, i32, %"class.euler::GraphMeta", %"class.euler::common::FastWeightedCollection", %"class.euler::common::FastWeightedCollection", %"class.std::vector.87", %"class.std::vector.92" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.13" = type { %"class.std::_Hashtable.14" }
%"class.std::_Hashtable.14" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.29" = type { %"class.std::_Hashtable.30" }
%"class.std::_Hashtable.30" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.euler::GraphMeta" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i64, i64, i32, %"class.std::unordered_map.43", %"class.std::unordered_map.43", %"class.std::unordered_map.63", %"class.std::unordered_map.63" }
%"class.std::unordered_map.43" = type { %"class.std::_Hashtable.44" }
%"class.std::_Hashtable.44" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.63" = type { %"class.std::_Hashtable.64" }
%"class.std::_Hashtable.64" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.euler::common::FastWeightedCollection" = type <{ %"class.euler::common::WeightedCollection", %"class.std::vector.77", %"class.std::vector.3", %"class.euler::common::AliasMethod", float, [4 x i8] }>
%"class.euler::common::WeightedCollection" = type { ptr }
%"class.std::vector.77" = type { %"struct.std::_Vector_base.78" }
%"struct.std::_Vector_base.78" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.euler::common::AliasMethod" = type { %"class.std::vector.3", %"class.std::vector.82" }
%"class.std::vector.82" = type { %"struct.std::_Vector_base.83" }
%"struct.std::_Vector_base.83" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.87" = type { %"struct.std::_Vector_base.88" }
%"struct.std::_Vector_base.88" = type { %"struct.std::_Vector_base<euler::common::FastWeightedCollection<unsigned long>, std::allocator<euler::common::FastWeightedCollection<unsigned long>>>::_Vector_impl" }
%"struct.std::_Vector_base<euler::common::FastWeightedCollection<unsigned long>, std::allocator<euler::common::FastWeightedCollection<unsigned long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<euler::common::FastWeightedCollection<unsigned long>, std::allocator<euler::common::FastWeightedCollection<unsigned long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<euler::common::FastWeightedCollection<unsigned long>, std::allocator<euler::common::FastWeightedCollection<unsigned long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.92" = type { %"struct.std::_Vector_base.93" }
%"struct.std::_Vector_base.93" = type { %"struct.std::_Vector_base<euler::common::FastWeightedCollection<std::tuple<unsigned long, unsigned long, int>>, std::allocator<euler::common::FastWeightedCollection<std::tuple<unsigned long, unsigned long, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<euler::common::FastWeightedCollection<std::tuple<unsigned long, unsigned long, int>>, std::allocator<euler::common::FastWeightedCollection<std::tuple<unsigned long, unsigned long, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<euler::common::FastWeightedCollection<std::tuple<unsigned long, unsigned long, int>>, std::allocator<euler::common::FastWeightedCollection<std::tuple<unsigned long, unsigned long, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<euler::common::FastWeightedCollection<std::tuple<unsigned long, unsigned long, int>>, std::allocator<euler::common::FastWeightedCollection<std::tuple<unsigned long, unsigned long, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.24 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [40 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA40_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(40)) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK5euler6common22FastWeightedCollectionIiE6SampleEv(ptr noundef nonnull align 8 dereferenceable(108)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK5euler5Graph10SampleEdgeEii(ptr dead_on_unwind noalias writable sret(%"class.std::vector.189") align 8 %0, ptr noundef nonnull align 8 dereferenceable(816) %1, i32 noundef %2, i32 noundef %3) #5 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.euler::LogMessage", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i1, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::pair.154", align 4
  %16 = alloca %"struct.std::pair.194", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::pair.194", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %19 = load ptr, ptr %6, align 8
  %20 = getelementptr inbounds %"class.euler::Graph", ptr %19, i32 0, i32 7
  %21 = load i8, ptr %20, align 2, !tbaa !11, !range !55, !noundef !56
  %22 = trunc i8 %21 to i1
  br i1 %22, label %30, label %23

23:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 392, ptr %9) #6
  call void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %9, ptr noundef @.str.24, i32 noundef 280, i32 noundef 3)
  %24 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA40_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %9, ptr noundef nonnull align 1 dereferenceable(40) @.str.46)
          to label %25 unwind label %26

25:                                               ; preds = %23
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %9) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr %9) #6
  br label %30

26:                                               ; preds = %23
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %10, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %11, align 4
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %9) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr %9) #6
  br label %124

30:                                               ; preds = %25, %4
  store i1 false, ptr %12, align 1
  call void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %31 = load i32, ptr %8, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  invoke void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %32)
          to label %33 unwind label %42

33:                                               ; preds = %30
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = icmp eq i32 %34, -1
  br i1 %35, label %36, label %81

36:                                               ; preds = %33
  %37 = getelementptr inbounds %"class.euler::Graph", ptr %19, i32 0, i32 13
  %38 = invoke noundef float @_ZNK5euler6common22FastWeightedCollectionIiE12GetSumWeightEv(ptr noundef nonnull align 8 dereferenceable(108) %37)
          to label %39 unwind label %42

39:                                               ; preds = %36
  %40 = fcmp oeq float %38, 0.000000e+00
  br i1 %40, label %41, label %46

41:                                               ; preds = %39
  store i1 true, ptr %12, align 1
  store i32 1, ptr %13, align 4
  br label %119

42:                                               ; preds = %81, %36, %30
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %10, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %11, align 4
  br label %123

46:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %68, %46
  %48 = load i32, ptr %14, align 4, !tbaa !9
  %49 = load i32, ptr %8, align 4, !tbaa !9
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %80

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %53 = getelementptr inbounds %"class.euler::Graph", ptr %19, i32 0, i32 13
  %54 = invoke i64 @_ZNK5euler6common22FastWeightedCollectionIiE6SampleEv(ptr noundef nonnull align 8 dereferenceable(108) %53)
          to label %55 unwind label %71

55:                                               ; preds = %52
  store i64 %54, ptr %15, align 4
  %56 = getelementptr inbounds %"struct.std::pair.154", ptr %15, i32 0, i32 0
  %57 = load i32, ptr %56, align 4, !tbaa !57
  store i32 %57, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #6
  %58 = getelementptr inbounds %"class.euler::Graph", ptr %19, i32 0, i32 15
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 8 dereferenceable(108) ptr @_ZNKSt6vectorIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %60) #6
  %62 = load ptr, ptr %61, align 8, !tbaa !59
  %63 = getelementptr inbounds ptr, ptr %62, i64 4
  %64 = load ptr, ptr %63, align 8
  invoke void %64(ptr dead_on_unwind writable sret(%"struct.std::pair.194") align 8 %16, ptr noundef nonnull align 8 dereferenceable(108) %61)
          to label %65 unwind label %75

65:                                               ; preds = %55
  %66 = getelementptr inbounds %"struct.std::pair.194", ptr %16, i32 0, i32 0
  invoke void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %66)
          to label %67 unwind label %75

67:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %14, align 4, !tbaa !9
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %14, align 4, !tbaa !9
  br label %47, !llvm.loop !61

71:                                               ; preds = %52
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %10, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %79

75:                                               ; preds = %65, %55
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %10, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  br label %79

79:                                               ; preds = %75, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %123

80:                                               ; preds = %51
  br label %118

81:                                               ; preds = %33
  %82 = getelementptr inbounds %"class.euler::Graph", ptr %19, i32 0, i32 15
  %83 = load i32, ptr %7, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 8 dereferenceable(108) ptr @_ZNKSt6vectorIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %84) #6
  %86 = load ptr, ptr %85, align 8, !tbaa !59
  %87 = getelementptr inbounds ptr, ptr %86, i64 7
  %88 = load ptr, ptr %87, align 8
  %89 = invoke noundef float %88(ptr noundef nonnull align 8 dereferenceable(108) %85)
          to label %90 unwind label %42

90:                                               ; preds = %81
  %91 = fcmp oeq float %89, 0.000000e+00
  br i1 %91, label %92, label %93

92:                                               ; preds = %90
  store i1 true, ptr %12, align 1
  store i32 1, ptr %13, align 4
  br label %119

93:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %110, %93
  %95 = load i32, ptr %17, align 4, !tbaa !9
  %96 = load i32, ptr %8, align 4, !tbaa !9
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %117

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  %100 = getelementptr inbounds %"class.euler::Graph", ptr %19, i32 0, i32 15
  %101 = load i32, ptr %7, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 8 dereferenceable(108) ptr @_ZNKSt6vectorIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %102) #6
  %104 = load ptr, ptr %103, align 8, !tbaa !59
  %105 = getelementptr inbounds ptr, ptr %104, i64 4
  %106 = load ptr, ptr %105, align 8
  invoke void %106(ptr dead_on_unwind writable sret(%"struct.std::pair.194") align 8 %18, ptr noundef nonnull align 8 dereferenceable(108) %103)
          to label %107 unwind label %113

107:                                              ; preds = %99
  %108 = getelementptr inbounds %"struct.std::pair.194", ptr %18, i32 0, i32 0
  invoke void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %108)
          to label %109 unwind label %113

109:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %17, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %17, align 4, !tbaa !9
  br label %94, !llvm.loop !63

113:                                              ; preds = %107, %99
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %10, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %123

117:                                              ; preds = %98
  br label %118

118:                                              ; preds = %117, %80
  store i1 true, ptr %12, align 1
  store i32 1, ptr %13, align 4
  br label %119

119:                                              ; preds = %118, %92, %41
  %120 = load i1, ptr %12, align 1
  br i1 %120, label %122, label %121

121:                                              ; preds = %119
  call void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %122

122:                                              ; preds = %121, %119
  ret void

123:                                              ; preds = %113, %79, %42
  call void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %124

124:                                              ; preds = %123, %26
  %125 = load ptr, ptr %10, align 8
  %126 = load i32, ptr %11, align 4
  %127 = insertvalue { ptr, i32 } poison, ptr %125, 0
  %128 = insertvalue { ptr, i32 } %127, i32 %126, 1
  resume { ptr, i32 } %128
}

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #6 = { 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, !28, i64 218}
!12 = !{!"_ZTSN5euler5GraphE", !13, i64 0, !13, i64 24, !17, i64 48, !23, i64 104, !25, i64 160, !27, i64 216, !28, i64 217, !28, i64 218, !28, i64 219, !10, i64 220, !10, i64 224, !29, i64 232, !36, i64 544, !36, i64 656, !47, i64 768, !51, i64 792}
!13 = !{!"_ZTSSt6vectorIfSaIfEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt13unordered_mapImPN5euler4NodeESt4hashImESt8equal_toImESaISt4pairIKmS2_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_HashtableImSt4pairIKmPN5euler4NodeEESaIS5_ENSt8__detail10_Select1stESt8equal_toImESt4hashImENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !19, i64 8, !20, i64 16, !19, i64 24, !21, i64 32, !6, i64 48}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!21 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !22, i64 0, !19, i64 8}
!22 = !{!"float", !7, i64 0}
!23 = !{!"_ZTSSt13unordered_mapISt5tupleIJmmiEEPN5euler4EdgeENS2_6common14EdgeIDHashFuncENS5_14EdgeIDEqualKeyESaISt4pairIKS1_S4_EEE", !24, i64 0}
!24 = !{!"_ZTSSt10_HashtableISt5tupleIJmmiEESt4pairIKS1_PN5euler4EdgeEESaIS7_ENSt8__detail10_Select1stENS4_6common14EdgeIDEqualKeyENSB_14EdgeIDHashFuncENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !19, i64 8, !20, i64 16, !19, i64 24, !21, i64 32, !6, i64 48}
!25 = !{!"_ZTSSt13unordered_mapImSt5tupleIJmmiEESt4hashImESt8equal_toImESaISt4pairIKmS1_EEE", !26, i64 0}
!26 = !{!"_ZTSSt10_HashtableImSt4pairIKmSt5tupleIJmmiEEESaIS4_ENSt8__detail10_Select1stESt8equal_toImESt4hashImENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !19, i64 8, !20, i64 16, !19, i64 24, !21, i64 32, !6, i64 48}
!27 = !{!"_ZTSN5euler6common14EdgeIDHashFuncE"}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTSN5euler9GraphMetaE", !30, i64 0, !30, i64 32, !19, i64 64, !19, i64 72, !10, i64 80, !32, i64 88, !32, i64 144, !34, i64 200, !34, i64 256}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !31, i64 0, !19, i64 8, !7, i64 16}
!31 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!32 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt5tupleIJN5euler11FeatureTypeEilEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEE", !33, i64 0}
!33 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St5tupleIJN5euler11FeatureTypeEilEEESaISC_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSE_18_Mod_range_hashingENSE_20_Default_ranged_hashENSE_20_Prime_rehash_policyENSE_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !19, i64 8, !20, i64 16, !19, i64 24, !21, i64 32, !6, i64 48}
!34 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE", !35, i64 0}
!35 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_jESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !19, i64 8, !20, i64 16, !19, i64 24, !21, i64 32, !6, i64 48}
!36 = !{!"_ZTSN5euler6common22FastWeightedCollectionIiEE", !37, i64 0, !38, i64 8, !13, i64 32, !42, i64 56, !22, i64 104}
!37 = !{!"_ZTSN5euler6common18WeightedCollectionIiEE"}
!38 = !{!"_ZTSSt6vectorIiSaIiEE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!"_ZTSN5euler6common11AliasMethodE", !13, i64 0, !43, i64 24}
!43 = !{!"_ZTSSt6vectorIlSaIlEE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!"_ZTSSt6vectorIN5euler6common22FastWeightedCollectionImEESaIS3_EE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseIN5euler6common22FastWeightedCollectionImEESaIS3_EE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIN5euler6common22FastWeightedCollectionImEESaIS3_EE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIN5euler6common22FastWeightedCollectionImEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!51 = !{!"_ZTSSt6vectorIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!55 = !{i8 0, i8 2}
!56 = !{}
!57 = !{!58, !10, i64 0}
!58 = !{!"_ZTSSt4pairIifE", !10, i64 0, !22, i64 4}
!59 = !{!60, !60, i64 0}
!60 = !{!"vtable pointer", !8, i64 0}
!61 = distinct !{!61, !62}
!62 = !{!"llvm.loop.mustprogress"}
!63 = distinct !{!63, !62}


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

%"class.std::vector.189" = type { %"struct.std::_Vector_base.190" }
%"struct.std::_Vector_base.190" = type { %"struct.std::_Vector_base<std::tuple<unsigned long, unsigned long, int>, std::allocator<std::tuple<unsigned long, unsigned long, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<unsigned long, unsigned long, int>, std::allocator<std::tuple<unsigned long, unsigned long, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<unsigned long, unsigned long, int>, std::allocator<std::tuple<unsigned long, unsigned long, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<unsigned long, unsigned long, int>, std::allocator<std::tuple<unsigned long, unsigned long, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.euler::LogMessage" = type { %"class.std::__cxx11::basic_ostringstream.base", ptr, i32, i32, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"struct.std::pair.194" = type <{ %"class.std::tuple", float, [4 x i8] }>
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.106", %"struct.std::_Head_base.109" }
%"struct.std::_Tuple_impl.106" = type { %"struct.std::_Tuple_impl.107", %"struct.std::_Head_base.108" }
%"struct.std::_Tuple_impl.107" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.108" = type { i64 }
%"struct.std::_Head_base.109" = type { i64 }

@.str.24 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [40 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA40_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(40)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK5euler6common22FastWeightedCollectionIiE6SampleEv(ptr noundef nonnull align 8 dereferenceable(108)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK5euler5Graph10SampleEdgeEii(ptr dead_on_unwind noalias writable sret(%"class.std::vector.189") align 8 %0, ptr noundef nonnull align 8 dereferenceable(816) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.euler::LogMessage", align 8
  %6 = alloca %"struct.std::pair.194", align 8
  %7 = alloca %"struct.std::pair.194", align 8
  %8 = getelementptr inbounds i8, ptr %1, i64 218
  %9 = load i8, ptr %8, align 2, !tbaa !5, !range !53, !noundef !54
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %16, label %11

11:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %5) #6
  call void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %5, ptr noundef nonnull @.str.24, i32 noundef 280, i32 noundef 3)
  %12 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA40_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %5, ptr noundef nonnull align 1 dereferenceable(40) @.str.46)
          to label %13 unwind label %14

13:                                               ; preds = %11
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %5) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %5) #6
  br label %16

14:                                               ; preds = %11
  %15 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %5) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %5) #6
  br label %64

16:                                               ; preds = %13, %4
  call void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %17 = sext i32 %3 to i64
  invoke void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %17)
          to label %18 unwind label %26

18:                                               ; preds = %16
  %19 = icmp eq i32 %2, -1
  br i1 %19, label %20, label %43

20:                                               ; preds = %18
  %21 = getelementptr inbounds i8, ptr %1, i64 656
  %22 = call noundef float @_ZNK5euler6common22FastWeightedCollectionIiE12GetSumWeightEv(ptr noundef nonnull align 8 dereferenceable(108) %21)
  %23 = fcmp une float %22, 0.000000e+00
  %24 = icmp sgt i32 %3, 0
  %or.cond = and i1 %23, %24
  br i1 %or.cond, label %.lr.ph28, label %.loopexit

.lr.ph28:                                         ; preds = %20
  %25 = getelementptr inbounds i8, ptr %1, i64 792
  br label %28

26:                                               ; preds = %43, %16
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %63

28:                                               ; preds = %.lr.ph28, %37
  %.01527 = phi i32 [ 0, %.lr.ph28 ], [ %38, %37 ]
  %29 = invoke i64 @_ZNK5euler6common22FastWeightedCollectionIiE6SampleEv(ptr noundef nonnull align 8 dereferenceable(108) %21)
          to label %30 unwind label %39

30:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  %sext = shl i64 %29, 32
  %31 = ashr exact i64 %sext, 32
  %32 = call noundef nonnull align 8 dereferenceable(108) ptr @_ZNKSt6vectorIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %31) #6
  %33 = load ptr, ptr %32, align 8, !tbaa !55
  %34 = getelementptr inbounds i8, ptr %33, i64 32
  %35 = load ptr, ptr %34, align 8
  invoke void %35(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.194") align 8 %6, ptr noundef nonnull align 8 dereferenceable(108) %32)
          to label %36 unwind label %41

36:                                               ; preds = %30
  invoke void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %37 unwind label %41

37:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  %38 = add nuw nsw i32 %.01527, 1
  %exitcond31.not = icmp eq i32 %38, %3
  br i1 %exitcond31.not, label %.loopexit, label %28, !llvm.loop !57

39:                                               ; preds = %28
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %63

41:                                               ; preds = %36, %30
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %63

43:                                               ; preds = %18
  %44 = getelementptr inbounds i8, ptr %1, i64 792
  %45 = sext i32 %2 to i64
  %46 = call noundef nonnull align 8 dereferenceable(108) ptr @_ZNKSt6vectorIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %45) #6
  %47 = load ptr, ptr %46, align 8, !tbaa !55
  %48 = getelementptr inbounds i8, ptr %47, i64 56
  %49 = load ptr, ptr %48, align 8
  %50 = invoke noundef float %49(ptr noundef nonnull align 8 dereferenceable(108) %46)
          to label %51 unwind label %26

51:                                               ; preds = %43
  %52 = fcmp une float %50, 0.000000e+00
  %53 = icmp sgt i32 %3, 0
  %or.cond29 = and i1 %52, %53
  br i1 %or.cond29, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %51, %59
  %.026 = phi i32 [ %60, %59 ], [ 0, %51 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  %54 = call noundef nonnull align 8 dereferenceable(108) ptr @_ZNKSt6vectorIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %45) #6
  %55 = load ptr, ptr %54, align 8, !tbaa !55
  %56 = getelementptr inbounds i8, ptr %55, i64 32
  %57 = load ptr, ptr %56, align 8
  invoke void %57(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.194") align 8 %7, ptr noundef nonnull align 8 dereferenceable(108) %54)
          to label %58 unwind label %61

58:                                               ; preds = %.lr.ph
  invoke void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %59 unwind label %61

59:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  %60 = add nuw nsw i32 %.026, 1
  %exitcond.not = icmp eq i32 %60, %3
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !59

61:                                               ; preds = %58, %.lr.ph
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %63

.loopexit:                                        ; preds = %59, %37, %20, %51
  ret void

63:                                               ; preds = %39, %41, %61, %26
  %.pn.pn = phi { ptr, i32 } [ %62, %61 ], [ %27, %26 ], [ %42, %41 ], [ %40, %39 ]
  call void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %64

64:                                               ; preds = %63, %14
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %63 ], [ %15, %14 ]
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #6 = { 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, !25, i64 218}
!6 = !{!"_ZTSN5euler5GraphE", !7, i64 0, !7, i64 24, !14, i64 48, !20, i64 104, !22, i64 160, !24, i64 216, !25, i64 217, !25, i64 218, !25, i64 219, !26, i64 220, !26, i64 224, !27, i64 232, !34, i64 544, !34, i64 656, !45, i64 768, !49, i64 792}
!7 = !{!"_ZTSSt6vectorIfSaIfEE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt13unordered_mapImPN5euler4NodeESt4hashImESt8equal_toImESaISt4pairIKmS2_EEE", !15, i64 0}
!15 = !{!"_ZTSSt10_HashtableImSt4pairIKmPN5euler4NodeEESaIS5_ENSt8__detail10_Select1stESt8equal_toImESt4hashImENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !11, i64 0, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !11, i64 48}
!16 = !{!"long", !12, i64 0}
!17 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!18 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !19, i64 0, !16, i64 8}
!19 = !{!"float", !12, i64 0}
!20 = !{!"_ZTSSt13unordered_mapISt5tupleIJmmiEEPN5euler4EdgeENS2_6common14EdgeIDHashFuncENS5_14EdgeIDEqualKeyESaISt4pairIKS1_S4_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_HashtableISt5tupleIJmmiEESt4pairIKS1_PN5euler4EdgeEESaIS7_ENSt8__detail10_Select1stENS4_6common14EdgeIDEqualKeyENSB_14EdgeIDHashFuncENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb1ELb0ELb1EEEE", !11, i64 0, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !11, i64 48}
!22 = !{!"_ZTSSt13unordered_mapImSt5tupleIJmmiEESt4hashImESt8equal_toImESaISt4pairIKmS1_EEE", !23, i64 0}
!23 = !{!"_ZTSSt10_HashtableImSt4pairIKmSt5tupleIJmmiEEESaIS4_ENSt8__detail10_Select1stESt8equal_toImESt4hashImENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !11, i64 0, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !11, i64 48}
!24 = !{!"_ZTSN5euler6common14EdgeIDHashFuncE"}
!25 = !{!"bool", !12, i64 0}
!26 = !{!"int", !12, i64 0}
!27 = !{!"_ZTSN5euler9GraphMetaE", !28, i64 0, !28, i64 32, !16, i64 64, !16, i64 72, !26, i64 80, !30, i64 88, !30, i64 144, !32, i64 200, !32, i64 256}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !29, i64 0, !16, i64 8, !12, i64 16}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!30 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt5tupleIJN5euler11FeatureTypeEilEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEE", !31, i64 0}
!31 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St5tupleIJN5euler11FeatureTypeEilEEESaISC_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSE_18_Mod_range_hashingENSE_20_Default_ranged_hashENSE_20_Prime_rehash_policyENSE_17_Hashtable_traitsILb1ELb0ELb1EEEE", !11, i64 0, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !11, i64 48}
!32 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE", !33, i64 0}
!33 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_jESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !11, i64 0, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !11, i64 48}
!34 = !{!"_ZTSN5euler6common22FastWeightedCollectionIiEE", !35, i64 0, !36, i64 8, !7, i64 32, !40, i64 56, !19, i64 104}
!35 = !{!"_ZTSN5euler6common18WeightedCollectionIiEE"}
!36 = !{!"_ZTSSt6vectorIiSaIiEE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!40 = !{!"_ZTSN5euler6common11AliasMethodE", !7, i64 0, !41, i64 24}
!41 = !{!"_ZTSSt6vectorIlSaIlEE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!45 = !{!"_ZTSSt6vectorIN5euler6common22FastWeightedCollectionImEESaIS3_EE", !46, i64 0}
!46 = !{!"_ZTSSt12_Vector_baseIN5euler6common22FastWeightedCollectionImEESaIS3_EE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIN5euler6common22FastWeightedCollectionImEESaIS3_EE12_Vector_implE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIN5euler6common22FastWeightedCollectionImEESaIS3_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!49 = !{!"_ZTSSt6vectorIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EE", !50, i64 0}
!50 = !{!"_ZTSSt12_Vector_baseIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EE12_Vector_implE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = !{!56, !56, i64 0}
!56 = !{!"vtable pointer", !13, i64 0}
!57 = distinct !{!57, !58}
!58 = !{!"llvm.loop.mustprogress"}
!59 = distinct !{!59, !58}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass