; LLVM IR from maliput/maliput :: src/maliput/routing/graph (graph_utils)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<maliput::routing::graph::Edge>, std::allocator<std::vector<maliput::routing::graph::Edge>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<maliput::routing::graph::Edge>, std::allocator<std::vector<maliput::routing::graph::Edge>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<maliput::routing::graph::Edge>, std::allocator<std::vector<maliput::routing::graph::Edge>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<maliput::routing::graph::Edge>, std::allocator<std::vector<maliput::routing::graph::Edge>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::set.36" = type { %"class.std::_Rb_tree.37" }
%"class.std::_Rb_tree.37" = type { %"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>, maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>, std::_Identity<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>, maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>, std::_Identity<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"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] }
%"struct.std::less" = type { i8 }
%"class.std::allocator.42" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.45" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::_Not_fn" = type { ptr }
%"struct.maliput::routing::graph::Graph" = type { %"class.std::unordered_map", %"class.std::unordered_map.5" }
%"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.5" = type { %"class.std::_Hashtable.6" }
%"class.std::_Hashtable.6" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.maliput::routing::graph::Node" = type { %"class.maliput::api::TypeSpecificIdentifier", %"class.std::set", %"class.std::set.30" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<const maliput::api::BranchPoint *, const maliput::api::BranchPoint *, std::_Identity<const maliput::api::BranchPoint *>, std::less<const maliput::api::BranchPoint *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const maliput::api::BranchPoint *, const maliput::api::BranchPoint *, std::_Identity<const maliput::api::BranchPoint *>, std::less<const maliput::api::BranchPoint *>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::set.30" = type { %"class.std::_Rb_tree.31" }
%"class.std::_Rb_tree.31" = type { %"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>, maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>, std::_Identity<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>, maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>, std::_Identity<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Edge>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }

@.str = external hidden unnamed_addr constant [48 x i8], align 1
@__func__._ZN7maliput7routing5graph20FindAllEdgeSequencesERKNS1_5GraphERKNS1_4NodeES7_ = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7routing5graph20FindAllEdgeSequencesERKNS1_5GraphERKNS1_4NodeES7_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %1, ptr noundef nonnull align 8 dereferenceable(128) %2, ptr noundef nonnull align 8 dereferenceable(128) %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %10 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %11 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %12 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %13 = alloca i1, align 1
  %14 = alloca %"class.std::set.36", align 8
  %15 = alloca %"class.std::initializer_list", align 8
  %16 = alloca [1 x %"class.maliput::api::TypeSpecificIdentifier"], align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::less", align 1
  %21 = alloca %"class.std::allocator.42", align 1
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.45", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.std::_Not_fn", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.45", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.maliput::routing::graph::Graph", ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.maliput::routing::graph::Node", ptr %33, i32 0, i32 0
  %35 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4findERSC_(ptr noundef nonnull align 8 dereferenceable(56) %32, ptr noundef nonnull align 8 dereferenceable(32) %34)
  %36 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %9, i32 0, i32 0
  %37 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %36, i32 0, i32 0
  store ptr %35, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.maliput::routing::graph::Graph", ptr %38, i32 0, i32 1
  %40 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %39) #7
  %41 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %10, i32 0, i32 0
  %42 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %41, i32 0, i32 0
  store ptr %40, ptr %42, align 8
  %43 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS2_7routing5graph4NodeEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  %44 = xor i1 %43, true
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br i1 %44, label %45, label %46

45:                                               ; preds = %30
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str, ptr noundef @__func__._ZN7maliput7routing5graph20FindAllEdgeSequencesERKNS1_5GraphERKNS1_4NodeES7_, ptr noundef @.str.1, i32 noundef 184) #8
  unreachable

46:                                               ; preds = %30
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.maliput::routing::graph::Graph", ptr %49, i32 0, i32 1
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.maliput::routing::graph::Node", ptr %51, i32 0, i32 0
  %53 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4findERSC_(ptr noundef nonnull align 8 dereferenceable(56) %50, ptr noundef nonnull align 8 dereferenceable(32) %52)
  %54 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %11, i32 0, i32 0
  %55 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %54, i32 0, i32 0
  store ptr %53, ptr %55, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.maliput::routing::graph::Graph", ptr %56, i32 0, i32 1
  %58 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %57) #7
  %59 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %12, i32 0, i32 0
  %60 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %59, i32 0, i32 0
  store ptr %58, ptr %60, align 8
  %61 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS2_7routing5graph4NodeEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %62 = xor i1 %61, true
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br i1 %62, label %63, label %64

63:                                               ; preds = %48
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.2, ptr noundef @__func__._ZN7maliput7routing5graph20FindAllEdgeSequencesERKNS1_5GraphERKNS1_4NodeES7_, ptr noundef @.str.1, i32 noundef 185) #8
  unreachable

64:                                               ; preds = %48
  br label %65

65:                                               ; preds = %64
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.maliput::routing::graph::Node", ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.maliput::routing::graph::Node", ptr %68, i32 0, i32 0
  %70 = call noundef zeroext i1 @_ZNK7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEeqERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %67, ptr noundef nonnull align 8 dereferenceable(32) %69)
  br i1 %70, label %71, label %72

71:                                               ; preds = %65
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIS_IN7maliput7routing5graph4EdgeESaIS3_EESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %158

72:                                               ; preds = %65
  store i1 false, ptr %13, align 1
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #7
  store ptr %16, ptr %17, align 8
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.maliput::routing::graph::Node", ptr %76, i32 0, i32 0
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %77)
          to label %78 unwind label %119

78:                                               ; preds = %72
  %79 = getelementptr inbounds %"class.std::initializer_list", ptr %15, i32 0, i32 0
  store ptr %16, ptr %79, align 8, !tbaa !9
  %80 = getelementptr inbounds %"class.std::initializer_list", ptr %15, i32 0, i32 1
  store i64 1, ptr %80, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  call void @_ZNSaIN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  %81 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8
  %83 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %84 = load i64, ptr %83, align 8
  invoke void @_ZNSt3setIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEESt4lessIS6_ESaIS6_EEC2ESt16initializer_listIS6_ERKS8_RKS9_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr %82, i64 %84, ptr noundef nonnull align 1 dereferenceable(1) %20, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %85 unwind label %130

85:                                               ; preds = %78
  invoke void @_ZN7maliput7routing5graph12_GLOBAL__N_126FindAllEdgeSequencesHelperERKNS1_5GraphERKNS1_4NodeES8_RKSt3setINS_3api22TypeSpecificIdentifierIS6_EESt4lessISC_ESaISC_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %73, ptr noundef nonnull align 8 dereferenceable(128) %74, ptr noundef nonnull align 8 dereferenceable(128) %75, ptr noundef nonnull align 8 dereferenceable(48) %14)
          to label %86 unwind label %134

86:                                               ; preds = %85
  call void @_ZNSt3setIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEESt4lessIS6_ESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  call void @_ZNSt15__new_allocatorIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  %87 = getelementptr inbounds [1 x %"class.maliput::api::TypeSpecificIdentifier"], ptr %16, i32 0, i32 0
  %88 = getelementptr inbounds %"class.maliput::api::TypeSpecificIdentifier", ptr %87, i64 1
  br label %89

89:                                               ; preds = %89, %86
  %90 = phi ptr [ %88, %86 ], [ %91, %89 ]
  %91 = getelementptr inbounds %"class.maliput::api::TypeSpecificIdentifier", ptr %90, i64 -1
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %91) #7
  %92 = icmp eq ptr %91, %87
  br i1 %92, label %93, label %89

93:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %94 = call ptr @_ZNSt6vectorIS_IN7maliput7routing5graph4EdgeESaIS3_EESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %95 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %94, ptr %95, align 8
  %96 = call ptr @_ZNSt6vectorIS_IN7maliput7routing5graph4EdgeESaIS3_EESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  %98 = call ptr @_ZSt6not_fnIRFbRKSt6vectorIN7maliput7routing5graph4EdgeESaIS4_EEEEDaOT_(ptr noundef nonnull @_ZN7maliput7routing5graph12_GLOBAL__N_118IsSequenceDrivableERKSt6vectorINS1_4EdgeESaIS4_EE) #7
  %99 = getelementptr inbounds %"class.std::_Not_fn", ptr %26, i32 0, i32 0
  store ptr %98, ptr %99, align 8
  %100 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8
  %102 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8
  %104 = getelementptr inbounds %"class.std::_Not_fn", ptr %26, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8
  %106 = invoke ptr @_ZSt9remove_ifIN9__gnu_cxx17__normal_iteratorIPSt6vectorIN7maliput7routing5graph4EdgeESaIS6_EES2_IS8_SaIS8_EEEESt7_Not_fnIPFbRKS8_EEET_SJ_SJ_T0_(ptr %101, ptr %103, ptr %105)
          to label %107 unwind label %147

107:                                              ; preds = %93
  %108 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %106, ptr %108, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKSt6vectorIN7maliput7routing5graph4EdgeESaIS5_EES1_IS7_SaIS7_EEEC2IPS7_vEERKNS0_IT_SB_EE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %109 = call ptr @_ZNSt6vectorIS_IN7maliput7routing5graph4EdgeESaIS3_EESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %110 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %109, ptr %110, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKSt6vectorIN7maliput7routing5graph4EdgeESaIS5_EES1_IS7_SaIS7_EEEC2IPS7_vEERKNS0_IT_SB_EE(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  %111 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.45", ptr %22, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8
  %113 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.45", ptr %27, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8
  %115 = invoke ptr @_ZNSt6vectorIS_IN7maliput7routing5graph4EdgeESaIS3_EESaIS5_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS5_S7_EESC_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %112, ptr %114)
          to label %116 unwind label %151

116:                                              ; preds = %107
  %117 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %115, ptr %117, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  store i1 true, ptr %13, align 1
  %118 = load i1, ptr %13, align 1
  br i1 %118, label %157, label %156

119:                                              ; preds = %72
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %18, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %19, align 4
  %123 = load ptr, ptr %17, align 8
  %124 = icmp eq ptr %16, %123
  br i1 %124, label %129, label %125

125:                                              ; preds = %125, %119
  %126 = phi ptr [ %123, %119 ], [ %127, %125 ]
  %127 = getelementptr inbounds %"class.maliput::api::TypeSpecificIdentifier", ptr %126, i64 -1
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %127) #7
  %128 = icmp eq ptr %127, %16
  br i1 %128, label %129, label %125

129:                                              ; preds = %125, %119
  br label %146

130:                                              ; preds = %78
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %18, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %19, align 4
  br label %138

134:                                              ; preds = %85
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %18, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %19, align 4
  call void @_ZNSt3setIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEESt4lessIS6_ESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  br label %138

138:                                              ; preds = %134, %130
  call void @_ZNSt15__new_allocatorIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  %139 = getelementptr inbounds [1 x %"class.maliput::api::TypeSpecificIdentifier"], ptr %16, i32 0, i32 0
  %140 = getelementptr inbounds %"class.maliput::api::TypeSpecificIdentifier", ptr %139, i64 1
  br label %141

141:                                              ; preds = %141, %138
  %142 = phi ptr [ %140, %138 ], [ %143, %141 ]
  %143 = getelementptr inbounds %"class.maliput::api::TypeSpecificIdentifier", ptr %142, i64 -1
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %143) #7
  %144 = icmp eq ptr %143, %139
  br i1 %144, label %145, label %141

145:                                              ; preds = %141
  br label %146

146:                                              ; preds = %145, %129
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #7
  br label %159

147:                                              ; preds = %93
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %18, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %19, align 4
  br label %155

151:                                              ; preds = %107
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %18, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %155

155:                                              ; preds = %151, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @_ZNSt6vectorIS_IN7maliput7routing5graph4EdgeESaIS3_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %159

156:                                              ; preds = %116
  call void @_ZNSt6vectorIS_IN7maliput7routing5graph4EdgeESaIS3_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %157

157:                                              ; preds = %156, %116
  br label %158

158:                                              ; preds = %157, %71
  ret void

159:                                              ; preds = %155, %146
  %160 = load ptr, ptr %18, align 8
  %161 = load i32, ptr %19, align 4
  %162 = insertvalue { ptr, i32 } poison, ptr %160, 0
  %163 = insertvalue { ptr, i32 } %162, i32 %161, 1
  resume { ptr, i32 } %163
}

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7maliput7routing5graph12_GLOBAL__N_126FindAllEdgeSequencesHelperERKNS1_5GraphERKNS1_4NodeES8_RKSt3setINS_3api22TypeSpecificIdentifierIS6_EESt4lessISC_ESaISC_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(48)) #0

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt9remove_ifIN9__gnu_cxx17__normal_iteratorIPSt6vectorIN7maliput7routing5graph4EdgeESaIS6_EES2_IS8_SaIS8_EEEESt7_Not_fnIPFbRKS8_EEET_SJ_SJ_T0_(ptr, ptr, ptr) #6

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt6not_fnIRFbRKSt6vectorIN7maliput7routing5graph4EdgeESaIS4_EEEEDaOT_(ptr noundef nonnull) #5

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN7maliput7routing5graph12_GLOBAL__N_118IsSequenceDrivableERKSt6vectorINS1_4EdgeESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24)) #0

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSSt16initializer_listIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEEE", !6, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<maliput::routing::graph::Edge>, std::allocator<std::vector<maliput::routing::graph::Edge>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<maliput::routing::graph::Edge>, std::allocator<std::vector<maliput::routing::graph::Edge>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<maliput::routing::graph::Edge>, std::allocator<std::vector<maliput::routing::graph::Edge>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<maliput::routing::graph::Edge>, std::allocator<std::vector<maliput::routing::graph::Edge>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::set.36" = type { %"class.std::_Rb_tree.37" }
%"class.std::_Rb_tree.37" = type { %"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>, maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>, std::_Identity<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>, maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>, std::_Identity<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::routing::graph::Node>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.maliput::api::TypeSpecificIdentifier" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.std::less" = type { i8 }
%"class.std::allocator.42" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.45" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [48 x i8], align 1
@__func__._ZN7maliput7routing5graph20FindAllEdgeSequencesERKNS1_5GraphERKNS1_4NodeES7_ = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7routing5graph20FindAllEdgeSequencesERKNS1_5GraphERKNS1_4NodeES7_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %1, ptr noundef nonnull align 8 dereferenceable(128) %2, ptr noundef nonnull align 8 dereferenceable(128) %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %6 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %7 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %8 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %9 = alloca %"class.std::set.36", align 8
  %10 = alloca [1 x %"class.maliput::api::TypeSpecificIdentifier"], align 8
  %11 = alloca %"struct.std::less", align 1
  %12 = alloca %"class.std::allocator.42", align 1
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.45", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.45", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %17 = getelementptr inbounds i8, ptr %1, i64 56
  %18 = tail call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4findERSC_(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull align 8 dereferenceable(32) %2)
  store ptr %18, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %19 = tail call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %17) #7
  store ptr %19, ptr %6, align 8
  %20 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS2_7routing5graph4NodeEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br i1 %20, label %22, label %21

21:                                               ; preds = %4
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN7maliput7routing5graph20FindAllEdgeSequencesERKNS1_5GraphERKNS1_4NodeES7_, ptr noundef nonnull @.str.1, i32 noundef 184) #8
  unreachable

22:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %23 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4findERSC_(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull align 8 dereferenceable(32) %3)
  store ptr %23, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %24 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %17) #7
  store ptr %24, ptr %8, align 8
  %25 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS2_7routing5graph4NodeEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  call void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZN7maliput7routing5graph20FindAllEdgeSequencesERKNS1_5GraphERKNS1_4NodeES7_, ptr noundef nonnull @.str.1, i32 noundef 185) #8
  unreachable

27:                                               ; preds = %22
  %28 = call noundef zeroext i1 @_ZNK7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEeqERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %3)
  br i1 %28, label %29, label %30

29:                                               ; preds = %27
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIS_IN7maliput7routing5graph4EdgeESaIS3_EESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %55

30:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  invoke void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %31 unwind label %44

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #7
  call void @_ZNSaIN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  invoke void @_ZNSt3setIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEESt4lessIS6_ESaIS6_EEC2ESt16initializer_listIS6_ERKS8_RKS9_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr nonnull %10, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %32 unwind label %46

32:                                               ; preds = %31
  invoke void @_ZN7maliput7routing5graph12_GLOBAL__N_126FindAllEdgeSequencesHelperERKNS1_5GraphERKNS1_4NodeES8_RKSt3setINS_3api22TypeSpecificIdentifierIS6_EESt4lessISC_ESaISC_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %1, ptr noundef nonnull align 8 dereferenceable(128) %2, ptr noundef nonnull align 8 dereferenceable(128) %3, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %33 unwind label %48

33:                                               ; preds = %32
  call void @_ZNSt3setIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEESt4lessIS6_ESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  call void @_ZNSt15__new_allocatorIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %34 = call ptr @_ZNSt6vectorIS_IN7maliput7routing5graph4EdgeESaIS3_EESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %35 = call ptr @_ZNSt6vectorIS_IN7maliput7routing5graph4EdgeESaIS3_EESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %36 = call ptr @_ZSt6not_fnIRFbRKSt6vectorIN7maliput7routing5graph4EdgeESaIS4_EEEEDaOT_(ptr noundef nonnull @_ZN7maliput7routing5graph12_GLOBAL__N_118IsSequenceDrivableERKSt6vectorINS1_4EdgeESaIS4_EE) #7
  %37 = invoke ptr @_ZSt9remove_ifIN9__gnu_cxx17__normal_iteratorIPSt6vectorIN7maliput7routing5graph4EdgeESaIS6_EES2_IS8_SaIS8_EEEESt7_Not_fnIPFbRKS8_EEET_SJ_SJ_T0_(ptr %34, ptr %35, ptr %36)
          to label %38 unwind label %50

38:                                               ; preds = %33
  store ptr %37, ptr %14, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKSt6vectorIN7maliput7routing5graph4EdgeESaIS5_EES1_IS7_SaIS7_EEEC2IPS7_vEERKNS0_IT_SB_EE(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %39 = call ptr @_ZNSt6vectorIS_IN7maliput7routing5graph4EdgeESaIS3_EESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  store ptr %39, ptr %16, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKSt6vectorIN7maliput7routing5graph4EdgeESaIS5_EES1_IS7_SaIS7_EEEC2IPS7_vEERKNS0_IT_SB_EE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %40 = load ptr, ptr %13, align 8
  %41 = load ptr, ptr %15, align 8
  %42 = invoke ptr @_ZNSt6vectorIS_IN7maliput7routing5graph4EdgeESaIS3_EESaIS5_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS5_S7_EESC_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %40, ptr %41)
          to label %43 unwind label %52

43:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %55

44:                                               ; preds = %30
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

46:                                               ; preds = %31
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

48:                                               ; preds = %32
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt3setIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEESt4lessIS6_ESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %48, %46
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ]
  call void @_ZNSt15__new_allocatorIN7maliput3api22TypeSpecificIdentifierINS0_7routing5graph4NodeEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS_7routing5graph4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %44
  %.pn.pn = phi { ptr, i32 } [ %45, %44 ], [ %.pn, %.loopexit.loopexit ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #7
  br label %56

50:                                               ; preds = %33
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %54

52:                                               ; preds = %38
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br label %54

54:                                               ; preds = %52, %50
  %.pn26 = phi { ptr, i32 } [ %53, %52 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @_ZNSt6vectorIS_IN7maliput7routing5graph4EdgeESaIS3_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %56

55:                                               ; preds = %43, %29
  ret void

56:                                               ; preds = %54, %.loopexit
  %.pn26.pn = phi { ptr, i32 } [ %.pn26, %54 ], [ %.pn.pn, %.loopexit ]
  resume { ptr, i32 } %.pn26.pn
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7maliput7routing5graph12_GLOBAL__N_126FindAllEdgeSequencesHelperERKNS1_5GraphERKNS1_4NodeES8_RKSt3setINS_3api22TypeSpecificIdentifierIS6_EESt4lessISC_ESaISC_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt9remove_ifIN9__gnu_cxx17__normal_iteratorIPSt6vectorIN7maliput7routing5graph4EdgeESaIS6_EES2_IS8_SaIS8_EEEESt7_Not_fnIPFbRKS8_EEET_SJ_SJ_T0_(ptr, ptr, ptr) local_unnamed_addr #6

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt6not_fnIRFbRKSt6vectorIN7maliput7routing5graph4EdgeESaIS4_EEEEDaOT_(ptr noundef nonnull) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN7maliput7routing5graph12_GLOBAL__N_118IsSequenceDrivableERKSt6vectorINS1_4EdgeESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24)) #0

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass