; LLVM IR from thepowersgang/mrustc :: src/hir (hir_ops)

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

%struct.Span = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.413 = type { ptr }
%class.anon.424 = type { ptr }
%class.anon.425 = type { ptr }
%class.anon.426 = type { ptr, ptr }
%class.anon.427 = type { ptr }
%class.anon.428 = type { ptr }
%class.anon.429 = type { ptr }
%class.anon.430 = type { i8 }
%"struct.HIR::Pattern::PathBinding::Data_Enum" = type { ptr, i32 }
%"class.HIR::Enum" = type { %"class.HIR::GenericParams", i8, i32, %"class.HIR::Enum::Class", %"struct.HIR::TraitMarkings" }
%"class.HIR::GenericParams" = type { %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.10" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.HIR::Enum::Class" = type { i32, %"union.HIR::Enum::Class::DataUnion" }
%"union.HIR::Enum::Class::DataUnion" = type { %"class.std::vector.414", [8 x i8] }
%"class.std::vector.414" = type { %"struct.std::_Vector_base.415" }
%"struct.std::_Vector_base.415" = type { %"struct.std::_Vector_base<HIR::Enum::DataVariant, std::allocator<HIR::Enum::DataVariant>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::Enum::DataVariant, std::allocator<HIR::Enum::DataVariant>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::Enum::DataVariant, std::allocator<HIR::Enum::DataVariant>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::Enum::DataVariant, std::allocator<HIR::Enum::DataVariant>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.HIR::TraitMarkings" = type { i8, i8, i8, %"class.std::map.395" }
%"class.std::map.395" = type { %"class.std::_Rb_tree.396" }
%"class.std::_Rb_tree.396" = type { %"struct.std::_Rb_tree<HIR::SimplePath, std::pair<const HIR::SimplePath, HIR::TraitMarkings::AutoMarking>, std::_Select1st<std::pair<const HIR::SimplePath, HIR::TraitMarkings::AutoMarking>>, std::less<HIR::SimplePath>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<HIR::SimplePath, std::pair<const HIR::SimplePath, HIR::TraitMarkings::AutoMarking>, std::_Select1st<std::pair<const HIR::SimplePath, HIR::TraitMarkings::AutoMarking>>, std::less<HIR::SimplePath>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.HIR::Enum::DataVariant" = type { %class.RcString, i8, %"class.HIR::TypeRef" }
%class.RcString = type { ptr }
%"class.HIR::TypeRef" = type { ptr }
%"struct.HIR::TypeData_Path" = type { %"class.HIR::Path", %"class.HIR::TypePathBinding", %"class.std::unique_ptr" }
%"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" }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector.35 }
%class.ThinVector.35 = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector, %class.ThinVector.15, %class.ThinVector.16 }
%class.ThinVector = type { ptr }
%class.ThinVector.15 = type { ptr }
%class.ThinVector.16 = type { ptr }
%"class.HIR::TypePathBinding" = type { i32, %"union.HIR::TypePathBinding::DataUnion" }
%"union.HIR::TypePathBinding::DataUnion" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.47" }
%"struct.std::_Head_base.47" = type { ptr }
%"class.HIR::Struct" = type <{ %"class.HIR::GenericParams", i32, [4 x i8], %"class.HIR::Struct::Data", i32, i32, %"struct.HIR::TraitMarkings", %"struct.HIR::StructMarkings", i32, [4 x i8] }>
%"class.HIR::Struct::Data" = type { i32, %"union.HIR::Struct::Data::DataUnion" }
%"union.HIR::Struct::Data::DataUnion" = type { %"class.std::vector.385" }
%"class.std::vector.385" = type { %"struct.std::_Vector_base.386" }
%"struct.std::_Vector_base.386" = type { %"struct.std::_Vector_base<HIR::VisEnt<HIR::TypeRef>, std::allocator<HIR::VisEnt<HIR::TypeRef>>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::VisEnt<HIR::TypeRef>, std::allocator<HIR::VisEnt<HIR::TypeRef>>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::VisEnt<HIR::TypeRef>, std::allocator<HIR::VisEnt<HIR::TypeRef>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::VisEnt<HIR::TypeRef>, std::allocator<HIR::VisEnt<HIR::TypeRef>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.HIR::StructMarkings" = type { i8, i32, i32, i32, i32, i32, i32, i8, i8, %class.U128 }
%class.U128 = type { i64, i64 }

@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.28 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [39 x i8], align 1
@__PRETTY_FUNCTION__._ZN3HIR18pattern_get_structERK4SpanRKNS_4PathERKNS_7Pattern11PathBindingEb = external hidden unnamed_addr constant [123 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(252) ptr @_ZN3HIR18pattern_get_structERK4SpanRKNS_4PathERKNS_7Pattern11PathBindingEb(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i1 noundef zeroext %3) #6 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca %struct.Span, align 8
  %16 = alloca %"class.std::function", align 8
  %17 = alloca %class.anon.413, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i8, align 1
  %21 = alloca ptr, align 8
  %22 = alloca i8, align 1
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %struct.Span, align 8
  %26 = alloca %"class.std::function", align 8
  %27 = alloca %class.anon.424, align 8
  %28 = alloca %struct.Span, align 8
  %29 = alloca %"class.std::function", align 8
  %30 = alloca %class.anon.425, align 8
  %31 = alloca ptr, align 8
  %32 = alloca %struct.Span, align 8
  %33 = alloca %"class.std::function", align 8
  %34 = alloca %class.anon.426, align 8
  %35 = alloca %struct.Span, align 8
  %36 = alloca %"class.std::function", align 8
  %37 = alloca %class.anon.427, align 8
  %38 = alloca %struct.Span, align 8
  %39 = alloca %"class.std::function", align 8
  %40 = alloca %class.anon.428, align 8
  %41 = alloca ptr, align 8
  %42 = alloca %struct.Span, align 8
  %43 = alloca %"class.std::function", align 8
  %44 = alloca %class.anon.429, align 8
  %45 = alloca %struct.Span, align 8
  %46 = alloca %"class.std::function", align 8
  %47 = alloca %class.anon.430, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %48 = zext i1 %3 to i8
  store i8 %48, ptr %8, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  store i8 1, ptr %10, align 1, !tbaa !9
  br label %49

49:                                               ; preds = %299, %4
  %50 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %51 = trunc i8 %50 to i1
  br i1 %51, label %53, label %52

52:                                               ; preds = %49
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  br label %300

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %54, ptr %12, align 8, !tbaa !5
  br label %55

55:                                               ; preds = %296, %53
  %56 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %57 = trunc i8 %56 to i1
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %298

59:                                               ; preds = %55
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = call noundef i32 @_ZNK3HIR7Pattern11PathBinding3tagEv(ptr noundef nonnull align 8 dereferenceable(24) %60)
  switch i32 %61, label %295 [
    i32 0, label %62
    i32 1, label %63
    i32 2, label %99
    i32 3, label %119
  ]

62:                                               ; preds = %59
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.28, i32 noundef 1322, ptr noundef @__PRETTY_FUNCTION__._ZN3HIR18pattern_get_structERK4SpanRKNS_4PathERKNS_7Pattern11PathBindingEb) #8
  unreachable

63:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #7
  store i8 1, ptr %13, align 1, !tbaa !9
  br label %64

64:                                               ; preds = %97, %63
  %65 = load i8, ptr %13, align 1, !tbaa !9, !range !11, !noundef !12
  %66 = trunc i8 %65 to i1
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  store i32 9, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  br label %98

68:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3HIR7Pattern11PathBinding10as_UnboundEv(ptr noundef nonnull align 8 dereferenceable(24) %69)
  store ptr %70, ptr %14, align 8, !tbaa !5
  br label %71

71:                                               ; preds = %94, %68
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  %73 = load i8, ptr %13, align 1, !tbaa !9, !range !11, !noundef !12
  %74 = trunc i8 %73 to i1
  br i1 %74, label %76, label %75

75:                                               ; preds = %71
  store i32 12, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %96

76:                                               ; preds = %71
  br label %77

77:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %78)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %79 = getelementptr inbounds %class.anon.413, ptr %17, i32 0, i32 0
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %80, ptr %79, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef %16)
          to label %81 unwind label %84

81:                                               ; preds = %77
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %82 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %82, ptr noundef @.str.7)
          to label %83 unwind label %88

83:                                               ; preds = %81
  call void @__cxa_throw(ptr %82, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

84:                                               ; preds = %77
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %18, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %95

88:                                               ; preds = %81
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %18, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %19, align 4
  call void @__cxa_free_exception(ptr %82) #7
  br label %95

92:                                               ; No predecessors!
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  store i8 0, ptr %13, align 1, !tbaa !9
  br label %71, !llvm.loop !13

95:                                               ; preds = %88, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  br label %297

96:                                               ; preds = %75
  br label %97

97:                                               ; preds = %96
  store i8 0, ptr %13, align 1, !tbaa !9
  br label %64, !llvm.loop !15

98:                                               ; preds = %67
  br label %295

99:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  store i8 1, ptr %20, align 1, !tbaa !9
  br label %100

100:                                              ; preds = %117, %99
  %101 = load i8, ptr %20, align 1, !tbaa !9, !range !11, !noundef !12
  %102 = trunc i8 %101 to i1
  br i1 %102, label %104, label %103

103:                                              ; preds = %100
  store i32 17, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  br label %118

104:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR7Pattern11PathBinding9as_StructEv(ptr noundef nonnull align 8 dereferenceable(24) %105)
  store ptr %106, ptr %21, align 8, !tbaa !5
  br label %107

107:                                              ; preds = %115, %104
  %108 = load ptr, ptr %21, align 8, !tbaa !5
  %109 = load i8, ptr %20, align 1, !tbaa !9, !range !11, !noundef !12
  %110 = trunc i8 %109 to i1
  br i1 %110, label %112, label %111

111:                                              ; preds = %107
  store i32 20, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %116

112:                                              ; preds = %107
  %113 = load ptr, ptr %21, align 8, !tbaa !5
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  store ptr %114, ptr %9, align 8, !tbaa !5
  br label %115

115:                                              ; preds = %112
  store i8 0, ptr %20, align 1, !tbaa !9
  br label %107, !llvm.loop !16

116:                                              ; preds = %111
  br label %117

117:                                              ; preds = %116
  store i8 0, ptr %20, align 1, !tbaa !9
  br label %100, !llvm.loop !17

118:                                              ; preds = %103
  br label %295

119:                                              ; preds = %59
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  store i8 1, ptr %22, align 1, !tbaa !9
  br label %120

120:                                              ; preds = %293, %119
  %121 = load i8, ptr %22, align 1, !tbaa !9, !range !11, !noundef !12
  %122 = trunc i8 %121 to i1
  br i1 %122, label %124, label %123

123:                                              ; preds = %120
  store i32 23, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %294

124:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR7Pattern11PathBinding7as_EnumEv(ptr noundef nonnull align 8 dereferenceable(24) %125)
  store ptr %126, ptr %23, align 8, !tbaa !5
  br label %127

127:                                              ; preds = %289, %124
  %128 = load ptr, ptr %23, align 8, !tbaa !5
  %129 = load i8, ptr %22, align 1, !tbaa !9, !range !11, !noundef !12
  %130 = trunc i8 %129 to i1
  br i1 %130, label %132, label %131

131:                                              ; preds = %127
  store i32 26, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %292

132:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %133 = load ptr, ptr %23, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.HIR::Pattern::PathBinding::Data_Enum", ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !18
  store ptr %135, ptr %24, align 8, !tbaa !5
  %136 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %137 = trunc i8 %136 to i1
  br i1 %137, label %138, label %161

138:                                              ; preds = %132
  br label %139

139:                                              ; preds = %138
  %140 = load ptr, ptr %24, align 8, !tbaa !5
  %141 = getelementptr inbounds %"class.HIR::Enum", ptr %140, i32 0, i32 3
  %142 = call noundef zeroext i1 @_ZNK3HIR4Enum5Class7is_DataEv(ptr noundef nonnull align 8 dereferenceable(40) %141)
  br i1 %142, label %158, label %143

143:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %144)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %145 = getelementptr inbounds %class.anon.424, ptr %27, i32 0, i32 0
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %146, ptr %145, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef %26)
          to label %147 unwind label %150

147:                                              ; preds = %143
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  %148 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %148, ptr noundef @.str.7)
          to label %149 unwind label %154

149:                                              ; preds = %147
  call void @__cxa_throw(ptr %148, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

150:                                              ; preds = %143
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %18, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %291

154:                                              ; preds = %147
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %18, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %19, align 4
  call void @__cxa_free_exception(ptr %148) #7
  br label %291

158:                                              ; preds = %139
  br label %159

159:                                              ; preds = %158
  br label %160

160:                                              ; preds = %159
  br label %184

161:                                              ; preds = %132
  br label %162

162:                                              ; preds = %161
  %163 = load ptr, ptr %24, align 8, !tbaa !5
  %164 = getelementptr inbounds %"class.HIR::Enum", ptr %163, i32 0, i32 3
  %165 = call noundef zeroext i1 @_ZNK3HIR4Enum5Class7is_DataEv(ptr noundef nonnull align 8 dereferenceable(40) %164)
  br i1 %165, label %181, label %166

166:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %167)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %168 = getelementptr inbounds %class.anon.425, ptr %30, i32 0, i32 0
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %169, ptr %168, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef %29)
          to label %170 unwind label %173

170:                                              ; preds = %166
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  %171 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %171, ptr noundef @.str.7)
          to label %172 unwind label %177

172:                                              ; preds = %170
  call void @__cxa_throw(ptr %171, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

173:                                              ; preds = %166
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %18, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %291

177:                                              ; preds = %170
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %18, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %19, align 4
  call void @__cxa_free_exception(ptr %171) #7
  br label %291

181:                                              ; preds = %162
  br label %182

182:                                              ; preds = %181
  br label %183

183:                                              ; preds = %182
  br label %184

184:                                              ; preds = %183, %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %185 = load ptr, ptr %24, align 8, !tbaa !5
  %186 = getelementptr inbounds %"class.HIR::Enum", ptr %185, i32 0, i32 3
  %187 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3HIR4Enum5Class7as_DataEv(ptr noundef nonnull align 8 dereferenceable(40) %186)
  store ptr %187, ptr %31, align 8, !tbaa !5
  br label %188

188:                                              ; preds = %184
  %189 = load ptr, ptr %23, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.HIR::Pattern::PathBinding::Data_Enum", ptr %189, i32 0, i32 1
  %191 = load i32, ptr %190, align 8, !tbaa !21
  %192 = zext i32 %191 to i64
  %193 = load ptr, ptr %31, align 8, !tbaa !5
  %194 = call noundef i64 @_ZNKSt6vectorIN3HIR4Enum11DataVariantESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %193) #7
  %195 = icmp ult i64 %192, %194
  br i1 %195, label %213, label %196

196:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %197)
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #7
  %198 = getelementptr inbounds %class.anon.426, ptr %34, i32 0, i32 0
  %199 = load ptr, ptr %23, align 8, !tbaa !5
  store ptr %199, ptr %198, align 8, !tbaa !5
  %200 = getelementptr inbounds %class.anon.426, ptr %34, i32 0, i32 1
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %201, ptr %200, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(16) %34) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef %33)
          to label %202 unwind label %205

202:                                              ; preds = %196
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  %203 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %203, ptr noundef @.str.7)
          to label %204 unwind label %209

204:                                              ; preds = %202
  call void @__cxa_throw(ptr %203, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

205:                                              ; preds = %196
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %18, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %290

209:                                              ; preds = %202
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %18, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %19, align 4
  call void @__cxa_free_exception(ptr %203) #7
  br label %290

213:                                              ; preds = %188
  br label %214

214:                                              ; preds = %213
  br label %215

215:                                              ; preds = %214
  %216 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %217 = trunc i8 %216 to i1
  br i1 %217, label %218, label %247

218:                                              ; preds = %215
  br label %219

219:                                              ; preds = %218
  %220 = load ptr, ptr %31, align 8, !tbaa !5
  %221 = load ptr, ptr %23, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.HIR::Pattern::PathBinding::Data_Enum", ptr %221, i32 0, i32 1
  %223 = load i32, ptr %222, align 8, !tbaa !21
  %224 = zext i32 %223 to i64
  %225 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN3HIR4Enum11DataVariantESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %220, i64 noundef %224) #7
  %226 = getelementptr inbounds %"struct.HIR::Enum::DataVariant", ptr %225, i32 0, i32 1
  %227 = load i8, ptr %226, align 8, !tbaa !22, !range !11, !noundef !12
  %228 = trunc i8 %227 to i1
  br i1 %228, label %229, label %244

229:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %230)
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %231 = getelementptr inbounds %class.anon.427, ptr %37, i32 0, i32 0
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %232, ptr %231, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef %36)
          to label %233 unwind label %236

233:                                              ; preds = %229
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  %234 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %234, ptr noundef @.str.7)
          to label %235 unwind label %240

235:                                              ; preds = %233
  call void @__cxa_throw(ptr %234, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

236:                                              ; preds = %229
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %18, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  br label %290

240:                                              ; preds = %233
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %18, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %19, align 4
  call void @__cxa_free_exception(ptr %234) #7
  br label %290

244:                                              ; preds = %219
  br label %245

245:                                              ; preds = %244
  br label %246

246:                                              ; preds = %245
  br label %276

247:                                              ; preds = %215
  br label %248

248:                                              ; preds = %247
  %249 = load ptr, ptr %31, align 8, !tbaa !5
  %250 = load ptr, ptr %23, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.HIR::Pattern::PathBinding::Data_Enum", ptr %250, i32 0, i32 1
  %252 = load i32, ptr %251, align 8, !tbaa !21
  %253 = zext i32 %252 to i64
  %254 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN3HIR4Enum11DataVariantESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %249, i64 noundef %253) #7
  %255 = getelementptr inbounds %"struct.HIR::Enum::DataVariant", ptr %254, i32 0, i32 1
  %256 = load i8, ptr %255, align 8, !tbaa !22, !range !11, !noundef !12
  %257 = trunc i8 %256 to i1
  br i1 %257, label %273, label %258

258:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %259 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %259)
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %260 = getelementptr inbounds %class.anon.428, ptr %40, i32 0, i32 0
  %261 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %261, ptr %260, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef %39)
          to label %262 unwind label %265

262:                                              ; preds = %258
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  %263 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %263, ptr noundef @.str.7)
          to label %264 unwind label %269

264:                                              ; preds = %262
  call void @__cxa_throw(ptr %263, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

265:                                              ; preds = %258
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %18, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  br label %290

269:                                              ; preds = %262
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %18, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %19, align 4
  call void @__cxa_free_exception(ptr %263) #7
  br label %290

273:                                              ; preds = %248
  br label %274

274:                                              ; preds = %273
  br label %275

275:                                              ; preds = %274
  br label %276

276:                                              ; preds = %275, %246
  %277 = load ptr, ptr %31, align 8, !tbaa !5
  %278 = load ptr, ptr %23, align 8, !tbaa !5
  %279 = getelementptr inbounds %"struct.HIR::Pattern::PathBinding::Data_Enum", ptr %278, i32 0, i32 1
  %280 = load i32, ptr %279, align 8, !tbaa !21
  %281 = zext i32 %280 to i64
  %282 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN3HIR4Enum11DataVariantESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %277, i64 noundef %281) #7
  %283 = getelementptr inbounds %"struct.HIR::Enum::DataVariant", ptr %282, i32 0, i32 2
  %284 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %283)
  %285 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %284)
  %286 = getelementptr inbounds %"struct.HIR::TypeData_Path", ptr %285, i32 0, i32 1
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR15TypePathBinding9as_StructEv(ptr noundef nonnull align 8 dereferenceable(16) %286)
  %288 = load ptr, ptr %287, align 8, !tbaa !5
  store ptr %288, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %289

289:                                              ; preds = %276
  store i8 0, ptr %22, align 1, !tbaa !9
  br label %127, !llvm.loop !26

290:                                              ; preds = %269, %265, %240, %236, %209, %205
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %291

291:                                              ; preds = %290, %177, %173, %154, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %297

292:                                              ; preds = %131
  br label %293

293:                                              ; preds = %292
  store i8 0, ptr %22, align 1, !tbaa !9
  br label %120, !llvm.loop !27

294:                                              ; preds = %123
  br label %295

295:                                              ; preds = %294, %118, %98, %59
  br label %296

296:                                              ; preds = %295
  store i8 0, ptr %10, align 1, !tbaa !9
  br label %55, !llvm.loop !28

297:                                              ; preds = %291, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  br label %351

298:                                              ; preds = %58
  br label %299

299:                                              ; preds = %298
  store i8 0, ptr %10, align 1, !tbaa !9
  br label %49, !llvm.loop !29

300:                                              ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %301 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %301, ptr %41, align 8, !tbaa !5
  %302 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %303 = trunc i8 %302 to i1
  br i1 %303, label %304, label %327

304:                                              ; preds = %300
  br label %305

305:                                              ; preds = %304
  %306 = load ptr, ptr %41, align 8, !tbaa !5
  %307 = getelementptr inbounds %"class.HIR::Struct", ptr %306, i32 0, i32 3
  %308 = call noundef zeroext i1 @_ZNK3HIR6Struct4Data8is_TupleEv(ptr noundef nonnull align 8 dereferenceable(32) %307)
  br i1 %308, label %324, label %309

309:                                              ; preds = %305
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %310 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %310)
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  %311 = getelementptr inbounds %class.anon.429, ptr %44, i32 0, i32 0
  %312 = load ptr, ptr %41, align 8, !tbaa !5
  store ptr %312, ptr %311, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_6vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(8) %44) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef %43)
          to label %313 unwind label %316

313:                                              ; preds = %309
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  %314 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %314, ptr noundef @.str.7)
          to label %315 unwind label %320

315:                                              ; preds = %313
  call void @__cxa_throw(ptr %314, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

316:                                              ; preds = %309
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %18, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  br label %350

320:                                              ; preds = %313
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %18, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %19, align 4
  call void @__cxa_free_exception(ptr %314) #7
  br label %350

324:                                              ; preds = %305
  br label %325

325:                                              ; preds = %324
  br label %326

326:                                              ; preds = %325
  br label %348

327:                                              ; preds = %300
  br label %328

328:                                              ; preds = %327
  %329 = load ptr, ptr %41, align 8, !tbaa !5
  %330 = getelementptr inbounds %"class.HIR::Struct", ptr %329, i32 0, i32 3
  %331 = call noundef zeroext i1 @_ZNK3HIR6Struct4Data8is_NamedEv(ptr noundef nonnull align 8 dereferenceable(32) %330)
  br i1 %331, label %345, label %332

332:                                              ; preds = %328
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  %333 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %333)
  call void @llvm.lifetime.start.p0(i64 1, ptr %47) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_7vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef nonnull align 1 dereferenceable(1) %47) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef %46)
          to label %334 unwind label %337

334:                                              ; preds = %332
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  %335 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %335, ptr noundef @.str.7)
          to label %336 unwind label %341

336:                                              ; preds = %334
  call void @__cxa_throw(ptr %335, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

337:                                              ; preds = %332
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %18, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  br label %350

341:                                              ; preds = %334
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %18, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %19, align 4
  call void @__cxa_free_exception(ptr %335) #7
  br label %350

345:                                              ; preds = %328
  br label %346

346:                                              ; preds = %345
  br label %347

347:                                              ; preds = %346
  br label %348

348:                                              ; preds = %347, %326
  %349 = load ptr, ptr %41, align 8, !tbaa !5
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  ret ptr %349

350:                                              ; preds = %341, %337, %320, %316
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  br label %351

351:                                              ; preds = %350, %297
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %352

352:                                              ; preds = %351
  %353 = load ptr, ptr %18, align 8
  %354 = load i32, ptr %19, align 4
  %355 = insertvalue { ptr, i32 } poison, ptr %353, 0
  %356 = insertvalue { ptr, i32 } %355, i32 %354, 1
  resume { ptr, i32 } %356
}

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 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 @_ZNK3HIR15TypePathBinding9as_StructEv(ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTSN3HIR7Pattern11PathBinding9Data_EnumE", !6, i64 0, !20, i64 8}
!20 = !{!"int", !7, i64 0}
!21 = !{!19, !20, i64 8}
!22 = !{!23, !10, i64 8}
!23 = !{!"_ZTSN3HIR4Enum11DataVariantE", !24, i64 0, !10, i64 8, !25, i64 16}
!24 = !{!"_ZTS8RcString", !6, i64 0}
!25 = !{!"_ZTSN3HIR7TypeRefE", !6, i64 0}
!26 = distinct !{!26, !14}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14}
!29 = distinct !{!29, !14}


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

%struct.Span = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.413 = type { ptr }
%class.anon.424 = type { ptr }
%class.anon.425 = type { ptr }
%class.anon.426 = type { ptr, ptr }
%class.anon.427 = type { ptr }
%class.anon.428 = type { ptr }
%class.anon.429 = type { ptr }
%class.anon.430 = type { i8 }

@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.28 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [39 x i8], align 1
@__PRETTY_FUNCTION__._ZN3HIR18pattern_get_structERK4SpanRKNS_4PathERKNS_7Pattern11PathBindingEb = external hidden unnamed_addr constant [123 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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 #0

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

; 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 #3 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(252) ptr @_ZN3HIR18pattern_get_structERK4SpanRKNS_4PathERKNS_7Pattern11PathBindingEb(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i1 noundef zeroext %3) local_unnamed_addr #6 personality ptr @__gxx_personality_v0 {
.split285:
  %4 = alloca %struct.Span, align 8
  %5 = alloca %"class.std::function", align 8
  %6 = alloca %class.anon.413, align 8
  %7 = alloca %struct.Span, align 8
  %8 = alloca %"class.std::function", align 8
  %9 = alloca %class.anon.424, align 8
  %10 = alloca %struct.Span, align 8
  %11 = alloca %"class.std::function", align 8
  %12 = alloca %class.anon.425, align 8
  %13 = alloca %struct.Span, align 8
  %14 = alloca %"class.std::function", align 8
  %15 = alloca %class.anon.426, align 8
  %16 = alloca %struct.Span, align 8
  %17 = alloca %"class.std::function", align 8
  %18 = alloca %class.anon.427, align 8
  %19 = alloca %struct.Span, align 8
  %20 = alloca %"class.std::function", align 8
  %21 = alloca %class.anon.428, align 8
  %22 = alloca %struct.Span, align 8
  %23 = alloca %"class.std::function", align 8
  %24 = alloca %class.anon.429, align 8
  %25 = alloca %struct.Span, align 8
  %26 = alloca %"class.std::function", align 8
  %27 = alloca %class.anon.430, align 1
  %28 = tail call noundef i32 @_ZNK3HIR7Pattern11PathBinding3tagEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  br i1 %3, label %.lr.ph.us, label %.lr.ph

.lr.ph.us:                                        ; preds = %.split285
  switch i32 %28, label %129 [
    i32 0, label %.split229.us
    i32 1, label %.split231.us
    i32 2, label %.preheader.us.us289
    i32 3, label %.preheader82.us.us290
  ]

.preheader.us.us289:                              ; preds = %.lr.ph.us
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR7Pattern11PathBinding9as_StructEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  br label %129

.preheader82.us.us290:                            ; preds = %.lr.ph.us
  %31 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR7Pattern11PathBinding7as_EnumEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  %33 = load ptr, ptr %31, align 8, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %33, i64 104
  %35 = tail call noundef zeroext i1 @_ZNK3HIR4Enum5Class7is_DataEv(ptr noundef nonnull align 8 dereferenceable(40) %34)
  br i1 %35, label %36, label %.split115.us

36:                                               ; preds = %.preheader82.us.us290
  %37 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3HIR4Enum5Class7as_DataEv(ptr noundef nonnull align 8 dereferenceable(40) %34)
  %38 = load i32, ptr %32, align 8, !tbaa !12
  %39 = zext i32 %38 to i64
  %40 = tail call noundef i64 @_ZNKSt6vectorIN3HIR4Enum11DataVariantESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  %41 = icmp ugt i64 %40, %39
  br i1 %41, label %42, label %.split117.us

42:                                               ; preds = %36
  %43 = load i32, ptr %32, align 8, !tbaa !12
  %44 = zext i32 %43 to i64
  %45 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN3HIR4Enum11DataVariantESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %44) #7
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = load i8, ptr %46, align 8, !tbaa !13, !range !18, !noundef !19
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %.split119.us, label %..loopexit80_crit_edge.split.us.us.us227.us291

..loopexit80_crit_edge.split.us.us.us227.us291:   ; preds = %42
  %49 = load i32, ptr %32, align 8, !tbaa !12
  %50 = zext i32 %49 to i64
  %51 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN3HIR4Enum11DataVariantESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %50) #7
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %53 = tail call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %52)
  %54 = tail call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %53)
  %55 = getelementptr inbounds i8, ptr %54, i64 88
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR15TypePathBinding9as_StructEv(ptr noundef nonnull align 8 dereferenceable(16) %55)
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  br label %129

.lr.ph:                                           ; preds = %.split285
  switch i32 %28, label %unreachable [
    i32 0, label %.split229.us
    i32 1, label %.split231.us
    i32 2, label %.preheader
    i32 3, label %.preheader82
  ]

.preheader82:                                     ; preds = %.lr.ph
  %58 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR7Pattern11PathBinding7as_EnumEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %59 = getelementptr inbounds i8, ptr %58, i64 8
  %60 = load ptr, ptr %58, align 8, !tbaa !9
  %61 = getelementptr inbounds i8, ptr %60, i64 104
  %62 = tail call noundef zeroext i1 @_ZNK3HIR4Enum5Class7is_DataEv(ptr noundef nonnull align 8 dereferenceable(40) %61)
  br i1 %62, label %86, label %.split

.preheader:                                       ; preds = %.lr.ph
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR7Pattern11PathBinding9as_StructEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  br label %.split293.us

.split229.us:                                     ; preds = %.lr.ph, %.lr.ph.us
  tail call void @__assert_fail(ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.28, i32 noundef 1322, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3HIR18pattern_get_structERK4SpanRKNS_4PathERKNS_7Pattern11PathBindingEb) #8
  unreachable

.split231.us:                                     ; preds = %.lr.ph, %.lr.ph.us
  %64 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3HIR7Pattern11PathBinding10as_UnboundEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  store ptr %1, ptr %6, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %5)
          to label %65 unwind label %68

65:                                               ; preds = %.split231.us
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %66 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull @.str.7)
          to label %67 unwind label %70

67:                                               ; preds = %65
  call void @__cxa_throw(ptr nonnull %66, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
  unreachable

68:                                               ; preds = %.split231.us
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %152

70:                                               ; preds = %65
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %66) #7
  br label %152

.split115.us:                                     ; preds = %.preheader82.us.us290
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  store ptr %1, ptr %9, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull %8)
          to label %72 unwind label %75

72:                                               ; preds = %.split115.us
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %73 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %73, ptr noundef nonnull @.str.7)
          to label %74 unwind label %77

74:                                               ; preds = %72
  call void @__cxa_throw(ptr nonnull %73, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
  unreachable

75:                                               ; preds = %.split115.us
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %152

77:                                               ; preds = %72
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %73) #7
  br label %152

.split:                                           ; preds = %.preheader82
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  store ptr %1, ptr %12, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull %11)
          to label %79 unwind label %82

79:                                               ; preds = %.split
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  %80 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %80, ptr noundef nonnull @.str.7)
          to label %81 unwind label %84

81:                                               ; preds = %79
  call void @__cxa_throw(ptr nonnull %80, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
  unreachable

82:                                               ; preds = %.split
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %152

84:                                               ; preds = %79
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %80) #7
  br label %152

86:                                               ; preds = %.preheader82
  %87 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3HIR4Enum5Class7as_DataEv(ptr noundef nonnull align 8 dereferenceable(40) %61)
  %88 = load i32, ptr %59, align 8, !tbaa !12
  %89 = zext i32 %88 to i64
  %90 = tail call noundef i64 @_ZNKSt6vectorIN3HIR4Enum11DataVariantESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #7
  %91 = icmp ugt i64 %90, %89
  br i1 %91, label %100, label %.split117.us

.split117.us:                                     ; preds = %86, %36
  %.us-phi = phi ptr [ %31, %36 ], [ %58, %86 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  store ptr %.us-phi, ptr %15, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %15, i64 8
  store ptr %1, ptr %92, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull %14)
          to label %93 unwind label %96

93:                                               ; preds = %.split117.us
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  %94 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %94, ptr noundef nonnull @.str.7)
          to label %95 unwind label %98

95:                                               ; preds = %93
  call void @__cxa_throw(ptr nonnull %94, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
  unreachable

96:                                               ; preds = %.split117.us
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %152

98:                                               ; preds = %93
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %94) #7
  br label %152

100:                                              ; preds = %86
  %101 = load i32, ptr %59, align 8, !tbaa !12
  %102 = zext i32 %101 to i64
  %103 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN3HIR4Enum11DataVariantESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %102) #7
  %104 = getelementptr inbounds i8, ptr %103, i64 8
  %105 = load i8, ptr %104, align 8, !tbaa !13, !range !18, !noundef !19
  %106 = trunc nuw i8 %105 to i1
  br i1 %106, label %..loopexit80_crit_edge.split, label %.split124

.split119.us:                                     ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  store ptr %1, ptr %18, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull %17)
          to label %107 unwind label %110

107:                                              ; preds = %.split119.us
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  %108 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %108, ptr noundef nonnull @.str.7)
          to label %109 unwind label %112

109:                                              ; preds = %107
  call void @__cxa_throw(ptr nonnull %108, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
  unreachable

110:                                              ; preds = %.split119.us
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br label %152

112:                                              ; preds = %107
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %108) #7
  br label %152

.split124:                                        ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  store ptr %1, ptr %21, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull %20)
          to label %114 unwind label %117

114:                                              ; preds = %.split124
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  %115 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %115, ptr noundef nonnull @.str.7)
          to label %116 unwind label %119

116:                                              ; preds = %114
  call void @__cxa_throw(ptr nonnull %115, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
  unreachable

117:                                              ; preds = %.split124
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %152

119:                                              ; preds = %114
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %115) #7
  br label %152

..loopexit80_crit_edge.split:                     ; preds = %100
  %121 = load i32, ptr %59, align 8, !tbaa !12
  %122 = zext i32 %121 to i64
  %123 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN3HIR4Enum11DataVariantESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %122) #7
  %124 = getelementptr inbounds i8, ptr %123, i64 16
  %125 = tail call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %124)
  %126 = tail call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %125)
  %127 = getelementptr inbounds i8, ptr %126, i64 88
  %128 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR15TypePathBinding9as_StructEv(ptr noundef nonnull align 8 dereferenceable(16) %127)
  br label %.split293.us

129:                                              ; preds = %..loopexit80_crit_edge.split.us.us.us227.us291, %.preheader.us.us289, %.lr.ph.us
  %.us-phi294.ph = phi ptr [ %57, %..loopexit80_crit_edge.split.us.us.us227.us291 ], [ %30, %.preheader.us.us289 ], [ null, %.lr.ph.us ]
  %130 = getelementptr inbounds i8, ptr %.us-phi294.ph, i64 104
  %131 = tail call noundef zeroext i1 @_ZNK3HIR6Struct4Data8is_TupleEv(ptr noundef nonnull align 8 dereferenceable(32) %130)
  br i1 %131, label %151, label %132

132:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  store ptr %.us-phi294.ph, ptr %24, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_6vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull %23)
          to label %133 unwind label %136

133:                                              ; preds = %132
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  %134 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %134, ptr noundef nonnull @.str.7)
          to label %135 unwind label %138

135:                                              ; preds = %133
  call void @__cxa_throw(ptr nonnull %134, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
  unreachable

136:                                              ; preds = %132
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br label %152

138:                                              ; preds = %133
  %139 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %134) #7
  br label %152

unreachable:                                      ; preds = %.lr.ph
  unreachable

.split293.us:                                     ; preds = %..loopexit80_crit_edge.split, %.preheader
  %.sink = phi ptr [ %128, %..loopexit80_crit_edge.split ], [ %63, %.preheader ]
  %140 = load ptr, ptr %.sink, align 8, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %140, i64 104
  %142 = tail call noundef zeroext i1 @_ZNK3HIR6Struct4Data8is_NamedEv(ptr noundef nonnull align 8 dereferenceable(32) %141)
  br i1 %142, label %151, label %143

143:                                              ; preds = %.split293.us
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_7vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 1 dereferenceable(1) %27) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull %26)
          to label %144 unwind label %147

144:                                              ; preds = %143
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  %145 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %145, ptr noundef nonnull @.str.7)
          to label %146 unwind label %149

146:                                              ; preds = %144
  call void @__cxa_throw(ptr nonnull %145, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
  unreachable

147:                                              ; preds = %143
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  br label %152

149:                                              ; preds = %144
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %145) #7
  br label %152

151:                                              ; preds = %.split293.us, %129
  %.us-phi294314 = phi ptr [ %140, %.split293.us ], [ %.us-phi294.ph, %129 ]
  ret ptr %.us-phi294314

152:                                              ; preds = %136, %138, %147, %149, %70, %68, %96, %98, %110, %112, %117, %119, %84, %82, %77, %75
  %.pn73.pn.pn.pn = phi { ptr, i32 } [ %71, %70 ], [ %69, %68 ], [ %78, %77 ], [ %76, %75 ], [ %85, %84 ], [ %83, %82 ], [ %113, %112 ], [ %111, %110 ], [ %120, %119 ], [ %118, %117 ], [ %99, %98 ], [ %97, %96 ], [ %139, %138 ], [ %137, %136 ], [ %150, %149 ], [ %148, %147 ]
  resume { ptr, i32 } %.pn73.pn.pn.pn
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR7Pattern11PathBinding9as_StructEv(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(16) ptr @_ZNK3HIR7Pattern11PathBinding7as_EnumEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN3HIR18pattern_get_structERK4SpanRKNS4_4PathERKNS4_7Pattern11PathBindingEbE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 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 @_ZNK3HIR15TypePathBinding9as_StructEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN3HIR7Pattern11PathBinding9Data_EnumE", !6, i64 0, !11, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !16, i64 8}
!14 = !{!"_ZTSN3HIR4Enum11DataVariantE", !15, i64 0, !16, i64 8, !17, i64 16}
!15 = !{!"_ZTS8RcString", !6, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSN3HIR7TypeRefE", !6, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass