; LLVM IR from maliput/maliput :: src/maliput/routing/graph (graph)

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

%"struct.maliput::routing::graph::Graph" = type { %"class.std::unordered_map", %"class.std::unordered_map.2" }
%"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.2" = type { %"class.std::_Hashtable.3" }
%"class.std::_Hashtable.3" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%class.anon = type { ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<const maliput::api::BranchPoint *, const maliput::api::BranchPoint *, std::_Identity<const maliput::api::BranchPoint *>, std::less<const maliput::api::BranchPoint *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const maliput::api::BranchPoint *, const maliput::api::BranchPoint *, std::_Identity<const maliput::api::BranchPoint *>, std::less<const maliput::api::BranchPoint *>>::_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 }
%"struct.maliput::routing::graph::Node" = type { %"class.maliput::api::TypeSpecificIdentifier", %"class.std::set", %"class.std::set.27" }
%"class.maliput::api::TypeSpecificIdentifier" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::set.27" = type { %"class.std::_Rb_tree.28" }
%"class.std::_Rb_tree.28" = type { %"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>, maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>, std::_Identity<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>, maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>, std::_Identity<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"struct.maliput::routing::graph::Edge" = type { %"class.maliput::api::TypeSpecificIdentifier.33", ptr, %"class.maliput::api::TypeSpecificIdentifier", %"class.maliput::api::TypeSpecificIdentifier" }
%"class.maliput::api::TypeSpecificIdentifier.33" = type { %"class.std::__cxx11::basic_string" }
%"class.maliput::api::TypeSpecificIdentifier.34" = type { %"class.std::__cxx11::basic_string" }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.35" = 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 }
%"struct.std::pair.38" = type <{ %"struct.std::__detail::_Node_iterator.40", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator.40" = type { %"struct.std::__detail::_Node_iterator_base.41" }
%"struct.std::__detail::_Node_iterator_base.41" = type { ptr }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@__func__._ZN7maliput7routing5graph10BuildGraphEPKNS_3api12RoadGeometryE = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [84 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7routing5graph10BuildGraphEPKNS_3api12RoadGeometryE(ptr dead_on_unwind noalias writable sret(%"struct.maliput::routing::graph::Graph") align 8 %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca %class.anon, align 8
  %7 = alloca i1, align 1
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::set", align 8
  %16 = alloca %"class.std::set", align 8
  %17 = alloca %"struct.maliput::routing::graph::Node", align 8
  %18 = alloca %"class.std::set", align 8
  %19 = alloca %"class.std::function", align 8
  %20 = alloca %"struct.maliput::routing::graph::Node", align 8
  %21 = alloca %"class.std::set", align 8
  %22 = alloca %"class.std::function", align 8
  %23 = alloca %"struct.maliput::routing::graph::Edge", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.maliput::api::TypeSpecificIdentifier.34", align 8
  %26 = alloca %"struct.std::pair", align 8
  %27 = alloca %"struct.std::pair", align 8
  %28 = alloca %"struct.std::pair.35", align 8
  %29 = alloca %"struct.std::pair.38", align 8
  %30 = alloca %"struct.std::pair.38", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %2
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %35, label %34

34:                                               ; preds = %31
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str, ptr noundef @__func__._ZN7maliput7routing5graph10BuildGraphEPKNS_3api12RoadGeometryE, ptr noundef @.str.1, i32 noundef 100) #5
  unreachable

35:                                               ; preds = %31
  br label %36

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 0, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %37 = getelementptr inbounds %class.anon, ptr %6, i32 0, i32 0
  store ptr %5, ptr %37, align 8, !tbaa !5
  store i1 false, ptr %7, align 1
  call void @_ZN7maliput7routing5graph5GraphC2Ev(ptr noundef nonnull align 8 dereferenceable(112) %0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %38

38:                                               ; preds = %204, %36
  %39 = load i32, ptr %8, align 4, !tbaa !11
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = invoke noundef i32 @_ZNK7maliput3api12RoadGeometry13num_junctionsEv(ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %42 unwind label %45

42:                                               ; preds = %38
  %43 = icmp slt i32 %39, %41
  br i1 %43, label %49, label %44

44:                                               ; preds = %42
  store i32 4, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %209

45:                                               ; preds = %38
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %9, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %10, align 4
  br label %208

49:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = load i32, ptr %8, align 4, !tbaa !11
  %52 = invoke noundef ptr @_ZNK7maliput3api12RoadGeometry8junctionEi(ptr noundef nonnull align 8 dereferenceable(8) %50, i32 noundef %51)
          to label %53 unwind label %61

53:                                               ; preds = %49
  store ptr %52, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %54

54:                                               ; preds = %137, %53
  %55 = load i32, ptr %13, align 4, !tbaa !11
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  %57 = invoke noundef i32 @_ZNK7maliput3api8Junction12num_segmentsEv(ptr noundef nonnull align 8 dereferenceable(8) %56)
          to label %58 unwind label %65

58:                                               ; preds = %54
  %59 = icmp slt i32 %55, %57
  br i1 %59, label %69, label %60

60:                                               ; preds = %58
  store i32 7, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %203

61:                                               ; preds = %49
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %9, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %10, align 4
  br label %207

65:                                               ; preds = %54
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %9, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %10, align 4
  br label %202

69:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = load i32, ptr %13, align 4, !tbaa !11
  %72 = invoke noundef ptr @_ZNK7maliput3api8Junction7segmentEi(ptr noundef nonnull align 8 dereferenceable(8) %70, i32 noundef %71)
          to label %73 unwind label %140

73:                                               ; preds = %69
  store ptr %72, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #6
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN7maliput7routing5graph12_GLOBAL__N_115GetBranchPointsEPKNS_3api7SegmentENS3_7LaneEnd5WhichE(ptr dead_on_unwind writable sret(%"class.std::set") align 8 %15, ptr noundef %74, i32 noundef 0)
          to label %75 unwind label %144

75:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 48, ptr %16) #6
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN7maliput7routing5graph12_GLOBAL__N_115GetBranchPointsEPKNS_3api7SegmentENS3_7LaneEnd5WhichE(ptr dead_on_unwind writable sret(%"class.std::set") align 8 %16, ptr noundef %76, i32 noundef 1)
          to label %77 unwind label %148

77:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 128, ptr %17) #6
  invoke void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 8 dereferenceable(48) %15)
          to label %78 unwind label %152

78:                                               ; preds = %77
  call void @"_ZNSt8functionIFN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEEvEEC2IRZNS4_10BuildGraphEPKNS1_12RoadGeometryEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  invoke void @_ZN7maliput7routing5graph12_GLOBAL__N_17GetNodeERKNS1_5GraphESt3setIPKNS_3api11BranchPointESt4lessISA_ESaISA_EESt8functionIFNS7_22TypeSpecificIdentifierINS1_4NodeEEEvEE(ptr dead_on_unwind writable sret(%"struct.maliput::routing::graph::Node") align 8 %17, ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef %18, ptr noundef %19)
          to label %79 unwind label %156

79:                                               ; preds = %78
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr %20) #6
  invoke void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 8 dereferenceable(48) %16)
          to label %80 unwind label %160

80:                                               ; preds = %79
  call void @"_ZNSt8functionIFN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEEvEEC2IRZNS4_10BuildGraphEPKNS1_12RoadGeometryEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  invoke void @_ZN7maliput7routing5graph12_GLOBAL__N_17GetNodeERKNS1_5GraphESt3setIPKNS_3api11BranchPointESt4lessISA_ESaISA_EESt8functionIFNS7_22TypeSpecificIdentifierINS1_4NodeEEEvEE(ptr dead_on_unwind writable sret(%"struct.maliput::routing::graph::Node") align 8 %20, ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef %21, ptr noundef %22)
          to label %81 unwind label %164

81:                                               ; preds = %80
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #6
  call void @llvm.lifetime.start.p0(i64 104, ptr %23) #6
  %82 = getelementptr inbounds %"struct.maliput::routing::graph::Edge", ptr %23, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #6
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api7Segment2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier.34") align 8 %25, ptr noundef nonnull align 8 dereferenceable(8) %83)
          to label %84 unwind label %168

84:                                               ; preds = %81
  %85 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api22TypeSpecificIdentifierINS0_7SegmentEE6stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %86 unwind label %172

86:                                               ; preds = %84
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %85)
          to label %87 unwind label %172

87:                                               ; preds = %86
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4EdgeEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %82, ptr noundef %24)
          to label %88 unwind label %176

88:                                               ; preds = %87
  %89 = getelementptr inbounds %"struct.maliput::routing::graph::Edge", ptr %23, i32 0, i32 1
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %90, ptr %89, align 8, !tbaa !13
  %91 = getelementptr inbounds %"struct.maliput::routing::graph::Edge", ptr %23, i32 0, i32 2
  %92 = getelementptr inbounds %"struct.maliput::routing::graph::Node", ptr %17, i32 0, i32 0
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %91, ptr noundef nonnull align 8 dereferenceable(32) %92)
          to label %93 unwind label %180

93:                                               ; preds = %88
  %94 = getelementptr inbounds %"struct.maliput::routing::graph::Edge", ptr %23, i32 0, i32 3
  %95 = getelementptr inbounds %"struct.maliput::routing::graph::Node", ptr %20, i32 0, i32 0
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %94, ptr noundef nonnull align 8 dereferenceable(32) %95)
          to label %96 unwind label %184

96:                                               ; preds = %93
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  %97 = getelementptr inbounds %"struct.maliput::routing::graph::Node", ptr %17, i32 0, i32 2
  %98 = getelementptr inbounds %"struct.maliput::routing::graph::Edge", ptr %23, i32 0, i32 0
  %99 = invoke { ptr, i8 } @_ZNSt3setIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEESt4lessIS6_ESaIS6_EE6insertERKS6_(ptr noundef nonnull align 8 dereferenceable(48) %97, ptr noundef nonnull align 8 dereferenceable(32) %98)
          to label %100 unwind label %192

100:                                              ; preds = %96
  %101 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 0
  %102 = extractvalue { ptr, i8 } %99, 0
  store ptr %102, ptr %101, align 8
  %103 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 1
  %104 = extractvalue { ptr, i8 } %99, 1
  store i8 %104, ptr %103, align 8
  %105 = getelementptr inbounds %"struct.maliput::routing::graph::Node", ptr %20, i32 0, i32 2
  %106 = getelementptr inbounds %"struct.maliput::routing::graph::Edge", ptr %23, i32 0, i32 0
  %107 = invoke { ptr, i8 } @_ZNSt3setIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEESt4lessIS6_ESaIS6_EE6insertERKS6_(ptr noundef nonnull align 8 dereferenceable(48) %105, ptr noundef nonnull align 8 dereferenceable(32) %106)
          to label %108 unwind label %192

108:                                              ; preds = %100
  %109 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 0
  %110 = extractvalue { ptr, i8 } %107, 0
  store ptr %110, ptr %109, align 8
  %111 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 1
  %112 = extractvalue { ptr, i8 } %107, 1
  store i8 %112, ptr %111, align 8
  %113 = getelementptr inbounds %"struct.maliput::routing::graph::Graph", ptr %0, i32 0, i32 0
  %114 = getelementptr inbounds %"struct.maliput::routing::graph::Edge", ptr %23, i32 0, i32 0
  %115 = invoke { ptr, i8 } @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE16insert_or_assignIRS5_EESB_INSt8__detail14_Node_iteratorISD_Lb0ELb0EEEbERSC_OT_(ptr noundef nonnull align 8 dereferenceable(56) %113, ptr noundef nonnull align 8 dereferenceable(32) %114, ptr noundef nonnull align 8 dereferenceable(104) %23)
          to label %116 unwind label %192

116:                                              ; preds = %108
  %117 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 0
  %118 = extractvalue { ptr, i8 } %115, 0
  store ptr %118, ptr %117, align 8
  %119 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 1
  %120 = extractvalue { ptr, i8 } %115, 1
  store i8 %120, ptr %119, align 8
  %121 = getelementptr inbounds %"struct.maliput::routing::graph::Graph", ptr %0, i32 0, i32 1
  %122 = getelementptr inbounds %"struct.maliput::routing::graph::Node", ptr %17, i32 0, i32 0
  %123 = invoke { ptr, i8 } @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE16insert_or_assignIRS5_EESB_INSt8__detail14_Node_iteratorISD_Lb0ELb0EEEbERSC_OT_(ptr noundef nonnull align 8 dereferenceable(56) %121, ptr noundef nonnull align 8 dereferenceable(32) %122, ptr noundef nonnull align 8 dereferenceable(128) %17)
          to label %124 unwind label %192

124:                                              ; preds = %116
  %125 = getelementptr inbounds { ptr, i8 }, ptr %29, i32 0, i32 0
  %126 = extractvalue { ptr, i8 } %123, 0
  store ptr %126, ptr %125, align 8
  %127 = getelementptr inbounds { ptr, i8 }, ptr %29, i32 0, i32 1
  %128 = extractvalue { ptr, i8 } %123, 1
  store i8 %128, ptr %127, align 8
  %129 = getelementptr inbounds %"struct.maliput::routing::graph::Graph", ptr %0, i32 0, i32 1
  %130 = getelementptr inbounds %"struct.maliput::routing::graph::Node", ptr %20, i32 0, i32 0
  %131 = invoke { ptr, i8 } @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE16insert_or_assignIRS5_EESB_INSt8__detail14_Node_iteratorISD_Lb0ELb0EEEbERSC_OT_(ptr noundef nonnull align 8 dereferenceable(56) %129, ptr noundef nonnull align 8 dereferenceable(32) %130, ptr noundef nonnull align 8 dereferenceable(128) %20)
          to label %132 unwind label %192

132:                                              ; preds = %124
  %133 = getelementptr inbounds { ptr, i8 }, ptr %30, i32 0, i32 0
  %134 = extractvalue { ptr, i8 } %131, 0
  store ptr %134, ptr %133, align 8
  %135 = getelementptr inbounds { ptr, i8 }, ptr %30, i32 0, i32 1
  %136 = extractvalue { ptr, i8 } %131, 1
  store i8 %136, ptr %135, align 8
  call void @_ZN7maliput7routing5graph4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %23) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr %23) #6
  call void @_ZN7maliput7routing5graph4NodeD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %20) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %20) #6
  call void @_ZN7maliput7routing5graph4NodeD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %17) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %17) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %137

137:                                              ; preds = %132
  %138 = load i32, ptr %13, align 4, !tbaa !11
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %13, align 4, !tbaa !11
  br label %54, !llvm.loop !19

140:                                              ; preds = %69
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %9, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %10, align 4
  br label %201

144:                                              ; preds = %73
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %9, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %10, align 4
  br label %200

148:                                              ; preds = %75
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %9, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %10, align 4
  br label %199

152:                                              ; preds = %77
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %9, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %10, align 4
  br label %198

156:                                              ; preds = %78
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %9, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %10, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  br label %198

160:                                              ; preds = %79
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %9, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %10, align 4
  br label %197

164:                                              ; preds = %80
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %9, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %10, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #6
  br label %197

168:                                              ; preds = %81
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %9, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %10, align 4
  br label %191

172:                                              ; preds = %86, %84
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %9, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %10, align 4
  br label %190

176:                                              ; preds = %87
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %9, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %10, align 4
  br label %189

180:                                              ; preds = %88
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %9, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %10, align 4
  br label %188

184:                                              ; preds = %93
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %9, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %10, align 4
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %91) #6
  br label %188

188:                                              ; preds = %184, %180
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4EdgeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %82) #6
  br label %189

189:                                              ; preds = %188, %176
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %190

190:                                              ; preds = %189, %172
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  br label %191

191:                                              ; preds = %190, %168
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  br label %196

192:                                              ; preds = %124, %116, %108, %100, %96
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %9, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %10, align 4
  call void @_ZN7maliput7routing5graph4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %23) #6
  br label %196

196:                                              ; preds = %192, %191
  call void @llvm.lifetime.end.p0(i64 104, ptr %23) #6
  call void @_ZN7maliput7routing5graph4NodeD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %20) #6
  br label %197

197:                                              ; preds = %196, %164, %160
  call void @llvm.lifetime.end.p0(i64 128, ptr %20) #6
  call void @_ZN7maliput7routing5graph4NodeD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %17) #6
  br label %198

198:                                              ; preds = %197, %156, %152
  call void @llvm.lifetime.end.p0(i64 128, ptr %17) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #6
  br label %199

199:                                              ; preds = %198, %148
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #6
  br label %200

200:                                              ; preds = %199, %144
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #6
  br label %201

201:                                              ; preds = %200, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %202

202:                                              ; preds = %201, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %207

203:                                              ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %204

204:                                              ; preds = %203
  %205 = load i32, ptr %8, align 4, !tbaa !11
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %8, align 4, !tbaa !11
  br label %38, !llvm.loop !21

207:                                              ; preds = %202, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %208

208:                                              ; preds = %207, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @_ZN7maliput7routing5graph5GraphD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %0) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %213

209:                                              ; preds = %44
  store i1 true, ptr %7, align 1
  store i32 1, ptr %11, align 4
  %210 = load i1, ptr %7, align 1
  br i1 %210, label %212, label %211

211:                                              ; preds = %209
  call void @_ZN7maliput7routing5graph5GraphD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %0) #6
  br label %212

212:                                              ; preds = %211, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void

213:                                              ; preds = %208
  %214 = load ptr, ptr %9, align 8
  %215 = load i32, ptr %10, align 4
  %216 = insertvalue { ptr, i32 } poison, ptr %214, 0
  %217 = insertvalue { ptr, i32 } %216, i32 %215, 1
  resume { ptr, i32 } %217
}

; Function Attrs: noreturn
declare void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput7routing5graph5GraphC2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7maliput3api12RoadGeometry13num_junctionsEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7maliput3api8Junction12num_segmentsEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7maliput7routing5graph12_GLOBAL__N_115GetBranchPointsEPKNS_3api7SegmentENS3_7LaneEnd5WhichE(ptr dead_on_unwind noalias writable sret(%"class.std::set") align 8, ptr noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7maliput7routing5graph12_GLOBAL__N_17GetNodeERKNS1_5GraphESt3setIPKNS_3api11BranchPointESt4lessISA_ESaISA_EESt8functionIFNS7_22TypeSpecificIdentifierINS1_4NodeEEEvEE(ptr dead_on_unwind noalias writable sret(%"struct.maliput::routing::graph::Node") align 8, ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEEvEEC2IRZNS4_10BuildGraphEPKNS1_12RoadGeometryEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput3api7Segment2idEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::TypeSpecificIdentifier.34") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4EdgeEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4EdgeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput3api22TypeSpecificIdentifierINS0_7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; 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, i8 } @_ZNSt3setIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEESt4lessIS6_ESaIS6_EE6insertERKS6_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput7routing5graph4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput7routing5graph4NodeD2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput7routing5graph5GraphD2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 align 2

attributes #0 = { 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 #1 = { noreturn "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 = { 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 #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 = { noreturn }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 32}
!14 = !{!"_ZTSN7maliput7routing5graph4EdgeE", !15, i64 0, !6, i64 32, !18, i64 40, !18, i64 72}
!15 = !{!"_ZTSN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4EdgeEEE", !16, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !10, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"_ZTSN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEE", !16, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


; 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.maliput::routing::graph::Graph" = type { %"class.std::unordered_map", %"class.std::unordered_map.2" }
%"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.2" = type { %"class.std::_Hashtable.3" }
%"class.std::_Hashtable.3" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%class.anon = type { ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<const maliput::api::BranchPoint *, const maliput::api::BranchPoint *, std::_Identity<const maliput::api::BranchPoint *>, std::less<const maliput::api::BranchPoint *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const maliput::api::BranchPoint *, const maliput::api::BranchPoint *, std::_Identity<const maliput::api::BranchPoint *>, std::less<const maliput::api::BranchPoint *>>::_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 }
%"struct.maliput::routing::graph::Node" = type { %"class.maliput::api::TypeSpecificIdentifier", %"class.std::set", %"class.std::set.27" }
%"class.maliput::api::TypeSpecificIdentifier" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::set.27" = type { %"class.std::_Rb_tree.28" }
%"class.std::_Rb_tree.28" = type { %"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>, maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>, std::_Identity<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>, maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>, std::_Identity<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"struct.maliput::routing::graph::Edge" = type { %"class.maliput::api::TypeSpecificIdentifier.33", ptr, %"class.maliput::api::TypeSpecificIdentifier", %"class.maliput::api::TypeSpecificIdentifier" }
%"class.maliput::api::TypeSpecificIdentifier.33" = type { %"class.std::__cxx11::basic_string" }
%"class.maliput::api::TypeSpecificIdentifier.34" = type { %"class.std::__cxx11::basic_string" }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@__func__._ZN7maliput7routing5graph10BuildGraphEPKNS_3api12RoadGeometryE = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [84 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7routing5graph10BuildGraphEPKNS_3api12RoadGeometryE(ptr dead_on_unwind noalias writable sret(%"struct.maliput::routing::graph::Graph") align 8 %0, ptr noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i64, align 8
  %4 = alloca %class.anon, align 8
  %5 = alloca %"class.std::set", align 8
  %6 = alloca %"class.std::set", align 8
  %7 = alloca %"struct.maliput::routing::graph::Node", align 8
  %8 = alloca %"class.std::set", align 8
  %9 = alloca %"class.std::function", align 8
  %10 = alloca %"struct.maliput::routing::graph::Node", align 8
  %11 = alloca %"class.std::set", align 8
  %12 = alloca %"class.std::function", align 8
  %13 = alloca %"struct.maliput::routing::graph::Edge", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.maliput::api::TypeSpecificIdentifier.34", align 8
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %16, label %17

16:                                               ; preds = %2
  tail call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN7maliput7routing5graph10BuildGraphEPKNS_3api12RoadGeometryE, ptr noundef nonnull @.str.1, i32 noundef 100) #5
  unreachable

17:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store i64 0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store ptr %3, ptr %4, align 8, !tbaa !9
  call void @_ZN7maliput7routing5graph5GraphC2Ev(ptr noundef nonnull align 8 dereferenceable(112) %0) #6
  %18 = getelementptr inbounds i8, ptr %13, i64 32
  %19 = getelementptr inbounds i8, ptr %13, i64 40
  %20 = getelementptr inbounds i8, ptr %13, i64 72
  %21 = getelementptr inbounds i8, ptr %7, i64 80
  %22 = getelementptr inbounds i8, ptr %10, i64 80
  %23 = getelementptr inbounds i8, ptr %0, i64 56
  br label %24

24:                                               ; preds = %35, %17
  %.0 = phi i32 [ 0, %17 ], [ %36, %35 ]
  %25 = invoke noundef i32 @_ZNK7maliput3api12RoadGeometry13num_junctionsEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %26 unwind label %28

26:                                               ; preds = %24
  %27 = icmp slt i32 %.0, %25
  br i1 %27, label %30, label %103

28:                                               ; preds = %24
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %102

30:                                               ; preds = %26
  %31 = invoke noundef ptr @_ZNK7maliput3api12RoadGeometry8junctionEi(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %.0)
          to label %.preheader unwind label %37

.preheader:                                       ; preds = %30, %65
  %.039 = phi i32 [ %66, %65 ], [ 0, %30 ]
  %32 = invoke noundef i32 @_ZNK7maliput3api8Junction12num_segmentsEv(ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %33 unwind label %39

33:                                               ; preds = %.preheader
  %34 = icmp slt i32 %.039, %32
  br i1 %34, label %41, label %35

35:                                               ; preds = %33
  %36 = add nuw nsw i32 %.0, 1
  br label %24, !llvm.loop !11

37:                                               ; preds = %30
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %102

39:                                               ; preds = %.preheader
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %102

41:                                               ; preds = %33
  %42 = invoke noundef ptr @_ZNK7maliput3api8Junction7segmentEi(ptr noundef nonnull align 8 dereferenceable(8) %31, i32 noundef %.039)
          to label %43 unwind label %67

43:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #6
  invoke void @_ZN7maliput7routing5graph12_GLOBAL__N_115GetBranchPointsEPKNS_3api7SegmentENS3_7LaneEnd5WhichE(ptr dead_on_unwind nonnull writable sret(%"class.std::set") align 8 %5, ptr noundef %42, i32 noundef 0)
          to label %44 unwind label %69

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #6
  invoke void @_ZN7maliput7routing5graph12_GLOBAL__N_115GetBranchPointsEPKNS_3api7SegmentENS3_7LaneEnd5WhichE(ptr dead_on_unwind nonnull writable sret(%"class.std::set") align 8 %6, ptr noundef %42, i32 noundef 1)
          to label %45 unwind label %71

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %7) #6
  invoke void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %46 unwind label %73

46:                                               ; preds = %45
  call void @"_ZNSt8functionIFN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEEvEEC2IRZNS4_10BuildGraphEPKNS1_12RoadGeometryEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  invoke void @_ZN7maliput7routing5graph12_GLOBAL__N_17GetNodeERKNS1_5GraphESt3setIPKNS_3api11BranchPointESt4lessISA_ESaISA_EESt8functionIFNS7_22TypeSpecificIdentifierINS1_4NodeEEEvEE(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::routing::graph::Node") align 8 %7, ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull %8, ptr noundef nonnull %9)
          to label %47 unwind label %75

47:                                               ; preds = %46
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %10) #6
  invoke void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %48 unwind label %77

48:                                               ; preds = %47
  call void @"_ZNSt8functionIFN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEEvEEC2IRZNS4_10BuildGraphEPKNS1_12RoadGeometryEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  invoke void @_ZN7maliput7routing5graph12_GLOBAL__N_17GetNodeERKNS1_5GraphESt3setIPKNS_3api11BranchPointESt4lessISA_ESaISA_EESt8functionIFNS7_22TypeSpecificIdentifierINS1_4NodeEEEvEE(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::routing::graph::Node") align 8 %10, ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull %11, ptr noundef nonnull %12)
          to label %49 unwind label %79

49:                                               ; preds = %48
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  invoke void @_ZNK7maliput3api7Segment2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier.34") align 8 %15, ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %50 unwind label %81

50:                                               ; preds = %49
  %51 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api22TypeSpecificIdentifierINS0_7SegmentEE6stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %15)
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %51)
          to label %52 unwind label %83

52:                                               ; preds = %50
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4EdgeEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull %14)
          to label %53 unwind label %85

53:                                               ; preds = %52
  store ptr %42, ptr %18, align 8, !tbaa !13
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %54 unwind label %87

54:                                               ; preds = %53
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %55 unwind label %89

55:                                               ; preds = %54
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  %56 = invoke { ptr, i8 } @_ZNSt3setIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEESt4lessIS6_ESaIS6_EE6insertERKS6_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %57 unwind label %95

57:                                               ; preds = %55
  %58 = invoke { ptr, i8 } @_ZNSt3setIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEESt4lessIS6_ESaIS6_EE6insertERKS6_(ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %59 unwind label %95

59:                                               ; preds = %57
  %60 = invoke { ptr, i8 } @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE16insert_or_assignIRS5_EESB_INSt8__detail14_Node_iteratorISD_Lb0ELb0EEEbERSC_OT_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(104) %13)
          to label %61 unwind label %95

61:                                               ; preds = %59
  %62 = invoke { ptr, i8 } @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE16insert_or_assignIRS5_EESB_INSt8__detail14_Node_iteratorISD_Lb0ELb0EEEbERSC_OT_(ptr noundef nonnull align 8 dereferenceable(56) %23, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(128) %7)
          to label %63 unwind label %95

63:                                               ; preds = %61
  %64 = invoke { ptr, i8 } @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE16insert_or_assignIRS5_EESB_INSt8__detail14_Node_iteratorISD_Lb0ELb0EEEbERSC_OT_(ptr noundef nonnull align 8 dereferenceable(56) %23, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(128) %10)
          to label %65 unwind label %95

65:                                               ; preds = %63
  call void @_ZN7maliput7routing5graph4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %13) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %13) #6
  call void @_ZN7maliput7routing5graph4NodeD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %10) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #6
  call void @_ZN7maliput7routing5graph4NodeD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %7) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
  %66 = add nuw nsw i32 %.039, 1
  br label %.preheader, !llvm.loop !19

67:                                               ; preds = %41
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %102

69:                                               ; preds = %43
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %101

71:                                               ; preds = %44
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %100

73:                                               ; preds = %45
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %99

75:                                               ; preds = %46
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  br label %99

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

79:                                               ; preds = %48
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  br label %98

81:                                               ; preds = %49
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %94

83:                                               ; preds = %50
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %93

85:                                               ; preds = %52
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %92

87:                                               ; preds = %53
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %91

89:                                               ; preds = %54
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %91

91:                                               ; preds = %89, %87
  %.pn = phi { ptr, i32 } [ %90, %89 ], [ %88, %87 ]
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4EdgeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %92

92:                                               ; preds = %91, %85
  %.pn.pn = phi { ptr, i32 } [ %.pn, %91 ], [ %86, %85 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %93

93:                                               ; preds = %92, %83
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %92 ], [ %84, %83 ]
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %94

94:                                               ; preds = %93, %81
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %93 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  br label %97

95:                                               ; preds = %63, %61, %59, %57, %55
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput7routing5graph4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %13) #6
  br label %97

97:                                               ; preds = %95, %94
  %.pn45 = phi { ptr, i32 } [ %96, %95 ], [ %.pn.pn.pn.pn, %94 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %13) #6
  call void @_ZN7maliput7routing5graph4NodeD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %10) #6
  br label %98

98:                                               ; preds = %97, %79, %77
  %.pn45.pn = phi { ptr, i32 } [ %.pn45, %97 ], [ %80, %79 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #6
  call void @_ZN7maliput7routing5graph4NodeD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %7) #6
  br label %99

99:                                               ; preds = %98, %75, %73
  %.pn45.pn.pn = phi { ptr, i32 } [ %.pn45.pn, %98 ], [ %76, %75 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  br label %100

100:                                              ; preds = %99, %71
  %.pn45.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn, %99 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  call void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  br label %101

101:                                              ; preds = %100, %69
  %.pn45.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn.pn, %100 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
  br label %102

102:                                              ; preds = %37, %67, %101, %39, %28
  %.pn45.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %29, %28 ], [ %38, %37 ], [ %40, %39 ], [ %.pn45.pn.pn.pn.pn, %101 ], [ %68, %67 ]
  call void @_ZN7maliput7routing5graph5GraphD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %0) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn45.pn.pn.pn.pn.pn.pn.pn.pn

103:                                              ; preds = %26
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret void
}

; Function Attrs: noreturn
declare void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput7routing5graph5GraphC2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7maliput3api12RoadGeometry13num_junctionsEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7maliput3api8Junction12num_segmentsEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7maliput7routing5graph12_GLOBAL__N_115GetBranchPointsEPKNS_3api7SegmentENS3_7LaneEnd5WhichE(ptr dead_on_unwind noalias writable sret(%"class.std::set") align 8, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7maliput7routing5graph12_GLOBAL__N_17GetNodeERKNS1_5GraphESt3setIPKNS_3api11BranchPointESt4lessISA_ESaISA_EESt8functionIFNS7_22TypeSpecificIdentifierINS1_4NodeEEEvEE(ptr dead_on_unwind noalias writable sret(%"struct.maliput::routing::graph::Node") align 8, ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt3setIPKN7maliput3api11BranchPointESt4lessIS4_ESaIS4_EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEEvEEC2IRZNS4_10BuildGraphEPKNS1_12RoadGeometryEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput3api7Segment2idEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::TypeSpecificIdentifier.34") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4EdgeEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4EdgeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput3api22TypeSpecificIdentifierINS0_7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; 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, i8 } @_ZNSt3setIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEESt4lessIS6_ESaIS6_EE6insertERKS6_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput7routing5graph4EdgeD2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput7routing5graph4NodeD2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput7routing5graph5GraphD2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 align 2

attributes #0 = { 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 #1 = { noreturn "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 = { 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 #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 = { noreturn }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 32}
!14 = !{!"_ZTSN7maliput7routing5graph4EdgeE", !15, i64 0, !10, i64 32, !18, i64 40, !18, i64 72}
!15 = !{!"_ZTSN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4EdgeEEE", !16, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !6, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!18 = !{!"_ZTSN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEE", !16, i64 0}
!19 = distinct !{!19, !12}


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