; 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"

%"struct.maliput::routing::RoutePositionResult" = type { i32, %"struct.maliput::routing::PhasePositionResult" }
%"struct.maliput::routing::PhasePositionResult" = type { i32, %"class.maliput::api::LanePosition", %"class.maliput::api::InertialPosition", double }
%"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.maliput::api::InertialPosition" = type { %"class.maliput::math::Vector3" }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<maliput::routing::RoutePositionResult, std::allocator<maliput::routing::RoutePositionResult>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::routing::RoutePositionResult, std::allocator<maliput::routing::RoutePositionResult>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::routing::RoutePositionResult, std::allocator<maliput::routing::RoutePositionResult>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::routing::RoutePositionResult, std::allocator<maliput::routing::RoutePositionResult>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.25" = type { i8 }
%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<maliput::api::RoadPositionResult, std::allocator<maliput::api::RoadPositionResult>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::RoadPositionResult, std::allocator<maliput::api::RoadPositionResult>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::RoadPositionResult, std::allocator<maliput::api::RoadPositionResult>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::RoadPositionResult, std::allocator<maliput::api::RoadPositionResult>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::back_insert_iterator" = type { ptr }
%class.anon = type { 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 }

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 uwtable
define dso_local void @_ZNK7maliput7routing5Route17FindRoutePositionERKNS_3api16InertialPositionE(ptr dead_on_unwind noalias writable sret(%"struct.maliput::routing::RoutePositionResult") align 8 %0, ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::vector.23", align 8
  %7 = alloca %"class.std::allocator.25", align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.maliput::routing::RoutePositionResult", align 8
  %12 = alloca %"class.std::vector.28", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.std::back_insert_iterator", align 8
  %16 = alloca %class.anon, align 8
  %17 = alloca %"class.std::back_insert_iterator", align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store ptr %2, ptr %5, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #6
  %21 = getelementptr inbounds %"class.maliput::routing::Route", ptr %20, i32 0, i32 0
  %22 = call noundef i64 @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  call void @_ZNSaIN7maliput7routing19RoutePositionResultEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt6vectorIN7maliput7routing19RoutePositionResultESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %22, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %23 unwind label %31

23:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorIN7maliput7routing19RoutePositionResultEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %50, %23
  %25 = load i32, ptr %10, align 4, !tbaa !9
  %26 = getelementptr inbounds %"class.maliput::routing::Route", ptr %20, i32 0, i32 0
  %27 = call noundef i64 @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  %28 = trunc i64 %27 to i32
  %29 = icmp slt i32 %25, %28
  br i1 %29, label %35, label %30

30:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %57

31:                                               ; preds = %3
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %8, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIN7maliput7routing19RoutePositionResultEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  br label %119

35:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 72, ptr %11) #6
  %36 = getelementptr inbounds %"struct.maliput::routing::RoutePositionResult", ptr %11, i32 0, i32 0
  %37 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %37, ptr %36, align 8, !tbaa !11
  %38 = getelementptr inbounds %"struct.maliput::routing::RoutePositionResult", ptr %11, i32 0, i32 1
  %39 = getelementptr inbounds %"class.maliput::routing::Route", ptr %20, i32 0, i32 0
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %41) #6
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK7maliput7routing5Phase17FindPhasePositionERKNS_3api16InertialPositionE(ptr dead_on_unwind writable sret(%"struct.maliput::routing::PhasePositionResult") align 8 %38, ptr noundef nonnull align 8 dereferenceable(96) %42, ptr noundef nonnull align 8 dereferenceable(24) %43)
          to label %44 unwind label %53

44:                                               ; preds = %35
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN7maliput7routing19RoutePositionResultESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %46) #6
  %48 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN7maliput7routing19RoutePositionResultaSEOS1_(ptr noundef nonnull align 8 dereferenceable(72) %47, ptr noundef nonnull align 8 dereferenceable(72) %11)
          to label %49 unwind label %53

49:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #6
  br label %50

50:                                               ; preds = %49
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %10, align 4, !tbaa !9
  br label %24, !llvm.loop !20

53:                                               ; preds = %44, %35
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %8, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %118

57:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  call void @_ZNSt6vectorIN7maliput3api18RoadPositionResultESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %58 = call ptr @_ZNSt6vectorIN7maliput7routing19RoutePositionResultESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %59 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %58, ptr %59, align 8
  %60 = call ptr @_ZNSt6vectorIN7maliput7routing19RoutePositionResultESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %61 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %60, ptr %61, align 8
  %62 = invoke ptr @_ZSt13back_inserterISt6vectorIN7maliput3api18RoadPositionResultESaIS3_EEESt20back_insert_iteratorIT_ERS7_(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %63 unwind label %90

63:                                               ; preds = %57
  %64 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %15, i32 0, i32 0
  store ptr %62, ptr %64, align 8
  %65 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 0
  %66 = getelementptr inbounds %"class.maliput::routing::Route", ptr %20, i32 0, i32 2
  %67 = load ptr, ptr %66, align 8, !tbaa !22
  %68 = invoke noundef ptr @_ZNK7maliput3api11RoadNetwork13road_geometryEv(ptr noundef nonnull align 8 dereferenceable(88) %67)
          to label %69 unwind label %90

69:                                               ; preds = %63
  store ptr %68, ptr %65, align 8, !tbaa !34
  %70 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 1
  %71 = getelementptr inbounds %"class.maliput::routing::Route", ptr %20, i32 0, i32 0
  store ptr %71, ptr %70, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8
  %74 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8
  %76 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %15, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8
  %78 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8
  %80 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8
  %82 = invoke ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPN7maliput7routing19RoutePositionResultESt6vectorIS4_SaIS4_EEEESt20back_insert_iteratorIS6_INS2_3api18RoadPositionResultESaISC_EEEZNKS3_5Route17FindRoutePositionERKNSB_16InertialPositionEE3$_0ET0_T_SM_SL_T1_"(ptr %73, ptr %75, ptr %77, ptr %79, ptr %81)
          to label %83 unwind label %90

83:                                               ; preds = %69
  %84 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %17, i32 0, i32 0
  store ptr %82, ptr %84, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store i64 0, ptr %18, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store i64 1, ptr %19, align 8, !tbaa !36
  br label %85

85:                                               ; preds = %107, %83
  %86 = load i64, ptr %19, align 8, !tbaa !36
  %87 = call noundef i64 @_ZNKSt6vectorIN7maliput3api18RoadPositionResultESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %88 = icmp ult i64 %86, %87
  br i1 %88, label %94, label %89

89:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %114

90:                                               ; preds = %69, %63, %57
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %8, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %9, align 4
  br label %117

94:                                               ; preds = %85
  %95 = load i64, ptr %19, align 8, !tbaa !36
  %96 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN7maliput3api18RoadPositionResultESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %95) #6
  %97 = load i64, ptr %18, align 8, !tbaa !36
  %98 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN7maliput3api18RoadPositionResultESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %97) #6
  %99 = invoke noundef zeroext i1 @_ZN7maliput13geometry_base29IsNewRoadPositionResultCloserERKNS_3api18RoadPositionResultES4_(ptr noundef nonnull align 8 dereferenceable(64) %96, ptr noundef nonnull align 8 dereferenceable(64) %98)
          to label %100 unwind label %110

100:                                              ; preds = %94
  br i1 %99, label %101, label %103

101:                                              ; preds = %100
  %102 = load i64, ptr %19, align 8, !tbaa !36
  br label %105

103:                                              ; preds = %100
  %104 = load i64, ptr %18, align 8, !tbaa !36
  br label %105

105:                                              ; preds = %103, %101
  %106 = phi i64 [ %102, %101 ], [ %104, %103 ]
  store i64 %106, ptr %18, align 8, !tbaa !36
  br label %107

107:                                              ; preds = %105
  %108 = load i64, ptr %19, align 8, !tbaa !36
  %109 = add i64 %108, 1
  store i64 %109, ptr %19, align 8, !tbaa !36
  br label %85, !llvm.loop !37

110:                                              ; preds = %94
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %8, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %117

114:                                              ; preds = %89
  %115 = load i64, ptr %18, align 8, !tbaa !36
  %116 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN7maliput7routing19RoutePositionResultESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %115) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %116, i64 72, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZNSt6vectorIN7maliput3api18RoadPositionResultESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @_ZNSt6vectorIN7maliput7routing19RoutePositionResultESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  ret void

117:                                              ; preds = %110, %90
  call void @_ZNSt6vectorIN7maliput3api18RoadPositionResultESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  br label %118

118:                                              ; preds = %117, %53
  call void @_ZNSt6vectorIN7maliput7routing19RoutePositionResultESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br label %119

119:                                              ; preds = %118, %31
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  br label %120

120:                                              ; preds = %119
  %121 = load ptr, ptr %8, align 8
  %122 = load i32, ptr %9, align 4
  %123 = insertvalue { ptr, i32 } poison, ptr %121, 0
  %124 = insertvalue { ptr, i32 } %123, i32 %122, 1
  resume { ptr, i32 } %124
}

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

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

; 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

declare void @_ZNK7maliput7routing5Phase17FindPhasePositionERKNS_3api16InertialPositionE(ptr dead_on_unwind writable sret(%"struct.maliput::routing::PhasePositionResult") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(24)) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPN7maliput7routing19RoutePositionResultESt6vectorIS4_SaIS4_EEEESt20back_insert_iteratorIS6_INS2_3api18RoadPositionResultESaISC_EEEZNKS3_5Route17FindRoutePositionERKNSB_16InertialPositionEE3$_0ET0_T_SM_SL_T1_"(ptr, ptr, ptr, ptr, ptr) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt13back_inserterISt6vectorIN7maliput3api18RoadPositionResultESaIS3_EEESt20back_insert_iteratorIT_ERS7_(ptr noundef nonnull align 8 dereferenceable(24)) #4

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN7maliput3api18RoadPositionResultESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

declare noundef zeroext i1 @_ZN7maliput13geometry_base29IsNewRoadPositionResultCloserERKNS_3api18RoadPositionResultES4_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIN7maliput7routing19RoutePositionResultEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN7maliput7routing19RoutePositionResultE", !10, i64 0, !13, i64 8}
!13 = !{!"_ZTSN7maliput7routing19PhasePositionResultE", !10, i64 0, !14, i64 8, !18, i64 32, !19, i64 56}
!14 = !{!"_ZTSN7maliput3api12LanePositionE", !15, i64 0}
!15 = !{!"_ZTSN7maliput4math7Vector3E", !16, i64 0}
!16 = !{!"_ZTSN7maliput4math10VectorBaseILm3ENS0_7Vector3EEE", !17, i64 0}
!17 = !{!"_ZTSSt5arrayIdLm3EE", !7, i64 0}
!18 = !{!"_ZTSN7maliput3api16InertialPositionE", !15, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !6, i64 80}
!23 = !{!"_ZTSN7maliput7routing5RouteE", !24, i64 0, !28, i64 24, !6, i64 80}
!24 = !{!"_ZTSSt6vectorIN7maliput7routing5PhaseESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt6vectorINS0_7routing5Route15LaneSRangeIndexESaIS8_EESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE", !29, i64 0}
!29 = !{!"_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, !30, i64 8, !31, i64 16, !30, i64 24, !32, i64 32, !6, i64 48}
!30 = !{!"long", !7, i64 0}
!31 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!32 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !33, i64 0, !30, i64 8}
!33 = !{!"float", !7, i64 0}
!34 = !{!35, !6, i64 0}
!35 = !{!"_ZTSZNK7maliput7routing5Route17FindRoutePositionERKNS_3api16InertialPositionEE3$_0", !6, i64 0, !6, i64 8}
!36 = !{!30, !30, i64 0}
!37 = distinct !{!37, !21}


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

%"struct.maliput::routing::RoutePositionResult" = type { i32, %"struct.maliput::routing::PhasePositionResult" }
%"struct.maliput::routing::PhasePositionResult" = type { i32, %"class.maliput::api::LanePosition", %"class.maliput::api::InertialPosition", double }
%"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.maliput::api::InertialPosition" = type { %"class.maliput::math::Vector3" }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<maliput::routing::RoutePositionResult, std::allocator<maliput::routing::RoutePositionResult>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::routing::RoutePositionResult, std::allocator<maliput::routing::RoutePositionResult>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::routing::RoutePositionResult, std::allocator<maliput::routing::RoutePositionResult>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::routing::RoutePositionResult, std::allocator<maliput::routing::RoutePositionResult>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.25" = type { i8 }
%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<maliput::api::RoadPositionResult, std::allocator<maliput::api::RoadPositionResult>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::RoadPositionResult, std::allocator<maliput::api::RoadPositionResult>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::RoadPositionResult, std::allocator<maliput::api::RoadPositionResult>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::RoadPositionResult, std::allocator<maliput::api::RoadPositionResult>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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 uwtable
define dso_local void @_ZNK7maliput7routing5Route17FindRoutePositionERKNS_3api16InertialPositionE(ptr dead_on_unwind noalias nocapture writable writeonly sret(%"struct.maliput::routing::RoutePositionResult") align 8 %0, ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.23", align 8
  %5 = alloca %"class.std::allocator.25", align 1
  %6 = alloca %"struct.maliput::routing::RoutePositionResult", align 8
  %7 = alloca %"class.std::vector.28", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  %8 = tail call noundef i64 @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @_ZNSaIN7maliput7routing19RoutePositionResultEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt6vectorIN7maliput7routing19RoutePositionResultESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %8, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %9 unwind label %17

9:                                                ; preds = %3
  call void @_ZNSt15__new_allocatorIN7maliput7routing19RoutePositionResultEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  %10 = call noundef i64 @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %11 = trunc i64 %10 to i32
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %9
  %13 = getelementptr inbounds i8, ptr %6, i64 8
  br label %19

._crit_edge:                                      ; preds = %25, %9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIN7maliput3api18RoadPositionResultESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %14 = call ptr @_ZNSt6vectorIN7maliput7routing19RoutePositionResultESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %15 = call ptr @_ZNSt6vectorIN7maliput7routing19RoutePositionResultESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %16 = invoke ptr @_ZSt13back_inserterISt6vectorIN7maliput3api18RoadPositionResultESaIS3_EEESt20back_insert_iteratorIT_ERS7_(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %31 unwind label %39

17:                                               ; preds = %3
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN7maliput7routing19RoutePositionResultEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  br label %53

19:                                               ; preds = %.lr.ph, %25
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %25 ]
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #6
  %20 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %20, ptr %6, align 8, !tbaa !5
  %21 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #6
  invoke void @_ZNK7maliput7routing5Phase17FindPhasePositionERKNS_3api16InertialPositionE(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::routing::PhasePositionResult") align 8 %13, ptr noundef nonnull align 8 dereferenceable(96) %21, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %22 unwind label %29

22:                                               ; preds = %19
  %23 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN7maliput7routing19RoutePositionResultESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #6
  %24 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN7maliput7routing19RoutePositionResultaSEOS1_(ptr noundef nonnull align 8 dereferenceable(72) %23, ptr noundef nonnull align 8 dereferenceable(72) %6)
          to label %25 unwind label %29

25:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = call noundef i64 @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %sext = shl i64 %26, 32
  %27 = ashr exact i64 %sext, 32
  %28 = icmp slt i64 %indvars.iv.next, %27
  br i1 %28, label %19, label %._crit_edge, !llvm.loop !17

29:                                               ; preds = %22, %19
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #6
  br label %52

31:                                               ; preds = %._crit_edge
  %32 = getelementptr inbounds i8, ptr %1, i64 80
  %33 = load ptr, ptr %32, align 8, !tbaa !19
  %34 = call noundef ptr @_ZNK7maliput3api11RoadNetwork13road_geometryEv(ptr noundef nonnull align 8 dereferenceable(88) %33)
  %35 = invoke ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPN7maliput7routing19RoutePositionResultESt6vectorIS4_SaIS4_EEEESt20back_insert_iteratorIS6_INS2_3api18RoadPositionResultESaISC_EEEZNKS3_5Route17FindRoutePositionERKNSB_16InertialPositionEE3$_0ET0_T_SM_SL_T1_"(ptr %14, ptr %15, ptr %16, ptr %34, ptr nonnull %1)
          to label %.preheader unwind label %39

.preheader:                                       ; preds = %31
  %36 = call noundef i64 @_ZNKSt6vectorIN7maliput3api18RoadPositionResultESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %37 = icmp ugt i64 %36, 1
  br i1 %37, label %.lr.ph33, label %._crit_edge34

._crit_edge34:                                    ; preds = %44, %.preheader
  %.019.lcssa = phi i64 [ 0, %.preheader ], [ %45, %44 ]
  %38 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN7maliput7routing19RoutePositionResultESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.019.lcssa) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(72) %38, i64 72, i1 false)
  call void @_ZNSt6vectorIN7maliput3api18RoadPositionResultESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIN7maliput7routing19RoutePositionResultESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  ret void

39:                                               ; preds = %31, %._crit_edge
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %51

.lr.ph33:                                         ; preds = %.preheader, %44
  %.032 = phi i64 [ %46, %44 ], [ 1, %.preheader ]
  %.01931 = phi i64 [ %45, %44 ], [ 0, %.preheader ]
  %41 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN7maliput3api18RoadPositionResultESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.032) #6
  %42 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN7maliput3api18RoadPositionResultESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.01931) #6
  %43 = invoke noundef zeroext i1 @_ZN7maliput13geometry_base29IsNewRoadPositionResultCloserERKNS_3api18RoadPositionResultES4_(ptr noundef nonnull align 8 dereferenceable(64) %41, ptr noundef nonnull align 8 dereferenceable(64) %42)
          to label %44 unwind label %49

44:                                               ; preds = %.lr.ph33
  %45 = select i1 %43, i64 %.032, i64 %.01931
  %46 = add nuw i64 %.032, 1
  %47 = call noundef i64 @_ZNKSt6vectorIN7maliput3api18RoadPositionResultESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %48 = icmp ult i64 %46, %47
  br i1 %48, label %.lr.ph33, label %._crit_edge34, !llvm.loop !32

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

51:                                               ; preds = %49, %39
  %.pn = phi { ptr, i32 } [ %50, %49 ], [ %40, %39 ]
  call void @_ZNSt6vectorIN7maliput3api18RoadPositionResultESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %52

52:                                               ; preds = %51, %29
  %.pn26 = phi { ptr, i32 } [ %30, %29 ], [ %.pn, %51 ]
  call void @_ZNSt6vectorIN7maliput7routing19RoutePositionResultESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %53

53:                                               ; preds = %52, %17
  %.pn26.pn = phi { ptr, i32 } [ %.pn26, %52 ], [ %18, %17 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn26.pn
}

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

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

; 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

declare void @_ZNK7maliput7routing5Phase17FindPhasePositionERKNS_3api16InertialPositionE(ptr dead_on_unwind writable sret(%"struct.maliput::routing::PhasePositionResult") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPN7maliput7routing19RoutePositionResultESt6vectorIS4_SaIS4_EEEESt20back_insert_iteratorIS6_INS2_3api18RoadPositionResultESaISC_EEEZNKS3_5Route17FindRoutePositionERKNSB_16InertialPositionEE3$_0ET0_T_SM_SL_T1_"(ptr, ptr, ptr, ptr, ptr) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt13back_inserterISt6vectorIN7maliput3api18RoadPositionResultESaIS3_EEESt20back_insert_iteratorIT_ERS7_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN7maliput3api18RoadPositionResultESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZN7maliput13geometry_base29IsNewRoadPositionResultCloserERKNS_3api18RoadPositionResultES4_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIN7maliput7routing19RoutePositionResultEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !7, i64 0}
!6 = !{!"_ZTSN7maliput7routing19RoutePositionResultE", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN7maliput7routing19PhasePositionResultE", !7, i64 0, !11, i64 8, !15, i64 32, !16, i64 56}
!11 = !{!"_ZTSN7maliput3api12LanePositionE", !12, i64 0}
!12 = !{!"_ZTSN7maliput4math7Vector3E", !13, i64 0}
!13 = !{!"_ZTSN7maliput4math10VectorBaseILm3ENS0_7Vector3EEE", !14, i64 0}
!14 = !{!"_ZTSSt5arrayIdLm3EE", !8, i64 0}
!15 = !{!"_ZTSN7maliput3api16InertialPositionE", !12, i64 0}
!16 = !{!"double", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !25, i64 80}
!20 = !{!"_ZTSN7maliput7routing5RouteE", !21, i64 0, !26, i64 24, !25, i64 80}
!21 = !{!"_ZTSSt6vectorIN7maliput7routing5PhaseESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE17_Vector_impl_dataE", !25, i64 0, !25, i64 8, !25, i64 16}
!25 = !{!"any pointer", !8, i64 0}
!26 = !{!"_ZTSSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt6vectorINS0_7routing5Route15LaneSRangeIndexESaIS8_EESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE", !27, i64 0}
!27 = !{!"_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", !25, i64 0, !28, i64 8, !29, i64 16, !28, i64 24, !30, i64 32, !25, i64 48}
!28 = !{!"long", !8, i64 0}
!29 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !25, i64 0}
!30 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !31, i64 0, !28, i64 8}
!31 = !{!"float", !8, i64 0}
!32 = distinct !{!32, !18}


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