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

; 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<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.maliput::api::TypeSpecificIdentifier" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<const maliput::api::Lane *, std::allocator<const maliput::api::Lane *>>::_Vector_impl" }
%"struct.std::_Vector_base<const maliput::api::Lane *, std::allocator<const maliput::api::Lane *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const maliput::api::Lane *, std::allocator<const maliput::api::Lane *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const maliput::api::Lane *, std::allocator<const maliput::api::Lane *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list.8" = type { ptr, i64 }
%"class.std::allocator.5" = type { i8 }
%"class.std::allocator" = type { i8 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7routing17FindLaneSequencesEPKNS_3api4LaneES4_d(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef %1, ptr noundef %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 %"class.maliput::api::TypeSpecificIdentifier", align 8
  %10 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::initializer_list", align 8
  %14 = alloca [1 x %"class.std::vector.3"], align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::initializer_list.8", align 8
  %17 = alloca [1 x ptr], align 8
  %18 = alloca %"class.std::allocator.5", align 1
  %19 = alloca i1, align 1
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca %"class.std::vector.3", align 8
  %22 = alloca %"class.std::initializer_list.8", align 8
  %23 = alloca [1 x ptr], align 8
  %24 = alloca %"class.std::allocator.5", align 1
  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
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %25)
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #5
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %27 unwind label %53

27:                                               ; preds = %4
  %28 = invoke noundef zeroext i1 @_ZNK7maliput3api22TypeSpecificIdentifierINS0_4LaneEEeqERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %29 unwind label %57

29:                                               ; preds = %27
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  br i1 %28, label %30, label %88

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  store i1 true, ptr %19, align 1
  store ptr %14, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %31, ptr %17, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.std::initializer_list.8", ptr %16, i32 0, i32 0
  store ptr %17, ptr %32, align 8, !tbaa !11
  %33 = getelementptr inbounds %"class.std::initializer_list.8", ptr %16, i32 0, i32 1
  store i64 1, ptr %33, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  call void @_ZNSaIPKN7maliput3api4LaneEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  %34 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8
  %36 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %37 = load i64, ptr %36, align 8
  invoke void @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EEC2ESt16initializer_listIS4_ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr %35, i64 %37, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %38 unwind label %62

38:                                               ; preds = %30
  store i1 false, ptr %19, align 1
  %39 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 0
  store ptr %14, ptr %39, align 8, !tbaa !15
  %40 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 1
  store i64 1, ptr %40, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  call void @_ZNSaISt6vectorIPKN7maliput3api4LaneESaIS4_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  %41 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8
  %43 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %44 = load i64, ptr %43, align 8
  invoke void @_ZNSt6vectorIS_IPKN7maliput3api4LaneESaIS4_EESaIS6_EEC2ESt16initializer_listIS6_ERKS7_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %42, i64 %44, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %45 unwind label %66

45:                                               ; preds = %38
  call void @_ZNSt15__new_allocatorISt6vectorIPKN7maliput3api4LaneESaIS5_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  %46 = getelementptr inbounds [1 x %"class.std::vector.3"], ptr %14, i32 0, i32 0
  %47 = getelementptr inbounds %"class.std::vector.3", ptr %46, i64 1
  br label %48

48:                                               ; preds = %48, %45
  %49 = phi ptr [ %47, %45 ], [ %50, %48 ]
  %50 = getelementptr inbounds %"class.std::vector.3", ptr %49, i64 -1
  call void @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #5
  %51 = icmp eq ptr %50, %46
  br i1 %51, label %52, label %48

52:                                               ; preds = %48
  call void @_ZNSt15__new_allocatorIPKN7maliput3api4LaneEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  br label %110

53:                                               ; preds = %4
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %11, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %12, align 4
  br label %61

57:                                               ; preds = %27
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %11, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %12, align 4
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  br label %61

61:                                               ; preds = %57, %53
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  br label %111

62:                                               ; preds = %30
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %11, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %12, align 4
  br label %77

66:                                               ; preds = %38
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %11, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %12, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIPKN7maliput3api4LaneESaIS5_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  %70 = getelementptr inbounds [1 x %"class.std::vector.3"], ptr %14, i32 0, i32 0
  %71 = getelementptr inbounds %"class.std::vector.3", ptr %70, i64 1
  br label %72

72:                                               ; preds = %72, %66
  %73 = phi ptr [ %71, %66 ], [ %74, %72 ]
  %74 = getelementptr inbounds %"class.std::vector.3", ptr %73, i64 -1
  call void @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %74) #5
  %75 = icmp eq ptr %74, %70
  br i1 %75, label %76, label %72

76:                                               ; preds = %72
  br label %77

77:                                               ; preds = %76, %62
  call void @_ZNSt15__new_allocatorIPKN7maliput3api4LaneEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  %78 = load i1, ptr %19, align 1
  br i1 %78, label %79, label %87

79:                                               ; preds = %77
  %80 = load ptr, ptr %15, align 8
  %81 = icmp eq ptr %14, %80
  br i1 %81, label %86, label %82

82:                                               ; preds = %82, %79
  %83 = phi ptr [ %80, %79 ], [ %84, %82 ]
  %84 = getelementptr inbounds %"class.std::vector.3", ptr %83, i64 -1
  call void @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %84) #5
  %85 = icmp eq ptr %84, %14
  br i1 %85, label %86, label %82

86:                                               ; preds = %82, %79
  br label %87

87:                                               ; preds = %86, %77
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  br label %111

88:                                               ; preds = %29
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %91, ptr %23, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.std::initializer_list.8", ptr %22, i32 0, i32 0
  store ptr %23, ptr %92, align 8, !tbaa !11
  %93 = getelementptr inbounds %"class.std::initializer_list.8", ptr %22, i32 0, i32 1
  store i64 1, ptr %93, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #5
  call void @_ZNSaIPKN7maliput3api4LaneEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  %94 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8
  %96 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %97 = load i64, ptr %96, align 8
  invoke void @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EEC2ESt16initializer_listIS4_ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr %95, i64 %97, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %98 unwind label %101

98:                                               ; preds = %88
  %99 = load double, ptr %8, align 8, !tbaa !9
  invoke void @_ZN7maliput7routing12_GLOBAL__N_123FindLaneSequencesHelperEPKNS_3api4LaneES5_RKSt6vectorIS5_SaIS5_EEdd(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %0, ptr noundef %89, ptr noundef %90, ptr noundef nonnull align 8 dereferenceable(24) %21, double noundef %99, double noundef 0.000000e+00)
          to label %100 unwind label %105

100:                                              ; preds = %98
  call void @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  call void @_ZNSt15__new_allocatorIPKN7maliput3api4LaneEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  br label %110

101:                                              ; preds = %88
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %11, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %12, align 4
  br label %109

105:                                              ; preds = %98
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %11, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %12, align 4
  call void @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  br label %109

109:                                              ; preds = %105, %101
  call void @_ZNSt15__new_allocatorIPKN7maliput3api4LaneEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  br label %111

110:                                              ; preds = %100, %52
  ret void

111:                                              ; preds = %109, %87, %61
  %112 = load ptr, ptr %11, align 8
  %113 = load i32, ptr %12, align 4
  %114 = insertvalue { ptr, i32 } poison, ptr %112, 0
  %115 = insertvalue { ptr, i32 } %114, i32 %113, 1
  resume { ptr, i32 } %115
}

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

declare void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EEC2ESt16initializer_listIS4_ERKS5_(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 @_ZNSaISt6vectorIPKN7maliput3api4LaneESaIS4_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IPKN7maliput3api4LaneESaIS4_EESaIS6_EEC2ESt16initializer_listIS6_ERKS7_(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 @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7maliput7routing12_GLOBAL__N_123FindLaneSequencesHelperEPKNS_3api4LaneES5_RKSt6vectorIS5_SaIS5_EEdd(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIPKN7maliput3api4LaneESaIS5_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"_ZTSSt16initializer_listIPKN7maliput3api4LaneEE", !6, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSSt16initializer_listISt6vectorIPKN7maliput3api4LaneESaIS5_EEE", !6, i64 0, !13, i64 8}
!17 = !{!16, !13, i64 8}


; 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<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.maliput::api::TypeSpecificIdentifier" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<const maliput::api::Lane *, std::allocator<const maliput::api::Lane *>>::_Vector_impl" }
%"struct.std::_Vector_base<const maliput::api::Lane *, std::allocator<const maliput::api::Lane *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const maliput::api::Lane *, std::allocator<const maliput::api::Lane *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const maliput::api::Lane *, std::allocator<const maliput::api::Lane *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.5" = type { i8 }
%"class.std::allocator" = type { i8 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7routing17FindLaneSequencesEPKNS_3api4LaneES4_d(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull %1, ptr noundef %2, double noundef %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %6 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %7 = alloca [1 x %"class.std::vector.3"], align 8
  %8 = alloca [1 x ptr], align 8
  %9 = alloca %"class.std::allocator.5", align 1
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::vector.3", align 8
  %12 = alloca [1 x ptr], align 8
  %13 = alloca %"class.std::allocator.5", align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  call void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %14 unwind label %19

14:                                               ; preds = %4
  %15 = call noundef zeroext i1 @_ZNK7maliput3api22TypeSpecificIdentifierINS0_4LaneEEeqERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %6)
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br i1 %15, label %16, label %24

16:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  store ptr %1, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
  call void @_ZNSaIPKN7maliput3api4LaneEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  invoke void @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EEC2ESt16initializer_listIS4_ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr nonnull %8, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %17 unwind label %21

17:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  call void @_ZNSaISt6vectorIPKN7maliput3api4LaneESaIS4_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  invoke void @_ZNSt6vectorIS_IPKN7maliput3api4LaneESaIS4_EESaIS6_EEC2ESt16initializer_listIS6_ERKS7_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nonnull %7, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %18 unwind label %.loopexit.loopexit

18:                                               ; preds = %17
  call void @_ZNSt15__new_allocatorISt6vectorIPKN7maliput3api4LaneESaIS5_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @_ZNSt15__new_allocatorIPKN7maliput3api4LaneEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %32

19:                                               ; preds = %4
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %33

21:                                               ; preds = %16
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.loopexit:                               ; preds = %17
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIPKN7maliput3api4LaneESaIS5_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %21
  %.pn21 = phi { ptr, i32 } [ %22, %21 ], [ %23, %.loopexit.loopexit ]
  call void @_ZNSt15__new_allocatorIPKN7maliput3api4LaneEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %33

24:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  store ptr %1, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #5
  call void @_ZNSaIPKN7maliput3api4LaneEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EEC2ESt16initializer_listIS4_ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr nonnull %12, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %25 unwind label %27

25:                                               ; preds = %24
  invoke void @_ZN7maliput7routing12_GLOBAL__N_123FindLaneSequencesHelperEPKNS_3api4LaneES5_RKSt6vectorIS5_SaIS5_EEdd(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull align 8 dereferenceable(24) %11, double noundef %3, double noundef 0.000000e+00)
          to label %26 unwind label %29

26:                                               ; preds = %25
  call void @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @_ZNSt15__new_allocatorIPKN7maliput3api4LaneEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  br label %32

27:                                               ; preds = %24
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %31

29:                                               ; preds = %25
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  br label %31

31:                                               ; preds = %29, %27
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %28, %27 ]
  call void @_ZNSt15__new_allocatorIPKN7maliput3api4LaneEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  br label %33

32:                                               ; preds = %26, %18
  ret void

33:                                               ; preds = %31, %.loopexit, %19
  %.pn21.pn = phi { ptr, i32 } [ %.pn21, %.loopexit ], [ %.pn, %31 ], [ %20, %19 ]
  resume { ptr, i32 } %.pn21.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EEC2ESt16initializer_listIS4_ERKS5_(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 @_ZNSaISt6vectorIPKN7maliput3api4LaneESaIS4_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IPKN7maliput3api4LaneESaIS4_EESaIS6_EEC2ESt16initializer_listIS6_ERKS7_(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 @_ZNSt6vectorIPKN7maliput3api4LaneESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7maliput7routing12_GLOBAL__N_123FindLaneSequencesHelperEPKNS_3api4LaneES5_RKSt6vectorIS5_SaIS5_EEdd(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef) local_unnamed_addr #0

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass