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

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

%"struct.std::__detail::_Node_const_iterator.144" = type { %"struct.std::__detail::_Node_iterator_base.103" }
%"struct.std::__detail::_Node_iterator_base.103" = type { ptr }
%"struct.std::pair.132" = type { i64, %"class.std::tuple" }
%"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 }
%"struct.std::pair.141" = type <{ %"struct.std::__detail::_Node_iterator.130", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator.130" = type { %"struct.std::__detail::_Node_iterator_base.131" }
%"struct.std::__detail::_Node_iterator_base.131" = type { ptr }
%"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::__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::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 }
%"struct.std::pair.104" = type { %"class.std::tuple", ptr }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5euler5Graph11AddEdgeFromERKSt13unordered_mapISt5tupleIJmmiEEPNS_4EdgeENS_6common14EdgeIDHashFuncENS6_14EdgeIDEqualKeyESaISt4pairIKS3_S5_EEE(ptr noundef nonnull align 8 dereferenceable(816) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.std::__detail::_Node_const_iterator.144", align 8
  %6 = alloca %"struct.std::__detail::_Node_const_iterator.144", align 8
  %7 = alloca %"struct.std::__detail::_Node_const_iterator.144", align 8
  %8 = alloca %"struct.std::__detail::_Node_const_iterator.144", align 8
  %9 = alloca %"struct.std::pair.132", align 8
  %10 = alloca i64, align 8
  %11 = alloca %"struct.std::pair.141", align 8
  %12 = alloca %"struct.std::__detail::_Node_const_iterator.144", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  %14 = getelementptr inbounds %"class.euler::Graph", ptr %13, i32 0, i32 3
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = call ptr @_ZNKSt13unordered_mapISt5tupleIJmmiEEPN5euler4EdgeENS2_6common14EdgeIDHashFuncENS5_14EdgeIDEqualKeyESaISt4pairIKS1_S4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %15) #3
  %17 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.144", ptr %5, i32 0, i32 0
  %18 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.103", ptr %17, i32 0, i32 0
  store ptr %16, ptr %18, align 8
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = call ptr @_ZNKSt13unordered_mapISt5tupleIJmmiEEPN5euler4EdgeENS2_6common14EdgeIDHashFuncENS5_14EdgeIDEqualKeyESaISt4pairIKS1_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %19) #3
  %21 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.144", ptr %6, i32 0, i32 0
  %22 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.103", ptr %21, i32 0, i32 0
  store ptr %20, ptr %22, align 8
  %23 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.144", ptr %5, i32 0, i32 0
  %24 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.103", ptr %23, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8
  %26 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.144", ptr %6, i32 0, i32 0
  %27 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.103", ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8
  call void @_ZNSt13unordered_mapISt5tupleIJmmiEEPN5euler4EdgeENS2_6common14EdgeIDHashFuncENS5_14EdgeIDEqualKeyESaISt4pairIKS1_S4_EEE6insertINSt8__detail20_Node_const_iteratorISA_Lb0ELb1EEEEEvT_SH_(ptr noundef nonnull align 8 dereferenceable(56) %14, ptr %25, ptr %28)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = call ptr @_ZNKSt13unordered_mapISt5tupleIJmmiEEPN5euler4EdgeENS2_6common14EdgeIDHashFuncENS5_14EdgeIDEqualKeyESaISt4pairIKS1_S4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %29) #3
  %31 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.144", ptr %7, i32 0, i32 0
  %32 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.103", ptr %31, i32 0, i32 0
  store ptr %30, ptr %32, align 8
  br label %33

33:                                               ; preds = %53, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = call ptr @_ZNKSt13unordered_mapISt5tupleIJmmiEEPN5euler4EdgeENS2_6common14EdgeIDHashFuncENS5_14EdgeIDEqualKeyESaISt4pairIKS1_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %34) #3
  %36 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.144", ptr %8, i32 0, i32 0
  %37 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.103", ptr %36, i32 0, i32 0
  store ptr %35, ptr %37, align 8
  %38 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKSt5tupleIJmmiEEPN5euler4EdgeEELb1EEESB_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br i1 %38, label %40, label %39

39:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %57

40:                                               ; preds = %33
  %41 = getelementptr inbounds %"class.euler::Graph", ptr %13, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %42 = getelementptr inbounds i8, ptr %13, i64 216
  %43 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKSt5tupleIJmmiEEPN5euler4EdgeEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  %44 = getelementptr inbounds %"struct.std::pair.104", ptr %43, i32 0, i32 0
  %45 = call noundef i64 @_ZNK5euler6common14EdgeIDHashFuncclERKSt5tupleIJmmiEE(ptr noundef nonnull align 1 dereferenceable(1) %42, ptr noundef nonnull align 8 dereferenceable(24) %44)
  store i64 %45, ptr %10, align 8, !tbaa !9
  %46 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKSt5tupleIJmmiEEPN5euler4EdgeEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  %47 = getelementptr inbounds %"struct.std::pair.104", ptr %46, i32 0, i32 0
  call void @_ZNSt4pairIKmSt5tupleIJmmiEEEC2ImRKS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(24) %47)
  %48 = call { ptr, i8 } @_ZNSt13unordered_mapImSt5tupleIJmmiEESt4hashImESt8equal_toImESaISt4pairIKmS1_EEE6insertEOS8_(ptr noundef nonnull align 8 dereferenceable(56) %41, ptr noundef nonnull align 8 dereferenceable(32) %9)
  %49 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 0
  %50 = extractvalue { ptr, i8 } %48, 0
  store ptr %50, ptr %49, align 8
  %51 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 1
  %52 = extractvalue { ptr, i8 } %48, 1
  store i8 %52, ptr %51, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #3
  br label %53

53:                                               ; preds = %40
  %54 = call ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKSt5tupleIJmmiEEPN5euler4EdgeEELb0ELb1EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #3
  %55 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.144", ptr %12, i32 0, i32 0
  %56 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.103", ptr %55, i32 0, i32 0
  store ptr %54, ptr %56, align 8
  br label %33, !llvm.loop !11

57:                                               ; preds = %39
  ret i1 true
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIKmSt5tupleIJmmiEEEC2ImRKS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

%"struct.std::__detail::_Node_const_iterator.144" = type { %"struct.std::__detail::_Node_iterator_base.103" }
%"struct.std::__detail::_Node_iterator_base.103" = type { ptr }
%"struct.std::pair.132" = type { i64, %"class.std::tuple" }
%"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 }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5euler5Graph11AddEdgeFromERKSt13unordered_mapISt5tupleIJmmiEEPNS_4EdgeENS_6common14EdgeIDHashFuncENS6_14EdgeIDEqualKeyESaISt4pairIKS3_S5_EEE(ptr noundef nonnull align 8 dereferenceable(816) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) local_unnamed_addr #2 align 2 {
  %3 = alloca %"struct.std::__detail::_Node_const_iterator.144", align 8
  %4 = alloca %"struct.std::__detail::_Node_const_iterator.144", align 8
  %5 = alloca %"struct.std::pair.132", align 8
  %6 = alloca i64, align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 104
  %8 = tail call ptr @_ZNKSt13unordered_mapISt5tupleIJmmiEEPN5euler4EdgeENS2_6common14EdgeIDHashFuncENS5_14EdgeIDEqualKeyESaISt4pairIKS1_S4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #3
  %9 = tail call ptr @_ZNKSt13unordered_mapISt5tupleIJmmiEEPN5euler4EdgeENS2_6common14EdgeIDHashFuncENS5_14EdgeIDEqualKeyESaISt4pairIKS1_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #3
  tail call void @_ZNSt13unordered_mapISt5tupleIJmmiEEPN5euler4EdgeENS2_6common14EdgeIDHashFuncENS5_14EdgeIDEqualKeyESaISt4pairIKS1_S4_EEE6insertINSt8__detail20_Node_const_iteratorISA_Lb0ELb1EEEEEvT_SH_(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr %8, ptr %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %10 = tail call ptr @_ZNKSt13unordered_mapISt5tupleIJmmiEEPN5euler4EdgeENS2_6common14EdgeIDHashFuncENS5_14EdgeIDEqualKeyESaISt4pairIKS1_S4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #3
  store ptr %10, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %11 = tail call ptr @_ZNKSt13unordered_mapISt5tupleIJmmiEEPN5euler4EdgeENS2_6common14EdgeIDHashFuncENS5_14EdgeIDEqualKeyESaISt4pairIKS1_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #3
  store ptr %11, ptr %4, align 8
  %12 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKSt5tupleIJmmiEEPN5euler4EdgeEELb1EEESB_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  br i1 %12, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %13 = getelementptr inbounds i8, ptr %0, i64 160
  %14 = getelementptr inbounds i8, ptr %0, i64 216
  br label %15

._crit_edge:                                      ; preds = %15, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret i1 true

15:                                               ; preds = %.lr.ph, %15
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %16 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKSt5tupleIJmmiEEPN5euler4EdgeEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %17 = call noundef i64 @_ZNK5euler6common14EdgeIDHashFuncclERKSt5tupleIJmmiEE(ptr noundef nonnull align 1 dereferenceable(1) %14, ptr noundef nonnull align 8 dereferenceable(24) %16)
  store i64 %17, ptr %6, align 8, !tbaa !5
  %18 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKSt5tupleIJmmiEEPN5euler4EdgeEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  call void @_ZNSt4pairIKmSt5tupleIJmmiEEEC2ImRKS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(24) %18)
  %19 = call { ptr, i8 } @_ZNSt13unordered_mapImSt5tupleIJmmiEESt4hashImESt8equal_toImESaISt4pairIKmS1_EEE6insertEOS8_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 8 dereferenceable(32) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #3
  %20 = call ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKSt5tupleIJmmiEEPN5euler4EdgeEELb0ELb1EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef 0) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %21 = call ptr @_ZNKSt13unordered_mapISt5tupleIJmmiEEPN5euler4EdgeENS2_6common14EdgeIDHashFuncENS5_14EdgeIDEqualKeyESaISt4pairIKS1_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #3
  store ptr %21, ptr %4, align 8
  %22 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKSt5tupleIJmmiEEPN5euler4EdgeEELb1EEESB_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  br i1 %22, label %15, label %._crit_edge, !llvm.loop !9
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIKmSt5tupleIJmmiEEEC2ImRKS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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