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

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

%"struct.maliput::common::ComparisonResult.2" = type { %"class.std::optional" }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<std::__cxx11::basic_string<char>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<std::__cxx11::basic_string<char>>::_Storage" = 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.maliput::common::ComparisonResult.79" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.153" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.156" = type { %"class.std::optional" }
%"class.maliput::common::ComparisonResultCollector" = type { i32, i32, %"class.std::__cxx11::basic_string" }
%"struct.std::__detail::_Node_const_iterator.176" = type { %"struct.std::__detail::_Node_iterator_base.177" }
%"struct.std::__detail::_Node_iterator_base.177" = type { ptr }
%"struct.std::pair.178" = type { %"class.maliput::api::TypeSpecificIdentifier.155", %"class.maliput::api::rules::RightOfWayRule::State" }
%"class.maliput::api::TypeSpecificIdentifier.155" = type { %"class.std::__cxx11::basic_string" }
%"class.maliput::api::rules::RightOfWayRule::State" = type { %"class.maliput::api::TypeSpecificIdentifier.155", i32, %"class.std::vector.146" }
%"class.std::vector.146" = type { %"struct.std::_Vector_base.147" }
%"struct.std::_Vector_base.147" = type { %"struct.std::_Vector_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, std::allocator<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, std::allocator<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, std::allocator<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, std::allocator<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [36 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollector9AddResultImEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2 align 2

declare void @_ZN7maliput3api7IsEqualEPKcS2_mm(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.2") align 8, ptr noundef, ptr noundef, i64 noundef, i64 noundef) #3

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollector9AddResultIbEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2 align 2

declare void @_ZN7maliput3api7IsEqualEPKcS2_bb(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.79") align 8, ptr noundef, ptr noundef, i1 noundef zeroext, i1 noundef zeroext) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api5rules7IsEqualERKNS1_14RightOfWayRule5StateES5_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.153") align 8, ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput3api5rules7IsEqualERKSt13unordered_mapINS0_22TypeSpecificIdentifierINS1_14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEESH_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.156") align 8 %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(56) %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.maliput::common::ComparisonResultCollector", align 8
  %8 = alloca %"struct.maliput::common::ComparisonResult.2", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %14 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %18 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %19 = alloca %"struct.maliput::common::ComparisonResult.79", align 8
  %20 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %21 = alloca %"struct.maliput::common::ComparisonResult.79", align 8
  %22 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %23 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %24 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %25 = alloca %"struct.maliput::common::ComparisonResult.153", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #5
  call void @_ZN7maliput6common25ComparisonResultCollectorC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call noundef i64 @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %26) #5
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = call noundef i64 @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %28) #5
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_mm(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.2") align 8 %8, ptr noundef @.str.2, ptr noundef @.str.3, i64 noundef %27, i64 noundef %29)
          to label %30 unwind label %55

30:                                               ; preds = %3
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultImEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 256, ptr noundef @.str.1, ptr noundef %8)
          to label %31 unwind label %59

31:                                               ; preds = %30
  call void @_ZN7maliput6common16ComparisonResultImED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = call noundef i64 @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %32) #5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call noundef i64 @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %34) #5
  %36 = icmp ult i64 %33, %35
  br i1 %36, label %37, label %39

37:                                               ; preds = %31
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  br label %41

39:                                               ; preds = %31
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %39, %37
  %42 = phi ptr [ %38, %37 ], [ %40, %39 ]
  store ptr %42, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %43, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %44) #5
  %46 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.176", ptr %13, i32 0, i32 0
  %47 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.177", ptr %46, i32 0, i32 0
  store ptr %45, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  %49 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %48) #5
  %50 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.176", ptr %14, i32 0, i32 0
  %51 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.177", ptr %50, i32 0, i32 0
  store ptr %49, ptr %51, align 8
  br label %52

52:                                               ; preds = %144, %41
  %53 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br i1 %53, label %63, label %54

54:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %148

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

59:                                               ; preds = %30
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %9, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %10, align 4
  call void @_ZN7maliput6common16ComparisonResultImED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  br label %156

63:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %64 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  store ptr %64, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.std::pair.178", ptr %65, i32 0, i32 0
  store ptr %66, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = load ptr, ptr %16, align 8, !tbaa !5
  %69 = invoke ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4findERSC_(ptr noundef nonnull align 8 dereferenceable(56) %67, ptr noundef nonnull align 8 dereferenceable(32) %68)
          to label %70 unwind label %113

70:                                               ; preds = %63
  %71 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.176", ptr %17, i32 0, i32 0
  %72 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.177", ptr %71, i32 0, i32 0
  store ptr %69, ptr %72, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %16, align 8, !tbaa !5
  %75 = invoke ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4findERSC_(ptr noundef nonnull align 8 dereferenceable(56) %73, ptr noundef nonnull align 8 dereferenceable(32) %74)
          to label %76 unwind label %117

76:                                               ; preds = %70
  %77 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.176", ptr %18, i32 0, i32 0
  %78 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.177", ptr %77, i32 0, i32 0
  store ptr %75, ptr %78, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4cendEv(ptr noundef nonnull align 8 dereferenceable(56) %79) #5
  %81 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.176", ptr %20, i32 0, i32 0
  %82 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.177", ptr %81, i32 0, i32 0
  store ptr %80, ptr %82, align 8
  %83 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_bb(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.79") align 8 %19, ptr noundef @.str.39, ptr noundef @.str.33, i1 noundef zeroext %83, i1 noundef zeroext true)
          to label %84 unwind label %121

84:                                               ; preds = %76
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultIbEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 263, ptr noundef @.str.38, ptr noundef %19)
          to label %85 unwind label %125

85:                                               ; preds = %84
  call void @_ZN7maliput6common16ComparisonResultIbED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4cendEv(ptr noundef nonnull align 8 dereferenceable(56) %86) #5
  %88 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.176", ptr %22, i32 0, i32 0
  %89 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.177", ptr %88, i32 0, i32 0
  store ptr %87, ptr %89, align 8
  %90 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_bb(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.79") align 8 %21, ptr noundef @.str.41, ptr noundef @.str.33, i1 noundef zeroext %90, i1 noundef zeroext true)
          to label %91 unwind label %130

91:                                               ; preds = %85
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultIbEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 264, ptr noundef @.str.40, ptr noundef %21)
          to label %92 unwind label %134

92:                                               ; preds = %91
  call void @_ZN7maliput6common16ComparisonResultIbED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4cendEv(ptr noundef nonnull align 8 dereferenceable(56) %93) #5
  %95 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.176", ptr %23, i32 0, i32 0
  %96 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.177", ptr %95, i32 0, i32 0
  store ptr %94, ptr %96, align 8
  %97 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  br i1 %97, label %98, label %104

98:                                               ; preds = %92
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4cendEv(ptr noundef nonnull align 8 dereferenceable(56) %99) #5
  %101 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator.176", ptr %24, i32 0, i32 0
  %102 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.177", ptr %101, i32 0, i32 0
  store ptr %100, ptr %102, align 8
  %103 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %24) #5
  br label %104

104:                                              ; preds = %98, %92
  %105 = phi i1 [ false, %92 ], [ %103, %98 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br i1 %105, label %106, label %143

106:                                              ; preds = %104
  %107 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %108 = getelementptr inbounds %"struct.std::pair.178", ptr %107, i32 0, i32 1
  %109 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  %110 = getelementptr inbounds %"struct.std::pair.178", ptr %109, i32 0, i32 1
  invoke void @_ZN7maliput3api5rules7IsEqualERKNS1_14RightOfWayRule5StateES5_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.153") align 8 %25, ptr noundef nonnull align 8 dereferenceable(64) %108, ptr noundef nonnull align 8 dereferenceable(64) %110)
          to label %111 unwind label %117

111:                                              ; preds = %106
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules14RightOfWayRule5StateEEEvPKciS8_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 266, ptr noundef @.str.42, ptr noundef %25)
          to label %112 unwind label %139

112:                                              ; preds = %111
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules14RightOfWayRule5StateEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %25) #5
  br label %143

113:                                              ; preds = %63
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %9, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %10, align 4
  br label %147

117:                                              ; preds = %106, %70
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %9, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %10, align 4
  br label %146

121:                                              ; preds = %76
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %9, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %10, align 4
  br label %129

125:                                              ; preds = %84
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %9, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %10, align 4
  call void @_ZN7maliput6common16ComparisonResultIbED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #5
  br label %129

129:                                              ; preds = %125, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %146

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

134:                                              ; preds = %91
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %9, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %10, align 4
  call void @_ZN7maliput6common16ComparisonResultIbED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #5
  br label %138

138:                                              ; preds = %134, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %146

139:                                              ; preds = %111
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %9, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %10, align 4
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules14RightOfWayRule5StateEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %25) #5
  br label %146

143:                                              ; preds = %112, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %144

144:                                              ; preds = %143
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  br label %52

146:                                              ; preds = %139, %138, %129, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %147

147:                                              ; preds = %146, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %155

148:                                              ; preds = %54
  %149 = getelementptr inbounds %"struct.maliput::common::ComparisonResult.156", ptr %0, i32 0, i32 0
  invoke void @_ZNK7maliput6common25ComparisonResultCollector6resultB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::optional") align 8 %149, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %150 unwind label %151

150:                                              ; preds = %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #5
  ret void

151:                                              ; preds = %148
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %9, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %10, align 4
  br label %155

155:                                              ; preds = %151, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %156

156:                                              ; preds = %155, %59, %55
  call void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #5
  br label %157

157:                                              ; preds = %156
  %158 = load ptr, ptr %9, align 8
  %159 = load i32, ptr %10, align 4
  %160 = insertvalue { ptr, i32 } poison, ptr %158, 0
  %161 = insertvalue { ptr, i32 } %160, i32 %159, 1
  resume { ptr, i32 } %161
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules14RightOfWayRule5StateEEEvPKciS8_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2 align 2

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

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

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

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

%"struct.maliput::common::ComparisonResult.2" = type { %"class.std::optional" }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<std::__cxx11::basic_string<char>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<std::__cxx11::basic_string<char>>::_Storage" = 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.maliput::common::ComparisonResult.79" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.153" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.156" = type { %"class.std::optional" }
%"class.maliput::common::ComparisonResultCollector" = type { i32, i32, %"class.std::__cxx11::basic_string" }
%"struct.std::__detail::_Node_const_iterator.176" = type { %"struct.std::__detail::_Node_iterator_base.177" }
%"struct.std::__detail::_Node_iterator_base.177" = type { ptr }

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [36 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollector9AddResultImEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

declare void @_ZN7maliput3api7IsEqualEPKcS2_mm(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.2") align 8, ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollector9AddResultIbEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

declare void @_ZN7maliput3api7IsEqualEPKcS2_bb(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.79") align 8, ptr noundef, ptr noundef, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api5rules7IsEqualERKNS1_14RightOfWayRule5StateES5_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.153") align 8, ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput3api5rules7IsEqualERKSt13unordered_mapINS0_22TypeSpecificIdentifierINS1_14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEESH_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.156") align 8 %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(56) %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.maliput::common::ComparisonResultCollector", align 8
  %5 = alloca %"struct.maliput::common::ComparisonResult.2", align 8
  %6 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %7 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %8 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %9 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %10 = alloca %"struct.maliput::common::ComparisonResult.79", align 8
  %11 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %12 = alloca %"struct.maliput::common::ComparisonResult.79", align 8
  %13 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %14 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %15 = alloca %"struct.std::__detail::_Node_const_iterator.176", align 8
  %16 = alloca %"struct.maliput::common::ComparisonResult.153", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #5
  call void @_ZN7maliput6common25ComparisonResultCollectorC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  %17 = call noundef i64 @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #5
  %18 = call noundef i64 @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %2) #5
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_mm(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.2") align 8 %5, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i64 noundef %17, i64 noundef %18)
          to label %19 unwind label %28

19:                                               ; preds = %3
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultImEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 256, ptr noundef nonnull @.str.1, ptr noundef nonnull %5)
          to label %20 unwind label %30

20:                                               ; preds = %19
  call void @_ZN7maliput6common16ComparisonResultImED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  %21 = call noundef i64 @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #5
  %22 = call noundef i64 @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %2) #5
  %23 = icmp ult i64 %21, %22
  %24 = select i1 %23, ptr %2, ptr %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %25 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %24) #5
  store ptr %25, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %26 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %24) #5
  store ptr %26, ptr %7, align 8
  %27 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %27, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %73, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  invoke void @_ZNK7maliput6common25ComparisonResultCollector6resultB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::optional") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %78 unwind label %79

28:                                               ; preds = %3
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %81

30:                                               ; preds = %19
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultImED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  br label %81

.lr.ph:                                           ; preds = %20, %73
  %32 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %33 = invoke ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4findERSC_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %34 unwind label %57

34:                                               ; preds = %.lr.ph
  store ptr %33, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %35 = invoke ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4findERSC_(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %36 unwind label %59

36:                                               ; preds = %34
  store ptr %35, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %37 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4cendEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #5
  store ptr %37, ptr %11, align 8
  %38 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_bb(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.79") align 8 %10, ptr noundef nonnull @.str.39, ptr noundef nonnull @.str.33, i1 noundef zeroext %38, i1 noundef zeroext true)
          to label %39 unwind label %61

39:                                               ; preds = %36
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultIbEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 263, ptr noundef nonnull @.str.38, ptr noundef nonnull %10)
          to label %40 unwind label %63

40:                                               ; preds = %39
  call void @_ZN7maliput6common16ComparisonResultIbED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %41 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4cendEv(ptr noundef nonnull align 8 dereferenceable(56) %2) #5
  store ptr %41, ptr %13, align 8
  %42 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_bb(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.79") align 8 %12, ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.33, i1 noundef zeroext %42, i1 noundef zeroext true)
          to label %43 unwind label %66

43:                                               ; preds = %40
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultIbEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 264, ptr noundef nonnull @.str.40, ptr noundef nonnull %12)
          to label %44 unwind label %68

44:                                               ; preds = %43
  call void @_ZN7maliput6common16ComparisonResultIbED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %45 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4cendEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #5
  store ptr %45, ptr %14, align 8
  %46 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  br i1 %46, label %47, label %.critedge

47:                                               ; preds = %44
  %48 = call ptr @_ZNKSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules14RightOfWayRule5StateEEES5_St4hashIS6_ESt8equal_toIS6_ESaISt4pairIKS6_S5_EEE4cendEv(ptr noundef nonnull align 8 dereferenceable(56) %2) #5
  store ptr %48, ptr %15, align 8
  %49 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br i1 %49, label %50, label %73

50:                                               ; preds = %47
  %51 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %52 = getelementptr inbounds i8, ptr %51, i64 32
  %53 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %54 = getelementptr inbounds i8, ptr %53, i64 32
  invoke void @_ZN7maliput3api5rules7IsEqualERKNS1_14RightOfWayRule5StateES5_(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.153") align 8 %16, ptr noundef nonnull align 8 dereferenceable(64) %52, ptr noundef nonnull align 8 dereferenceable(64) %54)
          to label %55 unwind label %59

55:                                               ; preds = %50
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules14RightOfWayRule5StateEEEvPKciS8_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 266, ptr noundef nonnull @.str.42, ptr noundef nonnull %16)
          to label %56 unwind label %71

56:                                               ; preds = %55
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules14RightOfWayRule5StateEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #5
  br label %73

57:                                               ; preds = %.lr.ph
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %77

59:                                               ; preds = %50, %34
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %76

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

63:                                               ; preds = %39
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultIbED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  br label %65

65:                                               ; preds = %63, %61
  %.pn = phi { ptr, i32 } [ %64, %63 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %76

66:                                               ; preds = %40
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %70

68:                                               ; preds = %43
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultIbED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #5
  br label %70

70:                                               ; preds = %68, %66
  %.pn26 = phi { ptr, i32 } [ %69, %68 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  br label %76

71:                                               ; preds = %55
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules14RightOfWayRule5StateEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #5
  br label %76

.critedge:                                        ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br label %73

73:                                               ; preds = %.critedge, %56, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %75 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN7maliput3api22TypeSpecificIdentifierINS3_5rules14RightOfWayRule5StateEEES7_ELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %75, label %.lr.ph, label %._crit_edge

76:                                               ; preds = %71, %70, %65, %59
  %.pn28 = phi { ptr, i32 } [ %72, %71 ], [ %60, %59 ], [ %.pn26, %70 ], [ %.pn, %65 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %77

77:                                               ; preds = %76, %57
  %.pn28.pn = phi { ptr, i32 } [ %.pn28, %76 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %81

78:                                               ; preds = %._crit_edge
  call void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  ret void

79:                                               ; preds = %._crit_edge
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %81

81:                                               ; preds = %77, %79, %30, %28
  %.pn28.pn.pn.pn = phi { ptr, i32 } [ %31, %30 ], [ %29, %28 ], [ %.pn28.pn, %77 ], [ %80, %79 ]
  call void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn28.pn.pn.pn
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules14RightOfWayRule5StateEEEvPKciS8_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

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

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

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

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