; LLVM IR from NVIDIA/DALI :: dali/pipeline/graph (op_graph2)

; 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::basic_string_view" = type { i64, ptr }
%"struct.std::__detail::_Node_iterator.103" = type { %"struct.std::__detail::_Node_iterator_base.104" }
%"struct.std::__detail::_Node_iterator_base.104" = type { ptr }
%"struct.std::_List_const_iterator.106" = type { ptr }
%"struct.std::_List_iterator.95" = type { ptr }
%"class.dali::graph::OpGraph" = type { %"class.std::__cxx11::list", %"class.std::__cxx11::list.65", %"class.std::unordered_map", %"class.std::unordered_map.75", %"class.std::vector.89" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<dali::graph::OpNode, std::allocator<dali::graph::OpNode>>::_List_impl" }
%"struct.std::__cxx11::_List_base<dali::graph::OpNode, std::allocator<dali::graph::OpNode>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::__cxx11::list.65" = type { %"class.std::__cxx11::_List_base.66" }
%"class.std::__cxx11::_List_base.66" = type { %"struct.std::__cxx11::_List_base<dali::graph::DataNode, std::allocator<dali::graph::DataNode>>::_List_impl" }
%"struct.std::__cxx11::_List_base<dali::graph::DataNode, std::allocator<dali::graph::DataNode>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"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.75" = type { %"class.std::_Hashtable.76" }
%"class.std::_Hashtable.76" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.89" = type { %"struct.std::_Vector_base.90" }
%"struct.std::_Vector_base.90" = type { %"struct.std::_Vector_base<std::basic_string_view<char>, std::allocator<std::basic_string_view<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::basic_string_view<char>, std::allocator<std::basic_string_view<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::basic_string_view<char>, std::allocator<std::basic_string_view<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::basic_string_view<char>, std::allocator<std::basic_string_view<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.109" = type { %"class.std::basic_string_view", ptr }
%"struct.dali::graph::DataNode" = type <{ %"struct.std::_List_iterator.95", i8, i8, [6 x i8], %"class.std::__cxx11::basic_string", i32, [4 x i8], %"struct.dali::graph::DataEdge", %"class.dali::SmallVector.96", i8, [7 x i8] }>
%"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] }
%"struct.dali::graph::DataEdge" = type <{ ptr, i32, [4 x i8] }>
%"class.dali::SmallVector.96" = type { %union.anon.99, i64 }
%union.anon.99 = type { %struct.anon.100, [48 x i8] }
%struct.anon.100 = type { ptr, i64 }
%"struct.dali::graph::OpNode" = type { %"struct.std::_List_iterator", i8, i8, %"class.std::__cxx11::basic_string", %"class.dali::OpSpec", i32, i8, %"class.dali::SmallVector", %"class.dali::SmallVector.62" }
%"struct.std::_List_iterator" = type { ptr }
%"class.dali::OpSpec" = type { %"class.std::__cxx11::basic_string", ptr, %"class.std::vector", %"class.std::map", %"class.std::vector.6", %"class.std::map", %"class.std::map.11", %"class.std::vector.16", %"class.std::vector.16", %"class.std::map.21" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<dali::Argument>, std::allocator<std::shared_ptr<dali::Argument>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<dali::Argument>, std::allocator<std::shared_ptr<dali::Argument>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<dali::Argument>, std::allocator<std::shared_ptr<dali::Argument>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<dali::Argument>, std::allocator<std::shared_ptr<dali::Argument>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<void>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<void>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.11" = type { %"class.std::_Rb_tree.12" }
%"class.std::_Rb_tree.12" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<void>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<void>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<dali::OpSpec::InOutDeviceDesc, std::allocator<dali::OpSpec::InOutDeviceDesc>>::_Vector_impl" }
%"struct.std::_Vector_base<dali::OpSpec::InOutDeviceDesc, std::allocator<dali::OpSpec::InOutDeviceDesc>>::_Vector_impl" = type { %"struct.std::_Vector_base<dali::OpSpec::InOutDeviceDesc, std::allocator<dali::OpSpec::InOutDeviceDesc>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dali::OpSpec::InOutDeviceDesc, std::allocator<dali::OpSpec::InOutDeviceDesc>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.21" = type { %"class.std::_Rb_tree.22" }
%"class.std::_Rb_tree.22" = type { %"struct.std::_Rb_tree<dali::OpSpec::InOutDeviceDesc, std::pair<const dali::OpSpec::InOutDeviceDesc, int>, std::_Select1st<std::pair<const dali::OpSpec::InOutDeviceDesc, int>>, std::less<void>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<dali::OpSpec::InOutDeviceDesc, std::pair<const dali::OpSpec::InOutDeviceDesc, int>, std::_Select1st<std::pair<const dali::OpSpec::InOutDeviceDesc, int>>, std::less<void>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.dali::SmallVector" = type { %union.anon.61, i64 }
%union.anon.61 = type { %struct.anon, [48 x i8] }
%struct.anon = type { ptr, i64 }
%"class.dali::SmallVector.62" = type { %union.anon.63, i64 }
%union.anon.63 = type { %struct.anon.64, [16 x i8] }
%struct.anon.64 = type { ptr, i64 }

@.str.6 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [75 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali5graph7OpGraph9EraseDataESt17basic_string_viewIcSt11char_traitsIcEE = external hidden unnamed_addr constant [55 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 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

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

; Function Attrs: 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 void @_ZNSt20_List_const_iteratorIN4dali5graph8DataNodeEEC2ERKSt14_List_iteratorIS2_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4dali5graph7OpGraph9EraseDataESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(184) %0, i64 %1, ptr %2) #5 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca %"class.std::basic_string_view", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator.103", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator.103", align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.std::_List_const_iterator.106", align 8
  %16 = alloca %"struct.std::_List_iterator.95", align 8
  %17 = alloca %"struct.std::__detail::_Node_iterator.103", align 8
  %18 = alloca %"struct.std::__detail::_Node_iterator.103", align 8
  %19 = getelementptr inbounds { i64, ptr }, ptr %5, i32 0, i32 0
  store i64 %1, ptr %19, align 8
  %20 = getelementptr inbounds { i64, ptr }, ptr %5, i32 0, i32 1
  store ptr %2, ptr %20, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %22 = getelementptr inbounds %"class.dali::graph::OpGraph", ptr %21, i32 0, i32 3
  %23 = call ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE4findERSD_(ptr noundef nonnull align 8 dereferenceable(56) %22, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %24 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.103", ptr %7, i32 0, i32 0
  %25 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.104", ptr %24, i32 0, i32 0
  store ptr %23, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %26 = getelementptr inbounds %"class.dali::graph::OpGraph", ptr %21, i32 0, i32 3
  %27 = call ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %26) #7
  %28 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.103", ptr %8, i32 0, i32 0
  %29 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.104", ptr %28, i32 0, i32 0
  store ptr %27, ptr %29, align 8
  %30 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeEELb1EEESE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br i1 %30, label %31, label %32

31:                                               ; preds = %3
  store i1 false, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %169

32:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %33 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %34 = getelementptr inbounds %"struct.std::pair.109", ptr %33, i32 0, i32 1
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  store ptr %35, ptr %10, align 8, !tbaa !5
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.dali::graph::DataNode", ptr %36, i32 0, i32 7
  %38 = getelementptr inbounds %"struct.dali::graph::DataEdge", ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %87

41:                                               ; preds = %32
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.dali::graph::DataNode", ptr %42, i32 0, i32 7
  %44 = getelementptr inbounds %"struct.dali::graph::DataEdge", ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !13
  %46 = getelementptr inbounds %"struct.dali::graph::OpNode", ptr %45, i32 0, i32 8
  %47 = call noundef i64 @_ZNK4dali11SmallVectorIPNS_5graph8DataNodeELm4ESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %46)
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.dali::graph::DataNode", ptr %48, i32 0, i32 7
  %50 = getelementptr inbounds %"struct.dali::graph::DataEdge", ptr %49, i32 0, i32 1
  %51 = load i32, ptr %50, align 8, !tbaa !23
  %52 = sext i32 %51 to i64
  %53 = icmp uge i64 %47, %52
  br i1 %53, label %54, label %55

54:                                               ; preds = %41
  br label %57

55:                                               ; preds = %41
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.6, i32 noundef 96, ptr noundef @__PRETTY_FUNCTION__._ZN4dali5graph7OpGraph9EraseDataESt17basic_string_viewIcSt11char_traitsIcEE) #8
  unreachable

56:                                               ; No predecessors!
  br label %57

57:                                               ; preds = %56, %54
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.dali::graph::DataNode", ptr %58, i32 0, i32 7
  %60 = getelementptr inbounds %"struct.dali::graph::DataEdge", ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !13
  %62 = getelementptr inbounds %"struct.dali::graph::OpNode", ptr %61, i32 0, i32 8
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.dali::graph::DataNode", ptr %63, i32 0, i32 7
  %65 = getelementptr inbounds %"struct.dali::graph::DataEdge", ptr %64, i32 0, i32 1
  %66 = load i32, ptr %65, align 8, !tbaa !23
  %67 = sext i32 %66 to i64
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5graph8DataNodeELm4ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(40) %62, i64 noundef %67)
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = icmp eq ptr %69, %70
  br i1 %71, label %72, label %73

72:                                               ; preds = %57
  br label %75

73:                                               ; preds = %57
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.6, i32 noundef 97, ptr noundef @__PRETTY_FUNCTION__._ZN4dali5graph7OpGraph9EraseDataESt17basic_string_viewIcSt11char_traitsIcEE) #8
  unreachable

74:                                               ; No predecessors!
  br label %75

75:                                               ; preds = %74, %72
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.dali::graph::DataNode", ptr %76, i32 0, i32 7
  %78 = getelementptr inbounds %"struct.dali::graph::DataEdge", ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !13
  %80 = getelementptr inbounds %"struct.dali::graph::OpNode", ptr %79, i32 0, i32 8
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.dali::graph::DataNode", ptr %81, i32 0, i32 7
  %83 = getelementptr inbounds %"struct.dali::graph::DataEdge", ptr %82, i32 0, i32 1
  %84 = load i32, ptr %83, align 8, !tbaa !23
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5graph8DataNodeELm4ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(40) %80, i64 noundef %85)
  store ptr null, ptr %86, align 8, !tbaa !5
  br label %87

87:                                               ; preds = %75, %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.dali::graph::DataNode", ptr %88, i32 0, i32 8
  store ptr %89, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = call noundef ptr @_ZN4dali11SmallVectorINS_5graph8DataEdgeELm4ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(72) %90)
  store ptr %91, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = call noundef ptr @_ZN4dali11SmallVectorINS_5graph8DataEdgeELm4ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(72) %92)
  store ptr %93, ptr %13, align 8, !tbaa !5
  br label %94

94:                                               ; preds = %149, %87
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = icmp ne ptr %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %152

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %100, ptr %14, align 8, !tbaa !5
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.dali::graph::DataEdge", ptr %101, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8, !tbaa !24
  %104 = icmp eq ptr %103, null
  br i1 %104, label %105, label %106

105:                                              ; preds = %99
  store i32 3, ptr %9, align 4
  br label %146

106:                                              ; preds = %99
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.dali::graph::DataEdge", ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !24
  %110 = getelementptr inbounds %"struct.dali::graph::OpNode", ptr %109, i32 0, i32 7
  %111 = call noundef i64 @_ZNK4dali11SmallVectorIPNS_5graph8DataNodeELm8ESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(72) %110)
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.dali::graph::DataEdge", ptr %112, i32 0, i32 1
  %114 = load i32, ptr %113, align 8, !tbaa !25
  %115 = sext i32 %114 to i64
  %116 = icmp uge i64 %111, %115
  br i1 %116, label %117, label %118

117:                                              ; preds = %106
  br label %120

118:                                              ; preds = %106
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.6, i32 noundef 104, ptr noundef @__PRETTY_FUNCTION__._ZN4dali5graph7OpGraph9EraseDataESt17basic_string_viewIcSt11char_traitsIcEE) #8
  unreachable

119:                                              ; No predecessors!
  br label %120

120:                                              ; preds = %119, %117
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.dali::graph::DataEdge", ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !24
  %124 = getelementptr inbounds %"struct.dali::graph::OpNode", ptr %123, i32 0, i32 7
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.dali::graph::DataEdge", ptr %125, i32 0, i32 1
  %127 = load i32, ptr %126, align 8, !tbaa !25
  %128 = sext i32 %127 to i64
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5graph8DataNodeELm8ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(72) %124, i64 noundef %128)
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = icmp eq ptr %130, %131
  br i1 %132, label %133, label %134

133:                                              ; preds = %120
  br label %136

134:                                              ; preds = %120
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.6, i32 noundef 105, ptr noundef @__PRETTY_FUNCTION__._ZN4dali5graph7OpGraph9EraseDataESt17basic_string_viewIcSt11char_traitsIcEE) #8
  unreachable

135:                                              ; No predecessors!
  br label %136

136:                                              ; preds = %135, %133
  %137 = load ptr, ptr %14, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.dali::graph::DataEdge", ptr %137, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8, !tbaa !24
  %140 = getelementptr inbounds %"struct.dali::graph::OpNode", ptr %139, i32 0, i32 7
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.dali::graph::DataEdge", ptr %141, i32 0, i32 1
  %143 = load i32, ptr %142, align 8, !tbaa !25
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5graph8DataNodeELm8ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(72) %140, i64 noundef %144)
  store ptr null, ptr %145, align 8, !tbaa !5
  store i32 0, ptr %9, align 4
  br label %146

146:                                              ; preds = %136, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %147 = load i32, ptr %9, align 4
  switch i32 %147, label %171 [
    i32 0, label %148
    i32 3, label %149
  ]

148:                                              ; preds = %146
  br label %149

149:                                              ; preds = %148, %146
  %150 = load ptr, ptr %12, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.dali::graph::DataEdge", ptr %150, i32 1
  store ptr %151, ptr %12, align 8, !tbaa !5
  br label %94

152:                                              ; preds = %98
  %153 = getelementptr inbounds %"class.dali::graph::OpGraph", ptr %21, i32 0, i32 1
  %154 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %155 = getelementptr inbounds %"struct.std::pair.109", ptr %154, i32 0, i32 1
  %156 = load ptr, ptr %155, align 8, !tbaa !9
  %157 = getelementptr inbounds %"struct.dali::graph::DataNode", ptr %156, i32 0, i32 0
  call void @_ZNSt20_List_const_iteratorIN4dali5graph8DataNodeEEC2ERKSt14_List_iteratorIS2_E(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %157) #7
  %158 = getelementptr inbounds %"struct.std::_List_const_iterator.106", ptr %15, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8
  %160 = call ptr @_ZNSt7__cxx114listIN4dali5graph8DataNodeESaIS3_EE5eraseESt20_List_const_iteratorIS3_E(ptr noundef nonnull align 8 dereferenceable(24) %153, ptr %159) #7
  %161 = getelementptr inbounds %"struct.std::_List_iterator.95", ptr %16, i32 0, i32 0
  store ptr %160, ptr %161, align 8
  %162 = getelementptr inbounds %"class.dali::graph::OpGraph", ptr %21, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %7, i64 8, i1 false)
  %163 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.103", ptr %17, i32 0, i32 0
  %164 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.104", ptr %163, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8
  %166 = call ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE5eraseENSt8__detail14_Node_iteratorISE_Lb0ELb1EEE(ptr noundef nonnull align 8 dereferenceable(56) %162, ptr %165)
  %167 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.103", ptr %18, i32 0, i32 0
  %168 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.104", ptr %167, i32 0, i32 0
  store ptr %166, ptr %168, align 8
  store i1 true, ptr %4, align 1
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %169

169:                                              ; preds = %152, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  %170 = load i1, ptr %4, align 1
  ret i1 %170

171:                                              ; preds = %146
  unreachable
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4dali11SmallVectorIPNS_5graph8DataNodeELm4ESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5graph8DataNodeELm4ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4dali11SmallVectorIPNS_5graph8DataNodeELm8ESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(72)) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5graph8DataNodeELm8ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef) #3 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { noreturn 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 #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 }
attributes #8 = { noreturn 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, !6, i64 16}
!10 = !{!"_ZTSSt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeEE", !11, i64 0, !6, i64 16}
!11 = !{!"_ZTSSt17basic_string_viewIcSt11char_traitsIcEE", !12, i64 0, !6, i64 8}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 56}
!14 = !{!"_ZTSN4dali5graph8DataNodeE", !15, i64 0, !16, i64 8, !16, i64 9, !17, i64 16, !19, i64 48, !20, i64 56, !22, i64 72, !16, i64 144}
!15 = !{!"_ZTSSt14_List_iteratorIN4dali5graph8DataNodeEE", !6, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !12, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"_ZTSN4dali13StorageDeviceE", !7, i64 0}
!20 = !{!"_ZTSN4dali5graph8DataEdgeE", !6, i64 0, !21, i64 8}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTSN4dali11SmallVectorINS_5graph8DataEdgeELm4ESaIS2_EEE", !7, i64 0, !12, i64 64}
!23 = !{!14, !21, i64 64}
!24 = !{!20, !6, i64 0}
!25 = !{!20, !21, i64 8}


; 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::basic_string_view" = type { i64, ptr }
%"struct.std::__detail::_Node_iterator.103" = type { %"struct.std::__detail::_Node_iterator_base.104" }
%"struct.std::__detail::_Node_iterator_base.104" = type { ptr }
%"struct.std::_List_const_iterator.106" = type { ptr }

@.str.6 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [75 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali5graph7OpGraph9EraseDataESt17basic_string_viewIcSt11char_traitsIcEE = external hidden unnamed_addr constant [55 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 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

; 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 void @_ZNSt20_List_const_iteratorIN4dali5graph8DataNodeEEC2ERKSt14_List_iteratorIS2_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4dali5graph7OpGraph9EraseDataESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(184) %0, i64 %1, ptr %2) local_unnamed_addr #4 align 2 {
  %4 = alloca %"class.std::basic_string_view", align 8
  %5 = alloca %"struct.std::__detail::_Node_iterator.103", align 8
  %6 = alloca %"struct.std::__detail::_Node_iterator.103", align 8
  %7 = alloca %"struct.std::_List_const_iterator.106", align 8
  store i64 %1, ptr %4, align 8
  %8 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr %2, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %9 = getelementptr inbounds i8, ptr %0, i64 104
  %10 = call ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE4findERSD_(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 8 dereferenceable(16) %4)
  store ptr %10, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %11 = call ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %9) #6
  store ptr %11, ptr %6, align 8
  %12 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeEELb1EEESE_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br i1 %12, label %74, label %13

13:                                               ; preds = %3
  %14 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 56
  %18 = load ptr, ptr %17, align 8, !tbaa !12
  %.not = icmp eq ptr %18, null
  br i1 %.not, label %39, label %19

19:                                               ; preds = %13
  %20 = getelementptr inbounds i8, ptr %18, i64 456
  %21 = call noundef i64 @_ZNK4dali11SmallVectorIPNS_5graph8DataNodeELm4ESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %20)
  %22 = getelementptr inbounds i8, ptr %16, i64 64
  %23 = load i32, ptr %22, align 8, !tbaa !22
  %24 = sext i32 %23 to i64
  %.not32 = icmp ult i64 %21, %24
  br i1 %.not32, label %25, label %26

25:                                               ; preds = %19
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.6, i32 noundef 96, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali5graph7OpGraph9EraseDataESt17basic_string_viewIcSt11char_traitsIcEE) #7
  unreachable

26:                                               ; preds = %19
  %27 = load ptr, ptr %17, align 8, !tbaa !12
  %28 = getelementptr inbounds i8, ptr %27, i64 456
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5graph8DataNodeELm4ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(40) %28, i64 noundef %24)
  %30 = load ptr, ptr %29, align 8, !tbaa !23
  %31 = icmp eq ptr %30, %16
  br i1 %31, label %33, label %32

32:                                               ; preds = %26
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.6, i32 noundef 97, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali5graph7OpGraph9EraseDataESt17basic_string_viewIcSt11char_traitsIcEE) #7
  unreachable

33:                                               ; preds = %26
  %34 = load ptr, ptr %17, align 8, !tbaa !12
  %35 = getelementptr inbounds i8, ptr %34, i64 456
  %36 = load i32, ptr %22, align 8, !tbaa !22
  %37 = sext i32 %36 to i64
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5graph8DataNodeELm4ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(40) %35, i64 noundef %37)
  store ptr null, ptr %38, align 8, !tbaa !23
  br label %39

39:                                               ; preds = %33, %13
  %40 = getelementptr inbounds i8, ptr %16, i64 72
  %41 = call noundef ptr @_ZN4dali11SmallVectorINS_5graph8DataEdgeELm4ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(72) %40)
  %42 = call noundef ptr @_ZN4dali11SmallVectorINS_5graph8DataEdgeELm4ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(72) %40)
  %.not3335 = icmp eq ptr %41, %42
  br i1 %.not3335, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %72, %39
  %43 = getelementptr inbounds i8, ptr %0, i64 24
  %44 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  call void @_ZNSt20_List_const_iteratorIN4dali5graph8DataNodeEEC2ERKSt14_List_iteratorIS2_E(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %46) #6
  %47 = load ptr, ptr %7, align 8
  %48 = call ptr @_ZNSt7__cxx114listIN4dali5graph8DataNodeESaIS3_EE5eraseESt20_List_const_iteratorIS3_E(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr %47) #6
  %.sroa.01.0.copyload = load ptr, ptr %5, align 8
  %49 = call ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE5eraseENSt8__detail14_Node_iteratorISE_Lb0ELb1EEE(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr %.sroa.01.0.copyload)
  br label %74

.lr.ph:                                           ; preds = %39, %72
  %.02736 = phi ptr [ %73, %72 ], [ %41, %39 ]
  %50 = load ptr, ptr %.02736, align 8, !tbaa !24
  %51 = icmp eq ptr %50, null
  br i1 %51, label %72, label %52

52:                                               ; preds = %.lr.ph
  %53 = getelementptr inbounds i8, ptr %50, i64 384
  %54 = call noundef i64 @_ZNK4dali11SmallVectorIPNS_5graph8DataNodeELm8ESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(72) %53)
  %55 = getelementptr inbounds i8, ptr %.02736, i64 8
  %56 = load i32, ptr %55, align 8, !tbaa !25
  %57 = sext i32 %56 to i64
  %.not34 = icmp ult i64 %54, %57
  br i1 %.not34, label %58, label %59

58:                                               ; preds = %52
  call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.6, i32 noundef 104, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali5graph7OpGraph9EraseDataESt17basic_string_viewIcSt11char_traitsIcEE) #7
  unreachable

59:                                               ; preds = %52
  %60 = load ptr, ptr %.02736, align 8, !tbaa !24
  %61 = getelementptr inbounds i8, ptr %60, i64 384
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5graph8DataNodeELm8ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(72) %61, i64 noundef %57)
  %63 = load ptr, ptr %62, align 8, !tbaa !23
  %64 = icmp eq ptr %63, %16
  br i1 %64, label %66, label %65

65:                                               ; preds = %59
  call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.6, i32 noundef 105, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali5graph7OpGraph9EraseDataESt17basic_string_viewIcSt11char_traitsIcEE) #7
  unreachable

66:                                               ; preds = %59
  %67 = load ptr, ptr %.02736, align 8, !tbaa !24
  %68 = getelementptr inbounds i8, ptr %67, i64 384
  %69 = load i32, ptr %55, align 8, !tbaa !25
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5graph8DataNodeELm8ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(72) %68, i64 noundef %70)
  store ptr null, ptr %71, align 8, !tbaa !23
  br label %72

72:                                               ; preds = %.lr.ph, %66
  %73 = getelementptr inbounds i8, ptr %.02736, i64 16
  %.not33 = icmp eq ptr %73, %42
  br i1 %.not33, label %._crit_edge, label %.lr.ph

74:                                               ; preds = %3, %._crit_edge
  %.0 = xor i1 %12, true
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  ret i1 %.0
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_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__detail14_Node_iteratorISt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5graph8DataNodeELm4ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5graph8DataNodeELm8ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE5eraseENSt8__detail14_Node_iteratorISE_Lb0ELb1EEE(ptr noundef nonnull align 8 dereferenceable(56), ptr) local_unnamed_addr #4 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 = { 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 #3 = { noreturn 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 #4 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { noreturn 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, !11, i64 16}
!6 = !{!"_ZTSSt4pairIKSt17basic_string_viewIcSt11char_traitsIcEEPN4dali5graph8DataNodeEE", !7, i64 0, !11, i64 16}
!7 = !{!"_ZTSSt17basic_string_viewIcSt11char_traitsIcEE", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !11, i64 56}
!13 = !{!"_ZTSN4dali5graph8DataNodeE", !14, i64 0, !15, i64 8, !15, i64 9, !16, i64 16, !18, i64 48, !19, i64 56, !21, i64 72, !15, i64 144}
!14 = !{!"_ZTSSt14_List_iteratorIN4dali5graph8DataNodeEE", !11, i64 0}
!15 = !{!"bool", !9, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !8, i64 8, !9, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!18 = !{!"_ZTSN4dali13StorageDeviceE", !9, i64 0}
!19 = !{!"_ZTSN4dali5graph8DataEdgeE", !11, i64 0, !20, i64 8}
!20 = !{!"int", !9, i64 0}
!21 = !{!"_ZTSN4dali11SmallVectorINS_5graph8DataEdgeELm4ESaIS2_EEE", !9, i64 0, !8, i64 64}
!22 = !{!13, !20, i64 64}
!23 = !{!11, !11, i64 0}
!24 = !{!19, !11, i64 0}
!25 = !{!19, !20, i64 8}


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