; LLVM IR from thepowersgang/mrustc :: src/hir_typeck/expr_cs (enum)

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

%class.TraceLog = type { ptr, %"class.std::function" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.__gnu_cxx::__normal_iterator.450" = type { ptr }
%struct.Span = type { ptr }
%"class.HIR::TypeRef" = type { ptr }
%struct.M = type { %class.Monomorphiser, ptr, ptr, ptr, ptr }
%class.Monomorphiser = type { ptr, ptr, %"class.HIR::ItemPath", %"class.std::vector.122" }
%"class.HIR::ItemPath" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::vector.122" = type { %"struct.std::_Vector_base.123" }
%"struct.std::_Vector_base.123" = type { %"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl" }
%"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.451 = type { ptr }
%"class.typecheck::ExprVisitor_AddIvars" = type { %"class.HIR::ExprVisitorDef", ptr }
%"class.HIR::ExprVisitorDef" = type { %"class.HIR::ExprVisitor" }
%"class.HIR::ExprVisitor" = type { ptr }
%"class.typecheck::ExprVisitor_Enum" = type { %"class.HIR::ExprVisitor", ptr, ptr, %"class.std::vector.452", %"class.std::vector.107", %"class.std::vector.457", %"class.std::vector.462" }
%"class.std::vector.452" = type { %"struct.std::_Vector_base.453" }
%"struct.std::_Vector_base.453" = type { %"struct.std::_Vector_base<typecheck::ExprVisitor_Enum::RetTarget, std::allocator<typecheck::ExprVisitor_Enum::RetTarget>>::_Vector_impl" }
%"struct.std::_Vector_base<typecheck::ExprVisitor_Enum::RetTarget, std::allocator<typecheck::ExprVisitor_Enum::RetTarget>>::_Vector_impl" = type { %"struct.std::_Vector_base<typecheck::ExprVisitor_Enum::RetTarget, std::allocator<typecheck::ExprVisitor_Enum::RetTarget>>::_Vector_impl_data" }
%"struct.std::_Vector_base<typecheck::ExprVisitor_Enum::RetTarget, std::allocator<typecheck::ExprVisitor_Enum::RetTarget>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.107" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::vector.457" = type { %"struct.std::_Vector_base.458" }
%"struct.std::_Vector_base.458" = type { %"struct.std::_Vector_base<HIR::ExprNode_Loop *, std::allocator<HIR::ExprNode_Loop *>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::ExprNode_Loop *, std::allocator<HIR::ExprNode_Loop *>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::ExprNode_Loop *, std::allocator<HIR::ExprNode_Loop *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::ExprNode_Loop *, std::allocator<HIR::ExprNode_Loop *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.462" = type { %"struct.std::_Vector_base.463" }
%"struct.std::_Vector_base.463" = type { %"struct.std::_Vector_base<std::pair<const HIR::SimplePath *, const HIR::Trait *>, std::allocator<std::pair<const HIR::SimplePath *, const HIR::Trait *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<const HIR::SimplePath *, const HIR::Trait *>, std::allocator<std::pair<const HIR::SimplePath *, const HIR::Trait *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<const HIR::SimplePath *, const HIR::Trait *>, std::allocator<std::pair<const HIR::SimplePath *, const HIR::Trait *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<const HIR::SimplePath *, const HIR::Trait *>, std::allocator<std::pair<const HIR::SimplePath *, const HIR::Trait *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.389" = type { %"struct.HIR::Pattern", %"class.HIR::TypeRef" }
%"struct.HIR::Pattern" = type <{ %"class.std::vector.391", %"class.HIR::Pattern::Data", i32, [4 x i8] }>
%"class.std::vector.391" = type { %"struct.std::_Vector_base.392" }
%"struct.std::_Vector_base.392" = type { %"struct.std::_Vector_base<HIR::PatternBinding, std::allocator<HIR::PatternBinding>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::PatternBinding, std::allocator<HIR::PatternBinding>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::PatternBinding, std::allocator<HIR::PatternBinding>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::PatternBinding, std::allocator<HIR::PatternBinding>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.HIR::Pattern::Data" = type { i32, %"union.HIR::Pattern::Data::DataUnion" }
%"union.HIR::Pattern::Data::DataUnion" = type { %"struct.HIR::Pattern::Data::Data_PathValue", [64 x i8] }
%"struct.HIR::Pattern::Data::Data_PathValue" = type { %"class.HIR::Path", %"class.HIR::Pattern::PathBinding" }
%"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.17 }
%class.ThinVector.17 = type { ptr }
%class.RcString = 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.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.19" }
%"struct.std::_Head_base.19" = type { ptr }
%"class.HIR::Pattern::PathBinding" = type { i32, %"union.HIR::Pattern::PathBinding::DataUnion" }
%"union.HIR::Pattern::PathBinding::DataUnion" = type { %"struct.HIR::Pattern::PathBinding::Data_Enum" }
%"struct.HIR::Pattern::PathBinding::Data_Enum" = type { ptr, i32 }
%"class.HIR::ExprPtr" = type { %"class.HIR::ExprPtrInner", %"class.std::vector.51", %"class.std::vector.51", %"class.MIR::FunctionPointer", %"class.HIR::ExprStatePtr" }
%"class.HIR::ExprPtrInner" = type { ptr }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.MIR::FunctionPointer" = type { ptr }
%"class.HIR::ExprStatePtr" = type { ptr }
%"class.HIR::ExprNode" = type <{ ptr, %struct.Span, %"class.HIR::TypeRef", i32, [4 x i8] }>
%"struct.typeck::ModuleState" = type { ptr, ptr, ptr, ptr, %"class.std::vector.462", %"class.std::vector.148" }
%"class.std::vector.148" = type { %"struct.std::_Vector_base.149" }
%"struct.std::_Vector_base.149" = type { %"struct.std::_Vector_base<HIR::SimplePath, std::allocator<HIR::SimplePath>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::SimplePath, std::allocator<HIR::SimplePath>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::SimplePath, std::allocator<HIR::SimplePath>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::SimplePath, std::allocator<HIR::SimplePath>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@g_debug_indent_level = external global i32, align 4
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@__func__._Z33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EE = external hidden unnamed_addr constant [34 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [14 x i8], align 1

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

declare noundef zeroext i1 @_Z13debug_enabledv() #1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EE(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(72) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %class.TraceLog, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.450", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.450", align 8
  %20 = alloca ptr, align 8
  %21 = alloca %struct.Span, align 8
  %22 = alloca %"class.HIR::TypeRef", align 8
  %23 = alloca %struct.M, align 8
  %24 = alloca i64, align 8
  %25 = alloca %"class.HIR::TypeRef", align 8
  %26 = alloca %struct.Span, align 8
  %27 = alloca %"class.std::function", align 8
  %28 = alloca %class.anon.451, align 8
  %29 = alloca %"class.typecheck::ExprVisitor_AddIvars", align 8
  %30 = alloca %"class.typecheck::ExprVisitor_Enum", align 8
  %31 = alloca %"class.std::vector.462", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #7
  %32 = call noundef zeroext i1 @_Z13debug_enabledv()
  %33 = zext i1 %32 to i64
  %34 = select i1 %32, ptr @__func__._Z33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EE, ptr null
  call void @_ZN8TraceLogC1EPKc(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef %34)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR8ExprNode4spanEv(ptr noundef nonnull align 8 dereferenceable(28) %36)
          to label %38 unwind label %55

38:                                               ; preds = %6
  store ptr %37, ptr %14, align 8, !tbaa !5
  br label %39

39:                                               ; preds = %38
  %40 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %41 unwind label %55

41:                                               ; preds = %39
  br i1 %40, label %42, label %59

42:                                               ; preds = %41
  %43 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !9
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %43, ptr noundef @__func__._Z33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EE)
          to label %45 unwind label %55

45:                                               ; preds = %42
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef @.str.21)
          to label %47 unwind label %55

47:                                               ; preds = %45
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt4pairIN3HIR7PatternENS1_7TypeRefEEERSoS5_RKSt6vectorIT_SaIS7_EE(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(24) %48)
          to label %50 unwind label %55

50:                                               ; preds = %47
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef @_ZSt3decRSt8ios_base)
          to label %52 unwind label %55

52:                                               ; preds = %50
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %54 unwind label %55

54:                                               ; preds = %52
  br label %59

55:                                               ; preds = %75, %73, %70, %68, %65, %62, %52, %50, %47, %45, %42, %39, %6
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %15, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %16, align 4
  br label %311

59:                                               ; preds = %54, %41
  br label %60

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61
  %63 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %64 unwind label %55

64:                                               ; preds = %62
  br i1 %63, label %65, label %78

65:                                               ; preds = %64
  %66 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !9
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %66, ptr noundef @__func__._Z33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EE)
          to label %68 unwind label %55

68:                                               ; preds = %65
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef @.str.22)
          to label %70 unwind label %55

70:                                               ; preds = %68
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull align 8 dereferenceable(8) %71)
          to label %73 unwind label %55

73:                                               ; preds = %70
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef @_ZSt3decRSt8ios_base)
          to label %75 unwind label %55

75:                                               ; preds = %73
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %77 unwind label %55

77:                                               ; preds = %75
  br label %78

78:                                               ; preds = %77, %64
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %81, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %82 = load ptr, ptr %17, align 8, !tbaa !5
  %83 = call ptr @_ZNSt6vectorISt4pairIN3HIR7PatternENS1_7TypeRefEESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %82) #7
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.450", ptr %18, i32 0, i32 0
  store ptr %83, ptr %84, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %85 = load ptr, ptr %17, align 8, !tbaa !5
  %86 = call ptr @_ZNSt6vectorISt4pairIN3HIR7PatternENS1_7TypeRefEESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #7
  %87 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.450", ptr %19, i32 0, i32 0
  store ptr %86, ptr %87, align 8
  br label %88

88:                                               ; preds = %100, %80
  %89 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIN3HIR7PatternENS2_7TypeRefEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br i1 %89, label %91, label %90

90:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %111

91:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %92 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIN3HIR7PatternENS2_7TypeRefEESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  store ptr %92, ptr %20, align 8, !tbaa !5
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  invoke void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %94 unwind label %102

94:                                               ; preds = %91
  %95 = load ptr, ptr %20, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.std::pair.389", ptr %95, i32 0, i32 0
  %97 = load ptr, ptr %20, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.std::pair.389", ptr %97, i32 0, i32 1
  invoke void @_ZN7Context14handle_patternERK4SpanRN3HIR7PatternERKNS3_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(592) %93, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(212) %96, ptr noundef nonnull align 8 dereferenceable(8) %98)
          to label %99 unwind label %106

99:                                               ; preds = %94
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %100

100:                                              ; preds = %99
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIN3HIR7PatternENS2_7TypeRefEESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  br label %88

102:                                              ; preds = %91
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %15, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %16, align 4
  br label %110

106:                                              ; preds = %94
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %15, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %16, align 4
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  br label %110

110:                                              ; preds = %106, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %311

111:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr %23) #7
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZZ33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EEEN1MC2ES0_SH_(ptr noundef nonnull align 8 dereferenceable(128) %23, ptr noundef nonnull align 8 dereferenceable(592) %112, ptr noundef nonnull align 8 dereferenceable(72) %113)
          to label %114 unwind label %125

114:                                              ; preds = %111
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZZ33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EEENK1M14monomorph_typeERK4SpanSF_b(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %22, ptr noundef nonnull align 8 dereferenceable(128) %23, ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull align 8 dereferenceable(8) %116, i1 noundef zeroext true)
          to label %117 unwind label %129

117:                                              ; preds = %114
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %23) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  store i64 0, ptr %24, align 8, !tbaa !11
  br label %118

118:                                              ; preds = %180, %117
  %119 = load i64, ptr %24, align 8, !tbaa !11
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  %121 = getelementptr inbounds %"class.HIR::ExprPtr", ptr %120, i32 0, i32 2
  %122 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #7
  %123 = icmp ult i64 %119, %122
  br i1 %123, label %134, label %124

124:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %184

125:                                              ; preds = %111
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %15, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %16, align 4
  br label %133

129:                                              ; preds = %114
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %15, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %16, align 4
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %23) #7
  br label %133

133:                                              ; preds = %129, %125
  call void @llvm.lifetime.end.p0(i64 128, ptr %23) #7
  br label %310

134:                                              ; preds = %118
  br label %135

135:                                              ; preds = %134
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = getelementptr inbounds %"class.HIR::ExprPtr", ptr %136, i32 0, i32 2
  %138 = load i64, ptr %24, align 8, !tbaa !11
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %137, i64 noundef %138) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  invoke void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %140 unwind label %151

140:                                              ; preds = %135
  %141 = invoke noundef zeroext i1 @_ZNK3HIR7TypeRefneERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %142 unwind label %155

142:                                              ; preds = %140
  %143 = xor i1 %141, true
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br i1 %143, label %144, label %177

144:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %145 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %145)
          to label %146 unwind label %160

146:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %147 = getelementptr inbounds %class.anon.451, ptr %28, i32 0, i32 0
  store ptr %24, ptr %147, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENSC_7TypeRefEESaISF_EERKSE_RNSC_7ExprPtrERSt10unique_ptrINSC_8ExprNodeESt14default_deleteISO_EEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef %27)
          to label %148 unwind label %164

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

150:                                              ; preds = %148
  invoke void @__cxa_throw(ptr %149, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #8
          to label %317 unwind label %173

151:                                              ; preds = %135
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %15, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %16, align 4
  br label %159

155:                                              ; preds = %140
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %15, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %16, align 4
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  br label %159

159:                                              ; preds = %155, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %183

160:                                              ; preds = %144
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %15, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %16, align 4
  br label %168

164:                                              ; preds = %146
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %15, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %16, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  br label %168

168:                                              ; preds = %164, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %183

169:                                              ; preds = %148
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %15, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %16, align 4
  call void @__cxa_free_exception(ptr %149) #7
  br label %183

173:                                              ; preds = %150
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %15, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %16, align 4
  br label %183

177:                                              ; preds = %142
  br label %178

178:                                              ; preds = %177
  br label %179

179:                                              ; preds = %178
  br label %180

180:                                              ; preds = %179
  %181 = load i64, ptr %24, align 8, !tbaa !11
  %182 = add i64 %181, 1
  store i64 %182, ptr %24, align 8, !tbaa !11
  br label %118, !llvm.loop !13

183:                                              ; preds = %173, %169, %168, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %309

184:                                              ; preds = %124
  br label %185

185:                                              ; preds = %184
  %186 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %187 unwind label %198

187:                                              ; preds = %185
  br i1 %186, label %188, label %202

188:                                              ; preds = %187
  %189 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !9
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %189, ptr noundef @__func__._Z33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EE)
          to label %191 unwind label %198

191:                                              ; preds = %188
  %192 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %190, ptr noundef @.str.23)
          to label %193 unwind label %198

193:                                              ; preds = %191
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %192, ptr noundef @_ZSt3decRSt8ios_base)
          to label %195 unwind label %198

195:                                              ; preds = %193
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %194, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %197 unwind label %198

197:                                              ; preds = %195
  br label %202

198:                                              ; preds = %228, %226, %224, %221, %218, %195, %193, %191, %188, %185
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %15, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %16, align 4
  br label %309

202:                                              ; preds = %197, %187
  br label %203

203:                                              ; preds = %202
  br label %204

204:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #7
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN9typecheck20ExprVisitor_AddIvarsC2ER7Context(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(592) %205)
          to label %206 unwind label %231

206:                                              ; preds = %204
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = load ptr, ptr %12, align 8, !tbaa !5
  %209 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %208) #7
  %210 = getelementptr inbounds %"class.HIR::ExprNode", ptr %209, i32 0, i32 2
  invoke void @_ZN7Context9add_ivarsERN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(592) %207, ptr noundef nonnull align 8 dereferenceable(8) %210)
          to label %211 unwind label %235

211:                                              ; preds = %206
  %212 = load ptr, ptr %12, align 8, !tbaa !5
  %213 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %212) #7
  %214 = load ptr, ptr %213, align 8, !tbaa !15
  %215 = getelementptr inbounds ptr, ptr %214, i64 0
  %216 = load ptr, ptr %215, align 8
  invoke void %216(ptr noundef nonnull align 8 dereferenceable(28) %213, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %217 unwind label %235

217:                                              ; preds = %211
  call void @_ZN3HIR11ExprVisitorD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  br label %218

218:                                              ; preds = %217
  %219 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %220 unwind label %198

220:                                              ; preds = %218
  br i1 %219, label %221, label %240

221:                                              ; preds = %220
  %222 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !9
  %223 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %222, ptr noundef @__func__._Z33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EE)
          to label %224 unwind label %198

224:                                              ; preds = %221
  %225 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %223, ptr noundef @.str.24)
          to label %226 unwind label %198

226:                                              ; preds = %224
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %225, ptr noundef @_ZSt3decRSt8ios_base)
          to label %228 unwind label %198

228:                                              ; preds = %226
  %229 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %227, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %230 unwind label %198

230:                                              ; preds = %228
  br label %240

231:                                              ; preds = %204
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %15, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %16, align 4
  br label %239

235:                                              ; preds = %211, %206
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %15, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %16, align 4
  call void @_ZN3HIR11ExprVisitorD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #7
  br label %239

239:                                              ; preds = %235, %231
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  br label %309

240:                                              ; preds = %230, %220
  br label %241

241:                                              ; preds = %240
  br label %242

242:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 136, ptr %30) #7
  %243 = load ptr, ptr %7, align 8, !tbaa !5
  %244 = load ptr, ptr %8, align 8, !tbaa !5
  %245 = getelementptr inbounds %"struct.typeck::ModuleState", ptr %244, i32 0, i32 4
  invoke void @_ZNSt6vectorISt4pairIPKN3HIR10SimplePathEPKNS1_5TraitEESaIS8_EEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %245)
          to label %246 unwind label %289

246:                                              ; preds = %242
  invoke void @_ZN9typecheck16ExprVisitor_EnumC2ER7ContextSt6vectorISt4pairIPKN3HIR10SimplePathEPKNS5_5TraitEESaISC_EERKNS5_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(136) %30, ptr noundef nonnull align 8 dereferenceable(592) %243, ptr noundef %31, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %247 unwind label %293

247:                                              ; preds = %246
  call void @_ZNSt6vectorISt4pairIPKN3HIR10SimplePathEPKNS1_5TraitEESaIS8_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #7
  %248 = load ptr, ptr %7, align 8, !tbaa !5
  %249 = load ptr, ptr %12, align 8, !tbaa !5
  %250 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %249) #7
  %251 = getelementptr inbounds %"class.HIR::ExprNode", ptr %250, i32 0, i32 2
  invoke void @_ZN7Context9add_ivarsERN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(592) %248, ptr noundef nonnull align 8 dereferenceable(8) %251)
          to label %252 unwind label %297

252:                                              ; preds = %247
  %253 = load ptr, ptr %12, align 8, !tbaa !5
  %254 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %253) #7
  %255 = load ptr, ptr %254, align 8, !tbaa !15
  %256 = getelementptr inbounds ptr, ptr %255, i64 0
  %257 = load ptr, ptr %256, align 8
  invoke void %257(ptr noundef nonnull align 8 dereferenceable(28) %254, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %258 unwind label %297

258:                                              ; preds = %252
  br label %259

259:                                              ; preds = %258
  %260 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %261 unwind label %297

261:                                              ; preds = %259
  br i1 %260, label %262, label %301

262:                                              ; preds = %261
  %263 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !9
  %264 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %263, ptr noundef @__func__._Z33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EE)
          to label %265 unwind label %297

265:                                              ; preds = %262
  %266 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %264, ptr noundef @.str.25)
          to label %267 unwind label %297

267:                                              ; preds = %265
  %268 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(8) %266, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %269 unwind label %297

269:                                              ; preds = %267
  %270 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %268, ptr noundef @.str.26)
          to label %271 unwind label %297

271:                                              ; preds = %269
  %272 = load ptr, ptr %12, align 8, !tbaa !5
  %273 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %272) #7
  %274 = invoke noundef ptr @_ZNK3HIR8ExprNode9type_nameEv(ptr noundef nonnull align 8 dereferenceable(28) %273)
          to label %275 unwind label %297

275:                                              ; preds = %271
  %276 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %270, ptr noundef %274)
          to label %277 unwind label %297

277:                                              ; preds = %275
  %278 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %276, ptr noundef @.str.5)
          to label %279 unwind label %297

279:                                              ; preds = %277
  %280 = load ptr, ptr %12, align 8, !tbaa !5
  %281 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %280) #7
  %282 = getelementptr inbounds %"class.HIR::ExprNode", ptr %281, i32 0, i32 2
  %283 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(8) %278, ptr noundef nonnull align 8 dereferenceable(8) %282)
          to label %284 unwind label %297

284:                                              ; preds = %279
  %285 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %283, ptr noundef @_ZSt3decRSt8ios_base)
          to label %286 unwind label %297

286:                                              ; preds = %284
  %287 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %285, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %288 unwind label %297

288:                                              ; preds = %286
  br label %301

289:                                              ; preds = %242
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %15, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %16, align 4
  br label %308

293:                                              ; preds = %246
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %15, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %16, align 4
  call void @_ZNSt6vectorISt4pairIPKN3HIR10SimplePathEPKNS1_5TraitEESaIS8_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #7
  br label %308

297:                                              ; preds = %303, %286, %284, %279, %277, %275, %271, %269, %267, %265, %262, %259, %252, %247
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %15, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %16, align 4
  call void @_ZN9typecheck16ExprVisitor_EnumD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %30) #7
  br label %308

301:                                              ; preds = %288, %261
  br label %302

302:                                              ; preds = %301
  br label %303

303:                                              ; preds = %302
  %304 = load ptr, ptr %7, align 8, !tbaa !5
  %305 = load ptr, ptr %14, align 8, !tbaa !5
  %306 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN7Context19equate_types_coerceERK4SpanRKN3HIR7TypeRefERSt10unique_ptrINS3_8ExprNodeESt14default_deleteIS8_EE(ptr noundef nonnull align 8 dereferenceable(592) %304, ptr noundef nonnull align 8 dereferenceable(8) %305, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %306)
          to label %307 unwind label %297

307:                                              ; preds = %303
  call void @_ZN9typecheck16ExprVisitor_EnumD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %30) #7
  call void @llvm.lifetime.end.p0(i64 136, ptr %30) #7
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #7
  ret void

308:                                              ; preds = %297, %293, %289
  call void @llvm.lifetime.end.p0(i64 136, ptr %30) #7
  br label %309

309:                                              ; preds = %308, %239, %198, %183
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br label %310

310:                                              ; preds = %309, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %311

311:                                              ; preds = %310, %110, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #7
  br label %312

312:                                              ; preds = %311
  %313 = load ptr, ptr %15, align 8
  %314 = load i32, ptr %16, align 4
  %315 = insertvalue { ptr, i32 } poison, ptr %313, 0
  %316 = insertvalue { ptr, i32 } %315, i32 %314, 1
  resume { ptr, i32 } %316

317:                                              ; preds = %150
  unreachable
}

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

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

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

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

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

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

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

declare void @_ZN7Context14handle_patternERK4SpanRN3HIR7PatternERKNS3_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(592), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 8 dereferenceable(8)) #1

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZ33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EEEN1MC2ES0_SH_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(592), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZ33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EEENK1M14monomorph_typeERK4SpanSF_b(ptr dead_on_unwind noalias writable sret(%"class.HIR::TypeRef") align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9typecheck20ExprVisitor_AddIvarsC2ER7Context(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(592)) unnamed_addr #6 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9typecheck16ExprVisitor_EnumC2ER7ContextSt6vectorISt4pairIPKN3HIR10SimplePathEPKNS5_5TraitEESaISC_EERKNS5_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(592), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

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

declare noundef ptr @_ZNK3HIR8ExprNode9type_nameEv(ptr noundef nonnull align 8 dereferenceable(28)) #1

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "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 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 #7 = { nounwind }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}


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

%class.TraceLog = type { ptr, %"class.std::function" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.__gnu_cxx::__normal_iterator.450" = type { ptr }
%struct.Span = type { ptr }
%"class.HIR::TypeRef" = type { ptr }
%struct.M = type { %class.Monomorphiser, ptr, ptr, ptr, ptr }
%class.Monomorphiser = type { ptr, ptr, %"class.HIR::ItemPath", %"class.std::vector.122" }
%"class.HIR::ItemPath" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::vector.122" = type { %"struct.std::_Vector_base.123" }
%"struct.std::_Vector_base.123" = type { %"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl" }
%"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.451 = type { ptr }
%"class.typecheck::ExprVisitor_AddIvars" = type { %"class.HIR::ExprVisitorDef", ptr }
%"class.HIR::ExprVisitorDef" = type { %"class.HIR::ExprVisitor" }
%"class.HIR::ExprVisitor" = type { ptr }
%"class.typecheck::ExprVisitor_Enum" = type { %"class.HIR::ExprVisitor", ptr, ptr, %"class.std::vector.452", %"class.std::vector.107", %"class.std::vector.457", %"class.std::vector.462" }
%"class.std::vector.452" = type { %"struct.std::_Vector_base.453" }
%"struct.std::_Vector_base.453" = type { %"struct.std::_Vector_base<typecheck::ExprVisitor_Enum::RetTarget, std::allocator<typecheck::ExprVisitor_Enum::RetTarget>>::_Vector_impl" }
%"struct.std::_Vector_base<typecheck::ExprVisitor_Enum::RetTarget, std::allocator<typecheck::ExprVisitor_Enum::RetTarget>>::_Vector_impl" = type { %"struct.std::_Vector_base<typecheck::ExprVisitor_Enum::RetTarget, std::allocator<typecheck::ExprVisitor_Enum::RetTarget>>::_Vector_impl_data" }
%"struct.std::_Vector_base<typecheck::ExprVisitor_Enum::RetTarget, std::allocator<typecheck::ExprVisitor_Enum::RetTarget>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.107" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::vector.457" = type { %"struct.std::_Vector_base.458" }
%"struct.std::_Vector_base.458" = type { %"struct.std::_Vector_base<HIR::ExprNode_Loop *, std::allocator<HIR::ExprNode_Loop *>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::ExprNode_Loop *, std::allocator<HIR::ExprNode_Loop *>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::ExprNode_Loop *, std::allocator<HIR::ExprNode_Loop *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::ExprNode_Loop *, std::allocator<HIR::ExprNode_Loop *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.462" = type { %"struct.std::_Vector_base.463" }
%"struct.std::_Vector_base.463" = type { %"struct.std::_Vector_base<std::pair<const HIR::SimplePath *, const HIR::Trait *>, std::allocator<std::pair<const HIR::SimplePath *, const HIR::Trait *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<const HIR::SimplePath *, const HIR::Trait *>, std::allocator<std::pair<const HIR::SimplePath *, const HIR::Trait *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<const HIR::SimplePath *, const HIR::Trait *>, std::allocator<std::pair<const HIR::SimplePath *, const HIR::Trait *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<const HIR::SimplePath *, const HIR::Trait *>, std::allocator<std::pair<const HIR::SimplePath *, const HIR::Trait *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@__func__._Z33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EE = external hidden unnamed_addr constant [34 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [14 x i8], align 1

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

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EE(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(72) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %7 = alloca %class.TraceLog, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.450", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.450", align 8
  %10 = alloca %struct.Span, align 8
  %11 = alloca %"class.HIR::TypeRef", align 8
  %12 = alloca %struct.M, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"class.HIR::TypeRef", align 8
  %15 = alloca %struct.Span, align 8
  %16 = alloca %"class.std::function", align 8
  %17 = alloca %class.anon.451, align 8
  %18 = alloca %"class.typecheck::ExprVisitor_AddIvars", align 8
  %19 = alloca %"class.typecheck::ExprVisitor_Enum", align 8
  %20 = alloca %"class.std::vector.462", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #7
  %21 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %22 = select i1 %21, ptr @__func__._Z33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EE, ptr null
  call void @_ZN8TraceLogC1EPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %22)
  %23 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR8ExprNode4spanEv(ptr noundef nonnull align 8 dereferenceable(28) %23)
  %25 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %26 unwind label %38

26:                                               ; preds = %6
  br i1 %25, label %27, label %40

27:                                               ; preds = %26
  %28 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !5
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %28, ptr noundef nonnull @__func__._Z33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EE)
          to label %30 unwind label %38

30:                                               ; preds = %27
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull @.str.21)
          to label %32 unwind label %38

32:                                               ; preds = %30
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt4pairIN3HIR7PatternENS1_7TypeRefEEERSoS5_RKSt6vectorIT_SaIS7_EE(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %34 unwind label %38

34:                                               ; preds = %32
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %36 unwind label %38

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %40 unwind label %38

38:                                               ; preds = %52, %50, %48, %46, %43, %40, %36, %34, %32, %30, %27, %6
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %182

40:                                               ; preds = %26, %36
  %41 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %42 unwind label %38

42:                                               ; preds = %40
  br i1 %41, label %43, label %54

43:                                               ; preds = %42
  %44 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !5
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %44, ptr noundef nonnull @__func__._Z33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EE)
          to label %46 unwind label %38

46:                                               ; preds = %43
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull @.str.22)
          to label %48 unwind label %38

48:                                               ; preds = %46
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %50 unwind label %38

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %52 unwind label %38

52:                                               ; preds = %50
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %54 unwind label %38

54:                                               ; preds = %52, %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %55 = call ptr @_ZNSt6vectorISt4pairIN3HIR7PatternENS1_7TypeRefEESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  store ptr %55, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %56 = call ptr @_ZNSt6vectorISt4pairIN3HIR7PatternENS1_7TypeRefEESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  store ptr %56, ptr %9, align 8
  %57 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIN3HIR7PatternENS2_7TypeRefEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br i1 %57, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %60, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %12) #7
  invoke void @_ZZ33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EEEN1MC2ES0_SH_(ptr noundef nonnull align 8 dereferenceable(128) %12, ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(72) %4)
          to label %65 unwind label %70

.lr.ph:                                           ; preds = %54, %60
  %58 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIN3HIR7PatternENS2_7TypeRefEESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %59 = getelementptr inbounds i8, ptr %58, i64 216
  invoke void @_ZN7Context14handle_patternERK4SpanRN3HIR7PatternERKNS3_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(212) %58, ptr noundef nonnull align 8 dereferenceable(8) %59)
          to label %60 unwind label %63

60:                                               ; preds = %.lr.ph
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIN3HIR7PatternENS2_7TypeRefEESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %62 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIN3HIR7PatternENS2_7TypeRefEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br i1 %62, label %.lr.ph, label %._crit_edge

63:                                               ; preds = %.lr.ph
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %182

65:                                               ; preds = %._crit_edge
  invoke void @_ZZ33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EEENK1M14monomorph_typeERK4SpanSF_b(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 %11, ptr noundef nonnull align 8 dereferenceable(128) %12, ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %3, i1 noundef zeroext true)
          to label %66 unwind label %72

66:                                               ; preds = %65
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %12) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %67 = getelementptr inbounds i8, ptr %4, i64 32
  store i64 0, ptr %13, align 8, !tbaa !9
  %68 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %67) #7
  %.not = icmp eq i64 %68, 0
  br i1 %.not, label %._crit_edge54, label %.lr.ph53

._crit_edge54:                                    ; preds = %99, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  %69 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %104 unwind label %114

70:                                               ; preds = %._crit_edge
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %74

72:                                               ; preds = %65
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %12) #7
  br label %74

74:                                               ; preds = %72, %70
  %.pn = phi { ptr, i32 } [ %73, %72 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %12) #7
  br label %181

.lr.ph53:                                         ; preds = %66, %99
  %75 = phi i64 [ %100, %99 ], [ 0, %66 ]
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %75) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  invoke void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %77 unwind label %85

77:                                               ; preds = %.lr.ph53
  %78 = invoke noundef zeroext i1 @_ZNK3HIR7TypeRefneERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %79 unwind label %87

79:                                               ; preds = %77
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br i1 %78, label %99, label %80

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %81 unwind label %90

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  store ptr %13, ptr %17, align 8, !tbaa !11
  call void @"_ZNSt8functionIFvRSoEEC2IZ33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENSC_7TypeRefEESaISF_EERKSE_RNSC_7ExprPtrERSt10unique_ptrINSC_8ExprNodeESt14default_deleteISO_EEE3$_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 nonnull %16)
          to label %82 unwind label %92

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

84:                                               ; preds = %82
  invoke void @__cxa_throw(ptr nonnull %83, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
          to label %183 unwind label %97

85:                                               ; preds = %.lr.ph53
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %89

87:                                               ; preds = %77
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %89

89:                                               ; preds = %87, %85
  %.pn42 = phi { ptr, i32 } [ %88, %87 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %103

90:                                               ; preds = %80
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %94

92:                                               ; preds = %81
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br label %94

94:                                               ; preds = %92, %90
  %.pn44 = phi { ptr, i32 } [ %93, %92 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %103

95:                                               ; preds = %82
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %83) #7
  br label %103

97:                                               ; preds = %84
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %103

99:                                               ; preds = %79
  %100 = add nuw i64 %75, 1
  store i64 %100, ptr %13, align 8, !tbaa !9
  %101 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %67) #7
  %102 = icmp ult i64 %100, %101
  br i1 %102, label %.lr.ph53, label %._crit_edge54, !llvm.loop !13

103:                                              ; preds = %97, %95, %94, %89
  %.pn46 = phi { ptr, i32 } [ %98, %97 ], [ %96, %95 ], [ %.pn44, %94 ], [ %.pn42, %89 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %180

104:                                              ; preds = %._crit_edge54
  br i1 %69, label %105, label %116

105:                                              ; preds = %104
  %106 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !5
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %106, ptr noundef nonnull @__func__._Z33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EE)
          to label %108 unwind label %114

108:                                              ; preds = %105
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef nonnull @.str.23)
          to label %110 unwind label %114

110:                                              ; preds = %108
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %112 unwind label %114

112:                                              ; preds = %110
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %116 unwind label %114

114:                                              ; preds = %133, %131, %129, %126, %123, %112, %110, %108, %105, %._crit_edge54
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %180

116:                                              ; preds = %112, %104
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  call void @_ZN9typecheck20ExprVisitor_AddIvarsC2ER7Context(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(592) %0)
  %117 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %118 = getelementptr inbounds i8, ptr %117, i64 16
  invoke void @_ZN7Context9add_ivarsERN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(8) %118)
          to label %119 unwind label %135

119:                                              ; preds = %116
  %120 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %121 = load ptr, ptr %120, align 8, !tbaa !15
  %122 = load ptr, ptr %121, align 8
  invoke void %122(ptr noundef nonnull align 8 dereferenceable(28) %120, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %123 unwind label %135

123:                                              ; preds = %119
  call void @_ZN3HIR11ExprVisitorD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  %124 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %125 unwind label %114

125:                                              ; preds = %123
  br i1 %124, label %126, label %137

126:                                              ; preds = %125
  %127 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !5
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %127, ptr noundef nonnull @__func__._Z33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EE)
          to label %129 unwind label %114

129:                                              ; preds = %126
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef nonnull @.str.24)
          to label %131 unwind label %114

131:                                              ; preds = %129
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %133 unwind label %114

133:                                              ; preds = %131
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %137 unwind label %114

135:                                              ; preds = %119, %116
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR11ExprVisitorD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  br label %180

137:                                              ; preds = %133, %125
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %19) #7
  %138 = getelementptr inbounds i8, ptr %1, i64 32
  invoke void @_ZNSt6vectorISt4pairIPKN3HIR10SimplePathEPKNS1_5TraitEESaIS8_EEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %138)
          to label %139 unwind label %173

139:                                              ; preds = %137
  call void @_ZN9typecheck16ExprVisitor_EnumC2ER7ContextSt6vectorISt4pairIPKN3HIR10SimplePathEPKNS5_5TraitEESaISC_EERKNS5_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(136) %19, ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull %20, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @_ZNSt6vectorISt4pairIPKN3HIR10SimplePathEPKNS1_5TraitEESaIS8_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  %140 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %141 = getelementptr inbounds i8, ptr %140, i64 16
  invoke void @_ZN7Context9add_ivarsERN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(8) %141)
          to label %142 unwind label %175

142:                                              ; preds = %139
  %143 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %144 = load ptr, ptr %143, align 8, !tbaa !15
  %145 = load ptr, ptr %144, align 8
  invoke void %145(ptr noundef nonnull align 8 dereferenceable(28) %143, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %146 unwind label %175

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

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

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

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

154:                                              ; preds = %152
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %156 unwind label %175

156:                                              ; preds = %154
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef nonnull @.str.26)
          to label %158 unwind label %175

158:                                              ; preds = %156
  %159 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %160 = invoke noundef ptr @_ZNK3HIR8ExprNode9type_nameEv(ptr noundef nonnull align 8 dereferenceable(28) %159)
          to label %161 unwind label %175

161:                                              ; preds = %158
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef %160)
          to label %163 unwind label %175

163:                                              ; preds = %161
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef nonnull @.str.5)
          to label %165 unwind label %175

165:                                              ; preds = %163
  %166 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR8ExprNodeESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %167 = getelementptr inbounds i8, ptr %166, i64 16
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(8) %164, ptr noundef nonnull align 8 dereferenceable(8) %167)
          to label %169 unwind label %175

169:                                              ; preds = %165
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %171 unwind label %175

171:                                              ; preds = %169
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %170, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %177 unwind label %175

173:                                              ; preds = %137
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %179

175:                                              ; preds = %177, %171, %169, %165, %163, %161, %158, %156, %154, %152, %149, %146, %142, %139
  %176 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9typecheck16ExprVisitor_EnumD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %19) #7
  br label %179

177:                                              ; preds = %171, %148
  invoke void @_ZN7Context19equate_types_coerceERK4SpanRKN3HIR7TypeRefERSt10unique_ptrINS3_8ExprNodeESt14default_deleteIS8_EE(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %178 unwind label %175

178:                                              ; preds = %177
  call void @_ZN9typecheck16ExprVisitor_EnumD2Ev(ptr noundef nonnull align 8 dereferenceable(136) %19) #7
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %19) #7
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #7
  ret void

179:                                              ; preds = %175, %173
  %.pn40 = phi { ptr, i32 } [ %176, %175 ], [ %174, %173 ]
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %19) #7
  br label %180

180:                                              ; preds = %179, %135, %114, %103
  %.pn46.pn = phi { ptr, i32 } [ %.pn46, %103 ], [ %.pn40, %179 ], [ %115, %114 ], [ %136, %135 ]
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  br label %181

181:                                              ; preds = %180, %74
  %.pn46.pn.pn = phi { ptr, i32 } [ %.pn46.pn, %180 ], [ %.pn, %74 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %182

182:                                              ; preds = %181, %63, %38
  %.pn50 = phi { ptr, i32 } [ %64, %63 ], [ %.pn46.pn.pn, %181 ], [ %39, %38 ]
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #7
  resume { ptr, i32 } %.pn50

183:                                              ; preds = %84
  unreachable
}

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

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

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

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

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

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

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

declare void @_ZN7Context14handle_patternERK4SpanRN3HIR7PatternERKNS3_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(592), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(212), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZ33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EEEN1MC2ES0_SH_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(592), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZ33Typecheck_Code_CS__EnumerateRulesR7ContextRKN6typeck11ModuleStateERSt6vectorISt4pairIN3HIR7PatternENS7_7TypeRefEESaISA_EERKS9_RNS7_7ExprPtrERSt10unique_ptrINS7_8ExprNodeESt14default_deleteISJ_EEENK1M14monomorph_typeERK4SpanSF_b(ptr dead_on_unwind noalias writable sret(%"class.HIR::TypeRef") align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9typecheck20ExprVisitor_AddIvarsC2ER7Context(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(592)) unnamed_addr #6 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9typecheck16ExprVisitor_EnumC2ER7ContextSt6vectorISt4pairIPKN3HIR10SimplePathEPKNS5_5TraitEESaISC_EERKNS5_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(592), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

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

declare noundef ptr @_ZNK3HIR8ExprNode9type_nameEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #1

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "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 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 #7 = { nounwind }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}


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