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

; 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.HIR::ArraySize" = type { i32, %"union.HIR::ArraySize::DataUnion" }
%"union.HIR::ArraySize::DataUnion" = type { %"class.HIR::ConstGeneric" }
%"class.HIR::ConstGeneric" = type { i32, %"union.HIR::ConstGeneric::DataUnion" }
%"union.HIR::ConstGeneric::DataUnion" = type { %"class.std::unique_ptr.27", [8 x i8] }
%"class.std::unique_ptr.27" = type { %"struct.std::__uniq_ptr_data.28" }
%"struct.std::__uniq_ptr_data.28" = type { %"class.std::__uniq_ptr_impl.29" }
%"class.std::__uniq_ptr_impl.29" = type { %"class.std::tuple.30" }
%"class.std::tuple.30" = type { %"struct.std::_Tuple_impl.31" }
%"struct.std::_Tuple_impl.31" = type { %"struct.std::_Head_base.34" }
%"struct.std::_Head_base.34" = type { ptr }
%"struct.HIR::ConstGeneric_Unevaluated" = type { %"struct.HIR::PathParams", %"struct.HIR::PathParams", %"class.std::shared_ptr.84" }
%"struct.HIR::PathParams" = type { %class.ThinVector.2, %class.ThinVector.3, %class.ThinVector.4 }
%class.ThinVector.2 = type { ptr }
%class.ThinVector.3 = type { ptr }
%class.ThinVector.4 = type { ptr }
%"class.std::shared_ptr.84" = type { %"class.std::__shared_ptr.85" }
%"class.std::__shared_ptr.85" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.HIR::TypeRef" = type { ptr }
%class.Monomorphiser = type { ptr, ptr, %"class.HIR::ItemPath", %"class.std::vector.63" }
%"class.HIR::ItemPath" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::vector.63" = type { %"struct.std::_Vector_base.64" }
%"struct.std::_Vector_base.64" = 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 }

@.str.1 = external hidden unnamed_addr constant [80 x i8], align 1
@g_debug_indent_level = external global i32, align 4
@__FUNCTION__._ZNK13Monomorphiser19monomorph_arraysizeERK4SpanRKN3HIR9ArraySizeE = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@__PRETTY_FUNCTION__._ZNK13Monomorphiser19monomorph_arraysizeERK4SpanRKN3HIR9ArraySizeE = external hidden unnamed_addr constant [98 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [53 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 i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK13Monomorphiser19monomorph_arraysizeERK4SpanRKN3HIR9ArraySizeE(ptr dead_on_unwind noalias writable sret(%"class.HIR::ArraySize") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(32) %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.HIR::ArraySize", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.HIR::ArraySize", align 8
  %14 = alloca %"class.HIR::ConstGeneric", align 8
  %15 = alloca %"class.HIR::ArraySize", align 8
  %16 = alloca %"class.HIR::ConstGeneric", align 8
  %17 = alloca %"class.std::unique_ptr.27", align 8
  %18 = alloca %"struct.HIR::ConstGeneric_Unevaluated", align 8
  %19 = alloca %"class.HIR::ArraySize", align 8
  %20 = alloca %"class.HIR::ConstGeneric", align 8
  %21 = alloca %"class.HIR::TypeRef", align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %24 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = call noundef ptr @_ZNK3HIR9ArraySize15opt_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(32) %25)
  store ptr %26, ptr %9, align 8, !tbaa !5
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %222

29:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
  call void @_ZN3HIR9ArraySizeC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10)
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = invoke noundef zeroext i1 @_ZNK3HIR12ConstGeneric10is_GenericEv(ptr noundef nonnull align 8 dereferenceable(24) %30)
          to label %32 unwind label %63

32:                                               ; preds = %29
  br i1 %31, label %33, label %84

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #7
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12ConstGeneric10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(24) %35)
          to label %37 unwind label %67

37:                                               ; preds = %33
  %38 = load ptr, ptr %24, align 8, !tbaa !9
  %39 = getelementptr inbounds ptr, ptr %38, i64 3
  %40 = load ptr, ptr %39, align 8
  invoke void %40(ptr dead_on_unwind writable sret(%"class.HIR::ConstGeneric") align 8 %14, ptr noundef nonnull align 8 dereferenceable(96) %24, ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(12) %36)
          to label %41 unwind label %67

41:                                               ; preds = %37
  invoke void @_ZN3HIR9ArraySizeC2ENS_12ConstGenericE(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef %14)
          to label %42 unwind label %71

42:                                               ; preds = %41
  %43 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3HIR9ArraySizeaSEOS0_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %44 unwind label %75

44:                                               ; preds = %42
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @_ZN3HIR12ConstGenericD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  br label %45

45:                                               ; preds = %44
  %46 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %47 unwind label %63

47:                                               ; preds = %45
  br i1 %46, label %48, label %81

48:                                               ; preds = %47
  %49 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !11
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %49, ptr noundef @__FUNCTION__._ZNK13Monomorphiser19monomorph_arraysizeERK4SpanRKN3HIR9ArraySizeE)
          to label %51 unwind label %63

51:                                               ; preds = %48
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_9ArraySizeE(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 8 dereferenceable(32) %52)
          to label %54 unwind label %63

54:                                               ; preds = %51
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef @.str.4)
          to label %56 unwind label %63

56:                                               ; preds = %54
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_9ArraySizeE(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %58 unwind label %63

58:                                               ; preds = %56
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef @_ZSt3decRSt8ios_base)
          to label %60 unwind label %63

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %62 unwind label %63

62:                                               ; preds = %60
  br label %81

63:                                               ; preds = %192, %190, %187, %185, %182, %179, %153, %145, %84, %60, %58, %56, %54, %51, %48, %45, %29
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %11, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %12, align 4
  br label %221

67:                                               ; preds = %37, %33
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %11, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %12, align 4
  br label %80

71:                                               ; preds = %41
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %11, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %12, align 4
  br label %79

75:                                               ; preds = %42
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %11, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %12, align 4
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  br label %79

79:                                               ; preds = %75, %71
  call void @_ZN3HIR12ConstGenericD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br label %80

80:                                               ; preds = %79, %67
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  br label %221

81:                                               ; preds = %62, %47
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  br label %145

84:                                               ; preds = %32
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = invoke noundef zeroext i1 @_ZNK3HIR12ConstGeneric14is_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %85)
          to label %87 unwind label %63

87:                                               ; preds = %84
  br i1 %86, label %88, label %124

88:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #7
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric14as_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %89)
          to label %91 unwind label %100

91:                                               ; preds = %88
  %92 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %90) #7
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNK3HIR24ConstGeneric_Unevaluated9monomorphERK4SpanRK13Monomorphiserb(ptr dead_on_unwind writable sret(%"struct.HIR::ConstGeneric_Unevaluated") align 8 %18, ptr noundef nonnull align 8 dereferenceable(64) %92, ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull align 8 dereferenceable(96) %24, i1 noundef zeroext true)
          to label %94 unwind label %100

94:                                               ; preds = %91
  invoke void @_ZSt11make_uniqueIN3HIR24ConstGeneric_UnevaluatedEJS1_EENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.27") align 8 %17, ptr noundef nonnull align 8 dereferenceable(64) %18)
          to label %95 unwind label %104

95:                                               ; preds = %94
  invoke void @_ZN3HIR12ConstGenericC2ESt10unique_ptrINS_24ConstGeneric_UnevaluatedESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef %17)
          to label %96 unwind label %108

96:                                               ; preds = %95
  invoke void @_ZN3HIR9ArraySizeC2ENS_12ConstGenericE(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef %16)
          to label %97 unwind label %112

97:                                               ; preds = %96
  %98 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3HIR9ArraySizeaSEOS0_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %99 unwind label %116

99:                                               ; preds = %97
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @_ZN3HIR12ConstGenericD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  call void @_ZNSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @_ZN3HIR24ConstGeneric_UnevaluatedD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %18) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %144

100:                                              ; preds = %91, %88
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %11, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %12, align 4
  br label %123

104:                                              ; preds = %94
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %11, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %12, align 4
  br label %122

108:                                              ; preds = %95
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %11, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %12, align 4
  br label %121

112:                                              ; preds = %96
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %11, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %12, align 4
  br label %120

116:                                              ; preds = %97
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %11, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %12, align 4
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %120

120:                                              ; preds = %116, %112
  call void @_ZN3HIR12ConstGenericD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  br label %121

121:                                              ; preds = %120, %108
  call void @_ZNSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br label %122

122:                                              ; preds = %121, %104
  call void @_ZN3HIR24ConstGeneric_UnevaluatedD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %18) #7
  br label %123

123:                                              ; preds = %122, %100
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %221

124:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #7
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZNK3HIR12ConstGeneric5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::ConstGeneric") align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %125)
          to label %126 unwind label %130

126:                                              ; preds = %124
  invoke void @_ZN3HIR9ArraySizeC2ENS_12ConstGenericE(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef %20)
          to label %127 unwind label %134

127:                                              ; preds = %126
  %128 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3HIR9ArraySizeaSEOS0_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %129 unwind label %138

129:                                              ; preds = %127
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @_ZN3HIR12ConstGenericD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  br label %144

130:                                              ; preds = %124
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %11, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %12, align 4
  br label %143

134:                                              ; preds = %126
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %11, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %12, align 4
  br label %142

138:                                              ; preds = %127
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %11, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %12, align 4
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  br label %142

142:                                              ; preds = %138, %134
  call void @_ZN3HIR12ConstGenericD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  br label %143

143:                                              ; preds = %142, %130
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  br label %221

144:                                              ; preds = %129, %99
  br label %145

145:                                              ; preds = %144, %83
  %146 = invoke noundef ptr @_ZN3HIR9ArraySize15opt_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %147 unwind label %63

147:                                              ; preds = %145
  store ptr %146, ptr %9, align 8, !tbaa !5
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = icmp ne ptr %148, null
  br i1 %149, label %150, label %151

150:                                              ; preds = %147
  br label %153

151:                                              ; preds = %147
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 593, ptr noundef @__PRETTY_FUNCTION__._ZNK13Monomorphiser19monomorph_arraysizeERK4SpanRKN3HIR9ArraySizeE) #8
  unreachable

152:                                              ; No predecessors!
  br label %153

153:                                              ; preds = %152, %150
  %154 = load ptr, ptr %9, align 8, !tbaa !5
  %155 = invoke noundef zeroext i1 @_ZNK3HIR12ConstGeneric14is_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %154)
          to label %156 unwind label %63

156:                                              ; preds = %153
  br i1 %155, label %157, label %199

157:                                              ; preds = %156
  %158 = getelementptr inbounds %class.Monomorphiser, ptr %24, i32 0, i32 1
  %159 = load ptr, ptr %158, align 8, !tbaa !13
  %160 = icmp ne ptr %159, null
  br i1 %160, label %161, label %178

161:                                              ; preds = %157
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = getelementptr inbounds %class.Monomorphiser, ptr %24, i32 0, i32 1
  %164 = load ptr, ptr %163, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  invoke void @_ZN3HIR7TypeRefC2ENS_8CoreTypeE(ptr noundef nonnull align 8 dereferenceable(8) %21, i32 noundef 0)
          to label %165 unwind label %169

165:                                              ; preds = %161
  %166 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3HIR9ArraySize14as_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %167 unwind label %173

167:                                              ; preds = %165
  invoke void @_Z40ConvertHIR_ConstantEvaluate_ConstGenericRK4SpanRKN3HIR5CrateERKNS2_7TypeRefERNS2_12ConstGenericE(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef nonnull align 8 dereferenceable(944) %164, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(24) %166)
          to label %168 unwind label %173

168:                                              ; preds = %167
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %198

169:                                              ; preds = %161
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %11, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %12, align 4
  br label %177

173:                                              ; preds = %167, %165
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %11, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %12, align 4
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  br label %177

177:                                              ; preds = %173, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %221

178:                                              ; preds = %157
  br label %179

179:                                              ; preds = %178
  %180 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %181 unwind label %63

181:                                              ; preds = %179
  br i1 %180, label %182, label %195

182:                                              ; preds = %181
  %183 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !11
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %183, ptr noundef @__FUNCTION__._ZNK13Monomorphiser19monomorph_arraysizeERK4SpanRKN3HIR9ArraySizeE)
          to label %185 unwind label %63

185:                                              ; preds = %182
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %184, ptr noundef @.str.6)
          to label %187 unwind label %63

187:                                              ; preds = %185
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_12ConstGenericE(ptr noundef nonnull align 8 dereferenceable(8) %186, ptr noundef nonnull align 8 dereferenceable(24) %188)
          to label %190 unwind label %63

190:                                              ; preds = %187
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %189, ptr noundef @_ZSt3decRSt8ios_base)
          to label %192 unwind label %63

192:                                              ; preds = %190
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %194 unwind label %63

194:                                              ; preds = %192
  br label %195

195:                                              ; preds = %194, %181
  br label %196

196:                                              ; preds = %195
  br label %197

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197, %168
  br label %199

199:                                              ; preds = %198, %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %200 = load ptr, ptr %9, align 8, !tbaa !5
  %201 = invoke noundef ptr @_ZNK3HIR12ConstGeneric13opt_EvaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %200)
          to label %202 unwind label %212

202:                                              ; preds = %199
  store ptr %201, ptr %22, align 8, !tbaa !5
  %203 = load ptr, ptr %22, align 8, !tbaa !5
  %204 = icmp ne ptr %203, null
  br i1 %204, label %205, label %216

205:                                              ; preds = %202
  %206 = load ptr, ptr %22, align 8, !tbaa !5
  %207 = invoke noundef ptr @_ZNK3HIR17EncodedLiteralPtrptEv(ptr noundef nonnull align 8 dereferenceable(8) %206)
          to label %208 unwind label %212

208:                                              ; preds = %205
  %209 = invoke noundef i64 @_ZNK14EncodedLiteral10read_usizeEm(ptr noundef nonnull align 8 dereferenceable(48) %207, i64 noundef 0)
          to label %210 unwind label %212

210:                                              ; preds = %208
  invoke void @_ZN3HIR9ArraySizeC2Em(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %209)
          to label %211 unwind label %212

211:                                              ; preds = %210
  store i32 1, ptr %23, align 4
  br label %217

212:                                              ; preds = %210, %208, %205, %199
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %11, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %221

216:                                              ; preds = %202
  store i32 0, ptr %23, align 4
  br label %217

217:                                              ; preds = %216, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  %218 = load i32, ptr %23, align 4
  switch i32 %218, label %220 [
    i32 0, label %219
  ]

219:                                              ; preds = %217
  call void @_ZN3HIR9ArraySizeC2EOS0_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  store i32 1, ptr %23, align 4
  br label %220

220:                                              ; preds = %219, %217
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  br label %224

221:                                              ; preds = %212, %177, %143, %123, %80, %63
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %225

222:                                              ; preds = %4
  %223 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK3HIR9ArraySize5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::ArraySize") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %223)
  store i32 1, ptr %23, align 4
  br label %224

224:                                              ; preds = %222, %220
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  ret void

225:                                              ; preds = %221
  %226 = load ptr, ptr %11, align 8
  %227 = load i32, ptr %12, align 4
  %228 = insertvalue { ptr, i32 } poison, ptr %226, 0
  %229 = insertvalue { ptr, i32 } %228, i32 %227, 1
  resume { ptr, i32 } %229
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3HIR24ConstGeneric_UnevaluatedEJS1_EENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.27") align 8, ptr noundef nonnull align 8 dereferenceable(64)) #2

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

declare void @_ZNK3HIR24ConstGeneric_Unevaluated9monomorphERK4SpanRK13Monomorphiserb(ptr dead_on_unwind writable sret(%"struct.HIR::ConstGeneric_Unevaluated") align 8, ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(96), i1 noundef zeroext) #6

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

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

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

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

declare void @_ZNK3HIR12ConstGeneric5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::ConstGeneric") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #6

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

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

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

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

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

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

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

declare noundef zeroext i1 @_Z13debug_enabledv() #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_9ArraySizeE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #6

; 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) #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 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) #4 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: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3HIR12ConstGeneric14is_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

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

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

declare void @_Z40ConvertHIR_ConstantEvaluate_ConstGenericRK4SpanRKN3HIR5CrateERKNS2_7TypeRefERNS2_12ConstGenericE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(944), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) #6

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_12ConstGenericE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) #6

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

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

declare noundef i64 @_ZNK14EncodedLiteral10read_usizeEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) #6

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

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

declare void @_ZNK3HIR9ArraySize5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::ArraySize") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #6

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

!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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTS13Monomorphiser", !6, i64 8, !15, i64 16, !16, i64 72}
!15 = !{!"_ZTSN3HIR8ItemPathE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!16 = !{!"_ZTSSt6vectorIPKN3HIR13GenericParamsESaIS3_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIPKN3HIR13GenericParamsESaIS3_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPKN3HIR13GenericParamsESaIS3_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPKN3HIR13GenericParamsESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


; 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.HIR::ArraySize" = type { i32, %"union.HIR::ArraySize::DataUnion" }
%"union.HIR::ArraySize::DataUnion" = type { %"class.HIR::ConstGeneric" }
%"class.HIR::ConstGeneric" = type { i32, %"union.HIR::ConstGeneric::DataUnion" }
%"union.HIR::ConstGeneric::DataUnion" = type { %"class.std::unique_ptr.27", [8 x i8] }
%"class.std::unique_ptr.27" = type { %"struct.std::__uniq_ptr_data.28" }
%"struct.std::__uniq_ptr_data.28" = type { %"class.std::__uniq_ptr_impl.29" }
%"class.std::__uniq_ptr_impl.29" = type { %"class.std::tuple.30" }
%"class.std::tuple.30" = type { %"struct.std::_Tuple_impl.31" }
%"struct.std::_Tuple_impl.31" = type { %"struct.std::_Head_base.34" }
%"struct.std::_Head_base.34" = type { ptr }
%"struct.HIR::ConstGeneric_Unevaluated" = type { %"struct.HIR::PathParams", %"struct.HIR::PathParams", %"class.std::shared_ptr.84" }
%"struct.HIR::PathParams" = type { %class.ThinVector.2, %class.ThinVector.3, %class.ThinVector.4 }
%class.ThinVector.2 = type { ptr }
%class.ThinVector.3 = type { ptr }
%class.ThinVector.4 = type { ptr }
%"class.std::shared_ptr.84" = type { %"class.std::__shared_ptr.85" }
%"class.std::__shared_ptr.85" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.HIR::TypeRef" = type { ptr }

@.str.1 = external hidden unnamed_addr constant [80 x i8], align 1
@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@__FUNCTION__._ZNK13Monomorphiser19monomorph_arraysizeERK4SpanRKN3HIR9ArraySizeE = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@__PRETTY_FUNCTION__._ZNK13Monomorphiser19monomorph_arraysizeERK4SpanRKN3HIR9ArraySizeE = external hidden unnamed_addr constant [98 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [53 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 i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK13Monomorphiser19monomorph_arraysizeERK4SpanRKN3HIR9ArraySizeE(ptr dead_on_unwind noalias writable sret(%"class.HIR::ArraySize") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(32) %3) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.HIR::ArraySize", align 8
  %6 = alloca %"class.HIR::ArraySize", align 8
  %7 = alloca %"class.HIR::ConstGeneric", align 8
  %8 = alloca %"class.HIR::ArraySize", align 8
  %9 = alloca %"class.HIR::ConstGeneric", align 8
  %10 = alloca %"class.std::unique_ptr.27", align 8
  %11 = alloca %"struct.HIR::ConstGeneric_Unevaluated", align 8
  %12 = alloca %"class.HIR::ArraySize", align 8
  %13 = alloca %"class.HIR::ConstGeneric", align 8
  %14 = alloca %"class.HIR::TypeRef", align 8
  %15 = tail call noundef ptr @_ZNK3HIR9ArraySize15opt_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %131, label %16

16:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  call void @_ZN3HIR9ArraySizeC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %17 = call noundef zeroext i1 @_ZNK3HIR12ConstGeneric10is_GenericEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  br i1 %17, label %18, label %52

18:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  %19 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12ConstGeneric10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %20 = load ptr, ptr %1, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 24
  %22 = load ptr, ptr %21, align 8
  invoke void %22(ptr dead_on_unwind nonnull writable sret(%"class.HIR::ConstGeneric") align 8 %7, ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(12) %19)
          to label %23 unwind label %44

23:                                               ; preds = %18
  invoke void @_ZN3HIR9ArraySizeC2ENS_12ConstGenericE(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull %7)
          to label %24 unwind label %46

24:                                               ; preds = %23
  %25 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3HIR9ArraySizeaSEOS0_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %26 unwind label %48

26:                                               ; preds = %24
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @_ZN3HIR12ConstGenericD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  %27 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %28 unwind label %42

28:                                               ; preds = %26
  br i1 %27, label %29, label %90

29:                                               ; preds = %28
  %30 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !8
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %30, ptr noundef nonnull @__FUNCTION__._ZNK13Monomorphiser19monomorph_arraysizeERK4SpanRKN3HIR9ArraySizeE)
          to label %32 unwind label %42

32:                                               ; preds = %29
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_9ArraySizeE(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %34 unwind label %42

34:                                               ; preds = %32
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @.str.4)
          to label %36 unwind label %42

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_9ArraySizeE(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %38 unwind label %42

38:                                               ; preds = %36
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %40 unwind label %42

40:                                               ; preds = %38
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %90 unwind label %42

42:                                               ; preds = %119, %117, %115, %113, %110, %107, %40, %38, %36, %34, %32, %29, %26
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %130

44:                                               ; preds = %18
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %51

46:                                               ; preds = %23
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %50

48:                                               ; preds = %24
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br label %50

50:                                               ; preds = %48, %46
  %.pn43 = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ]
  call void @_ZN3HIR12ConstGenericD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br label %51

51:                                               ; preds = %50, %44
  %.pn43.pn = phi { ptr, i32 } [ %.pn43, %50 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br label %130

52:                                               ; preds = %16
  %53 = call noundef zeroext i1 @_ZNK3HIR12ConstGeneric14is_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  br i1 %53, label %54, label %77

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #7
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric14as_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %56 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #7
  invoke void @_ZNK3HIR24ConstGeneric_Unevaluated9monomorphERK4SpanRK13Monomorphiserb(ptr dead_on_unwind nonnull writable sret(%"struct.HIR::ConstGeneric_Unevaluated") align 8 %11, ptr noundef nonnull align 8 dereferenceable(64) %56, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(96) %1, i1 noundef zeroext true)
          to label %57 unwind label %63

57:                                               ; preds = %54
  invoke void @_ZSt11make_uniqueIN3HIR24ConstGeneric_UnevaluatedEJS1_EENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.27") align 8 %10, ptr noundef nonnull align 8 dereferenceable(64) %11)
          to label %58 unwind label %65

58:                                               ; preds = %57
  invoke void @_ZN3HIR12ConstGenericC2ESt10unique_ptrINS_24ConstGeneric_UnevaluatedESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull %10)
          to label %59 unwind label %67

59:                                               ; preds = %58
  invoke void @_ZN3HIR9ArraySizeC2ENS_12ConstGenericE(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull %9)
          to label %60 unwind label %69

60:                                               ; preds = %59
  %61 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3HIR9ArraySizeaSEOS0_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %62 unwind label %71

62:                                               ; preds = %60
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @_ZN3HIR12ConstGenericD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @_ZNSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @_ZN3HIR24ConstGeneric_UnevaluatedD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %11) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %90

63:                                               ; preds = %54
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %76

65:                                               ; preds = %57
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %75

67:                                               ; preds = %58
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %74

69:                                               ; preds = %59
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %73

71:                                               ; preds = %60
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %73

73:                                               ; preds = %71, %69
  %.pn38 = phi { ptr, i32 } [ %72, %71 ], [ %70, %69 ]
  call void @_ZN3HIR12ConstGenericD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br label %74

74:                                               ; preds = %73, %67
  %.pn38.pn = phi { ptr, i32 } [ %.pn38, %73 ], [ %68, %67 ]
  call void @_ZNSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br label %75

75:                                               ; preds = %74, %65
  %.pn38.pn.pn = phi { ptr, i32 } [ %.pn38.pn, %74 ], [ %66, %65 ]
  call void @_ZN3HIR24ConstGeneric_UnevaluatedD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %11) #7
  br label %76

76:                                               ; preds = %75, %63
  %.pn38.pn.pn.pn = phi { ptr, i32 } [ %.pn38.pn.pn, %75 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %130

77:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  invoke void @_ZNK3HIR12ConstGeneric5cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::ConstGeneric") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %78 unwind label %82

78:                                               ; preds = %77
  invoke void @_ZN3HIR9ArraySizeC2ENS_12ConstGenericE(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull %13)
          to label %79 unwind label %84

79:                                               ; preds = %78
  %80 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3HIR9ArraySizeaSEOS0_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %81 unwind label %86

81:                                               ; preds = %79
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @_ZN3HIR12ConstGenericD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  br label %90

82:                                               ; preds = %77
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %89

84:                                               ; preds = %78
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %88

86:                                               ; preds = %79
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br label %88

88:                                               ; preds = %86, %84
  %.pn = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  call void @_ZN3HIR12ConstGenericD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  br label %89

89:                                               ; preds = %88, %82
  %.pn.pn = phi { ptr, i32 } [ %.pn, %88 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  br label %130

90:                                               ; preds = %62, %81, %28, %40
  %91 = call noundef ptr @_ZN3HIR9ArraySize15opt_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %.not46 = icmp eq ptr %91, null
  br i1 %.not46, label %92, label %93

92:                                               ; preds = %90
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 593, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK13Monomorphiser19monomorph_arraysizeERK4SpanRKN3HIR9ArraySizeE) #8
  unreachable

93:                                               ; preds = %90
  %94 = call noundef zeroext i1 @_ZNK3HIR12ConstGeneric14is_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %91)
  br i1 %94, label %95, label %121

95:                                               ; preds = %93
  %96 = getelementptr inbounds i8, ptr %1, i64 8
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %.not47 = icmp eq ptr %97, null
  br i1 %.not47, label %107, label %98

98:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  invoke void @_ZN3HIR7TypeRefC2ENS_8CoreTypeE(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 0)
          to label %99 unwind label %102

99:                                               ; preds = %98
  %100 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3HIR9ArraySize14as_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  invoke void @_Z40ConvertHIR_ConstantEvaluate_ConstGenericRK4SpanRKN3HIR5CrateERKNS2_7TypeRefERNS2_12ConstGenericE(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(944) %97, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(24) %100)
          to label %101 unwind label %104

101:                                              ; preds = %99
  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 label %121

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

104:                                              ; preds = %99
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %106

106:                                              ; preds = %104, %102
  %.pn48 = phi { ptr, i32 } [ %105, %104 ], [ %103, %102 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %130

107:                                              ; preds = %95
  %108 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %109 unwind label %42

109:                                              ; preds = %107
  br i1 %108, label %110, label %121

110:                                              ; preds = %109
  %111 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !8
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %111, ptr noundef nonnull @__FUNCTION__._ZNK13Monomorphiser19monomorph_arraysizeERK4SpanRKN3HIR9ArraySizeE)
          to label %113 unwind label %42

113:                                              ; preds = %110
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull @.str.6)
          to label %115 unwind label %42

115:                                              ; preds = %113
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_12ConstGenericE(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull align 8 dereferenceable(24) %91)
          to label %117 unwind label %42

117:                                              ; preds = %115
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %119 unwind label %42

119:                                              ; preds = %117
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %121 unwind label %42

121:                                              ; preds = %101, %119, %109, %93
  %122 = call noundef ptr @_ZNK3HIR12ConstGeneric13opt_EvaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %91)
  %.not50 = icmp eq ptr %122, null
  br i1 %.not50, label %.critedge, label %123

123:                                              ; preds = %121
  %124 = call noundef ptr @_ZNK3HIR17EncodedLiteralPtrptEv(ptr noundef nonnull align 8 dereferenceable(8) %122)
  %125 = invoke noundef i64 @_ZNK14EncodedLiteral10read_usizeEm(ptr noundef nonnull align 8 dereferenceable(48) %124, i64 noundef 0)
          to label %126 unwind label %127

126:                                              ; preds = %123
  invoke void @_ZN3HIR9ArraySizeC2Em(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %125)
          to label %129 unwind label %127

127:                                              ; preds = %126, %123
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %130

.critedge:                                        ; preds = %121
  call void @_ZN3HIR9ArraySizeC2EOS0_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  br label %129

129:                                              ; preds = %126, %.critedge
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br label %132

130:                                              ; preds = %127, %106, %89, %76, %51, %42
  %.pn51 = phi { ptr, i32 } [ %128, %127 ], [ %.pn48, %106 ], [ %43, %42 ], [ %.pn43.pn, %51 ], [ %.pn38.pn.pn.pn, %76 ], [ %.pn.pn, %89 ]
  call void @_ZN3HIR9ArraySizeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn51

131:                                              ; preds = %4
  tail call void @_ZNK3HIR9ArraySize5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::ArraySize") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %3)
  br label %132

132:                                              ; preds = %131, %129
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3HIR24ConstGeneric_UnevaluatedEJS1_EENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.27") align 8, ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2

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

declare void @_ZNK3HIR24ConstGeneric_Unevaluated9monomorphERK4SpanRK13Monomorphiserb(ptr dead_on_unwind writable sret(%"struct.HIR::ConstGeneric_Unevaluated") align 8, ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(96), i1 noundef zeroext) local_unnamed_addr #6

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

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

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

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

declare void @_ZNK3HIR12ConstGeneric5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::ConstGeneric") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6

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

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

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

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

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

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

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

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_9ArraySizeE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

; 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 #6

; 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 #4 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 #4 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: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3HIR12ConstGeneric14is_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

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

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

declare void @_Z40ConvertHIR_ConstantEvaluate_ConstGenericRK4SpanRKN3HIR5CrateERKNS2_7TypeRefERNS2_12ConstGenericE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(944), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_12ConstGenericE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6

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

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

declare noundef i64 @_ZNK14EncodedLiteral10read_usizeEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) local_unnamed_addr #6

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

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

declare void @_ZNK3HIR9ArraySize5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::ArraySize") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"_ZTS13Monomorphiser", !13, i64 8, !14, i64 16, !15, i64 72}
!13 = !{!"any pointer", !10, i64 0}
!14 = !{!"_ZTSN3HIR8ItemPathE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48}
!15 = !{!"_ZTSSt6vectorIPKN3HIR13GenericParamsESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPKN3HIR13GenericParamsESaIS3_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPKN3HIR13GenericParamsESaIS3_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPKN3HIR13GenericParamsESaIS3_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass