; LLVM IR from thepowersgang/mrustc :: src/mir (from_hir_match)

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

%class.TraceLog = type { ptr, %"class.std::function" }
%"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.anon.515 = type { i8 }
%"class.std::vector.60" = type { %"struct.std::_Vector_base.61" }
%"struct.std::_Vector_base.61" = type { %"struct.std::_Vector_base<PatternRuleset, std::allocator<PatternRuleset>>::_Vector_impl" }
%"struct.std::_Vector_base<PatternRuleset, std::allocator<PatternRuleset>>::_Vector_impl" = type { %"struct.std::_Vector_base<PatternRuleset, std::allocator<PatternRuleset>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PatternRuleset, std::allocator<PatternRuleset>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.t_rules_subset = type { %"class.std::vector.517", i8, %"class.std::vector.146" }
%"class.std::vector.517" = type { %"struct.std::_Vector_base.518" }
%"struct.std::_Vector_base.518" = type { %"struct.std::_Vector_base<const std::vector<PatternRule> *, std::allocator<const std::vector<PatternRule> *>>::_Vector_impl" }
%"struct.std::_Vector_base<const std::vector<PatternRule> *, std::allocator<const std::vector<PatternRule> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const std::vector<PatternRule> *, std::allocator<const std::vector<PatternRule> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const std::vector<PatternRule> *, std::allocator<const std::vector<PatternRule> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.146" = type { %"struct.std::_Vector_base.147" }
%"struct.std::_Vector_base.147" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.197" = type { ptr }
%class.MatchGenGrouped = type { ptr, ptr, ptr, ptr, ptr, i64 }
%"class.MIR::Terminator" = type { i32, %"union.MIR::Terminator::DataUnion" }
%"union.MIR::Terminator::DataUnion" = type { %"struct.MIR::Terminator::Data_Call" }
%"struct.MIR::Terminator::Data_Call" = type { i32, i32, %"struct.MIR::LValue", %"class.MIR::CallTarget", %"class.std::vector.18" }
%"struct.MIR::LValue" = type { %"class.MIR::LValue::Storage", %"class.std::vector" }
%"class.MIR::LValue::Storage" = type { i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.MIR::CallTarget" = type { i32, %"union.MIR::CallTarget::DataUnion" }
%"union.MIR::CallTarget::DataUnion" = type { %"class.HIR::Path" }
%"class.HIR::Path" = type { %"class.HIR::Path::Data" }
%"class.HIR::Path::Data" = type { i32, %"union.HIR::Path::Data::DataUnion" }
%"union.HIR::Path::Data::DataUnion" = type { %"struct.HIR::Path::Data::Data_UfcsKnown" }
%"struct.HIR::Path::Data::Data_UfcsKnown" = type { %"class.HIR::TypeRef", %"class.HIR::GenericPath", %class.RcString, %"struct.HIR::PathParams", %"class.std::unique_ptr.115" }
%"class.HIR::TypeRef" = type { ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%class.RcString = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.23, %class.ThinVector.24, %class.ThinVector.25 }
%class.ThinVector.23 = type { ptr }
%class.ThinVector.24 = type { ptr }
%class.ThinVector.25 = type { ptr }
%"class.std::unique_ptr.115" = type { %"struct.std::__uniq_ptr_data.116" }
%"struct.std::__uniq_ptr_data.116" = type { %"class.std::__uniq_ptr_impl.117" }
%"class.std::__uniq_ptr_impl.117" = type { %"class.std::tuple.118" }
%"class.std::tuple.118" = type { %"struct.std::_Tuple_impl.119" }
%"struct.std::_Tuple_impl.119" = type { %"struct.std::_Head_base.122" }
%"struct.std::_Head_base.122" = type { ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.MIR::Terminator::Data_Diverge" = type { i8 }
%struct.PatternRuleset = type { i32, i32, %"class.std::vector.136", %"class.std::vector.141" }
%"class.std::vector.136" = type { %"struct.std::_Vector_base.137" }
%"struct.std::_Vector_base.137" = type { %"struct.std::_Vector_base<PatternRule, std::allocator<PatternRule>>::_Vector_impl" }
%"struct.std::_Vector_base<PatternRule, std::allocator<PatternRule>>::_Vector_impl" = type { %"struct.std::_Vector_base<PatternRule, std::allocator<PatternRule>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PatternRule, std::allocator<PatternRule>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.141" = type { %"struct.std::_Vector_base.142" }
%"struct.std::_Vector_base.142" = type { %"struct.std::_Vector_base<PatternBinding, std::allocator<PatternBinding>>::_Vector_impl" }
%"struct.std::_Vector_base<PatternBinding, std::allocator<PatternBinding>>::_Vector_impl" = type { %"struct.std::_Vector_base<PatternBinding, std::allocator<PatternBinding>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PatternBinding, std::allocator<PatternBinding>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@__func__._Z26MIR_LowerHIR_Match_GroupedR10MirBuilderR12MirConverterRK4SpanRKN3HIR7TypeRefEN3MIR6LValueESt6vectorI14PatternRulesetSaISD_EESC_I7ArmCodeSaISG_EEj = external hidden unnamed_addr constant [27 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

declare noundef zeroext i1 @_Z13debug_enabledv() #1

declare i32 @__gxx_personality_v0(...)

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

declare noundef i32 @_ZN10MirBuilder15new_bb_unlinkedEv(ptr noundef nonnull align 8 dereferenceable(440)) #1

declare void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440), i32 noundef) #1

declare void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z26MIR_LowerHIR_Match_GroupedR10MirBuilderR12MirConverterRK4SpanRKN3HIR7TypeRefEN3MIR6LValueESt6vectorI14PatternRulesetSaISD_EESC_I7ArmCodeSaISG_EEj(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7) #3 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %class.TraceLog, align 8
  %18 = alloca %"class.std::function", align 8
  %19 = alloca %class.anon.515, align 1
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::vector.60", align 8
  %23 = alloca %"class.std::vector.60", align 8
  %24 = alloca %class.t_rules_subset, align 8
  %25 = alloca ptr, align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.197", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.197", align 8
  %28 = alloca ptr, align 8
  %29 = alloca %class.MatchGenGrouped, align 8
  %30 = alloca i32, align 4
  %31 = alloca %class.t_rules_subset, align 8
  %32 = alloca %"class.MIR::Terminator", align 8
  %33 = alloca %"struct.MIR::Terminator::Data_Diverge", align 1
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store i32 %7, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #6
  %34 = call noundef zeroext i1 @_Z13debug_enabledv()
  %35 = zext i1 %34 to i64
  %36 = select i1 %34, ptr @__func__._Z26MIR_LowerHIR_Match_GroupedR10MirBuilderR12MirConverterRK4SpanRKN3HIR7TypeRefEN3MIR6LValueESt6vectorI14PatternRulesetSaISD_EESC_I7ArmCodeSaISG_EEj, ptr null
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  call void @"_ZNSt8functionIFvRSoEEC2IZ26MIR_LowerHIR_Match_GroupedR10MirBuilderR12MirConverterRK4SpanRKN3HIR7TypeRefEN3MIR6LValueESt6vectorI14PatternRulesetSaISI_EESH_I7ArmCodeSaISL_EEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef %36, ptr noundef %18)
          to label %37 unwind label %51

37:                                               ; preds = %8
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  call void @_ZNSt6vectorI14PatternRulesetSaIS0_EEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  invoke void @_ZN12_GLOBAL__N_113flatten_rulesESt6vectorI14PatternRulesetSaIS1_EE(ptr dead_on_unwind writable sret(%"class.std::vector.60") align 8 %22, ptr noundef %23)
          to label %38 unwind label %55

38:                                               ; preds = %37
  %39 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI14PatternRulesetSaIS0_EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @_ZNSt6vectorI14PatternRulesetSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @_ZNSt6vectorI14PatternRulesetSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 56, ptr %24) #6
  %40 = call noundef i64 @_ZNKSt6vectorI14PatternRulesetSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  invoke void @_ZN14t_rules_subsetC2Emb(ptr noundef nonnull align 8 dereferenceable(56) %24, i64 noundef %40, i1 noundef zeroext true)
          to label %41 unwind label %59

41:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  store ptr %5, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %42 = load ptr, ptr %25, align 8, !tbaa !5
  %43 = call ptr @_ZNSt6vectorI14PatternRulesetSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #6
  %44 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.197", ptr %26, i32 0, i32 0
  store ptr %43, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %45 = load ptr, ptr %25, align 8, !tbaa !5
  %46 = call ptr @_ZNSt6vectorI14PatternRulesetSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #6
  %47 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.197", ptr %27, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  br label %48

48:                                               ; preds = %76, %41
  %49 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14PatternRulesetSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  br i1 %49, label %63, label %50

50:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %82

51:                                               ; preds = %8
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %20, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %21, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  br label %122

55:                                               ; preds = %37
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %20, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %21, align 4
  call void @_ZNSt6vectorI14PatternRulesetSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  br label %121

59:                                               ; preds = %38
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %20, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %21, align 4
  br label %120

63:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %64 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14PatternRulesetSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  store ptr %64, ptr %28, align 8, !tbaa !5
  %65 = load ptr, ptr %28, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.PatternRuleset, ptr %65, i32 0, i32 2
  %67 = load ptr, ptr %28, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.PatternRuleset, ptr %67, i32 0, i32 0
  %69 = load i32, ptr %68, align 8, !tbaa !11
  %70 = zext i32 %69 to i64
  %71 = load ptr, ptr %28, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.PatternRuleset, ptr %71, i32 0, i32 1
  %73 = load i32, ptr %72, align 4, !tbaa !21
  %74 = zext i32 %73 to i64
  invoke void @_ZN14t_rules_subset8push_armERKSt6vectorI11PatternRuleSaIS1_EEmm(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %70, i64 noundef %74)
          to label %75 unwind label %78

75:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %76

76:                                               ; preds = %75
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP14PatternRulesetSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br label %48

78:                                               ; preds = %63
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %20, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %119

82:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 48, ptr %29) #6
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN15MatchGenGroupedC2ER10MirBuilderRK4SpanRKN3HIR7TypeRefERKN3MIR6LValueERKSt6vectorI7ArmCodeSaISE_EEm(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 8 dereferenceable(440) %83, ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0)
          to label %86 unwind label %101

86:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = invoke noundef i32 @_ZN10MirBuilder15new_bb_unlinkedEv(ptr noundef nonnull align 8 dereferenceable(440) %87)
          to label %89 unwind label %105

89:                                               ; preds = %86
  store i32 %88, ptr %30, align 4, !tbaa !9
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = load i32, ptr %16, align 4, !tbaa !9
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %90, i32 noundef %91)
          to label %92 unwind label %105

92:                                               ; preds = %89
  call void @_ZN14t_rules_subsetC2EOS_(ptr noundef nonnull align 8 dereferenceable(56) %31, ptr noundef nonnull align 8 dereferenceable(56) %24) #6
  %93 = load i32, ptr %30, align 4, !tbaa !9
  invoke void @_ZN15MatchGenGrouped13gen_for_sliceE14t_rules_subsetmj(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef %31, i64 noundef 0, i32 noundef %93)
          to label %94 unwind label %109

94:                                               ; preds = %92
  call void @_ZN14t_rules_subsetD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %31) #6
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = load i32, ptr %30, align 4, !tbaa !9
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %95, i32 noundef %96)
          to label %97 unwind label %105

97:                                               ; preds = %94
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN3MIR10Terminator12make_DivergeENS0_12Data_DivergeE(ptr dead_on_unwind writable sret(%"class.MIR::Terminator") align 8 %32)
          to label %99 unwind label %105

99:                                               ; preds = %97
  invoke void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440) %98, ptr noundef %32)
          to label %100 unwind label %113

100:                                              ; preds = %99
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %29) #6
  call void @_ZN14t_rules_subsetD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %24) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #6
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #6
  ret void

101:                                              ; preds = %82
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %20, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %21, align 4
  br label %118

105:                                              ; preds = %97, %94, %89, %86
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %20, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %21, align 4
  br label %117

109:                                              ; preds = %92
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %20, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %21, align 4
  call void @_ZN14t_rules_subsetD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %31) #6
  br label %117

113:                                              ; preds = %99
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %20, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %21, align 4
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %32) #6
  br label %117

117:                                              ; preds = %113, %109, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %118

118:                                              ; preds = %117, %101
  call void @llvm.lifetime.end.p0(i64 48, ptr %29) #6
  br label %119

119:                                              ; preds = %118, %78
  call void @_ZN14t_rules_subsetD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %24) #6
  br label %120

120:                                              ; preds = %119, %59
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #6
  br label %121

121:                                              ; preds = %120, %55
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #6
  br label %122

122:                                              ; preds = %121, %51
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #6
  br label %123

123:                                              ; preds = %122
  %124 = load ptr, ptr %20, align 8
  %125 = load i32, ptr %21, align 4
  %126 = insertvalue { ptr, i32 } poison, ptr %124, 0
  %127 = insertvalue { ptr, i32 } %126, i32 %125, 1
  resume { ptr, i32 } %127
}

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

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

; Function Attrs: nounwind
declare void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4

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

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

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

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

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

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

declare void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR10Terminator12make_DivergeENS0_12Data_DivergeE(ptr dead_on_unwind noalias writable sret(%"class.MIR::Terminator") align 8) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZ26MIR_LowerHIR_Match_GroupedR10MirBuilderR12MirConverterRK4SpanRKN3HIR7TypeRefEN3MIR6LValueESt6vectorI14PatternRulesetSaISI_EESH_I7ArmCodeSaISL_EEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_113flatten_rulesESt6vectorI14PatternRulesetSaIS1_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.60") align 8, ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14t_rules_subsetC2Emb(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i1 noundef zeroext) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14t_rules_subset8push_armERKSt6vectorI11PatternRuleSaIS1_EEmm(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15MatchGenGroupedC2ER10MirBuilderRK4SpanRKN3HIR7TypeRefERKN3MIR6LValueERKSt6vectorI7ArmCodeSaISE_EEm(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15MatchGenGrouped13gen_for_sliceE14t_rules_subsetmj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i64 noundef, i32 noundef) #3 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS14PatternRuleset", !10, i64 0, !10, i64 4, !13, i64 8, !17, i64 32}
!13 = !{!"_ZTSSt6vectorI11PatternRuleSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseI11PatternRuleSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI11PatternRuleSaIS0_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI11PatternRuleSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorI14PatternBindingSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI14PatternBindingSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI14PatternBindingSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI14PatternBindingSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!12, !10, i64 4}


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

%class.TraceLog = type { ptr, %"class.std::function" }
%"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.anon.515 = type { i8 }
%"class.std::vector.60" = type { %"struct.std::_Vector_base.61" }
%"struct.std::_Vector_base.61" = type { %"struct.std::_Vector_base<PatternRuleset, std::allocator<PatternRuleset>>::_Vector_impl" }
%"struct.std::_Vector_base<PatternRuleset, std::allocator<PatternRuleset>>::_Vector_impl" = type { %"struct.std::_Vector_base<PatternRuleset, std::allocator<PatternRuleset>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PatternRuleset, std::allocator<PatternRuleset>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.t_rules_subset = type { %"class.std::vector.517", i8, %"class.std::vector.146" }
%"class.std::vector.517" = type { %"struct.std::_Vector_base.518" }
%"struct.std::_Vector_base.518" = type { %"struct.std::_Vector_base<const std::vector<PatternRule> *, std::allocator<const std::vector<PatternRule> *>>::_Vector_impl" }
%"struct.std::_Vector_base<const std::vector<PatternRule> *, std::allocator<const std::vector<PatternRule> *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const std::vector<PatternRule> *, std::allocator<const std::vector<PatternRule> *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const std::vector<PatternRule> *, std::allocator<const std::vector<PatternRule> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.146" = type { %"struct.std::_Vector_base.147" }
%"struct.std::_Vector_base.147" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.197" = type { ptr }
%class.MatchGenGrouped = type { ptr, ptr, ptr, ptr, ptr, i64 }
%"class.MIR::Terminator" = type { i32, %"union.MIR::Terminator::DataUnion" }
%"union.MIR::Terminator::DataUnion" = type { %"struct.MIR::Terminator::Data_Call" }
%"struct.MIR::Terminator::Data_Call" = type { i32, i32, %"struct.MIR::LValue", %"class.MIR::CallTarget", %"class.std::vector.18" }
%"struct.MIR::LValue" = type { %"class.MIR::LValue::Storage", %"class.std::vector" }
%"class.MIR::LValue::Storage" = type { i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.MIR::CallTarget" = type { i32, %"union.MIR::CallTarget::DataUnion" }
%"union.MIR::CallTarget::DataUnion" = type { %"class.HIR::Path" }
%"class.HIR::Path" = type { %"class.HIR::Path::Data" }
%"class.HIR::Path::Data" = type { i32, %"union.HIR::Path::Data::DataUnion" }
%"union.HIR::Path::Data::DataUnion" = type { %"struct.HIR::Path::Data::Data_UfcsKnown" }
%"struct.HIR::Path::Data::Data_UfcsKnown" = type { %"class.HIR::TypeRef", %"class.HIR::GenericPath", %class.RcString, %"struct.HIR::PathParams", %"class.std::unique_ptr.115" }
%"class.HIR::TypeRef" = type { ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%class.RcString = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.23, %class.ThinVector.24, %class.ThinVector.25 }
%class.ThinVector.23 = type { ptr }
%class.ThinVector.24 = type { ptr }
%class.ThinVector.25 = type { ptr }
%"class.std::unique_ptr.115" = type { %"struct.std::__uniq_ptr_data.116" }
%"struct.std::__uniq_ptr_data.116" = type { %"class.std::__uniq_ptr_impl.117" }
%"class.std::__uniq_ptr_impl.117" = type { %"class.std::tuple.118" }
%"class.std::tuple.118" = type { %"struct.std::_Tuple_impl.119" }
%"struct.std::_Tuple_impl.119" = type { %"struct.std::_Head_base.122" }
%"struct.std::_Head_base.122" = type { ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@__func__._Z26MIR_LowerHIR_Match_GroupedR10MirBuilderR12MirConverterRK4SpanRKN3HIR7TypeRefEN3MIR6LValueESt6vectorI14PatternRulesetSaISD_EESC_I7ArmCodeSaISG_EEj = external hidden unnamed_addr constant [27 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

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

declare noundef i32 @_ZN10MirBuilder15new_bb_unlinkedEv(ptr noundef nonnull align 8 dereferenceable(440)) local_unnamed_addr #1

declare void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440), i32 noundef) local_unnamed_addr #1

declare void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z26MIR_LowerHIR_Match_GroupedR10MirBuilderR12MirConverterRK4SpanRKN3HIR7TypeRefEN3MIR6LValueESt6vectorI14PatternRulesetSaISD_EESC_I7ArmCodeSaISG_EEj(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %9 = alloca %class.TraceLog, align 8
  %10 = alloca %"class.std::function", align 8
  %11 = alloca %class.anon.515, align 1
  %12 = alloca %"class.std::vector.60", align 8
  %13 = alloca %"class.std::vector.60", align 8
  %14 = alloca %class.t_rules_subset, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.197", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.197", align 8
  %17 = alloca %class.MatchGenGrouped, align 8
  %18 = alloca %class.t_rules_subset, align 8
  %19 = alloca %"class.MIR::Terminator", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #6
  %20 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %21 = select i1 %20, ptr @__func__._Z26MIR_LowerHIR_Match_GroupedR10MirBuilderR12MirConverterRK4SpanRKN3HIR7TypeRefEN3MIR6LValueESt6vectorI14PatternRulesetSaISD_EESC_I7ArmCodeSaISG_EEj, ptr null
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #6
  call void @"_ZNSt8functionIFvRSoEEC2IZ26MIR_LowerHIR_Match_GroupedR10MirBuilderR12MirConverterRK4SpanRKN3HIR7TypeRefEN3MIR6LValueESt6vectorI14PatternRulesetSaISI_EESH_I7ArmCodeSaISL_EEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef %21, ptr noundef nonnull %10)
          to label %22 unwind label %31

22:                                               ; preds = %8
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  call void @_ZNSt6vectorI14PatternRulesetSaIS0_EEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  invoke void @_ZN12_GLOBAL__N_113flatten_rulesESt6vectorI14PatternRulesetSaIS1_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.60") align 8 %12, ptr noundef nonnull %13)
          to label %23 unwind label %33

23:                                               ; preds = %22
  %24 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI14PatternRulesetSaIS0_EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @_ZNSt6vectorI14PatternRulesetSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @_ZNSt6vectorI14PatternRulesetSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %14) #6
  %25 = call noundef i64 @_ZNKSt6vectorI14PatternRulesetSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  invoke void @_ZN14t_rules_subsetC2Emb(ptr noundef nonnull align 8 dereferenceable(56) %14, i64 noundef %25, i1 noundef zeroext true)
          to label %26 unwind label %35

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %27 = call ptr @_ZNSt6vectorI14PatternRulesetSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %27, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %28 = call ptr @_ZNSt6vectorI14PatternRulesetSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %28, ptr %16, align 8
  %29 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14PatternRulesetSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %29, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %44, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %17) #6
  call void @_ZN15MatchGenGroupedC2ER10MirBuilderRK4SpanRKN3HIR7TypeRefERKN3MIR6LValueERKSt6vectorI7ArmCodeSaISE_EEm(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0)
  %30 = invoke noundef i32 @_ZN10MirBuilder15new_bb_unlinkedEv(ptr noundef nonnull align 8 dereferenceable(440) %0)
          to label %49 unwind label %55

31:                                               ; preds = %8
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  br label %65

33:                                               ; preds = %22
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI14PatternRulesetSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  br label %64

35:                                               ; preds = %23
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %63

.lr.ph:                                           ; preds = %26, %44
  %37 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14PatternRulesetSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load i32, ptr %37, align 8, !tbaa !5
  %40 = zext i32 %39 to i64
  %41 = getelementptr inbounds i8, ptr %37, i64 4
  %42 = load i32, ptr %41, align 4, !tbaa !19
  %43 = zext i32 %42 to i64
  invoke void @_ZN14t_rules_subset8push_armERKSt6vectorI11PatternRuleSaIS1_EEmm(ptr noundef nonnull align 8 dereferenceable(56) %14, ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %40, i64 noundef %43)
          to label %44 unwind label %47

44:                                               ; preds = %.lr.ph
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP14PatternRulesetSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14PatternRulesetSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %46, label %.lr.ph, label %._crit_edge

47:                                               ; preds = %.lr.ph
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %62

49:                                               ; preds = %._crit_edge
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %0, i32 noundef %7)
          to label %50 unwind label %55

50:                                               ; preds = %49
  call void @_ZN14t_rules_subsetC2EOS_(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 8 dereferenceable(56) %14) #6
  invoke void @_ZN15MatchGenGrouped13gen_for_sliceE14t_rules_subsetmj(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull %18, i64 noundef 0, i32 noundef %30)
          to label %51 unwind label %57

51:                                               ; preds = %50
  call void @_ZN14t_rules_subsetD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #6
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %0, i32 noundef %30)
          to label %52 unwind label %55

52:                                               ; preds = %51
  invoke void @_ZN3MIR10Terminator12make_DivergeENS0_12Data_DivergeE(ptr dead_on_unwind nonnull writable sret(%"class.MIR::Terminator") align 8 %19)
          to label %53 unwind label %55

53:                                               ; preds = %52
  invoke void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull %19)
          to label %54 unwind label %59

54:                                               ; preds = %53
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %19) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %17) #6
  call void @_ZN14t_rules_subsetD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %14) #6
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  ret void

55:                                               ; preds = %52, %51, %49, %._crit_edge
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %61

57:                                               ; preds = %50
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN14t_rules_subsetD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #6
  br label %61

59:                                               ; preds = %53
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %19) #6
  br label %61

61:                                               ; preds = %59, %57, %55
  %.pn = phi { ptr, i32 } [ %60, %59 ], [ %56, %55 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %17) #6
  br label %62

62:                                               ; preds = %61, %47
  %.pn22 = phi { ptr, i32 } [ %48, %47 ], [ %.pn, %61 ]
  call void @_ZN14t_rules_subsetD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #6
  br label %63

63:                                               ; preds = %62, %35
  %.pn22.pn = phi { ptr, i32 } [ %.pn22, %62 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %14) #6
  br label %64

64:                                               ; preds = %63, %33
  %.pn22.pn.pn = phi { ptr, i32 } [ %.pn22.pn, %63 ], [ %34, %33 ]
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  br label %65

65:                                               ; preds = %64, %31
  %.pn22.pn.pn.pn = phi { ptr, i32 } [ %.pn22.pn.pn, %64 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  resume { ptr, i32 } %.pn22.pn.pn.pn
}

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

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

; Function Attrs: nounwind
declare void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4

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

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

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

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

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

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

declare void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR10Terminator12make_DivergeENS0_12Data_DivergeE(ptr dead_on_unwind noalias writable sret(%"class.MIR::Terminator") align 8) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZ26MIR_LowerHIR_Match_GroupedR10MirBuilderR12MirConverterRK4SpanRKN3HIR7TypeRefEN3MIR6LValueESt6vectorI14PatternRulesetSaISI_EESH_I7ArmCodeSaISL_EEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_113flatten_rulesESt6vectorI14PatternRulesetSaIS1_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.60") align 8, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14t_rules_subsetC2Emb(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i1 noundef zeroext) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14t_rules_subset8push_armERKSt6vectorI11PatternRuleSaIS1_EEmm(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15MatchGenGroupedC2ER10MirBuilderRK4SpanRKN3HIR7TypeRefERKN3MIR6LValueERKSt6vectorI7ArmCodeSaISE_EEm(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15MatchGenGrouped13gen_for_sliceE14t_rules_subsetmj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #3 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !7, i64 0}
!6 = !{!"_ZTS14PatternRuleset", !7, i64 0, !7, i64 4, !10, i64 8, !15, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorI11PatternRuleSaIS0_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseI11PatternRuleSaIS0_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseI11PatternRuleSaIS0_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseI11PatternRuleSaIS0_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSSt6vectorI14PatternBindingSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseI14PatternBindingSaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI14PatternBindingSaIS0_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseI14PatternBindingSaIS0_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!19 = !{!6, !7, i64 4}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass