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

; 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::TypeRef" = type { ptr }
%"class.HIR::ExprPtr" = type { %"class.HIR::ExprPtrInner", %"class.std::vector.93", %"class.std::vector.93", %"class.MIR::FunctionPointer", %"class.HIR::ExprStatePtr" }
%"class.HIR::ExprPtrInner" = type { ptr }
%"class.std::vector.93" = type { %"struct.std::_Vector_base.94" }
%"struct.std::_Vector_base.94" = 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::ValueItem" = type { i32, %"union.HIR::ValueItem::DataUnion" }
%"union.HIR::ValueItem::DataUnion" = type { %"class.HIR::Static" }
%"class.HIR::Static" = type { %"class.HIR::GenericParams", %"struct.HIR::Linkage", i8, %"class.HIR::TypeRef", %"class.HIR::ExprPtr", %struct.EncodedLiteral, i8, i8, i8, %"class.std::map.551" }
%"class.HIR::GenericParams" = type { %"class.std::vector.8", %"class.std::vector.13", %"class.std::vector.18", %"class.std::vector.23" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.HIR::Linkage" = type { i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.EncodedLiteral = type { %"class.std::vector.541", %"class.std::vector.546" }
%"class.std::vector.541" = type { %"struct.std::_Vector_base.542" }
%"struct.std::_Vector_base.542" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.546" = type { %"struct.std::_Vector_base.547" }
%"struct.std::_Vector_base.547" = type { %"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl" }
%"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl" = type { %"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.551" = type { %"class.std::_Rb_tree.552" }
%"class.std::_Rb_tree.552" = type { %"struct.std::_Rb_tree<HIR::Path, std::pair<const HIR::Path, EncodedLiteral>, std::_Select1st<std::pair<const HIR::Path, EncodedLiteral>>, std::less<HIR::Path>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<HIR::Path, std::pair<const HIR::Path, EncodedLiteral>, std::_Select1st<std::pair<const HIR::Path, EncodedLiteral>>, std::less<HIR::Path>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.HIR::ItemPath" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%class.TraceLog = type { ptr, %"class.std::function" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.803 = type { ptr }
%"class.HIR::Constant" = type { %"class.HIR::GenericParams", %"class.HIR::TypeRef", %"class.HIR::ExprPtr", %struct.EncodedLiteral, i32, %"class.std::map.551" }
%struct.Span = type { ptr }
%class.anon.804 = type { ptr }
%"class.AST::Static" = type { i32, %class.TypeRef, %"class.AST::Expr", %"struct.AST::Static::Markings" }
%class.TypeRef = type { %struct.Span, %class.TypeData }
%class.TypeData = type { i32, %"union.TypeData::DataUnion" }
%"union.TypeData::DataUnion" = type { %"struct.TypeData::Data_ErasedType", [32 x i8] }
%"struct.TypeData::Data_ErasedType" = type { %"class.std::vector.83", %"class.std::vector.83", %"class.std::vector.88" }
%"class.std::vector.83" = type { %"struct.std::_Vector_base.84" }
%"struct.std::_Vector_base.84" = type { %"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl" }
%"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl" = type { %"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.88" = type { %"struct.std::_Vector_base.89" }
%"struct.std::_Vector_base.89" = type { %"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl" }
%"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl" = type { %"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.AST::Expr" = type { %"class.std::shared_ptr.72" }
%"class.std::shared_ptr.72" = type { %"class.std::__shared_ptr.73" }
%"class.std::__shared_ptr.73" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.AST::Static::Markings" = type <{ %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, [4 x i8] }>

@.str.6 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@__func__._Z15LowerHIR_StaticN3HIR8ItemPathERKN3AST13AttributeListERKNS1_6StaticERK4SpanRK8RcString = external hidden unnamed_addr constant [16 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13LowerHIR_TypeRK7TypeRef(ptr dead_on_unwind noalias writable sret(%"class.HIR::TypeRef") align 8, ptr noundef nonnull align 8 dereferenceable(120)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13LowerHIR_ExprRKN3AST4ExprE(ptr dead_on_unwind noalias writable sret(%"class.HIR::ExprPtr") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #2

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

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

declare noundef zeroext i1 @_Z13debug_enabledv() #3

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15LowerHIR_StaticN3HIR8ItemPathERKN3AST13AttributeListERKNS1_6StaticERK4SpanRK8RcString(ptr dead_on_unwind noalias writable sret(%"class.HIR::ValueItem") align 8 %0, ptr noundef byval(%"class.HIR::ItemPath") align 8 %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(216) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #2 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 %class.TraceLog, align 8
  %13 = alloca %"class.std::function", align 8
  %14 = alloca %class.anon.803, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.HIR::Constant", align 8
  %18 = alloca %"class.HIR::GenericParams", align 8
  %19 = alloca %"class.HIR::TypeRef", align 8
  %20 = alloca %"class.HIR::ExprPtr", align 8
  %21 = alloca i32, align 4
  %22 = alloca %struct.Span, align 8
  %23 = alloca %"class.std::function", align 8
  %24 = alloca %class.anon.804, align 8
  %25 = alloca %"struct.HIR::Linkage", align 8
  %26 = alloca %"class.HIR::Static", align 8
  %27 = alloca %"struct.HIR::Linkage", align 8
  %28 = alloca %"class.HIR::TypeRef", align 8
  %29 = alloca %"class.HIR::ExprPtr", align 8
  store ptr %0, ptr %7, align 8
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  store ptr %5, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #7
  %30 = call noundef zeroext i1 @_Z13debug_enabledv()
  %31 = zext i1 %30 to i64
  %32 = select i1 %30, ptr @__func__._Z15LowerHIR_StaticN3HIR8ItemPathERKN3AST13AttributeListERKNS1_6StaticERK4SpanRK8RcString, ptr null
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %33 = getelementptr inbounds %class.anon.803, ptr %14, i32 0, i32 0
  store ptr %1, ptr %33, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ15LowerHIR_StaticN3HIR8ItemPathERKN3AST13AttributeListERKNS6_6StaticERK4SpanRK8RcStringE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef %32, ptr noundef %13)
          to label %34 unwind label %55

34:                                               ; preds = %6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3AST6Static7s_classEv(ptr noundef nonnull align 8 dereferenceable(216) %35)
          to label %37 unwind label %59

37:                                               ; preds = %34
  %38 = load i32, ptr %36, align 4, !tbaa !9
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %82

40:                                               ; preds = %37
  %41 = getelementptr inbounds %"class.HIR::GenericParams", ptr %18, i32 0, i32 0
  call void @llvm.memset.p0.i64(ptr align 8 %41, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3HIR12TypeParamDefESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #7
  %42 = getelementptr inbounds %"class.HIR::GenericParams", ptr %18, i32 0, i32 1
  call void @llvm.memset.p0.i64(ptr align 8 %42, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3HIR11LifetimeDefESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %42) #7
  %43 = getelementptr inbounds %"class.HIR::GenericParams", ptr %18, i32 0, i32 2
  call void @llvm.memset.p0.i64(ptr align 8 %43, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3HIR13ValueParamDefESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %44 = getelementptr inbounds %"class.HIR::GenericParams", ptr %18, i32 0, i32 3
  call void @llvm.memset.p0.i64(ptr align 8 %44, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3HIR12GenericBoundESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %44) #7
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZNK3AST6Static4typeEv(ptr noundef nonnull align 8 dereferenceable(216) %45)
          to label %47 unwind label %63

47:                                               ; preds = %40
  invoke void @_Z13LowerHIR_TypeRK7TypeRef(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %19, ptr noundef nonnull align 8 dereferenceable(120) %46)
          to label %48 unwind label %63

48:                                               ; preds = %47
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3AST6Static5valueEv(ptr noundef nonnull align 8 dereferenceable(216) %49)
          to label %51 unwind label %67

51:                                               ; preds = %48
  invoke void @_Z13LowerHIR_ExprRKN3AST4ExprE(ptr dead_on_unwind writable sret(%"class.HIR::ExprPtr") align 8 %20, ptr noundef nonnull align 8 dereferenceable(16) %50)
          to label %52 unwind label %67

52:                                               ; preds = %51
  invoke void @_ZN3HIR8ConstantC2ENS_13GenericParamsENS_7TypeRefENS_7ExprPtrE(ptr noundef nonnull align 8 dereferenceable(280) %17, ptr noundef %18, ptr noundef %19, ptr noundef %20)
          to label %53 unwind label %71

53:                                               ; preds = %52
  invoke void @_ZN3HIR9ValueItem13make_ConstantENS_8ConstantE(ptr dead_on_unwind writable sret(%"class.HIR::ValueItem") align 8 %0, ptr noundef %17)
          to label %54 unwind label %75

54:                                               ; preds = %53
  call void @_ZN3HIR8ConstantD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %17) #7
  call void @_ZN3HIR7ExprPtrD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %20) #7
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %18) #7
  store i32 1, ptr %21, align 4
  br label %195

55:                                               ; preds = %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
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %197

59:                                               ; preds = %93, %83, %34
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %15, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %16, align 4
  br label %196

63:                                               ; preds = %47, %40
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %15, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %16, align 4
  br label %81

67:                                               ; preds = %51, %48
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %15, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %16, align 4
  br label %80

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

75:                                               ; preds = %53
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %15, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %16, align 4
  call void @_ZN3HIR8ConstantD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %17) #7
  br label %79

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

80:                                               ; preds = %79, %67
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br label %81

81:                                               ; preds = %80, %63
  call void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %18) #7
  br label %196

82:                                               ; preds = %37
  br label %83

83:                                               ; preds = %82
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = invoke noundef zeroext i1 @_ZNK8RcStringneEPKc(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef @.str.6)
          to label %86 unwind label %59

86:                                               ; preds = %83
  br i1 %85, label %107, label %87

87:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %88)
          to label %89 unwind label %94

89:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %90 = getelementptr inbounds %class.anon.804, ptr %24, i32 0, i32 0
  store ptr %1, ptr %90, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ15LowerHIR_StaticN3HIR8ItemPathERKN3AST13AttributeListERKNS6_6StaticERK4SpanRK8RcStringE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef %23)
          to label %91 unwind label %98

91:                                               ; preds = %89
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  %92 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %92, ptr noundef @.str.9)
          to label %93 unwind label %103

93:                                               ; preds = %91
  invoke void @__cxa_throw(ptr %92, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #8
          to label %203 unwind label %59

94:                                               ; preds = %87
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %15, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %16, align 4
  br label %102

98:                                               ; preds = %89
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %15, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %16, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br label %102

102:                                              ; preds = %98, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %196

103:                                              ; preds = %91
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %15, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %16, align 4
  call void @__cxa_free_exception(ptr %92) #7
  br label %196

107:                                              ; preds = %86
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 72, ptr %25) #7
  call void @_ZN3HIR7LinkageC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %25) #7
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.AST::Static", ptr %110, i32 0, i32 3
  %112 = getelementptr inbounds %"struct.AST::Static::Markings", ptr %111, i32 0, i32 2
  %113 = load i32, ptr %112, align 8, !tbaa !11
  switch i32 %113, label %118 [
    i32 0, label %118
    i32 1, label %114
    i32 2, label %116
  ]

114:                                              ; preds = %109
  %115 = getelementptr inbounds %"struct.HIR::Linkage", ptr %25, i32 0, i32 0
  store i32 1, ptr %115, align 8, !tbaa !26
  br label %118

116:                                              ; preds = %109
  %117 = getelementptr inbounds %"struct.HIR::Linkage", ptr %25, i32 0, i32 0
  store i32 3, ptr %117, align 8, !tbaa !26
  br label %118

118:                                              ; preds = %116, %114, %109, %109
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds %"class.AST::Static", ptr %119, i32 0, i32 3
  %121 = getelementptr inbounds %"struct.AST::Static::Markings", ptr %120, i32 0, i32 1
  %122 = getelementptr inbounds %"struct.HIR::Linkage", ptr %25, i32 0, i32 2
  %123 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %122, ptr noundef nonnull align 8 dereferenceable(32) %121)
          to label %124 unwind label %137

124:                                              ; preds = %118
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.AST::Static", ptr %125, i32 0, i32 3
  %127 = getelementptr inbounds %"struct.AST::Static::Markings", ptr %126, i32 0, i32 0
  %128 = invoke noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %127, ptr noundef @.str.6)
          to label %129 unwind label %137

129:                                              ; preds = %124
  br i1 %128, label %130, label %141

130:                                              ; preds = %129
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = getelementptr inbounds %"class.AST::Static", ptr %131, i32 0, i32 3
  %133 = getelementptr inbounds %"struct.AST::Static::Markings", ptr %132, i32 0, i32 0
  %134 = getelementptr inbounds %"struct.HIR::Linkage", ptr %25, i32 0, i32 1
  %135 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %134, ptr noundef nonnull align 8 dereferenceable(32) %133)
          to label %136 unwind label %137

136:                                              ; preds = %130
  br label %159

137:                                              ; preds = %154, %151, %148, %145, %141, %130, %124, %118
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %15, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %16, align 4
  br label %194

141:                                              ; preds = %129
  %142 = getelementptr inbounds %"struct.HIR::Linkage", ptr %25, i32 0, i32 1
  %143 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %142, ptr noundef @.str.6)
          to label %144 unwind label %137

144:                                              ; preds = %141
  br i1 %143, label %145, label %158

145:                                              ; preds = %144
  %146 = load ptr, ptr %9, align 8, !tbaa !5
  %147 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3AST6Static5valueEv(ptr noundef nonnull align 8 dereferenceable(216) %146)
          to label %148 unwind label %137

148:                                              ; preds = %145
  %149 = invoke noundef zeroext i1 @_ZNK3AST4Expr8is_validEv(ptr noundef nonnull align 8 dereferenceable(16) %147)
          to label %150 unwind label %137

150:                                              ; preds = %148
  br i1 %149, label %158, label %151

151:                                              ; preds = %150
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = invoke noundef ptr @_ZNK8RcString5c_strEv(ptr noundef nonnull align 8 dereferenceable(8) %152)
          to label %154 unwind label %137

154:                                              ; preds = %151
  %155 = getelementptr inbounds %"struct.HIR::Linkage", ptr %25, i32 0, i32 1
  %156 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %155, ptr noundef %153)
          to label %157 unwind label %137

157:                                              ; preds = %154
  br label %158

158:                                              ; preds = %157, %150, %144
  br label %159

159:                                              ; preds = %158, %136
  call void @_ZN3HIR7LinkageC2EOS0_(ptr noundef nonnull align 8 dereferenceable(72) %27, ptr noundef nonnull align 8 dereferenceable(72) %25) #7
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3AST6Static7s_classEv(ptr noundef nonnull align 8 dereferenceable(216) %160)
          to label %162 unwind label %175

162:                                              ; preds = %159
  %163 = load i32, ptr %161, align 4, !tbaa !9
  %164 = icmp eq i32 %163, 2
  %165 = load ptr, ptr %9, align 8, !tbaa !5
  %166 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZNK3AST6Static4typeEv(ptr noundef nonnull align 8 dereferenceable(216) %165)
          to label %167 unwind label %175

167:                                              ; preds = %162
  invoke void @_Z13LowerHIR_TypeRK7TypeRef(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %28, ptr noundef nonnull align 8 dereferenceable(120) %166)
          to label %168 unwind label %175

168:                                              ; preds = %167
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3AST6Static5valueEv(ptr noundef nonnull align 8 dereferenceable(216) %169)
          to label %171 unwind label %179

171:                                              ; preds = %168
  invoke void @_Z13LowerHIR_ExprRKN3AST4ExprE(ptr dead_on_unwind writable sret(%"class.HIR::ExprPtr") align 8 %29, ptr noundef nonnull align 8 dereferenceable(16) %170)
          to label %172 unwind label %179

172:                                              ; preds = %171
  invoke void @_ZN3HIR6StaticC2ENS_7LinkageEbNS_7TypeRefENS_7ExprPtrE(ptr noundef nonnull align 8 dereferenceable(360) %26, ptr noundef %27, i1 noundef zeroext %164, ptr noundef %28, ptr noundef %29)
          to label %173 unwind label %183

173:                                              ; preds = %172
  invoke void @_ZN3HIR9ValueItem11make_StaticENS_6StaticE(ptr dead_on_unwind writable sret(%"class.HIR::ValueItem") align 8 %0, ptr noundef %26)
          to label %174 unwind label %187

174:                                              ; preds = %173
  call void @_ZN3HIR6StaticD2Ev(ptr noundef nonnull align 8 dereferenceable(360) %26) #7
  call void @_ZN3HIR7ExprPtrD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %29) #7
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  call void @_ZN3HIR7LinkageD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %27) #7
  store i32 1, ptr %21, align 4
  call void @_ZN3HIR7LinkageD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %25) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %25) #7
  br label %195

175:                                              ; preds = %167, %162, %159
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %15, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %16, align 4
  br label %193

179:                                              ; preds = %171, %168
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %15, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %16, align 4
  br label %192

183:                                              ; preds = %172
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %15, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %16, align 4
  br label %191

187:                                              ; preds = %173
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %15, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %16, align 4
  call void @_ZN3HIR6StaticD2Ev(ptr noundef nonnull align 8 dereferenceable(360) %26) #7
  br label %191

191:                                              ; preds = %187, %183
  call void @_ZN3HIR7ExprPtrD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %29) #7
  br label %192

192:                                              ; preds = %191, %179
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  br label %193

193:                                              ; preds = %192, %175
  call void @_ZN3HIR7LinkageD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %27) #7
  br label %194

194:                                              ; preds = %193, %137
  call void @_ZN3HIR7LinkageD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %25) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %25) #7
  br label %196

195:                                              ; preds = %174, %54
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #7
  ret void

196:                                              ; preds = %194, %103, %102, %81, %59
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #7
  br label %197

197:                                              ; preds = %196, %55
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #7
  br label %198

198:                                              ; preds = %197
  %199 = load ptr, ptr %15, align 8
  %200 = load i32, ptr %16, align 4
  %201 = insertvalue { ptr, i32 } poison, ptr %199, 0
  %202 = insertvalue { ptr, i32 } %201, i32 %200, 1
  resume { ptr, i32 } %202

203:                                              ; preds = %93
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR9ValueItem13make_ConstantENS_8ConstantE(ptr dead_on_unwind noalias writable sret(%"class.HIR::ValueItem") align 8, ptr noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR9ValueItem11make_StaticENS_6StaticE(ptr dead_on_unwind noalias writable sret(%"class.HIR::ValueItem") align 8, ptr noundef) #2 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"_ZTSN3AST6Static5ClassE", !7, i64 0}
!11 = !{!12, !25, i64 208}
!12 = !{!"_ZTSN3AST6StaticE", !10, i64 0, !13, i64 8, !17, i64 128, !21, i64 144}
!13 = !{!"_ZTS7TypeRef", !14, i64 0, !15, i64 8}
!14 = !{!"_ZTS4Span", !6, i64 0}
!15 = !{!"_ZTS8TypeData", !16, i64 0, !7, i64 8}
!16 = !{!"_ZTSN8TypeData3TagE", !7, i64 0}
!17 = !{!"_ZTSN3AST4ExprE", !18, i64 0}
!18 = !{!"_ZTSSt10shared_ptrIN3AST8ExprNodeEE", !19, i64 0}
!19 = !{!"_ZTSSt12__shared_ptrIN3AST8ExprNodeELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !20, i64 8}
!20 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!21 = !{!"_ZTSN3AST6Static8MarkingsE", !22, i64 0, !22, i64 32, !25, i64 64}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !23, i64 0, !24, i64 8, !7, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSN3AST7LinkageE", !7, i64 0}
!26 = !{!27, !28, i64 0}
!27 = !{!"_ZTSN3HIR7LinkageE", !28, i64 0, !22, i64 8, !22, i64 40}
!28 = !{!"_ZTSN3HIR7Linkage4TypeE", !7, 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.HIR::TypeRef" = type { ptr }
%"class.HIR::ExprPtr" = type { %"class.HIR::ExprPtrInner", %"class.std::vector.93", %"class.std::vector.93", %"class.MIR::FunctionPointer", %"class.HIR::ExprStatePtr" }
%"class.HIR::ExprPtrInner" = type { ptr }
%"class.std::vector.93" = type { %"struct.std::_Vector_base.94" }
%"struct.std::_Vector_base.94" = 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::ValueItem" = type { i32, %"union.HIR::ValueItem::DataUnion" }
%"union.HIR::ValueItem::DataUnion" = type { %"class.HIR::Static" }
%"class.HIR::Static" = type { %"class.HIR::GenericParams", %"struct.HIR::Linkage", i8, %"class.HIR::TypeRef", %"class.HIR::ExprPtr", %struct.EncodedLiteral, i8, i8, i8, %"class.std::map.551" }
%"class.HIR::GenericParams" = type { %"class.std::vector.8", %"class.std::vector.13", %"class.std::vector.18", %"class.std::vector.23" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.HIR::Linkage" = type { i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.EncodedLiteral = type { %"class.std::vector.541", %"class.std::vector.546" }
%"class.std::vector.541" = type { %"struct.std::_Vector_base.542" }
%"struct.std::_Vector_base.542" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.546" = type { %"struct.std::_Vector_base.547" }
%"struct.std::_Vector_base.547" = type { %"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl" }
%"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl" = type { %"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.551" = type { %"class.std::_Rb_tree.552" }
%"class.std::_Rb_tree.552" = type { %"struct.std::_Rb_tree<HIR::Path, std::pair<const HIR::Path, EncodedLiteral>, std::_Select1st<std::pair<const HIR::Path, EncodedLiteral>>, std::less<HIR::Path>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<HIR::Path, std::pair<const HIR::Path, EncodedLiteral>, std::_Select1st<std::pair<const HIR::Path, EncodedLiteral>>, std::less<HIR::Path>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.HIR::ItemPath" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%class.TraceLog = type { ptr, %"class.std::function" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.803 = type { ptr }
%"class.HIR::Constant" = type { %"class.HIR::GenericParams", %"class.HIR::TypeRef", %"class.HIR::ExprPtr", %struct.EncodedLiteral, i32, %"class.std::map.551" }
%struct.Span = type { ptr }
%class.anon.804 = type { ptr }

@.str.6 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@__func__._Z15LowerHIR_StaticN3HIR8ItemPathERKN3AST13AttributeListERKNS1_6StaticERK4SpanRK8RcString = external hidden unnamed_addr constant [16 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13LowerHIR_TypeRK7TypeRef(ptr dead_on_unwind noalias writable sret(%"class.HIR::TypeRef") align 8, ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13LowerHIR_ExprRKN3AST4ExprE(ptr dead_on_unwind noalias writable sret(%"class.HIR::ExprPtr") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

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

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15LowerHIR_StaticN3HIR8ItemPathERKN3AST13AttributeListERKNS1_6StaticERK4SpanRK8RcString(ptr dead_on_unwind noalias writable sret(%"class.HIR::ValueItem") align 8 %0, ptr noundef byval(%"class.HIR::ItemPath") align 8 %1, ptr nocapture noundef nonnull readnone align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(216) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %class.TraceLog, align 8
  %8 = alloca %"class.std::function", align 8
  %9 = alloca %class.anon.803, align 8
  %10 = alloca %"class.HIR::Constant", align 8
  %11 = alloca %"class.HIR::GenericParams", align 8
  %12 = alloca %"class.HIR::TypeRef", align 8
  %13 = alloca %"class.HIR::ExprPtr", align 8
  %14 = alloca %struct.Span, align 8
  %15 = alloca %"class.std::function", align 8
  %16 = alloca %class.anon.804, align 8
  %17 = alloca %"struct.HIR::Linkage", align 8
  %18 = alloca %"class.HIR::Static", align 8
  %19 = alloca %"struct.HIR::Linkage", align 8
  %20 = alloca %"class.HIR::TypeRef", align 8
  %21 = alloca %"class.HIR::ExprPtr", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #7
  %22 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %23 = select i1 %22, ptr @__func__._Z15LowerHIR_StaticN3HIR8ItemPathERKN3AST13AttributeListERKNS1_6StaticERK4SpanRK8RcString, ptr null
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  store ptr %1, ptr %9, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ15LowerHIR_StaticN3HIR8ItemPathERKN3AST13AttributeListERKNS6_6StaticERK4SpanRK8RcStringE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %23, ptr noundef nonnull %8)
          to label %24 unwind label %38

24:                                               ; preds = %6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3AST6Static7s_classEv(ptr noundef nonnull align 8 dereferenceable(216) %3)
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %53

28:                                               ; preds = %24
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3HIR12TypeParamDefESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %29 = getelementptr inbounds i8, ptr %11, i64 24
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %29, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3HIR11LifetimeDefESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #7
  %30 = getelementptr inbounds i8, ptr %11, i64 48
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %30, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3HIR13ValueParamDefESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #7
  %31 = getelementptr inbounds i8, ptr %11, i64 72
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %31, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3HIR12GenericBoundESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #7
  %32 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNK3AST6Static4typeEv(ptr noundef nonnull align 8 dereferenceable(216) %3)
  invoke void @_Z13LowerHIR_TypeRK7TypeRef(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 %12, ptr noundef nonnull align 8 dereferenceable(120) %32)
          to label %33 unwind label %42

33:                                               ; preds = %28
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3AST6Static5valueEv(ptr noundef nonnull align 8 dereferenceable(216) %3)
  invoke void @_Z13LowerHIR_ExprRKN3AST4ExprE(ptr dead_on_unwind nonnull writable sret(%"class.HIR::ExprPtr") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %35 unwind label %44

35:                                               ; preds = %33
  invoke void @_ZN3HIR8ConstantC2ENS_13GenericParamsENS_7TypeRefENS_7ExprPtrE(ptr noundef nonnull align 8 dereferenceable(280) %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13)
          to label %36 unwind label %46

36:                                               ; preds = %35
  invoke void @_ZN3HIR9ValueItem13make_ConstantENS_8ConstantE(ptr dead_on_unwind writable sret(%"class.HIR::ValueItem") align 8 %0, ptr noundef nonnull %10)
          to label %37 unwind label %48

37:                                               ; preds = %36
  call void @_ZN3HIR8ConstantD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %10) #7
  call void @_ZN3HIR7ExprPtrD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %13) #7
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %11) #7
  br label %115

38:                                               ; preds = %6
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %117

40:                                               ; preds = %60, %53
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %116

42:                                               ; preds = %28
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %52

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

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

48:                                               ; preds = %36
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR8ConstantD2Ev(ptr noundef nonnull align 8 dereferenceable(280) %10) #7
  br label %50

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

51:                                               ; preds = %50, %44
  %.pn31.pn = phi { ptr, i32 } [ %.pn31, %50 ], [ %45, %44 ]
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br label %52

52:                                               ; preds = %51, %42
  %.pn31.pn.pn = phi { ptr, i32 } [ %.pn31.pn, %51 ], [ %43, %42 ]
  call void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %11) #7
  br label %116

53:                                               ; preds = %24
  %54 = invoke noundef zeroext i1 @_ZNK8RcStringneEPKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull @.str.6)
          to label %55 unwind label %40

55:                                               ; preds = %53
  br i1 %54, label %68, label %56

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %57 unwind label %61

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  store ptr %1, ptr %16, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ15LowerHIR_StaticN3HIR8ItemPathERKN3AST13AttributeListERKNS6_6StaticERK4SpanRK8RcStringE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull %15)
          to label %58 unwind label %63

58:                                               ; preds = %57
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %59 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %59, ptr noundef nonnull @.str.9)
          to label %60 unwind label %66

60:                                               ; preds = %58
  invoke void @__cxa_throw(ptr nonnull %59, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
          to label %118 unwind label %40

61:                                               ; preds = %56
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %65

63:                                               ; preds = %57
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %65

65:                                               ; preds = %63, %61
  %.pn = phi { ptr, i32 } [ %64, %63 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %116

66:                                               ; preds = %58
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %59) #7
  br label %116

68:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %17) #7
  call void @_ZN3HIR7LinkageC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %17) #7
  %69 = getelementptr inbounds i8, ptr %3, i64 144
  %70 = getelementptr inbounds i8, ptr %3, i64 208
  %71 = load i32, ptr %70, align 8, !tbaa !11
  switch i32 %71, label %74 [
    i32 2, label %73
    i32 1, label %72
  ]

72:                                               ; preds = %68
  store i32 1, ptr %17, align 8, !tbaa !26
  br label %74

73:                                               ; preds = %68
  store i32 3, ptr %17, align 8, !tbaa !26
  br label %74

74:                                               ; preds = %73, %72, %68
  %75 = getelementptr inbounds i8, ptr %3, i64 176
  %76 = getelementptr inbounds i8, ptr %17, i64 40
  %77 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %76, ptr noundef nonnull align 8 dereferenceable(32) %75)
          to label %78 unwind label %83

78:                                               ; preds = %74
  %79 = call noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %69, ptr noundef nonnull @.str.6)
  %80 = getelementptr inbounds i8, ptr %17, i64 8
  br i1 %79, label %81, label %85

81:                                               ; preds = %78
  %82 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %80, ptr noundef nonnull align 8 dereferenceable(32) %69)
          to label %93 unwind label %83

83:                                               ; preds = %90, %81, %74
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %114

85:                                               ; preds = %78
  %86 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %80, ptr noundef nonnull @.str.6)
  br i1 %86, label %87, label %93

87:                                               ; preds = %85
  %88 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3AST6Static5valueEv(ptr noundef nonnull align 8 dereferenceable(216) %3)
  %89 = call noundef zeroext i1 @_ZNK3AST4Expr8is_validEv(ptr noundef nonnull align 8 dereferenceable(16) %88)
  br i1 %89, label %93, label %90

90:                                               ; preds = %87
  %91 = call noundef ptr @_ZNK8RcString5c_strEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %92 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %80, ptr noundef %91)
          to label %93 unwind label %83

93:                                               ; preds = %85, %87, %90, %81
  call void @_ZN3HIR7LinkageC2EOS0_(ptr noundef nonnull align 8 dereferenceable(72) %19, ptr noundef nonnull align 8 dereferenceable(72) %17) #7
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3AST6Static7s_classEv(ptr noundef nonnull align 8 dereferenceable(216) %3)
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = icmp eq i32 %95, 2
  %97 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNK3AST6Static4typeEv(ptr noundef nonnull align 8 dereferenceable(216) %3)
  invoke void @_Z13LowerHIR_TypeRK7TypeRef(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 %20, ptr noundef nonnull align 8 dereferenceable(120) %97)
          to label %98 unwind label %103

98:                                               ; preds = %93
  %99 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3AST6Static5valueEv(ptr noundef nonnull align 8 dereferenceable(216) %3)
  invoke void @_Z13LowerHIR_ExprRKN3AST4ExprE(ptr dead_on_unwind nonnull writable sret(%"class.HIR::ExprPtr") align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %99)
          to label %100 unwind label %105

100:                                              ; preds = %98
  invoke void @_ZN3HIR6StaticC2ENS_7LinkageEbNS_7TypeRefENS_7ExprPtrE(ptr noundef nonnull align 8 dereferenceable(360) %18, ptr noundef nonnull %19, i1 noundef zeroext %96, ptr noundef nonnull %20, ptr noundef nonnull %21)
          to label %101 unwind label %107

101:                                              ; preds = %100
  invoke void @_ZN3HIR9ValueItem11make_StaticENS_6StaticE(ptr dead_on_unwind writable sret(%"class.HIR::ValueItem") align 8 %0, ptr noundef nonnull %18)
          to label %102 unwind label %109

102:                                              ; preds = %101
  call void @_ZN3HIR6StaticD2Ev(ptr noundef nonnull align 8 dereferenceable(360) %18) #7
  call void @_ZN3HIR7ExprPtrD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %21) #7
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  call void @_ZN3HIR7LinkageD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %19) #7
  call void @_ZN3HIR7LinkageD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %17) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %17) #7
  br label %115

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

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

107:                                              ; preds = %100
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %111

109:                                              ; preds = %101
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR6StaticD2Ev(ptr noundef nonnull align 8 dereferenceable(360) %18) #7
  br label %111

111:                                              ; preds = %109, %107
  %.pn26 = phi { ptr, i32 } [ %110, %109 ], [ %108, %107 ]
  call void @_ZN3HIR7ExprPtrD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %21) #7
  br label %112

112:                                              ; preds = %111, %105
  %.pn26.pn = phi { ptr, i32 } [ %.pn26, %111 ], [ %106, %105 ]
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br label %113

113:                                              ; preds = %112, %103
  %.pn26.pn.pn = phi { ptr, i32 } [ %.pn26.pn, %112 ], [ %104, %103 ]
  call void @_ZN3HIR7LinkageD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %19) #7
  br label %114

114:                                              ; preds = %113, %83
  %.pn26.pn.pn.pn = phi { ptr, i32 } [ %.pn26.pn.pn, %113 ], [ %84, %83 ]
  call void @_ZN3HIR7LinkageD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %17) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %17) #7
  br label %116

115:                                              ; preds = %102, %37
  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

116:                                              ; preds = %114, %66, %65, %52, %40
  %.pn31.pn.pn.pn = phi { ptr, i32 } [ %.pn31.pn.pn, %52 ], [ %.pn26.pn.pn.pn, %114 ], [ %41, %40 ], [ %67, %66 ], [ %.pn, %65 ]
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #7
  br label %117

117:                                              ; preds = %116, %38
  %.pn31.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn31.pn.pn.pn, %116 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #7
  resume { ptr, i32 } %.pn31.pn.pn.pn.pn

118:                                              ; preds = %60
  unreachable
}

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

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"_ZTSN3AST6Static5ClassE", !7, i64 0}
!11 = !{!12, !25, i64 208}
!12 = !{!"_ZTSN3AST6StaticE", !10, i64 0, !13, i64 8, !17, i64 128, !21, i64 144}
!13 = !{!"_ZTS7TypeRef", !14, i64 0, !15, i64 8}
!14 = !{!"_ZTS4Span", !6, i64 0}
!15 = !{!"_ZTS8TypeData", !16, i64 0, !7, i64 8}
!16 = !{!"_ZTSN8TypeData3TagE", !7, i64 0}
!17 = !{!"_ZTSN3AST4ExprE", !18, i64 0}
!18 = !{!"_ZTSSt10shared_ptrIN3AST8ExprNodeEE", !19, i64 0}
!19 = !{!"_ZTSSt12__shared_ptrIN3AST8ExprNodeELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !20, i64 8}
!20 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!21 = !{!"_ZTSN3AST6Static8MarkingsE", !22, i64 0, !22, i64 32, !25, i64 64}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !23, i64 0, !24, i64 8, !7, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSN3AST7LinkageE", !7, i64 0}
!26 = !{!27, !28, i64 0}
!27 = !{!"_ZTSN3HIR7LinkageE", !28, i64 0, !22, i64 8, !22, i64 40}
!28 = !{!"_ZTSN3HIR7Linkage4TypeE", !7, i64 0}


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