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

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

%"struct.maliput::api::rules::RoadRulebook::QueryResults" = type { %"class.std::map", %"class.std::map.0", %"class.std::map.6", %"class.std::map.12", %"class.std::map.18" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, maliput::api::rules::RightOfWayRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, maliput::api::rules::RightOfWayRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, maliput::api::rules::RightOfWayRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, maliput::api::rules::RightOfWayRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>>>::_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::map.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>, maliput::api::rules::SpeedLimitRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>, maliput::api::rules::SpeedLimitRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>, maliput::api::rules::SpeedLimitRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>, maliput::api::rules::SpeedLimitRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.6" = type { %"class.std::_Rb_tree.7" }
%"class.std::_Rb_tree.7" = type { %"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>, maliput::api::rules::DirectionUsageRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>, maliput::api::rules::DirectionUsageRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>, maliput::api::rules::DirectionUsageRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>, maliput::api::rules::DirectionUsageRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.12" = type { %"class.std::_Rb_tree.13" }
%"class.std::_Rb_tree.13" = type { %"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::DiscreteValueRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::DiscreteValueRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::DiscreteValueRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::DiscreteValueRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.18" = type { %"class.std::_Rb_tree.19" }
%"class.std::_Rb_tree.19" = type { %"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::RangeValueRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::RangeValueRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::RangeValueRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::RangeValueRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.__gnu_cxx::__normal_iterator.31" = type { ptr }
%"class.std::function.32" = type { %"class.std::_Function_base", ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput11FilterRulesERKNS_3api5rules12RoadRulebook12QueryResultsERKSt6vectorISt8functionIFbRKNS1_17DiscreteValueRuleEEESaISC_EERKS6_IS7_IFbRKNS1_14RangeValueRuleEEESaISL_EE(ptr dead_on_unwind noalias writable sret(%"struct.maliput::api::rules::RoadRulebook::QueryResults") align 8 %0, ptr noundef nonnull align 8 dereferenceable(240) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %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 i1, align 1
  %10 = alloca ptr, align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::map.12", align 8
  %15 = alloca %"class.std::function", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.31", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.31", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.std::map.18", align 8
  %23 = alloca %"class.std::function.32", 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
  store i1 false, ptr %9, align 1
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN7maliput3api5rules12RoadRulebook12QueryResultsC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(240) %0, ptr noundef nonnull align 8 dereferenceable(240) %24)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %25, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = call ptr @_ZNKSt6vectorISt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEESaIS8_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  %28 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %27, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = call ptr @_ZNKSt6vectorISt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEESaIS8_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  %31 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %30, ptr %31, align 8
  br label %32

32:                                               ; preds = %43, %4
  %33 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEESt6vectorIS9_SaIS9_EEEEbRKNS_17__normal_iteratorIT_T0_EESK_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br i1 %33, label %35, label %34

34:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %54

35:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %36 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEESt6vectorIS9_SaIS9_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  store ptr %36, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #5
  %37 = getelementptr inbounds %"struct.maliput::api::rules::RoadRulebook::QueryResults", ptr %0, i32 0, i32 3
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZNSt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %39 unwind label %45

39:                                               ; preds = %35
  invoke void @_ZN7maliput12_GLOBAL__N_19FilterMapINS_3api22TypeSpecificIdentifierINS2_5rules4RuleEEENS4_17DiscreteValueRuleEEESt3mapIT_T0_St4lessIS9_ESaISt4pairIKS9_SA_EEERKSH_St8functionIFbRKSA_EE(ptr dead_on_unwind writable sret(%"class.std::map.12") align 8 %14, ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef %15)
          to label %40 unwind label %49

40:                                               ; preds = %39
  %41 = getelementptr inbounds %"struct.maliput::api::rules::RoadRulebook::QueryResults", ptr %0, i32 0, i32 3
  %42 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules4RuleEEENS3_17DiscreteValueRuleESt4lessIS5_ESaISt4pairIKS5_S6_EEEaSEOSD_(ptr noundef nonnull align 8 dereferenceable(48) %41, ptr noundef nonnull align 8 dereferenceable(48) %14) #5
  call void @_ZNSt3mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules4RuleEEENS3_17DiscreteValueRuleESt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %43

43:                                               ; preds = %40
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEESt6vectorIS9_SaIS9_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br label %32

45:                                               ; preds = %35
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %16, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %17, align 4
  br label %53

49:                                               ; preds = %39
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %16, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %17, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %53

53:                                               ; preds = %49, %45
  call void @llvm.lifetime.end.p0(i64 48, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %88

54:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %55, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %56 = load ptr, ptr %18, align 8, !tbaa !5
  %57 = call ptr @_ZNKSt6vectorISt8functionIFbRKN7maliput3api5rules14RangeValueRuleEEESaIS8_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #5
  %58 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.31", ptr %19, i32 0, i32 0
  store ptr %57, ptr %58, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %59 = load ptr, ptr %18, align 8, !tbaa !5
  %60 = call ptr @_ZNKSt6vectorISt8functionIFbRKN7maliput3api5rules14RangeValueRuleEEESaIS8_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #5
  %61 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.31", ptr %20, i32 0, i32 0
  store ptr %60, ptr %61, align 8
  br label %62

62:                                               ; preds = %73, %54
  %63 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt8functionIFbRKN7maliput3api5rules14RangeValueRuleEEESt6vectorIS9_SaIS9_EEEEbRKNS_17__normal_iteratorIT_T0_EESK_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  br i1 %63, label %65, label %64

64:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %84

65:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %66 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt8functionIFbRKN7maliput3api5rules14RangeValueRuleEEESt6vectorIS9_SaIS9_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  store ptr %66, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %22) #5
  %67 = getelementptr inbounds %"struct.maliput::api::rules::RoadRulebook::QueryResults", ptr %0, i32 0, i32 4
  %68 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZNSt8functionIFbRKN7maliput3api5rules14RangeValueRuleEEEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %68)
          to label %69 unwind label %75

69:                                               ; preds = %65
  invoke void @_ZN7maliput12_GLOBAL__N_19FilterMapINS_3api22TypeSpecificIdentifierINS2_5rules4RuleEEENS4_14RangeValueRuleEEESt3mapIT_T0_St4lessIS9_ESaISt4pairIKS9_SA_EEERKSH_St8functionIFbRKSA_EE(ptr dead_on_unwind writable sret(%"class.std::map.18") align 8 %22, ptr noundef nonnull align 8 dereferenceable(48) %67, ptr noundef %23)
          to label %70 unwind label %79

70:                                               ; preds = %69
  %71 = getelementptr inbounds %"struct.maliput::api::rules::RoadRulebook::QueryResults", ptr %0, i32 0, i32 4
  %72 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules4RuleEEENS3_14RangeValueRuleESt4lessIS5_ESaISt4pairIKS5_S6_EEEaSEOSD_(ptr noundef nonnull align 8 dereferenceable(48) %71, ptr noundef nonnull align 8 dereferenceable(48) %22) #5
  call void @_ZNSt3mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules4RuleEEENS3_14RangeValueRuleESt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %73

73:                                               ; preds = %70
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt8functionIFbRKN7maliput3api5rules14RangeValueRuleEEESt6vectorIS9_SaIS9_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  br label %62

75:                                               ; preds = %65
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %16, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %17, align 4
  br label %83

79:                                               ; preds = %69
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %16, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %17, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  br label %83

83:                                               ; preds = %79, %75
  call void @llvm.lifetime.end.p0(i64 48, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %88

84:                                               ; preds = %64
  store i1 true, ptr %9, align 1
  %85 = load i1, ptr %9, align 1
  br i1 %85, label %87, label %86

86:                                               ; preds = %84
  call void @_ZN7maliput3api5rules12RoadRulebook12QueryResultsD2Ev(ptr noundef nonnull align 8 dereferenceable(240) %0) #5
  br label %87

87:                                               ; preds = %86, %84
  ret void

88:                                               ; preds = %83, %53
  call void @_ZN7maliput3api5rules12RoadRulebook12QueryResultsD2Ev(ptr noundef nonnull align 8 dereferenceable(240) %0) #5
  br label %89

89:                                               ; preds = %88
  %90 = load ptr, ptr %16, align 8
  %91 = load i32, ptr %17, align 4
  %92 = insertvalue { ptr, i32 } poison, ptr %90, 0
  %93 = insertvalue { ptr, i32 } %92, i32 %91, 1
  resume { ptr, i32 } %93
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEEC2ERKS7_(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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules4RuleEEENS3_17DiscreteValueRuleESt4lessIS5_ESaISt4pairIKS5_S6_EEEaSEOSD_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules4RuleEEENS3_17DiscreteValueRuleESt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEESt6vectorIS9_SaIS9_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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::api::rules::RoadRulebook::QueryResults" = type { %"class.std::map", %"class.std::map.0", %"class.std::map.6", %"class.std::map.12", %"class.std::map.18" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, maliput::api::rules::RightOfWayRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, maliput::api::rules::RightOfWayRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, maliput::api::rules::RightOfWayRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>, maliput::api::rules::RightOfWayRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::RightOfWayRule>>>::_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::map.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>, maliput::api::rules::SpeedLimitRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>, maliput::api::rules::SpeedLimitRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>, maliput::api::rules::SpeedLimitRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>, maliput::api::rules::SpeedLimitRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::SpeedLimitRule>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.6" = type { %"class.std::_Rb_tree.7" }
%"class.std::_Rb_tree.7" = type { %"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>, maliput::api::rules::DirectionUsageRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>, maliput::api::rules::DirectionUsageRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>, maliput::api::rules::DirectionUsageRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>, maliput::api::rules::DirectionUsageRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::DirectionUsageRule>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.12" = type { %"class.std::_Rb_tree.13" }
%"class.std::_Rb_tree.13" = type { %"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::DiscreteValueRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::DiscreteValueRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::DiscreteValueRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::DiscreteValueRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.18" = type { %"class.std::_Rb_tree.19" }
%"class.std::_Rb_tree.19" = type { %"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::RangeValueRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::RangeValueRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::RangeValueRule>, std::_Select1st<std::pair<const maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>, maliput::api::rules::RangeValueRule>>, std::less<maliput::api::TypeSpecificIdentifier<maliput::api::rules::Rule>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.__gnu_cxx::__normal_iterator.31" = type { ptr }
%"class.std::function.32" = type { %"class.std::_Function_base", ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput11FilterRulesERKNS_3api5rules12RoadRulebook12QueryResultsERKSt6vectorISt8functionIFbRKNS1_17DiscreteValueRuleEEESaISC_EERKS6_IS7_IFbRKNS1_14RangeValueRuleEEESaISL_EE(ptr dead_on_unwind noalias nonnull writable sret(%"struct.maliput::api::rules::RoadRulebook::QueryResults") align 8 %0, ptr noundef nonnull align 8 dereferenceable(240) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.std::map.12", align 8
  %8 = alloca %"class.std::function", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.31", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.31", align 8
  %11 = alloca %"class.std::map.18", align 8
  %12 = alloca %"class.std::function.32", align 8
  tail call void @_ZN7maliput3api5rules12RoadRulebook12QueryResultsC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(240) %0, ptr noundef nonnull align 8 dereferenceable(240) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %13 = tail call ptr @_ZNKSt6vectorISt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEESaIS8_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %13, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %14 = tail call ptr @_ZNKSt6vectorISt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEESaIS8_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %14, ptr %6, align 8
  %15 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEESt6vectorIS9_SaIS9_EEEEbRKNS_17__normal_iteratorIT_T0_EESK_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %15, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %16 = getelementptr inbounds i8, ptr %0, i64 144
  br label %21

._crit_edge:                                      ; preds = %24, %4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %17 = call ptr @_ZNKSt6vectorISt8functionIFbRKN7maliput3api5rules14RangeValueRuleEEESaIS8_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %17, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %18 = call ptr @_ZNKSt6vectorISt8functionIFbRKN7maliput3api5rules14RangeValueRuleEEESaIS8_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %18, ptr %10, align 8
  %19 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt8functionIFbRKN7maliput3api5rules14RangeValueRuleEEESt6vectorIS9_SaIS9_EEEEbRKNS_17__normal_iteratorIT_T0_EESK_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %19, label %.lr.ph19, label %._crit_edge20

.lr.ph19:                                         ; preds = %._crit_edge
  %20 = getelementptr inbounds i8, ptr %0, i64 192
  br label %33

21:                                               ; preds = %.lr.ph, %24
  %22 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEESt6vectorIS9_SaIS9_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #5
  invoke void @_ZNSt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %23 unwind label %28

23:                                               ; preds = %21
  invoke void @_ZN7maliput12_GLOBAL__N_19FilterMapINS_3api22TypeSpecificIdentifierINS2_5rules4RuleEEENS4_17DiscreteValueRuleEEESt3mapIT_T0_St4lessIS9_ESaISt4pairIKS9_SA_EEERKSH_St8functionIFbRKSA_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::map.12") align 8 %7, ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull %8)
          to label %24 unwind label %30

24:                                               ; preds = %23
  %25 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules4RuleEEENS3_17DiscreteValueRuleESt4lessIS5_ESaISt4pairIKS5_S6_EEEaSEOSD_(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  call void @_ZNSt3mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules4RuleEEENS3_17DiscreteValueRuleESt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #5
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEESt6vectorIS9_SaIS9_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %27 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEESt6vectorIS9_SaIS9_EEEEbRKNS_17__normal_iteratorIT_T0_EESK_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %27, label %21, label %._crit_edge

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

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

32:                                               ; preds = %30, %28
  %.pn15 = phi { ptr, i32 } [ %31, %30 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %45

._crit_edge20:                                    ; preds = %36, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  ret void

33:                                               ; preds = %.lr.ph19, %36
  %34 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt8functionIFbRKN7maliput3api5rules14RangeValueRuleEEESt6vectorIS9_SaIS9_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %11) #5
  invoke void @_ZNSt8functionIFbRKN7maliput3api5rules14RangeValueRuleEEEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %35 unwind label %40

35:                                               ; preds = %33
  invoke void @_ZN7maliput12_GLOBAL__N_19FilterMapINS_3api22TypeSpecificIdentifierINS2_5rules4RuleEEENS4_14RangeValueRuleEEESt3mapIT_T0_St4lessIS9_ESaISt4pairIKS9_SA_EEERKSH_St8functionIFbRKSA_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::map.18") align 8 %11, ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull %12)
          to label %36 unwind label %42

36:                                               ; preds = %35
  %37 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules4RuleEEENS3_14RangeValueRuleESt4lessIS5_ESaISt4pairIKS5_S6_EEEaSEOSD_(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 8 dereferenceable(48) %11) #5
  call void @_ZNSt3mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules4RuleEEENS3_14RangeValueRuleESt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #5
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt8functionIFbRKN7maliput3api5rules14RangeValueRuleEEESt6vectorIS9_SaIS9_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %39 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt8functionIFbRKN7maliput3api5rules14RangeValueRuleEEESt6vectorIS9_SaIS9_EEEEbRKNS_17__normal_iteratorIT_T0_EESK_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %39, label %33, label %._crit_edge20

40:                                               ; preds = %33
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %44

42:                                               ; preds = %35
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  br label %44

44:                                               ; preds = %42, %40
  %.pn = phi { ptr, i32 } [ %43, %42 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %45

45:                                               ; preds = %44, %32
  %.pn15.pn = phi { ptr, i32 } [ %.pn15, %32 ], [ %.pn, %44 ]
  call void @_ZN7maliput3api5rules12RoadRulebook12QueryResultsD2Ev(ptr noundef nonnull align 8 dereferenceable(240) %0) #5
  resume { ptr, i32 } %.pn15.pn
}

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

; 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 nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorISt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEESaIS8_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEEC2ERKS7_(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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules4RuleEEENS3_17DiscreteValueRuleESt4lessIS5_ESaISt4pairIKS5_S6_EEEaSEOSD_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIN7maliput3api22TypeSpecificIdentifierINS1_5rules4RuleEEENS3_17DiscreteValueRuleESt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt8functionIFbRKN7maliput3api5rules17DiscreteValueRuleEEESt6vectorIS9_SaIS9_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

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

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

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