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

; 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::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.maliput::api::rules::DirectionUsageRule::State" = type { %"class.maliput::api::TypeSpecificIdentifier.54", i32, i32 }
%"class.maliput::api::TypeSpecificIdentifier.54" = type { %"class.std::__cxx11::basic_string" }
%"class.maliput::api::rules::DirectionUsageRule" = type { %"class.maliput::api::TypeSpecificIdentifier.55", %"class.maliput::api::LaneSRange", %"class.std::unordered_map.56" }
%"class.maliput::api::TypeSpecificIdentifier.55" = type { %"class.std::__cxx11::basic_string" }
%"class.std::unordered_map.56" = type { %"class.std::_Hashtable.57" }
%"class.std::_Hashtable.57" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::allocator.0" = type { i8 }
%"class.std::vector.75" = type { %"struct.std::_Vector_base.76" }
%"struct.std::_Vector_base.76" = type { %"struct.std::_Vector_base<maliput::api::rules::DirectionUsageRule::State, std::allocator<maliput::api::rules::DirectionUsageRule::State>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::rules::DirectionUsageRule::State, std::allocator<maliput::api::rules::DirectionUsageRule::State>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::rules::DirectionUsageRule::State, std::allocator<maliput::api::rules::DirectionUsageRule::State>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::rules::DirectionUsageRule::State, std::allocator<maliput::api::rules::DirectionUsageRule::State>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list.80" = type { ptr, i64 }
%"class.std::allocator.77" = type { i8 }

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api4test16CreateLaneSRangeEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::LaneSRange") align 8) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api4test29CreateDirectionUsageRuleStateEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::rules::DirectionUsageRule::State") align 8) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput3api4test24CreateDirectionUsageRuleEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::rules::DirectionUsageRule") align 8 %0) #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.maliput::api::TypeSpecificIdentifier.55", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator.0", align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.maliput::api::LaneSRange", align 8
  %9 = alloca %"class.std::vector.75", align 8
  %10 = alloca %"class.std::initializer_list.80", align 8
  %11 = alloca [1 x %"class.maliput::api::rules::DirectionUsageRule::State"], align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.std::allocator.77", align 1
  store ptr %0, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %14 unwind label %33

14:                                               ; preds = %1
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules18DirectionUsageRuleEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef %4)
          to label %15 unwind label %37

15:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #4
  invoke void @_ZN7maliput3api4test16CreateLaneSRangeEv(ptr dead_on_unwind writable sret(%"class.maliput::api::LaneSRange") align 8 %8)
          to label %16 unwind label %41

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #4
  store ptr %11, ptr %12, align 8
  invoke void @_ZN7maliput3api4test29CreateDirectionUsageRuleStateEv(ptr dead_on_unwind writable sret(%"class.maliput::api::rules::DirectionUsageRule::State") align 8 %11)
          to label %17 unwind label %45

17:                                               ; preds = %16
  %18 = getelementptr inbounds %"class.std::initializer_list.80", ptr %10, i32 0, i32 0
  store ptr %11, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds %"class.std::initializer_list.80", ptr %10, i32 0, i32 1
  store i64 1, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  call void @_ZNSaIN7maliput3api5rules18DirectionUsageRule5StateEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #4
  %20 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8
  %22 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 1
  %23 = load i64, ptr %22, align 8
  invoke void @_ZNSt6vectorIN7maliput3api5rules18DirectionUsageRule5StateESaIS4_EEC2ESt16initializer_listIS4_ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr %21, i64 %23, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %24 unwind label %56

24:                                               ; preds = %17
  invoke void @_ZN7maliput3api5rules18DirectionUsageRuleC2ERKNS0_22TypeSpecificIdentifierIS2_EERKNS0_10LaneSRangeESt6vectorINS2_5StateESaISB_EE(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef %9)
          to label %25 unwind label %60

25:                                               ; preds = %24
  call void @_ZNSt6vectorIN7maliput3api5rules18DirectionUsageRule5StateESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @_ZNSt15__new_allocatorIN7maliput3api5rules18DirectionUsageRule5StateEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  %26 = getelementptr inbounds [1 x %"class.maliput::api::rules::DirectionUsageRule::State"], ptr %11, i32 0, i32 0
  %27 = getelementptr inbounds %"class.maliput::api::rules::DirectionUsageRule::State", ptr %26, i64 1
  br label %28

28:                                               ; preds = %28, %25
  %29 = phi ptr [ %27, %25 ], [ %30, %28 ]
  %30 = getelementptr inbounds %"class.maliput::api::rules::DirectionUsageRule::State", ptr %29, i64 -1
  call void @_ZN7maliput3api5rules18DirectionUsageRule5StateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %30) #4
  %31 = icmp eq ptr %30, %26
  br i1 %31, label %32, label %28

32:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #4
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #4
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules18DirectionUsageRuleEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #4
  ret void

33:                                               ; preds = %1
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %6, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %7, align 4
  br label %75

37:                                               ; preds = %14
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %6, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %7, align 4
  br label %74

41:                                               ; preds = %15
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %6, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %7, align 4
  br label %73

45:                                               ; preds = %16
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %6, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %7, align 4
  %49 = load ptr, ptr %12, align 8
  %50 = icmp eq ptr %11, %49
  br i1 %50, label %55, label %51

51:                                               ; preds = %51, %45
  %52 = phi ptr [ %49, %45 ], [ %53, %51 ]
  %53 = getelementptr inbounds %"class.maliput::api::rules::DirectionUsageRule::State", ptr %52, i64 -1
  call void @_ZN7maliput3api5rules18DirectionUsageRule5StateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %53) #4
  %54 = icmp eq ptr %53, %11
  br i1 %54, label %55, label %51

55:                                               ; preds = %51, %45
  br label %72

56:                                               ; preds = %17
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %6, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %7, align 4
  br label %64

60:                                               ; preds = %24
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %6, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %7, align 4
  call void @_ZNSt6vectorIN7maliput3api5rules18DirectionUsageRule5StateESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  br label %64

64:                                               ; preds = %60, %56
  call void @_ZNSt15__new_allocatorIN7maliput3api5rules18DirectionUsageRule5StateEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  %65 = getelementptr inbounds [1 x %"class.maliput::api::rules::DirectionUsageRule::State"], ptr %11, i32 0, i32 0
  %66 = getelementptr inbounds %"class.maliput::api::rules::DirectionUsageRule::State", ptr %65, i64 1
  br label %67

67:                                               ; preds = %67, %64
  %68 = phi ptr [ %66, %64 ], [ %69, %67 ]
  %69 = getelementptr inbounds %"class.maliput::api::rules::DirectionUsageRule::State", ptr %68, i64 -1
  call void @_ZN7maliput3api5rules18DirectionUsageRule5StateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %69) #4
  %70 = icmp eq ptr %69, %65
  br i1 %70, label %71, label %67

71:                                               ; preds = %67
  br label %72

72:                                               ; preds = %71, %55
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #4
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
  br label %73

73:                                               ; preds = %72, %41
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #4
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules18DirectionUsageRuleEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  br label %74

74:                                               ; preds = %73, %37
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  br label %75

75:                                               ; preds = %74, %33
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #4
  br label %76

76:                                               ; preds = %75
  %77 = load ptr, ptr %6, align 8
  %78 = load i32, ptr %7, align 4
  %79 = insertvalue { ptr, i32 } poison, ptr %77, 0
  %80 = insertvalue { ptr, i32 } %79, i32 %78, 1
  resume { ptr, i32 } %80
}

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #4 = { 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_listIN7maliput3api5rules18DirectionUsageRule5StateEE", !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::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.maliput::api::rules::DirectionUsageRule::State" = type { %"class.maliput::api::TypeSpecificIdentifier.54", i32, i32 }
%"class.maliput::api::TypeSpecificIdentifier.54" = type { %"class.std::__cxx11::basic_string" }
%"class.maliput::api::rules::DirectionUsageRule" = type { %"class.maliput::api::TypeSpecificIdentifier.55", %"class.maliput::api::LaneSRange", %"class.std::unordered_map.56" }
%"class.maliput::api::TypeSpecificIdentifier.55" = type { %"class.std::__cxx11::basic_string" }
%"class.std::unordered_map.56" = type { %"class.std::_Hashtable.57" }
%"class.std::_Hashtable.57" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::allocator.0" = type { i8 }
%"class.std::vector.75" = type { %"struct.std::_Vector_base.76" }
%"struct.std::_Vector_base.76" = type { %"struct.std::_Vector_base<maliput::api::rules::DirectionUsageRule::State, std::allocator<maliput::api::rules::DirectionUsageRule::State>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::rules::DirectionUsageRule::State, std::allocator<maliput::api::rules::DirectionUsageRule::State>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::rules::DirectionUsageRule::State, std::allocator<maliput::api::rules::DirectionUsageRule::State>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::rules::DirectionUsageRule::State, std::allocator<maliput::api::rules::DirectionUsageRule::State>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.77" = type { i8 }

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api4test16CreateLaneSRangeEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::LaneSRange") align 8) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api4test29CreateDirectionUsageRuleStateEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::rules::DirectionUsageRule::State") align 8) local_unnamed_addr #2

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

9:                                                ; preds = %1
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules18DirectionUsageRuleEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull %3)
          to label %10 unwind label %17

10:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #4
  invoke void @_ZN7maliput3api4test16CreateLaneSRangeEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::LaneSRange") align 8 %5)
          to label %11 unwind label %19

11:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #4
  invoke void @_ZN7maliput3api4test29CreateDirectionUsageRuleStateEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::rules::DirectionUsageRule::State") align 8 %7)
          to label %12 unwind label %21

12:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #4
  call void @_ZNSaIN7maliput3api5rules18DirectionUsageRule5StateEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  invoke void @_ZNSt6vectorIN7maliput3api5rules18DirectionUsageRule5StateESaIS4_EEC2ESt16initializer_listIS4_ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr nonnull %7, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %13 unwind label %23

13:                                               ; preds = %12
  invoke void @_ZN7maliput3api5rules18DirectionUsageRuleC2ERKNS0_22TypeSpecificIdentifierIS2_EERKNS0_10LaneSRangeESt6vectorINS2_5StateESaISB_EE(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull %6)
          to label %14 unwind label %25

14:                                               ; preds = %13
  call void @_ZNSt6vectorIN7maliput3api5rules18DirectionUsageRule5StateESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @_ZNSt15__new_allocatorIN7maliput3api5rules18DirectionUsageRule5StateEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  call void @_ZN7maliput3api5rules18DirectionUsageRule5StateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #4
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules18DirectionUsageRuleEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  ret void

15:                                               ; preds = %1
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %29

17:                                               ; preds = %9
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %28

19:                                               ; preds = %10
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %27

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

23:                                               ; preds = %12
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

25:                                               ; preds = %13
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN7maliput3api5rules18DirectionUsageRule5StateESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %25, %23
  %.pn = phi { ptr, i32 } [ %26, %25 ], [ %24, %23 ]
  call void @_ZNSt15__new_allocatorIN7maliput3api5rules18DirectionUsageRule5StateEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  call void @_ZN7maliput3api5rules18DirectionUsageRule5StateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #4
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %21
  %.pn.pn = phi { ptr, i32 } [ %22, %21 ], [ %.pn, %.loopexit.loopexit ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #4
  call void @_ZN7maliput3api10LaneSRangeD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  br label %27

27:                                               ; preds = %.loopexit, %19
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.loopexit ], [ %20, %19 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules18DirectionUsageRuleEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #4
  br label %28

28:                                               ; preds = %27, %17
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %27 ], [ %18, %17 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  br label %29

29:                                               ; preds = %28, %15
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %28 ], [ %16, %15 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #4 = { 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,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass