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

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<maliput::api::LaneSRoute, std::allocator<maliput::api::LaneSRoute>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::LaneSRoute, std::allocator<maliput::api::LaneSRoute>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::LaneSRoute, std::allocator<maliput::api::LaneSRoute>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::LaneSRoute, std::allocator<maliput::api::LaneSRoute>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<const maliput::api::Lane *>, std::allocator<std::vector<const maliput::api::Lane *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<const maliput::api::Lane *>, std::allocator<std::vector<const maliput::api::Lane *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<const maliput::api::Lane *>, std::allocator<std::vector<const maliput::api::Lane *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<const maliput::api::Lane *>, std::allocator<std::vector<const maliput::api::Lane *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<maliput::api::LaneSRange, std::allocator<maliput::api::LaneSRange>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::LaneSRange, std::allocator<maliput::api::LaneSRange>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::LaneSRange, std::allocator<maliput::api::LaneSRange>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::LaneSRange, std::allocator<maliput::api::LaneSRange>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.maliput::api::LaneSRange" = type { %"class.maliput::api::TypeSpecificIdentifier", %"class.maliput::api::SRange" }
%"class.maliput::api::TypeSpecificIdentifier" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.maliput::api::SRange" = type { double, double }
%"class.std::allocator.12" = type { i8 }
%"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<double>::_Storage", i8 }>
%"union.std::_Optional_payload_base<double>::_Storage" = type { double }
%"struct.maliput::api::RoadPosition" = type { ptr, %"class.maliput::api::LanePosition" }
%"class.maliput::api::LanePosition" = type { %"class.maliput::math::Vector3" }
%"class.maliput::math::Vector3" = type { %"class.maliput::math::VectorBase" }
%"class.maliput::math::VectorBase" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x double] }

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local { double, i8 } @_ZN7maliput7routing14DetermineEdgeSERKNS_3api4LaneES4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, double noundef %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i1, align 1
  %12 = alloca ptr, align 8
  %13 = alloca %"class.std::vector.0", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::vector.10", align 8
  %21 = alloca %"class.std::vector.10", align 8
  %22 = alloca %"class.std::initializer_list", align 8
  %23 = alloca [1 x %"class.maliput::api::LaneSRange"], align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %26 = alloca %"class.maliput::api::SRange", align 8
  %27 = alloca i1, align 1
  %28 = alloca %"class.std::allocator.12", align 1
  %29 = alloca i64, align 8
  %30 = alloca ptr, align 8
  %31 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %32 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %33 = alloca %"class.std::optional", align 8
  %34 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %35 = alloca %"class.maliput::api::SRange", align 8
  %36 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %37 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %38 = alloca %"class.std::optional", align 8
  %39 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %40 = alloca %"class.maliput::api::SRange", align 8
  %41 = alloca %"class.std::optional", align 8
  %42 = alloca %"class.std::optional", align 8
  %43 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %44 = alloca %"class.maliput::api::SRange", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store double %3, ptr %8, align 8, !tbaa !9
  br label %45

45:                                               ; preds = %4
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = icmp ne ptr %48, null
  br i1 %49, label %51, label %50

50:                                               ; preds = %45
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str, ptr noundef @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef @.str.1, i32 noundef 70) #6
  unreachable

51:                                               ; preds = %45
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = icmp ne ptr %56, null
  br i1 %57, label %59, label %58

58:                                               ; preds = %53
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.2, ptr noundef @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef @.str.1, i32 noundef 71) #6
  unreachable

59:                                               ; preds = %53
  br label %60

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %61, i32 0, i32 1
  %63 = call noundef double @_ZNK7maliput3api12LanePosition1sEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
  store double %63, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %64, i32 0, i32 1
  %66 = call noundef double @_ZNK7maliput3api12LanePosition1sEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
  store double %66, ptr %10, align 8, !tbaa !9
  store i1 false, ptr %11, align 1
  call void @_ZNSt6vectorIN7maliput3api10LaneSRouteESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #7
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !11
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %70, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !11
  %73 = load double, ptr %8, align 8, !tbaa !9
  invoke void @_ZN7maliput7routing17FindLaneSequencesEPKNS_3api4LaneES4_d(ptr dead_on_unwind writable sret(%"class.std::vector.0") align 8 %13, ptr noundef %69, ptr noundef %72, double noundef %73)
          to label %74 unwind label %84

74:                                               ; preds = %60
  store ptr %13, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = call ptr @_ZNSt6vectorIS_IPKN7maliput3api4LaneESaIS4_EESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #7
  %77 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %76, ptr %77, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = call ptr @_ZNSt6vectorIS_IPKN7maliput3api4LaneESaIS4_EESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #7
  %80 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %79, ptr %80, align 8
  br label %81

81:                                               ; preds = %457, %74
  %82 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIPKN7maliput3api4LaneESaIS6_EES1_IS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br i1 %82, label %88, label %83

83:                                               ; preds = %81
  store i32 6, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @_ZNSt6vectorIS_IPKN7maliput3api4LaneESaIS4_EESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %462

84:                                               ; preds = %60
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %14, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %15, align 4
  br label %461

88:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %89 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIPKN7maliput3api4LaneESaIS6_EES1_IS8_SaIS8_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  store ptr %89, ptr %19, align 8, !tbaa !5
  br label %90

90:                                               ; preds = %88
  %91 = load ptr, ptr %19, align 8, !tbaa !5
  %92 = call noundef zeroext i1 @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #7
  br i1 %92, label %93, label %99

93:                                               ; preds = %90
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.3, ptr noundef @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef @.str.1, i32 noundef 77) #6
          to label %94 unwind label %95

94:                                               ; preds = %93
  unreachable

95:                                               ; preds = %93
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %14, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %15, align 4
  br label %460

99:                                               ; preds = %90
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #7
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  %102 = load ptr, ptr %19, align 8, !tbaa !5
  %103 = call noundef i64 @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #7
  %104 = icmp eq i64 %103, 1
  br i1 %104, label %105, label %183

105:                                              ; preds = %101
  br label %106

106:                                              ; preds = %105
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !11
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %110, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !11
  %113 = icmp eq ptr %109, %112
  br i1 %113, label %120, label %114

114:                                              ; preds = %106
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.4, ptr noundef @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef @.str.1, i32 noundef 83) #6
          to label %115 unwind label %116

115:                                              ; preds = %114
  unreachable

116:                                              ; preds = %448, %114
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %14, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %15, align 4
  br label %459

120:                                              ; preds = %106
  br label %121

121:                                              ; preds = %120
  br label %122

122:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %23) #7
  store i1 true, ptr %27, align 1
  store ptr %23, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #7
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !11
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %25, ptr noundef nonnull align 8 dereferenceable(8) %125)
          to label %126 unwind label %147

126:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %127 = load double, ptr %9, align 8, !tbaa !9
  %128 = load double, ptr %10, align 8, !tbaa !9
  invoke void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef %127, double noundef %128)
          to label %129 unwind label %151

129:                                              ; preds = %126
  invoke void @_ZN7maliput3api10LaneSRangeC2ERKNS0_22TypeSpecificIdentifierINS0_4LaneEEERKNS0_6SRangeE(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %130 unwind label %151

130:                                              ; preds = %129
  store i1 false, ptr %27, align 1
  %131 = getelementptr inbounds %"class.std::initializer_list", ptr %22, i32 0, i32 0
  store ptr %23, ptr %131, align 8, !tbaa !17
  %132 = getelementptr inbounds %"class.std::initializer_list", ptr %22, i32 0, i32 1
  store i64 1, ptr %132, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #7
  call void @_ZNSaIN7maliput3api10LaneSRangeEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  %133 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8
  %135 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %136 = load i64, ptr %135, align 8
  invoke void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr %134, i64 %136, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %137 unwind label %155

137:                                              ; preds = %130
  call void @_ZNSt15__new_allocatorIN7maliput3api10LaneSRangeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  %138 = getelementptr inbounds [1 x %"class.maliput::api::LaneSRange"], ptr %23, i32 0, i32 0
  %139 = getelementptr inbounds %"class.maliput::api::LaneSRange", ptr %138, i64 1
  br label %140

140:                                              ; preds = %140, %137
  %141 = phi ptr [ %139, %137 ], [ %142, %140 ]
  %142 = getelementptr inbounds %"class.maliput::api::LaneSRange", ptr %141, i64 -1
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %142) #7
  %143 = icmp eq ptr %142, %138
  br i1 %143, label %144, label %140

144:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #7
  %145 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN7maliput3api10LaneSRouteESaIS2_EE12emplace_backIJRKS_INS1_10LaneSRangeESaIS6_EEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %146 unwind label %178

146:                                              ; preds = %144
  store i32 7, ptr %18, align 4
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  br label %451

147:                                              ; preds = %122
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %14, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %15, align 4
  br label %167

151:                                              ; preds = %129, %126
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %14, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %15, align 4
  br label %166

155:                                              ; preds = %130
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %14, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %15, align 4
  call void @_ZNSt15__new_allocatorIN7maliput3api10LaneSRangeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  %159 = getelementptr inbounds [1 x %"class.maliput::api::LaneSRange"], ptr %23, i32 0, i32 0
  %160 = getelementptr inbounds %"class.maliput::api::LaneSRange", ptr %159, i64 1
  br label %161

161:                                              ; preds = %161, %155
  %162 = phi ptr [ %160, %155 ], [ %163, %161 ]
  %163 = getelementptr inbounds %"class.maliput::api::LaneSRange", ptr %162, i64 -1
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %163) #7
  %164 = icmp eq ptr %163, %159
  br i1 %164, label %165, label %161

165:                                              ; preds = %161
  br label %166

166:                                              ; preds = %165, %151
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  br label %167

167:                                              ; preds = %166, %147
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  %168 = load i1, ptr %27, align 1
  br i1 %168, label %169, label %177

169:                                              ; preds = %167
  %170 = load ptr, ptr %24, align 8
  %171 = icmp eq ptr %23, %170
  br i1 %171, label %176, label %172

172:                                              ; preds = %172, %169
  %173 = phi ptr [ %170, %169 ], [ %174, %172 ]
  %174 = getelementptr inbounds %"class.maliput::api::LaneSRange", ptr %173, i64 -1
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %174) #7
  %175 = icmp eq ptr %174, %23
  br i1 %175, label %176, label %172

176:                                              ; preds = %172, %169
  br label %177

177:                                              ; preds = %176, %167
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #7
  br label %182

178:                                              ; preds = %144
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %14, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %15, align 4
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  br label %182

182:                                              ; preds = %178, %177
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  br label %459

183:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  store i64 0, ptr %29, align 8, !tbaa !21
  br label %184

184:                                              ; preds = %444, %183
  %185 = load i64, ptr %29, align 8, !tbaa !21
  %186 = load ptr, ptr %19, align 8, !tbaa !5
  %187 = call noundef i64 @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %186) #7
  %188 = icmp ult i64 %185, %187
  br i1 %188, label %190, label %189

189:                                              ; preds = %184
  store i32 12, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %448

190:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %191 = load ptr, ptr %19, align 8, !tbaa !5
  %192 = load i64, ptr %29, align 8, !tbaa !21
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %191, i64 noundef %192)
          to label %194 unwind label %201

194:                                              ; preds = %190
  %195 = load ptr, ptr %193, align 8, !tbaa !5
  store ptr %195, ptr %30, align 8, !tbaa !5
  br label %196

196:                                              ; preds = %194
  %197 = load ptr, ptr %30, align 8, !tbaa !5
  %198 = icmp ne ptr %197, null
  br i1 %198, label %205, label %199

199:                                              ; preds = %196
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.5, ptr noundef @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef @.str.1, i32 noundef 93) #6
          to label %200 unwind label %201

200:                                              ; preds = %199
  unreachable

201:                                              ; preds = %322, %300, %221, %199, %190
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %14, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %15, align 4
  br label %447

205:                                              ; preds = %196
  br label %206

206:                                              ; preds = %205
  br label %207

207:                                              ; preds = %206
  %208 = load i64, ptr %29, align 8, !tbaa !21
  %209 = icmp eq i64 %208, 0
  br i1 %209, label %210, label %283

210:                                              ; preds = %207
  br label %211

211:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #7
  %212 = load ptr, ptr %30, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %31, ptr noundef nonnull align 8 dereferenceable(8) %212)
          to label %213 unwind label %223

213:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #7
  %214 = load ptr, ptr %6, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %214, i32 0, i32 0
  %216 = load ptr, ptr %215, align 8, !tbaa !11
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %32, ptr noundef nonnull align 8 dereferenceable(8) %216)
          to label %217 unwind label %227

217:                                              ; preds = %213
  %218 = invoke noundef zeroext i1 @_ZNK7maliput3api22TypeSpecificIdentifierINS0_4LaneEEeqERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %219 unwind label %231

219:                                              ; preds = %217
  %220 = xor i1 %218, true
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #7
  br i1 %220, label %221, label %237

221:                                              ; preds = %219
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.6, ptr noundef @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef @.str.1, i32 noundef 95) #6
          to label %222 unwind label %201

222:                                              ; preds = %221
  unreachable

223:                                              ; preds = %211
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %14, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %15, align 4
  br label %236

227:                                              ; preds = %213
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %14, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %15, align 4
  br label %235

231:                                              ; preds = %217
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %14, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %15, align 4
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  br label %235

235:                                              ; preds = %231, %227
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #7
  br label %236

236:                                              ; preds = %235, %223
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #7
  br label %447

237:                                              ; preds = %219
  br label %238

238:                                              ; preds = %237
  br label %239

239:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  %240 = load ptr, ptr %30, align 8, !tbaa !5
  %241 = load ptr, ptr %19, align 8, !tbaa !5
  %242 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %241, i64 noundef 1)
          to label %243 unwind label %257

243:                                              ; preds = %239
  %244 = load ptr, ptr %242, align 8, !tbaa !5
  %245 = invoke { double, i8 } @_ZN7maliput7routing14DetermineEdgeSERKNS_3api4LaneES4_(ptr noundef nonnull align 8 dereferenceable(8) %240, ptr noundef nonnull align 8 dereferenceable(8) %244)
          to label %246 unwind label %257

246:                                              ; preds = %243
  %247 = getelementptr inbounds %"class.std::optional", ptr %33, i32 0, i32 0
  %248 = getelementptr inbounds %"struct.std::_Optional_base", ptr %247, i32 0, i32 0
  %249 = getelementptr inbounds { double, i8 }, ptr %248, i32 0, i32 0
  %250 = extractvalue { double, i8 } %245, 0
  store double %250, ptr %249, align 8
  %251 = getelementptr inbounds { double, i8 }, ptr %248, i32 0, i32 1
  %252 = extractvalue { double, i8 } %245, 1
  store i8 %252, ptr %251, align 8
  br label %253

253:                                              ; preds = %246
  %254 = call noundef zeroext i1 @_ZNKSt8optionalIdE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(16) %33) #7
  br i1 %254, label %261, label %255

255:                                              ; preds = %253
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.7, ptr noundef @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef @.str.1, i32 noundef 97) #6
          to label %256 unwind label %257

256:                                              ; preds = %255
  unreachable

257:                                              ; preds = %255, %243, %239
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %14, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %15, align 4
  br label %282

261:                                              ; preds = %253
  br label %262

262:                                              ; preds = %261
  br label %263

263:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #7
  %264 = load ptr, ptr %30, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %34, ptr noundef nonnull align 8 dereferenceable(8) %264)
          to label %265 unwind label %273

265:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #7
  %266 = load double, ptr %9, align 8, !tbaa !9
  %267 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalIdE5valueEv(ptr noundef nonnull align 8 dereferenceable(16) %33)
          to label %268 unwind label %277

268:                                              ; preds = %265
  %269 = load double, ptr %267, align 8, !tbaa !9
  invoke void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %35, double noundef %266, double noundef %269)
          to label %270 unwind label %277

270:                                              ; preds = %268
  %271 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE12emplace_backIJNS1_22TypeSpecificIdentifierINS1_4LaneEEENS1_6SRangeEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(16) %35)
          to label %272 unwind label %277

272:                                              ; preds = %270
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  br label %443

273:                                              ; preds = %263
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %14, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %15, align 4
  br label %281

277:                                              ; preds = %270, %268, %265
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %14, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  br label %281

281:                                              ; preds = %277, %273
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #7
  br label %282

282:                                              ; preds = %281, %257
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  br label %447

283:                                              ; preds = %207
  %284 = load i64, ptr %29, align 8, !tbaa !21
  %285 = add i64 %284, 1
  %286 = load ptr, ptr %19, align 8, !tbaa !5
  %287 = call noundef i64 @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %286) #7
  %288 = icmp eq i64 %285, %287
  br i1 %288, label %289, label %372

289:                                              ; preds = %283
  br label %290

290:                                              ; preds = %289
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #7
  %291 = load ptr, ptr %30, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %36, ptr noundef nonnull align 8 dereferenceable(8) %291)
          to label %292 unwind label %302

292:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #7
  %293 = load ptr, ptr %7, align 8, !tbaa !5
  %294 = getelementptr inbounds %"struct.maliput::api::RoadPosition", ptr %293, i32 0, i32 0
  %295 = load ptr, ptr %294, align 8, !tbaa !11
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %37, ptr noundef nonnull align 8 dereferenceable(8) %295)
          to label %296 unwind label %306

296:                                              ; preds = %292
  %297 = invoke noundef zeroext i1 @_ZNK7maliput3api22TypeSpecificIdentifierINS0_4LaneEEeqERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %37)
          to label %298 unwind label %310

298:                                              ; preds = %296
  %299 = xor i1 %297, true
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #7
  br i1 %299, label %300, label %316

300:                                              ; preds = %298
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.8, ptr noundef @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef @.str.1, i32 noundef 100) #6
          to label %301 unwind label %201

301:                                              ; preds = %300
  unreachable

302:                                              ; preds = %290
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %14, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %15, align 4
  br label %315

306:                                              ; preds = %292
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %14, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %15, align 4
  br label %314

310:                                              ; preds = %296
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %14, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %15, align 4
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  br label %314

314:                                              ; preds = %310, %306
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #7
  br label %315

315:                                              ; preds = %314, %302
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #7
  br label %447

316:                                              ; preds = %298
  br label %317

317:                                              ; preds = %316
  br label %318

318:                                              ; preds = %317
  br label %319

319:                                              ; preds = %318
  %320 = load i64, ptr %29, align 8, !tbaa !21
  %321 = icmp ugt i64 %320, 0
  br i1 %321, label %324, label %322

322:                                              ; preds = %319
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.9, ptr noundef @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef @.str.1, i32 noundef 101) #6
          to label %323 unwind label %201

323:                                              ; preds = %322
  unreachable

324:                                              ; preds = %319
  br label %325

325:                                              ; preds = %324
  br label %326

326:                                              ; preds = %325
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #7
  %327 = load ptr, ptr %30, align 8, !tbaa !5
  %328 = load ptr, ptr %19, align 8, !tbaa !5
  %329 = load i64, ptr %29, align 8, !tbaa !21
  %330 = sub i64 %329, 1
  %331 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %328, i64 noundef %330)
          to label %332 unwind label %346

332:                                              ; preds = %326
  %333 = load ptr, ptr %331, align 8, !tbaa !5
  %334 = invoke { double, i8 } @_ZN7maliput7routing14DetermineEdgeSERKNS_3api4LaneES4_(ptr noundef nonnull align 8 dereferenceable(8) %327, ptr noundef nonnull align 8 dereferenceable(8) %333)
          to label %335 unwind label %346

335:                                              ; preds = %332
  %336 = getelementptr inbounds %"class.std::optional", ptr %38, i32 0, i32 0
  %337 = getelementptr inbounds %"struct.std::_Optional_base", ptr %336, i32 0, i32 0
  %338 = getelementptr inbounds { double, i8 }, ptr %337, i32 0, i32 0
  %339 = extractvalue { double, i8 } %334, 0
  store double %339, ptr %338, align 8
  %340 = getelementptr inbounds { double, i8 }, ptr %337, i32 0, i32 1
  %341 = extractvalue { double, i8 } %334, 1
  store i8 %341, ptr %340, align 8
  br label %342

342:                                              ; preds = %335
  %343 = call noundef zeroext i1 @_ZNKSt8optionalIdE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(16) %38) #7
  br i1 %343, label %350, label %344

344:                                              ; preds = %342
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.10, ptr noundef @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef @.str.1, i32 noundef 103) #6
          to label %345 unwind label %346

345:                                              ; preds = %344
  unreachable

346:                                              ; preds = %344, %332, %326
  %347 = landingpad { ptr, i32 }
          cleanup
  %348 = extractvalue { ptr, i32 } %347, 0
  store ptr %348, ptr %14, align 8
  %349 = extractvalue { ptr, i32 } %347, 1
  store i32 %349, ptr %15, align 4
  br label %371

350:                                              ; preds = %342
  br label %351

351:                                              ; preds = %350
  br label %352

352:                                              ; preds = %351
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #7
  %353 = load ptr, ptr %30, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %39, ptr noundef nonnull align 8 dereferenceable(8) %353)
          to label %354 unwind label %362

354:                                              ; preds = %352
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #7
  %355 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalIdE5valueEv(ptr noundef nonnull align 8 dereferenceable(16) %38)
          to label %356 unwind label %366

356:                                              ; preds = %354
  %357 = load double, ptr %355, align 8, !tbaa !9
  %358 = load double, ptr %10, align 8, !tbaa !9
  invoke void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %40, double noundef %357, double noundef %358)
          to label %359 unwind label %366

359:                                              ; preds = %356
  %360 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE12emplace_backIJNS1_22TypeSpecificIdentifierINS1_4LaneEEENS1_6SRangeEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(16) %40)
          to label %361 unwind label %366

361:                                              ; preds = %359
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #7
  br label %442

362:                                              ; preds = %352
  %363 = landingpad { ptr, i32 }
          cleanup
  %364 = extractvalue { ptr, i32 } %363, 0
  store ptr %364, ptr %14, align 8
  %365 = extractvalue { ptr, i32 } %363, 1
  store i32 %365, ptr %15, align 4
  br label %370

366:                                              ; preds = %359, %356, %354
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %14, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  br label %370

370:                                              ; preds = %366, %362
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #7
  br label %371

371:                                              ; preds = %370, %346
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #7
  br label %447

372:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #7
  %373 = load ptr, ptr %30, align 8, !tbaa !5
  %374 = load ptr, ptr %19, align 8, !tbaa !5
  %375 = load i64, ptr %29, align 8, !tbaa !21
  %376 = sub i64 %375, 1
  %377 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %374, i64 noundef %376)
          to label %378 unwind label %409

378:                                              ; preds = %372
  %379 = load ptr, ptr %377, align 8, !tbaa !5
  %380 = invoke { double, i8 } @_ZN7maliput7routing14DetermineEdgeSERKNS_3api4LaneES4_(ptr noundef nonnull align 8 dereferenceable(8) %373, ptr noundef nonnull align 8 dereferenceable(8) %379)
          to label %381 unwind label %409

381:                                              ; preds = %378
  %382 = getelementptr inbounds %"class.std::optional", ptr %41, i32 0, i32 0
  %383 = getelementptr inbounds %"struct.std::_Optional_base", ptr %382, i32 0, i32 0
  %384 = getelementptr inbounds { double, i8 }, ptr %383, i32 0, i32 0
  %385 = extractvalue { double, i8 } %380, 0
  store double %385, ptr %384, align 8
  %386 = getelementptr inbounds { double, i8 }, ptr %383, i32 0, i32 1
  %387 = extractvalue { double, i8 } %380, 1
  store i8 %387, ptr %386, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #7
  %388 = load ptr, ptr %30, align 8, !tbaa !5
  %389 = load ptr, ptr %19, align 8, !tbaa !5
  %390 = load i64, ptr %29, align 8, !tbaa !21
  %391 = add i64 %390, 1
  %392 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %389, i64 noundef %391)
          to label %393 unwind label %413

393:                                              ; preds = %381
  %394 = load ptr, ptr %392, align 8, !tbaa !5
  %395 = invoke { double, i8 } @_ZN7maliput7routing14DetermineEdgeSERKNS_3api4LaneES4_(ptr noundef nonnull align 8 dereferenceable(8) %388, ptr noundef nonnull align 8 dereferenceable(8) %394)
          to label %396 unwind label %413

396:                                              ; preds = %393
  %397 = getelementptr inbounds %"class.std::optional", ptr %42, i32 0, i32 0
  %398 = getelementptr inbounds %"struct.std::_Optional_base", ptr %397, i32 0, i32 0
  %399 = getelementptr inbounds { double, i8 }, ptr %398, i32 0, i32 0
  %400 = extractvalue { double, i8 } %395, 0
  store double %400, ptr %399, align 8
  %401 = getelementptr inbounds { double, i8 }, ptr %398, i32 0, i32 1
  %402 = extractvalue { double, i8 } %395, 1
  store i8 %402, ptr %401, align 8
  br label %403

403:                                              ; preds = %396
  %404 = call noundef zeroext i1 @_ZNKSt8optionalIdEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %41) #7
  br i1 %404, label %405, label %407

405:                                              ; preds = %403
  %406 = call noundef zeroext i1 @_ZNKSt8optionalIdEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %42) #7
  br i1 %406, label %417, label %407

407:                                              ; preds = %405, %403
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.11, ptr noundef @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef @.str.1, i32 noundef 108) #6
          to label %408 unwind label %413

408:                                              ; preds = %407
  unreachable

409:                                              ; preds = %378, %372
  %410 = landingpad { ptr, i32 }
          cleanup
  %411 = extractvalue { ptr, i32 } %410, 0
  store ptr %411, ptr %14, align 8
  %412 = extractvalue { ptr, i32 } %410, 1
  store i32 %412, ptr %15, align 4
  br label %441

413:                                              ; preds = %407, %393, %381
  %414 = landingpad { ptr, i32 }
          cleanup
  %415 = extractvalue { ptr, i32 } %414, 0
  store ptr %415, ptr %14, align 8
  %416 = extractvalue { ptr, i32 } %414, 1
  store i32 %416, ptr %15, align 4
  br label %440

417:                                              ; preds = %405
  br label %418

418:                                              ; preds = %417
  br label %419

419:                                              ; preds = %418
  call void @llvm.lifetime.start.p0(i64 32, ptr %43) #7
  %420 = load ptr, ptr %30, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %43, ptr noundef nonnull align 8 dereferenceable(8) %420)
          to label %421 unwind label %431

421:                                              ; preds = %419
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #7
  %422 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalIdE5valueEv(ptr noundef nonnull align 8 dereferenceable(16) %41)
          to label %423 unwind label %435

423:                                              ; preds = %421
  %424 = load double, ptr %422, align 8, !tbaa !9
  %425 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalIdE5valueEv(ptr noundef nonnull align 8 dereferenceable(16) %42)
          to label %426 unwind label %435

426:                                              ; preds = %423
  %427 = load double, ptr %425, align 8, !tbaa !9
  invoke void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %44, double noundef %424, double noundef %427)
          to label %428 unwind label %435

428:                                              ; preds = %426
  %429 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE12emplace_backIJNS1_22TypeSpecificIdentifierINS1_4LaneEEENS1_6SRangeEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(16) %44)
          to label %430 unwind label %435

430:                                              ; preds = %428
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #7
  br label %442

431:                                              ; preds = %419
  %432 = landingpad { ptr, i32 }
          cleanup
  %433 = extractvalue { ptr, i32 } %432, 0
  store ptr %433, ptr %14, align 8
  %434 = extractvalue { ptr, i32 } %432, 1
  store i32 %434, ptr %15, align 4
  br label %439

435:                                              ; preds = %428, %426, %423, %421
  %436 = landingpad { ptr, i32 }
          cleanup
  %437 = extractvalue { ptr, i32 } %436, 0
  store ptr %437, ptr %14, align 8
  %438 = extractvalue { ptr, i32 } %436, 1
  store i32 %438, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  br label %439

439:                                              ; preds = %435, %431
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #7
  br label %440

440:                                              ; preds = %439, %413
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #7
  br label %441

441:                                              ; preds = %440, %409
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #7
  br label %447

442:                                              ; preds = %430, %361
  br label %443

443:                                              ; preds = %442, %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %444

444:                                              ; preds = %443
  %445 = load i64, ptr %29, align 8, !tbaa !21
  %446 = add i64 %445, 1
  store i64 %446, ptr %29, align 8, !tbaa !21
  br label %184, !llvm.loop !22

447:                                              ; preds = %441, %371, %315, %282, %236, %201
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %459

448:                                              ; preds = %189
  %449 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN7maliput3api10LaneSRouteESaIS2_EE12emplace_backIJRS_INS1_10LaneSRangeESaIS6_EEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %450 unwind label %116

450:                                              ; preds = %448
  store i32 0, ptr %18, align 4
  br label %451

451:                                              ; preds = %450, %146
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  %452 = load i32, ptr %18, align 4
  switch i32 %452, label %454 [
    i32 0, label %453
  ]

453:                                              ; preds = %451
  store i32 0, ptr %18, align 4
  br label %454

454:                                              ; preds = %453, %451
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %455 = load i32, ptr %18, align 4
  switch i32 %455, label %471 [
    i32 0, label %456
    i32 7, label %457
  ]

456:                                              ; preds = %454
  br label %457

457:                                              ; preds = %456, %454
  %458 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIPKN7maliput3api4LaneESaIS6_EES1_IS8_SaIS8_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br label %81

459:                                              ; preds = %447, %182, %116
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  br label %460

460:                                              ; preds = %459, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @_ZNSt6vectorIS_IPKN7maliput3api4LaneESaIS4_EESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
  br label %461

461:                                              ; preds = %460, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @_ZNSt6vectorIN7maliput3api10LaneSRouteESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %466

462:                                              ; preds = %83
  store i1 true, ptr %11, align 1
  store i32 1, ptr %18, align 4
  %463 = load i1, ptr %11, align 1
  br i1 %463, label %465, label %464

464:                                              ; preds = %462
  call void @_ZNSt6vectorIN7maliput3api10LaneSRouteESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %465

465:                                              ; preds = %464, %462
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  ret void

466:                                              ; preds = %461
  %467 = load ptr, ptr %14, align 8
  %468 = load i32, ptr %15, align 4
  %469 = insertvalue { ptr, i32 } poison, ptr %467, 0
  %470 = insertvalue { ptr, i32 } %469, i32 %468, 1
  resume { ptr, i32 } %470

471:                                              ; preds = %454
  unreachable
}

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

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

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

declare void @_ZN7maliput7routing17FindLaneSequencesEPKNS_3api4LaneES4_d(ptr dead_on_unwind writable sret(%"class.std::vector.0") align 8, ptr noundef, ptr noundef, double noundef) #4

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

declare void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #4

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE12emplace_backIJNS1_22TypeSpecificIdentifierINS1_4LaneEEENS1_6SRangeEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

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

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

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

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<maliput::api::LaneSRoute, std::allocator<maliput::api::LaneSRoute>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::LaneSRoute, std::allocator<maliput::api::LaneSRoute>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::LaneSRoute, std::allocator<maliput::api::LaneSRoute>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::LaneSRoute, std::allocator<maliput::api::LaneSRoute>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<const maliput::api::Lane *>, std::allocator<std::vector<const maliput::api::Lane *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<const maliput::api::Lane *>, std::allocator<std::vector<const maliput::api::Lane *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<const maliput::api::Lane *>, std::allocator<std::vector<const maliput::api::Lane *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<const maliput::api::Lane *>, std::allocator<std::vector<const maliput::api::Lane *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<maliput::api::LaneSRange, std::allocator<maliput::api::LaneSRange>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::LaneSRange, std::allocator<maliput::api::LaneSRange>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::LaneSRange, std::allocator<maliput::api::LaneSRange>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::LaneSRange, std::allocator<maliput::api::LaneSRange>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.maliput::api::LaneSRange" = type { %"class.maliput::api::TypeSpecificIdentifier", %"class.maliput::api::SRange" }
%"class.maliput::api::TypeSpecificIdentifier" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.maliput::api::SRange" = type { double, double }
%"class.std::allocator.12" = type { i8 }
%"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<double>::_Storage", i8 }>
%"union.std::_Optional_payload_base<double>::_Storage" = type { double }

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local { double, i8 } @_ZN7maliput7routing14DetermineEdgeSERKNS_3api4LaneES4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, double noundef %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.std::vector.10", align 8
  %9 = alloca %"class.std::vector.10", align 8
  %10 = alloca [1 x %"class.maliput::api::LaneSRange"], align 8
  %11 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %12 = alloca %"class.maliput::api::SRange", align 8
  %13 = alloca %"class.std::allocator.12", align 1
  %14 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %15 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %16 = alloca %"class.std::optional", align 8
  %17 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %18 = alloca %"class.maliput::api::SRange", align 8
  %19 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %20 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %21 = alloca %"class.std::optional", align 8
  %22 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %23 = alloca %"class.maliput::api::SRange", align 8
  %24 = alloca %"class.std::optional", align 8
  %25 = alloca %"class.std::optional", align 8
  %26 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %27 = alloca %"class.maliput::api::SRange", align 8
  %28 = load ptr, ptr %1, align 8, !tbaa !5
  %.not = icmp eq ptr %28, null
  br i1 %.not, label %29, label %30

29:                                               ; preds = %4
  tail call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef nonnull @.str.1, i32 noundef 70) #6
  unreachable

30:                                               ; preds = %4
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %.not75 = icmp eq ptr %31, null
  br i1 %.not75, label %32, label %33

32:                                               ; preds = %30
  tail call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef nonnull @.str.1, i32 noundef 71) #6
  unreachable

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %1, i64 8
  %35 = tail call noundef double @_ZNK7maliput3api12LanePosition1sEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  %36 = getelementptr inbounds i8, ptr %2, i64 8
  %37 = tail call noundef double @_ZNK7maliput3api12LanePosition1sEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  tail call void @_ZNSt6vectorIN7maliput3api10LaneSRouteESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  %38 = load ptr, ptr %1, align 8, !tbaa !5
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN7maliput7routing17FindLaneSequencesEPKNS_3api4LaneES4_d(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.0") align 8 %5, ptr noundef %38, ptr noundef %39, double noundef %3)
          to label %40 unwind label %48

40:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %41 = call ptr @_ZNSt6vectorIS_IPKN7maliput3api4LaneESaIS4_EESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  store ptr %41, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %42 = call ptr @_ZNSt6vectorIS_IPKN7maliput3api4LaneESaIS4_EESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  store ptr %42, ptr %7, align 8
  %43 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIPKN7maliput3api4LaneESaIS6_EES1_IS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %43, label %.lr.ph124, label %._crit_edge125

.lr.ph124:                                        ; preds = %40
  %44 = getelementptr inbounds i8, ptr %24, i64 8
  %45 = getelementptr inbounds i8, ptr %25, i64 8
  %46 = getelementptr inbounds i8, ptr %21, i64 8
  %47 = getelementptr inbounds i8, ptr %16, i64 8
  br label %50

._crit_edge125:                                   ; preds = %210, %40
  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 @_ZNSt6vectorIS_IPKN7maliput3api4LaneESaIS4_EESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  ret void

48:                                               ; preds = %33
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %215

50:                                               ; preds = %.lr.ph124, %210
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIPKN7maliput3api4LaneESaIS6_EES1_IS8_SaIS8_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %52 = call noundef zeroext i1 @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  br i1 %52, label %53, label %57

53:                                               ; preds = %50
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef nonnull @.str.1, i32 noundef 77) #6
          to label %54 unwind label %55

54:                                               ; preds = %53
  unreachable

55:                                               ; preds = %53
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %214

57:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %58 = call noundef i64 @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %59 = icmp eq i64 %58, 1
  br i1 %59, label %61, label %.preheader

.preheader:                                       ; preds = %57
  %60 = call noundef i64 @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %.not126 = icmp eq i64 %60, 0
  br i1 %.not126, label %._crit_edge, label %.lr.ph

61:                                               ; preds = %57
  %62 = load ptr, ptr %1, align 8, !tbaa !5
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = icmp eq ptr %62, %63
  br i1 %64, label %67, label %65

65:                                               ; preds = %61
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef nonnull @.str.1, i32 noundef 83) #6
          to label %66 unwind label %.loopexit.split-lp118

66:                                               ; preds = %65
  unreachable

.loopexit117:                                     ; preds = %._crit_edge
  %lpad.loopexit119 = landingpad { ptr, i32 }
          cleanup
  br label %213

.loopexit.split-lp118:                            ; preds = %65
  %lpad.loopexit.split-lp120 = landingpad { ptr, i32 }
          cleanup
  br label %213

67:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #7
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %62)
          to label %68 unwind label %74

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  invoke void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef %35, double noundef %37)
          to label %69 unwind label %76

69:                                               ; preds = %68
  invoke void @_ZN7maliput3api10LaneSRangeC2ERKNS0_22TypeSpecificIdentifierINS0_4LaneEEERKNS0_6SRangeE(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %70 unwind label %76

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  call void @_ZNSaIN7maliput3api10LaneSRangeEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  invoke void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr nonnull %10, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %71 unwind label %.loopexit.loopexit

71:                                               ; preds = %70
  call void @_ZNSt15__new_allocatorIN7maliput3api10LaneSRangeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #7
  %72 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN7maliput3api10LaneSRouteESaIS2_EE12emplace_backIJRKS_INS1_10LaneSRangeESaIS6_EEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %73 unwind label %80

73:                                               ; preds = %71
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  br label %210

74:                                               ; preds = %67
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %79

76:                                               ; preds = %69, %68
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.loopexit:                               ; preds = %70
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN7maliput3api10LaneSRangeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %76
  %.pn92 = phi { ptr, i32 } [ %77, %76 ], [ %78, %.loopexit.loopexit ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br label %79

79:                                               ; preds = %.loopexit, %74
  %.pn92.pn = phi { ptr, i32 } [ %.pn92, %.loopexit ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #7
  br label %82

80:                                               ; preds = %71
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br label %82

82:                                               ; preds = %80, %79
  %.pn95 = phi { ptr, i32 } [ %81, %80 ], [ %.pn92.pn, %79 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  br label %213

._crit_edge:                                      ; preds = %207, %.preheader
  %83 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN7maliput3api10LaneSRouteESaIS2_EE12emplace_backIJRS_INS1_10LaneSRangeESaIS6_EEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %210 unwind label %.loopexit117

.lr.ph:                                           ; preds = %.preheader, %207
  %.0122 = phi i64 [ %.pre-phi, %207 ], [ 0, %.preheader ]
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %.0122)
          to label %85 unwind label %.loopexit101

85:                                               ; preds = %.lr.ph
  %86 = load ptr, ptr %84, align 8, !tbaa !14
  %.not76 = icmp eq ptr %86, null
  br i1 %.not76, label %.invoke, label %89

.invoke:                                          ; preds = %85, %133, %94
  %87 = phi ptr [ @.str.6, %94 ], [ @.str.8, %133 ], [ @.str.5, %85 ]
  %88 = phi i32 [ 95, %94 ], [ 100, %133 ], [ 93, %85 ]
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull %87, ptr noundef nonnull @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef nonnull @.str.1, i32 noundef %88) #6
          to label %.cont unwind label %.loopexit.split-lp

.cont:                                            ; preds = %.invoke
  unreachable

.loopexit101:                                     ; preds = %.lr.ph
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %213

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

89:                                               ; preds = %85
  %90 = icmp eq i64 %.0122, 0
  br i1 %90, label %91, label %126

91:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #7
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %14, ptr noundef nonnull align 8 dereferenceable(8) %86)
          to label %92 unwind label %96

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #7
  %93 = load ptr, ptr %1, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %15, ptr noundef nonnull align 8 dereferenceable(8) %93)
          to label %94 unwind label %98

94:                                               ; preds = %92
  %95 = call noundef zeroext i1 @_ZNK7maliput3api22TypeSpecificIdentifierINS0_4LaneEEeqERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %15)
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  br i1 %95, label %101, label %.invoke

96:                                               ; preds = %91
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %100

98:                                               ; preds = %92
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  br label %100

100:                                              ; preds = %98, %96
  %.pn85 = phi { ptr, i32 } [ %99, %98 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  br label %213

101:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef 1)
          to label %103 unwind label %.loopexit112

103:                                              ; preds = %101
  %104 = load ptr, ptr %102, align 8, !tbaa !14
  %105 = invoke { double, i8 } @_ZN7maliput7routing14DetermineEdgeSERKNS_3api4LaneES4_(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull align 8 dereferenceable(8) %104)
          to label %106 unwind label %.loopexit112

106:                                              ; preds = %103
  %107 = extractvalue { double, i8 } %105, 0
  store double %107, ptr %16, align 8
  %108 = extractvalue { double, i8 } %105, 1
  store i8 %108, ptr %47, align 8
  %109 = call noundef zeroext i1 @_ZNKSt8optionalIdE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  br i1 %109, label %112, label %110

110:                                              ; preds = %106
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str.7, ptr noundef nonnull @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef nonnull @.str.1, i32 noundef 97) #6
          to label %111 unwind label %.loopexit.split-lp113

111:                                              ; preds = %110
  unreachable

.loopexit112:                                     ; preds = %101, %103
  %lpad.loopexit114 = landingpad { ptr, i32 }
          cleanup
  br label %125

.loopexit.split-lp113:                            ; preds = %110
  %lpad.loopexit.split-lp115 = landingpad { ptr, i32 }
          cleanup
  br label %125

112:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #7
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %17, ptr noundef nonnull align 8 dereferenceable(8) %86)
          to label %113 unwind label %120

113:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalIdE5valueEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %115 unwind label %122

115:                                              ; preds = %113
  %116 = load double, ptr %114, align 8, !tbaa !15
  invoke void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef %35, double noundef %116)
          to label %117 unwind label %122

117:                                              ; preds = %115
  %118 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE12emplace_backIJNS1_22TypeSpecificIdentifierINS1_4LaneEEENS1_6SRangeEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %119 unwind label %122

119:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  br label %207

120:                                              ; preds = %112
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %124

122:                                              ; preds = %117, %115, %113
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  br label %124

124:                                              ; preds = %122, %120
  %.pn87 = phi { ptr, i32 } [ %123, %122 ], [ %121, %120 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #7
  br label %125

125:                                              ; preds = %.loopexit112, %.loopexit.split-lp113, %124
  %.pn87.pn = phi { ptr, i32 } [ %.pn87, %124 ], [ %lpad.loopexit114, %.loopexit112 ], [ %lpad.loopexit.split-lp115, %.loopexit.split-lp113 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  br label %213

126:                                              ; preds = %89
  %127 = add nuw i64 %.0122, 1
  %128 = call noundef i64 @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %129 = icmp eq i64 %127, %128
  br i1 %129, label %130, label %166

130:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #7
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %19, ptr noundef nonnull align 8 dereferenceable(8) %86)
          to label %131 unwind label %135

131:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #7
  %132 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %20, ptr noundef nonnull align 8 dereferenceable(8) %132)
          to label %133 unwind label %137

133:                                              ; preds = %131
  %134 = call noundef zeroext i1 @_ZNK7maliput3api22TypeSpecificIdentifierINS0_4LaneEEeqERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %20)
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #7
  br i1 %134, label %140, label %.invoke

135:                                              ; preds = %130
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %139

137:                                              ; preds = %131
  %138 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  br label %139

139:                                              ; preds = %137, %135
  %.pn80 = phi { ptr, i32 } [ %138, %137 ], [ %136, %135 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #7
  br label %213

140:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #7
  %141 = add i64 %.0122, -1
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %141)
          to label %143 unwind label %.loopexit107

143:                                              ; preds = %140
  %144 = load ptr, ptr %142, align 8, !tbaa !14
  %145 = invoke { double, i8 } @_ZN7maliput7routing14DetermineEdgeSERKNS_3api4LaneES4_(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull align 8 dereferenceable(8) %144)
          to label %146 unwind label %.loopexit107

146:                                              ; preds = %143
  %147 = extractvalue { double, i8 } %145, 0
  store double %147, ptr %21, align 8
  %148 = extractvalue { double, i8 } %145, 1
  store i8 %148, ptr %46, align 8
  %149 = call noundef zeroext i1 @_ZNKSt8optionalIdE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  br i1 %149, label %152, label %150

150:                                              ; preds = %146
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str.10, ptr noundef nonnull @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef nonnull @.str.1, i32 noundef 103) #6
          to label %151 unwind label %.loopexit.split-lp108

151:                                              ; preds = %150
  unreachable

.loopexit107:                                     ; preds = %140, %143
  %lpad.loopexit109 = landingpad { ptr, i32 }
          cleanup
  br label %165

.loopexit.split-lp108:                            ; preds = %150
  %lpad.loopexit.split-lp110 = landingpad { ptr, i32 }
          cleanup
  br label %165

152:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #7
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %22, ptr noundef nonnull align 8 dereferenceable(8) %86)
          to label %153 unwind label %160

153:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #7
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalIdE5valueEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %155 unwind label %162

155:                                              ; preds = %153
  %156 = load double, ptr %154, align 8, !tbaa !15
  invoke void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef %156, double noundef %37)
          to label %157 unwind label %162

157:                                              ; preds = %155
  %158 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE12emplace_backIJNS1_22TypeSpecificIdentifierINS1_4LaneEEENS1_6SRangeEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %159 unwind label %162

159:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  br label %207

160:                                              ; preds = %152
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %164

162:                                              ; preds = %157, %155, %153
  %163 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  br label %164

164:                                              ; preds = %162, %160
  %.pn82 = phi { ptr, i32 } [ %163, %162 ], [ %161, %160 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #7
  br label %165

165:                                              ; preds = %.loopexit107, %.loopexit.split-lp108, %164
  %.pn82.pn = phi { ptr, i32 } [ %.pn82, %164 ], [ %lpad.loopexit109, %.loopexit107 ], [ %lpad.loopexit.split-lp110, %.loopexit.split-lp108 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  br label %213

166:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #7
  %167 = add i64 %.0122, -1
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %167)
          to label %169 unwind label %187

169:                                              ; preds = %166
  %170 = load ptr, ptr %168, align 8, !tbaa !14
  %171 = invoke { double, i8 } @_ZN7maliput7routing14DetermineEdgeSERKNS_3api4LaneES4_(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull align 8 dereferenceable(8) %170)
          to label %172 unwind label %187

172:                                              ; preds = %169
  %173 = extractvalue { double, i8 } %171, 0
  store double %173, ptr %24, align 8
  %174 = extractvalue { double, i8 } %171, 1
  store i8 %174, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #7
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %127)
          to label %176 unwind label %.loopexit102

176:                                              ; preds = %172
  %177 = load ptr, ptr %175, align 8, !tbaa !14
  %178 = invoke { double, i8 } @_ZN7maliput7routing14DetermineEdgeSERKNS_3api4LaneES4_(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull align 8 dereferenceable(8) %177)
          to label %179 unwind label %.loopexit102

179:                                              ; preds = %176
  %180 = extractvalue { double, i8 } %178, 0
  store double %180, ptr %25, align 8
  %181 = extractvalue { double, i8 } %178, 1
  store i8 %181, ptr %45, align 8
  %182 = call noundef zeroext i1 @_ZNKSt8optionalIdEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  br i1 %182, label %183, label %185

183:                                              ; preds = %179
  %184 = call noundef zeroext i1 @_ZNKSt8optionalIdEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  br i1 %184, label %189, label %185

185:                                              ; preds = %183, %179
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str.11, ptr noundef nonnull @__func__._ZN7maliput7routing17DeriveLaneSRoutesERKNS_3api12RoadPositionES4_d, ptr noundef nonnull @.str.1, i32 noundef 108) #6
          to label %186 unwind label %.loopexit.split-lp103

186:                                              ; preds = %185
  unreachable

187:                                              ; preds = %169, %166
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %206

.loopexit102:                                     ; preds = %172, %176
  %lpad.loopexit104 = landingpad { ptr, i32 }
          cleanup
  br label %205

.loopexit.split-lp103:                            ; preds = %185
  %lpad.loopexit.split-lp105 = landingpad { ptr, i32 }
          cleanup
  br label %205

189:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #7
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %26, ptr noundef nonnull align 8 dereferenceable(8) %86)
          to label %190 unwind label %200

190:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #7
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalIdE5valueEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %192 unwind label %202

192:                                              ; preds = %190
  %193 = load double, ptr %191, align 8, !tbaa !15
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalIdE5valueEv(ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %195 unwind label %202

195:                                              ; preds = %192
  %196 = load double, ptr %194, align 8, !tbaa !15
  invoke void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %27, double noundef %193, double noundef %196)
          to label %197 unwind label %202

197:                                              ; preds = %195
  %198 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE12emplace_backIJNS1_22TypeSpecificIdentifierINS1_4LaneEEENS1_6SRangeEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %199 unwind label %202

199:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  br label %207

200:                                              ; preds = %189
  %201 = landingpad { ptr, i32 }
          cleanup
  br label %204

202:                                              ; preds = %197, %195, %192, %190
  %203 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  br label %204

204:                                              ; preds = %202, %200
  %.pn = phi { ptr, i32 } [ %203, %202 ], [ %201, %200 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #7
  br label %205

205:                                              ; preds = %.loopexit102, %.loopexit.split-lp103, %204
  %.pn.pn = phi { ptr, i32 } [ %.pn, %204 ], [ %lpad.loopexit104, %.loopexit102 ], [ %lpad.loopexit.split-lp105, %.loopexit.split-lp103 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  br label %206

206:                                              ; preds = %205, %187
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %205 ], [ %188, %187 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  br label %213

207:                                              ; preds = %159, %199, %119
  %.pre-phi = phi i64 [ %127, %159 ], [ %127, %199 ], [ 1, %119 ]
  %208 = call noundef i64 @_ZNKSt6vectorIPKN7maliput3api4LaneESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %209 = icmp ult i64 %.pre-phi, %208
  br i1 %209, label %.lr.ph, label %._crit_edge, !llvm.loop !17

210:                                              ; preds = %._crit_edge, %73
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIPKN7maliput3api4LaneESaIS6_EES1_IS8_SaIS8_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %212 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIPKN7maliput3api4LaneESaIS6_EES1_IS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %212, label %50, label %._crit_edge125

213:                                              ; preds = %.loopexit101, %.loopexit.split-lp, %.loopexit117, %.loopexit.split-lp118, %100, %125, %139, %165, %206, %82
  %.pn95.pn = phi { ptr, i32 } [ %.pn95, %82 ], [ %.pn87.pn, %125 ], [ %.pn85, %100 ], [ %.pn82.pn, %165 ], [ %.pn80, %139 ], [ %.pn.pn.pn, %206 ], [ %lpad.loopexit119, %.loopexit117 ], [ %lpad.loopexit.split-lp120, %.loopexit.split-lp118 ], [ %lpad.loopexit, %.loopexit101 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  br label %214

214:                                              ; preds = %213, %55
  %.pn98 = phi { ptr, i32 } [ %56, %55 ], [ %.pn95.pn, %213 ]
  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 @_ZNSt6vectorIS_IPKN7maliput3api4LaneESaIS4_EESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %215

215:                                              ; preds = %214, %48
  %.pn98.pn = phi { ptr, i32 } [ %.pn98, %214 ], [ %49, %48 ]
  call void @_ZNSt6vectorIN7maliput3api10LaneSRouteESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  resume { ptr, i32 } %.pn98.pn
}

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

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

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

declare void @_ZN7maliput7routing17FindLaneSequencesEPKNS_3api4LaneES4_d(ptr dead_on_unwind writable sret(%"class.std::vector.0") align 8, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

declare void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #4

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE12emplace_backIJNS1_22TypeSpecificIdentifierINS1_4LaneEEENS1_6SRangeEEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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


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