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

; 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" = 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::vector.116" = type { %"struct.std::_Vector_base.117" }
%"struct.std::_Vector_base.117" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.15" = type { i8 }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.__gnu_cxx::__normal_iterator.121" = type { ptr }
%"class.std::optional.122" = type { %"struct.std::_Optional_base.123" }
%"struct.std::_Optional_base.123" = type { %"struct.std::_Optional_payload.125" }
%"struct.std::_Optional_payload.125" = type { %"struct.std::_Optional_payload_base.base.127", [7 x i8] }
%"struct.std::_Optional_payload_base.base.127" = type <{ %"union.std::_Optional_payload_base<maliput::api::RoadPosition>::_Storage", i8 }>
%"union.std::_Optional_payload_base<maliput::api::RoadPosition>::_Storage" = type { %"struct.maliput::api::RoadPosition" }
%"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] }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<maliput::api::RoadPosition, std::allocator<maliput::api::RoadPosition>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::RoadPosition, std::allocator<maliput::api::RoadPosition>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::RoadPosition, std::allocator<maliput::api::RoadPosition>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::RoadPosition, std::allocator<maliput::api::RoadPosition>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.maliput::routing::Route" = type { %"class.std::vector", %"class.std::unordered_map", ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<maliput::routing::Phase, std::allocator<maliput::routing::Phase>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::routing::Phase, std::allocator<maliput::routing::Phase>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::routing::Phase, std::allocator<maliput::routing::Phase>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::routing::Phase, std::allocator<maliput::routing::Phase>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }

@.str.11 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [48 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7maliput7routing5Route28ValidateEndToEndConnectivityB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::vector.116") align 8 %0, ptr noundef nonnull align 8 dereferenceable(88) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator.15", align 1
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator.15", align 1
  %12 = alloca double, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.121", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.121", align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.std::optional.122", align 8
  %24 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %25 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"class.std::optional.122", align 8
  %29 = alloca %"class.std::vector.5", align 8
  %30 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %31 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %33 = load ptr, ptr %4, align 8
  store i1 false, ptr %5, align 1
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %34 = getelementptr inbounds %"class.maliput::routing::Route", ptr %33, i32 0, i32 0
  %35 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  %36 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase15start_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %35)
          to label %37 unwind label %43

37:                                               ; preds = %2
  %38 = call noundef i64 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  %39 = icmp ne i64 %38, 1
  br i1 %39, label %40, label %56

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %41 unwind label %47

41:                                               ; preds = %40
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %42 unwind label %51

42:                                               ; preds = %41
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  br label %56

43:                                               ; preds = %56, %2
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %6, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %7, align 4
  br label %366

47:                                               ; preds = %40
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %6, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %7, align 4
  br label %55

51:                                               ; preds = %41
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %6, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %55

55:                                               ; preds = %51, %47
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  br label %366

56:                                               ; preds = %42, %37
  %57 = getelementptr inbounds %"class.maliput::routing::Route", ptr %33, i32 0, i32 0
  %58 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #6
  %59 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase13end_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %58)
          to label %60 unwind label %43

60:                                               ; preds = %56
  %61 = call noundef i64 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #6
  %62 = icmp ne i64 %61, 1
  br i1 %62, label %63, label %75

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %64 unwind label %66

64:                                               ; preds = %63
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %65 unwind label %70

65:                                               ; preds = %64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  br label %75

66:                                               ; preds = %63
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %6, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %7, align 4
  br label %74

70:                                               ; preds = %64
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %6, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %74

74:                                               ; preds = %70, %66
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  br label %366

75:                                               ; preds = %65, %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %76 = getelementptr inbounds %"class.maliput::routing::Route", ptr %33, i32 0, i32 2
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  %78 = invoke noundef ptr @_ZNK7maliput3api11RoadNetwork13road_geometryEv(ptr noundef nonnull align 8 dereferenceable(88) %77)
          to label %79 unwind label %89

79:                                               ; preds = %75
  %80 = invoke noundef double @_ZNK7maliput3api12RoadGeometry16linear_toleranceEv(ptr noundef nonnull align 8 dereferenceable(8) %78)
          to label %81 unwind label %89

81:                                               ; preds = %79
  store double %80, ptr %12, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 0, ptr %13, align 8, !tbaa !23
  br label %82

82:                                               ; preds = %357, %81
  %83 = load i64, ptr %13, align 8, !tbaa !23
  %84 = getelementptr inbounds %"class.maliput::routing::Route", ptr %33, i32 0, i32 0
  %85 = call noundef i64 @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #6
  %86 = sub i64 %85, 1
  %87 = icmp ult i64 %83, %86
  br i1 %87, label %93, label %88

88:                                               ; preds = %82
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %361

89:                                               ; preds = %79, %75
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %6, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %7, align 4
  br label %363

93:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %94 = getelementptr inbounds %"class.maliput::routing::Route", ptr %33, i32 0, i32 0
  %95 = load i64, ptr %13, align 8, !tbaa !23
  %96 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %95) #6
  store ptr %96, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %97 = getelementptr inbounds %"class.maliput::routing::Route", ptr %33, i32 0, i32 0
  %98 = load i64, ptr %13, align 8, !tbaa !23
  %99 = add i64 %98, 1
  %100 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %99) #6
  store ptr %100, ptr %16, align 8, !tbaa !5
  %101 = load ptr, ptr %15, align 8, !tbaa !5
  %102 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase13end_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %101)
          to label %103 unwind label %143

103:                                              ; preds = %93
  %104 = call noundef i64 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #6
  %105 = load ptr, ptr %16, align 8, !tbaa !5
  %106 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase15start_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %105)
          to label %107 unwind label %143

107:                                              ; preds = %103
  %108 = call noundef i64 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %106) #6
  %109 = icmp ne i64 %104, %108
  br i1 %109, label %110, label %166

110:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 392, ptr %17) #6
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %17)
          to label %111 unwind label %147

111:                                              ; preds = %110
  %112 = getelementptr inbounds i8, ptr %17, i64 16
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef @.str.13)
          to label %114 unwind label %151

114:                                              ; preds = %111
  %115 = load i64, ptr %13, align 8, !tbaa !23
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %113, i64 noundef %115)
          to label %117 unwind label %151

117:                                              ; preds = %114
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef @.str.14)
          to label %119 unwind label %151

119:                                              ; preds = %117
  %120 = load ptr, ptr %15, align 8, !tbaa !5
  %121 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase13end_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %120)
          to label %122 unwind label %151

122:                                              ; preds = %119
  %123 = call noundef i64 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #6
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %118, i64 noundef %123)
          to label %125 unwind label %151

125:                                              ; preds = %122
  %126 = getelementptr inbounds i8, ptr %17, i64 16
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef @.str.15)
          to label %128 unwind label %151

128:                                              ; preds = %125
  %129 = load i64, ptr %13, align 8, !tbaa !23
  %130 = add i64 %129, 1
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %127, i64 noundef %130)
          to label %132 unwind label %151

132:                                              ; preds = %128
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef @.str.16)
          to label %134 unwind label %151

134:                                              ; preds = %132
  %135 = load ptr, ptr %16, align 8, !tbaa !5
  %136 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase15start_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %135)
          to label %137 unwind label %151

137:                                              ; preds = %134
  %138 = call noundef i64 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #6
  %139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %133, i64 noundef %138)
          to label %140 unwind label %151

140:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 8 dereferenceable(128) %17)
          to label %141 unwind label %155

141:                                              ; preds = %140
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %142 unwind label %159

142:                                              ; preds = %141
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %17) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr %17) #6
  br label %166

143:                                              ; preds = %103, %93
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %6, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %7, align 4
  br label %360

147:                                              ; preds = %110
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %6, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %7, align 4
  br label %165

151:                                              ; preds = %137, %134, %132, %128, %125, %122, %119, %117, %114, %111
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %6, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %7, align 4
  br label %164

155:                                              ; preds = %140
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %6, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %7, align 4
  br label %163

159:                                              ; preds = %141
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %6, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %163

163:                                              ; preds = %159, %155
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %164

164:                                              ; preds = %163, %151
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %17) #6
  br label %165

165:                                              ; preds = %164, %147
  call void @llvm.lifetime.end.p0(i64 392, ptr %17) #6
  br label %360

166:                                              ; preds = %142, %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %167 = load ptr, ptr %15, align 8, !tbaa !5
  %168 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase13end_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %167)
          to label %169 unwind label %179

169:                                              ; preds = %166
  store ptr %168, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %170 = load ptr, ptr %19, align 8, !tbaa !5
  %171 = call ptr @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %170) #6
  %172 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.121", ptr %20, i32 0, i32 0
  store ptr %171, ptr %172, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %173 = load ptr, ptr %19, align 8, !tbaa !5
  %174 = call ptr @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %173) #6
  %175 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.121", ptr %21, i32 0, i32 0
  store ptr %174, ptr %175, align 8
  br label %176

176:                                              ; preds = %352, %169
  %177 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7maliput3api12RoadPositionESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br i1 %177, label %183, label %178

178:                                              ; preds = %176
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %356

179:                                              ; preds = %166
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %6, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %7, align 4
  br label %355

183:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %184 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7maliput3api12RoadPositionESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  store ptr %184, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #6
  %185 = load ptr, ptr %22, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %185, i32 0, i32 0
  %187 = load ptr, ptr %186, align 8, !tbaa !24
  %188 = load ptr, ptr %16, align 8, !tbaa !5
  %189 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase15start_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %188)
          to label %190 unwind label %227

190:                                              ; preds = %183
  invoke void @_ZN7maliput7routing12_GLOBAL__N_118FindPositionByLaneEPKNS_3api4LaneERKSt6vectorINS2_12RoadPositionESaIS7_EE(ptr dead_on_unwind writable sret(%"class.std::optional.122") align 8 %23, ptr noundef %187, ptr noundef nonnull align 8 dereferenceable(24) %189)
          to label %191 unwind label %227

191:                                              ; preds = %190
  %192 = call noundef zeroext i1 @_ZNKSt8optionalIN7maliput3api12RoadPositionEEcvbEv(ptr noundef nonnull align 8 dereferenceable(40) %23) #6
  br i1 %192, label %193, label %260

193:                                              ; preds = %191
  %194 = load ptr, ptr %22, align 8, !tbaa !5
  %195 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNRSt8optionalIN7maliput3api12RoadPositionEEdeEv(ptr noundef nonnull align 8 dereferenceable(40) %23) #6
  %196 = load double, ptr %12, align 8, !tbaa !21
  %197 = invoke noundef zeroext i1 @_ZN7maliput7routing12_GLOBAL__N_119IsRoadPositionCloseERKNS_3api12RoadPositionES5_d(ptr noundef nonnull align 8 dereferenceable(32) %194, ptr noundef nonnull align 8 dereferenceable(32) %195, double noundef %196)
          to label %198 unwind label %227

198:                                              ; preds = %193
  br i1 %197, label %259, label %199

199:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 392, ptr %24) #6
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %24)
          to label %200 unwind label %231

200:                                              ; preds = %199
  %201 = getelementptr inbounds i8, ptr %24, i64 16
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef @.str.17)
          to label %203 unwind label %235

203:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #6
  %204 = load ptr, ptr %22, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %204, i32 0, i32 0
  %206 = load ptr, ptr %205, align 8, !tbaa !24
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %25, ptr noundef nonnull align 8 dereferenceable(8) %206)
          to label %207 unwind label %239

207:                                              ; preds = %203
  %208 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api22TypeSpecificIdentifierINS0_4LaneEE6stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %209 unwind label %243

209:                                              ; preds = %207
  %210 = 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) %202, ptr noundef nonnull align 8 dereferenceable(32) %208)
          to label %211 unwind label %243

211:                                              ; preds = %209
  %212 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %210, ptr noundef @.str.18)
          to label %213 unwind label %243

213:                                              ; preds = %211
  %214 = load ptr, ptr %22, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %214, i32 0, i32 1
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput3apilsERSoRKNS0_12LanePositionE(ptr noundef nonnull align 8 dereferenceable(8) %212, ptr noundef nonnull align 8 dereferenceable(24) %215)
          to label %217 unwind label %243

217:                                              ; preds = %213
  %218 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %216, ptr noundef @.str.19)
          to label %219 unwind label %243

219:                                              ; preds = %217
  %220 = load i64, ptr %13, align 8, !tbaa !23
  %221 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %218, i64 noundef %220)
          to label %222 unwind label %243

222:                                              ; preds = %219
  %223 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %221, ptr noundef @.str.20)
          to label %224 unwind label %243

224:                                              ; preds = %222
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #6
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull align 8 dereferenceable(128) %24)
          to label %225 unwind label %248

225:                                              ; preds = %224
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %226 unwind label %252

226:                                              ; preds = %225
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %24) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr %24) #6
  br label %259

227:                                              ; preds = %193, %190, %183
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %6, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %7, align 4
  br label %354

231:                                              ; preds = %199
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %6, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %7, align 4
  br label %258

235:                                              ; preds = %200
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %6, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %7, align 4
  br label %257

239:                                              ; preds = %203
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %6, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %7, align 4
  br label %247

243:                                              ; preds = %222, %219, %217, %213, %211, %209, %207
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %6, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %7, align 4
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  br label %247

247:                                              ; preds = %243, %239
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  br label %257

248:                                              ; preds = %224
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %6, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %7, align 4
  br label %256

252:                                              ; preds = %225
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %6, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %256

256:                                              ; preds = %252, %248
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  br label %257

257:                                              ; preds = %256, %247, %235
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %24) #6
  br label %258

258:                                              ; preds = %257, %231
  call void @llvm.lifetime.end.p0(i64 392, ptr %24) #6
  br label %354

259:                                              ; preds = %226, %198
  br label %351

260:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %261 = load ptr, ptr %22, align 8, !tbaa !5
  %262 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %261, i32 0, i32 0
  %263 = load ptr, ptr %262, align 8, !tbaa !24
  %264 = load ptr, ptr %22, align 8, !tbaa !5
  %265 = invoke noundef i32 @_ZN7maliput7routing12_GLOBAL__N_122GetClosestLaneEndWhichERKNS_3api12RoadPositionE(ptr noundef nonnull align 8 dereferenceable(32) %264)
          to label %266 unwind label %308

266:                                              ; preds = %260
  %267 = invoke noundef ptr @_ZNK7maliput3api4Lane18GetOngoingBranchesENS0_7LaneEnd5WhichE(ptr noundef nonnull align 8 dereferenceable(8) %263, i32 noundef %265)
          to label %268 unwind label %308

268:                                              ; preds = %266
  store ptr %267, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %28) #6
  %269 = load ptr, ptr %22, align 8, !tbaa !5
  %270 = load ptr, ptr %16, align 8, !tbaa !5
  %271 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase15start_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %270)
          to label %272 unwind label %312

272:                                              ; preds = %268
  invoke void @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %271)
          to label %273 unwind label %312

273:                                              ; preds = %272
  %274 = load ptr, ptr %27, align 8, !tbaa !5
  %275 = load double, ptr %12, align 8, !tbaa !21
  invoke void @_ZN7maliput7routing12_GLOBAL__N_125MatchPositionInLaneEndSetERKNS_3api12RoadPositionESt6vectorIS3_SaIS3_EERKNS2_10LaneEndSetEd(ptr dead_on_unwind writable sret(%"class.std::optional.122") align 8 %28, ptr noundef nonnull align 8 dereferenceable(32) %269, ptr noundef %29, ptr noundef nonnull align 8 dereferenceable(8) %274, double noundef %275)
          to label %276 unwind label %316

276:                                              ; preds = %273
  %277 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt8optionalIN7maliput3api12RoadPositionEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) %23, ptr noundef nonnull align 8 dereferenceable(40) %28)
          to label %278 unwind label %316

278:                                              ; preds = %276
  call void @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #6
  %279 = call noundef zeroext i1 @_ZNKSt8optionalIN7maliput3api12RoadPositionEEcvbEv(ptr noundef nonnull align 8 dereferenceable(40) %23) #6
  br i1 %279, label %349, label %280

280:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 392, ptr %30) #6
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %30)
          to label %281 unwind label %321

281:                                              ; preds = %280
  %282 = getelementptr inbounds i8, ptr %30, i64 16
  %283 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %282, ptr noundef @.str.17)
          to label %284 unwind label %325

284:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #6
  %285 = load ptr, ptr %22, align 8, !tbaa !5
  %286 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %285, i32 0, i32 0
  %287 = load ptr, ptr %286, align 8, !tbaa !24
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %31, ptr noundef nonnull align 8 dereferenceable(8) %287)
          to label %288 unwind label %329

288:                                              ; preds = %284
  %289 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api22TypeSpecificIdentifierINS0_4LaneEE6stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %290 unwind label %333

290:                                              ; preds = %288
  %291 = 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) %283, ptr noundef nonnull align 8 dereferenceable(32) %289)
          to label %292 unwind label %333

292:                                              ; preds = %290
  %293 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %291, ptr noundef @.str.18)
          to label %294 unwind label %333

294:                                              ; preds = %292
  %295 = load ptr, ptr %22, align 8, !tbaa !5
  %296 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %295, i32 0, i32 1
  %297 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput3apilsERSoRKNS0_12LanePositionE(ptr noundef nonnull align 8 dereferenceable(8) %293, ptr noundef nonnull align 8 dereferenceable(24) %296)
          to label %298 unwind label %333

298:                                              ; preds = %294
  %299 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %297, ptr noundef @.str.19)
          to label %300 unwind label %333

300:                                              ; preds = %298
  %301 = load i64, ptr %13, align 8, !tbaa !23
  %302 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %299, i64 noundef %301)
          to label %303 unwind label %333

303:                                              ; preds = %300
  %304 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %302, ptr noundef @.str.21)
          to label %305 unwind label %333

305:                                              ; preds = %303
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #6
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %32, ptr noundef nonnull align 8 dereferenceable(128) %30)
          to label %306 unwind label %338

306:                                              ; preds = %305
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %307 unwind label %342

307:                                              ; preds = %306
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %30) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr %30) #6
  br label %349

308:                                              ; preds = %266, %260
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %6, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %7, align 4
  br label %350

312:                                              ; preds = %272, %268
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %6, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %7, align 4
  br label %320

316:                                              ; preds = %276, %273
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %6, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %7, align 4
  call void @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  br label %320

320:                                              ; preds = %316, %312
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #6
  br label %350

321:                                              ; preds = %280
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %6, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %7, align 4
  br label %348

325:                                              ; preds = %281
  %326 = landingpad { ptr, i32 }
          cleanup
  %327 = extractvalue { ptr, i32 } %326, 0
  store ptr %327, ptr %6, align 8
  %328 = extractvalue { ptr, i32 } %326, 1
  store i32 %328, ptr %7, align 4
  br label %347

329:                                              ; preds = %284
  %330 = landingpad { ptr, i32 }
          cleanup
  %331 = extractvalue { ptr, i32 } %330, 0
  store ptr %331, ptr %6, align 8
  %332 = extractvalue { ptr, i32 } %330, 1
  store i32 %332, ptr %7, align 4
  br label %337

333:                                              ; preds = %303, %300, %298, %294, %292, %290, %288
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %6, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %7, align 4
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  br label %337

337:                                              ; preds = %333, %329
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #6
  br label %347

338:                                              ; preds = %305
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %6, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %7, align 4
  br label %346

342:                                              ; preds = %306
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %6, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  br label %346

346:                                              ; preds = %342, %338
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  br label %347

347:                                              ; preds = %346, %337, %325
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %30) #6
  br label %348

348:                                              ; preds = %347, %321
  call void @llvm.lifetime.end.p0(i64 392, ptr %30) #6
  br label %350

349:                                              ; preds = %307, %278
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %351

350:                                              ; preds = %348, %320, %308
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %354

351:                                              ; preds = %349, %259
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %352

352:                                              ; preds = %351
  %353 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7maliput3api12RoadPositionESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br label %176

354:                                              ; preds = %350, %258, %227
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %355

355:                                              ; preds = %354, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %360

356:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %357

357:                                              ; preds = %356
  %358 = load i64, ptr %13, align 8, !tbaa !23
  %359 = add i64 %358, 1
  store i64 %359, ptr %13, align 8, !tbaa !23
  br label %82, !llvm.loop !30

360:                                              ; preds = %355, %165, %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %363

361:                                              ; preds = %88
  store i1 true, ptr %5, align 1
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %362 = load i1, ptr %5, align 1
  br i1 %362, label %365, label %364

363:                                              ; preds = %360, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %366

364:                                              ; preds = %361
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %365

365:                                              ; preds = %364, %361
  ret void

366:                                              ; preds = %363, %74, %55, %43
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %367

367:                                              ; preds = %366
  %368 = load ptr, ptr %6, align 8
  %369 = load i32, ptr %7, align 4
  %370 = insertvalue { ptr, i32 } poison, ptr %368, 0
  %371 = insertvalue { ptr, i32 } %370, i32 %369, 1
  resume { ptr, i32 } %371
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(128)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7maliput3api12RoadPositionESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(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(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7maliput3api12RoadPositionESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7maliput7routing12_GLOBAL__N_118FindPositionByLaneEPKNS_3api4LaneERKSt6vectorINS2_12RoadPositionESaIS7_EE(ptr dead_on_unwind noalias writable sret(%"class.std::optional.122") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN7maliput7routing12_GLOBAL__N_119IsRoadPositionCloseERKNS_3api12RoadPositionES5_d(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), double noundef) #2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput3apilsERSoRKNS0_12LanePositionE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) #3

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

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

declare noundef ptr @_ZNK7maliput3api4Lane18GetOngoingBranchesENS0_7LaneEnd5WhichE(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN7maliput7routing12_GLOBAL__N_122GetClosestLaneEndWhichERKNS_3api12RoadPositionE(ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7maliput7routing12_GLOBAL__N_125MatchPositionInLaneEndSetERKNS_3api12RoadPositionESt6vectorIS3_SaIS3_EERKNS2_10LaneEndSetEd(ptr dead_on_unwind noalias writable sret(%"class.std::optional.122") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), double noundef) #2

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 #5 = { 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 #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, !6, i64 80}
!10 = !{!"_ZTSN7maliput7routing5RouteE", !11, i64 0, !15, i64 24, !6, i64 80}
!11 = !{!"_ZTSSt6vectorIN7maliput7routing5PhaseESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"_ZTSSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt6vectorINS0_7routing5Route15LaneSRangeIndexESaIS8_EESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE", !16, i64 0}
!16 = !{!"_ZTSSt10_HashtableIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt4pairIKS4_St6vectorINS0_7routing5Route15LaneSRangeIndexESaISA_EEESaISD_ENSt8__detail10_Select1stESt8equal_toIS4_ESt4hashIS4_ENSF_18_Mod_range_hashingENSF_20_Default_ranged_hashENSF_20_Prime_rehash_policyENSF_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!19 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !20, i64 0, !17, i64 8}
!20 = !{!"float", !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = !{!17, !17, i64 0}
!24 = !{!25, !6, i64 0}
!25 = !{!"_ZTSN7maliput3api12RoadPositionE", !6, i64 0, !26, i64 8}
!26 = !{!"_ZTSN7maliput3api12LanePositionE", !27, i64 0}
!27 = !{!"_ZTSN7maliput4math7Vector3E", !28, i64 0}
!28 = !{!"_ZTSN7maliput4math10VectorBaseILm3ENS0_7Vector3EEE", !29, i64 0}
!29 = !{!"_ZTSSt5arrayIdLm3EE", !7, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


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

%"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::vector.116" = type { %"struct.std::_Vector_base.117" }
%"struct.std::_Vector_base.117" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.15" = type { i8 }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.__gnu_cxx::__normal_iterator.121" = type { ptr }
%"class.std::optional.122" = type { %"struct.std::_Optional_base.123" }
%"struct.std::_Optional_base.123" = type { %"struct.std::_Optional_payload.125" }
%"struct.std::_Optional_payload.125" = type { %"struct.std::_Optional_payload_base.base.127", [7 x i8] }
%"struct.std::_Optional_payload_base.base.127" = type <{ %"union.std::_Optional_payload_base<maliput::api::RoadPosition>::_Storage", i8 }>
%"union.std::_Optional_payload_base<maliput::api::RoadPosition>::_Storage" = type { %"struct.maliput::api::RoadPosition" }
%"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] }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<maliput::api::RoadPosition, std::allocator<maliput::api::RoadPosition>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::RoadPosition, std::allocator<maliput::api::RoadPosition>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::RoadPosition, std::allocator<maliput::api::RoadPosition>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::RoadPosition, std::allocator<maliput::api::RoadPosition>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.11 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [48 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7maliput7routing5Route28ValidateEndToEndConnectivityB5cxx11Ev(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector.116") align 8 %0, ptr noundef nonnull align 8 dereferenceable(88) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator.15", align 1
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator.15", align 1
  %7 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.121", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.121", align 8
  %11 = alloca %"class.std::optional.122", align 8
  %12 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %13 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::optional.122", align 8
  %16 = alloca %"class.std::vector.5", align 8
  %17 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %18 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  tail call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %20 = tail call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %21 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase15start_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %20)
  %22 = tail call noundef i64 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  %.not = icmp eq i64 %22, 1
  br i1 %.not, label %31, label %23

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %24 unwind label %26

24:                                               ; preds = %23
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %25 unwind label %28

25:                                               ; preds = %24
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br label %31

26:                                               ; preds = %23
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %30

28:                                               ; preds = %24
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  br label %30

30:                                               ; preds = %28, %26
  %.pn = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br label %215

31:                                               ; preds = %25, %2
  %32 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase13end_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %32)
  %34 = call noundef i64 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  %.not53 = icmp eq i64 %34, 1
  br i1 %.not53, label %43, label %35

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %36 unwind label %38

36:                                               ; preds = %35
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %37 unwind label %40

37:                                               ; preds = %36
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %43

38:                                               ; preds = %35
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %42

40:                                               ; preds = %36
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %42

42:                                               ; preds = %40, %38
  %.pn54 = phi { ptr, i32 } [ %41, %40 ], [ %39, %38 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %215

43:                                               ; preds = %37, %31
  %44 = getelementptr inbounds i8, ptr %1, i64 80
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = call noundef ptr @_ZNK7maliput3api11RoadNetwork13road_geometryEv(ptr noundef nonnull align 8 dereferenceable(88) %45)
  %47 = invoke noundef double @_ZNK7maliput3api12RoadGeometry16linear_toleranceEv(ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %.preheader unwind label %52

.preheader:                                       ; preds = %43
  %48 = call noundef i64 @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.not83 = icmp eq i64 %48, 1
  br i1 %.not83, label %._crit_edge82, label %.lr.ph81

.lr.ph81:                                         ; preds = %.preheader
  %49 = getelementptr inbounds i8, ptr %7, i64 16
  %50 = getelementptr inbounds i8, ptr %17, i64 16
  %51 = getelementptr inbounds i8, ptr %12, i64 16
  br label %54

52:                                               ; preds = %43
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %215

54:                                               ; preds = %.lr.ph81, %._crit_edge
  %.05180 = phi i64 [ 0, %.lr.ph81 ], [ %56, %._crit_edge ]
  %55 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05180) #6
  %56 = add nuw i64 %.05180, 1
  %57 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %56) #6
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase13end_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %55)
  %59 = call noundef i64 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #6
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase15start_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %57)
  %61 = call noundef i64 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #6
  %.not56 = icmp eq i64 %59, %61
  br i1 %.not56, label %97, label %62

62:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %7) #6
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %7)
          to label %63 unwind label %86

63:                                               ; preds = %62
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull @.str.13)
          to label %65 unwind label %88

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %64, i64 noundef %.05180)
          to label %67 unwind label %88

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull @.str.14)
          to label %69 unwind label %88

69:                                               ; preds = %67
  %70 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase13end_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %55)
  %71 = call noundef i64 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #6
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %68, i64 noundef %71)
          to label %73 unwind label %88

73:                                               ; preds = %69
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull @.str.15)
          to label %75 unwind label %88

75:                                               ; preds = %73
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %74, i64 noundef %56)
          to label %77 unwind label %88

77:                                               ; preds = %75
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull @.str.16)
          to label %79 unwind label %88

79:                                               ; preds = %77
  %80 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase15start_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %57)
  %81 = call noundef i64 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #6
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %78, i64 noundef %81)
          to label %83 unwind label %88

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(128) %7)
          to label %84 unwind label %90

84:                                               ; preds = %83
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %85 unwind label %92

85:                                               ; preds = %84
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %7) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %7) #6
  br label %97

86:                                               ; preds = %62
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %96

88:                                               ; preds = %79, %77, %75, %73, %69, %67, %65, %63
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %95

90:                                               ; preds = %83
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %94

92:                                               ; preds = %84
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %94

94:                                               ; preds = %92, %90
  %.pn57 = phi { ptr, i32 } [ %93, %92 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %95

95:                                               ; preds = %94, %88
  %.pn57.pn = phi { ptr, i32 } [ %.pn57, %94 ], [ %89, %88 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %7) #6
  br label %96

96:                                               ; preds = %95, %86
  %.pn57.pn.pn = phi { ptr, i32 } [ %.pn57.pn, %95 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %7) #6
  br label %215

97:                                               ; preds = %85, %54
  %98 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase13end_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %55)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %99 = call ptr @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #6
  store ptr %99, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %100 = call ptr @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #6
  store ptr %100, ptr %10, align 8
  %101 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7maliput3api12RoadPositionESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %101, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %211, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  %102 = call noundef i64 @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %103 = add i64 %102, -1
  %104 = icmp ult i64 %56, %103
  br i1 %104, label %54, label %._crit_edge82, !llvm.loop !20

.lr.ph:                                           ; preds = %97, %211
  %105 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7maliput3api12RoadPositionESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #6
  %106 = load ptr, ptr %105, align 8, !tbaa !22
  %107 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase15start_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %57)
  invoke void @_ZN7maliput7routing12_GLOBAL__N_118FindPositionByLaneEPKNS_3api4LaneERKSt6vectorINS2_12RoadPositionESaIS7_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::optional.122") align 8 %11, ptr noundef %106, ptr noundef nonnull align 8 dereferenceable(24) %107)
          to label %108 unwind label %136

108:                                              ; preds = %.lr.ph
  %109 = call noundef zeroext i1 @_ZNKSt8optionalIN7maliput3api12RoadPositionEEcvbEv(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  br i1 %109, label %110, label %154

110:                                              ; preds = %108
  %111 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNRSt8optionalIN7maliput3api12RoadPositionEEdeEv(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  %112 = invoke noundef zeroext i1 @_ZN7maliput7routing12_GLOBAL__N_119IsRoadPositionCloseERKNS_3api12RoadPositionES5_d(ptr noundef nonnull align 8 dereferenceable(32) %105, ptr noundef nonnull align 8 dereferenceable(32) %111, double noundef %47)
          to label %113 unwind label %136

113:                                              ; preds = %110
  br i1 %112, label %211, label %114

114:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %12) #6
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %12)
          to label %115 unwind label %138

115:                                              ; preds = %114
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull @.str.17)
          to label %117 unwind label %140

117:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  %118 = load ptr, ptr %105, align 8, !tbaa !22
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %13, ptr noundef nonnull align 8 dereferenceable(8) %118)
          to label %119 unwind label %142

119:                                              ; preds = %117
  %120 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api22TypeSpecificIdentifierINS0_4LaneEE6stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %13)
  %121 = 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) %116, ptr noundef nonnull align 8 dereferenceable(32) %120)
          to label %122 unwind label %144

122:                                              ; preds = %119
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef nonnull @.str.18)
          to label %124 unwind label %144

124:                                              ; preds = %122
  %125 = getelementptr inbounds i8, ptr %105, i64 8
  %126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput3apilsERSoRKNS0_12LanePositionE(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull align 8 dereferenceable(24) %125)
          to label %127 unwind label %144

127:                                              ; preds = %124
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef nonnull @.str.19)
          to label %129 unwind label %144

129:                                              ; preds = %127
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %128, i64 noundef %.05180)
          to label %131 unwind label %144

131:                                              ; preds = %129
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull @.str.20)
          to label %133 unwind label %144

133:                                              ; preds = %131
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #6
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(128) %12)
          to label %134 unwind label %147

134:                                              ; preds = %133
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %135 unwind label %149

135:                                              ; preds = %134
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %12) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %12) #6
  br label %211

136:                                              ; preds = %110, %.lr.ph
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %214

138:                                              ; preds = %114
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %153

140:                                              ; preds = %115
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %152

142:                                              ; preds = %117
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %146

144:                                              ; preds = %131, %129, %127, %124, %122, %119
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %146

146:                                              ; preds = %144, %142
  %.pn70 = phi { ptr, i32 } [ %145, %144 ], [ %143, %142 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br label %152

147:                                              ; preds = %133
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %151

149:                                              ; preds = %134
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %151

151:                                              ; preds = %149, %147
  %.pn72 = phi { ptr, i32 } [ %150, %149 ], [ %148, %147 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  br label %152

152:                                              ; preds = %151, %146, %140
  %.pn72.pn = phi { ptr, i32 } [ %.pn72, %151 ], [ %.pn70, %146 ], [ %141, %140 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %12) #6
  br label %153

153:                                              ; preds = %152, %138
  %.pn72.pn.pn = phi { ptr, i32 } [ %.pn72.pn, %152 ], [ %139, %138 ]
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %12) #6
  br label %214

154:                                              ; preds = %108
  %155 = load ptr, ptr %105, align 8, !tbaa !22
  %156 = invoke noundef i32 @_ZN7maliput7routing12_GLOBAL__N_122GetClosestLaneEndWhichERKNS_3api12RoadPositionE(ptr noundef nonnull align 8 dereferenceable(32) %105)
          to label %157 unwind label %188

157:                                              ; preds = %154
  %158 = invoke noundef ptr @_ZNK7maliput3api4Lane18GetOngoingBranchesENS0_7LaneEnd5WhichE(ptr noundef nonnull align 8 dereferenceable(8) %155, i32 noundef %156)
          to label %159 unwind label %188

159:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #6
  %160 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase15start_positionsEv(ptr noundef nonnull align 8 dereferenceable(96) %57)
  invoke void @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %160)
          to label %161 unwind label %190

161:                                              ; preds = %159
  invoke void @_ZN7maliput7routing12_GLOBAL__N_125MatchPositionInLaneEndSetERKNS_3api12RoadPositionESt6vectorIS3_SaIS3_EERKNS2_10LaneEndSetEd(ptr dead_on_unwind nonnull writable sret(%"class.std::optional.122") align 8 %15, ptr noundef nonnull align 8 dereferenceable(32) %105, ptr noundef nonnull %16, ptr noundef nonnull align 8 dereferenceable(8) %158, double noundef %47)
          to label %162 unwind label %192

162:                                              ; preds = %161
  %163 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt8optionalIN7maliput3api12RoadPositionEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(40) %15)
          to label %164 unwind label %192

164:                                              ; preds = %162
  call void @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #6
  %165 = call noundef zeroext i1 @_ZNKSt8optionalIN7maliput3api12RoadPositionEEcvbEv(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  br i1 %165, label %211, label %166

166:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %17) #6
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %17)
          to label %167 unwind label %195

167:                                              ; preds = %166
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull @.str.17)
          to label %169 unwind label %197

169:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #6
  %170 = load ptr, ptr %105, align 8, !tbaa !22
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %170)
          to label %171 unwind label %199

171:                                              ; preds = %169
  %172 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api22TypeSpecificIdentifierINS0_4LaneEE6stringB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(32) %18)
  %173 = 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) %168, ptr noundef nonnull align 8 dereferenceable(32) %172)
          to label %174 unwind label %201

174:                                              ; preds = %171
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef nonnull @.str.18)
          to label %176 unwind label %201

176:                                              ; preds = %174
  %177 = getelementptr inbounds i8, ptr %105, i64 8
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput3apilsERSoRKNS0_12LanePositionE(ptr noundef nonnull align 8 dereferenceable(8) %175, ptr noundef nonnull align 8 dereferenceable(24) %177)
          to label %179 unwind label %201

179:                                              ; preds = %176
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef nonnull @.str.19)
          to label %181 unwind label %201

181:                                              ; preds = %179
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %180, i64 noundef %.05180)
          to label %183 unwind label %201

183:                                              ; preds = %181
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef nonnull @.str.21)
          to label %185 unwind label %201

185:                                              ; preds = %183
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #6
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(128) %17)
          to label %186 unwind label %204

186:                                              ; preds = %185
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %187 unwind label %206

187:                                              ; preds = %186
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %17) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %17) #6
  br label %211

188:                                              ; preds = %157, %154
  %189 = landingpad { ptr, i32 }
          cleanup
  br label %214

190:                                              ; preds = %159
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %194

192:                                              ; preds = %162, %161
  %193 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  br label %194

194:                                              ; preds = %192, %190
  %.pn61 = phi { ptr, i32 } [ %193, %192 ], [ %191, %190 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #6
  br label %214

195:                                              ; preds = %166
  %196 = landingpad { ptr, i32 }
          cleanup
  br label %210

197:                                              ; preds = %167
  %198 = landingpad { ptr, i32 }
          cleanup
  br label %209

199:                                              ; preds = %169
  %200 = landingpad { ptr, i32 }
          cleanup
  br label %203

201:                                              ; preds = %183, %181, %179, %176, %174, %171
  %202 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %203

203:                                              ; preds = %201, %199
  %.pn63 = phi { ptr, i32 } [ %202, %201 ], [ %200, %199 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  br label %209

204:                                              ; preds = %185
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %208

206:                                              ; preds = %186
  %207 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %208

208:                                              ; preds = %206, %204
  %.pn65 = phi { ptr, i32 } [ %207, %206 ], [ %205, %204 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  br label %209

209:                                              ; preds = %208, %203, %197
  %.pn65.pn = phi { ptr, i32 } [ %.pn65, %208 ], [ %.pn63, %203 ], [ %198, %197 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %17) #6
  br label %210

210:                                              ; preds = %209, %195
  %.pn65.pn.pn = phi { ptr, i32 } [ %.pn65.pn, %209 ], [ %196, %195 ]
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %17) #6
  br label %214

211:                                              ; preds = %164, %187, %113, %135
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #6
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7maliput3api12RoadPositionESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %213 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7maliput3api12RoadPositionESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %213, label %.lr.ph, label %._crit_edge

214:                                              ; preds = %188, %194, %210, %153, %136
  %.pn72.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn, %153 ], [ %137, %136 ], [ %.pn65.pn.pn, %210 ], [ %.pn61, %194 ], [ %189, %188 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %215

._crit_edge82:                                    ; preds = %._crit_edge, %.preheader
  ret void

215:                                              ; preds = %52, %214, %96, %42, %30
  %.pn72.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54, %42 ], [ %.pn, %30 ], [ %53, %52 ], [ %.pn72.pn.pn.pn, %214 ], [ %.pn57.pn.pn, %96 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  resume { ptr, i32 } %.pn72.pn.pn.pn.pn.pn.pn
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7maliput3api12RoadPositionESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(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(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7maliput3api12RoadPositionESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7maliput7routing12_GLOBAL__N_118FindPositionByLaneEPKNS_3api4LaneERKSt6vectorINS2_12RoadPositionESaIS7_EE(ptr dead_on_unwind noalias writable sret(%"class.std::optional.122") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN7maliput7routing12_GLOBAL__N_119IsRoadPositionCloseERKNS_3api12RoadPositionES5_d(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), double noundef) local_unnamed_addr #2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput3apilsERSoRKNS0_12LanePositionE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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

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

declare noundef ptr @_ZNK7maliput3api4Lane18GetOngoingBranchesENS0_7LaneEnd5WhichE(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN7maliput7routing12_GLOBAL__N_122GetClosestLaneEndWhichERKNS_3api12RoadPositionE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7maliput7routing12_GLOBAL__N_125MatchPositionInLaneEndSetERKNS_3api12RoadPositionESt6vectorIS3_SaIS3_EERKNS2_10LaneEndSetEd(ptr dead_on_unwind noalias writable sret(%"class.std::optional.122") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #2

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 #5 = { 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 #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, !11, i64 80}
!6 = !{!"_ZTSN7maliput7routing5RouteE", !7, i64 0, !14, i64 24, !11, i64 80}
!7 = !{!"_ZTSSt6vectorIN7maliput7routing5PhaseESaIS2_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt6vectorINS0_7routing5Route15LaneSRangeIndexESaIS8_EESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE", !15, i64 0}
!15 = !{!"_ZTSSt10_HashtableIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt4pairIKS4_St6vectorINS0_7routing5Route15LaneSRangeIndexESaISA_EEESaISD_ENSt8__detail10_Select1stESt8equal_toIS4_ESt4hashIS4_ENSF_18_Mod_range_hashingENSF_20_Default_ranged_hashENSF_20_Prime_rehash_policyENSF_17_Hashtable_traitsILb0ELb0ELb1EEEE", !11, i64 0, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !11, i64 48}
!16 = !{!"long", !12, i64 0}
!17 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!18 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !19, i64 0, !16, i64 8}
!19 = !{!"float", !12, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !11, i64 0}
!23 = !{!"_ZTSN7maliput3api12RoadPositionE", !11, i64 0, !24, i64 8}
!24 = !{!"_ZTSN7maliput3api12LanePositionE", !25, i64 0}
!25 = !{!"_ZTSN7maliput4math7Vector3E", !26, i64 0}
!26 = !{!"_ZTSN7maliput4math10VectorBaseILm3ENS0_7Vector3EEE", !27, i64 0}
!27 = !{!"_ZTSSt5arrayIdLm3EE", !12, i64 0}


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