; LLVM IR from maliput/maliput :: src/maliput/geometry_base (kd_tree_strategy)

; 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.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<maliput::geometry_base::KDTreeStrategy::MaliputPoint, std::allocator<maliput::geometry_base::KDTreeStrategy::MaliputPoint>>::_Deque_impl" }
%"struct.std::_Deque_base<maliput::geometry_base::KDTreeStrategy::MaliputPoint, std::allocator<maliput::geometry_base::KDTreeStrategy::MaliputPoint>>::_Deque_impl" = type { %"struct.std::_Deque_base<maliput::geometry_base::KDTreeStrategy::MaliputPoint, std::allocator<maliput::geometry_base::KDTreeStrategy::MaliputPoint>>::_Deque_impl_data" }
%"struct.std::_Deque_base<maliput::geometry_base::KDTreeStrategy::MaliputPoint, std::allocator<maliput::geometry_base::KDTreeStrategy::MaliputPoint>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.maliput::api::RBounds" = type { double, double }
%"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.maliput::api::LanePosition" = type { %"class.maliput::math::Vector3" }
%"class.maliput::geometry_base::KDTreeStrategy::MaliputPoint" = type { %"class.maliput::math::Vector3", %"class.std::optional" }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload_base.base", [7 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<const maliput::api::Lane *>::_Storage", i8 }>
%"union.std::_Optional_payload_base<const maliput::api::Lane *>::_Storage" = type { ptr }
%"class.std::initializer_list.33" = type { ptr, i64 }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.21" }
%"struct.std::_Head_base.21" = type { ptr }
%"class.maliput::geometry_base::KDTreeStrategy" = type { %"class.maliput::geometry_base::StrategyBase", %"class.std::unique_ptr", double }
%"class.maliput::geometry_base::StrategyBase" = type { ptr, ptr }
%"struct.std::pair.31" = type { %"class.maliput::api::TypeSpecificIdentifier", ptr }
%"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] }

@_ZTVN7maliput13geometry_base14KDTreeStrategyE = external dso_local unnamed_addr constant { [6 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZN7maliput13geometry_base14KDTreeStrategyC2EPKNS_3api12RoadGeometryEd(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, double noundef %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca %"class.std::unordered_map", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::deque", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %13 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca %"class.maliput::api::RBounds", align 8
  %19 = alloca double, align 8
  %20 = alloca %"class.maliput::math::Vector3", align 8
  %21 = alloca %"class.maliput::api::InertialPosition", align 8
  %22 = alloca %"class.maliput::api::LanePosition", align 8
  %23 = alloca %"class.maliput::geometry_base::KDTreeStrategy::MaliputPoint", align 8
  %24 = alloca %"class.maliput::math::Vector3", align 8
  %25 = alloca %"class.std::initializer_list.33", align 8
  %26 = alloca [3 x double], align 8
  %27 = alloca %"class.std::unique_ptr", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store double %2, ptr %6, align 8, !tbaa !9
  %28 = load ptr, ptr %4, align 8
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN7maliput13geometry_base12StrategyBaseC2EPKNS_3api12RoadGeometryE(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef %29)
  store ptr getelementptr inbounds inrange(-16, 32) ({ [6 x ptr] }, ptr @_ZTVN7maliput13geometry_base14KDTreeStrategyE, i32 0, i32 0, i32 2), ptr %28, align 8, !tbaa !11
  %30 = getelementptr inbounds %"class.maliput::geometry_base::KDTreeStrategy", ptr %28, i32 0, i32 1
  call void @_ZNSt10unique_ptrIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EEC2ISD_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  %31 = getelementptr inbounds %"class.maliput::geometry_base::KDTreeStrategy", ptr %28, i32 0, i32 2
  %32 = load double, ptr %6, align 8, !tbaa !9
  store double %32, ptr %31, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 56, ptr %7) #7
  %33 = invoke noundef ptr @_ZNK7maliput13geometry_base12StrategyBase17get_road_geometryEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %34 unwind label %52

34:                                               ; preds = %3
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7maliput3api12RoadGeometry4ByIdEv(ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %36 unwind label %52

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7maliput3api12RoadGeometry7IdIndex8GetLanesEv(ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %38 unwind label %52

38:                                               ; preds = %36
  invoke void @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEEPKS3_St4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S6_EEEC2ERKSF_(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(56) %37)
          to label %39 unwind label %52

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 80, ptr %10) #7
  invoke void @_ZNSt5dequeIN7maliput13geometry_base14KDTreeStrategy12MaliputPointESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %10)
          to label %40 unwind label %56

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store ptr %7, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEEPKS3_St4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %41) #7
  %43 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %12, i32 0, i32 0
  %44 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %43, i32 0, i32 0
  store ptr %42, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEEPKS3_St4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %45) #7
  %47 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %13, i32 0, i32 0
  %48 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %47, i32 0, i32 0
  store ptr %46, ptr %48, align 8
  br label %49

49:                                               ; preds = %156, %40
  %50 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_4LaneEEEPKS5_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br i1 %50, label %60, label %51

51:                                               ; preds = %49
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %159

52:                                               ; preds = %38, %36, %34, %3
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %8, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %9, align 4
  br label %169

56:                                               ; preds = %39
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %8, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %9, align 4
  br label %168

60:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %61 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_4LaneEEEPKS5_ELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  store ptr %61, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %62 = load ptr, ptr %15, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.std::pair.31", ptr %62, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !22
  %65 = invoke noundef double @_ZNK7maliput3api4Lane6lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %64)
          to label %66 unwind label %72

66:                                               ; preds = %60
  store double %65, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store double 0.000000e+00, ptr %17, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %149, %66
  %68 = load double, ptr %17, align 8, !tbaa !9
  %69 = load double, ptr %16, align 8, !tbaa !9
  %70 = fcmp ole double %68, %69
  br i1 %70, label %76, label %71

71:                                               ; preds = %67
  store i32 4, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %155

72:                                               ; preds = %60
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %8, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %9, align 4
  br label %158

76:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #7
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.std::pair.31", ptr %77, i32 0, i32 1
  %79 = load ptr, ptr %78, align 8, !tbaa !22
  %80 = load double, ptr %17, align 8, !tbaa !9
  %81 = invoke { double, double } @_ZNK7maliput3api4Lane11lane_boundsEd(ptr noundef nonnull align 8 dereferenceable(8) %79, double noundef %80)
          to label %82 unwind label %95

82:                                               ; preds = %76
  %83 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %84 = extractvalue { double, double } %81, 0
  store double %84, ptr %83, align 8
  %85 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %86 = extractvalue { double, double } %81, 1
  store double %86, ptr %85, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %87 = invoke noundef double @_ZNK7maliput3api7RBounds3minEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %88 unwind label %99

88:                                               ; preds = %82
  store double %87, ptr %19, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %133, %88
  %90 = load double, ptr %19, align 8, !tbaa !9
  %91 = invoke noundef double @_ZNK7maliput3api7RBounds3maxEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %92 unwind label %99

92:                                               ; preds = %89
  %93 = fcmp ole double %90, %91
  br i1 %93, label %103, label %94

94:                                               ; preds = %92
  store i32 7, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %148

95:                                               ; preds = %76
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %8, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %9, align 4
  br label %154

99:                                               ; preds = %89, %82
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %8, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %9, align 4
  br label %147

103:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  %104 = load ptr, ptr %15, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.std::pair.31", ptr %104, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #7
  %107 = load double, ptr %17, align 8, !tbaa !9
  %108 = load double, ptr %19, align 8, !tbaa !9
  invoke void @_ZN7maliput3api12LanePositionC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %22, double noundef %107, double noundef %108, double noundef 0.000000e+00)
          to label %109 unwind label %138

109:                                              ; preds = %103
  invoke void @_ZNK7maliput3api4Lane18ToInertialPositionERKNS0_12LanePositionE(ptr dead_on_unwind writable sret(%"class.maliput::api::InertialPosition") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %110 unwind label %138

110:                                              ; preds = %109
  %111 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api16InertialPosition3xyzEv(ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %112 unwind label %138

112:                                              ; preds = %110
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %111, i64 24, i1 false)
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #7
  %113 = invoke noundef double @_ZNK7maliput4math7Vector31xEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %114 unwind label %142

114:                                              ; preds = %112
  store double %113, ptr %26, align 8, !tbaa !9
  %115 = getelementptr inbounds double, ptr %26, i64 1
  %116 = invoke noundef double @_ZNK7maliput4math7Vector31yEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %117 unwind label %142

117:                                              ; preds = %114
  store double %116, ptr %115, align 8, !tbaa !9
  %118 = getelementptr inbounds double, ptr %26, i64 2
  %119 = invoke noundef double @_ZNK7maliput4math7Vector31zEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %120 unwind label %142

120:                                              ; preds = %117
  store double %119, ptr %118, align 8, !tbaa !9
  %121 = getelementptr inbounds %"class.std::initializer_list.33", ptr %25, i32 0, i32 0
  store ptr %26, ptr %121, align 8, !tbaa !28
  %122 = getelementptr inbounds %"class.std::initializer_list.33", ptr %25, i32 0, i32 1
  store i64 3, ptr %122, align 8, !tbaa !30
  %123 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8
  %125 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %126 = load i64, ptr %125, align 8
  invoke void @_ZN7maliput4math7Vector3C2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr %124, i64 %126)
          to label %127 unwind label %142

127:                                              ; preds = %120
  %128 = load ptr, ptr %15, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.std::pair.31", ptr %128, i32 0, i32 1
  %130 = load ptr, ptr %129, align 8, !tbaa !22
  invoke void @_ZN7maliput13geometry_base14KDTreeStrategy12MaliputPointC2ERKNS_4math7Vector3EPKNS_3api4LaneE(ptr noundef nonnull align 8 dereferenceable(40) %23, ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef %130)
          to label %131 unwind label %142

131:                                              ; preds = %127
  invoke void @_ZNSt5dequeIN7maliput13geometry_base14KDTreeStrategy12MaliputPointESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(80) %10, ptr noundef nonnull align 8 dereferenceable(40) %23)
          to label %132 unwind label %142

132:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  br label %133

133:                                              ; preds = %132
  %134 = getelementptr inbounds %"class.maliput::geometry_base::KDTreeStrategy", ptr %28, i32 0, i32 2
  %135 = load double, ptr %134, align 8, !tbaa !13
  %136 = load double, ptr %19, align 8, !tbaa !9
  %137 = fadd double %136, %135
  store double %137, ptr %19, align 8, !tbaa !9
  br label %89, !llvm.loop !31

138:                                              ; preds = %110, %109, %103
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %8, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  br label %146

142:                                              ; preds = %131, %127, %120, %117, %114, %112
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %8, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #7
  br label %146

146:                                              ; preds = %142, %138
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  br label %147

147:                                              ; preds = %146, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %154

148:                                              ; preds = %94
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  br label %149

149:                                              ; preds = %148
  %150 = getelementptr inbounds %"class.maliput::geometry_base::KDTreeStrategy", ptr %28, i32 0, i32 2
  %151 = load double, ptr %150, align 8, !tbaa !13
  %152 = load double, ptr %17, align 8, !tbaa !9
  %153 = fadd double %152, %151
  store double %153, ptr %17, align 8, !tbaa !9
  br label %67, !llvm.loop !33

154:                                              ; preds = %147, %95
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %158

155:                                              ; preds = %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %156

156:                                              ; preds = %155
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_4LaneEEEPKS5_ELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br label %49

158:                                              ; preds = %154, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %167

159:                                              ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  invoke void @_ZSt11make_uniqueIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEEJSt5dequeIS5_SaIS5_EEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %27, ptr noundef nonnull align 8 dereferenceable(80) %10)
          to label %160 unwind label %163

160:                                              ; preds = %159
  %161 = getelementptr inbounds %"class.maliput::geometry_base::KDTreeStrategy", ptr %28, i32 0, i32 1
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EEaSEOSE_(ptr noundef nonnull align 8 dereferenceable(8) %161, ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  call void @_ZNSt10unique_ptrIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @_ZNSt5dequeIN7maliput13geometry_base14KDTreeStrategy12MaliputPointESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %10) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %10) #7
  call void @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEEPKS3_St4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #7
  ret void

163:                                              ; preds = %159
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %8, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %167

167:                                              ; preds = %163, %158
  call void @_ZNSt5dequeIN7maliput13geometry_base14KDTreeStrategy12MaliputPointESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %10) #7
  br label %168

168:                                              ; preds = %167, %56
  call void @llvm.lifetime.end.p0(i64 80, ptr %10) #7
  call void @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEEPKS3_St4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #7
  br label %169

169:                                              ; preds = %168, %52
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #7
  call void @_ZNSt10unique_ptrIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  call void @_ZN7maliput13geometry_base12StrategyBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #7
  br label %170

170:                                              ; preds = %169
  %171 = load ptr, ptr %8, align 8
  %172 = load i32, ptr %9, align 4
  %173 = insertvalue { ptr, i32 } poison, ptr %171, 0
  %174 = insertvalue { ptr, i32 } %173, i32 %172, 1
  resume { ptr, i32 } %174
}

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

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

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

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

declare noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7maliput3api12RoadGeometry7IdIndex8GetLanesEv(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

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

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

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

declare noundef double @_ZNK7maliput3api4Lane6lengthEv(ptr noundef nonnull align 8 dereferenceable(8)) #3

declare { double, double } @_ZNK7maliput3api4Lane11lane_boundsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #3

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5dequeIN7maliput13geometry_base14KDTreeStrategy12MaliputPointESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEEJSt5dequeIS5_SaIS5_EEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(80)) #5

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #7 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 24}
!14 = !{!"_ZTSN7maliput13geometry_base14KDTreeStrategyE", !15, i64 0, !16, i64 16, !10, i64 24}
!15 = !{!"_ZTSN7maliput13geometry_base12StrategyBaseE", !6, i64 8}
!16 = !{!"_ZTSSt10unique_ptrIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_dataIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_ELb1ELb1EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_implIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EE", !19, i64 0}
!19 = !{!"_ZTSSt5tupleIJPN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EEE", !20, i64 0}
!20 = !{!"_ZTSSt11_Tuple_implILm0EJPN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_Head_baseILm0EPN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEELb0EE", !6, i64 0}
!22 = !{!23, !6, i64 32}
!23 = !{!"_ZTSSt4pairIKN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEEPKS3_E", !24, i64 0, !6, i64 32}
!24 = !{!"_ZTSN7maliput3api22TypeSpecificIdentifierINS0_4LaneEEE", !25, i64 0}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !27, i64 8, !7, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!29, !6, i64 0}
!29 = !{!"_ZTSSt16initializer_listIdE", !6, i64 0, !27, i64 8}
!30 = !{!29, !27, i64 8}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}


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

%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<maliput::geometry_base::KDTreeStrategy::MaliputPoint, std::allocator<maliput::geometry_base::KDTreeStrategy::MaliputPoint>>::_Deque_impl" }
%"struct.std::_Deque_base<maliput::geometry_base::KDTreeStrategy::MaliputPoint, std::allocator<maliput::geometry_base::KDTreeStrategy::MaliputPoint>>::_Deque_impl" = type { %"struct.std::_Deque_base<maliput::geometry_base::KDTreeStrategy::MaliputPoint, std::allocator<maliput::geometry_base::KDTreeStrategy::MaliputPoint>>::_Deque_impl_data" }
%"struct.std::_Deque_base<maliput::geometry_base::KDTreeStrategy::MaliputPoint, std::allocator<maliput::geometry_base::KDTreeStrategy::MaliputPoint>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.maliput::api::RBounds" = type { double, double }
%"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.maliput::api::LanePosition" = type { %"class.maliput::math::Vector3" }
%"class.maliput::geometry_base::KDTreeStrategy::MaliputPoint" = type { %"class.maliput::math::Vector3", %"class.std::optional" }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload_base.base", [7 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<const maliput::api::Lane *>::_Storage", i8 }>
%"union.std::_Optional_payload_base<const maliput::api::Lane *>::_Storage" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.21" }
%"struct.std::_Head_base.21" = type { ptr }

@_ZTVN7maliput13geometry_base14KDTreeStrategyE = external dso_local unnamed_addr constant { [6 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZN7maliput13geometry_base14KDTreeStrategyC2EPKNS_3api12RoadGeometryEd(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, double noundef %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::unordered_map", align 8
  %5 = alloca %"class.std::deque", align 8
  %6 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %7 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %8 = alloca %"class.maliput::api::RBounds", align 8
  %9 = alloca %"class.maliput::math::Vector3", align 8
  %10 = alloca %"class.maliput::api::InertialPosition", align 8
  %11 = alloca %"class.maliput::api::LanePosition", align 8
  %12 = alloca %"class.maliput::geometry_base::KDTreeStrategy::MaliputPoint", align 8
  %13 = alloca %"class.maliput::math::Vector3", align 8
  %14 = alloca [3 x double], align 8
  %15 = alloca %"class.std::unique_ptr", align 8
  tail call void @_ZN7maliput13geometry_base12StrategyBaseC2EPKNS_3api12RoadGeometryE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1)
  store ptr getelementptr inbounds inrange(-16, 32) (i8, ptr @_ZTVN7maliput13geometry_base14KDTreeStrategyE, i64 16), ptr %0, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZNSt10unique_ptrIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EEC2ISD_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  store double %2, ptr %17, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #7
  %18 = tail call noundef ptr @_ZNK7maliput13geometry_base12StrategyBase17get_road_geometryEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %19 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7maliput3api12RoadGeometry4ByIdEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %20 unwind label %31

20:                                               ; preds = %3
  %21 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7maliput3api12RoadGeometry7IdIndex8GetLanesEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %22 unwind label %31

22:                                               ; preds = %20
  invoke void @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEEPKS3_St4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S6_EEEC2ERKSF_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(56) %21)
          to label %23 unwind label %31

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #7
  invoke void @_ZNSt5dequeIN7maliput13geometry_base14KDTreeStrategy12MaliputPointESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %24 unwind label %33

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %25 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEEPKS3_St4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  store ptr %25, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %26 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEEPKS3_St4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  store ptr %26, ptr %7, align 8
  %27 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_4LaneEEEPKS5_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %27, label %.lr.ph37, label %._crit_edge38

.lr.ph37:                                         ; preds = %24
  %28 = getelementptr inbounds i8, ptr %8, i64 8
  %29 = getelementptr inbounds i8, ptr %14, i64 8
  %30 = getelementptr inbounds i8, ptr %14, i64 16
  br label %35

._crit_edge38:                                    ; preds = %._crit_edge35, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  invoke void @_ZSt11make_uniqueIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEEJSt5dequeIS5_SaIS5_EEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %15, ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %80 unwind label %82

31:                                               ; preds = %22, %20, %3
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %86

33:                                               ; preds = %23
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %85

35:                                               ; preds = %.lr.ph37, %._crit_edge35
  %36 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_4LaneEEEPKS5_ELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %37 = getelementptr inbounds i8, ptr %36, i64 32
  %38 = load ptr, ptr %37, align 8, !tbaa !20
  %39 = invoke noundef double @_ZNK7maliput3api4Lane6lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %.preheader unwind label %43

.preheader:                                       ; preds = %35
  %40 = fcmp ult double %39, 0.000000e+00
  br i1 %40, label %._crit_edge35, label %.lr.ph34

._crit_edge35:                                    ; preds = %._crit_edge, %.preheader
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_4LaneEEEPKS5_ELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %42 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_4LaneEEEPKS5_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %42, label %35, label %._crit_edge38

43:                                               ; preds = %35
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %79

.lr.ph34:                                         ; preds = %.preheader, %._crit_edge
  %.02533 = phi double [ %54, %._crit_edge ], [ 0.000000e+00, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %45 = load ptr, ptr %37, align 8, !tbaa !20
  %46 = invoke { double, double } @_ZNK7maliput3api4Lane11lane_boundsEd(ptr noundef nonnull align 8 dereferenceable(8) %45, double noundef %.02533)
          to label %47 unwind label %56

47:                                               ; preds = %.lr.ph34
  %48 = extractvalue { double, double } %46, 0
  store double %48, ptr %8, align 8
  %49 = extractvalue { double, double } %46, 1
  store double %49, ptr %28, align 8
  %50 = call noundef double @_ZNK7maliput3api7RBounds3minEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %51 = call noundef double @_ZNK7maliput3api7RBounds3maxEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %52 = fcmp ugt double %50, %51
  br i1 %52, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %68, %47
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  %53 = load double, ptr %17, align 8, !tbaa !8
  %54 = fadd double %.02533, %53
  %55 = fcmp ugt double %54, %39
  br i1 %55, label %._crit_edge35, label %.lr.ph34, !llvm.loop !26

56:                                               ; preds = %.lr.ph34
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %78

.lr.ph:                                           ; preds = %47, %68
  %.02432 = phi double [ %70, %68 ], [ %50, %47 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  %58 = load ptr, ptr %37, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  invoke void @_ZN7maliput3api12LanePositionC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %11, double noundef %.02533, double noundef %.02432, double noundef 0.000000e+00)
          to label %59 unwind label %73

59:                                               ; preds = %.lr.ph
  invoke void @_ZNK7maliput3api4Lane18ToInertialPositionERKNS0_12LanePositionE(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::InertialPosition") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %60 unwind label %73

60:                                               ; preds = %59
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api16InertialPosition3xyzEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %61, i64 24, i1 false)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  %62 = call noundef double @_ZNK7maliput4math7Vector31xEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  store double %62, ptr %14, align 8, !tbaa !28
  %63 = call noundef double @_ZNK7maliput4math7Vector31yEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  store double %63, ptr %29, align 8, !tbaa !28
  %64 = call noundef double @_ZNK7maliput4math7Vector31zEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  store double %64, ptr %30, align 8, !tbaa !28
  invoke void @_ZN7maliput4math7Vector3C2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr nonnull %14, i64 3)
          to label %65 unwind label %75

65:                                               ; preds = %60
  %66 = load ptr, ptr %37, align 8, !tbaa !20
  invoke void @_ZN7maliput13geometry_base14KDTreeStrategy12MaliputPointC2ERKNS_4math7Vector3EPKNS_3api4LaneE(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef %66)
          to label %67 unwind label %75

67:                                               ; preds = %65
  invoke void @_ZNSt5dequeIN7maliput13geometry_base14KDTreeStrategy12MaliputPointESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %68 unwind label %75

68:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  %69 = load double, ptr %17, align 8, !tbaa !8
  %70 = fadd double %.02432, %69
  %71 = call noundef double @_ZNK7maliput3api7RBounds3maxEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %72 = fcmp ugt double %70, %71
  br i1 %72, label %._crit_edge, label %.lr.ph, !llvm.loop !29

73:                                               ; preds = %59, %.lr.ph
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  br label %77

75:                                               ; preds = %67, %65, %60
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #7
  br label %77

77:                                               ; preds = %75, %73
  %.pn = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  br label %78

78:                                               ; preds = %77, %56
  %.pn.pn = phi { ptr, i32 } [ %.pn, %77 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %79

79:                                               ; preds = %78, %43
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %78 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %84

80:                                               ; preds = %._crit_edge38
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EEaSEOSE_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @_ZNSt10unique_ptrIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @_ZNSt5dequeIN7maliput13geometry_base14KDTreeStrategy12MaliputPointESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #7
  call void @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEEPKS3_St4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #7
  ret void

82:                                               ; preds = %._crit_edge38
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %84

84:                                               ; preds = %82, %79
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %79 ], [ %83, %82 ]
  call void @_ZNSt5dequeIN7maliput13geometry_base14KDTreeStrategy12MaliputPointESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #7
  br label %85

85:                                               ; preds = %84, %33
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %84 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #7
  call void @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEEPKS3_St4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  br label %86

86:                                               ; preds = %85, %31
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %85 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #7
  call void @_ZNSt10unique_ptrIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @_ZN7maliput13geometry_base12StrategyBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #7
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn
}

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

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

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

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

declare noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7maliput3api12RoadGeometry7IdIndex8GetLanesEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

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

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

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

declare noundef double @_ZNK7maliput3api4Lane6lengthEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

declare { double, double } @_ZNK7maliput3api4Lane11lane_boundsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #3

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5dequeIN7maliput13geometry_base14KDTreeStrategy12MaliputPointESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEEJSt5dequeIS5_SaIS5_EEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #5

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #7 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !19, i64 24}
!9 = !{!"_ZTSN7maliput13geometry_base14KDTreeStrategyE", !10, i64 0, !13, i64 16, !19, i64 24}
!10 = !{!"_ZTSN7maliput13geometry_base12StrategyBaseE", !11, i64 8}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTSSt10unique_ptrIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EE", !14, i64 0}
!14 = !{!"_ZTSSt15__uniq_ptr_dataIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_ELb1ELb1EE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_implIN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EE", !16, i64 0}
!16 = !{!"_ZTSSt5tupleIJPN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EEE", !17, i64 0}
!17 = !{!"_ZTSSt11_Tuple_implILm0EJPN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEESt14default_deleteISB_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_Head_baseILm0EPN7maliput4math8KDTree3DINS0_13geometry_base14KDTreeStrategy12MaliputPointENS1_7details15SquaredDistanceIS5_Lm3EEENS6_7NodeCmpILm3EEEEELb0EE", !11, i64 0}
!19 = !{!"double", !12, i64 0}
!20 = !{!21, !11, i64 32}
!21 = !{!"_ZTSSt4pairIKN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEEPKS3_E", !22, i64 0, !11, i64 32}
!22 = !{!"_ZTSN7maliput3api22TypeSpecificIdentifierINS0_4LaneEEE", !23, i64 0}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !25, i64 8, !12, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!25 = !{!"long", !12, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!19, !19, i64 0}
!29 = distinct !{!29, !27}


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