; LLVM IR from thepowersgang/mrustc :: src/hir_typeck/expr_visit.ll (ZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathE)

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

%struct.Span = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr }
%class.anon.15 = type { ptr, ptr }
%class.RcString = type { ptr }
%class.anon.267 = type { ptr, ptr }
%class.anon.270 = type { ptr }
%class.anon.271 = type { ptr }
%class.anon.272 = type { ptr }
%"class.HIR::ItemPath" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.typeck::ModuleState" = type { ptr, ptr, ptr, ptr, %"class.std::vector.0", %"class.std::vector.5" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::pair<const HIR::SimplePath *, const HIR::Trait *>, std::allocator<std::pair<const HIR::SimplePath *, const HIR::Trait *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<const HIR::SimplePath *, const HIR::Trait *>, std::allocator<std::pair<const HIR::SimplePath *, const HIR::Trait *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<const HIR::SimplePath *, const HIR::Trait *>, std::allocator<std::pair<const HIR::SimplePath *, const HIR::Trait *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<const HIR::SimplePath *, const HIR::Trait *>, std::allocator<std::pair<const HIR::SimplePath *, const HIR::Trait *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<HIR::SimplePath, std::allocator<HIR::SimplePath>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::SimplePath, std::allocator<HIR::SimplePath>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::SimplePath, std::allocator<HIR::SimplePath>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::SimplePath, std::allocator<HIR::SimplePath>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.HIR::Trait" = type { %"class.HIR::GenericParams", %"struct.HIR::LifetimeRef", %"class.std::vector.182", i8, %"class.std::unordered_map.187", %"class.std::unordered_map.201", %"class.std::unordered_multimap", %"class.std::unordered_map.228", i32, %"class.std::vector.182", %"struct.HIR::SimplePath" }
%"class.HIR::GenericParams" = type { %"class.std::vector.162", %"class.std::vector.167", %"class.std::vector.172", %"class.std::vector.177" }
%"class.std::vector.162" = type { %"struct.std::_Vector_base.163" }
%"struct.std::_Vector_base.163" = 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.167" = type { %"struct.std::_Vector_base.168" }
%"struct.std::_Vector_base.168" = 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.172" = type { %"struct.std::_Vector_base.173" }
%"struct.std::_Vector_base.173" = 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.177" = type { %"struct.std::_Vector_base.178" }
%"struct.std::_Vector_base.178" = 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::LifetimeRef" = type { i32 }
%"class.std::unordered_map.187" = type { %"class.std::_Hashtable.188" }
%"class.std::_Hashtable.188" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.201" = type { %"class.std::_Hashtable.202" }
%"class.std::_Hashtable.202" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_multimap" = type { %"class.std::_Hashtable.215" }
%"class.std::_Hashtable.215" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.228" = type { %"class.std::_Hashtable.229" }
%"class.std::_Hashtable.229" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.182" = type { %"struct.std::_Vector_base.183" }
%"struct.std::_Vector_base.183" = type { %"struct.std::_Vector_base<HIR::TraitPath, std::allocator<HIR::TraitPath>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TraitPath, std::allocator<HIR::TraitPath>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TraitPath, std::allocator<HIR::TraitPath>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TraitPath, std::allocator<HIR::TraitPath>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%"class.HIR::Function" = type { i8, %"struct.HIR::Linkage", i32, %"class.HIR::TypeRef", %class.RcString, i8, i8, %"class.HIR::GenericParams", %"class.std::vector.10", i8, %"class.HIR::TypeRef", %"class.HIR::ExprPtr", %"struct.HIR::Function::Markings" }
%"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.261 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.261 = type { i64, [8 x i8] }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::pair<HIR::Pattern, HIR::TypeRef>, std::allocator<std::pair<HIR::Pattern, HIR::TypeRef>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<HIR::Pattern, HIR::TypeRef>, std::allocator<std::pair<HIR::Pattern, HIR::TypeRef>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<HIR::Pattern, HIR::TypeRef>, std::allocator<std::pair<HIR::Pattern, HIR::TypeRef>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<HIR::Pattern, HIR::TypeRef>, std::allocator<std::pair<HIR::Pattern, HIR::TypeRef>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.HIR::TypeRef" = type { ptr }
%"class.HIR::ExprPtr" = type { %"class.HIR::ExprPtrInner", %"class.std::vector", %"class.std::vector", %"class.MIR::FunctionPointer", %"class.HIR::ExprStatePtr" }
%"class.HIR::ExprPtrInner" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }
%"struct.HIR::Function::Markings" = type { %"class.std::vector.262", i8, i32 }
%"class.std::vector.262" = type { %"struct.std::_Vector_base.263" }
%"struct.std::_Vector_base.263" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.HIR::Constant" = type { %"class.HIR::GenericParams", %"class.HIR::TypeRef", %"class.HIR::ExprPtr", %struct.EncodedLiteral, i32, %"class.std::map.252" }
%struct.EncodedLiteral = type { %"class.std::vector.242", %"class.std::vector.247" }
%"class.std::vector.242" = type { %"struct.std::_Vector_base.243" }
%"struct.std::_Vector_base.243" = 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.247" = type { %"struct.std::_Vector_base.248" }
%"struct.std::_Vector_base.248" = 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.252" = type { %"class.std::_Rb_tree.253" }
%"class.std::_Rb_tree.253" = 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::Module" = type { %"class.std::vector.5", %"class.std::unordered_map", %"class.std::unordered_map.21", %"class.std::unordered_map.35", %"class.std::vector.49" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.21" = type { %"class.std::_Hashtable.22" }
%"class.std::_Hashtable.22" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.35" = type { %"class.std::_Hashtable.36" }
%"class.std::_Hashtable.36" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.49" = type { %"struct.std::_Vector_base.50" }
%"struct.std::_Vector_base.50" = type { %"struct.std::_Vector_base<std::pair<RcString, std::unique_ptr<HIR::Static>>, std::allocator<std::pair<RcString, std::unique_ptr<HIR::Static>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<RcString, std::unique_ptr<HIR::Static>>, std::allocator<std::pair<RcString, std::unique_ptr<HIR::Static>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<RcString, std::unique_ptr<HIR::Static>>, std::allocator<std::pair<RcString, std::unique_ptr<HIR::Static>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<RcString, std::unique_ptr<HIR::Static>>, std::allocator<std::pair<RcString, std::unique_ptr<HIR::Static>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.HIR::VisEnt" = type { %"class.HIR::Publicity", %"class.HIR::ValueItem" }
%"class.HIR::Publicity" = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = 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.252" }

@__dso_handle = external hidden global i8
@_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp = external hidden global %struct.Span, align 8
@_ZGVZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp = external hidden global i64, align 8
@.str = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@__func__._ZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathE = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [84 x i8], align 1
@__PRETTY_FUNCTION__._ZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathE = external hidden unnamed_addr constant [69 x i8], align 1

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathE(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.Span, align 8
  %8 = alloca %"class.std::function", align 8
  %9 = alloca %class.anon, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %struct.Span, align 8
  %12 = alloca %"class.std::function", align 8
  %13 = alloca %class.anon.15, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %class.RcString, align 8
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i8, align 1
  %21 = alloca ptr, align 8
  %22 = alloca i8, align 1
  %23 = alloca ptr, align 8
  %24 = alloca i8, align 1
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca %struct.Span, align 8
  %28 = alloca %"class.std::function", align 8
  %29 = alloca %class.anon.267, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca %class.RcString, align 8
  %33 = alloca i8, align 1
  %34 = alloca ptr, align 8
  %35 = alloca i8, align 1
  %36 = alloca ptr, align 8
  %37 = alloca i8, align 1
  %38 = alloca ptr, align 8
  %39 = alloca i8, align 1
  %40 = alloca ptr, align 8
  %41 = alloca i8, align 1
  %42 = alloca ptr, align 8
  %43 = alloca %struct.Span, align 8
  %44 = alloca %"class.std::function", align 8
  %45 = alloca %class.anon.270, align 8
  %46 = alloca i8, align 1
  %47 = alloca ptr, align 8
  %48 = alloca %struct.Span, align 8
  %49 = alloca %"class.std::function", align 8
  %50 = alloca %class.anon.271, align 8
  %51 = alloca i8, align 1
  %52 = alloca ptr, align 8
  %53 = alloca %struct.Span, align 8
  %54 = alloca %"class.std::function", align 8
  %55 = alloca %class.anon.272, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %56 = load ptr, ptr %3, align 8
  %57 = load atomic i8, ptr @_ZGVZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp acquire, align 8
  %58 = icmp eq i8 %57, 0
  br i1 %58, label %59, label %65, !prof !9

59:                                               ; preds = %2
  %60 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp) #0
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %65

62:                                               ; preds = %59
  invoke void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp)
          to label %63 unwind label %77

63:                                               ; preds = %62
  %64 = call i32 @__cxa_atexit(ptr @_ZN4SpanD1Ev, ptr @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp) #0
  br label %65

65:                                               ; preds = %63, %59, %2
  br label %66

66:                                               ; preds = %65
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.HIR::ItemPath", ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !10
  %70 = icmp ne ptr %69, null
  br i1 %70, label %89, label %71

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #0
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #0
  %72 = getelementptr inbounds %class.anon, ptr %9, i32 0, i32 0
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %73, ptr %72, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #0
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %8)
          to label %74 unwind label %81

74:                                               ; preds = %71
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #0
  %75 = call ptr @__cxa_allocate_exception(i64 16) #0
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef @.str)
          to label %76 unwind label %85

76:                                               ; preds = %74
  call void @__cxa_throw(ptr %75, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #7
  unreachable

77:                                               ; preds = %62
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %5, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %6, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp) #0
  br label %465

81:                                               ; preds = %71
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %5, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %6, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #0
  br label %465

85:                                               ; preds = %74
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %5, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %6, align 4
  call void @__cxa_free_exception(ptr %75) #0
  br label %465

89:                                               ; preds = %66
  br label %90

90:                                               ; preds = %89
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.HIR::ItemPath", ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !10
  %94 = getelementptr inbounds %"class.HIR::ItemPath", ptr %93, i32 0, i32 2
  %95 = load ptr, ptr %94, align 8, !tbaa !12
  %96 = icmp ne ptr %95, null
  br i1 %96, label %97, label %122

97:                                               ; preds = %90
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %"class.HIR::ItemPath", ptr %98, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !10
  %101 = getelementptr inbounds %"class.HIR::ItemPath", ptr %100, i32 0, i32 1
  %102 = load ptr, ptr %101, align 8, !tbaa !13
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %122

104:                                              ; preds = %97
  br label %105

105:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #0
  store ptr @__func__._ZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathE, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #0
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp)
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #0
  %106 = getelementptr inbounds %class.anon.15, ptr %13, i32 0, i32 0
  store ptr %10, ptr %106, align 8, !tbaa !5
  %107 = getelementptr inbounds %class.anon.15, ptr %13, i32 0, i32 1
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %108, ptr %107, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(16) %13) #0
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef %12)
          to label %109 unwind label %112

109:                                              ; preds = %105
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #0
  %110 = call ptr @__cxa_allocate_exception(i64 16) #0
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %110, ptr noundef @.str.1)
          to label %111 unwind label %116

111:                                              ; preds = %109
  call void @__cxa_throw(ptr %110, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #7
  unreachable

112:                                              ; preds = %105
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %5, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %6, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #0
  br label %120

116:                                              ; preds = %109
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %5, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %6, align 4
  call void @__cxa_free_exception(ptr %110) #0
  br label %120

120:                                              ; preds = %116, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #0
  br label %465

121:                                              ; No predecessors!
  br label %464

122:                                              ; preds = %97, %90
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %"class.HIR::ItemPath", ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !10
  %126 = getelementptr inbounds %"class.HIR::ItemPath", ptr %125, i32 0, i32 2
  %127 = load ptr, ptr %126, align 8, !tbaa !12
  %128 = icmp ne ptr %127, null
  br i1 %128, label %129, label %229

129:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #0
  %130 = getelementptr inbounds %"struct.typeck::ModuleState", ptr %56, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !14
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %"class.HIR::ItemPath", ptr %132, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !10
  %135 = getelementptr inbounds %"class.HIR::ItemPath", ptr %134, i32 0, i32 2
  %136 = load ptr, ptr %135, align 8, !tbaa !12
  %137 = call noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3HIR5Crate17get_trait_by_pathERK4SpanRKNS_10SimplePathE(ptr noundef nonnull align 8 dereferenceable(944) %131, ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp, ptr noundef nonnull align 8 dereferenceable(8) %136)
  store ptr %137, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #0
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  %139 = getelementptr inbounds %"class.HIR::Trait", ptr %138, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #0
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %"class.HIR::ItemPath", ptr %140, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !24
  call void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef %142)
  %143 = invoke noundef nonnull align 8 dereferenceable(368) ptr @_ZNKSt13unordered_mapI8RcStringN3HIR14TraitValueItemESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S2_EEE2atERS8_(ptr noundef nonnull align 8 dereferenceable(56) %139, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %144 unwind label %149

144:                                              ; preds = %129
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #0
  store ptr %143, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #0
  store i8 1, ptr %17, align 1, !tbaa !25
  br label %145

145:                                              ; preds = %227, %144
  %146 = load i8, ptr %17, align 1, !tbaa !25, !range !27, !noundef !28
  %147 = trunc i8 %146 to i1
  br i1 %147, label %153, label %148

148:                                              ; preds = %145
  store i32 6, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #0
  br label %228

149:                                              ; preds = %129
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %5, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %6, align 4
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #0
  br label %465

153:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #0
  %154 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %154, ptr %19, align 8, !tbaa !5
  br label %155

155:                                              ; preds = %225, %153
  %156 = load i8, ptr %17, align 1, !tbaa !25, !range !27, !noundef !28
  %157 = trunc i8 %156 to i1
  br i1 %157, label %159, label %158

158:                                              ; preds = %155
  store i32 9, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #0
  br label %226

159:                                              ; preds = %155
  %160 = load ptr, ptr %19, align 8, !tbaa !5
  %161 = call noundef i32 @_ZNK3HIR14TraitValueItem3tagEv(ptr noundef nonnull align 8 dereferenceable(368) %160)
  switch i32 %161, label %224 [
    i32 0, label %162
    i32 3, label %163
    i32 1, label %184
    i32 2, label %205
  ]

162:                                              ; preds = %159
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 65, ptr noundef @__PRETTY_FUNCTION__._ZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathE) #8
  unreachable

163:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #0
  store i8 1, ptr %20, align 1, !tbaa !25
  br label %164

164:                                              ; preds = %182, %163
  %165 = load i8, ptr %20, align 1, !tbaa !25, !range !27, !noundef !28
  %166 = trunc i8 %165 to i1
  br i1 %166, label %168, label %167

167:                                              ; preds = %164
  store i32 13, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #0
  br label %183

168:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #0
  %169 = load ptr, ptr %19, align 8, !tbaa !5
  %170 = call noundef nonnull align 8 dereferenceable(352) ptr @_ZNK3HIR14TraitValueItem11as_FunctionEv(ptr noundef nonnull align 8 dereferenceable(368) %169)
  store ptr %170, ptr %21, align 8, !tbaa !5
  br label %171

171:                                              ; preds = %180, %168
  %172 = load ptr, ptr %21, align 8, !tbaa !5
  %173 = load i8, ptr %20, align 1, !tbaa !25, !range !27, !noundef !28
  %174 = trunc i8 %173 to i1
  br i1 %174, label %176, label %175

175:                                              ; preds = %171
  store i32 16, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #0
  br label %181

176:                                              ; preds = %171
  %177 = load ptr, ptr %21, align 8, !tbaa !5
  %178 = getelementptr inbounds %"class.HIR::Function", ptr %177, i32 0, i32 7
  %179 = getelementptr inbounds %"struct.typeck::ModuleState", ptr %56, i32 0, i32 3
  store ptr %178, ptr %179, align 8, !tbaa !29
  br label %180

180:                                              ; preds = %176
  store i8 0, ptr %20, align 1, !tbaa !25
  br label %171, !llvm.loop !30

181:                                              ; preds = %175
  br label %182

182:                                              ; preds = %181
  store i8 0, ptr %20, align 1, !tbaa !25
  br label %164, !llvm.loop !32

183:                                              ; preds = %167
  br label %224

184:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #0
  store i8 1, ptr %22, align 1, !tbaa !25
  br label %185

185:                                              ; preds = %203, %184
  %186 = load i8, ptr %22, align 1, !tbaa !25, !range !27, !noundef !28
  %187 = trunc i8 %186 to i1
  br i1 %187, label %189, label %188

188:                                              ; preds = %185
  store i32 19, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #0
  br label %204

189:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #0
  %190 = load ptr, ptr %19, align 8, !tbaa !5
  %191 = call noundef nonnull align 8 dereferenceable(280) ptr @_ZNK3HIR14TraitValueItem11as_ConstantEv(ptr noundef nonnull align 8 dereferenceable(368) %190)
  store ptr %191, ptr %23, align 8, !tbaa !5
  br label %192

192:                                              ; preds = %201, %189
  %193 = load ptr, ptr %23, align 8, !tbaa !5
  %194 = load i8, ptr %22, align 1, !tbaa !25, !range !27, !noundef !28
  %195 = trunc i8 %194 to i1
  br i1 %195, label %197, label %196

196:                                              ; preds = %192
  store i32 22, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #0
  br label %202

197:                                              ; preds = %192
  %198 = load ptr, ptr %23, align 8, !tbaa !5
  %199 = getelementptr inbounds %"class.HIR::Constant", ptr %198, i32 0, i32 0
  %200 = getelementptr inbounds %"struct.typeck::ModuleState", ptr %56, i32 0, i32 3
  store ptr %199, ptr %200, align 8, !tbaa !29
  br label %201

201:                                              ; preds = %197
  store i8 0, ptr %22, align 1, !tbaa !25
  br label %192, !llvm.loop !33

202:                                              ; preds = %196
  br label %203

203:                                              ; preds = %202
  store i8 0, ptr %22, align 1, !tbaa !25
  br label %185, !llvm.loop !34

204:                                              ; preds = %188
  br label %224

205:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #0
  store i8 1, ptr %24, align 1, !tbaa !25
  br label %206

206:                                              ; preds = %222, %205
  %207 = load i8, ptr %24, align 1, !tbaa !25, !range !27, !noundef !28
  %208 = trunc i8 %207 to i1
  br i1 %208, label %210, label %209

209:                                              ; preds = %206
  store i32 25, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #0
  br label %223

210:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #0
  %211 = load ptr, ptr %19, align 8, !tbaa !5
  %212 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZNK3HIR14TraitValueItem9as_StaticEv(ptr noundef nonnull align 8 dereferenceable(368) %211)
  store ptr %212, ptr %25, align 8, !tbaa !5
  br label %213

213:                                              ; preds = %220, %210
  %214 = load ptr, ptr %25, align 8, !tbaa !5
  %215 = load i8, ptr %24, align 1, !tbaa !25, !range !27, !noundef !28
  %216 = trunc i8 %215 to i1
  br i1 %216, label %218, label %217

217:                                              ; preds = %213
  store i32 28, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #0
  br label %221

218:                                              ; preds = %213
  %219 = getelementptr inbounds %"struct.typeck::ModuleState", ptr %56, i32 0, i32 3
  store ptr null, ptr %219, align 8, !tbaa !29
  br label %220

220:                                              ; preds = %218
  store i8 0, ptr %24, align 1, !tbaa !25
  br label %213, !llvm.loop !35

221:                                              ; preds = %217
  br label %222

222:                                              ; preds = %221
  store i8 0, ptr %24, align 1, !tbaa !25
  br label %206, !llvm.loop !36

223:                                              ; preds = %209
  br label %224

224:                                              ; preds = %223, %204, %183, %159
  br label %225

225:                                              ; preds = %224
  store i8 0, ptr %17, align 1, !tbaa !25
  br label %155, !llvm.loop !37

226:                                              ; preds = %158
  br label %227

227:                                              ; preds = %226
  store i8 0, ptr %17, align 1, !tbaa !25
  br label %145, !llvm.loop !38

228:                                              ; preds = %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #0
  br label %463

229:                                              ; preds = %122
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = getelementptr inbounds %"class.HIR::ItemPath", ptr %230, i32 0, i32 0
  %232 = load ptr, ptr %231, align 8, !tbaa !10
  %233 = getelementptr inbounds %"class.HIR::ItemPath", ptr %232, i32 0, i32 1
  %234 = load ptr, ptr %233, align 8, !tbaa !13
  %235 = icmp ne ptr %234, null
  br i1 %235, label %236, label %254

236:                                              ; preds = %229
  br label %237

237:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #0
  store ptr @__func__._ZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathE, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #0
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp)
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #0
  %238 = getelementptr inbounds %class.anon.267, ptr %29, i32 0, i32 0
  store ptr %26, ptr %238, align 8, !tbaa !5
  %239 = getelementptr inbounds %class.anon.267, ptr %29, i32 0, i32 1
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %240, ptr %239, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(16) %29) #0
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef %28)
          to label %241 unwind label %244

241:                                              ; preds = %237
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #0
  %242 = call ptr @__cxa_allocate_exception(i64 16) #0
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %242, ptr noundef @.str.1)
          to label %243 unwind label %248

243:                                              ; preds = %241
  call void @__cxa_throw(ptr %242, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #7
  unreachable

244:                                              ; preds = %237
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %5, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %6, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #0
  br label %252

248:                                              ; preds = %241
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %5, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %6, align 4
  call void @__cxa_free_exception(ptr %242) #0
  br label %252

252:                                              ; preds = %248, %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #0
  br label %465

253:                                              ; No predecessors!
  br label %462

254:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #0
  %255 = getelementptr inbounds %"struct.typeck::ModuleState", ptr %56, i32 0, i32 0
  %256 = load ptr, ptr %255, align 8, !tbaa !14
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = getelementptr inbounds %"class.HIR::ItemPath", ptr %257, i32 0, i32 0
  %259 = load ptr, ptr %258, align 8, !tbaa !10
  %260 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEEN1H14get_mod_for_ipERKNS1_5CrateES4_(ptr noundef nonnull align 8 dereferenceable(944) %256, ptr noundef nonnull align 8 dereferenceable(56) %259)
  store ptr %260, ptr %30, align 8, !tbaa !5
  %261 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEEN1H19add_traits_from_modERS0_RKNS1_6ModuleE(ptr noundef nonnull align 8 dereferenceable(80) %56, ptr noundef nonnull align 8 dereferenceable(216) %261)
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #0
  %262 = load ptr, ptr %30, align 8, !tbaa !5
  %263 = getelementptr inbounds %"class.HIR::Module", ptr %262, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #0
  %264 = load ptr, ptr %4, align 8, !tbaa !5
  %265 = getelementptr inbounds %"class.HIR::ItemPath", ptr %264, i32 0, i32 4
  %266 = load ptr, ptr %265, align 8, !tbaa !24
  call void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef %266)
  %267 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt13unordered_mapI8RcStringSt10unique_ptrIN3HIR6VisEntINS2_9ValueItemEEESt14default_deleteIS5_EESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S8_EEE2atERSE_(ptr noundef nonnull align 8 dereferenceable(56) %263, ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %268 unwind label %276

268:                                              ; preds = %254
  %269 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR6VisEntINS0_9ValueItemEEESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %267) #0
  %270 = getelementptr inbounds %"struct.HIR::VisEnt", ptr %269, i32 0, i32 1
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #0
  store ptr %270, ptr %31, align 8, !tbaa !5
  %271 = getelementptr inbounds %"struct.typeck::ModuleState", ptr %56, i32 0, i32 2
  store ptr null, ptr %271, align 8, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #0
  store i8 1, ptr %33, align 1, !tbaa !25
  br label %272

272:                                              ; preds = %459, %268
  %273 = load i8, ptr %33, align 1, !tbaa !25, !range !27, !noundef !28
  %274 = trunc i8 %273 to i1
  br i1 %274, label %280, label %275

275:                                              ; preds = %272
  store i32 33, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #0
  br label %460

276:                                              ; preds = %254
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %5, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %6, align 4
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #0
  br label %461

280:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #0
  %281 = load ptr, ptr %31, align 8, !tbaa !5
  store ptr %281, ptr %34, align 8, !tbaa !5
  br label %282

282:                                              ; preds = %456, %280
  %283 = load i8, ptr %33, align 1, !tbaa !25, !range !27, !noundef !28
  %284 = trunc i8 %283 to i1
  br i1 %284, label %286, label %285

285:                                              ; preds = %282
  store i32 36, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #0
  br label %458

286:                                              ; preds = %282
  %287 = load ptr, ptr %34, align 8, !tbaa !5
  %288 = call noundef i32 @_ZNK3HIR9ValueItem3tagEv(ptr noundef nonnull align 8 dereferenceable(368) %287)
  switch i32 %288, label %455 [
    i32 0, label %289
    i32 2, label %290
    i32 3, label %311
    i32 5, label %329
    i32 4, label %350
    i32 6, label %385
    i32 1, label %420
  ]

289:                                              ; preds = %286
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 89, ptr noundef @__PRETTY_FUNCTION__._ZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathE) #8
  unreachable

290:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #0
  store i8 1, ptr %35, align 1, !tbaa !25
  br label %291

291:                                              ; preds = %309, %290
  %292 = load i8, ptr %35, align 1, !tbaa !25, !range !27, !noundef !28
  %293 = trunc i8 %292 to i1
  br i1 %293, label %295, label %294

294:                                              ; preds = %291
  store i32 40, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #0
  br label %310

295:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #0
  %296 = load ptr, ptr %34, align 8, !tbaa !5
  %297 = call noundef nonnull align 8 dereferenceable(280) ptr @_ZNK3HIR9ValueItem11as_ConstantEv(ptr noundef nonnull align 8 dereferenceable(368) %296)
  store ptr %297, ptr %36, align 8, !tbaa !5
  br label %298

298:                                              ; preds = %307, %295
  %299 = load ptr, ptr %36, align 8, !tbaa !5
  %300 = load i8, ptr %35, align 1, !tbaa !25, !range !27, !noundef !28
  %301 = trunc i8 %300 to i1
  br i1 %301, label %303, label %302

302:                                              ; preds = %298
  store i32 43, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #0
  br label %308

303:                                              ; preds = %298
  %304 = load ptr, ptr %36, align 8, !tbaa !5
  %305 = getelementptr inbounds %"class.HIR::Constant", ptr %304, i32 0, i32 0
  %306 = getelementptr inbounds %"struct.typeck::ModuleState", ptr %56, i32 0, i32 3
  store ptr %305, ptr %306, align 8, !tbaa !29
  br label %307

307:                                              ; preds = %303
  store i8 0, ptr %35, align 1, !tbaa !25
  br label %298, !llvm.loop !40

308:                                              ; preds = %302
  br label %309

309:                                              ; preds = %308
  store i8 0, ptr %35, align 1, !tbaa !25
  br label %291, !llvm.loop !41

310:                                              ; preds = %294
  br label %455

311:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #0
  store i8 1, ptr %37, align 1, !tbaa !25
  br label %312

312:                                              ; preds = %327, %311
  %313 = load i8, ptr %37, align 1, !tbaa !25, !range !27, !noundef !28
  %314 = trunc i8 %313 to i1
  br i1 %314, label %316, label %315

315:                                              ; preds = %312
  store i32 46, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #0
  br label %328

316:                                              ; preds = %312
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #0
  %317 = load ptr, ptr %34, align 8, !tbaa !5
  %318 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZNK3HIR9ValueItem9as_StaticEv(ptr noundef nonnull align 8 dereferenceable(368) %317)
  store ptr %318, ptr %38, align 8, !tbaa !5
  br label %319

319:                                              ; preds = %325, %316
  %320 = load ptr, ptr %38, align 8, !tbaa !5
  %321 = load i8, ptr %37, align 1, !tbaa !25, !range !27, !noundef !28
  %322 = trunc i8 %321 to i1
  br i1 %322, label %324, label %323

323:                                              ; preds = %319
  store i32 49, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #0
  br label %326

324:                                              ; preds = %319
  br label %325

325:                                              ; preds = %324
  store i8 0, ptr %37, align 1, !tbaa !25
  br label %319, !llvm.loop !42

326:                                              ; preds = %323
  br label %327

327:                                              ; preds = %326
  store i8 0, ptr %37, align 1, !tbaa !25
  br label %312, !llvm.loop !43

328:                                              ; preds = %315
  br label %455

329:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #0
  store i8 1, ptr %39, align 1, !tbaa !25
  br label %330

330:                                              ; preds = %348, %329
  %331 = load i8, ptr %39, align 1, !tbaa !25, !range !27, !noundef !28
  %332 = trunc i8 %331 to i1
  br i1 %332, label %334, label %333

333:                                              ; preds = %330
  store i32 52, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #0
  br label %349

334:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #0
  %335 = load ptr, ptr %34, align 8, !tbaa !5
  %336 = call noundef nonnull align 8 dereferenceable(352) ptr @_ZNK3HIR9ValueItem11as_FunctionEv(ptr noundef nonnull align 8 dereferenceable(368) %335)
  store ptr %336, ptr %40, align 8, !tbaa !5
  br label %337

337:                                              ; preds = %346, %334
  %338 = load ptr, ptr %40, align 8, !tbaa !5
  %339 = load i8, ptr %39, align 1, !tbaa !25, !range !27, !noundef !28
  %340 = trunc i8 %339 to i1
  br i1 %340, label %342, label %341

341:                                              ; preds = %337
  store i32 55, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #0
  br label %347

342:                                              ; preds = %337
  %343 = load ptr, ptr %40, align 8, !tbaa !5
  %344 = getelementptr inbounds %"class.HIR::Function", ptr %343, i32 0, i32 7
  %345 = getelementptr inbounds %"struct.typeck::ModuleState", ptr %56, i32 0, i32 3
  store ptr %344, ptr %345, align 8, !tbaa !29
  br label %346

346:                                              ; preds = %342
  store i8 0, ptr %39, align 1, !tbaa !25
  br label %337, !llvm.loop !44

347:                                              ; preds = %341
  br label %348

348:                                              ; preds = %347
  store i8 0, ptr %39, align 1, !tbaa !25
  br label %330, !llvm.loop !45

349:                                              ; preds = %333
  br label %455

350:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 1, ptr %41) #0
  store i8 1, ptr %41, align 1, !tbaa !25
  br label %351

351:                                              ; preds = %383, %350
  %352 = load i8, ptr %41, align 1, !tbaa !25, !range !27, !noundef !28
  %353 = trunc i8 %352 to i1
  br i1 %353, label %355, label %354

354:                                              ; preds = %351
  store i32 58, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #0
  br label %384

355:                                              ; preds = %351
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #0
  %356 = load ptr, ptr %34, align 8, !tbaa !5
  %357 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR9ValueItem17as_StructConstantEv(ptr noundef nonnull align 8 dereferenceable(368) %356)
  store ptr %357, ptr %42, align 8, !tbaa !5
  br label %358

358:                                              ; preds = %380, %355
  %359 = load ptr, ptr %42, align 8, !tbaa !5
  %360 = load i8, ptr %41, align 1, !tbaa !25, !range !27, !noundef !28
  %361 = trunc i8 %360 to i1
  br i1 %361, label %363, label %362

362:                                              ; preds = %358
  store i32 61, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #0
  br label %382

363:                                              ; preds = %358
  br label %364

364:                                              ; preds = %363
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #0
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp)
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #0
  %365 = getelementptr inbounds %class.anon.270, ptr %45, i32 0, i32 0
  %366 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %366, ptr %365, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull align 8 dereferenceable(8) %45) #0
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef %44)
          to label %367 unwind label %370

367:                                              ; preds = %364
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %43) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #0
  %368 = call ptr @__cxa_allocate_exception(i64 16) #0
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %368, ptr noundef @.str)
          to label %369 unwind label %374

369:                                              ; preds = %367
  call void @__cxa_throw(ptr %368, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #7
  unreachable

370:                                              ; preds = %364
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %5, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %6, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %43) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #0
  br label %381

374:                                              ; preds = %367
  %375 = landingpad { ptr, i32 }
          cleanup
  %376 = extractvalue { ptr, i32 } %375, 0
  store ptr %376, ptr %5, align 8
  %377 = extractvalue { ptr, i32 } %375, 1
  store i32 %377, ptr %6, align 4
  call void @__cxa_free_exception(ptr %368) #0
  br label %381

378:                                              ; No predecessors!
  br label %379

379:                                              ; preds = %378
  br label %380

380:                                              ; preds = %379
  store i8 0, ptr %41, align 1, !tbaa !25
  br label %358, !llvm.loop !46

381:                                              ; preds = %374, %370
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #0
  br label %457

382:                                              ; preds = %362
  br label %383

383:                                              ; preds = %382
  store i8 0, ptr %41, align 1, !tbaa !25
  br label %351, !llvm.loop !47

384:                                              ; preds = %354
  br label %455

385:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #0
  store i8 1, ptr %46, align 1, !tbaa !25
  br label %386

386:                                              ; preds = %418, %385
  %387 = load i8, ptr %46, align 1, !tbaa !25, !range !27, !noundef !28
  %388 = trunc i8 %387 to i1
  br i1 %388, label %390, label %389

389:                                              ; preds = %386
  store i32 66, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #0
  br label %419

390:                                              ; preds = %386
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #0
  %391 = load ptr, ptr %34, align 8, !tbaa !5
  %392 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR9ValueItem20as_StructConstructorEv(ptr noundef nonnull align 8 dereferenceable(368) %391)
  store ptr %392, ptr %47, align 8, !tbaa !5
  br label %393

393:                                              ; preds = %415, %390
  %394 = load ptr, ptr %47, align 8, !tbaa !5
  %395 = load i8, ptr %46, align 1, !tbaa !25, !range !27, !noundef !28
  %396 = trunc i8 %395 to i1
  br i1 %396, label %398, label %397

397:                                              ; preds = %393
  store i32 69, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #0
  br label %417

398:                                              ; preds = %393
  br label %399

399:                                              ; preds = %398
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #0
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp)
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #0
  %400 = getelementptr inbounds %class.anon.271, ptr %50, i32 0, i32 0
  %401 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %401, ptr %400, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull align 8 dereferenceable(8) %50) #0
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef %49)
          to label %402 unwind label %405

402:                                              ; preds = %399
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %48) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #0
  %403 = call ptr @__cxa_allocate_exception(i64 16) #0
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %403, ptr noundef @.str)
          to label %404 unwind label %409

404:                                              ; preds = %402
  call void @__cxa_throw(ptr %403, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #7
  unreachable

405:                                              ; preds = %399
  %406 = landingpad { ptr, i32 }
          cleanup
  %407 = extractvalue { ptr, i32 } %406, 0
  store ptr %407, ptr %5, align 8
  %408 = extractvalue { ptr, i32 } %406, 1
  store i32 %408, ptr %6, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %48) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #0
  br label %416

409:                                              ; preds = %402
  %410 = landingpad { ptr, i32 }
          cleanup
  %411 = extractvalue { ptr, i32 } %410, 0
  store ptr %411, ptr %5, align 8
  %412 = extractvalue { ptr, i32 } %410, 1
  store i32 %412, ptr %6, align 4
  call void @__cxa_free_exception(ptr %403) #0
  br label %416

413:                                              ; No predecessors!
  br label %414

414:                                              ; preds = %413
  br label %415

415:                                              ; preds = %414
  store i8 0, ptr %46, align 1, !tbaa !25
  br label %393, !llvm.loop !48

416:                                              ; preds = %409, %405
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #0
  br label %457

417:                                              ; preds = %397
  br label %418

418:                                              ; preds = %417
  store i8 0, ptr %46, align 1, !tbaa !25
  br label %386, !llvm.loop !49

419:                                              ; preds = %389
  br label %455

420:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 1, ptr %51) #0
  store i8 1, ptr %51, align 1, !tbaa !25
  br label %421

421:                                              ; preds = %453, %420
  %422 = load i8, ptr %51, align 1, !tbaa !25, !range !27, !noundef !28
  %423 = trunc i8 %422 to i1
  br i1 %423, label %425, label %424

424:                                              ; preds = %421
  store i32 74, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #0
  br label %454

425:                                              ; preds = %421
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #0
  %426 = load ptr, ptr %34, align 8, !tbaa !5
  %427 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR9ValueItem9as_ImportEv(ptr noundef nonnull align 8 dereferenceable(368) %426)
  store ptr %427, ptr %52, align 8, !tbaa !5
  br label %428

428:                                              ; preds = %450, %425
  %429 = load ptr, ptr %52, align 8, !tbaa !5
  %430 = load i8, ptr %51, align 1, !tbaa !25, !range !27, !noundef !28
  %431 = trunc i8 %430 to i1
  br i1 %431, label %433, label %432

432:                                              ; preds = %428
  store i32 77, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #0
  br label %452

433:                                              ; preds = %428
  br label %434

434:                                              ; preds = %433
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #0
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp)
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #0
  %435 = getelementptr inbounds %class.anon.272, ptr %55, i32 0, i32 0
  %436 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %436, ptr %435, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %54, ptr noundef nonnull align 8 dereferenceable(8) %55) #0
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef %54)
          to label %437 unwind label %440

437:                                              ; preds = %434
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %53) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #0
  %438 = call ptr @__cxa_allocate_exception(i64 16) #0
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %438, ptr noundef @.str)
          to label %439 unwind label %444

439:                                              ; preds = %437
  call void @__cxa_throw(ptr %438, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #7
  unreachable

440:                                              ; preds = %434
  %441 = landingpad { ptr, i32 }
          cleanup
  %442 = extractvalue { ptr, i32 } %441, 0
  store ptr %442, ptr %5, align 8
  %443 = extractvalue { ptr, i32 } %441, 1
  store i32 %443, ptr %6, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %53) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #0
  br label %451

444:                                              ; preds = %437
  %445 = landingpad { ptr, i32 }
          cleanup
  %446 = extractvalue { ptr, i32 } %445, 0
  store ptr %446, ptr %5, align 8
  %447 = extractvalue { ptr, i32 } %445, 1
  store i32 %447, ptr %6, align 4
  call void @__cxa_free_exception(ptr %438) #0
  br label %451

448:                                              ; No predecessors!
  br label %449

449:                                              ; preds = %448
  br label %450

450:                                              ; preds = %449
  store i8 0, ptr %51, align 1, !tbaa !25
  br label %428, !llvm.loop !50

451:                                              ; preds = %444, %440
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #0
  br label %457

452:                                              ; preds = %432
  br label %453

453:                                              ; preds = %452
  store i8 0, ptr %51, align 1, !tbaa !25
  br label %421, !llvm.loop !51

454:                                              ; preds = %424
  br label %455

455:                                              ; preds = %454, %419, %384, %349, %328, %310, %286
  br label %456

456:                                              ; preds = %455
  store i8 0, ptr %33, align 1, !tbaa !25
  br label %282, !llvm.loop !52

457:                                              ; preds = %451, %416, %381
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #0
  br label %461

458:                                              ; preds = %285
  br label %459

459:                                              ; preds = %458
  store i8 0, ptr %33, align 1, !tbaa !25
  br label %272, !llvm.loop !53

460:                                              ; preds = %275
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #0
  br label %462

461:                                              ; preds = %457, %276
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #0
  br label %465

462:                                              ; preds = %460, %253
  br label %463

463:                                              ; preds = %462, %228
  br label %464

464:                                              ; preds = %463, %121
  ret void

465:                                              ; preds = %461, %252, %149, %120, %85, %81, %77
  %466 = load ptr, ptr %5, align 8
  %467 = load i32, ptr %6, align 4
  %468 = insertvalue { ptr, i32 } poison, ptr %466, 0
  %469 = insertvalue { ptr, i32 } %468, i32 %467, 1
  resume { ptr, i32 } %469
}

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #0

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

declare noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3HIR5Crate17get_trait_by_pathERK4SpanRKNS_10SimplePathE(ptr noundef nonnull align 8 dereferenceable(944), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(368) ptr @_ZNKSt13unordered_mapI8RcStringN3HIR14TraitValueItemESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S2_EEE2atERS8_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(216) ptr @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEEN1H14get_mod_for_ipERKNS1_5CrateES4_(ptr noundef nonnull align 8 dereferenceable(944), ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEEN1H19add_traits_from_modERS0_RKNS1_6ModuleE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(216)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt13unordered_mapI8RcStringSt10unique_ptrIN3HIR6VisEntINS2_9ValueItemEEESt14default_deleteIS5_EESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S8_EEE2atERSE_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { nounwind }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { noreturn }
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 = !{!"branch_weights", i32 1, i32 1048575}
!10 = !{!11, !6, i64 0}
!11 = !{!"_ZTSN3HIR8ItemPathE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!12 = !{!11, !6, i64 16}
!13 = !{!11, !6, i64 8}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSN6typeck11ModuleStateE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !16, i64 32, !20, i64 56}
!16 = !{!"_ZTSSt6vectorISt4pairIPKN3HIR10SimplePathEPKNS1_5TraitEESaIS8_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseISt4pairIPKN3HIR10SimplePathEPKNS1_5TraitEESaIS8_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseISt4pairIPKN3HIR10SimplePathEPKNS1_5TraitEESaIS8_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt4pairIPKN3HIR10SimplePathEPKNS1_5TraitEESaIS8_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorIN3HIR10SimplePathESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN3HIR10SimplePathESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN3HIR10SimplePathESaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN3HIR10SimplePathESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!11, !6, i64 32}
!25 = !{!26, !26, i64 0}
!26 = !{!"bool", !7, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!15, !6, i64 24}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = distinct !{!33, !31}
!34 = distinct !{!34, !31}
!35 = distinct !{!35, !31}
!36 = distinct !{!36, !31}
!37 = distinct !{!37, !31}
!38 = distinct !{!38, !31}
!39 = !{!15, !6, i64 16}
!40 = distinct !{!40, !31}
!41 = distinct !{!41, !31}
!42 = distinct !{!42, !31}
!43 = distinct !{!43, !31}
!44 = distinct !{!44, !31}
!45 = distinct !{!45, !31}
!46 = distinct !{!46, !31}
!47 = distinct !{!47, !31}
!48 = distinct !{!48, !31}
!49 = distinct !{!49, !31}
!50 = distinct !{!50, !31}
!51 = distinct !{!51, !31}
!52 = distinct !{!52, !31}
!53 = distinct !{!53, !31}


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

%struct.Span = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr }
%class.anon.15 = type { ptr, ptr }
%class.RcString = type { ptr }
%class.anon.267 = type { ptr, ptr }
%class.anon.270 = type { ptr }
%class.anon.271 = type { ptr }
%class.anon.272 = type { ptr }

@__dso_handle = external hidden global i8
@_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp = external hidden global %struct.Span, align 8
@_ZGVZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp = external hidden global i64, align 8
@.str = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@__func__._ZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathE = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [84 x i8], align 1
@__PRETTY_FUNCTION__._ZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathE = external hidden unnamed_addr constant [69 x i8], align 1

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathE(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %struct.Span, align 8
  %4 = alloca %"class.std::function", align 8
  %5 = alloca %class.anon, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.Span, align 8
  %8 = alloca %"class.std::function", align 8
  %9 = alloca %class.anon.15, align 8
  %10 = alloca %class.RcString, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.Span, align 8
  %13 = alloca %"class.std::function", align 8
  %14 = alloca %class.anon.267, align 8
  %15 = alloca %class.RcString, align 8
  %16 = alloca %struct.Span, align 8
  %17 = alloca %"class.std::function", align 8
  %18 = alloca %class.anon.270, align 8
  %19 = alloca %struct.Span, align 8
  %20 = alloca %"class.std::function", align 8
  %21 = alloca %class.anon.271, align 8
  %22 = alloca %struct.Span, align 8
  %23 = alloca %"class.std::function", align 8
  %24 = alloca %class.anon.272, align 8
  %25 = load atomic i8, ptr @_ZGVZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp acquire, align 8
  %26 = icmp eq i8 %25, 0
  br i1 %26, label %27, label %31, !prof !5

27:                                               ; preds = %2
  %28 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp) #7
  %.not = icmp eq i32 %28, 0
  br i1 %.not, label %31, label %29

29:                                               ; preds = %27
  tail call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp)
  %30 = tail call i32 @__cxa_atexit(ptr nonnull @_ZN4SpanD1Ev, ptr nonnull @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp, ptr nonnull @__dso_handle) #7
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp) #7
  br label %31

31:                                               ; preds = %2, %27, %29
  %32 = load ptr, ptr %1, align 8, !tbaa !6
  %.not97 = icmp eq ptr %32, null
  br i1 %.not97, label %33, label %41

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store ptr %1, ptr %5, align 8, !tbaa !11
  call void @"_ZNSt8functionIFvRSoEEC2IZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull %4)
          to label %34 unwind label %37

34:                                               ; preds = %33
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %35 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull @.str)
          to label %36 unwind label %39

36:                                               ; preds = %34
  call void @__cxa_throw(ptr nonnull %35, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

37:                                               ; preds = %33
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %125

39:                                               ; preds = %34
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %35) #7
  br label %125

41:                                               ; preds = %31
  %42 = getelementptr inbounds i8, ptr %32, i64 16
  %43 = load ptr, ptr %42, align 8, !tbaa !12
  %.not98 = icmp eq ptr %43, null
  %44 = getelementptr inbounds i8, ptr %32, i64 8
  %45 = load ptr, ptr %44, align 8, !tbaa !13
  %.not101 = icmp eq ptr %45, null
  br i1 %.not98, label %72, label %46

46:                                               ; preds = %41
  br i1 %.not101, label %57, label %47

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  store ptr @__func__._ZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathE, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  store ptr %6, ptr %9, align 8, !tbaa !11
  %48 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %1, ptr %48, align 8, !tbaa !11
  call void @"_ZNSt8functionIFvRSoEEC2IZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull %8)
          to label %49 unwind label %52

49:                                               ; preds = %47
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %50 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull @.str.1)
          to label %51 unwind label %54

51:                                               ; preds = %49
  call void @__cxa_throw(ptr nonnull %50, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

52:                                               ; preds = %47
  %53 = 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 16, ptr nonnull %9) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %56

54:                                               ; preds = %49
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %50) #7
  br label %56

56:                                               ; preds = %54, %52
  %.pn111 = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %125

57:                                               ; preds = %46
  %58 = load ptr, ptr %0, align 8, !tbaa !14
  %59 = tail call noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3HIR5Crate17get_trait_by_pathERK4SpanRKNS_10SimplePathE(ptr noundef nonnull align 8 dereferenceable(944) %58, ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp, ptr noundef nonnull align 8 dereferenceable(8) %43)
  %60 = getelementptr inbounds i8, ptr %59, i64 192
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %61 = getelementptr inbounds i8, ptr %1, i64 32
  %62 = load ptr, ptr %61, align 8, !tbaa !24
  call void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %62)
  %63 = invoke noundef nonnull align 8 dereferenceable(368) ptr @_ZNKSt13unordered_mapI8RcStringN3HIR14TraitValueItemESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S2_EEE2atERS8_(ptr noundef nonnull align 8 dereferenceable(56) %60, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %.lr.ph unwind label %66

.lr.ph:                                           ; preds = %57
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  %64 = getelementptr inbounds i8, ptr %0, i64 24
  %65 = call noundef i32 @_ZNK3HIR14TraitValueItem3tagEv(ptr noundef nonnull align 8 dereferenceable(368) %63)
  switch i32 %65, label %.loopexit123 [
    i32 0, label %.split
    i32 3, label %.preheader127
    i32 1, label %.preheader129
    i32 2, label %.preheader131
  ]

66:                                               ; preds = %57
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %125

.preheader131:                                    ; preds = %.lr.ph
  %68 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZNK3HIR14TraitValueItem9as_StaticEv(ptr noundef nonnull align 8 dereferenceable(368) %63)
  store ptr null, ptr %64, align 8, !tbaa !25
  br label %.loopexit123

.preheader129:                                    ; preds = %.lr.ph
  %69 = call noundef nonnull align 8 dereferenceable(280) ptr @_ZNK3HIR14TraitValueItem11as_ConstantEv(ptr noundef nonnull align 8 dereferenceable(368) %63)
  store ptr %69, ptr %64, align 8, !tbaa !25
  br label %.loopexit123

.preheader127:                                    ; preds = %.lr.ph
  %70 = call noundef nonnull align 8 dereferenceable(352) ptr @_ZNK3HIR14TraitValueItem11as_FunctionEv(ptr noundef nonnull align 8 dereferenceable(368) %63)
  %71 = getelementptr inbounds i8, ptr %70, i64 112
  store ptr %71, ptr %64, align 8, !tbaa !25
  br label %.loopexit123

.split:                                           ; preds = %.lr.ph
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 65, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathE) #9
  unreachable

72:                                               ; preds = %41
  br i1 %.not101, label %83, label %73

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  store ptr @__func__._ZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathE, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  store ptr %11, ptr %14, align 8, !tbaa !11
  %74 = getelementptr inbounds i8, ptr %14, i64 8
  store ptr %1, ptr %74, align 8, !tbaa !11
  call void @"_ZNSt8functionIFvRSoEEC2IZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull %13)
          to label %75 unwind label %78

75:                                               ; preds = %73
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  %76 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %76, ptr noundef nonnull @.str.1)
          to label %77 unwind label %80

77:                                               ; preds = %75
  call void @__cxa_throw(ptr nonnull %76, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

78:                                               ; preds = %73
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %82

80:                                               ; preds = %75
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %76) #7
  br label %82

82:                                               ; preds = %80, %78
  %.pn109 = phi { ptr, i32 } [ %81, %80 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %125

83:                                               ; preds = %72
  %84 = load ptr, ptr %0, align 8, !tbaa !14
  %85 = tail call noundef nonnull align 8 dereferenceable(216) ptr @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEEN1H14get_mod_for_ipERKNS1_5CrateES4_(ptr noundef nonnull align 8 dereferenceable(944) %84, ptr noundef nonnull align 8 dereferenceable(56) %32)
  tail call void @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEEN1H19add_traits_from_modERS0_RKNS1_6ModuleE(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(216) %85)
  %86 = getelementptr inbounds i8, ptr %85, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %87 = getelementptr inbounds i8, ptr %1, i64 32
  %88 = load ptr, ptr %87, align 8, !tbaa !24
  call void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef %88)
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt13unordered_mapI8RcStringSt10unique_ptrIN3HIR6VisEntINS2_9ValueItemEEESt14default_deleteIS5_EESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S8_EEE2atERSE_(ptr noundef nonnull align 8 dereferenceable(56) %86, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %.lr.ph166 unwind label %95

.lr.ph166:                                        ; preds = %83
  %90 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR6VisEntINS0_9ValueItemEEESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %89) #7
  %91 = getelementptr inbounds i8, ptr %90, i64 16
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  %92 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr null, ptr %92, align 8, !tbaa !26
  %93 = getelementptr inbounds i8, ptr %0, i64 24
  %94 = call noundef i32 @_ZNK3HIR9ValueItem3tagEv(ptr noundef nonnull align 8 dereferenceable(368) %91)
  switch i32 %94, label %.loopexit123 [
    i32 0, label %.split170
    i32 2, label %.preheader
    i32 3, label %.preheader117
    i32 5, label %.preheader119
    i32 4, label %.split172
    i32 6, label %.split174
    i32 1, label %.split176
  ]

95:                                               ; preds = %83
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %125

.preheader119:                                    ; preds = %.lr.ph166
  %97 = call noundef nonnull align 8 dereferenceable(352) ptr @_ZNK3HIR9ValueItem11as_FunctionEv(ptr noundef nonnull align 8 dereferenceable(368) %91)
  %98 = getelementptr inbounds i8, ptr %97, i64 112
  store ptr %98, ptr %93, align 8, !tbaa !25
  br label %.loopexit123

.preheader117:                                    ; preds = %.lr.ph166
  %99 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZNK3HIR9ValueItem9as_StaticEv(ptr noundef nonnull align 8 dereferenceable(368) %91)
  br label %.loopexit123

.preheader:                                       ; preds = %.lr.ph166
  %100 = call noundef nonnull align 8 dereferenceable(280) ptr @_ZNK3HIR9ValueItem11as_ConstantEv(ptr noundef nonnull align 8 dereferenceable(368) %91)
  store ptr %100, ptr %93, align 8, !tbaa !25
  br label %.loopexit123

.split170:                                        ; preds = %.lr.ph166
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 89, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathE) #9
  unreachable

.split172:                                        ; preds = %.lr.ph166
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR9ValueItem17as_StructConstantEv(ptr noundef nonnull align 8 dereferenceable(368) %91)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  store ptr %1, ptr %18, align 8, !tbaa !11
  call void @"_ZNSt8functionIFvRSoEEC2IZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull %17)
          to label %102 unwind label %105

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

104:                                              ; preds = %102
  call void @__cxa_throw(ptr nonnull %103, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

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

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

.split174:                                        ; preds = %.lr.ph166
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR9ValueItem20as_StructConstructorEv(ptr noundef nonnull align 8 dereferenceable(368) %91)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  store ptr %1, ptr %21, align 8, !tbaa !11
  call void @"_ZNSt8functionIFvRSoEEC2IZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull %20)
          to label %110 unwind label %113

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

112:                                              ; preds = %110
  call void @__cxa_throw(ptr nonnull %111, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

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

115:                                              ; preds = %110
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %111) #7
  br label %125

.split176:                                        ; preds = %.lr.ph166
  %117 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR9ValueItem9as_ImportEv(ptr noundef nonnull align 8 dereferenceable(368) %91)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE2sp)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  store ptr %1, ptr %24, align 8, !tbaa !11
  call void @"_ZNSt8functionIFvRSoEEC2IZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull %23)
          to label %118 unwind label %121

118:                                              ; preds = %.split176
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  %119 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %119, ptr noundef nonnull @.str)
          to label %120 unwind label %123

120:                                              ; preds = %118
  call void @__cxa_throw(ptr nonnull %119, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

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

123:                                              ; preds = %118
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %119) #7
  br label %125

.loopexit123:                                     ; preds = %.preheader117, %.preheader131, %.preheader129, %.preheader127, %.lr.ph, %.preheader119, %.preheader, %.lr.ph166
  ret void

125:                                              ; preds = %95, %121, %123, %113, %115, %105, %107, %82, %66, %56, %39, %37
  %.pn111.pn = phi { ptr, i32 } [ %.pn111, %56 ], [ %67, %66 ], [ %.pn109, %82 ], [ %40, %39 ], [ %38, %37 ], [ %96, %95 ], [ %108, %107 ], [ %106, %105 ], [ %116, %115 ], [ %114, %113 ], [ %124, %123 ], [ %122, %121 ]
  resume { ptr, i32 } %.pn111.pn
}

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 #5

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

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

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

declare noundef nonnull align 8 dereferenceable(400) ptr @_ZNK3HIR5Crate17get_trait_by_pathERK4SpanRKNS_10SimplePathE(ptr noundef nonnull align 8 dereferenceable(944), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(368) ptr @_ZNKSt13unordered_mapI8RcStringN3HIR14TraitValueItemESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S2_EEE2atERS8_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(216) ptr @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEEN1H14get_mod_for_ipERKNS1_5CrateES4_(ptr noundef nonnull align 8 dereferenceable(944), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN6typeck11ModuleState17prepare_from_pathERKN3HIR8ItemPathEEN1H19add_traits_from_modERS0_RKNS1_6ModuleE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt13unordered_mapI8RcStringSt10unique_ptrIN3HIR6VisEntINS2_9ValueItemEEESt14default_deleteIS5_EESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S8_EEE2atERSE_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { nofree nounwind }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn }
attributes #9 = { 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 = !{!"branch_weights", i32 1, i32 1048575}
!6 = !{!7, !8, i64 0}
!7 = !{!"_ZTSN3HIR8ItemPathE", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!7, !8, i64 16}
!13 = !{!7, !8, i64 8}
!14 = !{!15, !8, i64 0}
!15 = !{!"_ZTSN6typeck11ModuleStateE", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !16, i64 32, !20, i64 56}
!16 = !{!"_ZTSSt6vectorISt4pairIPKN3HIR10SimplePathEPKNS1_5TraitEESaIS8_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseISt4pairIPKN3HIR10SimplePathEPKNS1_5TraitEESaIS8_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseISt4pairIPKN3HIR10SimplePathEPKNS1_5TraitEESaIS8_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt4pairIPKN3HIR10SimplePathEPKNS1_5TraitEESaIS8_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!20 = !{!"_ZTSSt6vectorIN3HIR10SimplePathESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN3HIR10SimplePathESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN3HIR10SimplePathESaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN3HIR10SimplePathESaIS1_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!24 = !{!7, !8, i64 32}
!25 = !{!15, !8, i64 24}
!26 = !{!15, !8, i64 16}


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