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

; 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_____Tag__ = type { ptr, ptr }
%struct.Node__ = type { i32, ptr }
%struct.tag_____Set__Tag____ = type { %struct.tag_____Array__SetEntry__Tag______, i32, i32, i32 }
%struct.tag_____Array__SetEntry__Tag______ = type { ptr, i32 }
%struct.tag_____MatchStatement__ = type { ptr, %struct.Node__, ptr, ptr, ptr, ptr, ptr }
%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 }
%struct.tag_____Token__ = type { i32, %struct.string__, %struct.tag_____IntRange__, %struct.tag_____IntRange__, i32 }
%struct.tag_____List__Ptr__MatchCase______ = type { ptr, i32, i32 }
%struct.tag_____MatchCase__ = type { %struct.Node__, ptr, ptr, ptr, %struct.Node__, i32, %struct.tag_____Tag__ }

@mu_____string0 = external dso_local global %struct.string__, align 8
@mu_____string278 = external dso_local global %struct.string__, align 8
@mu_____string281 = external dso_local global %struct.string__, align 8
@mu_____string277 = external dso_local global %struct.string__, align 8
@mu_____string280 = external dso_local global %struct.string__, align 8
@mu_____string176 = external dso_local global %struct.string__, align 8
@mu_____string279 = external dso_local global %struct.string__, align 8
@top_____abandonFn__ = external dso_local thread_local global ptr, 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 @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 i64 @RangeFinder__find__(i32, ptr) #4

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @Set__tryAdd__Tag____(ptr noundef, ptr, ptr) #4

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @Set__contains__Tag____(ptr noundef, ptr, ptr) #4

; Function Attrs: nounwind uwtable
define dso_local void @TypeChecker__checkMatchStatement__(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.tag_____Tag__, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.tag_____Error__, align 8
  %8 = alloca %struct.tag_____IntRange__, align 4
  %9 = alloca %struct.string__, align 8
  %10 = alloca i8, align 1
  %11 = alloca %struct.Node__, align 8
  %12 = alloca %struct.Node__, align 8
  %13 = alloca %struct.string__, align 8
  %14 = alloca %struct.tag_____Tag__, align 8
  %15 = alloca %struct.tag_____Tag__, align 8
  %16 = alloca %struct.tag_____Tag__, align 8
  %17 = alloca %struct.tag_____Tag__, align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct.tag_____Set__Tag____, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca %struct.tag_____Tag__, align 8
  %24 = alloca %struct.tag_____Tag__, align 8
  %25 = alloca %struct.Node__, align 8
  %26 = alloca %struct.Node__, align 8
  %27 = alloca %struct.Node__, align 8
  %28 = alloca %struct.tag_____Error__, align 8
  %29 = alloca %struct.tag_____IntRange__, align 4
  %30 = alloca %struct.Node__, align 8
  %31 = alloca %struct.Node__, align 8
  %32 = alloca %struct.Node__, align 8
  %33 = alloca %struct.tag_____Error__, align 8
  %34 = alloca %struct.tag_____IntRange__, align 4
  %35 = alloca %struct.tag_____Tag__, align 8
  %36 = alloca i32, align 4
  %37 = alloca %struct.tag_____Error__, align 8
  %38 = alloca %struct.tag_____IntRange__, align 4
  %39 = alloca i8, align 1
  %40 = alloca %struct.tag_____Error__, align 8
  %41 = alloca %struct.tag_____IntRange__, align 4
  %42 = alloca %struct.tag_____Error__, align 8
  %43 = alloca %struct.tag_____IntRange__, align 4
  %44 = alloca %struct.tag_____Tag__, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.tag_____MatchStatement__, ptr %46, i32 0, i32 1
  %48 = getelementptr inbounds { i32, ptr }, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 8
  %50 = getelementptr inbounds { i32, ptr }, ptr %47, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8
  %52 = call { ptr, ptr } @TypeChecker__checkExpression__(ptr noundef %45, i32 %49, ptr %51)
  %53 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 0
  %54 = extractvalue { ptr, ptr } %52, 0
  store ptr %54, ptr %53, align 8
  %55 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 1
  %56 = extractvalue { ptr, ptr } %52, 1
  store ptr %56, ptr %55, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store ptr null, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.tag_____Tag__, ptr %5, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %90

60:                                               ; preds = %2
  %61 = getelementptr inbounds %struct.tag_____Tag__, ptr %5, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = getelementptr inbounds %struct.tag_____Namespace__, ptr %62, i32 0, i32 3
  %64 = load i32, ptr %63, align 4, !tbaa !11
  %65 = and i32 %64, 8192
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %72

67:                                               ; preds = %60
  %68 = getelementptr inbounds %struct.tag_____Tag__, ptr %5, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.tag_____Namespace__, ptr %69, i32 0, i32 8
  %71 = load ptr, ptr %70, align 8, !tbaa !15
  store ptr %71, ptr %6, align 8, !tbaa !5
  br label %89

72:                                               ; preds = %60
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %73, i32 0, i32 2
  %75 = load ptr, ptr %74, align 8, !tbaa !16
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %76, i32 0, i32 5
  %78 = load ptr, ptr %77, align 8, !tbaa !18
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.tag_____MatchStatement__, ptr %79, i32 0, i32 1
  %81 = getelementptr inbounds { i32, ptr }, ptr %80, i32 0, i32 0
  %82 = load i32, ptr %81, align 8
  %83 = getelementptr inbounds { i32, ptr }, ptr %80, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8
  %85 = call i64 @RangeFinder__find__(i32 %82, ptr %84)
  store i64 %85, ptr %8, align 4
  %86 = load i64, ptr %8, align 4
  %87 = load ptr, ptr @mu_____string277, align 8
  %88 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string277, i32 0, i32 1), align 8
  call void @Error__at__(ptr dead_on_unwind writable sret(%struct.tag_____Error__) align 8 %7, ptr noundef %78, i64 %86, ptr %87, i32 %88)
  call void @List__add__Error____(ptr noundef %75, ptr noundef byval(%struct.tag_____Error__) align 8 %7)
  br label %89

89:                                               ; preds = %72, %67
  br label %90

90:                                               ; preds = %89, %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.tag_____MatchStatement__, ptr %91, i32 0, i32 1
  %93 = getelementptr inbounds %struct.Node__, ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 8, !tbaa !19
  %95 = icmp eq i32 %94, 21
  %96 = zext i1 %95 to i32
  %97 = trunc i32 %96 to i8
  store i8 %97, ptr %10, align 1, !tbaa !22
  %98 = load i8, ptr %10, align 1, !tbaa !22
  %99 = icmp ne i8 %98, 0
  br i1 %99, label %100, label %117

100:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.tag_____MatchStatement__, ptr %101, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %102, i64 16, i1 false), !tbaa.struct !23
  %103 = getelementptr inbounds %struct.Node__, ptr %11, i32 0, i32 0
  %104 = load i32, ptr %103, align 8, !tbaa !25
  %105 = icmp eq i32 %104, 21
  br i1 %105, label %109, label %106

106:                                              ; preds = %100
  %107 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  call void %108(i32 noundef -4)
  br label %109

109:                                              ; preds = %106, %100
  %110 = getelementptr inbounds %struct.Node__, ptr %11, i32 0, i32 1
  %111 = load ptr, ptr %110, align 8, !tbaa !26
  %112 = getelementptr inbounds %struct.tag_____Token__, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 8, !tbaa !27
  %114 = icmp eq i32 %113, 0
  %115 = zext i1 %114 to i32
  %116 = trunc i32 %115 to i8
  store i8 %116, ptr %10, align 1, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  br label %117

117:                                              ; preds = %109, %90
  %118 = load i8, ptr %10, align 1, !tbaa !22
  %119 = icmp ne i8 %118, 0
  br i1 %119, label %120, label %133

120:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.tag_____MatchStatement__, ptr %121, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %122, i64 16, i1 false), !tbaa.struct !23
  %123 = getelementptr inbounds %struct.Node__, ptr %12, i32 0, i32 0
  %124 = load i32, ptr %123, align 8, !tbaa !25
  %125 = icmp eq i32 %124, 21
  br i1 %125, label %129, label %126

126:                                              ; preds = %120
  %127 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  call void %128(i32 noundef -4)
  br label %129

129:                                              ; preds = %126, %120
  %130 = getelementptr inbounds %struct.Node__, ptr %12, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !26
  %132 = getelementptr inbounds %struct.tag_____Token__, ptr %131, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %132, i64 16, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  br label %134

133:                                              ; preds = %117
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 @mu_____string0, i64 16, i1 false), !tbaa.struct !30
  br label %134

134:                                              ; preds = %133, %129
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %135 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8
  %137 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 1
  %138 = load i32, ptr %137, align 8
  %139 = load ptr, ptr @mu_____string0, align 8
  %140 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string0, i32 0, i32 1), align 8
  %141 = call zeroext i8 @string__equals__(ptr %136, i32 %138, ptr %139, i32 %140)
  %142 = icmp ne i8 %141, 0
  br i1 %142, label %156, label %143

143:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %144, i32 0, i32 10
  %146 = load ptr, ptr %145, align 8, !tbaa !31
  %147 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 0
  %148 = load ptr, ptr %147, align 8
  %149 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 1
  %150 = load i32, ptr %149, align 8
  %151 = call { ptr, ptr } @Map__get__string__Tag____(ptr noundef %146, ptr %148, i32 %150)
  %152 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 0
  %153 = extractvalue { ptr, ptr } %151, 0
  store ptr %153, ptr %152, align 8
  %154 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 1
  %155 = extractvalue { ptr, ptr } %151, 1
  store ptr %155, ptr %154, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  br label %157

156:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 16, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %16, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  br label %157

157:                                              ; preds = %156, %143
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #5
  call void @Set__create__Tag____(ptr dead_on_unwind writable sret(%struct.tag_____Set__Tag____) align 8 %19)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.tag_____MatchStatement__, ptr %158, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !33
  store ptr %160, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !24
  br label %161

161:                                              ; preds = %458, %157
  %162 = load i32, ptr %21, align 4, !tbaa !24
  %163 = load ptr, ptr %20, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.tag_____List__Ptr__MatchCase______, ptr %163, i32 0, i32 1
  %165 = load i32, ptr %164, align 8, !tbaa !34
  %166 = icmp slt i32 %162, %165
  br i1 %166, label %167, label %461

167:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %168 = load ptr, ptr %20, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.tag_____List__Ptr__MatchCase______, ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !36
  %171 = load i32, ptr %21, align 4, !tbaa !24
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds ptr, ptr %170, i64 %172
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  store ptr %174, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !32
  %175 = load ptr, ptr %22, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %175, i32 0, i32 5
  %177 = load i32, ptr %176, align 8, !tbaa !37
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %179, label %301

179:                                              ; preds = %167
  %180 = load i32, ptr %18, align 4, !tbaa !24
  %181 = load ptr, ptr %22, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %181, i32 0, i32 5
  %183 = load i32, ptr %182, align 8, !tbaa !37
  %184 = and i32 %180, %183
  %185 = and i32 %184, 1
  %186 = icmp ne i32 %185, 0
  br i1 %186, label %187, label %237

187:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %188 = load ptr, ptr %22, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %188, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %189, i64 16, i1 false), !tbaa.struct !23
  %190 = getelementptr inbounds %struct.Node__, ptr %26, i32 0, i32 0
  %191 = load i32, ptr %190, align 8, !tbaa !25
  %192 = icmp eq i32 %191, 21
  br i1 %192, label %196, label %193

193:                                              ; preds = %187
  %194 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %195 = load ptr, ptr %194, align 8, !tbaa !5
  call void %195(i32 noundef -4)
  br label %196

196:                                              ; preds = %193, %187
  %197 = getelementptr inbounds %struct.Node__, ptr %26, i32 0, i32 1
  %198 = load ptr, ptr %197, align 8, !tbaa !26
  %199 = getelementptr inbounds %struct.tag_____Token__, ptr %198, i32 0, i32 1
  %200 = getelementptr inbounds { ptr, i32 }, ptr %199, i32 0, i32 0
  %201 = load ptr, ptr %200, align 8
  %202 = getelementptr inbounds { ptr, i32 }, ptr %199, i32 0, i32 1
  %203 = load i32, ptr %202, align 8
  %204 = load ptr, ptr @mu_____string176, align 8
  %205 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string176, i32 0, i32 1), align 8
  %206 = call zeroext i8 @string__equals__(ptr %201, i32 %203, ptr %204, i32 %205)
  %207 = icmp ne i8 %206, 0
  br i1 %207, label %208, label %211

208:                                              ; preds = %196
  %209 = load ptr, ptr %22, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %209, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %210, i64 16, i1 false), !tbaa.struct !23
  br label %222

211:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  %212 = load ptr, ptr %22, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %212, i32 0, i32 2
  %214 = load ptr, ptr %213, align 8, !tbaa !39
  %215 = getelementptr inbounds %struct.Node__, ptr %27, i32 0, i32 1
  store ptr %214, ptr %215, align 8, !tbaa !26
  %216 = getelementptr inbounds %struct.Node__, ptr %27, i32 0, i32 1
  %217 = load ptr, ptr %216, align 8, !tbaa !26
  %218 = icmp ne ptr %217, null
  %219 = zext i1 %218 to i64
  %220 = select i1 %218, i32 21, i32 0
  %221 = getelementptr inbounds %struct.Node__, ptr %27, i32 0, i32 0
  store i32 %220, ptr %221, align 8, !tbaa !25
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %27, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  br label %222

222:                                              ; preds = %211, %208
  %223 = load ptr, ptr %3, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %223, i32 0, i32 2
  %225 = load ptr, ptr %224, align 8, !tbaa !16
  %226 = load ptr, ptr %3, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %226, i32 0, i32 5
  %228 = load ptr, ptr %227, align 8, !tbaa !18
  %229 = getelementptr inbounds { i32, ptr }, ptr %25, i32 0, i32 0
  %230 = load i32, ptr %229, align 8
  %231 = getelementptr inbounds { i32, ptr }, ptr %25, i32 0, i32 1
  %232 = load ptr, ptr %231, align 8
  %233 = call i64 @RangeFinder__find__(i32 %230, ptr %232)
  store i64 %233, ptr %29, align 4
  %234 = load i64, ptr %29, align 4
  %235 = load ptr, ptr @mu_____string278, align 8
  %236 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string278, i32 0, i32 1), align 8
  call void @Error__at__(ptr dead_on_unwind writable sret(%struct.tag_____Error__) align 8 %28, ptr noundef %228, i64 %234, ptr %235, i32 %236)
  call void @List__add__Error____(ptr noundef %225, ptr noundef byval(%struct.tag_____Error__) align 8 %28)
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  br label %237

237:                                              ; preds = %222, %179
  %238 = load i32, ptr %18, align 4, !tbaa !24
  %239 = load ptr, ptr %22, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %239, i32 0, i32 5
  %241 = load i32, ptr %240, align 8, !tbaa !37
  %242 = and i32 %238, %241
  %243 = and i32 %242, 2
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %245, label %295

245:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #5
  %246 = load ptr, ptr %22, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %246, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 8 %247, i64 16, i1 false), !tbaa.struct !23
  %248 = getelementptr inbounds %struct.Node__, ptr %31, i32 0, i32 0
  %249 = load i32, ptr %248, align 8, !tbaa !25
  %250 = icmp eq i32 %249, 21
  br i1 %250, label %254, label %251

251:                                              ; preds = %245
  %252 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %253 = load ptr, ptr %252, align 8, !tbaa !5
  call void %253(i32 noundef -4)
  br label %254

254:                                              ; preds = %251, %245
  %255 = getelementptr inbounds %struct.Node__, ptr %31, i32 0, i32 1
  %256 = load ptr, ptr %255, align 8, !tbaa !26
  %257 = getelementptr inbounds %struct.tag_____Token__, ptr %256, i32 0, i32 1
  %258 = getelementptr inbounds { ptr, i32 }, ptr %257, i32 0, i32 0
  %259 = load ptr, ptr %258, align 8
  %260 = getelementptr inbounds { ptr, i32 }, ptr %257, i32 0, i32 1
  %261 = load i32, ptr %260, align 8
  %262 = load ptr, ptr @mu_____string279, align 8
  %263 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string279, i32 0, i32 1), align 8
  %264 = call zeroext i8 @string__equals__(ptr %259, i32 %261, ptr %262, i32 %263)
  %265 = icmp ne i8 %264, 0
  br i1 %265, label %266, label %269

266:                                              ; preds = %254
  %267 = load ptr, ptr %22, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %267, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %268, i64 16, i1 false), !tbaa.struct !23
  br label %280

269:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #5
  %270 = load ptr, ptr %22, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %270, i32 0, i32 2
  %272 = load ptr, ptr %271, align 8, !tbaa !39
  %273 = getelementptr inbounds %struct.Node__, ptr %32, i32 0, i32 1
  store ptr %272, ptr %273, align 8, !tbaa !26
  %274 = getelementptr inbounds %struct.Node__, ptr %32, i32 0, i32 1
  %275 = load ptr, ptr %274, align 8, !tbaa !26
  %276 = icmp ne ptr %275, null
  %277 = zext i1 %276 to i64
  %278 = select i1 %276, i32 21, i32 0
  %279 = getelementptr inbounds %struct.Node__, ptr %32, i32 0, i32 0
  store i32 %278, ptr %279, align 8, !tbaa !25
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %32, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #5
  br label %280

280:                                              ; preds = %269, %266
  %281 = load ptr, ptr %3, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %281, i32 0, i32 2
  %283 = load ptr, ptr %282, align 8, !tbaa !16
  %284 = load ptr, ptr %3, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %284, i32 0, i32 5
  %286 = load ptr, ptr %285, align 8, !tbaa !18
  %287 = getelementptr inbounds { i32, ptr }, ptr %30, i32 0, i32 0
  %288 = load i32, ptr %287, align 8
  %289 = getelementptr inbounds { i32, ptr }, ptr %30, i32 0, i32 1
  %290 = load ptr, ptr %289, align 8
  %291 = call i64 @RangeFinder__find__(i32 %288, ptr %290)
  store i64 %291, ptr %34, align 4
  %292 = load i64, ptr %34, align 4
  %293 = load ptr, ptr @mu_____string278, align 8
  %294 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string278, i32 0, i32 1), align 8
  call void @Error__at__(ptr dead_on_unwind writable sret(%struct.tag_____Error__) align 8 %33, ptr noundef %286, i64 %292, ptr %293, i32 %294)
  call void @List__add__Error____(ptr noundef %283, ptr noundef byval(%struct.tag_____Error__) align 8 %33)
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #5
  br label %295

295:                                              ; preds = %280, %237
  %296 = load i32, ptr %18, align 4, !tbaa !24
  %297 = load ptr, ptr %22, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %297, i32 0, i32 5
  %299 = load i32, ptr %298, align 8, !tbaa !37
  %300 = or i32 %296, %299
  store i32 %300, ptr %18, align 4, !tbaa !24
  br label %417

301:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #5
  %302 = load ptr, ptr %3, align 8, !tbaa !5
  %303 = load ptr, ptr %22, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %303, i32 0, i32 0
  %305 = getelementptr inbounds { i32, ptr }, ptr %304, i32 0, i32 0
  %306 = load i32, ptr %305, align 8
  %307 = getelementptr inbounds { i32, ptr }, ptr %304, i32 0, i32 1
  %308 = load ptr, ptr %307, align 8
  %309 = call { ptr, ptr } @TypeChecker__resolveType__(ptr noundef %302, i32 %306, ptr %308, i32 noundef 0)
  %310 = getelementptr inbounds { ptr, ptr }, ptr %35, i32 0, i32 0
  %311 = extractvalue { ptr, ptr } %309, 0
  store ptr %311, ptr %310, align 8
  %312 = getelementptr inbounds { ptr, ptr }, ptr %35, i32 0, i32 1
  %313 = extractvalue { ptr, ptr } %309, 1
  store ptr %313, ptr %312, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %35, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #5
  %314 = getelementptr inbounds %struct.tag_____Tag__, ptr %24, i32 0, i32 0
  %315 = load ptr, ptr %314, align 8, !tbaa !9
  %316 = icmp ne ptr %315, null
  br i1 %316, label %317, label %416

317:                                              ; preds = %301
  %318 = load ptr, ptr %22, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %318, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %319, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  %320 = getelementptr inbounds { ptr, ptr }, ptr %24, i32 0, i32 0
  %321 = load ptr, ptr %320, align 8
  %322 = getelementptr inbounds { ptr, ptr }, ptr %24, i32 0, i32 1
  %323 = load ptr, ptr %322, align 8
  %324 = call i32 @Tag__anyFlags__(ptr %321, ptr %323)
  store i32 %324, ptr %36, align 4, !tbaa !24
  %325 = load i32, ptr %36, align 4, !tbaa !24
  %326 = and i32 %325, 16384
  %327 = icmp ne i32 %326, 0
  br i1 %327, label %328, label %345

328:                                              ; preds = %317
  %329 = load ptr, ptr %3, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %329, i32 0, i32 2
  %331 = load ptr, ptr %330, align 8, !tbaa !16
  %332 = load ptr, ptr %3, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %332, i32 0, i32 5
  %334 = load ptr, ptr %333, align 8, !tbaa !18
  %335 = load ptr, ptr %22, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %335, i32 0, i32 0
  %337 = getelementptr inbounds { i32, ptr }, ptr %336, i32 0, i32 0
  %338 = load i32, ptr %337, align 8
  %339 = getelementptr inbounds { i32, ptr }, ptr %336, i32 0, i32 1
  %340 = load ptr, ptr %339, align 8
  %341 = call i64 @RangeFinder__find__(i32 %338, ptr %340)
  store i64 %341, ptr %38, align 4
  %342 = load i64, ptr %38, align 4
  %343 = load ptr, ptr @mu_____string280, align 8
  %344 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string280, i32 0, i32 1), align 8
  call void @Error__at__(ptr dead_on_unwind writable sret(%struct.tag_____Error__) align 8 %37, ptr noundef %334, i64 %342, ptr %343, i32 %344)
  call void @List__add__Error____(ptr noundef %331, ptr noundef byval(%struct.tag_____Error__) align 8 %37)
  br label %415

345:                                              ; preds = %317
  %346 = load i32, ptr %36, align 4, !tbaa !24
  %347 = and i32 %346, 1048576
  %348 = icmp ne i32 %347, 0
  br i1 %348, label %349, label %350

349:                                              ; preds = %345
  br label %414

350:                                              ; preds = %345
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #5
  %351 = load ptr, ptr %6, align 8, !tbaa !5
  %352 = icmp ne ptr %351, null
  %353 = zext i1 %352 to i32
  %354 = trunc i32 %353 to i8
  store i8 %354, ptr %39, align 1, !tbaa !22
  %355 = load i8, ptr %39, align 1, !tbaa !22
  %356 = icmp ne i8 %355, 0
  br i1 %356, label %357, label %368

357:                                              ; preds = %350
  %358 = load ptr, ptr %6, align 8, !tbaa !5
  %359 = getelementptr inbounds { ptr, ptr }, ptr %24, i32 0, i32 0
  %360 = load ptr, ptr %359, align 8
  %361 = getelementptr inbounds { ptr, ptr }, ptr %24, i32 0, i32 1
  %362 = load ptr, ptr %361, align 8
  %363 = call zeroext i8 @Set__contains__Tag____(ptr noundef %358, ptr %360, ptr %362)
  %364 = icmp ne i8 %363, 0
  %365 = xor i1 %364, true
  %366 = zext i1 %365 to i32
  %367 = trunc i32 %366 to i8
  store i8 %367, ptr %39, align 1, !tbaa !22
  br label %368

368:                                              ; preds = %357, %350
  %369 = load i8, ptr %39, align 1, !tbaa !22
  %370 = icmp ne i8 %369, 0
  br i1 %370, label %371, label %388

371:                                              ; preds = %368
  %372 = load ptr, ptr %3, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %372, i32 0, i32 2
  %374 = load ptr, ptr %373, align 8, !tbaa !16
  %375 = load ptr, ptr %3, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %375, i32 0, i32 5
  %377 = load ptr, ptr %376, align 8, !tbaa !18
  %378 = load ptr, ptr %22, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %378, i32 0, i32 0
  %380 = getelementptr inbounds { i32, ptr }, ptr %379, i32 0, i32 0
  %381 = load i32, ptr %380, align 8
  %382 = getelementptr inbounds { i32, ptr }, ptr %379, i32 0, i32 1
  %383 = load ptr, ptr %382, align 8
  %384 = call i64 @RangeFinder__find__(i32 %381, ptr %383)
  store i64 %384, ptr %41, align 4
  %385 = load i64, ptr %41, align 4
  %386 = load ptr, ptr @mu_____string281, align 8
  %387 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string281, i32 0, i32 1), align 8
  call void @Error__at__(ptr dead_on_unwind writable sret(%struct.tag_____Error__) align 8 %40, ptr noundef %377, i64 %385, ptr %386, i32 %387)
  call void @List__add__Error____(ptr noundef %374, ptr noundef byval(%struct.tag_____Error__) align 8 %40)
  br label %413

388:                                              ; preds = %368
  %389 = getelementptr inbounds { ptr, ptr }, ptr %24, i32 0, i32 0
  %390 = load ptr, ptr %389, align 8
  %391 = getelementptr inbounds { ptr, ptr }, ptr %24, i32 0, i32 1
  %392 = load ptr, ptr %391, align 8
  %393 = call zeroext i8 @Set__tryAdd__Tag____(ptr noundef %19, ptr %390, ptr %392)
  %394 = icmp ne i8 %393, 0
  br i1 %394, label %412, label %395

395:                                              ; preds = %388
  %396 = load ptr, ptr %3, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %396, i32 0, i32 2
  %398 = load ptr, ptr %397, align 8, !tbaa !16
  %399 = load ptr, ptr %3, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %399, i32 0, i32 5
  %401 = load ptr, ptr %400, align 8, !tbaa !18
  %402 = load ptr, ptr %22, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %402, i32 0, i32 0
  %404 = getelementptr inbounds { i32, ptr }, ptr %403, i32 0, i32 0
  %405 = load i32, ptr %404, align 8
  %406 = getelementptr inbounds { i32, ptr }, ptr %403, i32 0, i32 1
  %407 = load ptr, ptr %406, align 8
  %408 = call i64 @RangeFinder__find__(i32 %405, ptr %407)
  store i64 %408, ptr %43, align 4
  %409 = load i64, ptr %43, align 4
  %410 = load ptr, ptr @mu_____string278, align 8
  %411 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string278, i32 0, i32 1), align 8
  call void @Error__at__(ptr dead_on_unwind writable sret(%struct.tag_____Error__) align 8 %42, ptr noundef %401, i64 %409, ptr %410, i32 %411)
  call void @List__add__Error____(ptr noundef %398, ptr noundef byval(%struct.tag_____Error__) align 8 %42)
  br label %412

412:                                              ; preds = %395, %388
  br label %413

413:                                              ; preds = %412, %371
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #5
  br label %414

414:                                              ; preds = %413, %349
  br label %415

415:                                              ; preds = %414, %328
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  br label %416

416:                                              ; preds = %415, %301
  br label %417

417:                                              ; preds = %416, %295
  %418 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 0
  %419 = load ptr, ptr %418, align 8
  %420 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 1
  %421 = load i32, ptr %420, align 8
  %422 = load ptr, ptr @mu_____string0, align 8
  %423 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string0, i32 0, i32 1), align 8
  %424 = call zeroext i8 @string__equals__(ptr %419, i32 %421, ptr %422, i32 %423)
  %425 = icmp ne i8 %424, 0
  br i1 %425, label %444, label %426

426:                                              ; preds = %417
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #5
  %427 = getelementptr inbounds %struct.tag_____Tag__, ptr %24, i32 0, i32 0
  %428 = load ptr, ptr %427, align 8, !tbaa !9
  %429 = icmp ne ptr %428, null
  br i1 %429, label %430, label %431

430:                                              ; preds = %426
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !32
  br label %432

431:                                              ; preds = %426
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !32
  br label %432

432:                                              ; preds = %431, %430
  %433 = load ptr, ptr %3, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %433, i32 0, i32 10
  %435 = load ptr, ptr %434, align 8, !tbaa !31
  %436 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 0
  %437 = load ptr, ptr %436, align 8
  %438 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 1
  %439 = load i32, ptr %438, align 8
  %440 = getelementptr inbounds { ptr, ptr }, ptr %44, i32 0, i32 0
  %441 = load ptr, ptr %440, align 8
  %442 = getelementptr inbounds { ptr, ptr }, ptr %44, i32 0, i32 1
  %443 = load ptr, ptr %442, align 8
  call void @Map__update__string__Tag____(ptr noundef %435, ptr %437, i32 %439, ptr %441, ptr %443)
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #5
  br label %444

444:                                              ; preds = %432, %417
  %445 = load ptr, ptr %22, align 8, !tbaa !5
  %446 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %445, i32 0, i32 4
  %447 = getelementptr inbounds %struct.Node__, ptr %446, i32 0, i32 1
  %448 = load ptr, ptr %447, align 8, !tbaa !40
  %449 = icmp ne ptr %448, null
  br i1 %449, label %450, label %458

450:                                              ; preds = %444
  %451 = load ptr, ptr %3, align 8, !tbaa !5
  %452 = load ptr, ptr %22, align 8, !tbaa !5
  %453 = getelementptr inbounds %struct.tag_____MatchCase__, ptr %452, i32 0, i32 4
  %454 = getelementptr inbounds { i32, ptr }, ptr %453, i32 0, i32 0
  %455 = load i32, ptr %454, align 8
  %456 = getelementptr inbounds { i32, ptr }, ptr %453, i32 0, i32 1
  %457 = load ptr, ptr %456, align 8
  call void @TypeChecker__checkInlineStatement__(ptr noundef %451, i32 %455, ptr %457)
  br label %458

458:                                              ; preds = %450, %444
  %459 = load i32, ptr %21, align 4, !tbaa !24
  %460 = add nsw i32 %459, 1
  store i32 %460, ptr %21, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %161, !llvm.loop !41

461:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  %462 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 0
  %463 = load ptr, ptr %462, align 8
  %464 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 1
  %465 = load i32, ptr %464, align 8
  %466 = load ptr, ptr @mu_____string0, align 8
  %467 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string0, i32 0, i32 1), align 8
  %468 = call zeroext i8 @string__equals__(ptr %463, i32 %465, ptr %466, i32 %467)
  %469 = icmp ne i8 %468, 0
  br i1 %469, label %482, label %470

470:                                              ; preds = %461
  %471 = load ptr, ptr %3, align 8, !tbaa !5
  %472 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %471, i32 0, i32 10
  %473 = load ptr, ptr %472, align 8, !tbaa !31
  %474 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 0
  %475 = load ptr, ptr %474, align 8
  %476 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 1
  %477 = load i32, ptr %476, align 8
  %478 = getelementptr inbounds { ptr, ptr }, ptr %17, i32 0, i32 0
  %479 = load ptr, ptr %478, align 8
  %480 = getelementptr inbounds { ptr, ptr }, ptr %17, i32 0, i32 1
  %481 = load ptr, ptr %480, align 8
  call void @Map__update__string__Tag____(ptr noundef %473, ptr %475, i32 %477, ptr %479, ptr %481)
  br label %482

482:                                              ; preds = %470, %461
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  ret void
}

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

; Function Attrs: nounwind uwtable
declare dso_local void @Set__create__Tag____(ptr dead_on_unwind noalias writable sret(%struct.tag_____Set__Tag____) align 8) #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, !6, i64 0}
!10 = !{!"tag_____Tag__", !6, i64 0, !6, i64 8}
!11 = !{!12, !14, i64 28}
!12 = !{!"tag_____Namespace__", !13, i64 0, !6, i64 16, !14, i64 24, !14, 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, !14, i64 104}
!13 = !{!"", !6, i64 0, !14, i64 8}
!14 = !{!"int", !7, i64 0}
!15 = !{!12, !6, i64 64}
!16 = !{!17, !6, i64 16}
!17 = !{!"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, !14, i64 120, !14, i64 124, !6, i64 128, !14, i64 136, !7, i64 140}
!18 = !{!17, !6, i64 40}
!19 = !{!20, !14, i64 8}
!20 = !{!"tag_____MatchStatement__", !6, i64 0, !21, i64 8, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!21 = !{!"", !14, i64 0, !6, i64 8}
!22 = !{!7, !7, i64 0}
!23 = !{i64 0, i64 4, !24, i64 8, i64 8, !5}
!24 = !{!14, !14, i64 0}
!25 = !{!21, !14, i64 0}
!26 = !{!21, !6, i64 8}
!27 = !{!28, !14, i64 0}
!28 = !{!"tag_____Token__", !14, i64 0, !13, i64 8, !29, i64 24, !29, i64 32, !14, i64 40}
!29 = !{!"tag_____IntRange__", !14, i64 0, !14, i64 4}
!30 = !{i64 0, i64 8, !5, i64 8, i64 4, !24}
!31 = !{!17, !6, i64 80}
!32 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!33 = !{!20, !6, i64 40}
!34 = !{!35, !14, i64 8}
!35 = !{!"tag_____List__Ptr__MatchCase______", !6, i64 0, !14, i64 8, !14, i64 12}
!36 = !{!35, !6, i64 0}
!37 = !{!38, !14, i64 56}
!38 = !{!"tag_____MatchCase__", !21, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !21, i64 40, !14, i64 56, !10, i64 64}
!39 = !{!38, !6, i64 24}
!40 = !{!38, !6, i64 48}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}


; 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_____Set__Tag____ = type { %struct.tag_____Array__SetEntry__Tag______, i32, i32, i32 }
%struct.tag_____Array__SetEntry__Tag______ = type { ptr, i32 }

@mu_____string0 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string278 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string281 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string277 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string280 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string176 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string279 = 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

; 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: nounwind uwtable
declare dso_local zeroext i8 @string__equals__(ptr, i32, ptr, i32) local_unnamed_addr #2

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

; 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 #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @Tag__anyFlags__(ptr, ptr) local_unnamed_addr #2

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @Set__tryAdd__Tag____(ptr noundef, ptr, ptr) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @Set__contains__Tag____(ptr noundef, ptr, ptr) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @TypeChecker__checkMatchStatement__(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = alloca %struct.tag_____Error__, align 8
  %4 = alloca %struct.tag_____Set__Tag____, align 8
  %5 = alloca %struct.tag_____Error__, align 8
  %6 = alloca %struct.tag_____Error__, align 8
  %7 = alloca %struct.tag_____Error__, align 8
  %8 = alloca %struct.tag_____Error__, align 8
  %9 = alloca %struct.tag_____Error__, align 8
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load i32, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr %1, i64 16
  %13 = load ptr, ptr %12, align 8
  %14 = tail call { ptr, ptr } @TypeChecker__checkExpression__(ptr noundef %0, i32 %11, ptr %13)
  %15 = extractvalue { ptr, ptr } %14, 0
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %33, label %16

16:                                               ; preds = %2
  %17 = getelementptr inbounds i8, ptr %15, i64 28
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = and i32 %18, 8192
  %.not141 = icmp eq i32 %19, 0
  br i1 %.not141, label %23, label %20

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %15, i64 64
  %22 = load ptr, ptr %21, align 8, !tbaa !12
  br label %33

23:                                               ; preds = %16
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = load ptr, ptr %24, align 8, !tbaa !13
  %26 = getelementptr inbounds i8, ptr %0, i64 40
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  %28 = load i32, ptr %10, align 8
  %29 = load ptr, ptr %12, align 8
  %30 = tail call i64 @RangeFinder__find__(i32 %28, ptr %29)
  %31 = load ptr, ptr @mu_____string277, align 8
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string277, i64 8), align 8
  call void @Error__at__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Error__) align 8 %3, ptr noundef %27, i64 %30, ptr %31, i32 %32)
  call void @List__add__Error____(ptr noundef %25, ptr noundef nonnull byval(%struct.tag_____Error__) align 8 %3)
  br label %33

33:                                               ; preds = %20, %23, %2
  %.0 = phi ptr [ %22, %20 ], [ null, %23 ], [ null, %2 ]
  %34 = load i32, ptr %10, align 8, !tbaa !16
  %35 = icmp eq i32 %34, 21
  br i1 %35, label %36, label %.thread

36:                                               ; preds = %33
  %.sroa.490.0.copyload = load ptr, ptr %12, align 8, !tbaa !17
  %37 = load i32, ptr %.sroa.490.0.copyload, align 8, !tbaa !18
  %.not167 = icmp eq i32 %37, 0
  br i1 %.not167, label %38, label %.thread

38:                                               ; preds = %36
  %39 = getelementptr inbounds i8, ptr %.sroa.490.0.copyload, i64 8
  %.sroa.595.0..sroa_idx = getelementptr inbounds i8, ptr %.sroa.490.0.copyload, i64 16
  br label %.thread

.thread:                                          ; preds = %33, %36, %38
  %.sroa.093.0.in = phi ptr [ %39, %38 ], [ @mu_____string0, %36 ], [ @mu_____string0, %33 ]
  %.sroa.595.0.in = phi ptr [ %.sroa.595.0..sroa_idx, %38 ], [ getelementptr inbounds (i8, ptr @mu_____string0, i64 8), %36 ], [ getelementptr inbounds (i8, ptr @mu_____string0, i64 8), %33 ]
  %.sroa.595.0 = load i32, ptr %.sroa.595.0.in, align 8, !tbaa !16
  %.sroa.093.0 = load ptr, ptr %.sroa.093.0.in, align 8, !tbaa !17
  %40 = load ptr, ptr @mu_____string0, align 8
  %41 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string0, i64 8), align 8
  %42 = call zeroext i8 @string__equals__(ptr %.sroa.093.0, i32 %.sroa.595.0, ptr %40, i32 %41)
  %.not143 = icmp eq i8 %42, 0
  br i1 %.not143, label %43, label %49

43:                                               ; preds = %.thread
  %44 = getelementptr inbounds i8, ptr %0, i64 80
  %45 = load ptr, ptr %44, align 8, !tbaa !21
  %46 = call { ptr, ptr } @Map__get__string__Tag____(ptr noundef %45, ptr %.sroa.093.0, i32 %.sroa.595.0)
  %47 = extractvalue { ptr, ptr } %46, 0
  %48 = extractvalue { ptr, ptr } %46, 1
  br label %49

49:                                               ; preds = %.thread, %43
  %.sroa.070.0 = phi ptr [ %47, %43 ], [ null, %.thread ]
  %.sroa.571.0 = phi ptr [ %48, %43 ], [ null, %.thread ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #3
  call void @Set__create__Tag____(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Set__Tag____) align 8 %4)
  %50 = getelementptr inbounds i8, ptr %1, i64 40
  %51 = load ptr, ptr %50, align 8, !tbaa !22
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  %53 = load i32, ptr %52, align 8, !tbaa !25
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %49
  %55 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %56 = getelementptr inbounds i8, ptr %0, i64 16
  %57 = getelementptr inbounds i8, ptr %0, i64 40
  %.not149 = icmp eq ptr %.0, null
  %58 = getelementptr inbounds i8, ptr %0, i64 80
  br label %59

59:                                               ; preds = %.lr.ph, %174
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %174 ]
  %.0132169 = phi i32 [ 0, %.lr.ph ], [ %.1, %174 ]
  %60 = load ptr, ptr %51, align 8, !tbaa !27
  %61 = getelementptr inbounds ptr, ptr %60, i64 %indvars.iv
  %62 = load ptr, ptr %61, align 8, !tbaa !17
  %63 = getelementptr inbounds i8, ptr %62, i64 56
  %64 = load i32, ptr %63, align 8, !tbaa !28
  %.not145 = icmp eq i32 %64, 0
  br i1 %.not145, label %121, label %65

65:                                               ; preds = %59
  %66 = and i32 %.0132169, 1
  %67 = and i32 %66, %64
  %.not153 = icmp eq i32 %67, 0
  br i1 %.not153, label %91, label %68

68:                                               ; preds = %65
  %.sroa.024.0.copyload = load i32, ptr %62, align 8, !tbaa !16
  %.sroa.426.0..sroa_idx = getelementptr inbounds i8, ptr %62, i64 8
  %.sroa.426.0.copyload = load ptr, ptr %.sroa.426.0..sroa_idx, align 8, !tbaa !17
  %69 = icmp eq i32 %.sroa.024.0.copyload, 21
  br i1 %69, label %72, label %70

70:                                               ; preds = %68
  %71 = load ptr, ptr %55, align 8, !tbaa !17
  call void %71(i32 noundef -4) #3
  br label %72

72:                                               ; preds = %70, %68
  %73 = getelementptr inbounds i8, ptr %.sroa.426.0.copyload, i64 8
  %74 = load ptr, ptr %73, align 8
  %75 = getelementptr inbounds i8, ptr %.sroa.426.0.copyload, i64 16
  %76 = load i32, ptr %75, align 8
  %77 = load ptr, ptr @mu_____string176, align 8
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string176, i64 8), align 8
  %79 = call zeroext i8 @string__equals__(ptr %74, i32 %76, ptr %77, i32 %78)
  %.not154 = icmp eq i8 %79, 0
  br i1 %.not154, label %81, label %80

80:                                               ; preds = %72
  %.sroa.027.0.copyload = load i32, ptr %62, align 8, !tbaa !16
  %.sroa.629.0.copyload = load ptr, ptr %.sroa.426.0..sroa_idx, align 8, !tbaa !17
  br label %85

81:                                               ; preds = %72
  %82 = getelementptr inbounds i8, ptr %62, i64 24
  %83 = load ptr, ptr %82, align 8, !tbaa !31
  %.not155 = icmp eq ptr %83, null
  %84 = select i1 %.not155, i32 0, i32 21
  br label %85

85:                                               ; preds = %81, %80
  %.sroa.027.0 = phi i32 [ %.sroa.027.0.copyload, %80 ], [ %84, %81 ]
  %.sroa.629.0 = phi ptr [ %.sroa.629.0.copyload, %80 ], [ %83, %81 ]
  %86 = load ptr, ptr %56, align 8, !tbaa !13
  %87 = load ptr, ptr %57, align 8, !tbaa !15
  %88 = call i64 @RangeFinder__find__(i32 %.sroa.027.0, ptr %.sroa.629.0)
  %89 = load ptr, ptr @mu_____string278, align 8
  %90 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string278, i64 8), align 8
  call void @Error__at__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Error__) align 8 %5, ptr noundef %87, i64 %88, ptr %89, i32 %90)
  call void @List__add__Error____(ptr noundef %86, ptr noundef nonnull byval(%struct.tag_____Error__) align 8 %5)
  %.pre = load i32, ptr %63, align 8, !tbaa !28
  br label %91

91:                                               ; preds = %85, %65
  %92 = phi i32 [ %.pre, %85 ], [ %64, %65 ]
  %93 = and i32 %.0132169, 2
  %94 = and i32 %93, %92
  %.not156 = icmp eq i32 %94, 0
  br i1 %.not156, label %118, label %95

95:                                               ; preds = %91
  %.sroa.015.0.copyload = load i32, ptr %62, align 8, !tbaa !16
  %.sroa.417.0..sroa_idx = getelementptr inbounds i8, ptr %62, i64 8
  %.sroa.417.0.copyload = load ptr, ptr %.sroa.417.0..sroa_idx, align 8, !tbaa !17
  %96 = icmp eq i32 %.sroa.015.0.copyload, 21
  br i1 %96, label %99, label %97

97:                                               ; preds = %95
  %98 = load ptr, ptr %55, align 8, !tbaa !17
  call void %98(i32 noundef -4) #3
  br label %99

99:                                               ; preds = %97, %95
  %100 = getelementptr inbounds i8, ptr %.sroa.417.0.copyload, i64 8
  %101 = load ptr, ptr %100, align 8
  %102 = getelementptr inbounds i8, ptr %.sroa.417.0.copyload, i64 16
  %103 = load i32, ptr %102, align 8
  %104 = load ptr, ptr @mu_____string279, align 8
  %105 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string279, i64 8), align 8
  %106 = call zeroext i8 @string__equals__(ptr %101, i32 %103, ptr %104, i32 %105)
  %.not157 = icmp eq i8 %106, 0
  br i1 %.not157, label %108, label %107

107:                                              ; preds = %99
  %.sroa.018.0.copyload = load i32, ptr %62, align 8, !tbaa !16
  %.sroa.6.0.copyload = load ptr, ptr %.sroa.417.0..sroa_idx, align 8, !tbaa !17
  br label %112

108:                                              ; preds = %99
  %109 = getelementptr inbounds i8, ptr %62, i64 24
  %110 = load ptr, ptr %109, align 8, !tbaa !31
  %.not158 = icmp eq ptr %110, null
  %111 = select i1 %.not158, i32 0, i32 21
  br label %112

112:                                              ; preds = %108, %107
  %.sroa.6.0 = phi ptr [ %.sroa.6.0.copyload, %107 ], [ %110, %108 ]
  %.sroa.018.0 = phi i32 [ %.sroa.018.0.copyload, %107 ], [ %111, %108 ]
  %113 = load ptr, ptr %56, align 8, !tbaa !13
  %114 = load ptr, ptr %57, align 8, !tbaa !15
  %115 = call i64 @RangeFinder__find__(i32 %.sroa.018.0, ptr %.sroa.6.0)
  %116 = load ptr, ptr @mu_____string278, align 8
  %117 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string278, i64 8), align 8
  call void @Error__at__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Error__) align 8 %6, ptr noundef %114, i64 %115, ptr %116, i32 %117)
  call void @List__add__Error____(ptr noundef %113, ptr noundef nonnull byval(%struct.tag_____Error__) align 8 %6)
  %.pre171 = load i32, ptr %63, align 8, !tbaa !28
  br label %118

118:                                              ; preds = %112, %91
  %119 = phi i32 [ %.pre171, %112 ], [ %92, %91 ]
  %120 = or i32 %119, %.0132169
  br label %162

121:                                              ; preds = %59
  %122 = load i32, ptr %62, align 8
  %123 = getelementptr inbounds i8, ptr %62, i64 8
  %124 = load ptr, ptr %123, align 8
  %125 = call { ptr, ptr } @TypeChecker__resolveType__(ptr noundef %0, i32 %122, ptr %124, i32 noundef 0)
  %126 = extractvalue { ptr, ptr } %125, 0
  %127 = extractvalue { ptr, ptr } %125, 1
  %.not146 = icmp eq ptr %126, null
  br i1 %.not146, label %162, label %128

128:                                              ; preds = %121
  %129 = getelementptr inbounds i8, ptr %62, i64 64
  store ptr %126, ptr %129, align 8, !tbaa !17
  %.sroa.11.0..sroa_idx36 = getelementptr inbounds i8, ptr %62, i64 72
  store ptr %127, ptr %.sroa.11.0..sroa_idx36, align 8, !tbaa !17
  %130 = call i32 @Tag__anyFlags__(ptr nonnull %126, ptr %127)
  %131 = and i32 %130, 16384
  %.not147 = icmp eq i32 %131, 0
  br i1 %.not147, label %140, label %132

132:                                              ; preds = %128
  %133 = load ptr, ptr %56, align 8, !tbaa !13
  %134 = load ptr, ptr %57, align 8, !tbaa !15
  %135 = load i32, ptr %62, align 8
  %136 = load ptr, ptr %123, align 8
  %137 = call i64 @RangeFinder__find__(i32 %135, ptr %136)
  %138 = load ptr, ptr @mu_____string280, align 8
  %139 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string280, i64 8), align 8
  call void @Error__at__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Error__) align 8 %7, ptr noundef %134, i64 %137, ptr %138, i32 %139)
  call void @List__add__Error____(ptr noundef %133, ptr noundef nonnull byval(%struct.tag_____Error__) align 8 %7)
  br label %162

140:                                              ; preds = %128
  %141 = and i32 %130, 1048576
  %.not148 = icmp eq i32 %141, 0
  br i1 %.not148, label %142, label %162

142:                                              ; preds = %140
  br i1 %.not149, label %.thread164, label %143

143:                                              ; preds = %142
  %144 = call zeroext i8 @Set__contains__Tag____(ptr noundef nonnull %.0, ptr nonnull %126, ptr %127)
  %.not150.not = icmp eq i8 %144, 0
  br i1 %.not150.not, label %145, label %.thread164

145:                                              ; preds = %143
  %146 = load ptr, ptr %56, align 8, !tbaa !13
  %147 = load ptr, ptr %57, align 8, !tbaa !15
  %148 = load i32, ptr %62, align 8
  %149 = load ptr, ptr %123, align 8
  %150 = call i64 @RangeFinder__find__(i32 %148, ptr %149)
  %151 = load ptr, ptr @mu_____string281, align 8
  %152 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string281, i64 8), align 8
  call void @Error__at__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Error__) align 8 %8, ptr noundef %147, i64 %150, ptr %151, i32 %152)
  call void @List__add__Error____(ptr noundef %146, ptr noundef nonnull byval(%struct.tag_____Error__) align 8 %8)
  br label %162

.thread164:                                       ; preds = %142, %143
  %153 = call zeroext i8 @Set__tryAdd__Tag____(ptr noundef nonnull %4, ptr nonnull %126, ptr %127)
  %.not152 = icmp eq i8 %153, 0
  br i1 %.not152, label %154, label %162

154:                                              ; preds = %.thread164
  %155 = load ptr, ptr %56, align 8, !tbaa !13
  %156 = load ptr, ptr %57, align 8, !tbaa !15
  %157 = load i32, ptr %62, align 8
  %158 = load ptr, ptr %123, align 8
  %159 = call i64 @RangeFinder__find__(i32 %157, ptr %158)
  %160 = load ptr, ptr @mu_____string278, align 8
  %161 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string278, i64 8), align 8
  call void @Error__at__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Error__) align 8 %9, ptr noundef %156, i64 %159, ptr %160, i32 %161)
  call void @List__add__Error____(ptr noundef %155, ptr noundef nonnull byval(%struct.tag_____Error__) align 8 %9)
  br label %162

162:                                              ; preds = %132, %140, %.thread164, %154, %145, %121, %118
  %.sroa.030.0 = phi ptr [ null, %118 ], [ null, %121 ], [ %126, %145 ], [ %126, %154 ], [ %126, %.thread164 ], [ %126, %140 ], [ %126, %132 ]
  %.sroa.11.0 = phi ptr [ null, %118 ], [ %127, %121 ], [ %127, %145 ], [ %127, %154 ], [ %127, %.thread164 ], [ %127, %140 ], [ %127, %132 ]
  %.1 = phi i32 [ %120, %118 ], [ %.0132169, %121 ], [ %.0132169, %145 ], [ %.0132169, %154 ], [ %.0132169, %.thread164 ], [ %.0132169, %140 ], [ %.0132169, %132 ]
  %163 = load ptr, ptr @mu_____string0, align 8
  %164 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string0, i64 8), align 8
  %165 = call zeroext i8 @string__equals__(ptr %.sroa.093.0, i32 %.sroa.595.0, ptr %163, i32 %164)
  %.not159 = icmp eq i8 %165, 0
  br i1 %.not159, label %166, label %168

166:                                              ; preds = %162
  %.not160 = icmp eq ptr %.sroa.030.0, null
  %.sroa.571.0..sroa.11.0 = select i1 %.not160, ptr %.sroa.571.0, ptr %.sroa.11.0
  %.sroa.070.0..sroa.030.0 = select i1 %.not160, ptr %.sroa.070.0, ptr %.sroa.030.0
  %167 = load ptr, ptr %58, align 8, !tbaa !21
  call void @Map__update__string__Tag____(ptr noundef %167, ptr %.sroa.093.0, i32 %.sroa.595.0, ptr %.sroa.070.0..sroa.030.0, ptr %.sroa.571.0..sroa.11.0)
  br label %168

168:                                              ; preds = %166, %162
  %169 = getelementptr inbounds i8, ptr %62, i64 48
  %170 = load ptr, ptr %169, align 8
  %.not161 = icmp eq ptr %170, null
  br i1 %.not161, label %174, label %171

171:                                              ; preds = %168
  %172 = getelementptr inbounds i8, ptr %62, i64 40
  %173 = load i32, ptr %172, align 8
  call void @TypeChecker__checkInlineStatement__(ptr noundef %0, i32 %173, ptr nonnull %170)
  br label %174

174:                                              ; preds = %171, %168
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %175 = load i32, ptr %52, align 8, !tbaa !25
  %176 = sext i32 %175 to i64
  %177 = icmp slt i64 %indvars.iv.next, %176
  br i1 %177, label %59, label %._crit_edge, !llvm.loop !32

._crit_edge:                                      ; preds = %174, %49
  %178 = load ptr, ptr @mu_____string0, align 8
  %179 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string0, i64 8), align 8
  %180 = call zeroext i8 @string__equals__(ptr %.sroa.093.0, i32 %.sroa.595.0, ptr %178, i32 %179)
  %.not144 = icmp eq i8 %180, 0
  br i1 %.not144, label %181, label %184

181:                                              ; preds = %._crit_edge
  %182 = getelementptr inbounds i8, ptr %0, i64 80
  %183 = load ptr, ptr %182, align 8, !tbaa !21
  call void @Map__update__string__Tag____(ptr noundef %183, ptr %.sroa.093.0, i32 %.sroa.595.0, ptr %.sroa.070.0, ptr %.sroa.571.0)
  br label %184

184:                                              ; preds = %181, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #3
  ret void
}

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

; Function Attrs: nounwind uwtable
declare dso_local void @Set__create__Tag____(ptr dead_on_unwind noalias writable sret(%struct.tag_____Set__Tag____) align 8) local_unnamed_addr #2

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

!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 28}
!6 = !{!"tag_____Namespace__", !7, i64 0, !8, i64 16, !11, i64 24, !11, i64 28, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !11, i64 104}
!7 = !{!"", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!6, !8, i64 64}
!13 = !{!14, !8, i64 16}
!14 = !{!"tag_____TypeCheckerContext__", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !8, i64 104, !8, i64 112, !11, i64 120, !11, i64 124, !8, i64 128, !11, i64 136, !9, i64 140}
!15 = !{!14, !8, i64 40}
!16 = !{!11, !11, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!19, !11, i64 0}
!19 = !{!"tag_____Token__", !11, i64 0, !7, i64 8, !20, i64 24, !20, i64 32, !11, i64 40}
!20 = !{!"tag_____IntRange__", !11, i64 0, !11, i64 4}
!21 = !{!14, !8, i64 80}
!22 = !{!23, !8, i64 40}
!23 = !{!"tag_____MatchStatement__", !8, i64 0, !24, i64 8, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56}
!24 = !{!"", !11, i64 0, !8, i64 8}
!25 = !{!26, !11, i64 8}
!26 = !{!"tag_____List__Ptr__MatchCase______", !8, i64 0, !11, i64 8, !11, i64 12}
!27 = !{!26, !8, i64 0}
!28 = !{!29, !11, i64 56}
!29 = !{!"tag_____MatchCase__", !24, i64 0, !8, i64 16, !8, i64 24, !8, i64 32, !24, i64 40, !11, i64 56, !30, i64 64}
!30 = !{!"tag_____Tag__", !8, i64 0, !8, i64 8}
!31 = !{!29, !8, i64 24}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass