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

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

%class.ResolveModuleRef = type { i32, %"union.ResolveModuleRef::DataUnion" }
%"union.ResolveModuleRef::DataUnion" = type { ptr }
%class.ResolveItemRef = type { i32, %"union.ResolveItemRef::DataUnion" }
%"union.ResolveItemRef::DataUnion" = type { %class.ResolveItemRef_Type }
%class.ResolveItemRef_Type = type { i32, %"union.ResolveItemRef_Type::DataUnion" }
%"union.ResolveItemRef_Type::DataUnion" = type { ptr }
%class.TraceLog = type { ptr, %"class.std::function" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.163 = type { ptr, ptr }
%"struct.(anonymous namespace)::ResolveState" = type { ptr, ptr, %"class.std::vector.25" }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<std::pair<const AST::Module *, RcString>, std::allocator<std::pair<const AST::Module *, RcString>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<const AST::Module *, RcString>, std::allocator<std::pair<const AST::Module *, RcString>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<const AST::Module *, RcString>, std::allocator<std::pair<const AST::Module *, RcString>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<const AST::Module *, RcString>, std::allocator<std::pair<const AST::Module *, RcString>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.AST::AbsolutePath" = type { %class.RcString, %"class.std::vector.18" }
%class.RcString = type { ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl" }
%"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl" = type { %"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl_data" }
%"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Span = type { ptr }
%class.anon.164 = type { ptr, ptr }
%class.anon.165 = type { ptr }
%class.anon.166 = type { ptr, ptr }

@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@__func__._Z31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS2_4PathES8_16ResolveNamespacePNS2_12AbsolutePathE = external hidden unnamed_addr constant [32 x i8], align 1
@__PRETTY_FUNCTION__._Z31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS2_4PathES8_16ResolveNamespacePNS2_12AbsolutePathE = external hidden unnamed_addr constant [166 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_112ResolveStateC2ERK4SpanRKN3AST5CrateE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(1112)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_112ResolveState10get_moduleERKN3AST4PathES4_bPNS1_12AbsolutePathEb(ptr dead_on_unwind noalias writable sret(%class.ResolveModuleRef) align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(240), ptr noundef nonnull align 8 dereferenceable(240), i1 noundef zeroext, ptr noundef, i1 noundef zeroext) #2 align 2

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef zeroext i1 @_Z13debug_enabledv() #4

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_112ResolveState9find_itemERKN3AST6ModuleERK8RcString16ResolveNamespacePNS1_12AbsolutePathE(ptr dead_on_unwind noalias writable sret(%class.ResolveItemRef) align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(480), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef) #2 align 2

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

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

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS2_4PathES8_16ResolveNamespacePNS2_12AbsolutePathE(ptr dead_on_unwind noalias writable sret(%class.ResolveModuleRef) align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(1112) %2, ptr noundef nonnull align 8 dereferenceable(240) %3, ptr noundef nonnull align 8 dereferenceable(240) %4, i32 noundef %5, ptr noundef %6) #2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %class.TraceLog, align 8
  %16 = alloca %"class.std::function", align 8
  %17 = alloca %class.anon.163, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"struct.(anonymous namespace)::ResolveState", align 8
  %21 = alloca i1, align 1
  %22 = alloca i8, align 1
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca i8, align 1
  %26 = alloca ptr, align 8
  %27 = alloca %"struct.AST::AbsolutePath", align 8
  %28 = alloca %class.ResolveItemRef, align 8
  %29 = alloca %struct.Span, align 8
  %30 = alloca %"class.std::function", align 8
  %31 = alloca %class.anon.164, align 8
  %32 = alloca ptr, align 8
  %33 = alloca %struct.Span, align 8
  %34 = alloca %"class.std::function", align 8
  %35 = alloca %class.anon.165, align 8
  %36 = alloca i8, align 1
  %37 = alloca ptr, align 8
  %38 = alloca i8, align 1
  %39 = alloca ptr, align 8
  %40 = alloca i8, align 1
  %41 = alloca ptr, align 8
  %42 = alloca %struct.Span, align 8
  %43 = alloca %"class.std::function", align 8
  %44 = alloca %class.anon.166, align 8
  store ptr %0, ptr %8, align 8
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store i32 %5, ptr %13, align 4, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #7
  %45 = call noundef zeroext i1 @_Z13debug_enabledv()
  %46 = zext i1 %45 to i64
  %47 = select i1 %45, ptr @__func__._Z31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS2_4PathES8_16ResolveNamespacePNS2_12AbsolutePathE, ptr null
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  %48 = getelementptr inbounds %class.anon.163, ptr %17, i32 0, i32 0
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %49, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds %class.anon.163, ptr %17, i32 0, i32 1
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %51, ptr %50, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS7_4PathESD_16ResolveNamespacePNS7_12AbsolutePathEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef %47, ptr noundef %16)
          to label %52 unwind label %64

52:                                               ; preds = %7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #7
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_112ResolveStateC2ERK4SpanRKN3AST5CrateE(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 8 dereferenceable(1112) %54)
          to label %55 unwind label %68

55:                                               ; preds = %52
  store i1 false, ptr %21, align 1
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_112ResolveState10get_moduleERKN3AST4PathES4_bPNS1_12AbsolutePathEb(ptr dead_on_unwind writable sret(%class.ResolveModuleRef) align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 8 dereferenceable(240) %56, ptr noundef nonnull align 8 dereferenceable(240) %57, i1 noundef zeroext true, ptr noundef %58, i1 noundef zeroext false)
          to label %59 unwind label %72

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

60:                                               ; preds = %310, %59
  %61 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %62 = trunc i8 %61 to i1
  br i1 %62, label %76, label %63

63:                                               ; preds = %60
  store i32 2, ptr %23, align 4
  br label %311

64:                                               ; preds = %7
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %18, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  br label %326

68:                                               ; preds = %52
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %18, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %19, align 4
  br label %325

72:                                               ; preds = %55
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %18, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %19, align 4
  br label %324

76:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  store ptr %0, ptr %24, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %305, %76
  %78 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %79 = trunc i8 %78 to i1
  br i1 %79, label %81, label %80

80:                                               ; preds = %77
  store i32 5, ptr %23, align 4
  br label %306

81:                                               ; preds = %77
  %82 = load ptr, ptr %24, align 8, !tbaa !5
  %83 = invoke noundef i32 @_ZNK16ResolveModuleRef3tagEv(ptr noundef nonnull align 8 dereferenceable(16) %82)
          to label %84 unwind label %85

84:                                               ; preds = %81
  switch i32 %83, label %304 [
    i32 0, label %89
    i32 3, label %90
    i32 4, label %201
    i32 2, label %228
    i32 1, label %255
  ]

85:                                               ; preds = %81
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %18, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %19, align 4
  br label %308

89:                                               ; preds = %84
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 859, ptr noundef @__PRETTY_FUNCTION__._Z31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS2_4PathES8_16ResolveNamespacePNS2_12AbsolutePathE) #8
  unreachable

90:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #7
  store i8 1, ptr %25, align 1, !tbaa !11
  br label %91

91:                                               ; preds = %199, %90
  %92 = load i8, ptr %25, align 1, !tbaa !11, !range !13, !noundef !14
  %93 = trunc i8 %92 to i1
  br i1 %93, label %95, label %94

94:                                               ; preds = %91
  store i32 9, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  br label %200

95:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %96 = load ptr, ptr %24, align 8, !tbaa !5
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN16ResolveModuleRef6as_AstEv(ptr noundef nonnull align 8 dereferenceable(16) %96)
          to label %98 unwind label %104

98:                                               ; preds = %95
  store ptr %97, ptr %26, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %193, %98
  %100 = load ptr, ptr %26, align 8, !tbaa !5
  %101 = load i8, ptr %25, align 1, !tbaa !11, !range !13, !noundef !14
  %102 = trunc i8 %101 to i1
  br i1 %102, label %108, label %103

103:                                              ; preds = %99
  store i32 12, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %198

104:                                              ; preds = %95
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %18, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %19, align 4
  br label %197

108:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #7
  invoke void @_ZN3AST12AbsolutePathC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %109 unwind label %113

109:                                              ; preds = %108
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = icmp ne ptr %110, null
  br i1 %111, label %117, label %112

112:                                              ; preds = %109
  store ptr %27, ptr %14, align 8, !tbaa !5
  br label %117

113:                                              ; preds = %108
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %18, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %19, align 4
  br label %196

117:                                              ; preds = %112, %109
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #7
  %118 = load ptr, ptr %26, align 8, !tbaa !5
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3AST4Path5nodesEv(ptr noundef nonnull align 8 dereferenceable(240) %120)
          to label %122 unwind label %142

122:                                              ; preds = %117
  %123 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3AST8PathNodeESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #7
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3AST8PathNode4nameEv(ptr noundef nonnull align 8 dereferenceable(40) %123)
          to label %125 unwind label %142

125:                                              ; preds = %122
  %126 = load i32, ptr %13, align 4, !tbaa !9
  %127 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_112ResolveState9find_itemERKN3AST6ModuleERK8RcString16ResolveNamespacePNS1_12AbsolutePathE(ptr dead_on_unwind writable sret(%class.ResolveItemRef) align 8 %28, ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 8 dereferenceable(480) %119, ptr noundef nonnull align 8 dereferenceable(8) %124, i32 noundef %126, ptr noundef %127)
          to label %128 unwind label %142

128:                                              ; preds = %125
  %129 = invoke noundef zeroext i1 @_ZNK14ResolveItemRef7is_NoneEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %130 unwind label %146

130:                                              ; preds = %128
  br i1 %129, label %131, label %165

131:                                              ; preds = %130
  br label %132

132:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %133)
          to label %134 unwind label %150

134:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #7
  %135 = getelementptr inbounds %class.anon.164, ptr %31, i32 0, i32 0
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %136, ptr %135, align 8, !tbaa !5
  %137 = getelementptr inbounds %class.anon.164, ptr %31, i32 0, i32 1
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %138, ptr %137, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS7_4PathESD_16ResolveNamespacePNS7_12AbsolutePathEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(16) %31) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef %30)
          to label %139 unwind label %154

139:                                              ; preds = %134
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  %140 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %140, ptr noundef @.str.6)
          to label %141 unwind label %159

141:                                              ; preds = %139
  invoke void @__cxa_throw(ptr %140, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
          to label %332 unwind label %146

142:                                              ; preds = %125, %122, %117
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %18, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %19, align 4
  br label %195

146:                                              ; preds = %141, %128
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %18, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %19, align 4
  br label %194

150:                                              ; preds = %132
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %18, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %19, align 4
  br label %158

154:                                              ; preds = %134
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %18, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  br label %158

158:                                              ; preds = %154, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %194

159:                                              ; preds = %139
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %18, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %19, align 4
  call void @__cxa_free_exception(ptr %140) #7
  br label %194

163:                                              ; No predecessors!
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164, %130
  br label %166

166:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  store ptr @__func__._Z31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS2_4PathES8_16ResolveNamespacePNS2_12AbsolutePathE, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %167)
          to label %168 unwind label %173

168:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %169 = getelementptr inbounds %class.anon.165, ptr %35, i32 0, i32 0
  store ptr %32, ptr %169, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS7_4PathESD_16ResolveNamespacePNS7_12AbsolutePathEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef %34)
          to label %170 unwind label %177

170:                                              ; preds = %168
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  %171 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %171, ptr noundef @.str.7)
          to label %172 unwind label %182

172:                                              ; preds = %170
  invoke void @__cxa_throw(ptr %171, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
          to label %332 unwind label %186

173:                                              ; preds = %166
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %18, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %19, align 4
  br label %181

177:                                              ; preds = %168
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %18, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  br label %181

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

182:                                              ; preds = %170
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %18, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %19, align 4
  call void @__cxa_free_exception(ptr %171) #7
  br label %190

186:                                              ; preds = %172
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %18, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %19, align 4
  br label %190

190:                                              ; preds = %186, %182, %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %194

191:                                              ; No predecessors!
  br label %192

192:                                              ; preds = %191
  call void @_ZN14ResolveItemRefD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #7
  call void @_ZN3AST12AbsolutePathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  br label %193

193:                                              ; preds = %192
  store i8 0, ptr %25, align 1, !tbaa !11
  br label %99, !llvm.loop !15

194:                                              ; preds = %190, %159, %158, %146
  call void @_ZN14ResolveItemRefD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  br label %195

195:                                              ; preds = %194, %142
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #7
  call void @_ZN3AST12AbsolutePathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  br label %196

196:                                              ; preds = %195, %113
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  br label %197

197:                                              ; preds = %196, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  br label %308

198:                                              ; preds = %103
  br label %199

199:                                              ; preds = %198
  store i8 0, ptr %25, align 1, !tbaa !11
  br label %91, !llvm.loop !17

200:                                              ; preds = %94
  br label %304

201:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #7
  store i8 1, ptr %36, align 1, !tbaa !11
  br label %202

202:                                              ; preds = %224, %201
  %203 = load i8, ptr %36, align 1, !tbaa !11, !range !13, !noundef !14
  %204 = trunc i8 %203 to i1
  br i1 %204, label %206, label %205

205:                                              ; preds = %202
  store i32 19, ptr %23, align 4
  br label %225

206:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %207 = load ptr, ptr %24, align 8, !tbaa !5
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN16ResolveModuleRef6as_HirEv(ptr noundef nonnull align 8 dereferenceable(16) %207)
          to label %209 unwind label %215

209:                                              ; preds = %206
  store ptr %208, ptr %37, align 8, !tbaa !5
  br label %210

210:                                              ; preds = %220, %209
  %211 = load ptr, ptr %37, align 8, !tbaa !5
  %212 = load i8, ptr %36, align 1, !tbaa !11, !range !13, !noundef !14
  %213 = trunc i8 %212 to i1
  br i1 %213, label %219, label %214

214:                                              ; preds = %210
  store i32 22, ptr %23, align 4
  br label %221

215:                                              ; preds = %206
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %18, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #7
  br label %308

219:                                              ; preds = %210
  store i1 true, ptr %21, align 1
  store i32 1, ptr %23, align 4
  br label %221

220:                                              ; No predecessors!
  store i8 0, ptr %36, align 1, !tbaa !11
  br label %210, !llvm.loop !18

221:                                              ; preds = %219, %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  %222 = load i32, ptr %23, align 4
  switch i32 %222, label %225 [
    i32 22, label %223
  ]

223:                                              ; preds = %221
  br label %224

224:                                              ; preds = %223
  store i8 0, ptr %36, align 1, !tbaa !11
  br label %202, !llvm.loop !19

225:                                              ; preds = %221, %205
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #7
  %226 = load i32, ptr %23, align 4
  switch i32 %226, label %306 [
    i32 19, label %227
  ]

227:                                              ; preds = %225
  br label %304

228:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #7
  store i8 1, ptr %38, align 1, !tbaa !11
  br label %229

229:                                              ; preds = %251, %228
  %230 = load i8, ptr %38, align 1, !tbaa !11, !range !13, !noundef !14
  %231 = trunc i8 %230 to i1
  br i1 %231, label %233, label %232

232:                                              ; preds = %229
  store i32 25, ptr %23, align 4
  br label %252

233:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %234 = load ptr, ptr %24, align 8, !tbaa !5
  %235 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN16ResolveModuleRef18as_ImplicitPreludeEv(ptr noundef nonnull align 8 dereferenceable(16) %234)
          to label %236 unwind label %242

236:                                              ; preds = %233
  store ptr %235, ptr %39, align 8, !tbaa !5
  br label %237

237:                                              ; preds = %247, %236
  %238 = load ptr, ptr %39, align 8, !tbaa !5
  %239 = load i8, ptr %38, align 1, !tbaa !11, !range !13, !noundef !14
  %240 = trunc i8 %239 to i1
  br i1 %240, label %246, label %241

241:                                              ; preds = %237
  store i32 28, ptr %23, align 4
  br label %248

242:                                              ; preds = %233
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %18, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #7
  br label %308

246:                                              ; preds = %237
  store i1 true, ptr %21, align 1
  store i32 1, ptr %23, align 4
  br label %248

247:                                              ; No predecessors!
  store i8 0, ptr %38, align 1, !tbaa !11
  br label %237, !llvm.loop !20

248:                                              ; preds = %246, %241
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  %249 = load i32, ptr %23, align 4
  switch i32 %249, label %252 [
    i32 28, label %250
  ]

250:                                              ; preds = %248
  br label %251

251:                                              ; preds = %250
  store i8 0, ptr %38, align 1, !tbaa !11
  br label %229, !llvm.loop !21

252:                                              ; preds = %248, %232
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #7
  %253 = load i32, ptr %23, align 4
  switch i32 %253, label %306 [
    i32 25, label %254
  ]

254:                                              ; preds = %252
  br label %304

255:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #7
  store i8 1, ptr %40, align 1, !tbaa !11
  br label %256

256:                                              ; preds = %302, %255
  %257 = load i8, ptr %40, align 1, !tbaa !11, !range !13, !noundef !14
  %258 = trunc i8 %257 to i1
  br i1 %258, label %260, label %259

259:                                              ; preds = %256
  store i32 31, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #7
  br label %303

260:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %261 = load ptr, ptr %24, align 8, !tbaa !5
  %262 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN16ResolveModuleRef7as_NoneEv(ptr noundef nonnull align 8 dereferenceable(16) %261)
          to label %263 unwind label %269

263:                                              ; preds = %260
  store ptr %262, ptr %41, align 8, !tbaa !5
  br label %264

264:                                              ; preds = %299, %263
  %265 = load ptr, ptr %41, align 8, !tbaa !5
  %266 = load i8, ptr %40, align 1, !tbaa !11, !range !13, !noundef !14
  %267 = trunc i8 %266 to i1
  br i1 %267, label %273, label %268

268:                                              ; preds = %264
  store i32 34, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  br label %301

269:                                              ; preds = %283, %260
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %18, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %19, align 4
  br label %300

273:                                              ; preds = %264
  br label %274

274:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %275 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %275)
          to label %276 unwind label %284

276:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #7
  %277 = getelementptr inbounds %class.anon.166, ptr %44, i32 0, i32 0
  %278 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %278, ptr %277, align 8, !tbaa !5
  %279 = getelementptr inbounds %class.anon.166, ptr %44, i32 0, i32 1
  %280 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %280, ptr %279, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS7_4PathESD_16ResolveNamespacePNS7_12AbsolutePathEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(16) %44) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef %43)
          to label %281 unwind label %288

281:                                              ; preds = %276
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  %282 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %282, ptr noundef @.str.6)
          to label %283 unwind label %293

283:                                              ; preds = %281
  invoke void @__cxa_throw(ptr %282, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
          to label %332 unwind label %269

284:                                              ; preds = %274
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %18, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %19, align 4
  br label %292

288:                                              ; preds = %276
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %18, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %19, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %42) #7
  br label %292

292:                                              ; preds = %288, %284
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  br label %300

293:                                              ; preds = %281
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %18, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %19, align 4
  call void @__cxa_free_exception(ptr %282) #7
  br label %300

297:                                              ; No predecessors!
  br label %298

298:                                              ; preds = %297
  br label %299

299:                                              ; preds = %298
  store i8 0, ptr %40, align 1, !tbaa !11
  br label %264, !llvm.loop !22

300:                                              ; preds = %293, %292, %269
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #7
  br label %308

301:                                              ; preds = %268
  br label %302

302:                                              ; preds = %301
  store i8 0, ptr %40, align 1, !tbaa !11
  br label %256, !llvm.loop !23

303:                                              ; preds = %259
  br label %304

304:                                              ; preds = %303, %254, %227, %200, %84
  br label %305

305:                                              ; preds = %304
  store i8 0, ptr %22, align 1, !tbaa !11
  br label %77, !llvm.loop !24

306:                                              ; preds = %252, %225, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  %307 = load i32, ptr %23, align 4
  switch i32 %307, label %311 [
    i32 5, label %309
  ]

308:                                              ; preds = %300, %242, %215, %197, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %323

309:                                              ; preds = %306
  br label %310

310:                                              ; preds = %309
  store i8 0, ptr %22, align 1, !tbaa !11
  br label %60, !llvm.loop !25

311:                                              ; preds = %306, %63
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  %312 = load i32, ptr %23, align 4
  switch i32 %312, label %319 [
    i32 2, label %313
  ]

313:                                              ; preds = %311
  %314 = call ptr @__cxa_allocate_exception(i64 8) #7
  store ptr @.str.8, ptr %314, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr %314, ptr @_ZTIPKc, ptr null) #9
          to label %332 unwind label %315

315:                                              ; preds = %313
  %316 = landingpad { ptr, i32 }
          cleanup
  %317 = extractvalue { ptr, i32 } %316, 0
  store ptr %317, ptr %18, align 8
  %318 = extractvalue { ptr, i32 } %316, 1
  store i32 %318, ptr %19, align 4
  br label %323

319:                                              ; preds = %311
  %320 = load i1, ptr %21, align 1
  br i1 %320, label %322, label %321

321:                                              ; preds = %319
  call void @_ZN16ResolveModuleRefD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #7
  br label %322

322:                                              ; preds = %321, %319
  call void @_ZN12_GLOBAL__N_112ResolveStateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #7
  ret void

323:                                              ; preds = %315, %308
  call void @_ZN16ResolveModuleRefD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #7
  br label %324

324:                                              ; preds = %323, %72
  call void @_ZN12_GLOBAL__N_112ResolveStateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #7
  br label %325

325:                                              ; preds = %324, %68
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #7
  br label %326

326:                                              ; preds = %325, %64
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #7
  br label %327

327:                                              ; preds = %326
  %328 = load ptr, ptr %18, align 8
  %329 = load i32, ptr %19, align 4
  %330 = insertvalue { ptr, i32 } poison, ptr %328, 0
  %331 = insertvalue { ptr, i32 } %330, i32 %329, 1
  resume { ptr, i32 } %331

332:                                              ; preds = %313, %283, %172, %141
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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


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

%class.ResolveModuleRef = type { i32, %"union.ResolveModuleRef::DataUnion" }
%"union.ResolveModuleRef::DataUnion" = type { ptr }
%class.ResolveItemRef = type { i32, %"union.ResolveItemRef::DataUnion" }
%"union.ResolveItemRef::DataUnion" = type { %class.ResolveItemRef_Type }
%class.ResolveItemRef_Type = type { i32, %"union.ResolveItemRef_Type::DataUnion" }
%"union.ResolveItemRef_Type::DataUnion" = type { ptr }
%class.TraceLog = type { ptr, %"class.std::function" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.163 = type { ptr, ptr }
%"struct.(anonymous namespace)::ResolveState" = type { ptr, ptr, %"class.std::vector.25" }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<std::pair<const AST::Module *, RcString>, std::allocator<std::pair<const AST::Module *, RcString>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<const AST::Module *, RcString>, std::allocator<std::pair<const AST::Module *, RcString>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<const AST::Module *, RcString>, std::allocator<std::pair<const AST::Module *, RcString>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<const AST::Module *, RcString>, std::allocator<std::pair<const AST::Module *, RcString>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.AST::AbsolutePath" = type { %class.RcString, %"class.std::vector.18" }
%class.RcString = type { ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl" }
%"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl" = type { %"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl_data" }
%"struct.std::_Vector_base<RcString, std::allocator<RcString>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Span = type { ptr }
%class.anon.164 = type { ptr, ptr }
%class.anon.165 = type { ptr }
%class.anon.166 = type { ptr, ptr }

@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@__func__._Z31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS2_4PathES8_16ResolveNamespacePNS2_12AbsolutePathE = external hidden unnamed_addr constant [32 x i8], align 1
@__PRETTY_FUNCTION__._Z31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS2_4PathES8_16ResolveNamespacePNS2_12AbsolutePathE = external hidden unnamed_addr constant [166 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_112ResolveStateC2ERK4SpanRKN3AST5CrateE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(1112)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_112ResolveState10get_moduleERKN3AST4PathES4_bPNS1_12AbsolutePathEb(ptr dead_on_unwind noalias writable sret(%class.ResolveModuleRef) align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(240), ptr noundef nonnull align 8 dereferenceable(240), i1 noundef zeroext, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #4

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_112ResolveState9find_itemERKN3AST6ModuleERK8RcString16ResolveNamespacePNS1_12AbsolutePathE(ptr dead_on_unwind noalias writable sret(%class.ResolveItemRef) align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(480), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef) local_unnamed_addr #2 align 2

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

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS2_4PathES8_16ResolveNamespacePNS2_12AbsolutePathE(ptr dead_on_unwind noalias writable sret(%class.ResolveModuleRef) align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(1112) %2, ptr noundef nonnull align 8 dereferenceable(240) %3, ptr noundef nonnull align 8 dereferenceable(240) %4, i32 noundef %5, ptr noundef %6) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %class.TraceLog, align 8
  %9 = alloca %"class.std::function", align 8
  %10 = alloca %class.anon.163, align 8
  %11 = alloca %"struct.(anonymous namespace)::ResolveState", align 8
  %12 = alloca %"struct.AST::AbsolutePath", align 8
  %13 = alloca %class.ResolveItemRef, align 8
  %14 = alloca %struct.Span, align 8
  %15 = alloca %"class.std::function", align 8
  %16 = alloca %class.anon.164, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %struct.Span, align 8
  %19 = alloca %"class.std::function", align 8
  %20 = alloca %class.anon.165, align 8
  %21 = alloca %struct.Span, align 8
  %22 = alloca %"class.std::function", align 8
  %23 = alloca %class.anon.166, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #7
  %24 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %25 = select i1 %24, ptr @__func__._Z31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS2_4PathES8_16ResolveNamespacePNS2_12AbsolutePathE, ptr null
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  store ptr %4, ptr %10, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %10, i64 8
  store ptr %3, ptr %26, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS7_4PathESD_16ResolveNamespacePNS7_12AbsolutePathEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef %25, ptr noundef nonnull %9)
          to label %27 unwind label %28

27:                                               ; preds = %7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #7
  call void @_ZN12_GLOBAL__N_112ResolveStateC2ERK4SpanRKN3AST5CrateE(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(1112) %2)
  invoke void @_ZN12_GLOBAL__N_112ResolveState10get_moduleERKN3AST4PathES4_bPNS1_12AbsolutePathEb(ptr dead_on_unwind writable sret(%class.ResolveModuleRef) align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(240) %3, ptr noundef nonnull align 8 dereferenceable(240) %4, i1 noundef zeroext true, ptr noundef %6, i1 noundef zeroext false)
          to label %.preheader unwind label %30

28:                                               ; preds = %7
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %102

30:                                               ; preds = %27
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %101

.preheader:                                       ; preds = %27
  %32 = call noundef i32 @_ZNK16ResolveModuleRef3tagEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  switch i32 %32, label %.thread104 [
    i32 0, label %.split.us
    i32 3, label %.split114.us
    i32 4, label %.split116.us
    i32 2, label %.split118.us
    i32 1, label %.split121.us
  ], !llvm.loop !9

.split.us:                                        ; preds = %.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 859, ptr noundef nonnull @__PRETTY_FUNCTION__._Z31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS2_4PathES8_16ResolveNamespacePNS2_12AbsolutePathE) #8
  unreachable

.split114.us:                                     ; preds = %.preheader
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN16ResolveModuleRef6as_AstEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  invoke void @_ZN3AST12AbsolutePathC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %34 unwind label %37

34:                                               ; preds = %.split114.us
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  %35 = load ptr, ptr %33, align 8, !tbaa !5
  %36 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3AST4Path5nodesEv(ptr noundef nonnull align 8 dereferenceable(240) %4)
          to label %39 unwind label %50

37:                                               ; preds = %.split114.us
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %78

39:                                               ; preds = %34
  %.not = icmp eq ptr %6, null
  %spec.store.select = select i1 %.not, ptr %12, ptr %6
  %40 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3AST8PathNodeESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3AST8PathNode4nameEv(ptr noundef nonnull align 8 dereferenceable(40) %40)
  invoke void @_ZN12_GLOBAL__N_112ResolveState9find_itemERKN3AST6ModuleERK8RcString16ResolveNamespacePNS1_12AbsolutePathE(ptr dead_on_unwind nonnull writable sret(%class.ResolveItemRef) align 8 %13, ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(480) %35, ptr noundef nonnull align 8 dereferenceable(8) %41, i32 noundef %5, ptr noundef nonnull %spec.store.select)
          to label %42 unwind label %50

42:                                               ; preds = %39
  %43 = call noundef zeroext i1 @_ZNK14ResolveItemRef7is_NoneEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
  br i1 %43, label %44, label %61

44:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %45 unwind label %54

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  store ptr %4, ptr %16, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %16, i64 8
  store ptr %3, ptr %46, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS7_4PathESD_16ResolveNamespacePNS7_12AbsolutePathEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull %15)
          to label %47 unwind label %56

47:                                               ; preds = %45
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %48 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull @.str.6)
          to label %49 unwind label %59

49:                                               ; preds = %47
  invoke void @__cxa_throw(ptr nonnull %48, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
          to label %103 unwind label %52

50:                                               ; preds = %39, %34
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %77

52:                                               ; preds = %49
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %76

54:                                               ; preds = %44
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %58

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

58:                                               ; preds = %56, %54
  %.pn93 = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %76

59:                                               ; preds = %47
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %48) #7
  br label %76

61:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  store ptr @__func__._Z31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS2_4PathES8_16ResolveNamespacePNS2_12AbsolutePathE, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %62 unwind label %66

62:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  store ptr %17, ptr %20, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS7_4PathESD_16ResolveNamespacePNS7_12AbsolutePathEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull %19)
          to label %63 unwind label %68

63:                                               ; preds = %62
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  %64 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull @.str.7)
          to label %65 unwind label %71

65:                                               ; preds = %63
  invoke void @__cxa_throw(ptr nonnull %64, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
          to label %103 unwind label %73

66:                                               ; preds = %61
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %70

68:                                               ; preds = %62
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  br label %70

70:                                               ; preds = %68, %66
  %.pn89 = phi { ptr, i32 } [ %69, %68 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  br label %75

71:                                               ; preds = %63
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %64) #7
  br label %75

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

75:                                               ; preds = %73, %71, %70
  %.pn91 = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ], [ %.pn89, %70 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br label %76

76:                                               ; preds = %75, %59, %58, %52
  %.pn95 = phi { ptr, i32 } [ %53, %52 ], [ %60, %59 ], [ %.pn93, %58 ], [ %.pn91, %75 ]
  call void @_ZN14ResolveItemRefD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  br label %77

77:                                               ; preds = %76, %50
  %.pn95.pn = phi { ptr, i32 } [ %.pn95, %76 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  call void @_ZN3AST12AbsolutePathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br label %78

78:                                               ; preds = %77, %37
  %.pn95.pn.pn = phi { ptr, i32 } [ %.pn95.pn, %77 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  br label %100

.split116.us:                                     ; preds = %.preheader
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN16ResolveModuleRef6as_HirEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br label %99

.split118.us:                                     ; preds = %.preheader
  %80 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN16ResolveModuleRef18as_ImplicitPreludeEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br label %99

.split121.us:                                     ; preds = %.preheader
  %81 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN16ResolveModuleRef7as_NoneEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %84 unwind label %89

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

84:                                               ; preds = %.split121.us
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #7
  store ptr %4, ptr %23, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %23, i64 8
  store ptr %3, ptr %85, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ31Resolve_Lookup_GetModuleForNameRK4SpanRKN3AST5CrateERKNS7_4PathESD_16ResolveNamespacePNS7_12AbsolutePathEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(16) %23) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull %22)
          to label %86 unwind label %91

86:                                               ; preds = %84
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  %87 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %87, ptr noundef nonnull @.str.6)
          to label %88 unwind label %94

88:                                               ; preds = %86
  invoke void @__cxa_throw(ptr nonnull %87, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
          to label %103 unwind label %82

89:                                               ; preds = %.split121.us
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %93

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

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

94:                                               ; preds = %86
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %87) #7
  br label %100

.thread104:                                       ; preds = %.preheader
  %96 = call ptr @__cxa_allocate_exception(i64 8) #7
  store ptr @.str.8, ptr %96, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr nonnull %96, ptr nonnull @_ZTIPKc, ptr null) #9
          to label %103 unwind label %97

97:                                               ; preds = %.thread104
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %100

99:                                               ; preds = %.split116.us, %.split118.us
  call void @_ZN12_GLOBAL__N_112ResolveStateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #7
  ret void

100:                                              ; preds = %78, %94, %93, %82, %97
  %.pn87.pn.pn = phi { ptr, i32 } [ %98, %97 ], [ %.pn95.pn.pn, %78 ], [ %83, %82 ], [ %95, %94 ], [ %.pn, %93 ]
  call void @_ZN16ResolveModuleRefD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #7
  br label %101

101:                                              ; preds = %100, %30
  %.pn87.pn.pn.pn = phi { ptr, i32 } [ %.pn87.pn.pn, %100 ], [ %31, %30 ]
  call void @_ZN12_GLOBAL__N_112ResolveStateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  br label %102

102:                                              ; preds = %101, %28
  %.pn87.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn87.pn.pn.pn, %101 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #7
  resume { ptr, i32 } %.pn87.pn.pn.pn.pn

103:                                              ; preds = %.thread104, %88, %65, %49
  unreachable
}

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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