; LLVM IR from nickmqb/muon :: bootstrap/mu.ll_TypeChecker (unpackMember__)

; 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.string__ = type { ptr, i32 }
%struct.tag_____Error__ = type { ptr, %struct.tag_____IntRange__, %struct.string__ }
%struct.tag_____IntRange__ = type { i32, i32 }
%struct.tag_____ResolveResult__ = type { %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.Node__, i8 }
%struct.tag_____Tag__ = type { ptr, ptr }
%struct.Node__ = type { i32, ptr }
%struct.tag_____StringBuilder__ = type { ptr, i32, i32 }
%struct.tag_____FunctionDef__ = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.Node__, ptr, ptr, ptr, ptr, i32, ptr, %struct.string__, %struct.string__, %struct.tag_____Tag__, i32, ptr, ptr, ptr, ptr, %struct.string__ }
%struct.tag_____StaticFieldDef__ = type { ptr, ptr, ptr, %struct.Node__, ptr, ptr, %struct.Node__, i32, ptr, %struct.tag_____Tag__, i32, ptr, %struct.tag_____EvalResult__, %struct.string__ }
%struct.tag_____EvalResult__ = type { %struct.tag_____Tag__, i64, i32 }
%struct.tag_____Namespace__ = type { %struct.string__, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.tag_____TypeCheckerContext__ = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, i8 }

@mu_____string186 = external dso_local global %struct.string__, align 8
@top_____abandonFn__ = external dso_local thread_local global ptr, align 8
@__const.TypeChecker__unpackMember__.local13 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.TypeChecker__unpackMember__.local20 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.TypeChecker__unpackMember__.local21 = external hidden unnamed_addr constant %struct.string__, align 8

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #1

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nounwind uwtable
declare dso_local void @StringBuilder__write__(ptr noundef, ptr, i32) #4

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @StringBuilder__compactToString__(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @List__add__Error____(ptr noundef, ptr noundef byval(%struct.tag_____Error__) align 8) #4

; Function Attrs: nounwind uwtable
declare dso_local void @Error__at__(ptr dead_on_unwind noalias writable sret(%struct.tag_____Error__) align 8, ptr noundef, i64, ptr, i32) #4

; Function Attrs: nounwind uwtable
declare dso_local { i32, ptr } @Map__getOrDefault__string__Node____(ptr noundef, ptr, i32) #4

; Function Attrs: nounwind uwtable
declare dso_local i64 @RangeFinder__find__(i32, ptr) #4

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @Namespace__toString__(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @TypeChecker__unpackMember__(ptr dead_on_unwind noalias writable sret(%struct.tag_____ResolveResult__) align 8 %0, ptr noundef %1, i32 %2, ptr %3, i32 %4, ptr %5, i32 noundef %6) #4 {
  %8 = alloca %struct.Node__, align 8
  %9 = alloca %struct.Node__, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %struct.tag_____ResolveResult__, align 8
  %14 = alloca %struct.Node__, align 8
  %15 = alloca i32, align 4
  %16 = alloca %struct.tag_____ResolveResult__, align 8
  %17 = alloca %struct.Node__, align 8
  %18 = alloca %struct.tag_____Tag__, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %struct.tag_____ResolveResult__, align 8
  %21 = alloca %struct.Node__, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca %struct.tag_____ResolveResult__, align 8
  %25 = alloca %struct.Node__, align 8
  %26 = alloca %struct.tag_____StringBuilder__, align 8
  %27 = alloca %struct.string__, align 8
  %28 = alloca %struct.string__, align 8
  %29 = alloca %struct.tag_____Error__, align 8
  %30 = alloca %struct.tag_____IntRange__, align 4
  %31 = alloca %struct.string__, align 8
  %32 = alloca %struct.Node__, align 8
  %33 = alloca i8, align 1
  %34 = alloca %struct.Node__, align 8
  %35 = alloca ptr, align 8
  %36 = alloca %struct.tag_____ResolveResult__, align 8
  %37 = alloca %struct.Node__, align 8
  %38 = alloca %struct.Node__, align 8
  %39 = alloca %struct.tag_____StringBuilder__, align 8
  %40 = alloca %struct.string__, align 8
  %41 = alloca %struct.string__, align 8
  %42 = alloca %struct.tag_____Error__, align 8
  %43 = alloca %struct.tag_____IntRange__, align 4
  %44 = alloca %struct.string__, align 8
  %45 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 0
  store i32 %2, ptr %45, align 8
  %46 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 1
  store ptr %3, ptr %46, align 8
  %47 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 0
  store i32 %4, ptr %47, align 8
  %48 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 1
  store ptr %5, ptr %48, align 8
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i32 %6, ptr %11, align 4, !tbaa !9
  %49 = getelementptr inbounds %struct.Node__, ptr %8, i32 0, i32 0
  %50 = load i32, ptr %49, align 8, !tbaa !11
  switch i32 %50, label %333 [
    i32 34, label %51
    i32 1, label %115
    i32 22, label %152
    i32 0, label %332
  ]

51:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %52 = getelementptr inbounds %struct.Node__, ptr %8, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  store ptr %53, ptr %12, align 8, !tbaa !5
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.tag_____FunctionDef__, ptr %54, i32 0, i32 12
  %56 = load i32, ptr %55, align 8, !tbaa !14
  %57 = and i32 %56, 8
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %62

59:                                               ; preds = %51
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  call void @TypeChecker__recursiveCheckFunction__(ptr noundef %60, ptr noundef %61)
  br label %62

62:                                               ; preds = %59, %51
  %63 = load i32, ptr %11, align 4, !tbaa !9
  %64 = icmp eq i32 %63, 1
  br i1 %64, label %65, label %80

65:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 56, ptr %13) #5
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 56, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.Node__, ptr %14, i32 0, i32 1
  store ptr %66, ptr %67, align 8, !tbaa !13
  %68 = getelementptr inbounds %struct.Node__, ptr %14, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8, !tbaa !13
  %70 = icmp ne ptr %69, null
  %71 = zext i1 %70 to i64
  %72 = select i1 %70, i32 34, i32 0
  %73 = getelementptr inbounds %struct.Node__, ptr %14, i32 0, i32 0
  store i32 %72, ptr %73, align 8, !tbaa !11
  %74 = getelementptr inbounds %struct.tag_____ResolveResult__, ptr %13, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %74, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %13, i64 56, i1 false), !tbaa.struct !19
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 0
  %77 = load i32, ptr %76, align 8
  %78 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 1
  %79 = load ptr, ptr %78, align 8
  call void @TypeChecker__recordInfo__(ptr noundef %75, i32 %77, ptr %79, ptr noundef byval(%struct.tag_____ResolveResult__) align 8 %0)
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #5
  br label %114

80:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 56, ptr %16) #5
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 56, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.Node__, ptr %17, i32 0, i32 1
  store ptr %81, ptr %82, align 8, !tbaa !13
  %83 = getelementptr inbounds %struct.Node__, ptr %17, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8, !tbaa !13
  %85 = icmp ne ptr %84, null
  %86 = zext i1 %85 to i64
  %87 = select i1 %85, i32 34, i32 0
  %88 = getelementptr inbounds %struct.Node__, ptr %17, i32 0, i32 0
  store i32 %87, ptr %88, align 8, !tbaa !11
  %89 = getelementptr inbounds %struct.tag_____ResolveResult__, ptr %16, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %89, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !18
  %90 = getelementptr inbounds %struct.tag_____ResolveResult__, ptr %16, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.tag_____FunctionDef__, ptr %93, i32 0, i32 12
  %95 = load i32, ptr %94, align 8, !tbaa !14
  %96 = and i32 %95, 4
  %97 = icmp ne i32 %96, 0
  %98 = zext i1 %97 to i32
  %99 = trunc i32 %98 to i8
  %100 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 0
  %101 = load i32, ptr %100, align 8
  %102 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 1
  %103 = load ptr, ptr %102, align 8
  %104 = call { ptr, ptr } @TypeChecker__getFunctionPointerTag__(ptr noundef %91, ptr noundef %92, i8 noundef zeroext %99, i32 %101, ptr %103)
  %105 = getelementptr inbounds { ptr, ptr }, ptr %18, i32 0, i32 0
  %106 = extractvalue { ptr, ptr } %104, 0
  store ptr %106, ptr %105, align 8
  %107 = getelementptr inbounds { ptr, ptr }, ptr %18, i32 0, i32 1
  %108 = extractvalue { ptr, ptr } %104, 1
  store ptr %108, ptr %107, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %90, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %16, i64 56, i1 false), !tbaa.struct !19
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 0
  %111 = load i32, ptr %110, align 8
  %112 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 1
  %113 = load ptr, ptr %112, align 8
  call void @TypeChecker__recordInfo__(ptr noundef %109, i32 %111, ptr %113, ptr noundef byval(%struct.tag_____ResolveResult__) align 8 %0)
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #5
  br label %114

114:                                              ; preds = %80, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %336

115:                                              ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %116 = getelementptr inbounds %struct.Node__, ptr %8, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !13
  store ptr %117, ptr %19, align 8, !tbaa !5
  %118 = load ptr, ptr %19, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.tag_____StaticFieldDef__, ptr %118, i32 0, i32 7
  %120 = load i32, ptr %119, align 8, !tbaa !22
  %121 = and i32 %120, 64
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %123, label %126

123:                                              ; preds = %115
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = load ptr, ptr %19, align 8, !tbaa !5
  call void @TypeChecker__recursiveCheckStaticField__(ptr noundef %124, ptr noundef %125)
  br label %126

126:                                              ; preds = %123, %115
  call void @llvm.lifetime.start.p0(i64 56, ptr %20) #5
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 56, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  %127 = load ptr, ptr %19, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.Node__, ptr %21, i32 0, i32 1
  store ptr %127, ptr %128, align 8, !tbaa !13
  %129 = getelementptr inbounds %struct.Node__, ptr %21, i32 0, i32 1
  %130 = load ptr, ptr %129, align 8, !tbaa !13
  %131 = icmp ne ptr %130, null
  %132 = zext i1 %131 to i64
  %133 = select i1 %131, i32 1, i32 0
  %134 = getelementptr inbounds %struct.Node__, ptr %21, i32 0, i32 0
  store i32 %133, ptr %134, align 8, !tbaa !11
  %135 = getelementptr inbounds %struct.tag_____ResolveResult__, ptr %20, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %135, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !18
  %136 = getelementptr inbounds %struct.tag_____ResolveResult__, ptr %20, i32 0, i32 0
  %137 = load ptr, ptr %19, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.tag_____StaticFieldDef__, ptr %137, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %136, ptr align 8 %138, i64 16, i1 false), !tbaa.struct !21
  %139 = load ptr, ptr %19, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.tag_____StaticFieldDef__, ptr %139, i32 0, i32 7
  %141 = load i32, ptr %140, align 8, !tbaa !22
  %142 = and i32 %141, 8
  %143 = icmp ne i32 %142, 0
  %144 = zext i1 %143 to i32
  %145 = trunc i32 %144 to i8
  %146 = getelementptr inbounds %struct.tag_____ResolveResult__, ptr %20, i32 0, i32 3
  store i8 %145, ptr %146, align 8, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %20, i64 56, i1 false), !tbaa.struct !19
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 0
  %149 = load i32, ptr %148, align 8
  %150 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8
  call void @TypeChecker__recordInfo__(ptr noundef %147, i32 %149, ptr %151, ptr noundef byval(%struct.tag_____ResolveResult__) align 8 %0)
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %336

152:                                              ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %153 = getelementptr inbounds %struct.Node__, ptr %8, i32 0, i32 1
  %154 = load ptr, ptr %153, align 8, !tbaa !13
  store ptr %154, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %155 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %155, ptr %23, align 8, !tbaa !5
  %156 = load i32, ptr %11, align 4, !tbaa !9
  %157 = icmp eq i32 %156, 2
  br i1 %157, label %158, label %173

158:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 56, ptr %24) #5
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 56, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %159 = load ptr, ptr %23, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.Node__, ptr %25, i32 0, i32 1
  store ptr %159, ptr %160, align 8, !tbaa !13
  %161 = getelementptr inbounds %struct.Node__, ptr %25, i32 0, i32 1
  %162 = load ptr, ptr %161, align 8, !tbaa !13
  %163 = icmp ne ptr %162, null
  %164 = zext i1 %163 to i64
  %165 = select i1 %163, i32 22, i32 0
  %166 = getelementptr inbounds %struct.Node__, ptr %25, i32 0, i32 0
  store i32 %165, ptr %166, align 8, !tbaa !11
  %167 = getelementptr inbounds %struct.tag_____ResolveResult__, ptr %24, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %167, ptr align 8 %25, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %24, i64 56, i1 false), !tbaa.struct !19
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 0
  %170 = load i32, ptr %169, align 8
  %171 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 1
  %172 = load ptr, ptr %171, align 8
  call void @TypeChecker__recordInfo__(ptr noundef %168, i32 %170, ptr %172, ptr noundef byval(%struct.tag_____ResolveResult__) align 8 %0)
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #5
  br label %331

173:                                              ; preds = %152
  %174 = load i32, ptr %11, align 4, !tbaa !9
  %175 = icmp eq i32 %174, 0
  br i1 %175, label %176, label %183

176:                                              ; preds = %173
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = load ptr, ptr %23, align 8, !tbaa !5
  %179 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 0
  %180 = load i32, ptr %179, align 8
  %181 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 1
  %182 = load ptr, ptr %181, align 8
  call void @TypeChecker__badTypeHere__(ptr noundef %177, i32 %180, ptr %182, ptr noundef %178)
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 56, i1 false)
  store i32 1, ptr %15, align 4
  br label %331

183:                                              ; preds = %173
  br label %184

184:                                              ; preds = %183
  %185 = load ptr, ptr %23, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.tag_____Namespace__, ptr %185, i32 0, i32 3
  %187 = load i32, ptr %186, align 4, !tbaa !28
  %188 = and i32 %187, 223741
  %189 = icmp eq i32 %188, 0
  br i1 %189, label %190, label %226

190:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 @__const.TypeChecker__unpackMember__.local13, i64 16, i1 false)
  %191 = getelementptr inbounds { ptr, i32 }, ptr %27, i32 0, i32 0
  %192 = load ptr, ptr %191, align 8
  %193 = getelementptr inbounds { ptr, i32 }, ptr %27, i32 0, i32 1
  %194 = load i32, ptr %193, align 8
  call void @StringBuilder__write__(ptr noundef %26, ptr %192, i32 %194)
  %195 = load ptr, ptr %23, align 8, !tbaa !5
  %196 = call { ptr, i32 } @Namespace__toString__(ptr noundef %195)
  %197 = getelementptr inbounds { ptr, i32 }, ptr %28, i32 0, i32 0
  %198 = extractvalue { ptr, i32 } %196, 0
  store ptr %198, ptr %197, align 8
  %199 = getelementptr inbounds { ptr, i32 }, ptr %28, i32 0, i32 1
  %200 = extractvalue { ptr, i32 } %196, 1
  store i32 %200, ptr %199, align 8
  %201 = getelementptr inbounds { ptr, i32 }, ptr %28, i32 0, i32 0
  %202 = load ptr, ptr %201, align 8
  %203 = getelementptr inbounds { ptr, i32 }, ptr %28, i32 0, i32 1
  %204 = load i32, ptr %203, align 8
  call void @StringBuilder__write__(ptr noundef %26, ptr %202, i32 %204)
  %205 = load ptr, ptr %10, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %205, i32 0, i32 2
  %207 = load ptr, ptr %206, align 8, !tbaa !30
  %208 = load ptr, ptr %10, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %208, i32 0, i32 5
  %210 = load ptr, ptr %209, align 8, !tbaa !32
  %211 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 0
  %212 = load i32, ptr %211, align 8
  %213 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 1
  %214 = load ptr, ptr %213, align 8
  %215 = call i64 @RangeFinder__find__(i32 %212, ptr %214)
  store i64 %215, ptr %30, align 4
  %216 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef %26)
  %217 = getelementptr inbounds { ptr, i32 }, ptr %31, i32 0, i32 0
  %218 = extractvalue { ptr, i32 } %216, 0
  store ptr %218, ptr %217, align 8
  %219 = getelementptr inbounds { ptr, i32 }, ptr %31, i32 0, i32 1
  %220 = extractvalue { ptr, i32 } %216, 1
  store i32 %220, ptr %219, align 8
  %221 = load i64, ptr %30, align 4
  %222 = getelementptr inbounds { ptr, i32 }, ptr %31, i32 0, i32 0
  %223 = load ptr, ptr %222, align 8
  %224 = getelementptr inbounds { ptr, i32 }, ptr %31, i32 0, i32 1
  %225 = load i32, ptr %224, align 8
  call void @Error__at__(ptr dead_on_unwind writable sret(%struct.tag_____Error__) align 8 %29, ptr noundef %210, i64 %221, ptr %223, i32 %225)
  call void @List__add__Error____(ptr noundef %207, ptr noundef byval(%struct.tag_____Error__) align 8 %29)
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  br label %226

226:                                              ; preds = %190, %184
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #5
  %227 = load ptr, ptr %23, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.tag_____Namespace__, ptr %227, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !33
  %230 = load ptr, ptr @mu_____string186, align 8
  %231 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string186, i32 0, i32 1), align 8
  %232 = call { i32, ptr } @Map__getOrDefault__string__Node____(ptr noundef %229, ptr %230, i32 %231)
  %233 = getelementptr inbounds { i32, ptr }, ptr %32, i32 0, i32 0
  %234 = extractvalue { i32, ptr } %232, 0
  store i32 %234, ptr %233, align 8
  %235 = getelementptr inbounds { i32, ptr }, ptr %32, i32 0, i32 1
  %236 = extractvalue { i32, ptr } %232, 1
  store ptr %236, ptr %235, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #5
  %237 = getelementptr inbounds %struct.Node__, ptr %32, i32 0, i32 1
  %238 = load ptr, ptr %237, align 8, !tbaa !13
  %239 = icmp ne ptr %238, null
  %240 = zext i1 %239 to i32
  %241 = trunc i32 %240 to i8
  store i8 %241, ptr %33, align 1, !tbaa !20
  %242 = load i8, ptr %33, align 1, !tbaa !20
  %243 = icmp ne i8 %242, 0
  br i1 %243, label %244, label %250

244:                                              ; preds = %226
  %245 = getelementptr inbounds %struct.Node__, ptr %32, i32 0, i32 0
  %246 = load i32, ptr %245, align 8, !tbaa !11
  %247 = icmp eq i32 %246, 34
  %248 = zext i1 %247 to i32
  %249 = trunc i32 %248 to i8
  store i8 %249, ptr %33, align 1, !tbaa !20
  br label %250

250:                                              ; preds = %244, %226
  %251 = load i8, ptr %33, align 1, !tbaa !20
  %252 = icmp ne i8 %251, 0
  br i1 %252, label %253, label %294

253:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %32, i64 16, i1 false), !tbaa.struct !18
  %254 = getelementptr inbounds %struct.Node__, ptr %34, i32 0, i32 0
  %255 = load i32, ptr %254, align 8, !tbaa !11
  %256 = icmp eq i32 %255, 34
  br i1 %256, label %260, label %257

257:                                              ; preds = %253
  %258 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %259 = load ptr, ptr %258, align 8, !tbaa !5
  call void %259(i32 noundef -4)
  br label %260

260:                                              ; preds = %257, %253
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  %261 = getelementptr inbounds %struct.Node__, ptr %34, i32 0, i32 1
  %262 = load ptr, ptr %261, align 8, !tbaa !13
  store ptr %262, ptr %35, align 8, !tbaa !5
  %263 = load ptr, ptr %35, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.tag_____FunctionDef__, ptr %263, i32 0, i32 12
  %265 = load i32, ptr %264, align 8, !tbaa !14
  %266 = and i32 %265, 8
  %267 = icmp eq i32 %266, 0
  br i1 %267, label %268, label %271

268:                                              ; preds = %260
  %269 = load ptr, ptr %10, align 8, !tbaa !5
  %270 = load ptr, ptr %35, align 8, !tbaa !5
  call void @TypeChecker__recursiveCheckFunction__(ptr noundef %269, ptr noundef %270)
  br label %271

271:                                              ; preds = %268, %260
  call void @llvm.lifetime.start.p0(i64 56, ptr %36) #5
  call void @llvm.memset.p0.i64(ptr align 8 %36, i8 0, i64 56, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %32, i64 16, i1 false), !tbaa.struct !18
  %272 = getelementptr inbounds %struct.Node__, ptr %38, i32 0, i32 0
  %273 = load i32, ptr %272, align 8, !tbaa !11
  %274 = icmp eq i32 %273, 34
  br i1 %274, label %278, label %275

275:                                              ; preds = %271
  %276 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %277 = load ptr, ptr %276, align 8, !tbaa !5
  call void %277(i32 noundef -4)
  br label %278

278:                                              ; preds = %275, %271
  %279 = getelementptr inbounds %struct.Node__, ptr %38, i32 0, i32 1
  %280 = load ptr, ptr %279, align 8, !tbaa !13
  %281 = getelementptr inbounds %struct.Node__, ptr %37, i32 0, i32 1
  store ptr %280, ptr %281, align 8, !tbaa !13
  %282 = getelementptr inbounds %struct.Node__, ptr %37, i32 0, i32 1
  %283 = load ptr, ptr %282, align 8, !tbaa !13
  %284 = icmp ne ptr %283, null
  %285 = zext i1 %284 to i64
  %286 = select i1 %284, i32 34, i32 0
  %287 = getelementptr inbounds %struct.Node__, ptr %37, i32 0, i32 0
  store i32 %286, ptr %287, align 8, !tbaa !11
  %288 = getelementptr inbounds %struct.tag_____ResolveResult__, ptr %36, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %288, ptr align 8 %37, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %36, i64 56, i1 false), !tbaa.struct !19
  %289 = load ptr, ptr %10, align 8, !tbaa !5
  %290 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 0
  %291 = load i32, ptr %290, align 8
  %292 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 1
  %293 = load ptr, ptr %292, align 8
  call void @TypeChecker__recordInfo__(ptr noundef %289, i32 %291, ptr %293, ptr noundef byval(%struct.tag_____ResolveResult__) align 8 %0)
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #5
  br label %330

294:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #5
  call void @llvm.memset.p0.i64(ptr align 8 %39, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 @__const.TypeChecker__unpackMember__.local20, i64 16, i1 false)
  %295 = getelementptr inbounds { ptr, i32 }, ptr %40, i32 0, i32 0
  %296 = load ptr, ptr %295, align 8
  %297 = getelementptr inbounds { ptr, i32 }, ptr %40, i32 0, i32 1
  %298 = load i32, ptr %297, align 8
  call void @StringBuilder__write__(ptr noundef %39, ptr %296, i32 %298)
  %299 = load ptr, ptr %23, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.tag_____Namespace__, ptr %299, i32 0, i32 0
  %301 = getelementptr inbounds { ptr, i32 }, ptr %300, i32 0, i32 0
  %302 = load ptr, ptr %301, align 8
  %303 = getelementptr inbounds { ptr, i32 }, ptr %300, i32 0, i32 1
  %304 = load i32, ptr %303, align 8
  call void @StringBuilder__write__(ptr noundef %39, ptr %302, i32 %304)
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 @__const.TypeChecker__unpackMember__.local21, i64 16, i1 false)
  %305 = getelementptr inbounds { ptr, i32 }, ptr %41, i32 0, i32 0
  %306 = load ptr, ptr %305, align 8
  %307 = getelementptr inbounds { ptr, i32 }, ptr %41, i32 0, i32 1
  %308 = load i32, ptr %307, align 8
  call void @StringBuilder__write__(ptr noundef %39, ptr %306, i32 %308)
  %309 = load ptr, ptr %10, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %309, i32 0, i32 2
  %311 = load ptr, ptr %310, align 8, !tbaa !30
  %312 = load ptr, ptr %10, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %312, i32 0, i32 5
  %314 = load ptr, ptr %313, align 8, !tbaa !32
  %315 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 0
  %316 = load i32, ptr %315, align 8
  %317 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 1
  %318 = load ptr, ptr %317, align 8
  %319 = call i64 @RangeFinder__find__(i32 %316, ptr %318)
  store i64 %319, ptr %43, align 4
  %320 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef %39)
  %321 = getelementptr inbounds { ptr, i32 }, ptr %44, i32 0, i32 0
  %322 = extractvalue { ptr, i32 } %320, 0
  store ptr %322, ptr %321, align 8
  %323 = getelementptr inbounds { ptr, i32 }, ptr %44, i32 0, i32 1
  %324 = extractvalue { ptr, i32 } %320, 1
  store i32 %324, ptr %323, align 8
  %325 = load i64, ptr %43, align 4
  %326 = getelementptr inbounds { ptr, i32 }, ptr %44, i32 0, i32 0
  %327 = load ptr, ptr %326, align 8
  %328 = getelementptr inbounds { ptr, i32 }, ptr %44, i32 0, i32 1
  %329 = load i32, ptr %328, align 8
  call void @Error__at__(ptr dead_on_unwind writable sret(%struct.tag_____Error__) align 8 %42, ptr noundef %314, i64 %325, ptr %327, i32 %329)
  call void @List__add__Error____(ptr noundef %311, ptr noundef byval(%struct.tag_____Error__) align 8 %42)
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 56, i1 false)
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #5
  br label %330

330:                                              ; preds = %294, %278
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #5
  br label %331

331:                                              ; preds = %330, %176, %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %336

332:                                              ; preds = %7
  br label %333

333:                                              ; preds = %332, %7
  %334 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %335 = load ptr, ptr %334, align 8, !tbaa !5
  call void %335(i32 noundef -5)
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 56, i1 false)
  br label %336

336:                                              ; preds = %333, %331, %126, %114
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @TypeChecker__recursiveCheckFunction__(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @TypeChecker__recordInfo__(ptr noundef, i32, ptr, ptr noundef byval(%struct.tag_____ResolveResult__) align 8) #4

; Function Attrs: nounwind uwtable
declare dso_local { ptr, ptr } @TypeChecker__getFunctionPointerTag__(ptr noundef, ptr noundef, i8 noundef zeroext, i32, ptr) #4

; Function Attrs: nounwind uwtable
declare dso_local void @TypeChecker__recursiveCheckStaticField__(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @TypeChecker__badTypeHere__(ptr noundef, i32, ptr, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = !{!15, !10, i64 104}
!15 = !{!"tag_____FunctionDef__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !12, i64 56, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !10, i64 104, !6, i64 112, !16, i64 120, !16, i64 136, !17, i64 152, !10, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !16, i64 208}
!16 = !{!"", !6, i64 0, !10, i64 8}
!17 = !{!"tag_____Tag__", !6, i64 0, !6, i64 8}
!18 = !{i64 0, i64 4, !9, i64 8, i64 8, !5}
!19 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 4, !9, i64 40, i64 8, !5, i64 48, i64 1, !20}
!20 = !{!7, !7, i64 0}
!21 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!22 = !{!23, !10, i64 72}
!23 = !{!"tag_____StaticFieldDef__", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !6, i64 40, !6, i64 48, !12, i64 56, !10, i64 72, !6, i64 80, !17, i64 88, !10, i64 104, !6, i64 112, !24, i64 120, !16, i64 152}
!24 = !{!"tag_____EvalResult__", !17, i64 0, !25, i64 16, !10, i64 24}
!25 = !{!"long", !7, i64 0}
!26 = !{!27, !7, i64 48}
!27 = !{!"tag_____ResolveResult__", !17, i64 0, !17, i64 16, !12, i64 32, !7, i64 48}
!28 = !{!29, !10, i64 28}
!29 = !{!"tag_____Namespace__", !16, i64 0, !6, i64 16, !10, i64 24, !10, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !10, i64 104}
!30 = !{!31, !6, i64 16}
!31 = !{!"tag_____TypeCheckerContext__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !10, i64 120, !10, i64 124, !6, i64 128, !10, i64 136, !7, i64 140}
!32 = !{!31, !6, i64 40}
!33 = !{!29, !6, i64 32}


; 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.string__ = type { ptr, i32 }
%struct.tag_____Error__ = type { ptr, %struct.tag_____IntRange__, %struct.string__ }
%struct.tag_____IntRange__ = type { i32, i32 }
%struct.tag_____ResolveResult__ = type { %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.Node__, i8 }
%struct.tag_____Tag__ = type { ptr, ptr }
%struct.Node__ = type { i32, ptr }
%struct.tag_____StringBuilder__ = type { ptr, i32, i32 }

@mu_____string186 = external dso_local local_unnamed_addr global %struct.string__, align 8
@top_____abandonFn__ = external dso_local thread_local local_unnamed_addr global ptr, align 8
@__const.TypeChecker__unpackMember__.local13 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.TypeChecker__unpackMember__.local20 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.TypeChecker__unpackMember__.local21 = external hidden unnamed_addr constant %struct.string__, align 8

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #1

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nounwind uwtable
declare dso_local void @StringBuilder__write__(ptr noundef, ptr, i32) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @StringBuilder__compactToString__(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @List__add__Error____(ptr noundef, ptr noundef byval(%struct.tag_____Error__) align 8) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @Error__at__(ptr dead_on_unwind noalias writable sret(%struct.tag_____Error__) align 8, ptr noundef, i64, ptr, i32) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local { i32, ptr } @Map__getOrDefault__string__Node____(ptr noundef, ptr, i32) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local i64 @RangeFinder__find__(i32, ptr) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @Namespace__toString__(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local void @TypeChecker__unpackMember__(ptr dead_on_unwind noalias writable sret(%struct.tag_____ResolveResult__) align 8 %0, ptr noundef %1, i32 %2, ptr %3, i32 %4, ptr %5, i32 noundef %6) local_unnamed_addr #4 {
  %.sroa.051 = alloca { %struct.tag_____Tag__, %struct.tag_____Tag__ }, align 8
  %8 = alloca %struct.tag_____StringBuilder__, align 8
  %9 = alloca %struct.tag_____Error__, align 8
  %10 = alloca %struct.tag_____StringBuilder__, align 8
  %11 = alloca %struct.tag_____Error__, align 8
  switch i32 %2, label %90 [
    i32 34, label %12
    i32 1, label %29
    i32 22, label %41
  ]

12:                                               ; preds = %7
  %13 = getelementptr inbounds i8, ptr %3, i64 104
  %14 = load i32, ptr %13, align 8, !tbaa !5
  %15 = and i32 %14, 8
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %17, label %18

17:                                               ; preds = %12
  tail call void @TypeChecker__recursiveCheckFunction__(ptr noundef %1, ptr noundef nonnull %3)
  br label %18

18:                                               ; preds = %17, %12
  %19 = icmp eq i32 %6, 1
  br i1 %19, label %20, label %21

20:                                               ; preds = %18
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 0, i64 32, i1 false)
  %.sroa.477.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 32
  store i32 34, ptr %.sroa.477.0..sroa_idx, align 8, !tbaa !14
  %.sroa.679.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %3, ptr %.sroa.679.0..sroa_idx, align 8, !tbaa !15
  %.sroa.780.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 48
  store i64 0, ptr %.sroa.780.0..sroa_idx, align 8
  tail call void @TypeChecker__recordInfo__(ptr noundef %1, i32 %4, ptr %5, ptr noundef byval(%struct.tag_____ResolveResult__) align 8 %0)
  br label %93

21:                                               ; preds = %18
  %22 = load i32, ptr %13, align 8, !tbaa !5
  %23 = trunc i32 %22 to i8
  %24 = lshr i8 %23, 2
  %25 = and i8 %24, 1
  %26 = tail call { ptr, ptr } @TypeChecker__getFunctionPointerTag__(ptr noundef %1, ptr noundef nonnull %3, i8 noundef zeroext %25, i32 %4, ptr %5)
  %27 = extractvalue { ptr, ptr } %26, 0
  %28 = extractvalue { ptr, ptr } %26, 1
  store ptr %27, ptr %0, align 8, !tbaa !15
  %.sroa.567.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %28, ptr %.sroa.567.0..sroa_idx, align 8, !tbaa !15
  %.sroa.668.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.668.0..sroa_idx, i8 0, i64 16, i1 false)
  %.sroa.669.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 32
  store i32 34, ptr %.sroa.669.0..sroa_idx, align 8, !tbaa !14
  %.sroa.871.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %3, ptr %.sroa.871.0..sroa_idx, align 8, !tbaa !15
  %.sroa.972.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 48
  store i64 0, ptr %.sroa.972.0..sroa_idx, align 8
  tail call void @TypeChecker__recordInfo__(ptr noundef %1, i32 %4, ptr %5, ptr noundef nonnull byval(%struct.tag_____ResolveResult__) align 8 %0)
  br label %93

29:                                               ; preds = %7
  %30 = getelementptr inbounds i8, ptr %3, i64 72
  %31 = load i32, ptr %30, align 8, !tbaa !16
  %32 = and i32 %31, 64
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %29
  tail call void @TypeChecker__recursiveCheckStaticField__(ptr noundef %1, ptr noundef nonnull %3)
  %.pre = load i32, ptr %30, align 8, !tbaa !16
  br label %35

35:                                               ; preds = %34, %29
  %36 = phi i32 [ %.pre, %34 ], [ %31, %29 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %.sroa.051)
  %.sroa.9.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 49
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(7) %.sroa.9.0..sroa_idx, i8 0, i64 7, i1 false)
  %37 = getelementptr inbounds i8, ptr %3, i64 88
  %.sroa.051.16.sroa_idx = getelementptr inbounds i8, ptr %.sroa.051, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.051.16.sroa_idx, i8 0, i64 16, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.051, ptr noundef nonnull align 8 dereferenceable(16) %37, i64 16, i1 false), !tbaa.struct !20
  %38 = trunc i32 %36 to i8
  %39 = lshr i8 %38, 3
  %40 = and i8 %39, 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %.sroa.051, i64 32, i1 false), !tbaa.struct !21
  %.sroa.552.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 32
  store i32 1, ptr %.sroa.552.0..sroa_idx, align 8, !tbaa !14
  %.sroa.754.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %3, ptr %.sroa.754.0..sroa_idx, align 8, !tbaa !15
  %.sroa.855.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 48
  store i8 %40, ptr %.sroa.855.0..sroa_idx, align 8, !tbaa !22
  tail call void @TypeChecker__recordInfo__(ptr noundef %1, i32 %4, ptr %5, ptr noundef byval(%struct.tag_____ResolveResult__) align 8 %0)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %.sroa.051)
  br label %93

41:                                               ; preds = %7
  switch i32 %6, label %45 [
    i32 2, label %42
    i32 0, label %44
  ]

42:                                               ; preds = %41
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 0, i64 32, i1 false)
  %.not128 = icmp eq ptr %3, null
  %43 = select i1 %.not128, i32 0, i32 22
  %.sroa.437.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %43, ptr %.sroa.437.0..sroa_idx, align 8, !tbaa !14
  %.sroa.639.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %3, ptr %.sroa.639.0..sroa_idx, align 8, !tbaa !15
  %.sroa.740.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 48
  store i64 0, ptr %.sroa.740.0..sroa_idx, align 8
  tail call void @TypeChecker__recordInfo__(ptr noundef %1, i32 %4, ptr %5, ptr noundef byval(%struct.tag_____ResolveResult__) align 8 %0)
  br label %93

44:                                               ; preds = %41
  tail call void @TypeChecker__badTypeHere__(ptr noundef %1, i32 %4, ptr %5, ptr noundef %3)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %0, i8 0, i64 56, i1 false)
  br label %93

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %3, i64 28
  %47 = load i32, ptr %46, align 4, !tbaa !23
  %48 = and i32 %47, 223741
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %62

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, i8 0, i64 16, i1 false)
  %.sroa.030.0.copyload = load ptr, ptr @__const.TypeChecker__unpackMember__.local13, align 8
  %.sroa.431.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.TypeChecker__unpackMember__.local13, i64 8), align 8
  call void @StringBuilder__write__(ptr noundef nonnull %8, ptr %.sroa.030.0.copyload, i32 %.sroa.431.0.copyload)
  %51 = call { ptr, i32 } @Namespace__toString__(ptr noundef nonnull %3)
  %52 = extractvalue { ptr, i32 } %51, 0
  %53 = extractvalue { ptr, i32 } %51, 1
  call void @StringBuilder__write__(ptr noundef nonnull %8, ptr %52, i32 %53)
  %54 = getelementptr inbounds i8, ptr %1, i64 16
  %55 = load ptr, ptr %54, align 8, !tbaa !25
  %56 = getelementptr inbounds i8, ptr %1, i64 40
  %57 = load ptr, ptr %56, align 8, !tbaa !27
  %58 = call i64 @RangeFinder__find__(i32 %4, ptr %5)
  %59 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef nonnull %8)
  %60 = extractvalue { ptr, i32 } %59, 0
  %61 = extractvalue { ptr, i32 } %59, 1
  call void @Error__at__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Error__) align 8 %9, ptr noundef %57, i64 %58, ptr %60, i32 %61)
  call void @List__add__Error____(ptr noundef %55, ptr noundef nonnull byval(%struct.tag_____Error__) align 8 %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  br label %62

62:                                               ; preds = %50, %45
  %63 = getelementptr inbounds i8, ptr %3, i64 32
  %64 = load ptr, ptr %63, align 8, !tbaa !28
  %65 = load ptr, ptr @mu_____string186, align 8
  %66 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string186, i64 8), align 8
  %67 = call { i32, ptr } @Map__getOrDefault__string__Node____(ptr noundef %64, ptr %65, i32 %66)
  %68 = extractvalue { i32, ptr } %67, 0
  %69 = extractvalue { i32, ptr } %67, 1
  %.not = icmp eq ptr %69, null
  %70 = icmp ne i32 %68, 34
  %spec.select = select i1 %.not, i1 true, i1 %70
  br i1 %spec.select, label %78, label %71

71:                                               ; preds = %62
  %72 = getelementptr inbounds i8, ptr %69, i64 104
  %73 = load i32, ptr %72, align 8, !tbaa !5
  %74 = and i32 %73, 8
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %76, label %77

76:                                               ; preds = %71
  call void @TypeChecker__recursiveCheckFunction__(ptr noundef %1, ptr noundef nonnull %69)
  br label %77

77:                                               ; preds = %71, %76
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 0, i64 32, i1 false)
  %.sroa.413.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 32
  store i32 34, ptr %.sroa.413.0..sroa_idx, align 8, !tbaa !14
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %69, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !15
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 48
  store i64 0, ptr %.sroa.7.0..sroa_idx, align 8
  call void @TypeChecker__recordInfo__(ptr noundef %1, i32 %4, ptr %5, ptr noundef byval(%struct.tag_____ResolveResult__) align 8 %0)
  br label %93

78:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %10, i8 0, i64 16, i1 false)
  %.sroa.03.0.copyload = load ptr, ptr @__const.TypeChecker__unpackMember__.local20, align 8
  %.sroa.44.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.TypeChecker__unpackMember__.local20, i64 8), align 8
  call void @StringBuilder__write__(ptr noundef nonnull %10, ptr %.sroa.03.0.copyload, i32 %.sroa.44.0.copyload)
  %79 = load ptr, ptr %3, align 8
  %80 = getelementptr inbounds i8, ptr %3, i64 8
  %81 = load i32, ptr %80, align 8
  call void @StringBuilder__write__(ptr noundef nonnull %10, ptr %79, i32 %81)
  %.sroa.02.0.copyload = load ptr, ptr @__const.TypeChecker__unpackMember__.local21, align 8
  %.sroa.4.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.TypeChecker__unpackMember__.local21, i64 8), align 8
  call void @StringBuilder__write__(ptr noundef nonnull %10, ptr %.sroa.02.0.copyload, i32 %.sroa.4.0.copyload)
  %82 = getelementptr inbounds i8, ptr %1, i64 16
  %83 = load ptr, ptr %82, align 8, !tbaa !25
  %84 = getelementptr inbounds i8, ptr %1, i64 40
  %85 = load ptr, ptr %84, align 8, !tbaa !27
  %86 = call i64 @RangeFinder__find__(i32 %4, ptr %5)
  %87 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef nonnull %10)
  %88 = extractvalue { ptr, i32 } %87, 0
  %89 = extractvalue { ptr, i32 } %87, 1
  call void @Error__at__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Error__) align 8 %11, ptr noundef %85, i64 %86, ptr %88, i32 %89)
  call void @List__add__Error____(ptr noundef %83, ptr noundef nonnull byval(%struct.tag_____Error__) align 8 %11)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %0, i8 0, i64 56, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  br label %93

90:                                               ; preds = %7
  %91 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %92 = load ptr, ptr %91, align 8, !tbaa !15
  tail call void %92(i32 noundef -5) #5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %0, i8 0, i64 56, i1 false)
  br label %93

93:                                               ; preds = %42, %44, %78, %77, %20, %21, %90, %35
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @TypeChecker__recursiveCheckFunction__(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @TypeChecker__recordInfo__(ptr noundef, i32, ptr, ptr noundef byval(%struct.tag_____ResolveResult__) align 8) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local { ptr, ptr } @TypeChecker__getFunctionPointerTag__(ptr noundef, ptr noundef, i8 noundef zeroext, i32, ptr) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @TypeChecker__recursiveCheckStaticField__(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @TypeChecker__badTypeHere__(ptr noundef, i32, ptr, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!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, !11, i64 104}
!6 = !{!"tag_____FunctionDef__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !11, i64 104, !7, i64 112, !12, i64 120, !12, i64 136, !13, i64 152, !11, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !12, i64 208}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !7, i64 8}
!11 = !{!"int", !8, i64 0}
!12 = !{!"", !7, i64 0, !11, i64 8}
!13 = !{!"tag_____Tag__", !7, i64 0, !7, i64 8}
!14 = !{!11, !11, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !11, i64 72}
!17 = !{!"tag_____StaticFieldDef__", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !7, i64 40, !7, i64 48, !10, i64 56, !11, i64 72, !7, i64 80, !13, i64 88, !11, i64 104, !7, i64 112, !18, i64 120, !12, i64 152}
!18 = !{!"tag_____EvalResult__", !13, i64 0, !19, i64 16, !11, i64 24}
!19 = !{!"long", !8, i64 0}
!20 = !{i64 0, i64 8, !15, i64 8, i64 8, !15}
!21 = !{i64 0, i64 8, !15, i64 8, i64 8, !15, i64 16, i64 8, !15, i64 24, i64 8, !15, i64 32, i64 4, !14, i64 40, i64 8, !15, i64 48, i64 1, !22}
!22 = !{!8, !8, i64 0}
!23 = !{!24, !11, i64 28}
!24 = !{!"tag_____Namespace__", !12, i64 0, !7, i64 16, !11, i64 24, !11, i64 28, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !11, i64 104}
!25 = !{!26, !7, i64 16}
!26 = !{!"tag_____TypeCheckerContext__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !11, i64 120, !11, i64 124, !7, i64 128, !11, i64 136, !8, i64 140}
!27 = !{!26, !7, i64 40}
!28 = !{!24, !7, i64 32}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass