; 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.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 }
%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.std::vector.47" = type { %"struct.std::_Vector_base.48" }
%"struct.std::_Vector_base.48" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.49" = type { i8 }
%struct.Span = type { ptr }
%class.anon.611 = type { ptr, ptr, ptr }
%class.anon.612 = type { i8 }
%"struct.MIR::Terminator::Data_Switch" = type { %"struct.MIR::LValue", %"class.std::vector.47" }
%"struct.HIR::TypeData_Path" = type { %"class.HIR::Path", %"class.HIR::TypePathBinding", %"class.std::unique_ptr.115" }
%"class.HIR::TypePathBinding" = type { i32, %"union.HIR::TypePathBinding::DataUnion" }
%"union.HIR::TypePathBinding::DataUnion" = type { ptr }
%class.MatchGenGrouped = type { ptr, ptr, ptr, ptr, ptr, i64 }
%"struct.PatternRule::Data_Variant" = type { i32, %"class.std::vector.136" }
%"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 }

@g_debug_indent_level = external global i32, align 4
@_ZTISt13runtime_error = external constant ptr
@.str.10 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [81 x i8], align 1
@__func__._ZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaIS5_EEmRKS4_IjSaIjEEj = external hidden unnamed_addr constant [19 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [38 x i8], align 1
@__PRETTY_FUNCTION__._ZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaIS5_EEmRKS4_IjSaIjEEj = external hidden unnamed_addr constant [185 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 void @_ZN8TraceLogC1EPKc(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) unnamed_addr #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 @_ZN10MirBuilder15pause_cur_blockEv(ptr noundef nonnull align 8 dereferenceable(440)) #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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 #4 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaIS5_EEmRKS4_IjSaIjEEj(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %6) #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %class.TraceLog, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca %"class.std::vector.47", align 8
  %23 = alloca %"class.std::allocator.49", align 1
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i32, align 4
  %27 = alloca %struct.Span, align 8
  %28 = alloca %"class.std::function", align 8
  %29 = alloca %class.anon.611, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca %struct.Span, align 8
  %33 = alloca %"class.std::function", align 8
  %34 = alloca %class.anon.612, align 1
  %35 = alloca i64, align 8
  %36 = alloca %"class.MIR::Terminator", align 8
  %37 = alloca %"struct.MIR::Terminator::Data_Switch", align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i64 %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  store i32 %6, ptr %14, align 4, !tbaa !11
  %38 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #8
  %39 = call noundef zeroext i1 @_Z13debug_enabledv()
  %40 = zext i1 %39 to i64
  %41 = select i1 %39, ptr @__func__._ZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaIS5_EEmRKS4_IjSaIjEEj, ptr null
  call void @_ZN8TraceLogC1EPKc(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef %41)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %42 = invoke noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %43 unwind label %66

43:                                               ; preds = %7
  %44 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %42)
          to label %45 unwind label %66

45:                                               ; preds = %43
  store ptr %44, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %46 = load ptr, ptr %16, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.HIR::TypeData_Path", ptr %46, i32 0, i32 1
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR15TypePathBinding7as_EnumEv(ptr noundef nonnull align 8 dereferenceable(16) %47)
          to label %49 unwind label %70

49:                                               ; preds = %45
  store ptr %48, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %50 = getelementptr inbounds %class.MatchGenGrouped, ptr %38, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8, !tbaa !13
  %52 = invoke noundef i32 @_ZN10MirBuilder15pause_cur_blockEv(ptr noundef nonnull align 8 dereferenceable(440) %51)
          to label %53 unwind label %74

53:                                               ; preds = %49
  store i32 %52, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %54 = load ptr, ptr %19, align 8, !tbaa !5
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = invoke noundef i64 @_ZNK3HIR4Enum12num_variantsEv(ptr noundef nonnull align 8 dereferenceable(200) %55)
          to label %57 unwind label %78

57:                                               ; preds = %53
  store i64 %56, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  %58 = load i64, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #8
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %58, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %59 unwind label %82

59:                                               ; preds = %57
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  store i64 0, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %60

60:                                               ; preds = %241, %59
  %61 = load i64, ptr %25, align 8, !tbaa !9
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = call noundef i64 @_ZNKSt6vectorI14t_rules_subsetSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #8
  %64 = icmp ult i64 %61, %63
  br i1 %64, label %86, label %65

65:                                               ; preds = %60
  store i32 2, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %247

66:                                               ; preds = %43, %7
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %17, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %18, align 4
  br label %277

70:                                               ; preds = %45
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %17, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %18, align 4
  br label %276

74:                                               ; preds = %49
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %17, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %18, align 4
  br label %275

78:                                               ; preds = %53
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %17, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %18, align 4
  br label %274

82:                                               ; preds = %57
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %17, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %18, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  br label %273

86:                                               ; preds = %60
  br label %87

87:                                               ; preds = %86
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = load i64, ptr %25, align 8, !tbaa !9
  %90 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt6vectorI14t_rules_subsetSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %89) #8
  %91 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK14t_rules_subsetixEm(ptr noundef nonnull align 8 dereferenceable(56) %90, i64 noundef 0)
          to label %92 unwind label %109

92:                                               ; preds = %87
  %93 = load i64, ptr %12, align 8, !tbaa !9
  %94 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNKSt6vectorI11PatternRuleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %93) #8
  %95 = invoke noundef zeroext i1 @_ZNK11PatternRule10is_VariantEv(ptr noundef nonnull align 8 dereferenceable(120) %94)
          to label %96 unwind label %109

96:                                               ; preds = %92
  br i1 %95, label %131, label %97

97:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %98 = getelementptr inbounds %class.MatchGenGrouped, ptr %38, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8, !tbaa !15
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %99)
          to label %100 unwind label %113

100:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #8
  %101 = getelementptr inbounds %class.anon.611, ptr %29, i32 0, i32 0
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %102, ptr %101, align 8, !tbaa !5
  %103 = getelementptr inbounds %class.anon.611, ptr %29, i32 0, i32 1
  store ptr %25, ptr %103, align 8, !tbaa !5
  %104 = getelementptr inbounds %class.anon.611, ptr %29, i32 0, i32 2
  store ptr %12, ptr %104, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvRSoEEC2IZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaISA_EEmRKS9_IjSaIjEEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %105 unwind label %117

105:                                              ; preds = %100
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef %28)
          to label %106 unwind label %121

106:                                              ; preds = %105
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  %107 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %107, ptr noundef @.str.10)
          to label %108 unwind label %127

108:                                              ; preds = %106
  invoke void @__cxa_throw(ptr %107, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
          to label %283 unwind label %109

109:                                              ; preds = %108, %92, %87
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %17, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %18, align 4
  br label %246

113:                                              ; preds = %97
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %17, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %18, align 4
  br label %126

117:                                              ; preds = %100
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %17, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %18, align 4
  br label %125

121:                                              ; preds = %105
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %17, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %18, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  br label %125

125:                                              ; preds = %121, %117
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  br label %126

126:                                              ; preds = %125, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %246

127:                                              ; preds = %106
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %17, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %18, align 4
  call void @__cxa_free_exception(ptr %107) #8
  br label %246

131:                                              ; preds = %96
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = load i64, ptr %25, align 8, !tbaa !9
  %136 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt6vectorI14t_rules_subsetSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %135) #8
  %137 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK14t_rules_subsetixEm(ptr noundef nonnull align 8 dereferenceable(56) %136, i64 noundef 0)
          to label %138 unwind label %162

138:                                              ; preds = %133
  %139 = load i64, ptr %12, align 8, !tbaa !9
  %140 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNKSt6vectorI11PatternRuleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %137, i64 noundef %139) #8
  %141 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK11PatternRule10as_VariantEv(ptr noundef nonnull align 8 dereferenceable(120) %140)
          to label %142 unwind label %162

142:                                              ; preds = %138
  store ptr %141, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %143 = load ptr, ptr %30, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.PatternRule::Data_Variant", ptr %143, i32 0, i32 0
  %145 = load i32, ptr %144, align 8, !tbaa !16
  store i32 %145, ptr %31, align 4, !tbaa !11
  br label %146

146:                                              ; preds = %142
  %147 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %148 unwind label %166

148:                                              ; preds = %146
  br i1 %147, label %149, label %170

149:                                              ; preds = %148
  %150 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !11
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %150, ptr noundef @__func__._ZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaIS5_EEmRKS4_IjSaIjEEj)
          to label %152 unwind label %166

152:                                              ; preds = %149
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef @.str.87)
          to label %154 unwind label %166

154:                                              ; preds = %152
  %155 = load i32, ptr %31, align 4, !tbaa !11
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %153, i32 noundef %155)
          to label %157 unwind label %166

157:                                              ; preds = %154
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef @_ZSt3decRSt8ios_base)
          to label %159 unwind label %166

159:                                              ; preds = %157
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %158, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %161 unwind label %166

161:                                              ; preds = %159
  br label %170

162:                                              ; preds = %138, %133
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %17, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %18, align 4
  br label %245

166:                                              ; preds = %184, %159, %157, %154, %152, %149, %146
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %17, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %18, align 4
  br label %244

170:                                              ; preds = %161, %148
  br label %171

171:                                              ; preds = %170
  br label %172

172:                                              ; preds = %171
  br label %173

173:                                              ; preds = %172
  %174 = load ptr, ptr %30, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.PatternRule::Data_Variant", ptr %174, i32 0, i32 1
  %176 = call noundef i64 @_ZNKSt6vectorI11PatternRuleSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %175) #8
  %177 = icmp eq i64 %176, 0
  br i1 %177, label %198, label %178

178:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %179 = getelementptr inbounds %class.MatchGenGrouped, ptr %38, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8, !tbaa !15
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %180)
          to label %181 unwind label %185

181:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #8
  call void @"_ZNSt8functionIFvRSoEEC2IZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaISA_EEmRKS9_IjSaIjEEjE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 1 dereferenceable(1) %34) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef %33)
          to label %182 unwind label %189

182:                                              ; preds = %181
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  %183 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %183, ptr noundef @.str.10)
          to label %184 unwind label %194

184:                                              ; preds = %182
  invoke void @__cxa_throw(ptr %183, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
          to label %283 unwind label %166

185:                                              ; preds = %178
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %17, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %18, align 4
  br label %193

189:                                              ; preds = %181
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %17, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %18, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  br label %193

193:                                              ; preds = %189, %185
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %244

194:                                              ; preds = %182
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %17, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %18, align 4
  call void @__cxa_free_exception(ptr %183) #8
  br label %244

198:                                              ; preds = %173
  br label %199

199:                                              ; preds = %198
  br label %200

200:                                              ; preds = %199
  %201 = load ptr, ptr %13, align 8, !tbaa !5
  %202 = load i64, ptr %24, align 8, !tbaa !9
  %203 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %201, i64 noundef %202) #8
  %204 = load i32, ptr %203, align 4, !tbaa !11
  %205 = load i32, ptr %31, align 4, !tbaa !11
  %206 = zext i32 %205 to i64
  %207 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %206) #8
  store i32 %204, ptr %207, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  store i64 0, ptr %35, align 8, !tbaa !9
  br label %208

208:                                              ; preds = %237, %200
  %209 = load i64, ptr %35, align 8, !tbaa !9
  %210 = load ptr, ptr %11, align 8, !tbaa !5
  %211 = load i64, ptr %25, align 8, !tbaa !9
  %212 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt6vectorI14t_rules_subsetSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %210, i64 noundef %211) #8
  %213 = invoke noundef i64 @_ZNK14t_rules_subset4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %212)
          to label %214 unwind label %217

214:                                              ; preds = %208
  %215 = icmp ult i64 %209, %213
  br i1 %215, label %221, label %216

216:                                              ; preds = %214
  store i32 11, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  br label %240

217:                                              ; preds = %208
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %17, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  br label %244

221:                                              ; preds = %214
  %222 = load i32, ptr %31, align 4, !tbaa !11
  %223 = zext i32 %222 to i64
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %223) #8
  %225 = load i32, ptr %224, align 4, !tbaa !11
  %226 = load ptr, ptr %13, align 8, !tbaa !5
  %227 = load i64, ptr %24, align 8, !tbaa !9
  %228 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %226, i64 noundef %227) #8
  %229 = load i32, ptr %228, align 4, !tbaa !11
  %230 = icmp eq i32 %225, %229
  br i1 %230, label %231, label %232

231:                                              ; preds = %221
  br label %234

232:                                              ; preds = %221
  call void @__assert_fail(ptr noundef @.str.88, ptr noundef @.str.17, i32 noundef 3679, ptr noundef @__PRETTY_FUNCTION__._ZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaIS5_EEmRKS4_IjSaIjEEj) #10
  unreachable

233:                                              ; No predecessors!
  br label %234

234:                                              ; preds = %233, %231
  %235 = load i64, ptr %24, align 8, !tbaa !9
  %236 = add i64 %235, 1
  store i64 %236, ptr %24, align 8, !tbaa !9
  br label %237

237:                                              ; preds = %234
  %238 = load i64, ptr %35, align 8, !tbaa !9
  %239 = add i64 %238, 1
  store i64 %239, ptr %35, align 8, !tbaa !9
  br label %208, !llvm.loop !22

240:                                              ; preds = %216
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %241

241:                                              ; preds = %240
  %242 = load i64, ptr %25, align 8, !tbaa !9
  %243 = add i64 %242, 1
  store i64 %243, ptr %25, align 8, !tbaa !9
  br label %60, !llvm.loop !24

244:                                              ; preds = %217, %194, %193, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %245

245:                                              ; preds = %244, %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %246

246:                                              ; preds = %245, %127, %126, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %272

247:                                              ; preds = %65
  %248 = getelementptr inbounds %class.MatchGenGrouped, ptr %38, i32 0, i32 1
  %249 = load ptr, ptr %248, align 8, !tbaa !13
  %250 = load i32, ptr %20, align 4, !tbaa !11
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %249, i32 noundef %250)
          to label %251 unwind label %259

251:                                              ; preds = %247
  %252 = getelementptr inbounds %class.MatchGenGrouped, ptr %38, i32 0, i32 1
  %253 = load ptr, ptr %252, align 8, !tbaa !13
  %254 = getelementptr inbounds %"struct.MIR::Terminator::Data_Switch", ptr %37, i32 0, i32 0
  invoke void @_ZN3MIR6LValueC2EOS0_(ptr noundef nonnull align 8 dereferenceable(32) %254, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %255 unwind label %259

255:                                              ; preds = %251
  %256 = getelementptr inbounds %"struct.MIR::Terminator::Data_Switch", ptr %37, i32 0, i32 1
  call void @_ZNSt6vectorIjSaIjEEC2EOS1_(ptr noundef nonnull align 8 dereferenceable(24) %256, ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  invoke void @_ZN3MIR10Terminator11make_SwitchENS0_11Data_SwitchE(ptr dead_on_unwind writable sret(%"class.MIR::Terminator") align 8 %36, ptr noundef %37)
          to label %257 unwind label %263

257:                                              ; preds = %255
  invoke void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440) %253, ptr noundef %36)
          to label %258 unwind label %267

258:                                              ; preds = %257
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %36) #8
  call void @_ZN3MIR10Terminator11Data_SwitchD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #8
  ret void

259:                                              ; preds = %251, %247
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %17, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %18, align 4
  br label %272

263:                                              ; preds = %255
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %17, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %18, align 4
  br label %271

267:                                              ; preds = %257
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %17, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %18, align 4
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %36) #8
  br label %271

271:                                              ; preds = %267, %263
  call void @_ZN3MIR10Terminator11Data_SwitchD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %37) #8
  br label %272

272:                                              ; preds = %271, %259, %246
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  br label %273

273:                                              ; preds = %272, %82
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  br label %274

274:                                              ; preds = %273, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %275

275:                                              ; preds = %274, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %276

276:                                              ; preds = %275, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %277

277:                                              ; preds = %276, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #8
  br label %278

278:                                              ; preds = %277
  %279 = load ptr, ptr %17, align 8
  %280 = load i32, ptr %18, align 4
  %281 = insertvalue { ptr, i32 } poison, ptr %279, 0
  %282 = insertvalue { ptr, i32 } %281, i32 %280, 1
  resume { ptr, i32 } %282

283:                                              ; preds = %184, %108
  unreachable
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 "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 = { noreturn 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn }
attributes #10 = { noreturn 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTS15MatchGenGrouped", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40}
!15 = !{!14, !6, i64 0}
!16 = !{!17, !12, i64 0}
!17 = !{!"_ZTSN11PatternRule12Data_VariantE", !12, i64 0, !18, i64 8}
!18 = !{!"_ZTSSt6vectorI11PatternRuleSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseI11PatternRuleSaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI11PatternRuleSaIS0_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI11PatternRuleSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


; 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.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 }
%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.std::vector.47" = type { %"struct.std::_Vector_base.48" }
%"struct.std::_Vector_base.48" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.49" = type { i8 }
%struct.Span = type { ptr }
%class.anon.611 = type { ptr, ptr, ptr }
%class.anon.612 = type { i8 }
%"struct.MIR::Terminator::Data_Switch" = type { %"struct.MIR::LValue", %"class.std::vector.47" }

@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@_ZTISt13runtime_error = external constant ptr
@.str.10 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [81 x i8], align 1
@__func__._ZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaIS5_EEmRKS4_IjSaIjEEj = external hidden unnamed_addr constant [19 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [38 x i8], align 1
@__PRETTY_FUNCTION__._ZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaIS5_EEmRKS4_IjSaIjEEj = external hidden unnamed_addr constant [185 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 void @_ZN8TraceLogC1EPKc(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) 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 @_ZN10MirBuilder15pause_cur_blockEv(ptr noundef nonnull align 8 dereferenceable(440)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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 #4 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaIS5_EEmRKS4_IjSaIjEEj(ptr nocapture noundef nonnull readonly align 8 dereferenceable(48) %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %6) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca %class.TraceLog, align 8
  %11 = alloca %"class.std::vector.47", align 8
  %12 = alloca %"class.std::allocator.49", align 1
  %13 = alloca i64, align 8
  %14 = alloca %struct.Span, align 8
  %15 = alloca %"class.std::function", align 8
  %16 = alloca %class.anon.611, align 8
  %17 = alloca %struct.Span, align 8
  %18 = alloca %"class.std::function", align 8
  %19 = alloca %class.anon.612, align 1
  %20 = alloca %"class.MIR::Terminator", align 8
  %21 = alloca %"struct.MIR::Terminator::Data_Switch", align 8
  store i64 %4, ptr %8, align 8, !tbaa !5
  store i32 %6, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #8
  %22 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %23 = select i1 %22, ptr @__func__._ZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaIS5_EEmRKS4_IjSaIjEEj, ptr null
  call void @_ZN8TraceLogC1EPKc(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef %23)
  %24 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %25 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %24)
  %26 = getelementptr inbounds i8, ptr %25, i64 88
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR15TypePathBinding7as_EnumEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
  %28 = getelementptr inbounds i8, ptr %0, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = invoke noundef i32 @_ZN10MirBuilder15pause_cur_blockEv(ptr noundef nonnull align 8 dereferenceable(440) %29)
          to label %31 unwind label %38

31:                                               ; preds = %7
  %32 = load ptr, ptr %27, align 8, !tbaa !14
  %33 = invoke noundef i64 @_ZNK3HIR4Enum12num_variantsEv(ptr noundef nonnull align 8 dereferenceable(200) %32)
          to label %34 unwind label %40

34:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #8
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %33, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %35 unwind label %42

35:                                               ; preds = %34
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  store i64 0, ptr %13, align 8, !tbaa !5
  %36 = call noundef i64 @_ZNKSt6vectorI14t_rules_subsetSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %.not = icmp eq i64 %36, 0
  br i1 %.not, label %._crit_edge55, label %.lr.ph54

._crit_edge55:                                    ; preds = %._crit_edge, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  %37 = load ptr, ptr %28, align 8, !tbaa !11
  invoke void @_ZN10MirBuilder13set_cur_blockEj(ptr noundef nonnull align 8 dereferenceable(440) %37, i32 noundef %30)
          to label %129 unwind label %135

38:                                               ; preds = %7
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %144

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

42:                                               ; preds = %34
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  br label %143

.lr.ph54:                                         ; preds = %35, %._crit_edge
  %44 = phi i64 [ %113, %._crit_edge ], [ 0, %35 ]
  %.03452 = phi i64 [ %.135.lcssa, %._crit_edge ], [ 0, %35 ]
  %45 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt6vectorI14t_rules_subsetSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %44) #8
  %46 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK14t_rules_subsetixEm(ptr noundef nonnull align 8 dereferenceable(56) %45, i64 noundef 0)
  %47 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNKSt6vectorI11PatternRuleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %4) #8
  %48 = call noundef zeroext i1 @_ZNK11PatternRule10is_VariantEv(ptr noundef nonnull align 8 dereferenceable(120) %47)
  br i1 %48, label %70, label %49

49:                                               ; preds = %.lr.ph54
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %50 = load ptr, ptr %0, align 8, !tbaa !15
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %50)
          to label %51 unwind label %60

51:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #8
  store ptr %3, ptr %16, align 8, !tbaa !14
  %52 = getelementptr inbounds i8, ptr %16, i64 8
  store ptr %13, ptr %52, align 8, !tbaa !14
  %53 = getelementptr inbounds i8, ptr %16, i64 16
  store ptr %8, ptr %53, align 8, !tbaa !14
  invoke void @"_ZNSt8functionIFvRSoEEC2IZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaISA_EEmRKS9_IjSaIjEEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %54 unwind label %62

54:                                               ; preds = %51
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull %15)
          to label %55 unwind label %64

55:                                               ; preds = %54
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  %56 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull @.str.10)
          to label %57 unwind label %68

57:                                               ; preds = %55
  invoke void @__cxa_throw(ptr nonnull %56, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
          to label %145 unwind label %58

58:                                               ; preds = %57
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %128

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

62:                                               ; preds = %51
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %66

64:                                               ; preds = %54
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  br label %66

66:                                               ; preds = %64, %62
  %.pn37 = phi { ptr, i32 } [ %65, %64 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br label %67

67:                                               ; preds = %66, %60
  %.pn37.pn = phi { ptr, i32 } [ %.pn37, %66 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br label %128

68:                                               ; preds = %55
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %56) #8
  br label %128

70:                                               ; preds = %.lr.ph54
  %71 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt6vectorI14t_rules_subsetSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %44) #8
  %72 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK14t_rules_subsetixEm(ptr noundef nonnull align 8 dereferenceable(56) %71, i64 noundef 0)
  %73 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNKSt6vectorI11PatternRuleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %4) #8
  %74 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK11PatternRule10as_VariantEv(ptr noundef nonnull align 8 dereferenceable(120) %73)
  %75 = load i32, ptr %74, align 8, !tbaa !16
  %76 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %77 unwind label %.loopexit

77:                                               ; preds = %70
  br i1 %76, label %78, label %89

78:                                               ; preds = %77
  %79 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !9
  %80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %79, ptr noundef nonnull @__func__._ZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaIS5_EEmRKS4_IjSaIjEEj)
          to label %81 unwind label %.loopexit

81:                                               ; preds = %78
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull @.str.87)
          to label %83 unwind label %.loopexit

83:                                               ; preds = %81
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %82, i32 noundef %75)
          to label %85 unwind label %.loopexit

85:                                               ; preds = %83
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %87 unwind label %.loopexit

87:                                               ; preds = %85
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %89 unwind label %.loopexit

.loopexit:                                        ; preds = %70, %78, %81, %83, %85, %87
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %128

.loopexit.split-lp:                               ; preds = %98
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %128

89:                                               ; preds = %77, %87
  %90 = getelementptr inbounds i8, ptr %74, i64 8
  %91 = call noundef i64 @_ZNKSt6vectorI11PatternRuleSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #8
  %92 = icmp eq i64 %91, 0
  br i1 %92, label %106, label %93

93:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  %94 = load ptr, ptr %0, align 8, !tbaa !15
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %94)
          to label %95 unwind label %99

95:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #8
  call void @"_ZNSt8functionIFvRSoEEC2IZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaISA_EEmRKS9_IjSaIjEEjE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull %18)
          to label %96 unwind label %101

96:                                               ; preds = %95
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  %97 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %97, ptr noundef nonnull @.str.10)
          to label %98 unwind label %104

98:                                               ; preds = %96
  invoke void @__cxa_throw(ptr nonnull %97, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
          to label %145 unwind label %.loopexit.split-lp

99:                                               ; preds = %93
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %95
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  br label %103

103:                                              ; preds = %101, %99
  %.pn40 = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  br label %128

104:                                              ; preds = %96
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %97) #8
  br label %128

106:                                              ; preds = %89
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.03452) #8
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %109 = zext i32 %75 to i64
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %109) #8
  store i32 %108, ptr %110, align 4, !tbaa !9
  %111 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt6vectorI14t_rules_subsetSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %44) #8
  %112 = call noundef i64 @_ZNK14t_rules_subset4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %111)
  %.not56 = icmp eq i64 %112, 0
  br i1 %.not56, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %122, %106
  %.135.lcssa = phi i64 [ %.03452, %106 ], [ %123, %122 ]
  %113 = add i64 %44, 1
  store i64 %113, ptr %13, align 8, !tbaa !5
  %114 = call noundef i64 @_ZNKSt6vectorI14t_rules_subsetSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %115 = icmp ult i64 %113, %114
  br i1 %115, label %.lr.ph54, label %._crit_edge55, !llvm.loop !22

.lr.ph:                                           ; preds = %106, %122
  %.051 = phi i64 [ %124, %122 ], [ 0, %106 ]
  %.13550 = phi i64 [ %123, %122 ], [ %.03452, %106 ]
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %109) #8
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.13550) #8
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = icmp eq i32 %117, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %.lr.ph
  call void @__assert_fail(ptr noundef nonnull @.str.88, ptr noundef nonnull @.str.17, i32 noundef 3679, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN15MatchGenGrouped18gen_dispatch__enumEN3HIR7TypeRefEN3MIR6LValueERKSt6vectorI14t_rules_subsetSaIS5_EEmRKS4_IjSaIjEEj) #10
  unreachable

122:                                              ; preds = %.lr.ph
  %123 = add i64 %.13550, 1
  %124 = add nuw i64 %.051, 1
  %125 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt6vectorI14t_rules_subsetSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %44) #8
  %126 = call noundef i64 @_ZNK14t_rules_subset4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %125)
  %127 = icmp ult i64 %124, %126
  br i1 %127, label %.lr.ph, label %._crit_edge, !llvm.loop !24

128:                                              ; preds = %.loopexit, %.loopexit.split-lp, %103, %104, %68, %67, %58
  %.pn42.pn = phi { ptr, i32 } [ %59, %58 ], [ %69, %68 ], [ %.pn37.pn, %67 ], [ %105, %104 ], [ %.pn40, %103 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %142

129:                                              ; preds = %._crit_edge55
  %130 = load ptr, ptr %28, align 8, !tbaa !11
  invoke void @_ZN3MIR6LValueC2EOS0_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %131 unwind label %135

131:                                              ; preds = %129
  %132 = getelementptr inbounds i8, ptr %21, i64 32
  call void @_ZNSt6vectorIjSaIjEEC2EOS1_(ptr noundef nonnull align 8 dereferenceable(24) %132, ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  invoke void @_ZN3MIR10Terminator11make_SwitchENS0_11Data_SwitchE(ptr dead_on_unwind nonnull writable sret(%"class.MIR::Terminator") align 8 %20, ptr noundef nonnull %21)
          to label %133 unwind label %137

133:                                              ; preds = %131
  invoke void @_ZN10MirBuilder9end_blockEN3MIR10TerminatorE(ptr noundef nonnull align 8 dereferenceable(440) %130, ptr noundef nonnull %20)
          to label %134 unwind label %139

134:                                              ; preds = %133
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %20) #8
  call void @_ZN3MIR10Terminator11Data_SwitchD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #8
  ret void

135:                                              ; preds = %129, %._crit_edge55
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %142

137:                                              ; preds = %131
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %141

139:                                              ; preds = %133
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR10TerminatorD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %20) #8
  br label %141

141:                                              ; preds = %139, %137
  %.pn = phi { ptr, i32 } [ %140, %139 ], [ %138, %137 ]
  call void @_ZN3MIR10Terminator11Data_SwitchD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #8
  br label %142

142:                                              ; preds = %141, %135, %128
  %.pn42.pn.pn = phi { ptr, i32 } [ %.pn42.pn, %128 ], [ %.pn, %141 ], [ %136, %135 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  br label %143

143:                                              ; preds = %142, %42
  %.pn42.pn.pn.pn = phi { ptr, i32 } [ %.pn42.pn.pn, %142 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  br label %144

144:                                              ; preds = %40, %143, %38
  %.pn42.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %39, %38 ], [ %.pn42.pn.pn.pn, %143 ], [ %41, %40 ]
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #8
  resume { ptr, i32 } %.pn42.pn.pn.pn.pn.pn

145:                                              ; preds = %98, %57
  unreachable
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 "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 = { noreturn 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn }
attributes #10 = { noreturn 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 = !{!"long", !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, !13, i64 8}
!12 = !{!"_ZTS15MatchGenGrouped", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !6, i64 40}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !13, i64 0}
!16 = !{!17, !10, i64 0}
!17 = !{!"_ZTSN11PatternRule12Data_VariantE", !10, i64 0, !18, i64 8}
!18 = !{!"_ZTSSt6vectorI11PatternRuleSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseI11PatternRuleSaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI11PatternRuleSaIS0_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI11PatternRuleSaIS0_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


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