; LLVM IR from maliput/maliput :: src/maliput/utility (generate_dot)

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

%"class.maliput::api::TypeSpecificIdentifier.25" = 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::unordered_set" = type { %"class.std::_Hashtable.26" }
%"class.std::_Hashtable.26" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%class.anon = type { ptr }
%"struct.std::pair.76" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base.78" }
%"struct.std::__detail::_Node_iterator_base.78" = type { ptr }
%"struct.maliput::api::RoadPosition" = type { ptr, %"class.maliput::api::LanePosition" }
%"class.maliput::api::LanePosition" = type { %"class.maliput::math::Vector3" }
%"class.maliput::math::Vector3" = type { %"class.maliput::math::VectorBase" }
%"class.maliput::math::VectorBase" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x double] }
%"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 }
%"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 }
%"struct.std::pair" = type { %"class.maliput::api::TypeSpecificIdentifier", %"struct.maliput::routing::graph::Edge" }
%"class.maliput::api::TypeSpecificIdentifier" = type { %"class.std::__cxx11::basic_string" }
%"struct.maliput::routing::graph::Edge" = type { %"class.maliput::api::TypeSpecificIdentifier", ptr, %"class.maliput::api::TypeSpecificIdentifier.24", %"class.maliput::api::TypeSpecificIdentifier.24" }
%"class.maliput::api::TypeSpecificIdentifier.24" = type { %"class.std::__cxx11::basic_string" }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@__func__._ZN7maliput7utility17GenerateDotStreamERKNS_7routing5graph5GraphEPSo = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput3api7Segment2idEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::TypeSpecificIdentifier.25") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #2 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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5flushEv(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7utility17GenerateDotStreamERKNS_7routing5graph5GraphERKNS1_5RouteEPSo(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::unordered_set", align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %13 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %14 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %15 = alloca %class.anon, align 8
  %16 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %17 = alloca %"struct.std::pair.76", align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %20 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.maliput::api::TypeSpecificIdentifier.25", align 8
  %23 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %24 = alloca %"struct.std::__detail::_Node_iterator", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %3
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %29, label %28

28:                                               ; preds = %25
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str, ptr noundef @__func__._ZN7maliput7utility17GenerateDotStreamERKNS_7routing5graph5GraphEPSo, ptr noundef @.str.1, i32 noundef 52) #7
  unreachable

29:                                               ; preds = %25
  br label %30

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 56, ptr %7) #8
  call void @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %105, %30
  %32 = load i32, ptr %8, align 4, !tbaa !9
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = invoke noundef i32 @_ZNK7maliput7routing5Route4sizeEv(ptr noundef nonnull align 8 dereferenceable(88) %33)
          to label %35 unwind label %38

35:                                               ; preds = %31
  %36 = icmp slt i32 %32, %34
  br i1 %36, label %42, label %37

37:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %110

38:                                               ; preds = %31
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %9, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %10, align 4
  br label %109

42:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = load i32, ptr %8, align 4, !tbaa !9
  %45 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZNK7maliput7routing5Route3GetEi(ptr noundef nonnull align 8 dereferenceable(88) %43, i32 noundef %44)
          to label %46 unwind label %88

46:                                               ; preds = %42
  %47 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase15start_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %45)
          to label %48 unwind label %88

48:                                               ; preds = %46
  %49 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #8
  %50 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = invoke noundef ptr @_ZNK7maliput3api4Lane7segmentEv(ptr noundef nonnull align 8 dereferenceable(8) %51)
          to label %53 unwind label %88

53:                                               ; preds = %48
  store ptr %52, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.maliput::routing::graph::Graph", ptr %54, i32 0, i32 0
  %56 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %55) #8
  %57 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %13, i32 0, i32 0
  %58 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %57, i32 0, i32 0
  store ptr %56, ptr %58, align 8
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.maliput::routing::graph::Graph", ptr %59, i32 0, i32 0
  %61 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %60) #8
  %62 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %14, i32 0, i32 0
  %63 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %62, i32 0, i32 0
  store ptr %61, ptr %63, align 8
  %64 = getelementptr inbounds %class.anon, ptr %15, i32 0, i32 0
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %65, ptr %64, align 8, !tbaa !17
  %66 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %13, i32 0, i32 0
  %67 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8
  %69 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %14, i32 0, i32 0
  %70 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8
  %72 = getelementptr inbounds %class.anon, ptr %15, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8
  %74 = invoke ptr @"_ZSt7find_ifINSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_7routing5graph4EdgeEEES8_ELb0ELb0EEEZNS3_7utility17GenerateDotStreamERKNS7_5GraphERKNS6_5RouteEPSoE3$_0ET_SM_SM_T0_"(ptr %68, ptr %71, ptr %73)
          to label %75 unwind label %92

75:                                               ; preds = %53
  %76 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %12, i32 0, i32 0
  %77 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %76, i32 0, i32 0
  store ptr %74, ptr %77, align 8
  br label %78

78:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.maliput::routing::graph::Graph", ptr %79, i32 0, i32 0
  %81 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %80) #8
  %82 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %16, i32 0, i32 0
  %83 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %82, i32 0, i32 0
  store ptr %81, ptr %83, align 8
  %84 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS2_7routing5graph4EdgeEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %85 = xor i1 %84, true
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br i1 %85, label %86, label %96

86:                                               ; preds = %78
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.7, ptr noundef @__func__._ZN7maliput7utility17GenerateDotStreamERKNS_7routing5graph5GraphEPSo, ptr noundef @.str.1, i32 noundef 59) #7
          to label %87 unwind label %92

87:                                               ; preds = %86
  unreachable

88:                                               ; preds = %48, %46, %42
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %9, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %10, align 4
  br label %108

92:                                               ; preds = %98, %86, %53
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %9, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %108

96:                                               ; preds = %78
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97
  %99 = invoke { ptr, i8 } @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE6insertERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %100 unwind label %92

100:                                              ; preds = %98
  %101 = getelementptr inbounds { ptr, i8 }, ptr %17, i32 0, i32 0
  %102 = extractvalue { ptr, i8 } %99, 0
  store ptr %102, ptr %101, align 8
  %103 = getelementptr inbounds { ptr, i8 }, ptr %17, i32 0, i32 1
  %104 = extractvalue { ptr, i8 } %99, 1
  store i8 %104, ptr %103, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %105

105:                                              ; preds = %100
  %106 = load i32, ptr %8, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %8, align 4, !tbaa !9
  br label %31, !llvm.loop !19

108:                                              ; preds = %92, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %109

109:                                              ; preds = %108, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %211

110:                                              ; preds = %37
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef @.str.2)
          to label %113 unwind label %129

113:                                              ; preds = %110
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %115 unwind label %129

115:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.maliput::routing::graph::Graph", ptr %116, i32 0, i32 0
  store ptr %117, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %118 = load ptr, ptr %18, align 8, !tbaa !5
  %119 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %118) #8
  %120 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %19, i32 0, i32 0
  %121 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %120, i32 0, i32 0
  store ptr %119, ptr %121, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  %123 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %122) #8
  %124 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %20, i32 0, i32 0
  %125 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %124, i32 0, i32 0
  store ptr %123, ptr %125, align 8
  br label %126

126:                                              ; preds = %199, %115
  %127 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS2_7routing5graph4EdgeEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br i1 %127, label %133, label %128

128:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %202

129:                                              ; preds = %207, %205, %202, %113, %110
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %9, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %10, align 4
  br label %211

133:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %134 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS2_7routing5graph4EdgeEEES7_ELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  store ptr %134, ptr %21, align 8, !tbaa !5
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = load ptr, ptr %21, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.std::pair", ptr %136, i32 0, i32 1
  %138 = getelementptr inbounds %"struct.maliput::routing::graph::Edge", ptr %137, i32 0, i32 2
  %139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIN7maliput7routing5graph4NodeEERSoS4_RKNS0_3api22TypeSpecificIdentifierIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %135, ptr noundef nonnull align 8 dereferenceable(32) %138)
          to label %140 unwind label %176

140:                                              ; preds = %133
  %141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef @.str.3)
          to label %142 unwind label %176

142:                                              ; preds = %140
  %143 = load ptr, ptr %21, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.std::pair", ptr %143, i32 0, i32 1
  %145 = getelementptr inbounds %"struct.maliput::routing::graph::Edge", ptr %144, i32 0, i32 3
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIN7maliput7routing5graph4NodeEERSoS4_RKNS0_3api22TypeSpecificIdentifierIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef nonnull align 8 dereferenceable(32) %145)
          to label %147 unwind label %176

147:                                              ; preds = %142
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef @.str.4)
          to label %149 unwind label %176

149:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #8
  %150 = load ptr, ptr %21, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.std::pair", ptr %150, i32 0, i32 1
  %152 = getelementptr inbounds %"struct.maliput::routing::graph::Edge", ptr %151, i32 0, i32 1
  %153 = load ptr, ptr %152, align 8, !tbaa !21
  invoke void @_ZNK7maliput3api7Segment2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier.25") align 8 %22, ptr noundef nonnull align 8 dereferenceable(8) %153)
          to label %154 unwind label %180

154:                                              ; preds = %149
  %155 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api22TypeSpecificIdentifierINS0_7SegmentEE6stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %156 unwind label %184

156:                                              ; preds = %154
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef nonnull align 8 dereferenceable(32) %155)
          to label %158 unwind label %184

158:                                              ; preds = %156
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef @.str.8)
          to label %160 unwind label %184

160:                                              ; preds = %158
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %161 = load ptr, ptr %21, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.std::pair", ptr %161, i32 0, i32 1
  %163 = getelementptr inbounds %"struct.maliput::routing::graph::Edge", ptr %162, i32 0, i32 1
  %164 = invoke ptr @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE4findERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(8) %163)
          to label %165 unwind label %189

165:                                              ; preds = %160
  %166 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %23, i32 0, i32 0
  %167 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.78", ptr %166, i32 0, i32 0
  store ptr %164, ptr %167, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %168 = call ptr @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %7) #8
  %169 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %24, i32 0, i32 0
  %170 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.78", ptr %169, i32 0, i32 0
  store ptr %168, ptr %170, align 8
  %171 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIPKN7maliput3api7SegmentELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br i1 %171, label %172, label %193

172:                                              ; preds = %165
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef @.str.9)
          to label %175 unwind label %176

175:                                              ; preds = %172
  br label %193

176:                                              ; preds = %196, %193, %172, %147, %142, %140, %133
  %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 %201

180:                                              ; preds = %149
  %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 = %158, %156, %154
  %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 @_ZN7maliput3api22TypeSpecificIdentifierINS0_7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #8
  br label %188

188:                                              ; preds = %184, %180
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #8
  br label %201

189:                                              ; preds = %160
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %9, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %201

193:                                              ; preds = %175, %165
  %194 = load ptr, ptr %6, align 8, !tbaa !5
  %195 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %194, ptr noundef @.str.10)
          to label %196 unwind label %176

196:                                              ; preds = %193
  %197 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %195, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %198 unwind label %176

198:                                              ; preds = %196
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %199

199:                                              ; preds = %198
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS2_7routing5graph4EdgeEEES7_ELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  br label %126

201:                                              ; preds = %189, %188, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %211

202:                                              ; preds = %128
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %203, ptr noundef @.str.6)
          to label %205 unwind label %129

205:                                              ; preds = %202
  %206 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %204, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %207 unwind label %129

207:                                              ; preds = %205
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  %209 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5flushEv(ptr noundef nonnull align 8 dereferenceable(8) %208)
          to label %210 unwind label %129

210:                                              ; preds = %207
  call void @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #8
  ret void

211:                                              ; preds = %201, %129, %109
  call void @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #8
  br label %212

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

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

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

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

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

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

declare noundef ptr @_ZNK7maliput3api4Lane7segmentEv(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifINSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_7routing5graph4EdgeEEES8_ELb0ELb0EEEZNS3_7utility17GenerateDotStreamERKNS7_5GraphERKNS6_5RouteEPSoE3$_0ET_SM_SM_T0_"(ptr, ptr, ptr) #1

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

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

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

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

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

attributes #0 = { 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 #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { noreturn }
attributes #8 = { 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, !6, i64 0}
!12 = !{!"_ZTSN7maliput3api12RoadPositionE", !6, i64 0, !13, i64 8}
!13 = !{!"_ZTSN7maliput3api12LanePositionE", !14, i64 0}
!14 = !{!"_ZTSN7maliput4math7Vector3E", !15, i64 0}
!15 = !{!"_ZTSN7maliput4math10VectorBaseILm3ENS0_7Vector3EEE", !16, i64 0}
!16 = !{!"_ZTSSt5arrayIdLm3EE", !7, i64 0}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSZN7maliput7utility17GenerateDotStreamERKNS_7routing5graph5GraphERKNS1_5RouteEPSoE3$_0", !6, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !6, i64 64}
!22 = !{!"_ZTSSt4pairIKN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEES5_E", !23, i64 0, !27, i64 32}
!23 = !{!"_ZTSN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4EdgeEEE", !24, i64 0}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !26, i64 8, !7, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!26 = !{!"long", !7, i64 0}
!27 = !{!"_ZTSN7maliput7routing5graph4EdgeE", !23, i64 0, !6, i64 32, !28, i64 40, !28, i64 72}
!28 = !{!"_ZTSN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEE", !24, i64 0}


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

%"class.maliput::api::TypeSpecificIdentifier.25" = 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::unordered_set" = type { %"class.std::_Hashtable.26" }
%"class.std::_Hashtable.26" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base.78" }
%"struct.std::__detail::_Node_iterator_base.78" = type { ptr }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@__func__._ZN7maliput7utility17GenerateDotStreamERKNS_7routing5graph5GraphEPSo = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS2_7routing5graph4EdgeEEES7_ELb0EEESD_(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 noundef nonnull align 8 dereferenceable(136) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS2_7routing5graph4EdgeEEES7_ELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput3api7Segment2idEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::TypeSpecificIdentifier.25") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5flushEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7utility17GenerateDotStreamERKNS_7routing5graph5GraphERKNS1_5RouteEPSo(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::unordered_set", align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %7 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %8 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %9 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %10 = alloca %"class.maliput::api::TypeSpecificIdentifier.25", align 8
  %11 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %12 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %13, label %14

13:                                               ; preds = %3
  tail call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN7maliput7utility17GenerateDotStreamERKNS_7routing5graph5GraphEPSo, ptr noundef nonnull @.str.1, i32 noundef 52) #7
  unreachable

14:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #8
  call void @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #8
  %15 = call noundef i32 @_ZNK7maliput7routing5Route4sizeEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %39, %14
  %17 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull @.str.2)
          to label %44 unwind label %51

.lr.ph:                                           ; preds = %14, %39
  %.038 = phi i32 [ %40, %39 ], [ 0, %14 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %18 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZNK7maliput7routing5Route3GetEi(ptr noundef nonnull align 8 dereferenceable(88) %1, i32 noundef %.038)
          to label %19 unwind label %34

19:                                               ; preds = %.lr.ph
  %20 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase15start_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %18)
  %21 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = invoke noundef ptr @_ZNK7maliput3api4Lane7segmentEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %24 unwind label %34

24:                                               ; preds = %19
  store ptr %23, ptr %5, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %25 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #8
  %26 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #8
  %27 = load ptr, ptr %5, align 8, !tbaa !14
  %28 = invoke ptr @"_ZSt7find_ifINSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_7routing5graph4EdgeEEES8_ELb0ELb0EEEZNS3_7utility17GenerateDotStreamERKNS7_5GraphERKNS6_5RouteEPSoE3$_0ET_SM_SM_T0_"(ptr %25, ptr %26, ptr %27)
          to label %29 unwind label %.loopexit

29:                                               ; preds = %24
  store ptr %28, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %30 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #8
  store ptr %30, ptr %7, align 8
  %31 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS2_7routing5graph4EdgeEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br i1 %31, label %37, label %32

32:                                               ; preds = %29
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str.7, ptr noundef nonnull @__func__._ZN7maliput7utility17GenerateDotStreamERKNS_7routing5graph5GraphEPSo, ptr noundef nonnull @.str.1, i32 noundef 59) #7
          to label %33 unwind label %.loopexit.split-lp

33:                                               ; preds = %32
  unreachable

34:                                               ; preds = %19, %.lr.ph
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %43

.loopexit:                                        ; preds = %24, %37
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %36

.loopexit.split-lp:                               ; preds = %32
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %36

36:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %43

37:                                               ; preds = %29
  %38 = invoke { ptr, i8 } @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE6insertERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %39 unwind label %.loopexit

39:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  %40 = add nuw nsw i32 %.038, 1
  %41 = call noundef i32 @_ZNK7maliput7routing5Route4sizeEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %.lr.ph, label %._crit_edge, !llvm.loop !15

43:                                               ; preds = %36, %34
  %.pn35 = phi { ptr, i32 } [ %lpad.phi, %36 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %100

44:                                               ; preds = %._crit_edge
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %46 unwind label %51

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %47 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #8
  store ptr %47, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %48 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #8
  store ptr %48, ptr %9, align 8
  %49 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS2_7routing5graph4EdgeEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br i1 %49, label %.lr.ph40, label %._crit_edge41

._crit_edge41:                                    ; preds = %91, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull @.str.6)
          to label %95 unwind label %51

51:                                               ; preds = %97, %95, %._crit_edge41, %44, %._crit_edge
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %100

.lr.ph40:                                         ; preds = %46, %91
  %53 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS2_7routing5graph4EdgeEEES7_ELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  %54 = getelementptr inbounds i8, ptr %53, i64 72
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIN7maliput7routing5graph4NodeEERSoS4_RKNS0_3api22TypeSpecificIdentifierIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(32) %54)
          to label %56 unwind label %78

56:                                               ; preds = %.lr.ph40
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @.str.3)
          to label %58 unwind label %78

58:                                               ; preds = %56
  %59 = getelementptr inbounds i8, ptr %53, i64 104
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIN7maliput7routing5graph4NodeEERSoS4_RKNS0_3api22TypeSpecificIdentifierIT_EE(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(32) %59)
          to label %61 unwind label %78

61:                                               ; preds = %58
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull @.str.4)
          to label %63 unwind label %78

63:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #8
  %64 = getelementptr inbounds i8, ptr %53, i64 64
  %65 = load ptr, ptr %64, align 8, !tbaa !17
  invoke void @_ZNK7maliput3api7Segment2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier.25") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %65)
          to label %66 unwind label %80

66:                                               ; preds = %63
  %67 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api22TypeSpecificIdentifierINS0_7SegmentEE6stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %10)
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 8 dereferenceable(32) %67)
          to label %69 unwind label %82

69:                                               ; preds = %66
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull @.str.8)
          to label %71 unwind label %82

71:                                               ; preds = %69
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %72 = invoke ptr @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE4findERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %64)
          to label %73 unwind label %85

73:                                               ; preds = %71
  store ptr %72, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %74 = call ptr @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #8
  store ptr %74, ptr %12, align 8
  %75 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIPKN7maliput3api7SegmentELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br i1 %75, label %76, label %87

76:                                               ; preds = %73
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull @.str.9)
          to label %87 unwind label %78

78:                                               ; preds = %89, %87, %76, %61, %58, %56, %.lr.ph40
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %94

80:                                               ; preds = %63
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %84

82:                                               ; preds = %69, %66
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  br label %84

84:                                               ; preds = %82, %80
  %.pn = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  br label %94

85:                                               ; preds = %71
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %94

87:                                               ; preds = %76, %73
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull @.str.10)
          to label %89 unwind label %78

89:                                               ; preds = %87
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %91 unwind label %78

91:                                               ; preds = %89
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS2_7routing5graph4EdgeEEES7_ELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  %93 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS2_7routing5graph4EdgeEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br i1 %93, label %.lr.ph40, label %._crit_edge41

94:                                               ; preds = %85, %84, %78
  %.pn33 = phi { ptr, i32 } [ %79, %78 ], [ %86, %85 ], [ %.pn, %84 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %100

95:                                               ; preds = %._crit_edge41
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %97 unwind label %51

97:                                               ; preds = %95
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5flushEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %99 unwind label %51

99:                                               ; preds = %97
  call void @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #8
  ret void

100:                                              ; preds = %94, %51, %43
  %.pn35.pn = phi { ptr, i32 } [ %.pn35, %43 ], [ %.pn33, %94 ], [ %52, %51 ]
  call void @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #8
  resume { ptr, i32 } %.pn35.pn
}

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

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

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

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

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

declare noundef ptr @_ZNK7maliput3api4Lane7segmentEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifINSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_7routing5graph4EdgeEEES8_ELb0ELb0EEEZNS3_7utility17GenerateDotStreamERKNS7_5GraphERKNS6_5RouteEPSoE3$_0ET_SM_SM_T0_"(ptr, ptr, ptr) local_unnamed_addr #1

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

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

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

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

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

attributes #0 = { 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 #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { noreturn }
attributes #8 = { 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, !7, i64 0}
!6 = !{!"_ZTSN7maliput3api12RoadPositionE", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN7maliput3api12LanePositionE", !11, i64 0}
!11 = !{!"_ZTSN7maliput4math7Vector3E", !12, i64 0}
!12 = !{!"_ZTSN7maliput4math10VectorBaseILm3ENS0_7Vector3EEE", !13, i64 0}
!13 = !{!"_ZTSSt5arrayIdLm3EE", !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !7, i64 64}
!18 = !{!"_ZTSSt4pairIKN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4EdgeEEES5_E", !19, i64 0, !23, i64 32}
!19 = !{!"_ZTSN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4EdgeEEE", !20, i64 0}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !8, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!22 = !{!"long", !8, i64 0}
!23 = !{!"_ZTSN7maliput7routing5graph4EdgeE", !19, i64 0, !7, i64 32, !24, i64 40, !24, i64 72}
!24 = !{!"_ZTSN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEE", !20, i64 0}


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