; LLVM IR from maliput/maliput :: src/maliput/api (regions)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.maliput::api::LanePositionResult" = type { %"class.maliput::api::LanePosition", %"class.maliput::api::InertialPosition", double }
%"class.maliput::api::LanePosition" = type { %"class.maliput::math::Vector3" }
%"class.maliput::math::Vector3" = type { %"class.maliput::math::VectorBase" }
%"class.maliput::math::VectorBase" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x double] }
%"class.maliput::api::InertialPosition" = type { %"class.maliput::math::Vector3" }
%"class.maliput::api::SRange" = type { double, double }

@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@__func__._ZN7maliput3api10IsIncludedERKNS0_16InertialPositionERKSt6vectorINS0_10LaneSRangeESaIS5_EEPKNS0_12RoadGeometryE = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

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

declare noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex7GetLaneERKNS0_22TypeSpecificIdentifierINS0_4LaneEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK7maliput3api10LaneSRange7s_rangeEv(ptr noundef nonnull align 8 dereferenceable(48)) #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 uwtable
declare dso_local noundef double @_ZNK7maliput3api12RoadGeometry16linear_toleranceEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(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(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7maliput3api10IsIncludedERKNS0_16InertialPositionERKSt6vectorINS0_10LaneSRangeESaIS5_EEPKNS0_12RoadGeometryE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2) #2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"struct.maliput::api::LanePositionResult", align 8
  %19 = alloca double, align 8
  %20 = alloca %"class.maliput::api::SRange", align 8
  %21 = alloca %"class.maliput::api::SRange", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %3
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str, ptr noundef @__func__._ZN7maliput3api10IsIncludedERKNS0_16InertialPositionERKSt6vectorINS0_10LaneSRangeESaIS5_EEPKNS0_12RoadGeometryE, ptr noundef @.str.1, i32 noundef 153) #6
  unreachable

26:                                               ; preds = %22
  br label %27

27:                                               ; preds = %26
  br label %28

28:                                               ; preds = %27
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call noundef zeroext i1 @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #7
  br i1 %30, label %31, label %32

31:                                               ; preds = %28
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.12, ptr noundef @__func__._ZN7maliput3api10IsIncludedERKNS0_16InertialPositionERKSt6vectorINS0_10LaneSRangeESaIS5_EEPKNS0_12RoadGeometryE, ptr noundef @.str.1, i32 noundef 154) #6
  unreachable

32:                                               ; preds = %28
  br label %33

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %34, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = call ptr @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  %37 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = call ptr @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  %40 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %39, ptr %40, align 8
  br label %41

41:                                               ; preds = %54, %33
  %42 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %42, label %44, label %43

43:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %56

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %45 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  store ptr %45, ptr %11, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %44
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = call noundef zeroext i1 @_ZN7maliput3api12_GLOBAL__N_17IsValidERKNS0_10LaneSRangeEPKNS0_12RoadGeometryE(ptr noundef nonnull align 8 dereferenceable(48) %47, ptr noundef %48)
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.13, ptr noundef @__func__._ZN7maliput3api10IsIncludedERKNS0_16InertialPositionERKSt6vectorINS0_10LaneSRangeESaIS5_EEPKNS0_12RoadGeometryE, ptr noundef @.str.1, i32 noundef 156) #6
  unreachable

51:                                               ; preds = %46
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %54

54:                                               ; preds = %53
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br label %41

56:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = call noundef double @_ZNK7maliput3api12RoadGeometry16linear_toleranceEv(ptr noundef nonnull align 8 dereferenceable(8) %57)
  store double %58, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %59, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = call ptr @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #7
  %62 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %61, ptr %62, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = call ptr @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #7
  %65 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %64, ptr %65, align 8
  br label %66

66:                                               ; preds = %101, %56
  %67 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br i1 %67, label %69, label %68

68:                                               ; preds = %66
  store i32 10, ptr %16, align 4
  br label %103

69:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %70 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  store ptr %70, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %18) #7
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7maliput3api12RoadGeometry4ByIdEv(ptr noundef nonnull align 8 dereferenceable(8) %71)
  %73 = load ptr, ptr %17, align 8, !tbaa !5
  %74 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api10LaneSRange7lane_idEv(ptr noundef nonnull align 8 dereferenceable(48) %73)
  %75 = call noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex7GetLaneERKNS0_22TypeSpecificIdentifierINS0_4LaneEEE(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull align 8 dereferenceable(32) %74)
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7maliput3api4Lane14ToLanePositionERKNS0_16InertialPositionE(ptr dead_on_unwind writable sret(%"struct.maliput::api::LanePositionResult") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef nonnull align 8 dereferenceable(24) %76)
  %77 = getelementptr inbounds %"struct.maliput::api::LanePositionResult", ptr %18, i32 0, i32 2
  %78 = load double, ptr %77, align 8, !tbaa !11
  %79 = load double, ptr %12, align 8, !tbaa !9
  %80 = fcmp ole double %78, %79
  br i1 %80, label %81, label %94

81:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %82 = getelementptr inbounds %"struct.maliput::api::LanePositionResult", ptr %18, i32 0, i32 0
  %83 = call noundef double @_ZNK7maliput3api12LanePosition1sEv(ptr noundef nonnull align 8 dereferenceable(24) %82)
  store double %83, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  %85 = call { double, double } @_ZNK7maliput3api10LaneSRange7s_rangeEv(ptr noundef nonnull align 8 dereferenceable(48) %84)
  %86 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %87 = extractvalue { double, double } %85, 0
  store double %87, ptr %86, align 8
  %88 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %89 = extractvalue { double, double } %85, 1
  store double %89, ptr %88, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  %90 = load double, ptr %19, align 8, !tbaa !9
  %91 = load double, ptr %19, align 8, !tbaa !9
  call void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %21, double noundef %90, double noundef %91)
  %92 = load double, ptr %12, align 8, !tbaa !9
  %93 = call noundef zeroext i1 @_ZNK7maliput3api6SRange10IntersectsERKS1_d(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21, double noundef %92)
  store i1 %93, ptr %4, align 1
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %95

94:                                               ; preds = %69
  store i32 0, ptr %16, align 4
  br label %95

95:                                               ; preds = %94, %81
  call void @llvm.lifetime.end.p0(i64 56, ptr %18) #7
  %96 = load i32, ptr %16, align 4
  switch i32 %96, label %98 [
    i32 0, label %97
  ]

97:                                               ; preds = %95
  store i32 0, ptr %16, align 4
  br label %98

98:                                               ; preds = %97, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %99 = load i32, ptr %16, align 4
  switch i32 %99, label %103 [
    i32 0, label %100
  ]

100:                                              ; preds = %98
  br label %101

101:                                              ; preds = %100
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %66

103:                                              ; preds = %98, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %104 = load i32, ptr %16, align 4
  switch i32 %104, label %106 [
    i32 10, label %105
  ]

105:                                              ; preds = %103
  store i1 false, ptr %4, align 1
  store i32 1, ptr %16, align 4
  br label %106

106:                                              ; preds = %105, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  %107 = load i1, ptr %4, align 1
  ret i1 %107
}

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

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

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

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

declare void @_ZN7maliput3api6SRangeC1Edd(ptr, double, double)

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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, !10, i64 48}
!12 = !{!"_ZTSN7maliput3api18LanePositionResultE", !13, i64 0, !17, i64 24, !10, i64 48}
!13 = !{!"_ZTSN7maliput3api12LanePositionE", !14, i64 0}
!14 = !{!"_ZTSN7maliput4math7Vector3E", !15, i64 0}
!15 = !{!"_ZTSN7maliput4math10VectorBaseILm3ENS0_7Vector3EEE", !16, i64 0}
!16 = !{!"_ZTSSt5arrayIdLm3EE", !7, i64 0}
!17 = !{!"_ZTSN7maliput3api16InertialPositionE", !14, i64 0}


; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.maliput::api::LanePositionResult" = type { %"class.maliput::api::LanePosition", %"class.maliput::api::InertialPosition", double }
%"class.maliput::api::LanePosition" = type { %"class.maliput::math::Vector3" }
%"class.maliput::math::Vector3" = type { %"class.maliput::math::VectorBase" }
%"class.maliput::math::VectorBase" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x double] }
%"class.maliput::api::InertialPosition" = type { %"class.maliput::math::Vector3" }
%"class.maliput::api::SRange" = type { double, double }

@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@__func__._ZN7maliput3api10IsIncludedERKNS0_16InertialPositionERKSt6vectorINS0_10LaneSRangeESaIS5_EEPKNS0_12RoadGeometryE = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: noreturn
declare void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) 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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7maliput3api12RoadGeometry4ByIdEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

declare noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex7GetLaneERKNS0_22TypeSpecificIdentifierINS0_4LaneEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK7maliput3api10LaneSRange7s_rangeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_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 uwtable
declare dso_local noundef double @_ZNK7maliput3api12RoadGeometry16linear_toleranceEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7maliput3api10IsIncludedERKNS0_16InertialPositionERKSt6vectorINS0_10LaneSRangeESaIS5_EEPKNS0_12RoadGeometryE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"struct.maliput::api::LanePositionResult", align 8
  %9 = alloca %"class.maliput::api::SRange", align 8
  %10 = alloca %"class.maliput::api::SRange", align 8
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %11, label %12

11:                                               ; preds = %3
  tail call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN7maliput3api10IsIncludedERKNS0_16InertialPositionERKSt6vectorINS0_10LaneSRangeESaIS5_EEPKNS0_12RoadGeometryE, ptr noundef nonnull @.str.1, i32 noundef 153) #6
  unreachable

12:                                               ; preds = %3
  %13 = tail call noundef zeroext i1 @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  br i1 %13, label %14, label %15

14:                                               ; preds = %12
  tail call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str.12, ptr noundef nonnull @__func__._ZN7maliput3api10IsIncludedERKNS0_16InertialPositionERKSt6vectorINS0_10LaneSRangeESaIS5_EEPKNS0_12RoadGeometryE, ptr noundef nonnull @.str.1, i32 noundef 154) #6
  unreachable

15:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %16 = tail call ptr @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %16, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %17 = tail call ptr @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %17, ptr %5, align 8
  %18 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br i1 %18, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %27, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %19 = call noundef double @_ZNK7maliput3api12RoadGeometry16linear_toleranceEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %20 = call ptr @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %20, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %21 = call ptr @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %21, ptr %7, align 8
  %22 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %22, label %.lr.ph33, label %.loopexit

.lr.ph33:                                         ; preds = %._crit_edge
  %23 = getelementptr inbounds i8, ptr %8, i64 48
  br label %30

.lr.ph:                                           ; preds = %15, %27
  %24 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  %25 = call noundef zeroext i1 @_ZN7maliput3api12_GLOBAL__N_17IsValidERKNS0_10LaneSRangeEPKNS0_12RoadGeometryE(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull %2)
  br i1 %25, label %27, label %26

26:                                               ; preds = %.lr.ph
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str.13, ptr noundef nonnull @__func__._ZN7maliput3api10IsIncludedERKNS0_16InertialPositionERKSt6vectorINS0_10LaneSRangeESaIS5_EEPKNS0_12RoadGeometryE, ptr noundef nonnull @.str.1, i32 noundef 156) #6
  unreachable

27:                                               ; preds = %.lr.ph
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  %29 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br i1 %29, label %.lr.ph, label %._crit_edge

30:                                               ; preds = %.lr.ph33, %44
  %31 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #7
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7maliput3api12RoadGeometry4ByIdEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %33 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api10LaneSRange7lane_idEv(ptr noundef nonnull align 8 dereferenceable(48) %31)
  %34 = call noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex7GetLaneERKNS0_22TypeSpecificIdentifierINS0_4LaneEEE(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(32) %33)
  call void @_ZNK7maliput3api4Lane14ToLanePositionERKNS0_16InertialPositionE(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::api::LanePositionResult") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(24) %0)
  %35 = load double, ptr %23, align 8, !tbaa !5
  %36 = fcmp ugt double %35, %19
  br i1 %36, label %44, label %37

37:                                               ; preds = %30
  %38 = call noundef double @_ZNK7maliput3api12LanePosition1sEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  %39 = call { double, double } @_ZNK7maliput3api10LaneSRange7s_rangeEv(ptr noundef nonnull align 8 dereferenceable(48) %31)
  %40 = extractvalue { double, double } %39, 0
  store double %40, ptr %9, align 8
  %41 = getelementptr inbounds i8, ptr %9, i64 8
  %42 = extractvalue { double, double } %39, 1
  store double %42, ptr %41, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  call void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef %38, double noundef %38)
  %43 = call noundef zeroext i1 @_ZNK7maliput3api6SRange10IntersectsERKS1_d(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef %19)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #7
  br label %.loopexit

44:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #7
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7maliput3api10LaneSRangeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %46, label %30, label %.loopexit

.loopexit:                                        ; preds = %44, %._crit_edge, %37
  %47 = phi i1 [ true, %37 ], [ false, %._crit_edge ], [ false, %44 ]
  %.2 = phi i1 [ %43, %37 ], [ undef, %._crit_edge ], [ undef, %44 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %spec.select = and i1 %47, %.2
  ret i1 %spec.select
}

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

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

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

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

declare void @_ZN7maliput3api6SRangeC1Edd(ptr, double, double) local_unnamed_addr

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


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