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

; 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 }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.162" }
%"class.std::_Hashtable.162" = 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.__gnu_cxx::__normal_iterator.181" = type { ptr }
%"struct.std::hash.166" = type { i8 }
%"struct.std::equal_to.169" = type { i8 }
%"class.std::allocator.79" = type { i8 }
%"class.std::vector.182" = type { %"struct.std::_Vector_base.183" }
%"struct.std::_Vector_base.183" = type { %"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::__detail::_Node_iterator.187" = type { %"struct.std::__detail::_Node_iterator_base.188" }
%"struct.std::__detail::_Node_iterator_base.188" = type { ptr }
%"struct.std::pair.154" = type { i32, float }
%"class.euler::common::CompactWeightedCollection" = type <{ %"class.euler::common::WeightedCollection", %"class.std::vector.77", %"class.std::vector.3", 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.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 }
%"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::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 }
%"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::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 ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5euler6common25CompactWeightedCollectionIiE4InitERKSt6vectorISt4pairIifESaIS5_EE(ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5euler6common25CompactWeightedCollectionIiED2Ev(ptr noundef nonnull align 8 dereferenceable(60)) unnamed_addr #6 align 2

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

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

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK5euler5Graph10SampleEdgeERKSt6vectorIiSaIiEEi(ptr dead_on_unwind noalias writable sret(%"class.std::vector.189") align 8 %0, ptr noundef nonnull align 8 dereferenceable(816) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %3) #5 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %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 %"class.std::unordered_set", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.181", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.181", align 8
  %16 = alloca %"struct.std::hash.166", align 1
  %17 = alloca %"struct.std::equal_to.169", align 1
  %18 = alloca %"class.std::allocator.79", align 1
  %19 = alloca %"class.std::vector.182", align 8
  %20 = alloca i64, align 8
  %21 = alloca %"struct.std::__detail::_Node_iterator.187", align 8
  %22 = alloca %"struct.std::pair.154", align 4
  %23 = alloca %"struct.std::__detail::_Node_iterator.187", align 8
  %24 = alloca %"struct.std::pair.154", align 4
  %25 = alloca %"class.euler::common::CompactWeightedCollection", align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"struct.std::pair.154", align 4
  %29 = alloca %"struct.std::pair.194", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  %30 = load ptr, ptr %6, align 8
  %31 = getelementptr inbounds %"class.euler::Graph", ptr %30, i32 0, i32 7
  %32 = load i8, ptr %31, align 2, !tbaa !11, !range !55, !noundef !56
  %33 = trunc i8 %32 to i1
  br i1 %33, label %41, label %34

34:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 392, ptr %9) #7
  call void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %9, ptr noundef @.str.24, i32 noundef 306, i32 noundef 3)
  %35 = 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 %36 unwind label %37

36:                                               ; preds = %34
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %9) #7
  call void @llvm.lifetime.end.p0(i64 392, ptr %9) #7
  br label %41

37:                                               ; preds = %34
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %10, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %11, align 4
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %9) #7
  call void @llvm.lifetime.end.p0(i64 392, ptr %9) #7
  br label %173

41:                                               ; preds = %36, %4
  store i1 false, ptr %12, align 1
  call void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  invoke void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %43)
          to label %44 unwind label %66

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 56, ptr %13) #7
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #7
  %47 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.181", ptr %14, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #7
  %50 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.181", ptr %15, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.181", ptr %14, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.181", ptr %15, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8
  invoke void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEEC2IN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiS4_EEEEET_SE_mRKS1_RKS3_RKS4_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr %52, ptr %54, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %16, ptr noundef nonnull align 1 dereferenceable(1) %17, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %55 unwind label %70

55:                                               ; preds = %44
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #7
  call void @_ZNSt6vectorISt4pairIifESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #7
  invoke void @_ZNSt6vectorISt4pairIifESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %57)
          to label %58 unwind label %74

58:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  store i64 0, ptr %20, align 8, !tbaa !57
  br label %59

59:                                               ; preds = %111, %58
  %60 = load i64, ptr %20, align 8, !tbaa !57
  %61 = getelementptr inbounds %"class.euler::Graph", ptr %30, i32 0, i32 13
  %62 = invoke noundef i64 @_ZNK5euler6common22FastWeightedCollectionIiE7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(108) %61)
          to label %63 unwind label %78

63:                                               ; preds = %59
  %64 = icmp ult i64 %60, %62
  br i1 %64, label %82, label %65

65:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %115

66:                                               ; preds = %41
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %10, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %11, align 4
  br label %172

70:                                               ; preds = %44
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %10, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %11, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  br label %169

74:                                               ; preds = %55
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %10, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %11, align 4
  br label %168

78:                                               ; preds = %59
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %10, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %11, align 4
  br label %114

82:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %83 = getelementptr inbounds %"class.euler::Graph", ptr %30, i32 0, i32 13
  %84 = load i64, ptr %20, align 8, !tbaa !57
  %85 = invoke i64 @_ZNK5euler6common22FastWeightedCollectionIiE3GetEm(ptr noundef nonnull align 8 dereferenceable(108) %83, i64 noundef %84)
          to label %86 unwind label %102

86:                                               ; preds = %82
  store i64 %85, ptr %22, align 4
  %87 = getelementptr inbounds %"struct.std::pair.154", ptr %22, i32 0, i32 0
  %88 = invoke ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 4 dereferenceable(4) %87)
          to label %89 unwind label %102

89:                                               ; preds = %86
  %90 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.187", ptr %21, i32 0, i32 0
  %91 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.188", ptr %90, i32 0, i32 0
  store ptr %88, ptr %91, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %92 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %13) #7
  %93 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.187", ptr %23, i32 0, i32 0
  %94 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.188", ptr %93, i32 0, i32 0
  store ptr %92, ptr %94, align 8
  %95 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br i1 %95, label %96, label %110

96:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %97 = getelementptr inbounds %"class.euler::Graph", ptr %30, i32 0, i32 13
  %98 = load i64, ptr %20, align 8, !tbaa !57
  %99 = invoke i64 @_ZNK5euler6common22FastWeightedCollectionIiE3GetEm(ptr noundef nonnull align 8 dereferenceable(108) %97, i64 noundef %98)
          to label %100 unwind label %106

100:                                              ; preds = %96
  store i64 %99, ptr %24, align 4
  invoke void @_ZNSt6vectorISt4pairIifESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 4 dereferenceable(8) %24)
          to label %101 unwind label %106

101:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %110

102:                                              ; preds = %86, %82
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %10, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %114

106:                                              ; preds = %100, %96
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %10, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %114

110:                                              ; preds = %101, %89
  br label %111

111:                                              ; preds = %110
  %112 = load i64, ptr %20, align 8, !tbaa !57
  %113 = add i64 %112, 1
  store i64 %113, ptr %20, align 8, !tbaa !57
  br label %59, !llvm.loop !58

114:                                              ; preds = %106, %102, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %168

115:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #7
  invoke void @_ZN5euler6common25CompactWeightedCollectionIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(60) %25)
          to label %116 unwind label %128

116:                                              ; preds = %115
  %117 = invoke noundef zeroext i1 @_ZN5euler6common25CompactWeightedCollectionIiE4InitERKSt6vectorISt4pairIifESaIS5_EE(ptr noundef nonnull align 8 dereferenceable(60) %25, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %118 unwind label %132

118:                                              ; preds = %116
  %119 = invoke noundef float @_ZNK5euler6common25CompactWeightedCollectionIiE12GetSumWeightEv(ptr noundef nonnull align 8 dereferenceable(60) %25)
          to label %120 unwind label %132

120:                                              ; preds = %118
  %121 = fcmp ogt float %119, 0.000000e+00
  br i1 %121, label %122, label %164

122:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %151, %122
  %124 = load i32, ptr %26, align 4, !tbaa !9
  %125 = load i32, ptr %8, align 4, !tbaa !9
  %126 = icmp slt i32 %124, %125
  br i1 %126, label %136, label %127

127:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %163

128:                                              ; preds = %115
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %10, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %11, align 4
  br label %167

132:                                              ; preds = %118, %116
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %10, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %11, align 4
  br label %166

136:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %137 = invoke i64 @_ZNK5euler6common25CompactWeightedCollectionIiE6SampleEv(ptr noundef nonnull align 8 dereferenceable(60) %25)
          to label %138 unwind label %154

138:                                              ; preds = %136
  store i64 %137, ptr %28, align 4
  %139 = getelementptr inbounds %"struct.std::pair.154", ptr %28, i32 0, i32 0
  %140 = load i32, ptr %139, align 4, !tbaa !60
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  store i32 %140, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #7
  %141 = getelementptr inbounds %"class.euler::Graph", ptr %30, i32 0, i32 15
  %142 = load i32, ptr %27, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 8 dereferenceable(108) ptr @_ZNKSt6vectorIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %143) #7
  %145 = load ptr, ptr %144, align 8, !tbaa !62
  %146 = getelementptr inbounds ptr, ptr %145, i64 4
  %147 = load ptr, ptr %146, align 8
  invoke void %147(ptr dead_on_unwind writable sret(%"struct.std::pair.194") align 8 %29, ptr noundef nonnull align 8 dereferenceable(108) %144)
          to label %148 unwind label %158

148:                                              ; preds = %138
  %149 = getelementptr inbounds %"struct.std::pair.194", ptr %29, i32 0, i32 0
  invoke void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %149)
          to label %150 unwind label %158

150:                                              ; preds = %148
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %26, align 4, !tbaa !9
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %26, align 4, !tbaa !9
  br label %123, !llvm.loop !64

154:                                              ; preds = %136
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %10, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %162

158:                                              ; preds = %148, %138
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %10, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  br label %162

162:                                              ; preds = %158, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %166

163:                                              ; preds = %127
  br label %164

164:                                              ; preds = %163, %120
  store i1 true, ptr %12, align 1
  call void @_ZN5euler6common25CompactWeightedCollectionIiED2Ev(ptr noundef nonnull align 8 dereferenceable(60) %25) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #7
  call void @_ZNSt6vectorISt4pairIifESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #7
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #7
  %165 = load i1, ptr %12, align 1
  br i1 %165, label %171, label %170

166:                                              ; preds = %162, %132
  call void @_ZN5euler6common25CompactWeightedCollectionIiED2Ev(ptr noundef nonnull align 8 dereferenceable(60) %25) #7
  br label %167

167:                                              ; preds = %166, %128
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #7
  br label %168

168:                                              ; preds = %167, %114, %74
  call void @_ZNSt6vectorISt4pairIifESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #7
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #7
  br label %169

169:                                              ; preds = %168, %70
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #7
  br label %172

170:                                              ; preds = %164
  call void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %171

171:                                              ; preds = %170, %164
  ret void

172:                                              ; preds = %169, %66
  call void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %173

173:                                              ; preds = %172, %37
  %174 = load ptr, ptr %10, align 8
  %175 = load i32, ptr %11, align 4
  %176 = insertvalue { ptr, i32 } poison, ptr %174, 0
  %177 = insertvalue { ptr, i32 } %176, i32 %175, 1
  resume { ptr, i32 } %177
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { 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 #7 = { 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 = !{!19, !19, i64 0}
!58 = distinct !{!58, !59}
!59 = !{!"llvm.loop.mustprogress"}
!60 = !{!61, !10, i64 0}
!61 = !{!"_ZTSSt4pairIifE", !10, i64 0, !22, i64 4}
!62 = !{!63, !63, i64 0}
!63 = !{!"vtable pointer", !8, i64 0}
!64 = distinct !{!64, !59}


; 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 }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.162" }
%"class.std::_Hashtable.162" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::hash.166" = type { i8 }
%"struct.std::equal_to.169" = type { i8 }
%"class.std::allocator.79" = type { i8 }
%"class.std::vector.182" = type { %"struct.std::_Vector_base.183" }
%"struct.std::_Vector_base.183" = type { %"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::__detail::_Node_iterator.187" = type { %"struct.std::__detail::_Node_iterator_base.188" }
%"struct.std::__detail::_Node_iterator_base.188" = type { ptr }
%"struct.std::pair.154" = type { i32, float }
%"class.euler::common::CompactWeightedCollection" = type <{ %"class.euler::common::WeightedCollection", %"class.std::vector.77", %"class.std::vector.3", 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.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 }
%"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 ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5euler6common25CompactWeightedCollectionIiE4InitERKSt6vectorISt4pairIifESaIS5_EE(ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5euler6common25CompactWeightedCollectionIiED2Ev(ptr noundef nonnull align 8 dereferenceable(60)) unnamed_addr #6 align 2

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

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

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK5euler5Graph10SampleEdgeERKSt6vectorIiSaIiEEi(ptr dead_on_unwind noalias writable sret(%"class.std::vector.189") align 8 %0, ptr noundef nonnull align 8 dereferenceable(816) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %3) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.euler::LogMessage", align 8
  %6 = alloca %"class.std::unordered_set", align 8
  %7 = alloca %"struct.std::hash.166", align 1
  %8 = alloca %"struct.std::equal_to.169", align 1
  %9 = alloca %"class.std::allocator.79", align 1
  %10 = alloca %"class.std::vector.182", align 8
  %11 = alloca %"struct.std::__detail::_Node_iterator.187", align 8
  %12 = alloca %"struct.std::pair.154", align 8
  %13 = alloca %"struct.std::__detail::_Node_iterator.187", align 8
  %14 = alloca %"struct.std::pair.154", align 8
  %15 = alloca %"class.euler::common::CompactWeightedCollection", align 8
  %16 = alloca %"struct.std::pair.194", align 8
  %17 = getelementptr inbounds i8, ptr %1, i64 218
  %18 = load i8, ptr %17, align 2, !tbaa !5, !range !53, !noundef !54
  %19 = trunc nuw i8 %18 to i1
  br i1 %19, label %25, label %20

20:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %5) #7
  call void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %5, ptr noundef nonnull @.str.24, i32 noundef 306, i32 noundef 3)
  %21 = 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 %22 unwind label %23

22:                                               ; preds = %20
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %5) #7
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %5) #7
  br label %25

23:                                               ; preds = %20
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %5) #7
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %5) #7
  br label %85

25:                                               ; preds = %22, %4
  call void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %26 = sext i32 %3 to i64
  invoke void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %26)
          to label %27 unwind label %35

27:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %6) #7
  %28 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %29 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  invoke void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEEC2IN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiS4_EEEEET_SE_mRKS1_RKS3_RKS4_(ptr noundef nonnull align 8 dereferenceable(56) %6, ptr %28, ptr %29, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull align 1 dereferenceable(1) %8, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %30 unwind label %37

30:                                               ; preds = %27
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  call void @_ZNSt6vectorISt4pairIifESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %31 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  invoke void @_ZNSt6vectorISt4pairIifESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %31)
          to label %.preheader34 unwind label %39

.preheader34:                                     ; preds = %30
  %32 = getelementptr inbounds i8, ptr %1, i64 656
  %33 = call noundef i64 @_ZNK5euler6common22FastWeightedCollectionIiE7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(108) %32)
  %.not = icmp eq i64 %33, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %55, %.preheader34
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #7
  call void @_ZN5euler6common25CompactWeightedCollectionIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(60) %15)
  %34 = invoke noundef zeroext i1 @_ZN5euler6common25CompactWeightedCollectionIiE4InitERKSt6vectorISt4pairIifESaIS5_EE(ptr noundef nonnull align 8 dereferenceable(60) %15, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %59 unwind label %64

35:                                               ; preds = %25
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %84

37:                                               ; preds = %27
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  br label %83

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

.lr.ph:                                           ; preds = %.preheader34, %55
  %.02535 = phi i64 [ %56, %55 ], [ 0, %.preheader34 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %41 = invoke i64 @_ZNK5euler6common22FastWeightedCollectionIiE3GetEm(ptr noundef nonnull align 8 dereferenceable(108) %32, i64 noundef %.02535)
          to label %42 unwind label %51

42:                                               ; preds = %.lr.ph
  store i64 %41, ptr %12, align 8
  %43 = invoke ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %44 unwind label %51

44:                                               ; preds = %42
  store ptr %43, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %45 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %6) #7
  store ptr %45, ptr %13, align 8
  %46 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br i1 %46, label %47, label %55

47:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %48 = invoke i64 @_ZNK5euler6common22FastWeightedCollectionIiE3GetEm(ptr noundef nonnull align 8 dereferenceable(108) %32, i64 noundef %.02535)
          to label %49 unwind label %53

49:                                               ; preds = %47
  store i64 %48, ptr %14, align 8
  invoke void @_ZNSt6vectorISt4pairIifESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %50 unwind label %53

50:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %55

51:                                               ; preds = %42, %.lr.ph
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %82

53:                                               ; preds = %49, %47
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %82

55:                                               ; preds = %44, %50
  %56 = add nuw i64 %.02535, 1
  %57 = call noundef i64 @_ZNK5euler6common22FastWeightedCollectionIiE7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(108) %32)
  %58 = icmp ult i64 %56, %57
  br i1 %58, label %.lr.ph, label %._crit_edge, !llvm.loop !55

59:                                               ; preds = %._crit_edge
  %60 = call noundef float @_ZNK5euler6common25CompactWeightedCollectionIiE12GetSumWeightEv(ptr noundef nonnull align 8 dereferenceable(60) %15)
  %61 = fcmp ogt float %60, 0.000000e+00
  %62 = icmp sgt i32 %3, 0
  %or.cond = and i1 %61, %62
  br i1 %or.cond, label %.lr.ph37, label %.loopexit

.lr.ph37:                                         ; preds = %59
  %63 = getelementptr inbounds i8, ptr %1, i64 792
  br label %66

64:                                               ; preds = %._crit_edge
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %81

66:                                               ; preds = %.lr.ph37, %75
  %.02436 = phi i32 [ 0, %.lr.ph37 ], [ %76, %75 ]
  %67 = invoke i64 @_ZNK5euler6common25CompactWeightedCollectionIiE6SampleEv(ptr noundef nonnull align 8 dereferenceable(60) %15)
          to label %68 unwind label %77

68:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #7
  %sext = shl i64 %67, 32
  %69 = ashr exact i64 %sext, 32
  %70 = call noundef nonnull align 8 dereferenceable(108) ptr @_ZNKSt6vectorIN5euler6common22FastWeightedCollectionISt5tupleIJmmiEEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %69) #7
  %71 = load ptr, ptr %70, align 8, !tbaa !57
  %72 = getelementptr inbounds i8, ptr %71, i64 32
  %73 = load ptr, ptr %72, align 8
  invoke void %73(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.194") align 8 %16, ptr noundef nonnull align 8 dereferenceable(108) %70)
          to label %74 unwind label %79

74:                                               ; preds = %68
  invoke void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %75 unwind label %79

75:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  %76 = add nuw nsw i32 %.02436, 1
  %exitcond.not = icmp eq i32 %76, %3
  br i1 %exitcond.not, label %.loopexit, label %66, !llvm.loop !59

77:                                               ; preds = %66
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %81

79:                                               ; preds = %74, %68
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  br label %81

.loopexit:                                        ; preds = %75, %59
  call void @_ZN5euler6common25CompactWeightedCollectionIiED2Ev(ptr noundef nonnull align 8 dereferenceable(60) %15) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #7
  call void @_ZNSt6vectorISt4pairIifESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #7
  ret void

81:                                               ; preds = %77, %79, %64
  %.pn.pn = phi { ptr, i32 } [ %65, %64 ], [ %80, %79 ], [ %78, %77 ]
  call void @_ZN5euler6common25CompactWeightedCollectionIiED2Ev(ptr noundef nonnull align 8 dereferenceable(60) %15) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #7
  br label %82

82:                                               ; preds = %51, %53, %81, %39
  %.pn28.pn = phi { ptr, i32 } [ %.pn.pn, %81 ], [ %40, %39 ], [ %54, %53 ], [ %52, %51 ]
  call void @_ZNSt6vectorISt4pairIifESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #7
  br label %83

83:                                               ; preds = %82, %37
  %.pn28.pn.pn = phi { ptr, i32 } [ %.pn28.pn, %82 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #7
  br label %84

84:                                               ; preds = %83, %35
  %.pn28.pn.pn.pn = phi { ptr, i32 } [ %.pn28.pn.pn, %83 ], [ %36, %35 ]
  call void @_ZNSt6vectorISt5tupleIJmmiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %85

85:                                               ; preds = %84, %23
  %.pn28.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn28.pn.pn.pn, %84 ], [ %24, %23 ]
  resume { ptr, i32 } %.pn28.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { 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 #7 = { 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 = distinct !{!55, !56}
!56 = !{!"llvm.loop.mustprogress"}
!57 = !{!58, !58, i64 0}
!58 = !{!"vtable pointer", !13, i64 0}
!59 = distinct !{!59, !56}


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