; LLVM IR from maliput/maliput :: src/maliput/test_utilities/mock.ll (ZN7maliput3api4test16CreateLaneSRouteEv)

; 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.maliput::api::LaneSRoute" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.0" = type { i8 }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput3api4test16CreateLaneSRouteEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::LaneSRoute") align 8 %0) #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::initializer_list", align 8
  %5 = alloca [2 x %"class.maliput::api::LaneSRange"], align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator.0", align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.maliput::api::SRange", align 8
  %13 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator.0", align 1
  %16 = alloca %"class.maliput::api::SRange", align 8
  %17 = alloca i1, align 1
  %18 = alloca %"class.std::allocator", align 1
  store ptr %0, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 96, ptr %5) #5
  store i1 true, ptr %17, align 1
  store ptr %5, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %19 unwind label %43

19:                                               ; preds = %1
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef %8)
          to label %20 unwind label %47

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  invoke void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef 0.000000e+00, double noundef 9.000000e+00)
          to label %21 unwind label %51

21:                                               ; preds = %20
  invoke void @_ZN7maliput3api10LaneSRangeC2ERKNS0_22TypeSpecificIdentifierINS0_4LaneEEERKNS0_6SRangeE(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %22 unwind label %51

22:                                               ; preds = %21
  %23 = getelementptr inbounds %"class.maliput::api::LaneSRange", ptr %5, i64 1
  store ptr %23, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %24 unwind label %55

24:                                               ; preds = %22
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef %14)
          to label %25 unwind label %59

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  invoke void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef 1.700000e+01, double noundef 1.200000e+01)
          to label %26 unwind label %63

26:                                               ; preds = %25
  invoke void @_ZN7maliput3api10LaneSRangeC2ERKNS0_22TypeSpecificIdentifierINS0_4LaneEEERKNS0_6SRangeE(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %27 unwind label %63

27:                                               ; preds = %26
  store i1 false, ptr %17, align 1
  %28 = getelementptr inbounds %"class.std::initializer_list", ptr %4, i32 0, i32 0
  store ptr %5, ptr %28, align 8, !tbaa !5
  %29 = getelementptr inbounds %"class.std::initializer_list", ptr %4, i32 0, i32 1
  store i64 2, ptr %29, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  call void @_ZNSaIN7maliput3api10LaneSRangeEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  %30 = getelementptr inbounds { ptr, i64 }, ptr %4, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8
  %32 = getelementptr inbounds { ptr, i64 }, ptr %4, i32 0, i32 1
  %33 = load i64, ptr %32, align 8
  invoke void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr %31, i64 %33, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %34 unwind label %67

34:                                               ; preds = %27
  invoke void @_ZN7maliput3api10LaneSRouteC2ERKSt6vectorINS0_10LaneSRangeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %35 unwind label %71

35:                                               ; preds = %34
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @_ZNSt15__new_allocatorIN7maliput3api10LaneSRangeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  %36 = getelementptr inbounds [2 x %"class.maliput::api::LaneSRange"], ptr %5, i32 0, i32 0
  %37 = getelementptr inbounds %"class.maliput::api::LaneSRange", ptr %36, i64 2
  br label %38

38:                                               ; preds = %38, %35
  %39 = phi ptr [ %37, %35 ], [ %40, %38 ]
  %40 = getelementptr inbounds %"class.maliput::api::LaneSRange", ptr %39, i64 -1
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %40) #5
  %41 = icmp eq ptr %40, %36
  br i1 %41, label %42, label %38

42:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
  ret void

43:                                               ; preds = %1
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %10, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %11, align 4
  br label %88

47:                                               ; preds = %19
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %10, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %11, align 4
  br label %87

51:                                               ; preds = %21, %20
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %10, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %11, align 4
  br label %86

55:                                               ; preds = %22
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %10, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %11, align 4
  br label %85

59:                                               ; preds = %24
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %10, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %11, align 4
  br label %84

63:                                               ; preds = %26, %25
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %10, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %11, align 4
  br label %83

67:                                               ; preds = %27
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %10, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %11, align 4
  br label %75

71:                                               ; preds = %34
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %10, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %11, align 4
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  br label %75

75:                                               ; preds = %71, %67
  call void @_ZNSt15__new_allocatorIN7maliput3api10LaneSRangeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  %76 = getelementptr inbounds [2 x %"class.maliput::api::LaneSRange"], ptr %5, i32 0, i32 0
  %77 = getelementptr inbounds %"class.maliput::api::LaneSRange", ptr %76, i64 2
  br label %78

78:                                               ; preds = %78, %75
  %79 = phi ptr [ %77, %75 ], [ %80, %78 ]
  %80 = getelementptr inbounds %"class.maliput::api::LaneSRange", ptr %79, i64 -1
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %80) #5
  %81 = icmp eq ptr %80, %76
  br i1 %81, label %82, label %78

82:                                               ; preds = %78
  br label %83

83:                                               ; preds = %82, %63
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br label %84

84:                                               ; preds = %83, %59
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %85

85:                                               ; preds = %84, %55
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  br label %86

86:                                               ; preds = %85, %51
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  br label %87

87:                                               ; preds = %86, %47
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  br label %88

88:                                               ; preds = %87, %43
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  %89 = load i1, ptr %17, align 1
  br i1 %89, label %90, label %98

90:                                               ; preds = %88
  %91 = load ptr, ptr %6, align 8
  %92 = icmp eq ptr %5, %91
  br i1 %92, label %97, label %93

93:                                               ; preds = %93, %90
  %94 = phi ptr [ %91, %90 ], [ %95, %93 ]
  %95 = getelementptr inbounds %"class.maliput::api::LaneSRange", ptr %94, i64 -1
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %95) #5
  %96 = icmp eq ptr %95, %5
  br i1 %96, label %97, label %93

97:                                               ; preds = %93, %90
  br label %98

98:                                               ; preds = %97, %88
  call void @llvm.lifetime.end.p0(i64 96, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
  br label %99

99:                                               ; preds = %98
  %100 = load ptr, ptr %10, align 8
  %101 = load i32, ptr %11, align 4
  %102 = insertvalue { ptr, i32 } poison, ptr %100, 0
  %103 = insertvalue { ptr, i32 } %102, i32 %101, 1
  resume { ptr, i32 } %103
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; 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 #2 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 uwtable
declare dso_local void @_ZN7maliput3api10LaneSRouteC2ERKSt6vectorINS0_10LaneSRangeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) 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 #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIN7maliput3api10LaneSRangeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

; 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !7, i64 0}
!6 = !{!"_ZTSSt16initializer_listIN7maliput3api10LaneSRangeEE", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !10, 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.maliput::api::LaneSRoute" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.0" = type { i8 }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput3api4test16CreateLaneSRouteEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::LaneSRoute") align 8 %0) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca [2 x %"class.maliput::api::LaneSRange"], align 8
  %4 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator.0", align 1
  %7 = alloca %"class.maliput::api::SRange", align 8
  %8 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator.0", align 1
  %11 = alloca %"class.maliput::api::SRange", align 8
  %12 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %13 unwind label %.thread

13:                                               ; preds = %1
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull %5)
          to label %14 unwind label %26

14:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  invoke void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef 0.000000e+00, double noundef 9.000000e+00)
          to label %15 unwind label %28

15:                                               ; preds = %14
  invoke void @_ZN7maliput3api10LaneSRangeC2ERKNS0_22TypeSpecificIdentifierINS0_4LaneEEERKNS0_6SRangeE(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %16 unwind label %28

16:                                               ; preds = %15
  %17 = getelementptr inbounds i8, ptr %3, i64 48
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %18 unwind label %30

18:                                               ; preds = %16
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull %9)
          to label %19 unwind label %32

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  invoke void @_ZN7maliput3api6SRangeC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef 1.700000e+01, double noundef 1.200000e+01)
          to label %20 unwind label %34

20:                                               ; preds = %19
  invoke void @_ZN7maliput3api10LaneSRangeC2ERKNS0_22TypeSpecificIdentifierINS0_4LaneEEERKNS0_6SRangeE(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %21 unwind label %34

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #5
  call void @_ZNSaIN7maliput3api10LaneSRangeEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  invoke void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr nonnull %3, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %22 unwind label %36

22:                                               ; preds = %21
  invoke void @_ZN7maliput3api10LaneSRouteC2ERKSt6vectorINS0_10LaneSRangeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %23 unwind label %38

23:                                               ; preds = %22
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @_ZNSt15__new_allocatorIN7maliput3api10LaneSRangeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  %24 = getelementptr inbounds i8, ptr %3, i64 48
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #5
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  ret void

.thread:                                          ; preds = %1
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %.loopexit

26:                                               ; preds = %13
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %45

28:                                               ; preds = %15, %14
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %44

30:                                               ; preds = %16
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %43

32:                                               ; preds = %18
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %42

34:                                               ; preds = %20, %19
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit33

36:                                               ; preds = %21
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit33.loopexit

38:                                               ; preds = %22
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  br label %.loopexit33.loopexit

.loopexit33.loopexit:                             ; preds = %38, %36
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %37, %36 ]
  call void @_ZNSt15__new_allocatorIN7maliput3api10LaneSRangeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  %40 = getelementptr inbounds i8, ptr %3, i64 48
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %40) #5
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #5
  br label %.loopexit33

.loopexit33:                                      ; preds = %.loopexit33.loopexit, %34
  %.pn.pn = phi { ptr, i32 } [ %35, %34 ], [ %.pn, %.loopexit33.loopexit ]
  %41 = phi i1 [ false, %34 ], [ true, %.loopexit33.loopexit ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  br label %42

42:                                               ; preds = %.loopexit33, %32
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.loopexit33 ], [ %33, %32 ]
  %.1 = phi i1 [ %41, %.loopexit33 ], [ false, %32 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  br label %43

43:                                               ; preds = %42, %30
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %42 ], [ %31, %30 ]
  %.2 = phi i1 [ %.1, %42 ], [ false, %30 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  br label %44

44:                                               ; preds = %43, %28
  %.017 = phi ptr [ %17, %43 ], [ %3, %28 ]
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %43 ], [ %29, %28 ]
  %.3 = phi i1 [ %.2, %43 ], [ false, %28 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br label %45

45:                                               ; preds = %26, %44
  %.118 = phi ptr [ %.017, %44 ], [ %3, %26 ]
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %44 ], [ %27, %26 ]
  %.4 = phi i1 [ %.3, %44 ], [ false, %26 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  %46 = icmp eq ptr %3, %.118
  %or.cond = select i1 %.4, i1 true, i1 %46
  br i1 %or.cond, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %45, %.preheader
  %47 = phi ptr [ %48, %.preheader ], [ %.118, %45 ]
  %48 = getelementptr inbounds i8, ptr %47, i64 -48
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %48) #5
  %49 = icmp eq ptr %48, %3
  br i1 %49, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.thread, %45
  %.pn.pn.pn.pn.pn.pn.pn32 = phi { ptr, i32 } [ %25, %.thread ], [ %.pn.pn.pn.pn.pn.pn, %45 ], [ %.pn.pn.pn.pn.pn.pn, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn32
}

; 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 nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

; 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 #2 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 uwtable
declare dso_local void @_ZN7maliput3api10LaneSRouteC2ERKSt6vectorINS0_10LaneSRangeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) 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 #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIN7maliput3api10LaneSRangeEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

; 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass