; LLVM IR from maliput/maliput :: src/maliput/base (manual_phase_provider)

; 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::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>, std::allocator<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>, std::allocator<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>, std::allocator<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>, std::allocator<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"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<maliput::api::rules::PhaseRing>::_Storage", i8 }>
%"union.std::_Optional_payload_base<maliput::api::rules::PhaseRing>::_Storage" = type { %"class.maliput::api::rules::PhaseRing" }
%"class.maliput::api::rules::PhaseRing" = type { %"class.maliput::api::TypeSpecificIdentifier", %"class.std::unordered_map", %"class.std::unordered_map.11" }
%"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.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = 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::unordered_map.11" = type { %"class.std::_Hashtable.12" }
%"class.std::_Hashtable.12" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::nullopt_t" = type { i8 }
%"class.std::optional.26" = type { %"struct.std::_Optional_base.27" }
%"struct.std::_Optional_base.27" = type { %"struct.std::_Optional_payload.29" }
%"struct.std::_Optional_payload.29" = type { %"struct.std::_Optional_payload.base.34", [7 x i8] }
%"struct.std::_Optional_payload.base.34" = type { %"struct.std::_Optional_payload_base.base.33" }
%"struct.std::_Optional_payload_base.base.33" = type <{ %"union.std::_Optional_payload_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Phase>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Phase>>::_Storage" = type { %"class.maliput::api::TypeSpecificIdentifier.32" }
%"class.maliput::api::TypeSpecificIdentifier.32" = type { %"class.std::__cxx11::basic_string" }
%"class.std::optional.37" = type { %"struct.std::_Optional_base.38" }
%"struct.std::_Optional_base.38" = type { %"struct.std::_Optional_payload.40" }
%"struct.std::_Optional_payload.40" = type { %"struct.std::_Optional_payload_base.base.42", [7 x i8] }
%"struct.std::_Optional_payload_base.base.42" = type <{ %"union.std::_Optional_payload_base<double>::_Storage", i8 }>
%"union.std::_Optional_payload_base<double>::_Storage" = type { double }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::vector.112" = type { %"struct.std::_Vector_base.113" }
%"struct.std::_Vector_base.113" = type { %"struct.std::_Vector_base<maliput::api::rules::PhaseRing::NextPhase, std::allocator<maliput::api::rules::PhaseRing::NextPhase>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::rules::PhaseRing::NextPhase, std::allocator<maliput::api::rules::PhaseRing::NextPhase>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::rules::PhaseRing::NextPhase, std::allocator<maliput::api::rules::PhaseRing::NextPhase>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::rules::PhaseRing::NextPhase, std::allocator<maliput::api::rules::PhaseRing::NextPhase>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { %"class.maliput::api::TypeSpecificIdentifier.32", %"class.maliput::api::rules::Phase" }
%"class.maliput::api::rules::Phase" = type { %"class.maliput::api::TypeSpecificIdentifier.32", %"class.std::unordered_map.45", %"class.std::unordered_map.64", %"class.std::optional.83" }
%"class.std::unordered_map.45" = type { %"class.std::_Hashtable.46" }
%"class.std::_Hashtable.46" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.64" = type { %"class.std::_Hashtable.65" }
%"class.std::_Hashtable.65" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::optional.83" = type { %"struct.std::_Optional_base.84" }
%"struct.std::_Optional_base.84" = type { %"struct.std::_Optional_payload.86" }
%"struct.std::_Optional_payload.86" = type { %"struct.std::_Optional_payload.base.109", [7 x i8] }
%"struct.std::_Optional_payload.base.109" = type { %"struct.std::_Optional_payload_base.base.108" }
%"struct.std::_Optional_payload_base.base.108" = 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.89" }
%"class.std::unordered_map.89" = type { %"class.std::_Hashtable.90" }
%"class.std::_Hashtable.90" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.maliput::api::rules::PhaseRing::NextPhase" = type { %"class.maliput::api::TypeSpecificIdentifier.32", %"class.std::optional.37" }

@.str = external hidden unnamed_addr constant [27 x i8], align 1
@__func__._ZN7maliput19ManualPhaseProvider38GetDefaultPopulatedManualPhaseProviderEPKNS_3api5rules13PhaseRingBookE = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput19ManualPhaseProvider38GetDefaultPopulatedManualPhaseProviderEPKNS_3api5rules13PhaseRingBookE(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8 %0, ptr noundef %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::optional", align 8
  %15 = alloca %"struct.std::nullopt_t", align 1
  %16 = alloca %"class.std::optional.26", align 8
  %17 = alloca %"struct.std::nullopt_t", align 1
  %18 = alloca %"class.std::optional.37", align 8
  %19 = alloca %"struct.std::nullopt_t", align 1
  %20 = alloca ptr, align 8
  %21 = alloca %"class.maliput::api::TypeSpecificIdentifier.32", align 8
  %22 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %23 = alloca %"class.std::vector.112", align 8
  %24 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %2
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %29, label %28

28:                                               ; preds = %25
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str, ptr noundef @__func__._ZN7maliput19ManualPhaseProvider38GetDefaultPopulatedManualPhaseProviderEPKNS_3api5rules13PhaseRingBookE, ptr noundef @.str.1, i32 noundef 46) #7
  unreachable

29:                                               ; preds = %25
  br label %30

30:                                               ; preds = %29
  store i1 false, ptr %5, align 1
  call void @_ZSt11make_uniqueIN7maliput19ManualPhaseProviderEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api5rules13PhaseRingBook13GetPhaseRingsEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %32 unwind label %42

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

39:                                               ; preds = %121, %32
  %40 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7maliput3api22TypeSpecificIdentifierINS2_5rules9PhaseRingEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br i1 %40, label %46, label %41

41:                                               ; preds = %39
  store i32 4, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @_ZNSt6vectorIN7maliput3api22TypeSpecificIdentifierINS1_5rules9PhaseRingEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %134

42:                                               ; preds = %30
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %8, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %9, align 4
  br label %133

46:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %47 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7maliput3api22TypeSpecificIdentifierINS2_5rules9PhaseRingEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  store ptr %47, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 152, ptr %14) #8
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api5rules13PhaseRingBook12GetPhaseRingERKNS0_22TypeSpecificIdentifierINS1_9PhaseRingEEE(ptr dead_on_unwind writable sret(%"class.std::optional") align 8 %14, ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(32) %49)
          to label %50 unwind label %55

50:                                               ; preds = %46
  br label %51

51:                                               ; preds = %50
  %52 = call noundef zeroext i1 @_ZStneIN7maliput3api5rules9PhaseRingEEbRKSt8optionalIT_ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(152) %14) #8
  br i1 %52, label %63, label %53

53:                                               ; preds = %51
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.2, ptr noundef @__func__._ZN7maliput19ManualPhaseProvider38GetDefaultPopulatedManualPhaseProviderEPKNS_3api5rules13PhaseRingBookE, ptr noundef @.str.1, i32 noundef 50) #7
          to label %54 unwind label %59

54:                                               ; preds = %53
  unreachable

55:                                               ; preds = %46
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %8, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %9, align 4
  br label %132

59:                                               ; preds = %53
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %8, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %9, align 4
  br label %131

63:                                               ; preds = %51
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 40, ptr %16) #8
  call void @_ZNSt8optionalIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(40) %16) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  call void @_ZNSt8optionalIdEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(16) %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %66 = call noundef ptr @_ZNKSt8optionalIN7maliput3api5rules9PhaseRingEEptEv(ptr noundef nonnull align 8 dereferenceable(152) %14) #8
  %67 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7maliput3api5rules9PhaseRing6phasesEv(ptr noundef nonnull align 8 dereferenceable(144) %66)
          to label %68 unwind label %72

68:                                               ; preds = %65
  store ptr %67, ptr %20, align 8, !tbaa !5
  %69 = load ptr, ptr %20, align 8, !tbaa !5
  %70 = call noundef zeroext i1 @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEES4_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %69) #8
  br i1 %70, label %71, label %76

71:                                               ; preds = %68
  store i32 5, ptr %12, align 4
  br label %115

72:                                               ; preds = %65
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %8, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %9, align 4
  br label %130

76:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %77 = load ptr, ptr %20, align 8, !tbaa !5
  %78 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEES4_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %77) #8
  %79 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %22, i32 0, i32 0
  %80 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %79, i32 0, i32 0
  store ptr %78, ptr %80, align 8
  %81 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules5PhaseEEES6_ELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  %82 = getelementptr inbounds %"struct.std::pair", ptr %81, i32 0, i32 0
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules5PhaseEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %82)
          to label %83 unwind label %99

83:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #8
  %84 = call noundef ptr @_ZNKSt8optionalIN7maliput3api5rules9PhaseRingEEptEv(ptr noundef nonnull align 8 dereferenceable(152) %14) #8
  %85 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7maliput3api5rules9PhaseRing11next_phasesEv(ptr noundef nonnull align 8 dereferenceable(144) %84)
          to label %86 unwind label %103

86:                                               ; preds = %83
  %87 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEESt6vectorINS3_9PhaseRing9NextPhaseESaIS8_EESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SA_EEE2atERSG_(ptr noundef nonnull align 8 dereferenceable(56) %85, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %88 unwind label %103

88:                                               ; preds = %86
  invoke void @_ZNSt6vectorIN7maliput3api5rules9PhaseRing9NextPhaseESaIS4_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %87)
          to label %89 unwind label %103

89:                                               ; preds = %88
  %90 = call noundef zeroext i1 @_ZNKSt6vectorIN7maliput3api5rules9PhaseRing9NextPhaseESaIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  br i1 %90, label %111, label %91

91:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %92 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt6vectorIN7maliput3api5rules9PhaseRing9NextPhaseESaIS4_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  store ptr %92, ptr %24, align 8, !tbaa !5
  %93 = load ptr, ptr %24, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.maliput::api::rules::PhaseRing::NextPhase", ptr %93, i32 0, i32 0
  %95 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt8optionalIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEEEaSIRKS5_EENSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS6_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEESB_ISt6__and_IJSt9is_scalarIS5_ESC_IS5_NSt5decayISF_E4typeEEEEESt16is_constructibleIS5_JSF_EESt13is_assignableIRS5_SF_EEERS6_E4typeEOSF_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull align 8 dereferenceable(32) %94)
          to label %96 unwind label %107

96:                                               ; preds = %91
  %97 = load ptr, ptr %24, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.maliput::api::rules::PhaseRing::NextPhase", ptr %97, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %98, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %111

99:                                               ; preds = %76
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %8, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %129

103:                                              ; preds = %88, %86, %83
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %8, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %9, align 4
  br label %128

107:                                              ; preds = %91
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %8, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %127

111:                                              ; preds = %96, %89
  %112 = call noundef ptr @_ZNKSt10unique_ptrIN7maliput19ManualPhaseProviderESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #8
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZN7maliput19ManualPhaseProvider12AddPhaseRingERKNS_3api22TypeSpecificIdentifierINS1_5rules9PhaseRingEEERKNS2_INS3_5PhaseEEERKSt8optionalIS9_ERKSC_IdE(ptr noundef nonnull align 8 dereferenceable(16) %112, ptr noundef nonnull align 8 dereferenceable(32) %113, ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %114 unwind label %123

114:                                              ; preds = %111
  call void @_ZNSt6vectorIN7maliput3api5rules9PhaseRing9NextPhaseESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules5PhaseEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  store i32 0, ptr %12, align 4
  br label %115

115:                                              ; preds = %114, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @_ZNSt14_Optional_baseIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #8
  call void @_ZNSt14_Optional_baseIN7maliput3api5rules9PhaseRingELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(152) %14) #8
  call void @llvm.lifetime.end.p0(i64 152, ptr %14) #8
  %116 = load i32, ptr %12, align 4
  switch i32 %116, label %118 [
    i32 0, label %117
  ]

117:                                              ; preds = %115
  store i32 0, ptr %12, align 4
  br label %118

118:                                              ; preds = %117, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  %119 = load i32, ptr %12, align 4
  switch i32 %119, label %143 [
    i32 0, label %120
    i32 5, label %121
  ]

120:                                              ; preds = %118
  br label %121

121:                                              ; preds = %120, %118
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7maliput3api22TypeSpecificIdentifierINS2_5rules9PhaseRingEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br label %39

123:                                              ; preds = %111
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %8, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %9, align 4
  br label %127

127:                                              ; preds = %123, %107
  call void @_ZNSt6vectorIN7maliput3api5rules9PhaseRing9NextPhaseESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  br label %128

128:                                              ; preds = %127, %103
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules5PhaseEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  br label %129

129:                                              ; preds = %128, %99
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  br label %130

130:                                              ; preds = %129, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @_ZNSt14_Optional_baseIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #8
  br label %131

131:                                              ; preds = %130, %59
  call void @_ZNSt14_Optional_baseIN7maliput3api5rules9PhaseRingELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(152) %14) #8
  br label %132

132:                                              ; preds = %131, %55
  call void @llvm.lifetime.end.p0(i64 152, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @_ZNSt6vectorIN7maliput3api22TypeSpecificIdentifierINS1_5rules9PhaseRingEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  br label %133

133:                                              ; preds = %132, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @_ZNSt10unique_ptrIN7maliput19ManualPhaseProviderESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #8
  br label %138

134:                                              ; preds = %41
  store i1 true, ptr %5, align 1
  store i32 1, ptr %12, align 4
  %135 = load i1, ptr %5, align 1
  br i1 %135, label %137, label %136

136:                                              ; preds = %134
  call void @_ZNSt10unique_ptrIN7maliput19ManualPhaseProviderESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #8
  br label %137

137:                                              ; preds = %136, %134
  ret void

138:                                              ; preds = %133
  %139 = load ptr, ptr %8, align 8
  %140 = load i32, ptr %9, align 4
  %141 = insertvalue { ptr, i32 } poison, ptr %139, 0
  %142 = insertvalue { ptr, i32 } %141, i32 %140, 1
  resume { ptr, i32 } %142

143:                                              ; preds = %118
  unreachable
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN7maliput19ManualPhaseProviderEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8) #2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEESt6vectorINS3_9PhaseRing9NextPhaseESaIS8_EESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SA_EEE2atERSG_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt8optionalIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEEEaSIRKS5_EENSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS6_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEESB_ISt6__and_IJSt9is_scalarIS5_ESC_IS5_NSt5decayISF_E4typeEEEEESt16is_constructibleIS5_JSF_EESt13is_assignableIRS5_SF_EEERS6_E4typeEOSF_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32)) #0 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) #6

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10unique_ptrIN7maliput19ManualPhaseProviderESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 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 = { 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 #2 = { inlinehint 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { noreturn }
attributes #8 = { 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::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>, std::allocator<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>, std::allocator<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>, std::allocator<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>, std::allocator<maliput::api::TypeSpecificIdentifier<maliput::api::rules::PhaseRing>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"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<maliput::api::rules::PhaseRing>::_Storage", i8 }>
%"union.std::_Optional_payload_base<maliput::api::rules::PhaseRing>::_Storage" = type { %"class.maliput::api::rules::PhaseRing" }
%"class.maliput::api::rules::PhaseRing" = type { %"class.maliput::api::TypeSpecificIdentifier", %"class.std::unordered_map", %"class.std::unordered_map.11" }
%"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.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = 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::unordered_map.11" = type { %"class.std::_Hashtable.12" }
%"class.std::_Hashtable.12" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::optional.26" = type { %"struct.std::_Optional_base.27" }
%"struct.std::_Optional_base.27" = type { %"struct.std::_Optional_payload.29" }
%"struct.std::_Optional_payload.29" = type { %"struct.std::_Optional_payload.base.34", [7 x i8] }
%"struct.std::_Optional_payload.base.34" = type { %"struct.std::_Optional_payload_base.base.33" }
%"struct.std::_Optional_payload_base.base.33" = type <{ %"union.std::_Optional_payload_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Phase>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Phase>>::_Storage" = type { %"class.maliput::api::TypeSpecificIdentifier.32" }
%"class.maliput::api::TypeSpecificIdentifier.32" = type { %"class.std::__cxx11::basic_string" }
%"class.std::optional.37" = type { %"struct.std::_Optional_base.38" }
%"struct.std::_Optional_base.38" = type { %"struct.std::_Optional_payload.40" }
%"struct.std::_Optional_payload.40" = type { %"struct.std::_Optional_payload_base.base.42", [7 x i8] }
%"struct.std::_Optional_payload_base.base.42" = type <{ %"union.std::_Optional_payload_base<double>::_Storage", i8 }>
%"union.std::_Optional_payload_base<double>::_Storage" = type { double }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::vector.112" = type { %"struct.std::_Vector_base.113" }
%"struct.std::_Vector_base.113" = type { %"struct.std::_Vector_base<maliput::api::rules::PhaseRing::NextPhase, std::allocator<maliput::api::rules::PhaseRing::NextPhase>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::rules::PhaseRing::NextPhase, std::allocator<maliput::api::rules::PhaseRing::NextPhase>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::rules::PhaseRing::NextPhase, std::allocator<maliput::api::rules::PhaseRing::NextPhase>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::rules::PhaseRing::NextPhase, std::allocator<maliput::api::rules::PhaseRing::NextPhase>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [27 x i8], align 1
@__func__._ZN7maliput19ManualPhaseProvider38GetDefaultPopulatedManualPhaseProviderEPKNS_3api5rules13PhaseRingBookE = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput19ManualPhaseProvider38GetDefaultPopulatedManualPhaseProviderEPKNS_3api5rules13PhaseRingBookE(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8 %0, ptr noundef %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.std::optional", align 8
  %7 = alloca %"class.std::optional.26", align 8
  %8 = alloca %"class.std::optional.37", align 8
  %9 = alloca %"class.maliput::api::TypeSpecificIdentifier.32", align 8
  %10 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %11 = alloca %"class.std::vector.112", align 8
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %12, label %13

12:                                               ; preds = %2
  tail call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN7maliput19ManualPhaseProvider38GetDefaultPopulatedManualPhaseProviderEPKNS_3api5rules13PhaseRingBookE, ptr noundef nonnull @.str.1, i32 noundef 46) #7
  unreachable

13:                                               ; preds = %2
  tail call void @_ZSt11make_uniqueIN7maliput19ManualPhaseProviderEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  invoke void @_ZNK7maliput3api5rules13PhaseRingBook13GetPhaseRingsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %3, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %14 unwind label %18

14:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %15 = call ptr @_ZNSt6vectorIN7maliput3api22TypeSpecificIdentifierINS1_5rules9PhaseRingEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  store ptr %15, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %16 = call ptr @_ZNSt6vectorIN7maliput3api22TypeSpecificIdentifierINS1_5rules9PhaseRingEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  store ptr %16, ptr %5, align 8
  %17 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7maliput3api22TypeSpecificIdentifierINS2_5rules9PhaseRingEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br i1 %17, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %57, %14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @_ZNSt6vectorIN7maliput3api22TypeSpecificIdentifierINS1_5rules9PhaseRingEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  ret void

18:                                               ; preds = %13
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %67

.lr.ph:                                           ; preds = %14, %57
  %20 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7maliput3api22TypeSpecificIdentifierINS2_5rules9PhaseRingEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %6) #8
  invoke void @_ZNK7maliput3api5rules13PhaseRingBook12GetPhaseRingERKNS0_22TypeSpecificIdentifierINS1_9PhaseRingEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::optional") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %21 unwind label %25

21:                                               ; preds = %.lr.ph
  %22 = call noundef zeroext i1 @_ZStneIN7maliput3api5rules9PhaseRingEEbRKSt8optionalIT_ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(152) %6) #8
  br i1 %22, label %29, label %23

23:                                               ; preds = %21
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZN7maliput19ManualPhaseProvider38GetDefaultPopulatedManualPhaseProviderEPKNS_3api5rules13PhaseRingBookE, ptr noundef nonnull @.str.1, i32 noundef 50) #7
          to label %24 unwind label %27

24:                                               ; preds = %23
  unreachable

25:                                               ; preds = %.lr.ph
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %66

27:                                               ; preds = %23
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %65

29:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #8
  call void @_ZNSt8optionalIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEEEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(40) %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  call void @_ZNSt8optionalIdEC2ESt9nullopt_t(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  %30 = call noundef ptr @_ZNKSt8optionalIN7maliput3api5rules9PhaseRingEEptEv(ptr noundef nonnull align 8 dereferenceable(152) %6) #8
  %31 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7maliput3api5rules9PhaseRing6phasesEv(ptr noundef nonnull align 8 dereferenceable(144) %30)
  %32 = call noundef zeroext i1 @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEES4_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %31) #8
  br i1 %32, label %57, label %33

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %34 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEES4_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %31) #8
  store ptr %34, ptr %10, align 8
  %35 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules5PhaseEEES6_ELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules5PhaseEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %36 unwind label %48

36:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  %37 = call noundef ptr @_ZNKSt8optionalIN7maliput3api5rules9PhaseRingEEptEv(ptr noundef nonnull align 8 dereferenceable(152) %6) #8
  %38 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7maliput3api5rules9PhaseRing11next_phasesEv(ptr noundef nonnull align 8 dereferenceable(144) %37)
  %39 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEESt6vectorINS3_9PhaseRing9NextPhaseESaIS8_EESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SA_EEE2atERSG_(ptr noundef nonnull align 8 dereferenceable(56) %38, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %40 unwind label %50

40:                                               ; preds = %36
  invoke void @_ZNSt6vectorIN7maliput3api5rules9PhaseRing9NextPhaseESaIS4_EEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %39)
          to label %41 unwind label %50

41:                                               ; preds = %40
  %42 = call noundef zeroext i1 @_ZNKSt6vectorIN7maliput3api5rules9PhaseRing9NextPhaseESaIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  br i1 %42, label %54, label %43

43:                                               ; preds = %41
  %44 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt6vectorIN7maliput3api5rules9PhaseRing9NextPhaseESaIS4_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %45 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt8optionalIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEEEaSIRKS5_EENSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS6_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEESB_ISt6__and_IJSt9is_scalarIS5_ESC_IS5_NSt5decayISF_E4typeEEEEESt16is_constructibleIS5_JSF_EESt13is_assignableIRS5_SF_EEERS6_E4typeEOSF_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(32) %44)
          to label %46 unwind label %52

46:                                               ; preds = %43
  %47 = getelementptr inbounds i8, ptr %44, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %47, i64 16, i1 false)
  br label %54

48:                                               ; preds = %33
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %64

50:                                               ; preds = %40, %36
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %63

52:                                               ; preds = %43
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %62

54:                                               ; preds = %46, %41
  %55 = call noundef ptr @_ZNKSt10unique_ptrIN7maliput19ManualPhaseProviderESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #8
  invoke void @_ZN7maliput19ManualPhaseProvider12AddPhaseRingERKNS_3api22TypeSpecificIdentifierINS1_5rules9PhaseRingEEERKNS2_INS3_5PhaseEEERKSt8optionalIS9_ERKSC_IdE(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %56 unwind label %60

56:                                               ; preds = %54
  call void @_ZNSt6vectorIN7maliput3api5rules9PhaseRing9NextPhaseESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules5PhaseEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  br label %57

57:                                               ; preds = %29, %56
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @_ZNSt14_Optional_baseIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #8
  call void @_ZNSt14_Optional_baseIN7maliput3api5rules9PhaseRingELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(152) %6) #8
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %6) #8
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7maliput3api22TypeSpecificIdentifierINS2_5rules9PhaseRingEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %59 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7maliput3api22TypeSpecificIdentifierINS2_5rules9PhaseRingEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br i1 %59, label %.lr.ph, label %._crit_edge

60:                                               ; preds = %54
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %62

62:                                               ; preds = %60, %52
  %.pn = phi { ptr, i32 } [ %61, %60 ], [ %53, %52 ]
  call void @_ZNSt6vectorIN7maliput3api5rules9PhaseRing9NextPhaseESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  br label %63

63:                                               ; preds = %62, %50
  %.pn.pn = phi { ptr, i32 } [ %.pn, %62 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_5rules5PhaseEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br label %64

64:                                               ; preds = %63, %48
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %63 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @_ZNSt14_Optional_baseIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #8
  br label %65

65:                                               ; preds = %64, %27
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %64 ], [ %28, %27 ]
  call void @_ZNSt14_Optional_baseIN7maliput3api5rules9PhaseRingELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(152) %6) #8
  br label %66

66:                                               ; preds = %65, %25
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %65 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @_ZNSt6vectorIN7maliput3api22TypeSpecificIdentifierINS1_5rules9PhaseRingEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  br label %67

67:                                               ; preds = %66, %18
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %66 ], [ %19, %18 ]
  call void @_ZNSt10unique_ptrIN7maliput19ManualPhaseProviderESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #8
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN7maliput19ManualPhaseProviderEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8) local_unnamed_addr #2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEESt6vectorINS3_9PhaseRing9NextPhaseESaIS8_EESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SA_EEE2atERSG_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt8optionalIN7maliput3api22TypeSpecificIdentifierINS1_5rules5PhaseEEEEaSIRKS5_EENSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS6_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEESB_ISt6__and_IJSt9is_scalarIS5_ESC_IS5_NSt5decayISF_E4typeEEEEESt16is_constructibleIS5_JSF_EESt13is_assignableIRS5_SF_EEERS6_E4typeEOSF_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 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) #6

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput19ManualPhaseProvider12AddPhaseRingERKNS_3api22TypeSpecificIdentifierINS1_5rules9PhaseRingEEERKNS2_INS3_5PhaseEEERKSt8optionalIS9_ERKSC_IdE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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