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

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

@mu_____string4 = external dso_local global %struct.string__, align 8
@mu_____string3 = external dso_local global %struct.string__, align 8
@mu_____string176 = external dso_local global %struct.string__, align 8
@top_____abandonFn__ = external dso_local thread_local global ptr, align 8
@Tag__null___ = external hidden global %struct.tag_____Tag__, 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 zeroext i8 @string__equals__(ptr, i32, ptr, i32) #4

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, ptr } @TypeChecker__checkToken__(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca %struct.tag_____Tag__, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.Node__, align 8
  %7 = alloca i8, align 1
  %8 = alloca %struct.Node__, align 8
  %9 = alloca i32, align 4
  %10 = alloca %struct.Node__, align 8
  %11 = alloca %struct.Node__, align 8
  %12 = alloca %struct.Node__, align 8
  %13 = alloca %struct.tag_____ResolveResult__, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.tag_____Token__, ptr %14, i32 0, i32 1
  %16 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8
  %18 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 1
  %19 = load i32, ptr %18, align 8
  %20 = load ptr, ptr @mu_____string176, align 8
  %21 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string176, i32 0, i32 1), align 8
  %22 = call zeroext i8 @string__equals__(ptr %17, i32 %19, ptr %20, i32 %21)
  %23 = icmp ne i8 %22, 0
  br i1 %23, label %24, label %42

24:                                               ; preds = %2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 @Tag__null___, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.Node__, ptr %6, i32 0, i32 1
  store ptr %25, ptr %26, align 8, !tbaa !10
  %27 = getelementptr inbounds %struct.Node__, ptr %6, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !10
  %29 = icmp ne ptr %28, null
  %30 = zext i1 %29 to i64
  %31 = select i1 %29, i32 21, i32 0
  %32 = getelementptr inbounds %struct.Node__, ptr %6, i32 0, i32 0
  store i32 %31, ptr %32, align 8, !tbaa !13
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds { i32, ptr }, ptr %6, i32 0, i32 0
  %35 = load i32, ptr %34, align 8
  %36 = getelementptr inbounds { i32, ptr }, ptr %6, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8
  %38 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8
  %40 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8
  call void @TypeChecker__recordTag__(ptr noundef %33, i32 %35, ptr %37, ptr %39, ptr %41)
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  br label %167

42:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.tag_____Token__, ptr %43, i32 0, i32 1
  %45 = getelementptr inbounds { ptr, i32 }, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8
  %47 = getelementptr inbounds { ptr, i32 }, ptr %44, i32 0, i32 1
  %48 = load i32, ptr %47, align 8
  %49 = load ptr, ptr @mu_____string3, align 8
  %50 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string3, i32 0, i32 1), align 8
  %51 = call zeroext i8 @string__equals__(ptr %46, i32 %48, ptr %49, i32 %50)
  store i8 %51, ptr %7, align 1, !tbaa !14
  %52 = load i8, ptr %7, align 1, !tbaa !14
  %53 = icmp ne i8 %52, 0
  br i1 %53, label %64, label %54

54:                                               ; preds = %42
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.tag_____Token__, ptr %55, i32 0, i32 1
  %57 = getelementptr inbounds { ptr, i32 }, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8
  %59 = getelementptr inbounds { ptr, i32 }, ptr %56, i32 0, i32 1
  %60 = load i32, ptr %59, align 8
  %61 = load ptr, ptr @mu_____string4, align 8
  %62 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string4, i32 0, i32 1), align 8
  %63 = call zeroext i8 @string__equals__(ptr %58, i32 %60, ptr %61, i32 %62)
  store i8 %63, ptr %7, align 1, !tbaa !14
  br label %64

64:                                               ; preds = %54, %42
  %65 = load i8, ptr %7, align 1, !tbaa !14
  %66 = icmp ne i8 %65, 0
  br i1 %66, label %67, label %89

67:                                               ; preds = %64
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %68, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !15
  %71 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %70, i32 0, i32 14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %71, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.Node__, ptr %8, i32 0, i32 1
  store ptr %72, ptr %73, align 8, !tbaa !10
  %74 = getelementptr inbounds %struct.Node__, ptr %8, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8, !tbaa !10
  %76 = icmp ne ptr %75, null
  %77 = zext i1 %76 to i64
  %78 = select i1 %76, i32 21, i32 0
  %79 = getelementptr inbounds %struct.Node__, ptr %8, i32 0, i32 0
  store i32 %78, ptr %79, align 8, !tbaa !13
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 0
  %82 = load i32, ptr %81, align 8
  %83 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8
  %85 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8
  %87 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 1
  %88 = load ptr, ptr %87, align 8
  call void @TypeChecker__recordTag__(ptr noundef %80, i32 %82, ptr %84, ptr %86, ptr %88)
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  br label %166

89:                                               ; preds = %64
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.tag_____Token__, ptr %90, i32 0, i32 0
  %92 = load i32, ptr %91, align 8, !tbaa !17
  %93 = icmp eq i32 %92, 2
  br i1 %93, label %94, label %116

94:                                               ; preds = %89
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %95, i32 0, i32 4
  %97 = load ptr, ptr %96, align 8, !tbaa !15
  %98 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %97, i32 0, i32 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %98, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.Node__, ptr %10, i32 0, i32 1
  store ptr %99, ptr %100, align 8, !tbaa !10
  %101 = getelementptr inbounds %struct.Node__, ptr %10, i32 0, i32 1
  %102 = load ptr, ptr %101, align 8, !tbaa !10
  %103 = icmp ne ptr %102, null
  %104 = zext i1 %103 to i64
  %105 = select i1 %103, i32 21, i32 0
  %106 = getelementptr inbounds %struct.Node__, ptr %10, i32 0, i32 0
  store i32 %105, ptr %106, align 8, !tbaa !13
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds { i32, ptr }, ptr %10, i32 0, i32 0
  %109 = load i32, ptr %108, align 8
  %110 = getelementptr inbounds { i32, ptr }, ptr %10, i32 0, i32 1
  %111 = load ptr, ptr %110, align 8
  %112 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8
  %114 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8
  call void @TypeChecker__recordTag__(ptr noundef %107, i32 %109, ptr %111, ptr %113, ptr %115)
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %166

116:                                              ; preds = %89
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.tag_____Token__, ptr %117, i32 0, i32 0
  %119 = load i32, ptr %118, align 8, !tbaa !17
  %120 = icmp eq i32 %119, 3
  br i1 %120, label %121, label %143

121:                                              ; preds = %116
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !15
  %125 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %124, i32 0, i32 15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %125, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.Node__, ptr %11, i32 0, i32 1
  store ptr %126, ptr %127, align 8, !tbaa !10
  %128 = getelementptr inbounds %struct.Node__, ptr %11, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8, !tbaa !10
  %130 = icmp ne ptr %129, null
  %131 = zext i1 %130 to i64
  %132 = select i1 %130, i32 21, i32 0
  %133 = getelementptr inbounds %struct.Node__, ptr %11, i32 0, i32 0
  store i32 %132, ptr %133, align 8, !tbaa !13
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds { i32, ptr }, ptr %11, i32 0, i32 0
  %136 = load i32, ptr %135, align 8
  %137 = getelementptr inbounds { i32, ptr }, ptr %11, i32 0, i32 1
  %138 = load ptr, ptr %137, align 8
  %139 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8
  %141 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 1
  %142 = load ptr, ptr %141, align 8
  call void @TypeChecker__recordTag__(ptr noundef %134, i32 %136, ptr %138, ptr %140, ptr %142)
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  br label %166

143:                                              ; preds = %116
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.tag_____Token__, ptr %144, i32 0, i32 0
  %146 = load i32, ptr %145, align 8, !tbaa !17
  %147 = icmp eq i32 %146, 0
  br i1 %147, label %148, label %163

148:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.Node__, ptr %12, i32 0, i32 1
  store ptr %149, ptr %150, align 8, !tbaa !10
  %151 = getelementptr inbounds %struct.Node__, ptr %12, i32 0, i32 1
  %152 = load ptr, ptr %151, align 8, !tbaa !10
  %153 = icmp ne ptr %152, null
  %154 = zext i1 %153 to i64
  %155 = select i1 %153, i32 21, i32 0
  %156 = getelementptr inbounds %struct.Node__, ptr %12, i32 0, i32 0
  store i32 %155, ptr %156, align 8, !tbaa !13
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds { i32, ptr }, ptr %12, i32 0, i32 0
  %159 = load i32, ptr %158, align 8
  %160 = getelementptr inbounds { i32, ptr }, ptr %12, i32 0, i32 1
  %161 = load ptr, ptr %160, align 8
  call void @TypeChecker__resolveExpression__(ptr dead_on_unwind writable sret(%struct.tag_____ResolveResult__) align 8 %13, ptr noundef %157, i32 %159, ptr %161, i32 noundef 0)
  %162 = getelementptr inbounds %struct.tag_____ResolveResult__, ptr %13, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %162, i64 16, i1 false), !tbaa.struct !9
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  br label %166

163:                                              ; preds = %143
  %164 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %165 = load ptr, ptr %164, align 8, !tbaa !5
  call void %165(i32 noundef -1)
  call void @llvm.memset.p0.i64(ptr align 8 %3, i8 0, i64 16, i1 false)
  store i32 1, ptr %9, align 4
  br label %166

166:                                              ; preds = %163, %148, %121, %94, %67
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  br label %167

167:                                              ; preds = %166, %24
  %168 = load { ptr, ptr }, ptr %3, align 8
  ret { ptr, ptr } %168
}

; Function Attrs: nounwind uwtable
declare dso_local void @TypeChecker__resolveExpression__(ptr dead_on_unwind noalias writable sret(%struct.tag_____ResolveResult__) align 8, ptr noundef, i32, ptr, i32 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 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!10 = !{!11, !6, i64 8}
!11 = !{!"", !12, i64 0, !6, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!11, !12, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !6, i64 32}
!16 = !{!"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, !12, i64 120, !12, i64 124, !6, i64 128, !12, i64 136, !7, i64 140}
!17 = !{!18, !12, i64 0}
!18 = !{!"tag_____Token__", !12, i64 0, !19, i64 8, !20, i64 24, !20, i64 32, !12, i64 40}
!19 = !{!"", !6, i64 0, !12, i64 8}
!20 = !{!"tag_____IntRange__", !12, i64 0, !12, i64 4}


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

@mu_____string4 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string3 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string176 = 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
@Tag__null___ = external hidden local_unnamed_addr global %struct.tag_____Tag__, align 8

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @string__equals__(ptr, i32, ptr, i32) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, ptr } @TypeChecker__checkToken__(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca %struct.tag_____ResolveResult__, align 8
  %4 = getelementptr inbounds i8, ptr %1, i64 8
  %5 = load ptr, ptr %4, align 8
  %6 = getelementptr inbounds i8, ptr %1, i64 16
  %7 = load i32, ptr %6, align 8
  %8 = load ptr, ptr @mu_____string176, align 8
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string176, i64 8), align 8
  %10 = tail call zeroext i8 @string__equals__(ptr %5, i32 %7, ptr %8, i32 %9)
  %.not = icmp eq i8 %10, 0
  br i1 %.not, label %12, label %11

11:                                               ; preds = %2
  %.sroa.038.0.copyload = load ptr, ptr @Tag__null___, align 8, !tbaa !5
  %.sroa.11.0.copyload = load ptr, ptr getelementptr inbounds (i8, ptr @Tag__null___, i64 8), align 8, !tbaa !5
  tail call void @TypeChecker__recordTag__(ptr noundef %0, i32 21, ptr nonnull %1, ptr %.sroa.038.0.copyload, ptr %.sroa.11.0.copyload)
  br label %42

12:                                               ; preds = %2
  %13 = load ptr, ptr %4, align 8
  %14 = load i32, ptr %6, align 8
  %15 = load ptr, ptr @mu_____string3, align 8
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string3, i64 8), align 8
  %17 = tail call zeroext i8 @string__equals__(ptr %13, i32 %14, ptr %15, i32 %16)
  %.not58 = icmp eq i8 %17, 0
  br i1 %.not58, label %18, label %.critedge

18:                                               ; preds = %12
  %19 = load ptr, ptr %4, align 8
  %20 = load i32, ptr %6, align 8
  %21 = load ptr, ptr @mu_____string4, align 8
  %22 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string4, i64 8), align 8
  %23 = tail call zeroext i8 @string__equals__(ptr %19, i32 %20, ptr %21, i32 %22)
  %24 = icmp eq i8 %23, 0
  br i1 %24, label %28, label %.critedge

.critedge:                                        ; preds = %12, %18
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds i8, ptr %26, i64 224
  %.sroa.038.0.copyload42 = load ptr, ptr %27, align 8, !tbaa !5
  %.sroa.11.0..sroa_idx = getelementptr inbounds i8, ptr %26, i64 232
  %.sroa.11.0.copyload46 = load ptr, ptr %.sroa.11.0..sroa_idx, align 8, !tbaa !5
  tail call void @TypeChecker__recordTag__(ptr noundef %0, i32 21, ptr nonnull %1, ptr %.sroa.038.0.copyload42, ptr %.sroa.11.0.copyload46)
  br label %42

28:                                               ; preds = %18
  %29 = load i32, ptr %1, align 8, !tbaa !12
  switch i32 %29, label %39 [
    i32 2, label %30
    i32 3, label %34
    i32 0, label %38
  ]

30:                                               ; preds = %28
  %31 = getelementptr inbounds i8, ptr %0, i64 32
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds i8, ptr %32, i64 256
  %.sroa.038.0.copyload43 = load ptr, ptr %33, align 8, !tbaa !5
  %.sroa.11.0..sroa_idx47 = getelementptr inbounds i8, ptr %32, i64 264
  %.sroa.11.0.copyload48 = load ptr, ptr %.sroa.11.0..sroa_idx47, align 8, !tbaa !5
  tail call void @TypeChecker__recordTag__(ptr noundef %0, i32 21, ptr nonnull %1, ptr %.sroa.038.0.copyload43, ptr %.sroa.11.0.copyload48)
  br label %42

34:                                               ; preds = %28
  %35 = getelementptr inbounds i8, ptr %0, i64 32
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = getelementptr inbounds i8, ptr %36, i64 240
  %.sroa.038.0.copyload44 = load ptr, ptr %37, align 8, !tbaa !5
  %.sroa.11.0..sroa_idx49 = getelementptr inbounds i8, ptr %36, i64 248
  %.sroa.11.0.copyload50 = load ptr, ptr %.sroa.11.0..sroa_idx49, align 8, !tbaa !5
  tail call void @TypeChecker__recordTag__(ptr noundef %0, i32 21, ptr nonnull %1, ptr %.sroa.038.0.copyload44, ptr %.sroa.11.0.copyload50)
  br label %42

38:                                               ; preds = %28
  call void @TypeChecker__resolveExpression__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____ResolveResult__) align 8 %3, ptr noundef %0, i32 21, ptr nonnull %1, i32 noundef 0)
  %.sroa.038.0.copyload45 = load ptr, ptr %3, align 8, !tbaa !5
  %.sroa.11.0..sroa_idx51 = getelementptr inbounds i8, ptr %3, i64 8
  %.sroa.11.0.copyload52 = load ptr, ptr %.sroa.11.0..sroa_idx51, align 8, !tbaa !5
  br label %42

39:                                               ; preds = %28
  %40 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  tail call void %41(i32 noundef -1) #2
  br label %42

42:                                               ; preds = %.critedge, %30, %34, %38, %39, %11
  %.sroa.11.1 = phi ptr [ %.sroa.11.0.copyload, %11 ], [ %.sroa.11.0.copyload46, %.critedge ], [ %.sroa.11.0.copyload48, %30 ], [ %.sroa.11.0.copyload50, %34 ], [ %.sroa.11.0.copyload52, %38 ], [ null, %39 ]
  %.sroa.038.1 = phi ptr [ %.sroa.038.0.copyload, %11 ], [ %.sroa.038.0.copyload42, %.critedge ], [ %.sroa.038.0.copyload43, %30 ], [ %.sroa.038.0.copyload44, %34 ], [ %.sroa.038.0.copyload45, %38 ], [ null, %39 ]
  %.fca.0.insert = insertvalue { ptr, ptr } poison, ptr %.sroa.038.1, 0
  %.fca.1.insert = insertvalue { ptr, ptr } %.fca.0.insert, ptr %.sroa.11.1, 1
  ret { ptr, ptr } %.fca.1.insert
}

; Function Attrs: nounwind uwtable
declare dso_local void @TypeChecker__resolveExpression__(ptr dead_on_unwind noalias writable sret(%struct.tag_____ResolveResult__) align 8, ptr noundef, i32, ptr, i32 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 = { 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, !6, i64 32}
!10 = !{!"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, !11, i64 120, !11, i64 124, !6, i64 128, !11, i64 136, !7, i64 140}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"tag_____Token__", !11, i64 0, !14, i64 8, !15, i64 24, !15, i64 32, !11, i64 40}
!14 = !{!"", !6, i64 0, !11, i64 8}
!15 = !{!"tag_____IntRange__", !11, i64 0, !11, i64 4}


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