; LLVM IR from ahampriyanshu/algo-ds-101 :: Algorithms/Graph/Dijkstra/dijkstra_leftist_heap/WDGraph.ll (ZN7WDGraph7addEdgeEiif)

; 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::pair.2" = type { i32, ptr }
%"struct.std::pair" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%class.WDGraph = type { ptr, i32, ptr }
%class.VertexNode = type { i32, float, i32, i8, ptr, ptr, ptr }
%"struct.std::pair.4" = type { i32, ptr }

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7WDGraph7addEdgeEiif(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, float noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.std::pair.2", align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca %"struct.std::pair.2", align 8
  %16 = alloca %"struct.std::pair", align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %20 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"struct.std::pair.2", align 8
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %25 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %26 = alloca %"struct.std::pair.2", align 8
  %27 = alloca %"struct.std::pair", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store float %3, ptr %8, align 4, !tbaa !11
  %28 = load ptr, ptr %5, align 8
  %29 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !13
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %94

32:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %33 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #7
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = load i32, ptr %7, align 4, !tbaa !9
  %36 = load float, ptr %8, align 4, !tbaa !11
  invoke void @_ZN8EdgeNodeC1EiifPS_(ptr noundef nonnull align 8 dereferenceable(24) %33, i32 noundef %34, i32 noundef %35, float noundef %36, ptr noundef null)
          to label %37 unwind label %80

37:                                               ; preds = %32
  store ptr %33, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %38 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #7
  %39 = load i32, ptr %7, align 4, !tbaa !9
  invoke void @_ZN10VertexNodeC1EiPS_P8EdgeNode(ptr noundef nonnull align 8 dereferenceable(40) %38, i32 noundef %39, ptr noundef null, ptr noundef null)
          to label %40 unwind label %84

40:                                               ; preds = %37
  store ptr %38, ptr %12, align 8, !tbaa !5
  %41 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #7
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN10VertexNodeC1EiPS_P8EdgeNode(ptr noundef nonnull align 8 dereferenceable(40) %41, i32 noundef %42, ptr noundef %43, ptr noundef %44)
          to label %45 unwind label %88

45:                                               ; preds = %40
  %46 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 0
  store ptr %41, ptr %46, align 8, !tbaa !13
  %47 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = getelementptr inbounds %class.VertexNode, ptr %48, i32 0, i32 2
  %50 = load i32, ptr %49, align 8, !tbaa !15
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %49, align 8, !tbaa !15
  %52 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  %54 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 0
  %55 = call { i32, ptr } @_ZSt9make_pairIRiRP10VertexNodeESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 8 dereferenceable(8) %54)
  %56 = getelementptr inbounds { i32, ptr }, ptr %13, i32 0, i32 0
  %57 = extractvalue { i32, ptr } %55, 0
  store i32 %57, ptr %56, align 8
  %58 = getelementptr inbounds { i32, ptr }, ptr %13, i32 0, i32 1
  %59 = extractvalue { i32, ptr } %55, 1
  store ptr %59, ptr %58, align 8
  %60 = call { ptr, i8 } @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE6insertIS6_IiS1_EEENSt9enable_ifIXsr16is_constructibleIS8_OT_EE5valueES6_INSt8__detail14_Node_iteratorIS8_Lb0ELb0EEEbEE4typeESF_(ptr noundef nonnull align 8 dereferenceable(56) %53, ptr noundef nonnull align 8 dereferenceable(16) %13)
  %61 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 0
  %62 = extractvalue { ptr, i8 } %60, 0
  store ptr %62, ptr %61, align 8
  %63 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 1
  %64 = extractvalue { ptr, i8 } %60, 1
  store i8 %64, ptr %63, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  %65 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %67 = call { i32, ptr } @_ZSt9make_pairIRiRP10VertexNodeESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %68 = getelementptr inbounds { i32, ptr }, ptr %15, i32 0, i32 0
  %69 = extractvalue { i32, ptr } %67, 0
  store i32 %69, ptr %68, align 8
  %70 = getelementptr inbounds { i32, ptr }, ptr %15, i32 0, i32 1
  %71 = extractvalue { i32, ptr } %67, 1
  store ptr %71, ptr %70, align 8
  %72 = call { ptr, i8 } @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE6insertIS6_IiS1_EEENSt9enable_ifIXsr16is_constructibleIS8_OT_EE5valueES6_INSt8__detail14_Node_iteratorIS8_Lb0ELb0EEEbEE4typeESF_(ptr noundef nonnull align 8 dereferenceable(56) %66, ptr noundef nonnull align 8 dereferenceable(16) %15)
  %73 = getelementptr inbounds { ptr, i8 }, ptr %16, i32 0, i32 0
  %74 = extractvalue { ptr, i8 } %72, 0
  store ptr %74, ptr %73, align 8
  %75 = getelementptr inbounds { ptr, i8 }, ptr %16, i32 0, i32 1
  %76 = extractvalue { ptr, i8 } %72, 1
  store i8 %76, ptr %75, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  %77 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 1
  %78 = load i32, ptr %77, align 8, !tbaa !19
  %79 = add nsw i32 %78, 2
  store i32 %79, ptr %77, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %218

80:                                               ; preds = %32
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %10, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %33, i64 noundef 24) #8
  br label %93

84:                                               ; preds = %37
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %10, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %38, i64 noundef 40) #8
  br label %92

88:                                               ; preds = %40
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %10, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %41, i64 noundef 40) #8
  br label %92

92:                                               ; preds = %88, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %93

93:                                               ; preds = %92, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %219

94:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store ptr null, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store ptr null, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %95 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 2
  %96 = load ptr, ptr %95, align 8, !tbaa !18
  %97 = call ptr @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(56) %96, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %98 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %19, i32 0, i32 0
  %99 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %98, i32 0, i32 0
  store ptr %97, ptr %99, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %100 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 2
  %101 = load ptr, ptr %100, align 8, !tbaa !18
  %102 = call ptr @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %101) #6
  %103 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %20, i32 0, i32 0
  %104 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %103, i32 0, i32 0
  store ptr %102, ptr %104, align 8
  %105 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKiP10VertexNodeELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br i1 %105, label %106, label %132

106:                                              ; preds = %94
  %107 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiP10VertexNodeELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %108 = getelementptr inbounds %"struct.std::pair.4", ptr %107, i32 0, i32 1
  %109 = load ptr, ptr %108, align 8, !tbaa !20
  %110 = getelementptr inbounds %class.VertexNode, ptr %109, i32 0, i32 6
  %111 = load ptr, ptr %110, align 8, !tbaa !22
  store ptr %111, ptr %17, align 8, !tbaa !5
  %112 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #7
  %113 = load i32, ptr %6, align 4, !tbaa !9
  %114 = load i32, ptr %7, align 4, !tbaa !9
  %115 = load float, ptr %8, align 4, !tbaa !11
  %116 = load ptr, ptr %17, align 8, !tbaa !5
  invoke void @_ZN8EdgeNodeC1EiifPS_(ptr noundef nonnull align 8 dereferenceable(24) %112, i32 noundef %113, i32 noundef %114, float noundef %115, ptr noundef %116)
          to label %117 unwind label %128

117:                                              ; preds = %106
  %118 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiP10VertexNodeELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %119 = getelementptr inbounds %"struct.std::pair.4", ptr %118, i32 0, i32 1
  %120 = load ptr, ptr %119, align 8, !tbaa !20
  %121 = getelementptr inbounds %class.VertexNode, ptr %120, i32 0, i32 6
  store ptr %112, ptr %121, align 8, !tbaa !22
  %122 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiP10VertexNodeELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %123 = getelementptr inbounds %"struct.std::pair.4", ptr %122, i32 0, i32 1
  %124 = load ptr, ptr %123, align 8, !tbaa !20
  %125 = getelementptr inbounds %class.VertexNode, ptr %124, i32 0, i32 2
  %126 = load i32, ptr %125, align 8, !tbaa !15
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %125, align 8, !tbaa !15
  br label %176

128:                                              ; preds = %106
  %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
  call void @_ZdlPvm(ptr noundef %112, i64 noundef 24) #8
  br label %217

132:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %133 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #7
  %134 = load i32, ptr %6, align 4, !tbaa !9
  %135 = load i32, ptr %7, align 4, !tbaa !9
  %136 = load float, ptr %8, align 4, !tbaa !11
  invoke void @_ZN8EdgeNodeC1EiifPS_(ptr noundef nonnull align 8 dereferenceable(24) %133, i32 noundef %134, i32 noundef %135, float noundef %136, ptr noundef null)
          to label %137 unwind label %167

137:                                              ; preds = %132
  store ptr %133, ptr %21, align 8, !tbaa !5
  %138 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8, !tbaa !13
  store ptr %139, ptr %18, align 8, !tbaa !5
  %140 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #7
  %141 = load i32, ptr %6, align 4, !tbaa !9
  %142 = load ptr, ptr %18, align 8, !tbaa !5
  %143 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZN10VertexNodeC1EiPS_P8EdgeNode(ptr noundef nonnull align 8 dereferenceable(40) %140, i32 noundef %141, ptr noundef %142, ptr noundef %143)
          to label %144 unwind label %171

144:                                              ; preds = %137
  %145 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 0
  store ptr %140, ptr %145, align 8, !tbaa !13
  %146 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !13
  %148 = getelementptr inbounds %class.VertexNode, ptr %147, i32 0, i32 2
  %149 = load i32, ptr %148, align 8, !tbaa !15
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %148, align 8, !tbaa !15
  %151 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 2
  %152 = load ptr, ptr %151, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %153 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 0
  %154 = call { i32, ptr } @_ZSt9make_pairIRiRP10VertexNodeESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 8 dereferenceable(8) %153)
  %155 = getelementptr inbounds { i32, ptr }, ptr %22, i32 0, i32 0
  %156 = extractvalue { i32, ptr } %154, 0
  store i32 %156, ptr %155, align 8
  %157 = getelementptr inbounds { i32, ptr }, ptr %22, i32 0, i32 1
  %158 = extractvalue { i32, ptr } %154, 1
  store ptr %158, ptr %157, align 8
  %159 = call { ptr, i8 } @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE6insertIS6_IiS1_EEENSt9enable_ifIXsr16is_constructibleIS8_OT_EE5valueES6_INSt8__detail14_Node_iteratorIS8_Lb0ELb0EEEbEE4typeESF_(ptr noundef nonnull align 8 dereferenceable(56) %152, ptr noundef nonnull align 8 dereferenceable(16) %22)
  %160 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 0
  %161 = extractvalue { ptr, i8 } %159, 0
  store ptr %161, ptr %160, align 8
  %162 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 1
  %163 = extractvalue { ptr, i8 } %159, 1
  store i8 %163, ptr %162, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  %164 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 1
  %165 = load i32, ptr %164, align 8, !tbaa !19
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %164, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %176

167:                                              ; preds = %132
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %10, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %133, i64 noundef 24) #8
  br label %175

171:                                              ; preds = %137
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %10, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %140, i64 noundef 40) #8
  br label %175

175:                                              ; preds = %171, %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %217

176:                                              ; preds = %144, %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %177 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 2
  %178 = load ptr, ptr %177, align 8, !tbaa !18
  %179 = call ptr @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(56) %178, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %180 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %24, i32 0, i32 0
  %181 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %180, i32 0, i32 0
  store ptr %179, ptr %181, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %24, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %182 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 2
  %183 = load ptr, ptr %182, align 8, !tbaa !18
  %184 = call ptr @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %183) #6
  %185 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %25, i32 0, i32 0
  %186 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %185, i32 0, i32 0
  store ptr %184, ptr %186, align 8
  %187 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKiP10VertexNodeELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br i1 %187, label %188, label %216

188:                                              ; preds = %176
  %189 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8, !tbaa !13
  store ptr %190, ptr %18, align 8, !tbaa !5
  %191 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #7
  %192 = load i32, ptr %7, align 4, !tbaa !9
  %193 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZN10VertexNodeC1EiPS_P8EdgeNode(ptr noundef nonnull align 8 dereferenceable(40) %191, i32 noundef %192, ptr noundef %193, ptr noundef null)
          to label %194 unwind label %212

194:                                              ; preds = %188
  %195 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 0
  store ptr %191, ptr %195, align 8, !tbaa !13
  %196 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 2
  %197 = load ptr, ptr %196, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  %198 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 0
  %199 = call { i32, ptr } @_ZSt9make_pairIRiRP10VertexNodeESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 8 dereferenceable(8) %198)
  %200 = getelementptr inbounds { i32, ptr }, ptr %26, i32 0, i32 0
  %201 = extractvalue { i32, ptr } %199, 0
  store i32 %201, ptr %200, align 8
  %202 = getelementptr inbounds { i32, ptr }, ptr %26, i32 0, i32 1
  %203 = extractvalue { i32, ptr } %199, 1
  store ptr %203, ptr %202, align 8
  %204 = call { ptr, i8 } @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE6insertIS6_IiS1_EEENSt9enable_ifIXsr16is_constructibleIS8_OT_EE5valueES6_INSt8__detail14_Node_iteratorIS8_Lb0ELb0EEEbEE4typeESF_(ptr noundef nonnull align 8 dereferenceable(56) %197, ptr noundef nonnull align 8 dereferenceable(16) %26)
  %205 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 0
  %206 = extractvalue { ptr, i8 } %204, 0
  store ptr %206, ptr %205, align 8
  %207 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 1
  %208 = extractvalue { ptr, i8 } %204, 1
  store i8 %208, ptr %207, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  %209 = getelementptr inbounds %class.WDGraph, ptr %28, i32 0, i32 1
  %210 = load i32, ptr %209, align 8, !tbaa !19
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %209, align 8, !tbaa !19
  br label %216

212:                                              ; preds = %188
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %10, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %191, i64 noundef 40) #8
  br label %217

216:                                              ; preds = %194, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %218

217:                                              ; preds = %212, %175, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %219

218:                                              ; preds = %216, %45
  ret void

219:                                              ; preds = %217, %93
  %220 = load ptr, ptr %10, align 8
  %221 = load i32, ptr %11, align 4
  %222 = insertvalue { ptr, i32 } poison, ptr %220, 0
  %223 = insertvalue { ptr, i32 } %222, i32 %221, 1
  resume { ptr, i32 } %223
}

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local { i32, ptr } @_ZSt9make_pairIRiRP10VertexNodeESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

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

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

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

; 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) #5

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

declare void @_ZN8EdgeNodeC1EiifPS_(ptr, i32, i32, float, ptr)

declare void @_ZN10VertexNodeC1EiPS_P8EdgeNode(ptr, i32, ptr, ptr)

attributes #0 = { nobuiltin allocsize(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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin 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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS7WDGraph", !6, i64 0, !10, i64 8, !6, i64 16}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTS10VertexNode", !10, i64 0, !12, i64 4, !10, i64 8, !17, i64 12, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!"bool", !7, i64 0}
!18 = !{!14, !6, i64 16}
!19 = !{!14, !10, i64 8}
!20 = !{!21, !6, i64 8}
!21 = !{!"_ZTSSt4pairIKiP10VertexNodeE", !10, i64 0, !6, i64 8}
!22 = !{!16, !6, i64 32}


; 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::pair.2" = type { i32, ptr }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7WDGraph7addEdgeEiif(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, float noundef %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.std::pair.2", align 8
  %9 = alloca %"struct.std::pair.2", align 8
  %10 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %11 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %12 = alloca %"struct.std::pair.2", align 8
  %13 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %14 = alloca %"struct.std::pair.2", align 8
  store i32 %1, ptr %5, align 4, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !5
  %15 = load ptr, ptr %0, align 8, !tbaa !9
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %52

17:                                               ; preds = %4
  %18 = tail call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #5
  invoke void @_ZN8EdgeNodeC1EiifPS_(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef %1, i32 noundef %2, float noundef %3, ptr noundef null)
          to label %19 unwind label %45

19:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %20 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #5
  %21 = load i32, ptr %6, align 4, !tbaa !5
  invoke void @_ZN10VertexNodeC1EiPS_P8EdgeNode(ptr noundef nonnull align 8 dereferenceable(40) %20, i32 noundef %21, ptr noundef null, ptr noundef null)
          to label %22 unwind label %47

22:                                               ; preds = %19
  store ptr %20, ptr %7, align 8, !tbaa !12
  %23 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #5
  %24 = load i32, ptr %5, align 4, !tbaa !5
  invoke void @_ZN10VertexNodeC1EiPS_P8EdgeNode(ptr noundef nonnull align 8 dereferenceable(40) %23, i32 noundef %24, ptr noundef nonnull %20, ptr noundef nonnull %18)
          to label %25 unwind label %49

25:                                               ; preds = %22
  store ptr %23, ptr %0, align 8, !tbaa !9
  %26 = getelementptr inbounds i8, ptr %23, i64 8
  %27 = load i32, ptr %26, align 8, !tbaa !13
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %26, align 8, !tbaa !13
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = load ptr, ptr %29, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %31 = call { i32, ptr } @_ZSt9make_pairIRiRP10VertexNodeESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 8 dereferenceable(8) %0)
  %32 = extractvalue { i32, ptr } %31, 0
  store i32 %32, ptr %8, align 8
  %33 = getelementptr inbounds i8, ptr %8, i64 8
  %34 = extractvalue { i32, ptr } %31, 1
  store ptr %34, ptr %33, align 8
  %35 = call { ptr, i8 } @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE6insertIS6_IiS1_EEENSt9enable_ifIXsr16is_constructibleIS8_OT_EE5valueES6_INSt8__detail14_Node_iteratorIS8_Lb0ELb0EEEbEE4typeESF_(ptr noundef nonnull align 8 dereferenceable(56) %30, ptr noundef nonnull align 8 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  %36 = load ptr, ptr %29, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  %37 = call { i32, ptr } @_ZSt9make_pairIRiRP10VertexNodeESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %38 = extractvalue { i32, ptr } %37, 0
  store i32 %38, ptr %9, align 8
  %39 = getelementptr inbounds i8, ptr %9, i64 8
  %40 = extractvalue { i32, ptr } %37, 1
  store ptr %40, ptr %39, align 8
  %41 = call { ptr, i8 } @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE6insertIS6_IiS1_EEENSt9enable_ifIXsr16is_constructibleIS8_OT_EE5valueES6_INSt8__detail14_Node_iteratorIS8_Lb0ELb0EEEbEE4typeESF_(ptr noundef nonnull align 8 dereferenceable(56) %36, ptr noundef nonnull align 8 dereferenceable(16) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  %42 = getelementptr inbounds i8, ptr %0, i64 8
  %43 = load i32, ptr %42, align 8, !tbaa !18
  %44 = add nsw i32 %43, 2
  store i32 %44, ptr %42, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %127

45:                                               ; preds = %17
  %46 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %18, i64 noundef 24) #7
  br label %128

47:                                               ; preds = %19
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %51

49:                                               ; preds = %22
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %51

51:                                               ; preds = %49, %47
  %.sink = phi ptr [ %23, %49 ], [ %20, %47 ]
  %.pn25 = phi { ptr, i32 } [ %50, %49 ], [ %48, %47 ]
  tail call void @_ZdlPvm(ptr noundef nonnull %.sink, i64 noundef 40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %128

52:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %53 = getelementptr inbounds i8, ptr %0, i64 16
  %54 = load ptr, ptr %53, align 8, !tbaa !17
  %55 = call ptr @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(56) %54, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store ptr %55, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %56 = load ptr, ptr %53, align 8, !tbaa !17
  %57 = call ptr @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %56) #6
  store ptr %57, ptr %11, align 8
  %58 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKiP10VertexNodeELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br i1 %58, label %59, label %78

59:                                               ; preds = %52
  %60 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiP10VertexNodeELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %62 = load ptr, ptr %61, align 8, !tbaa !19
  %63 = getelementptr inbounds i8, ptr %62, i64 32
  %64 = load ptr, ptr %63, align 8, !tbaa !21
  %65 = call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #5
  %66 = load i32, ptr %5, align 4, !tbaa !5
  %67 = load i32, ptr %6, align 4, !tbaa !5
  invoke void @_ZN8EdgeNodeC1EiifPS_(ptr noundef nonnull align 8 dereferenceable(24) %65, i32 noundef %66, i32 noundef %67, float noundef %3, ptr noundef %64)
          to label %68 unwind label %76

68:                                               ; preds = %59
  %69 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiP10VertexNodeELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = load ptr, ptr %70, align 8, !tbaa !19
  %72 = getelementptr inbounds i8, ptr %71, i64 32
  store ptr %65, ptr %72, align 8, !tbaa !21
  %73 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiP10VertexNodeELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load ptr, ptr %74, align 8, !tbaa !19
  br label %100

76:                                               ; preds = %59
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %65, i64 noundef 24) #7
  br label %126

78:                                               ; preds = %52
  %79 = call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #5
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %81 = load i32, ptr %6, align 4, !tbaa !5
  invoke void @_ZN8EdgeNodeC1EiifPS_(ptr noundef nonnull align 8 dereferenceable(24) %79, i32 noundef %80, i32 noundef %81, float noundef %3, ptr noundef null)
          to label %82 unwind label %96

82:                                               ; preds = %78
  %83 = load ptr, ptr %0, align 8, !tbaa !9
  %84 = call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #5
  %85 = load i32, ptr %5, align 4, !tbaa !5
  invoke void @_ZN10VertexNodeC1EiPS_P8EdgeNode(ptr noundef nonnull align 8 dereferenceable(40) %84, i32 noundef %85, ptr noundef %83, ptr noundef nonnull %79)
          to label %86 unwind label %98

86:                                               ; preds = %82
  store ptr %84, ptr %0, align 8, !tbaa !9
  %87 = getelementptr inbounds i8, ptr %84, i64 8
  %88 = load i32, ptr %87, align 8, !tbaa !13
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %87, align 8, !tbaa !13
  %90 = load ptr, ptr %53, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  %91 = call { i32, ptr } @_ZSt9make_pairIRiRP10VertexNodeESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 8 dereferenceable(8) %0)
  %92 = extractvalue { i32, ptr } %91, 0
  store i32 %92, ptr %12, align 8
  %93 = getelementptr inbounds i8, ptr %12, i64 8
  %94 = extractvalue { i32, ptr } %91, 1
  store ptr %94, ptr %93, align 8
  %95 = call { ptr, i8 } @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE6insertIS6_IiS1_EEENSt9enable_ifIXsr16is_constructibleIS8_OT_EE5valueES6_INSt8__detail14_Node_iteratorIS8_Lb0ELb0EEEbEE4typeESF_(ptr noundef nonnull align 8 dereferenceable(56) %90, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %100

96:                                               ; preds = %78
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %79, i64 noundef 24) #7
  br label %126

98:                                               ; preds = %82
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %84, i64 noundef 40) #7
  br label %126

100:                                              ; preds = %86, %68
  %.sink33 = phi ptr [ %0, %86 ], [ %75, %68 ]
  %101 = getelementptr inbounds i8, ptr %.sink33, i64 8
  %102 = load i32, ptr %101, align 8, !tbaa !5
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %101, align 8, !tbaa !5
  %104 = load ptr, ptr %53, align 8, !tbaa !17
  %105 = call ptr @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(56) %104, ptr noundef nonnull align 4 dereferenceable(4) %6)
  store ptr %105, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %106 = load ptr, ptr %53, align 8, !tbaa !17
  %107 = call ptr @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %106) #6
  store ptr %107, ptr %13, align 8
  %108 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKiP10VertexNodeELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br i1 %108, label %109, label %125

109:                                              ; preds = %100
  %110 = load ptr, ptr %0, align 8, !tbaa !9
  %111 = call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #5
  %112 = load i32, ptr %6, align 4, !tbaa !5
  invoke void @_ZN10VertexNodeC1EiPS_P8EdgeNode(ptr noundef nonnull align 8 dereferenceable(40) %111, i32 noundef %112, ptr noundef %110, ptr noundef null)
          to label %113 unwind label %123

113:                                              ; preds = %109
  store ptr %111, ptr %0, align 8, !tbaa !9
  %114 = load ptr, ptr %53, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %115 = call { i32, ptr } @_ZSt9make_pairIRiRP10VertexNodeESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 8 dereferenceable(8) %0)
  %116 = extractvalue { i32, ptr } %115, 0
  store i32 %116, ptr %14, align 8
  %117 = getelementptr inbounds i8, ptr %14, i64 8
  %118 = extractvalue { i32, ptr } %115, 1
  store ptr %118, ptr %117, align 8
  %119 = call { ptr, i8 } @_ZNSt13unordered_mapIiP10VertexNodeSt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE6insertIS6_IiS1_EEENSt9enable_ifIXsr16is_constructibleIS8_OT_EE5valueES6_INSt8__detail14_Node_iteratorIS8_Lb0ELb0EEEbEE4typeESF_(ptr noundef nonnull align 8 dereferenceable(56) %114, ptr noundef nonnull align 8 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  %120 = getelementptr inbounds i8, ptr %0, i64 8
  %121 = load i32, ptr %120, align 8, !tbaa !18
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %120, align 8, !tbaa !18
  br label %125

123:                                              ; preds = %109
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %111, i64 noundef 40) #7
  br label %126

125:                                              ; preds = %113, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %127

126:                                              ; preds = %96, %98, %123, %76
  %.pn23 = phi { ptr, i32 } [ %124, %123 ], [ %77, %76 ], [ %99, %98 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %128

127:                                              ; preds = %125, %25
  ret void

128:                                              ; preds = %45, %51, %126
  %.pn25.pn.pn = phi { ptr, i32 } [ %.pn23, %126 ], [ %.pn25, %51 ], [ %46, %45 ]
  resume { ptr, i32 } %.pn25.pn.pn
}

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local { i32, ptr } @_ZSt9make_pairIRiRP10VertexNodeESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

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

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

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

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

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

declare void @_ZN8EdgeNodeC1EiifPS_(ptr, i32, i32, float, ptr) local_unnamed_addr

declare void @_ZN10VertexNodeC1EiPS_P8EdgeNode(ptr, i32, ptr, ptr) local_unnamed_addr

attributes #0 = { nobuiltin allocsize(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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin 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 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 = { builtin allocsize(0) }
attributes #6 = { nounwind }
attributes #7 = { builtin 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS7WDGraph", !11, i64 0, !6, i64 8, !11, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTS10VertexNode", !6, i64 0, !15, i64 4, !6, i64 8, !16, i64 12, !11, i64 16, !11, i64 24, !11, i64 32}
!15 = !{!"float", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!10, !11, i64 16}
!18 = !{!10, !6, i64 8}
!19 = !{!20, !11, i64 8}
!20 = !{!"_ZTSSt4pairIKiP10VertexNodeE", !6, i64 0, !11, i64 8}
!21 = !{!14, !11, i64 32}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass