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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::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", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<std::unordered_map<maliput::api::rules::UniqueBulbId, maliput::api::rules::BulbState>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<std::unordered_map<maliput::api::rules::UniqueBulbId, maliput::api::rules::BulbState>>::_Storage" = type { %"class.std::unordered_map.24" }
%"class.std::unordered_map.24" = type { %"class.std::_Hashtable.25" }
%"class.std::_Hashtable.25" = 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 }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.maliput::api::TypeSpecificIdentifier.131" = 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] }
%"struct.std::pair" = type <{ %"class.maliput::api::rules::UniqueBulbId", i32, [4 x i8] }>
%"class.maliput::api::rules::UniqueBulbId" = type { %"class.maliput::api::UniqueId", %"class.maliput::api::TypeSpecificIdentifier.131", %"class.maliput::api::TypeSpecificIdentifier.132", %"class.maliput::api::TypeSpecificIdentifier.133" }
%"class.maliput::api::UniqueId" = type { %"class.std::__cxx11::basic_string" }
%"class.maliput::api::TypeSpecificIdentifier.132" = type { %"class.std::__cxx11::basic_string" }
%"class.maliput::api::TypeSpecificIdentifier.133" = type { %"class.std::__cxx11::basic_string" }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput3api12Intersection11bulb_statesEv(ptr dead_on_unwind noalias writable sret(%"class.std::optional") align 8, ptr noundef nonnull align 8 dereferenceable(208)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7maliput3api12Intersection8IncludesERKNS0_22TypeSpecificIdentifierINS0_5rules12TrafficLightEEE(ptr noundef nonnull align 8 dereferenceable(208) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::optional", align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %11 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.maliput::api::TypeSpecificIdentifier.131", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #4
  call void @_ZNK7maliput3api12Intersection11bulb_statesEv(ptr dead_on_unwind writable sret(%"class.std::optional") align 8 %6, ptr noundef nonnull align 8 dereferenceable(208) %15)
  %16 = call noundef zeroext i1 @_ZNKSt8optionalISt13unordered_mapIN7maliput3api5rules12UniqueBulbIdENS3_9BulbStateESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S5_EEEE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(64) %6) #4
  br i1 %16, label %17, label %63

17:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %18 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNKRSt8optionalISt13unordered_mapIN7maliput3api5rules12UniqueBulbIdENS3_9BulbStateESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S5_EEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(64) %6)
          to label %19 unwind label %31

19:                                               ; preds = %17
  store ptr %18, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = call ptr @_ZNKSt13unordered_mapIN7maliput3api5rules12UniqueBulbIdENS2_9BulbStateESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %20) #4
  %22 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %10, i32 0, i32 0
  %23 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %22, i32 0, i32 0
  store ptr %21, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = call ptr @_ZNKSt13unordered_mapIN7maliput3api5rules12UniqueBulbIdENS2_9BulbStateESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %24) #4
  %26 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %11, i32 0, i32 0
  %27 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %26, i32 0, i32 0
  store ptr %25, ptr %27, align 8
  br label %28

28:                                               ; preds = %57, %19
  %29 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api5rules12UniqueBulbIdENS4_9BulbStateEELb0EEESB_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  br i1 %29, label %35, label %30

30:                                               ; preds = %28
  store i32 2, ptr %12, align 4
  br label %59

31:                                               ; preds = %17
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %8, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %9, align 4
  br label %61

35:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %36 = call noundef nonnull align 8 dereferenceable(132) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api5rules12UniqueBulbIdENS4_9BulbStateEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  store ptr %36, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #4
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.std::pair", ptr %37, i32 0, i32 0
  invoke void @_ZNK7maliput3api5rules12UniqueBulbId16traffic_light_idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier.131") align 8 %14, ptr noundef nonnull align 8 dereferenceable(128) %38)
          to label %39 unwind label %44

39:                                               ; preds = %35
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = invoke noundef zeroext i1 @_ZNK7maliput3api22TypeSpecificIdentifierINS0_5rules12TrafficLightEEeqERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %40)
          to label %42 unwind label %48

42:                                               ; preds = %39
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules12TrafficLightEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #4
  br i1 %41, label %43, label %53

43:                                               ; preds = %42
  store i1 true, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %54

44:                                               ; preds = %35
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %8, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %9, align 4
  br label %52

48:                                               ; preds = %39
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %8, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %9, align 4
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules12TrafficLightEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #4
  br label %52

52:                                               ; preds = %48, %44
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %61

53:                                               ; preds = %42
  store i32 0, ptr %12, align 4
  br label %54

54:                                               ; preds = %53, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  %55 = load i32, ptr %12, align 4
  switch i32 %55, label %59 [
    i32 0, label %56
  ]

56:                                               ; preds = %54
  br label %57

57:                                               ; preds = %56
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api5rules12UniqueBulbIdENS4_9BulbStateEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br label %28

59:                                               ; preds = %54, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  %60 = load i32, ptr %12, align 4
  switch i32 %60, label %64 [
    i32 2, label %62
  ]

61:                                               ; preds = %52, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @_ZNSt14_Optional_baseISt13unordered_mapIN7maliput3api5rules12UniqueBulbIdENS3_9BulbStateESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S5_EEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #4
  br label %66

62:                                               ; preds = %59
  br label %63

63:                                               ; preds = %62, %2
  store i1 false, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %64

64:                                               ; preds = %63, %59
  call void @_ZNSt14_Optional_baseISt13unordered_mapIN7maliput3api5rules12UniqueBulbIdENS3_9BulbStateESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S5_EEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #4
  %65 = load i1, ptr %3, align 1
  ret i1 %65

66:                                               ; preds = %61
  %67 = load ptr, ptr %8, align 8
  %68 = load i32, ptr %9, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNKRSt8optionalISt13unordered_mapIN7maliput3api5rules12UniqueBulbIdENS3_9BulbStateESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S5_EEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(64)) #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput3api5rules12UniqueBulbId16traffic_light_idEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::TypeSpecificIdentifier.131") align 8, ptr noundef nonnull align 8 dereferenceable(128)) #0 align 2

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

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::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", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<std::unordered_map<maliput::api::rules::UniqueBulbId, maliput::api::rules::BulbState>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<std::unordered_map<maliput::api::rules::UniqueBulbId, maliput::api::rules::BulbState>>::_Storage" = type { %"class.std::unordered_map.24" }
%"class.std::unordered_map.24" = type { %"class.std::_Hashtable.25" }
%"class.std::_Hashtable.25" = 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 }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.maliput::api::TypeSpecificIdentifier.131" = 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] }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput3api12Intersection11bulb_statesEv(ptr dead_on_unwind noalias writable sret(%"class.std::optional") align 8, ptr noundef nonnull align 8 dereferenceable(208)) local_unnamed_addr #0 align 2

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7maliput3api12Intersection8IncludesERKNS0_22TypeSpecificIdentifierINS0_5rules12TrafficLightEEE(ptr noundef nonnull align 8 dereferenceable(208) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::optional", align 8
  %4 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %5 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %6 = alloca %"class.maliput::api::TypeSpecificIdentifier.131", align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #4
  call void @_ZNK7maliput3api12Intersection11bulb_statesEv(ptr dead_on_unwind nonnull writable sret(%"class.std::optional") align 8 %3, ptr noundef nonnull align 8 dereferenceable(208) %0)
  %7 = call noundef zeroext i1 @_ZNKSt8optionalISt13unordered_mapIN7maliput3api5rules12UniqueBulbIdENS3_9BulbStateESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S5_EEEE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(64) %3) #4
  br i1 %7, label %8, label %26

8:                                                ; preds = %2
  %9 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNKRSt8optionalISt13unordered_mapIN7maliput3api5rules12UniqueBulbIdENS3_9BulbStateESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S5_EEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(64) %3)
          to label %10 unwind label %14

10:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %11 = call ptr @_ZNKSt13unordered_mapIN7maliput3api5rules12UniqueBulbIdENS2_9BulbStateESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %9) #4
  store ptr %11, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %12 = call ptr @_ZNKSt13unordered_mapIN7maliput3api5rules12UniqueBulbIdENS2_9BulbStateESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %9) #4
  store ptr %12, ptr %5, align 8
  %13 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api5rules12UniqueBulbIdENS4_9BulbStateEELb0EEESB_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  br i1 %13, label %.lr.ph, label %.critedge

14:                                               ; preds = %8
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %25

.lr.ph:                                           ; preds = %10, %21
  %16 = call noundef nonnull align 8 dereferenceable(132) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api5rules12UniqueBulbIdENS4_9BulbStateEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  invoke void @_ZNK7maliput3api5rules12UniqueBulbId16traffic_light_idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier.131") align 8 %6, ptr noundef nonnull align 8 dereferenceable(128) %16)
          to label %17 unwind label %19

17:                                               ; preds = %.lr.ph
  %18 = call noundef zeroext i1 @_ZNK7maliput3api22TypeSpecificIdentifierINS0_5rules12TrafficLightEEeqERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %1)
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules12TrafficLightEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  br i1 %18, label %24, label %21

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

21:                                               ; preds = %17
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api5rules12UniqueBulbIdENS4_9BulbStateEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %23 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api5rules12UniqueBulbIdENS4_9BulbStateEELb0EEESB_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  br i1 %23, label %.lr.ph, label %.critedge

24:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %26

25:                                               ; preds = %19, %14
  %.pn = phi { ptr, i32 } [ %20, %19 ], [ %15, %14 ]
  call void @_ZNSt14_Optional_baseISt13unordered_mapIN7maliput3api5rules12UniqueBulbIdENS3_9BulbStateESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S5_EEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %3) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn

.critedge:                                        ; preds = %21, %10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %26

26:                                               ; preds = %2, %.critedge, %24
  %.3 = phi i1 [ true, %24 ], [ false, %.critedge ], [ false, %2 ]
  call void @_ZNSt14_Optional_baseISt13unordered_mapIN7maliput3api5rules12UniqueBulbIdENS3_9BulbStateESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S5_EEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %3) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #4
  ret i1 %.3
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNKRSt8optionalISt13unordered_mapIN7maliput3api5rules12UniqueBulbIdENS3_9BulbStateESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_S5_EEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput3api5rules12UniqueBulbId16traffic_light_idEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::TypeSpecificIdentifier.131") align 8, ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #0 align 2

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

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

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

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

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