; LLVM IR from maliput/maliput :: src/maliput/api/rules (traffic_lights)

; 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"

%"struct.maliput::api::rules::Bulb::BoundingBox" = type { %"class.maliput::math::Vector3", %"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] }
%"struct.std::nullopt_t" = type { i8 }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.maliput::api::rules::Bulb" = type { %"class.maliput::api::TypeSpecificIdentifier", %"class.maliput::api::InertialPosition", %"class.maliput::api::Rotation", i32, i32, %"class.std::optional", %"class.std::vector", %"struct.maliput::api::rules::Bulb::BoundingBox", ptr }
%"class.maliput::api::TypeSpecificIdentifier" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.maliput::api::InertialPosition" = type { %"class.maliput::math::Vector3" }
%"class.maliput::api::Rotation" = type { %"class.maliput::math::Quaternion" }
%"class.maliput::math::Quaternion" = type { double, double, double, double }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload_base.base", [7 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<double>::_Storage", i8 }>
%"union.std::_Optional_payload_base<double>::_Storage" = type { double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<maliput::api::rules::BulbState, std::allocator<maliput::api::rules::BulbState>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::rules::BulbState, std::allocator<maliput::api::rules::BulbState>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::rules::BulbState, std::allocator<maliput::api::rules::BulbState>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::rules::BulbState, std::allocator<maliput::api::rules::BulbState>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.8 = external hidden unnamed_addr constant [68 x i8], align 1
@__func__._ZN7maliput3api5rules4BulbC2ERKNS0_22TypeSpecificIdentifierIS2_EERKNS0_16InertialPositionERKNS0_8RotationERKNS1_9BulbColorERKNS1_8BulbTypeERKSt8optionalIdERKSJ_ISt6vectorINS1_9BulbStateESaISO_EEENS2_11BoundingBoxE = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 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

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: mustprogress uwtable
define dso_local void @_ZN7maliput3api5rules4BulbC2ERKNS0_22TypeSpecificIdentifierIS2_EERKNS0_16InertialPositionERKNS0_8RotationERKNS1_9BulbColorERKNS1_8BulbTypeERKSt8optionalIdERKSJ_ISt6vectorINS1_9BulbStateESaISO_EEENS2_11BoundingBoxE(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef byval(%"struct.maliput::api::rules::Bulb::BoundingBox") align 8 %8) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"struct.std::nullopt_t", align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::nullopt_t", align 1
  %22 = alloca %"struct.std::nullopt_t", align 1
  %23 = alloca %"class.std::initializer_list", align 8
  %24 = alloca [2 x i32], align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  %25 = load ptr, ptr %10, align 8
  %26 = getelementptr inbounds %"class.maliput::api::rules::Bulb", ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules4BulbEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(32) %27)
  %28 = getelementptr inbounds %"class.maliput::api::rules::Bulb", ptr %25, i32 0, i32 1
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %29, i64 24, i1 false)
  %30 = getelementptr inbounds %"class.maliput::api::rules::Bulb", ptr %25, i32 0, i32 2
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %31, i64 32, i1 false), !tbaa.struct !9
  %32 = getelementptr inbounds %"class.maliput::api::rules::Bulb", ptr %25, i32 0, i32 3
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  %34 = load i32, ptr %33, align 4, !tbaa !12
  store i32 %34, ptr %32, align 8, !tbaa !14
  %35 = getelementptr inbounds %"class.maliput::api::rules::Bulb", ptr %25, i32 0, i32 4
  %36 = load ptr, ptr %15, align 8, !tbaa !5
  %37 = load i32, ptr %36, align 4, !tbaa !37
  store i32 %37, ptr %35, align 4, !tbaa !38
  %38 = getelementptr inbounds %"class.maliput::api::rules::Bulb", ptr %25, i32 0, i32 5
  %39 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %39, i64 16, i1 false)
  %40 = getelementptr inbounds %"class.maliput::api::rules::Bulb", ptr %25, i32 0, i32 6
  call void @_ZNSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  %41 = getelementptr inbounds %"class.maliput::api::rules::Bulb", ptr %25, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %8, i64 48, i1 false)
  %42 = getelementptr inbounds %"class.maliput::api::rules::Bulb", ptr %25, i32 0, i32 8
  store ptr null, ptr %42, align 8, !tbaa !39
  br label %43

43:                                               ; preds = %9
  %44 = getelementptr inbounds %"class.maliput::api::rules::Bulb", ptr %25, i32 0, i32 4
  %45 = load i32, ptr %44, align 4, !tbaa !38
  %46 = icmp ne i32 %45, 1
  br i1 %46, label %56, label %47

47:                                               ; preds = %43
  %48 = getelementptr inbounds %"class.maliput::api::rules::Bulb", ptr %25, i32 0, i32 5
  %49 = call noundef zeroext i1 @_ZStneIdEbRKSt8optionalIT_ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(16) %48) #6
  br i1 %49, label %56, label %50

50:                                               ; preds = %47
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.8, ptr noundef @__func__._ZN7maliput3api5rules4BulbC2ERKNS0_22TypeSpecificIdentifierIS2_EERKNS0_16InertialPositionERKNS0_8RotationERKNS1_9BulbColorERKNS1_8BulbTypeERKSt8optionalIdERKSJ_ISt6vectorINS1_9BulbStateESaISO_EEENS2_11BoundingBoxE, ptr noundef @.str.9, i32 noundef 75) #7
          to label %51 unwind label %52

51:                                               ; preds = %50
  unreachable

52:                                               ; preds = %94, %66, %50
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %19, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %20, align 4
  br label %101

56:                                               ; preds = %47, %43
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  %59 = getelementptr inbounds %"class.maliput::api::rules::Bulb", ptr %25, i32 0, i32 4
  %60 = load i32, ptr %59, align 4, !tbaa !38
  %61 = icmp ne i32 %60, 1
  br i1 %61, label %62, label %71

62:                                               ; preds = %58
  br label %63

63:                                               ; preds = %62
  %64 = getelementptr inbounds %"class.maliput::api::rules::Bulb", ptr %25, i32 0, i32 5
  %65 = call noundef zeroext i1 @_ZSteqIdEbRKSt8optionalIT_ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(16) %64) #6
  br i1 %65, label %68, label %66

66:                                               ; preds = %63
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.10, ptr noundef @__func__._ZN7maliput3api5rules4BulbC2ERKNS0_22TypeSpecificIdentifierIS2_EERKNS0_16InertialPositionERKNS0_8RotationERKNS1_9BulbColorERKNS1_8BulbTypeERKSt8optionalIdERKSJ_ISt6vectorINS1_9BulbStateESaISO_EEENS2_11BoundingBoxE, ptr noundef @.str.9, i32 noundef 77) #7
          to label %67 unwind label %52

67:                                               ; preds = %66
  unreachable

68:                                               ; preds = %63
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70, %58
  %72 = load ptr, ptr %17, align 8, !tbaa !5
  %73 = call noundef zeroext i1 @_ZSteqISt6vectorIN7maliput3api5rules9BulbStateESaIS4_EEEbRKSt8optionalIT_ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(32) %72) #6
  br i1 %73, label %79, label %74

74:                                               ; preds = %71
  %75 = load ptr, ptr %17, align 8, !tbaa !5
  %76 = call noundef ptr @_ZNKSt8optionalISt6vectorIN7maliput3api5rules9BulbStateESaIS4_EEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %75) #6
  %77 = call noundef i64 @_ZNKSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #6
  %78 = icmp eq i64 %77, 0
  br i1 %78, label %79, label %94

79:                                               ; preds = %74, %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !40
  %80 = getelementptr inbounds i32, ptr %24, i64 1
  store i32 1, ptr %80, align 4, !tbaa !40
  %81 = getelementptr inbounds %"class.std::initializer_list", ptr %23, i32 0, i32 0
  store ptr %24, ptr %81, align 8, !tbaa !42
  %82 = getelementptr inbounds %"class.std::initializer_list", ptr %23, i32 0, i32 1
  store i64 2, ptr %82, align 8, !tbaa !44
  %83 = getelementptr inbounds %"class.maliput::api::rules::Bulb", ptr %25, i32 0, i32 6
  %84 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8
  %86 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %87 = load i64, ptr %86, align 8
  %88 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EEaSESt16initializer_listIS3_E(ptr noundef nonnull align 8 dereferenceable(24) %83, ptr %85, i64 %87)
          to label %89 unwind label %90

89:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %100

90:                                               ; preds = %79
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %19, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %101

94:                                               ; preds = %74
  %95 = load ptr, ptr %17, align 8, !tbaa !5
  %96 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKRSt8optionalISt6vectorIN7maliput3api5rules9BulbStateESaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(32) %95) #6
  %97 = getelementptr inbounds %"class.maliput::api::rules::Bulb", ptr %25, i32 0, i32 6
  %98 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %97, ptr noundef nonnull align 8 dereferenceable(24) %96)
          to label %99 unwind label %52

99:                                               ; preds = %94
  br label %100

100:                                              ; preds = %99, %89
  ret void

101:                                              ; preds = %90, %52
  call void @_ZNSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules4BulbEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %102

102:                                              ; preds = %101
  %103 = load ptr, ptr %19, align 8
  %104 = load i32, ptr %20, align 4
  %105 = insertvalue { ptr, i32 } poison, ptr %103, 0
  %106 = insertvalue { ptr, i32 } %105, i32 %104, 1
  resume { ptr, i32 } %106
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = { nounwind }
attributes #7 = { noreturn }

!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 = !{i64 0, i64 8, !10, i64 8, i64 8, !10, i64 16, i64 8, !10, i64 24, i64 8, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"_ZTSN7maliput3api5rules9BulbColorE", !7, i64 0}
!14 = !{!15, !13, i64 88}
!15 = !{!"_ZTSN7maliput3api5rules4BulbE", !16, i64 0, !20, i64 32, !24, i64 56, !13, i64 88, !26, i64 92, !27, i64 96, !32, i64 112, !36, i64 136, !6, i64 184}
!16 = !{!"_ZTSN7maliput3api22TypeSpecificIdentifierINS0_5rules4BulbEEE", !17, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !19, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSN7maliput3api16InertialPositionE", !21, i64 0}
!21 = !{!"_ZTSN7maliput4math7Vector3E", !22, i64 0}
!22 = !{!"_ZTSN7maliput4math10VectorBaseILm3ENS0_7Vector3EEE", !23, i64 0}
!23 = !{!"_ZTSSt5arrayIdLm3EE", !7, i64 0}
!24 = !{!"_ZTSN7maliput3api8RotationE", !25, i64 0}
!25 = !{!"_ZTSN7maliput4math10QuaternionE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!26 = !{!"_ZTSN7maliput3api5rules8BulbTypeE", !7, i64 0}
!27 = !{!"_ZTSSt8optionalIdE", !28, i64 0}
!28 = !{!"_ZTSSt14_Optional_baseIdLb1ELb1EE", !29, i64 0}
!29 = !{!"_ZTSSt17_Optional_payloadIdLb1ELb1ELb1EE", !30, i64 0}
!30 = !{!"_ZTSSt22_Optional_payload_baseIdE", !7, i64 0, !31, i64 8}
!31 = !{!"bool", !7, i64 0}
!32 = !{!"_ZTSSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIN7maliput3api5rules9BulbStateESaIS3_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN7maliput3api5rules9BulbStateESaIS3_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN7maliput3api5rules9BulbStateESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSN7maliput3api5rules4Bulb11BoundingBoxE", !21, i64 0, !21, i64 24}
!37 = !{!26, !26, i64 0}
!38 = !{!15, !26, i64 92}
!39 = !{!15, !6, i64 184}
!40 = !{!41, !41, i64 0}
!41 = !{!"_ZTSN7maliput3api5rules9BulbStateE", !7, i64 0}
!42 = !{!43, !6, i64 0}
!43 = !{!"_ZTSSt16initializer_listIN7maliput3api5rules9BulbStateEE", !6, i64 0, !19, i64 8}
!44 = !{!43, !19, 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"

%"struct.maliput::api::rules::Bulb::BoundingBox" = type { %"class.maliput::math::Vector3", %"class.maliput::math::Vector3" }
%"class.maliput::math::Vector3" = type { %"class.maliput::math::VectorBase" }
%"class.maliput::math::VectorBase" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x double] }

@.str.8 = external hidden unnamed_addr constant [68 x i8], align 1
@__func__._ZN7maliput3api5rules4BulbC2ERKNS0_22TypeSpecificIdentifierIS2_EERKNS0_16InertialPositionERKNS0_8RotationERKNS1_9BulbColorERKNS1_8BulbTypeERKSt8optionalIdERKSJ_ISt6vectorINS1_9BulbStateESaISO_EEENS2_11BoundingBoxE = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 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

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: mustprogress uwtable
define dso_local void @_ZN7maliput3api5rules4BulbC2ERKNS0_22TypeSpecificIdentifierIS2_EERKNS0_16InertialPositionERKNS0_8RotationERKNS1_9BulbColorERKNS1_8BulbTypeERKSt8optionalIdERKSJ_ISt6vectorINS1_9BulbStateESaISO_EEENS2_11BoundingBoxE(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %2, ptr nocapture noundef nonnull readonly align 8 dereferenceable(32) %3, ptr nocapture noundef nonnull readonly align 4 dereferenceable(4) %4, ptr nocapture noundef nonnull readonly align 4 dereferenceable(4) %5, ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr nocapture noundef readonly byval(%"struct.maliput::api::rules::Bulb::BoundingBox") align 8 %8) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca [2 x i32], align 4
  tail call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules4BulbEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %2, i64 24, i1 false)
  %12 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %3, i64 32, i1 false), !tbaa.struct !5
  %13 = getelementptr inbounds i8, ptr %0, i64 88
  %14 = load i32, ptr %4, align 4, !tbaa !10
  store i32 %14, ptr %13, align 8, !tbaa !12
  %15 = getelementptr inbounds i8, ptr %0, i64 92
  %16 = load i32, ptr %5, align 4, !tbaa !36
  store i32 %16, ptr %15, align 4, !tbaa !37
  %17 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %6, i64 16, i1 false)
  %18 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void @_ZNSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %19 = getelementptr inbounds i8, ptr %0, i64 136
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef nonnull align 8 dereferenceable(48) %8, i64 48, i1 false)
  %20 = getelementptr inbounds i8, ptr %0, i64 184
  store ptr null, ptr %20, align 8, !tbaa !38
  %21 = load i32, ptr %15, align 4, !tbaa !37
  %.not = icmp eq i32 %21, 1
  br i1 %.not, label %22, label %.thread

22:                                               ; preds = %9
  %23 = tail call noundef zeroext i1 @_ZStneIdEbRKSt8optionalIT_ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  br i1 %23, label %26, label %.invoke

24:                                               ; preds = %.invoke, %42
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %46

26:                                               ; preds = %22
  %.pr = load i32, ptr %15, align 4, !tbaa !37
  %.not12 = icmp eq i32 %.pr, 1
  br i1 %.not12, label %30, label %.thread

.thread:                                          ; preds = %9, %26
  %27 = tail call noundef zeroext i1 @_ZSteqIdEbRKSt8optionalIT_ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  br i1 %27, label %30, label %.invoke

.invoke:                                          ; preds = %22, %.thread
  %28 = phi ptr [ @.str.10, %.thread ], [ @.str.8, %22 ]
  %29 = phi i32 [ 77, %.thread ], [ 75, %22 ]
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull %28, ptr noundef nonnull @__func__._ZN7maliput3api5rules4BulbC2ERKNS0_22TypeSpecificIdentifierIS2_EERKNS0_16InertialPositionERKNS0_8RotationERKNS1_9BulbColorERKNS1_8BulbTypeERKSt8optionalIdERKSJ_ISt6vectorINS1_9BulbStateESaISO_EEENS2_11BoundingBoxE, ptr noundef nonnull @.str.9, i32 noundef %29) #7
          to label %.cont unwind label %24

.cont:                                            ; preds = %.invoke
  unreachable

30:                                               ; preds = %.thread, %26
  %31 = tail call noundef zeroext i1 @_ZSteqISt6vectorIN7maliput3api5rules9BulbStateESaIS4_EEEbRKSt8optionalIT_ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br i1 %31, label %36, label %32

32:                                               ; preds = %30
  %33 = tail call noundef ptr @_ZNKSt8optionalISt6vectorIN7maliput3api5rules9BulbStateESaIS4_EEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  %34 = tail call noundef i64 @_ZNKSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  %35 = icmp eq i64 %34, 0
  br i1 %35, label %36, label %42

36:                                               ; preds = %32, %30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  store i32 0, ptr %10, align 4, !tbaa !39
  %37 = getelementptr inbounds i8, ptr %10, i64 4
  store i32 1, ptr %37, align 4, !tbaa !39
  %38 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EEaSESt16initializer_listIS3_E(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr nonnull %10, i64 2)
          to label %39 unwind label %40

39:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %45

40:                                               ; preds = %36
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %46

42:                                               ; preds = %32
  %43 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKRSt8optionalISt6vectorIN7maliput3api5rules9BulbStateESaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  %44 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %43)
          to label %45 unwind label %24

45:                                               ; preds = %42, %39
  ret void

46:                                               ; preds = %40, %24
  %.pn = phi { ptr, i32 } [ %41, %40 ], [ %25, %24 ]
  call void @_ZNSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules4BulbEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = { nounwind }
attributes #7 = { noreturn }

!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 = !{i64 0, i64 8, !6, i64 8, i64 8, !6, i64 16, i64 8, !6, i64 24, i64 8, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"_ZTSN7maliput3api5rules9BulbColorE", !8, i64 0}
!12 = !{!13, !11, i64 88}
!13 = !{!"_ZTSN7maliput3api5rules4BulbE", !14, i64 0, !19, i64 32, !23, i64 56, !11, i64 88, !25, i64 92, !26, i64 96, !31, i64 112, !35, i64 136, !17, i64 184}
!14 = !{!"_ZTSN7maliput3api22TypeSpecificIdentifierINS0_5rules4BulbEEE", !15, i64 0}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !18, i64 8, !8, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !17, i64 0}
!17 = !{!"any pointer", !8, i64 0}
!18 = !{!"long", !8, i64 0}
!19 = !{!"_ZTSN7maliput3api16InertialPositionE", !20, i64 0}
!20 = !{!"_ZTSN7maliput4math7Vector3E", !21, i64 0}
!21 = !{!"_ZTSN7maliput4math10VectorBaseILm3ENS0_7Vector3EEE", !22, i64 0}
!22 = !{!"_ZTSSt5arrayIdLm3EE", !8, i64 0}
!23 = !{!"_ZTSN7maliput3api8RotationE", !24, i64 0}
!24 = !{!"_ZTSN7maliput4math10QuaternionE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!25 = !{!"_ZTSN7maliput3api5rules8BulbTypeE", !8, i64 0}
!26 = !{!"_ZTSSt8optionalIdE", !27, i64 0}
!27 = !{!"_ZTSSt14_Optional_baseIdLb1ELb1EE", !28, i64 0}
!28 = !{!"_ZTSSt17_Optional_payloadIdLb1ELb1ELb1EE", !29, i64 0}
!29 = !{!"_ZTSSt22_Optional_payload_baseIdE", !8, i64 0, !30, i64 8}
!30 = !{!"bool", !8, i64 0}
!31 = !{!"_ZTSSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIN7maliput3api5rules9BulbStateESaIS3_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN7maliput3api5rules9BulbStateESaIS3_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN7maliput3api5rules9BulbStateESaIS3_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!35 = !{!"_ZTSN7maliput3api5rules4Bulb11BoundingBoxE", !20, i64 0, !20, i64 24}
!36 = !{!25, !25, i64 0}
!37 = !{!13, !25, i64 92}
!38 = !{!13, !17, i64 184}
!39 = !{!40, !40, i64 0}
!40 = !{!"_ZTSN7maliput3api5rules9BulbStateE", !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass