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

; 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_____IAllocator__ = type { ptr, ptr, ptr, ptr }
%struct.tag_____Error__ = type { ptr, %struct.tag_____IntRange__, %struct.string__ }
%struct.tag_____IntRange__ = type { i32, i32 }
%struct.tag_____Tag__ = type { ptr, ptr }
%struct.tag_____Array__Tag____ = type { ptr, i32 }
%struct.Node__ = type { i32, ptr }
%struct.tag_____StringBuilder__ = type { ptr, i32, i32 }
%struct.tag_____Set__Tag____ = type { %struct.tag_____Array__SetEntry__Tag______, i32, i32, i32 }
%struct.tag_____Array__SetEntry__Tag______ = type { ptr, i32 }
%struct.tag_____StructInitializerExpression__ = type { %struct.Node__, ptr, ptr, ptr, ptr }
%struct.tag_____List__Ptr__FieldInitializerExpression______ = type { ptr, i32, i32 }
%struct.tag_____FieldInitializerExpression__ = type { ptr, ptr, %struct.Node__ }
%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_____List__Ptr__Namespace______ = type { ptr, i32, i32 }
%struct.tag_____Token__ = type { i32, %struct.string__, %struct.tag_____IntRange__, %struct.tag_____IntRange__, i32 }
%struct.tag_____FieldDef__ = type { ptr, ptr, %struct.Node__, ptr, %struct.tag_____Tag__ }
%struct.tag_____FunctionDef__ = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.Node__, ptr, ptr, ptr, ptr, i32, ptr, %struct.string__, %struct.string__, %struct.tag_____Tag__, i32, ptr, ptr, ptr, ptr, %struct.string__ }

@mu_____string261 = external dso_local global %struct.string__, align 8
@top_____currentAllocator__ = external dso_local thread_local global %struct.tag_____IAllocator__, align 8
@top_____abandonFn__ = external dso_local thread_local global ptr, align 8
@__const.TypeChecker__checkStructInitializerExpression__.local12 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.TypeChecker__checkStructInitializerExpression__.local13 = external hidden unnamed_addr constant %struct.string__, align 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

58:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.tag_____StructInitializerExpression__, ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !11
  store ptr %61, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !15
  br label %62

62:                                               ; preds = %68, %58
  %63 = load i32, ptr %8, align 4, !tbaa !15
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.tag_____List__Ptr__FieldInitializerExpression______, ptr %64, i32 0, i32 1
  %66 = load i32, ptr %65, align 8, !tbaa !16
  %67 = icmp slt i32 %63, %66
  br i1 %67, label %68, label %90

68:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.tag_____List__Ptr__FieldInitializerExpression______, ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !18
  %72 = load i32, ptr %8, align 4, !tbaa !15
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds ptr, ptr %71, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  store ptr %75, ptr %9, align 8, !tbaa !5
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.tag_____FieldInitializerExpression__, ptr %77, i32 0, i32 2
  %79 = getelementptr inbounds { i32, ptr }, ptr %78, i32 0, i32 0
  %80 = load i32, ptr %79, align 8
  %81 = getelementptr inbounds { i32, ptr }, ptr %78, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8
  %83 = call { ptr, ptr } @TypeChecker__checkExpression__(ptr noundef %76, i32 %80, ptr %82)
  %84 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 0
  %85 = extractvalue { ptr, ptr } %83, 0
  store ptr %85, ptr %84, align 8
  %86 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 1
  %87 = extractvalue { ptr, ptr } %83, 1
  store ptr %87, ptr %86, align 8
  %88 = load i32, ptr %8, align 4, !tbaa !15
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %8, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %62, !llvm.loop !19

90:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.memset.p0.i64(ptr align 8 %3, i8 0, i64 16, i1 false)
  store i32 1, ptr %11, align 4
  br label %423

91:                                               ; preds = %2
  %92 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = getelementptr inbounds %struct.tag_____Namespace__, ptr %93, i32 0, i32 3
  %95 = load i32, ptr %94, align 4, !tbaa !21
  %96 = and i32 %95, 256
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %98, label %147

98:                                               ; preds = %91
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %99, i32 0, i32 2
  %101 = load ptr, ptr %100, align 8, !tbaa !24
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %102, i32 0, i32 5
  %104 = load ptr, ptr %103, align 8, !tbaa !26
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.tag_____StructInitializerExpression__, ptr %105, i32 0, i32 0
  %107 = getelementptr inbounds { i32, ptr }, ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 8
  %109 = getelementptr inbounds { i32, ptr }, ptr %106, i32 0, i32 1
  %110 = load ptr, ptr %109, align 8
  %111 = call i64 @RangeFinder__find__(i32 %108, ptr %110)
  store i64 %111, ptr %13, align 4
  %112 = load i64, ptr %13, align 4
  %113 = load ptr, ptr @mu_____string261, align 8
  %114 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string261, i32 0, i32 1), align 8
  call void @Error__at__(ptr dead_on_unwind writable sret(%struct.tag_____Error__) align 8 %12, ptr noundef %104, i64 %112, ptr %113, i32 %114)
  call void @List__add__Error____(ptr noundef %101, ptr noundef byval(%struct.tag_____Error__) align 8 %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.tag_____StructInitializerExpression__, ptr %115, i32 0, i32 2
  %117 = load ptr, ptr %116, align 8, !tbaa !11
  store ptr %117, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !15
  br label %118

118:                                              ; preds = %124, %98
  %119 = load i32, ptr %15, align 4, !tbaa !15
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.tag_____List__Ptr__FieldInitializerExpression______, ptr %120, i32 0, i32 1
  %122 = load i32, ptr %121, align 8, !tbaa !16
  %123 = icmp slt i32 %119, %122
  br i1 %123, label %124, label %146

124:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.tag_____List__Ptr__FieldInitializerExpression______, ptr %125, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !18
  %128 = load i32, ptr %15, align 4, !tbaa !15
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds ptr, ptr %127, i64 %129
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  store ptr %131, ptr %16, align 8, !tbaa !5
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.tag_____FieldInitializerExpression__, ptr %133, i32 0, i32 2
  %135 = getelementptr inbounds { i32, ptr }, ptr %134, i32 0, i32 0
  %136 = load i32, ptr %135, align 8
  %137 = getelementptr inbounds { i32, ptr }, ptr %134, i32 0, i32 1
  %138 = load ptr, ptr %137, align 8
  %139 = call { ptr, ptr } @TypeChecker__checkExpression__(ptr noundef %132, i32 %136, ptr %138)
  %140 = getelementptr inbounds { ptr, ptr }, ptr %17, i32 0, i32 0
  %141 = extractvalue { ptr, ptr } %139, 0
  store ptr %141, ptr %140, align 8
  %142 = getelementptr inbounds { ptr, ptr }, ptr %17, i32 0, i32 1
  %143 = extractvalue { ptr, ptr } %139, 1
  store ptr %143, ptr %142, align 8
  %144 = load i32, ptr %15, align 4, !tbaa !15
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %15, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %118, !llvm.loop !27

146:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.memset.p0.i64(ptr align 8 %3, i8 0, i64 16, i1 false)
  store i32 1, ptr %11, align 4
  br label %423

147:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %148 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8, !tbaa !9
  store ptr %149, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %150 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8, !tbaa !28
  store ptr %151, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  %152 = load ptr, ptr %18, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.tag_____Namespace__, ptr %152, i32 0, i32 9
  %154 = load ptr, ptr %153, align 8, !tbaa !29
  %155 = icmp ne ptr %154, null
  %156 = zext i1 %155 to i32
  %157 = trunc i32 %156 to i8
  store i8 %157, ptr %20, align 1, !tbaa !30
  %158 = load i8, ptr %20, align 1, !tbaa !30
  %159 = icmp ne i8 %158, 0
  br i1 %159, label %160, label %165

160:                                              ; preds = %147
  %161 = load ptr, ptr %19, align 8, !tbaa !5
  %162 = icmp eq ptr %161, null
  %163 = zext i1 %162 to i32
  %164 = trunc i32 %163 to i8
  store i8 %164, ptr %20, align 1, !tbaa !30
  br label %165

165:                                              ; preds = %160, %147
  %166 = load i8, ptr %20, align 1, !tbaa !30
  %167 = icmp ne i8 %166, 0
  br i1 %167, label %168, label %188

168:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %169 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %170 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %169, i32 0, i32 1
  %171 = load ptr, ptr %170, align 8, !tbaa !31
  %172 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %173 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %172, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8, !tbaa !33
  %175 = call ptr %171(ptr noundef %174, i64 noundef 16)
  store ptr %175, ptr %21, align 8, !tbaa !5
  %176 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  %177 = load ptr, ptr %18, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.tag_____Namespace__, ptr %177, i32 0, i32 9
  %179 = load ptr, ptr %178, align 8, !tbaa !29
  %180 = getelementptr inbounds %struct.tag_____List__Ptr__Namespace______, ptr %179, i32 0, i32 1
  %181 = load i32, ptr %180, align 8, !tbaa !34
  %182 = call { ptr, i32 } @Array__cons__Tag____(i32 noundef %181)
  %183 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 0
  %184 = extractvalue { ptr, i32 } %182, 0
  store ptr %184, ptr %183, align 8
  %185 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 1
  %186 = extractvalue { ptr, i32 } %182, 1
  store i32 %186, ptr %185, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %176, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  %187 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %187, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %188

188:                                              ; preds = %168, %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.tag_____StructInitializerExpression__, ptr %189, i32 0, i32 2
  %191 = load ptr, ptr %190, align 8, !tbaa !11
  store ptr %191, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !15
  br label %192

192:                                              ; preds = %330, %188
  %193 = load i32, ptr %24, align 4, !tbaa !15
  %194 = load ptr, ptr %23, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.tag_____List__Ptr__FieldInitializerExpression______, ptr %194, i32 0, i32 1
  %196 = load i32, ptr %195, align 8, !tbaa !16
  %197 = icmp slt i32 %193, %196
  br i1 %197, label %198, label %333

198:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %199 = load ptr, ptr %23, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.tag_____List__Ptr__FieldInitializerExpression______, ptr %199, i32 0, i32 0
  %201 = load ptr, ptr %200, align 8, !tbaa !18
  %202 = load i32, ptr %24, align 4, !tbaa !15
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds ptr, ptr %201, i64 %203
  %205 = load ptr, ptr %204, align 8, !tbaa !5
  store ptr %205, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %206 = load ptr, ptr %25, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.tag_____FieldInitializerExpression__, ptr %206, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %207, i64 16, i1 false), !tbaa.struct !37
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = getelementptr inbounds { i32, ptr }, ptr %26, i32 0, i32 0
  %210 = load i32, ptr %209, align 8
  %211 = getelementptr inbounds { i32, ptr }, ptr %26, i32 0, i32 1
  %212 = load ptr, ptr %211, align 8
  %213 = call { ptr, ptr } @TypeChecker__checkExpression__(ptr noundef %208, i32 %210, ptr %212)
  %214 = getelementptr inbounds { ptr, ptr }, ptr %27, i32 0, i32 0
  %215 = extractvalue { ptr, ptr } %213, 0
  store ptr %215, ptr %214, align 8
  %216 = getelementptr inbounds { ptr, ptr }, ptr %27, i32 0, i32 1
  %217 = extractvalue { ptr, ptr } %213, 1
  store ptr %217, ptr %216, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  %218 = load ptr, ptr %25, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.tag_____FieldInitializerExpression__, ptr %218, i32 0, i32 0
  %220 = load ptr, ptr %219, align 8, !tbaa !38
  %221 = getelementptr inbounds %struct.tag_____Token__, ptr %220, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %221, i64 16, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #5
  %222 = load ptr, ptr %18, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.tag_____Namespace__, ptr %222, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !40
  %225 = getelementptr inbounds { ptr, i32 }, ptr %28, i32 0, i32 0
  %226 = load ptr, ptr %225, align 8
  %227 = getelementptr inbounds { ptr, i32 }, ptr %28, i32 0, i32 1
  %228 = load i32, ptr %227, align 8
  %229 = call { i32, ptr } @Map__getOrDefault__string__Node____(ptr noundef %224, ptr %226, i32 %228)
  %230 = getelementptr inbounds { i32, ptr }, ptr %29, i32 0, i32 0
  %231 = extractvalue { i32, ptr } %229, 0
  store i32 %231, ptr %230, align 8
  %232 = getelementptr inbounds { i32, ptr }, ptr %29, i32 0, i32 1
  %233 = extractvalue { i32, ptr } %229, 1
  store ptr %233, ptr %232, align 8
  %234 = getelementptr inbounds %struct.Node__, ptr %29, i32 0, i32 0
  %235 = load i32, ptr %234, align 8, !tbaa !41
  %236 = icmp eq i32 %235, 36
  br i1 %236, label %237, label %287

237:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %29, i64 16, i1 false), !tbaa.struct !37
  %238 = getelementptr inbounds %struct.Node__, ptr %30, i32 0, i32 0
  %239 = load i32, ptr %238, align 8, !tbaa !41
  %240 = icmp eq i32 %239, 36
  br i1 %240, label %244, label %241

241:                                              ; preds = %237
  %242 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %243 = load ptr, ptr %242, align 8, !tbaa !5
  call void %243(i32 noundef -4)
  br label %244

244:                                              ; preds = %241, %237
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #5
  %245 = getelementptr inbounds %struct.Node__, ptr %30, i32 0, i32 1
  %246 = load ptr, ptr %245, align 8, !tbaa !42
  %247 = getelementptr inbounds %struct.tag_____FieldDef__, ptr %246, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 8 %247, i64 16, i1 false), !tbaa.struct !43
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = load ptr, ptr %18, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.tag_____Namespace__, ptr %249, i32 0, i32 9
  %251 = load ptr, ptr %250, align 8, !tbaa !29
  %252 = load ptr, ptr %19, align 8, !tbaa !5
  %253 = getelementptr inbounds { ptr, ptr }, ptr %27, i32 0, i32 0
  %254 = load ptr, ptr %253, align 8
  %255 = getelementptr inbounds { ptr, ptr }, ptr %27, i32 0, i32 1
  %256 = load ptr, ptr %255, align 8
  %257 = getelementptr inbounds { i32, ptr }, ptr %26, i32 0, i32 0
  %258 = load i32, ptr %257, align 8
  %259 = getelementptr inbounds { i32, ptr }, ptr %26, i32 0, i32 1
  %260 = load ptr, ptr %259, align 8
  %261 = call zeroext i8 @TypeChecker__assignMatch__(ptr noundef %248, ptr %254, ptr %256, i32 %258, ptr %260, ptr noundef byval(%struct.tag_____Tag__) align 8 %31, i8 noundef zeroext 1, ptr noundef %251, ptr noundef %252)
  %262 = icmp ne i8 %261, 0
  br i1 %262, label %286, label %263

263:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #5
  %264 = load ptr, ptr %18, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.tag_____Namespace__, ptr %264, i32 0, i32 9
  %266 = load ptr, ptr %265, align 8, !tbaa !29
  %267 = load ptr, ptr %19, align 8, !tbaa !5
  %268 = getelementptr inbounds { ptr, ptr }, ptr %31, i32 0, i32 0
  %269 = load ptr, ptr %268, align 8
  %270 = getelementptr inbounds { ptr, ptr }, ptr %31, i32 0, i32 1
  %271 = load ptr, ptr %270, align 8
  %272 = call { ptr, ptr } @TypeChecker__closeTag__(ptr %269, ptr %271, ptr noundef %266, ptr noundef %267)
  %273 = getelementptr inbounds { ptr, ptr }, ptr %32, i32 0, i32 0
  %274 = extractvalue { ptr, ptr } %272, 0
  store ptr %274, ptr %273, align 8
  %275 = getelementptr inbounds { ptr, ptr }, ptr %32, i32 0, i32 1
  %276 = extractvalue { ptr, ptr } %272, 1
  store ptr %276, ptr %275, align 8
  %277 = load ptr, ptr %4, align 8, !tbaa !5
  %278 = getelementptr inbounds { i32, ptr }, ptr %26, i32 0, i32 0
  %279 = load i32, ptr %278, align 8
  %280 = getelementptr inbounds { i32, ptr }, ptr %26, i32 0, i32 1
  %281 = load ptr, ptr %280, align 8
  %282 = getelementptr inbounds { ptr, ptr }, ptr %27, i32 0, i32 0
  %283 = load ptr, ptr %282, align 8
  %284 = getelementptr inbounds { ptr, ptr }, ptr %27, i32 0, i32 1
  %285 = load ptr, ptr %284, align 8
  call void @TypeChecker__badArg__(ptr noundef %277, i32 %279, ptr %281, ptr %283, ptr %285, ptr noundef byval(%struct.tag_____Tag__) align 8 %32)
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #5
  br label %286

286:                                              ; preds = %263, %244
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #5
  br label %330

287:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #5
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 @__const.TypeChecker__checkStructInitializerExpression__.local12, i64 16, i1 false)
  %288 = getelementptr inbounds { ptr, i32 }, ptr %34, i32 0, i32 0
  %289 = load ptr, ptr %288, align 8
  %290 = getelementptr inbounds { ptr, i32 }, ptr %34, i32 0, i32 1
  %291 = load i32, ptr %290, align 8
  call void @StringBuilder__write__(ptr noundef %33, ptr %289, i32 %291)
  %292 = load ptr, ptr %18, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.tag_____Namespace__, ptr %292, i32 0, i32 0
  %294 = getelementptr inbounds { ptr, i32 }, ptr %293, i32 0, i32 0
  %295 = load ptr, ptr %294, align 8
  %296 = getelementptr inbounds { ptr, i32 }, ptr %293, i32 0, i32 1
  %297 = load i32, ptr %296, align 8
  call void @StringBuilder__write__(ptr noundef %33, ptr %295, i32 %297)
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 @__const.TypeChecker__checkStructInitializerExpression__.local13, i64 16, i1 false)
  %298 = getelementptr inbounds { ptr, i32 }, ptr %35, i32 0, i32 0
  %299 = load ptr, ptr %298, align 8
  %300 = getelementptr inbounds { ptr, i32 }, ptr %35, i32 0, i32 1
  %301 = load i32, ptr %300, align 8
  call void @StringBuilder__write__(ptr noundef %33, ptr %299, i32 %301)
  %302 = load ptr, ptr %25, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.tag_____FieldInitializerExpression__, ptr %302, i32 0, i32 0
  %304 = load ptr, ptr %303, align 8, !tbaa !38
  %305 = getelementptr inbounds %struct.tag_____Token__, ptr %304, i32 0, i32 1
  %306 = getelementptr inbounds { ptr, i32 }, ptr %305, i32 0, i32 0
  %307 = load ptr, ptr %306, align 8
  %308 = getelementptr inbounds { ptr, i32 }, ptr %305, i32 0, i32 1
  %309 = load i32, ptr %308, align 8
  call void @StringBuilder__write__(ptr noundef %33, ptr %307, i32 %309)
  %310 = load ptr, ptr %4, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %310, i32 0, i32 2
  %312 = load ptr, ptr %311, align 8, !tbaa !24
  %313 = load ptr, ptr %4, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %313, i32 0, i32 5
  %315 = load ptr, ptr %314, align 8, !tbaa !26
  %316 = load ptr, ptr %25, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.tag_____FieldInitializerExpression__, ptr %316, i32 0, i32 0
  %318 = load ptr, ptr %317, align 8, !tbaa !38
  %319 = getelementptr inbounds %struct.tag_____Token__, ptr %318, i32 0, i32 2
  %320 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef %33)
  %321 = getelementptr inbounds { ptr, i32 }, ptr %37, i32 0, i32 0
  %322 = extractvalue { ptr, i32 } %320, 0
  store ptr %322, ptr %321, align 8
  %323 = getelementptr inbounds { ptr, i32 }, ptr %37, i32 0, i32 1
  %324 = extractvalue { ptr, i32 } %320, 1
  store i32 %324, ptr %323, align 8
  %325 = load i64, ptr %319, align 8
  %326 = getelementptr inbounds { ptr, i32 }, ptr %37, i32 0, i32 0
  %327 = load ptr, ptr %326, align 8
  %328 = getelementptr inbounds { ptr, i32 }, ptr %37, i32 0, i32 1
  %329 = load i32, ptr %328, align 8
  call void @Error__at__(ptr dead_on_unwind writable sret(%struct.tag_____Error__) align 8 %36, ptr noundef %315, i64 %325, ptr %327, i32 %329)
  call void @List__add__Error____(ptr noundef %312, ptr noundef byval(%struct.tag_____Error__) align 8 %36)
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #5
  br label %330

330:                                              ; preds = %287, %286
  %331 = load i32, ptr %24, align 4, !tbaa !15
  %332 = add nsw i32 %331, 1
  store i32 %332, ptr %24, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %192, !llvm.loop !44

333:                                              ; preds = %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #5
  call void @llvm.memset.p0.i64(ptr align 8 %38, i8 0, i64 16, i1 false)
  %334 = load ptr, ptr %18, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.tag_____Tag__, ptr %38, i32 0, i32 0
  store ptr %334, ptr %335, align 8, !tbaa !9
  %336 = load ptr, ptr %19, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.tag_____Tag__, ptr %38, i32 0, i32 1
  store ptr %336, ptr %337, align 8, !tbaa !28
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %38, i64 16, i1 false), !tbaa.struct !43
  %338 = load ptr, ptr %19, align 8, !tbaa !5
  %339 = icmp ne ptr %338, null
  br i1 %339, label %340, label %405

340:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #5
  %341 = load ptr, ptr %19, align 8, !tbaa !5
  %342 = call i32 @Tag__argsAnyFlags__(ptr noundef %341)
  store i32 %342, ptr %39, align 4, !tbaa !15
  %343 = load i32, ptr %39, align 4, !tbaa !15
  %344 = and i32 %343, 1048576
  %345 = icmp ne i32 %344, 0
  br i1 %345, label %346, label %361

346:                                              ; preds = %340
  %347 = load ptr, ptr %5, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.tag_____StructInitializerExpression__, ptr %347, i32 0, i32 0
  %349 = getelementptr inbounds %struct.Node__, ptr %348, i32 0, i32 0
  %350 = load i32, ptr %349, align 8, !tbaa !45
  %351 = icmp eq i32 %350, 4
  br i1 %351, label %360, label %352

352:                                              ; preds = %346
  %353 = load ptr, ptr %4, align 8, !tbaa !5
  %354 = load ptr, ptr %5, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.tag_____StructInitializerExpression__, ptr %354, i32 0, i32 0
  %356 = getelementptr inbounds { i32, ptr }, ptr %355, i32 0, i32 0
  %357 = load i32, ptr %356, align 8
  %358 = getelementptr inbounds { i32, ptr }, ptr %355, i32 0, i32 1
  %359 = load ptr, ptr %358, align 8
  call void @TypeChecker__badTypeArgInference__(ptr noundef %353, i32 %357, ptr %359)
  br label %360

360:                                              ; preds = %352, %346
  br label %404

361:                                              ; preds = %340
  %362 = load i32, ptr %39, align 4, !tbaa !15
  %363 = and i32 %362, 16384
  %364 = icmp ne i32 %363, 0
  br i1 %364, label %365, label %397

365:                                              ; preds = %361
  %366 = load ptr, ptr %4, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %366, i32 0, i32 7
  %368 = load ptr, ptr %367, align 8, !tbaa !46
  %369 = getelementptr inbounds %struct.tag_____FunctionDef__, ptr %368, i32 0, i32 20
  %370 = load ptr, ptr %369, align 8, !tbaa !47
  %371 = icmp eq ptr %370, null
  br i1 %371, label %372, label %386

372:                                              ; preds = %365
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  %373 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %374 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %373, i32 0, i32 1
  %375 = load ptr, ptr %374, align 8, !tbaa !31
  %376 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %377 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %376, i32 0, i32 0
  %378 = load ptr, ptr %377, align 8, !tbaa !33
  %379 = call ptr %375(ptr noundef %378, i64 noundef 32)
  store ptr %379, ptr %40, align 8, !tbaa !5
  %380 = load ptr, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %41) #5
  call void @Set__create__Tag____(ptr dead_on_unwind writable sret(%struct.tag_____Set__Tag____) align 8 %41)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %380, ptr align 8 %41, i64 32, i1 false), !tbaa.struct !49
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #5
  %381 = load ptr, ptr %40, align 8, !tbaa !5
  %382 = load ptr, ptr %4, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %382, i32 0, i32 7
  %384 = load ptr, ptr %383, align 8, !tbaa !46
  %385 = getelementptr inbounds %struct.tag_____FunctionDef__, ptr %384, i32 0, i32 20
  store ptr %381, ptr %385, align 8, !tbaa !47
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  br label %386

386:                                              ; preds = %372, %365
  %387 = load ptr, ptr %4, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %387, i32 0, i32 7
  %389 = load ptr, ptr %388, align 8, !tbaa !46
  %390 = getelementptr inbounds %struct.tag_____FunctionDef__, ptr %389, i32 0, i32 20
  %391 = load ptr, ptr %390, align 8, !tbaa !47
  %392 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 0
  %393 = load ptr, ptr %392, align 8
  %394 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 1
  %395 = load ptr, ptr %394, align 8
  %396 = call zeroext i8 @Set__tryAdd__Tag____(ptr noundef %391, ptr %393, ptr %395)
  br label %403

397:                                              ; preds = %361
  %398 = load ptr, ptr %18, align 8, !tbaa !5
  %399 = getelementptr inbounds %struct.tag_____Namespace__, ptr %398, i32 0, i32 10
  %400 = load ptr, ptr %399, align 8, !tbaa !50
  %401 = load ptr, ptr %19, align 8, !tbaa !5
  %402 = call zeroext i8 @CustomSet__tryAdd__Ptr__Array__Tag________(ptr noundef %400, ptr noundef %401)
  br label %403

403:                                              ; preds = %397, %386
  br label %404

404:                                              ; preds = %403, %360
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #5
  br label %405

405:                                              ; preds = %404, %333
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #5
  %406 = load ptr, ptr %5, align 8, !tbaa !5
  %407 = getelementptr inbounds %struct.Node__, ptr %42, i32 0, i32 1
  store ptr %406, ptr %407, align 8, !tbaa !42
  %408 = getelementptr inbounds %struct.Node__, ptr %42, i32 0, i32 1
  %409 = load ptr, ptr %408, align 8, !tbaa !42
  %410 = icmp ne ptr %409, null
  %411 = zext i1 %410 to i64
  %412 = select i1 %410, i32 15, i32 0
  %413 = getelementptr inbounds %struct.Node__, ptr %42, i32 0, i32 0
  store i32 %412, ptr %413, align 8, !tbaa !41
  %414 = load ptr, ptr %4, align 8, !tbaa !5
  %415 = getelementptr inbounds { i32, ptr }, ptr %42, i32 0, i32 0
  %416 = load i32, ptr %415, align 8
  %417 = getelementptr inbounds { i32, ptr }, ptr %42, i32 0, i32 1
  %418 = load ptr, ptr %417, align 8
  %419 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 0
  %420 = load ptr, ptr %419, align 8
  %421 = getelementptr inbounds { ptr, ptr }, ptr %3, i32 0, i32 1
  %422 = load ptr, ptr %421, align 8
  call void @TypeChecker__recordTag__(ptr noundef %414, i32 %416, ptr %418, ptr %420, ptr %422)
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %423

423:                                              ; preds = %405, %146, %90
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  %424 = load { ptr, ptr }, ptr %3, align 8
  ret { ptr, ptr } %424
}

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @TypeChecker__assignMatch__(ptr noundef, ptr, ptr, i32, ptr, ptr noundef byval(%struct.tag_____Tag__) align 8, i8 noundef zeroext, ptr noundef, ptr noundef) #4

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

; Function Attrs: nounwind uwtable
declare dso_local void @TypeChecker__badTypeArgInference__(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, !6, i64 24}
!12 = !{!"tag_____StructInitializerExpression__", !13, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!13 = !{!"", !14, i64 0, !6, i64 8}
!14 = !{!"int", !7, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!17, !14, i64 8}
!17 = !{!"tag_____List__Ptr__FieldInitializerExpression______", !6, i64 0, !14, i64 8, !14, i64 12}
!18 = !{!17, !6, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !14, i64 28}
!22 = !{!"tag_____Namespace__", !23, 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}
!23 = !{!"", !6, i64 0, !14, i64 8}
!24 = !{!25, !6, i64 16}
!25 = !{!"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}
!26 = !{!25, !6, i64 40}
!27 = distinct !{!27, !20}
!28 = !{!10, !6, i64 8}
!29 = !{!22, !6, i64 72}
!30 = !{!7, !7, i64 0}
!31 = !{!32, !6, i64 8}
!32 = !{!"tag_____IAllocator__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!33 = !{!32, !6, i64 0}
!34 = !{!35, !14, i64 8}
!35 = !{!"tag_____List__Ptr__Namespace______", !6, i64 0, !14, i64 8, !14, i64 12}
!36 = !{i64 0, i64 8, !5, i64 8, i64 4, !15}
!37 = !{i64 0, i64 4, !15, i64 8, i64 8, !5}
!38 = !{!39, !6, i64 0}
!39 = !{!"tag_____FieldInitializerExpression__", !6, i64 0, !6, i64 8, !13, i64 16}
!40 = !{!22, !6, i64 32}
!41 = !{!13, !14, i64 0}
!42 = !{!13, !6, i64 8}
!43 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!44 = distinct !{!44, !20}
!45 = !{!12, !14, i64 0}
!46 = !{!25, !6, i64 56}
!47 = !{!48, !6, i64 192}
!48 = !{!"tag_____FunctionDef__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !14, i64 104, !6, i64 112, !23, i64 120, !23, i64 136, !10, i64 152, !14, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !23, i64 208}
!49 = !{i64 0, i64 8, !5, i64 8, i64 4, !15, i64 16, i64 4, !15, i64 20, i64 4, !15, i64 24, i64 4, !15}
!50 = !{!22, !6, i64 80}


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

@mu_____string261 = external dso_local local_unnamed_addr global %struct.string__, align 8
@top_____currentAllocator__ = external dso_local thread_local local_unnamed_addr global %struct.tag_____IAllocator__, align 8
@__const.TypeChecker__checkStructInitializerExpression__.local12 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.TypeChecker__checkStructInitializerExpression__.local13 = external hidden unnamed_addr constant %struct.string__, align 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

15:                                               ; preds = %2
  %16 = getelementptr inbounds i8, ptr %1, i64 24
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = load i32, ptr %18, align 8, !tbaa !12
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph132, label %.loopexit

.lr.ph132:                                        ; preds = %15, %.lr.ph132
  %indvars.iv138 = phi i64 [ %indvars.iv.next139, %.lr.ph132 ], [ 0, %15 ]
  %21 = load ptr, ptr %17, align 8, !tbaa !14
  %22 = getelementptr inbounds ptr, ptr %21, i64 %indvars.iv138
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %25 = load i32, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr %23, i64 24
  %27 = load ptr, ptr %26, align 8
  %28 = tail call { ptr, ptr } @TypeChecker__checkExpression__(ptr noundef %0, i32 %25, ptr %27)
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %29 = load i32, ptr %18, align 8, !tbaa !12
  %30 = sext i32 %29 to i64
  %31 = icmp slt i64 %indvars.iv.next139, %30
  br i1 %31, label %.lr.ph132, label %.loopexit, !llvm.loop !16

32:                                               ; preds = %2
  %33 = getelementptr inbounds i8, ptr %12, i64 28
  %34 = load i32, ptr %33, align 4, !tbaa !18
  %35 = and i32 %34, 256
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %63

37:                                               ; preds = %32
  %38 = getelementptr inbounds i8, ptr %0, i64 16
  %39 = load ptr, ptr %38, align 8, !tbaa !21
  %40 = getelementptr inbounds i8, ptr %0, i64 40
  %41 = load ptr, ptr %40, align 8, !tbaa !23
  %42 = load i32, ptr %1, align 8
  %43 = load ptr, ptr %9, align 8
  %44 = tail call i64 @RangeFinder__find__(i32 %42, ptr %43)
  %45 = load ptr, ptr @mu_____string261, align 8
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string261, i64 8), align 8
  call void @Error__at__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Error__) align 8 %3, ptr noundef %41, i64 %44, ptr %45, i32 %46)
  call void @List__add__Error____(ptr noundef %39, ptr noundef nonnull byval(%struct.tag_____Error__) align 8 %3)
  %47 = getelementptr inbounds i8, ptr %1, i64 24
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = load i32, ptr %49, align 8, !tbaa !12
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph129, label %.loopexit

.lr.ph129:                                        ; preds = %37, %.lr.ph129
  %indvars.iv135 = phi i64 [ %indvars.iv.next136, %.lr.ph129 ], [ 0, %37 ]
  %52 = load ptr, ptr %48, align 8, !tbaa !14
  %53 = getelementptr inbounds ptr, ptr %52, i64 %indvars.iv135
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %56 = load i32, ptr %55, align 8
  %57 = getelementptr inbounds i8, ptr %54, i64 24
  %58 = load ptr, ptr %57, align 8
  %59 = call { ptr, ptr } @TypeChecker__checkExpression__(ptr noundef %0, i32 %56, ptr %58)
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %60 = load i32, ptr %49, align 8, !tbaa !12
  %61 = sext i32 %60 to i64
  %62 = icmp slt i64 %indvars.iv.next136, %61
  br i1 %62, label %.lr.ph129, label %.loopexit, !llvm.loop !24

63:                                               ; preds = %32
  %64 = getelementptr inbounds i8, ptr %12, i64 72
  %65 = load ptr, ptr %64, align 8, !tbaa !25
  %.not = icmp eq ptr %65, null
  %66 = icmp ne ptr %13, null
  %spec.select = select i1 %.not, i1 true, i1 %66
  br i1 %spec.select, label %79, label %67

67:                                               ; preds = %63
  %68 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %69 = getelementptr inbounds i8, ptr %68, i64 8
  %70 = load ptr, ptr %69, align 8, !tbaa !26
  %71 = load ptr, ptr %68, align 8, !tbaa !28
  %72 = tail call ptr %70(ptr noundef %71, i64 noundef 16) #5
  %73 = load ptr, ptr %64, align 8, !tbaa !25
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load i32, ptr %74, align 8, !tbaa !29
  %76 = tail call { ptr, i32 } @Array__cons__Tag____(i32 noundef %75)
  %77 = extractvalue { ptr, i32 } %76, 0
  %78 = extractvalue { ptr, i32 } %76, 1
  store ptr %77, ptr %72, align 8, !tbaa !15
  %.sroa.443.0..sroa_idx = getelementptr inbounds i8, ptr %72, i64 8
  store i32 %78, ptr %.sroa.443.0..sroa_idx, align 8, !tbaa !31
  br label %79

79:                                               ; preds = %67, %63
  %.0114 = phi ptr [ %72, %67 ], [ %13, %63 ]
  %80 = getelementptr inbounds i8, ptr %1, i64 24
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %81, i64 8
  %83 = load i32, ptr %82, align 8, !tbaa !12
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %79
  %85 = getelementptr inbounds i8, ptr %12, i64 32
  %.sroa.010.0.copyload = load ptr, ptr @__const.TypeChecker__checkStructInitializerExpression__.local12, align 8
  %.sroa.411.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.TypeChecker__checkStructInitializerExpression__.local12, i64 8), align 8
  %86 = getelementptr inbounds i8, ptr %12, i64 8
  %.sroa.07.0.copyload = load ptr, ptr @__const.TypeChecker__checkStructInitializerExpression__.local13, align 8
  %.sroa.48.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.TypeChecker__checkStructInitializerExpression__.local13, i64 8), align 8
  %87 = getelementptr inbounds i8, ptr %0, i64 16
  %88 = getelementptr inbounds i8, ptr %0, i64 40
  %89 = getelementptr inbounds i8, ptr %4, i64 8
  br label %90

90:                                               ; preds = %.lr.ph, %130
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %130 ]
  %91 = load ptr, ptr %81, align 8, !tbaa !14
  %92 = getelementptr inbounds ptr, ptr %91, i64 %indvars.iv
  %93 = load ptr, ptr %92, align 8, !tbaa !15
  %94 = getelementptr inbounds i8, ptr %93, i64 16
  %.sroa.026.0.copyload = load i32, ptr %94, align 8, !tbaa !31
  %.sroa.630.0..sroa_idx = getelementptr inbounds i8, ptr %93, i64 24
  %.sroa.630.0.copyload = load ptr, ptr %.sroa.630.0..sroa_idx, align 8, !tbaa !15
  %95 = call { ptr, ptr } @TypeChecker__checkExpression__(ptr noundef %0, i32 %.sroa.026.0.copyload, ptr %.sroa.630.0.copyload)
  %96 = extractvalue { ptr, ptr } %95, 0
  %97 = extractvalue { ptr, ptr } %95, 1
  %98 = load ptr, ptr %93, align 8, !tbaa !32
  %99 = getelementptr inbounds i8, ptr %98, i64 8
  %.sroa.019.0.copyload = load ptr, ptr %99, align 8, !tbaa !15
  %.sroa.420.0..sroa_idx = getelementptr inbounds i8, ptr %98, i64 16
  %.sroa.420.0.copyload = load i32, ptr %.sroa.420.0..sroa_idx, align 8, !tbaa !31
  %100 = load ptr, ptr %85, align 8, !tbaa !34
  %101 = call { i32, ptr } @Map__getOrDefault__string__Node____(ptr noundef %100, ptr %.sroa.019.0.copyload, i32 %.sroa.420.0.copyload)
  %102 = extractvalue { i32, ptr } %101, 0
  %103 = icmp eq i32 %102, 36
  br i1 %103, label %104, label %114

104:                                              ; preds = %90
  %105 = extractvalue { i32, ptr } %101, 1
  %106 = getelementptr inbounds i8, ptr %105, i64 40
  %.sroa.0.0.copyload = load ptr, ptr %106, align 8, !tbaa !15
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %105, i64 48
  %.sroa.4.0.copyload = load ptr, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !15
  %107 = load ptr, ptr %64, align 8, !tbaa !25
  %108 = call zeroext i8 @TypeChecker__assignMatch__(ptr noundef %0, ptr %96, ptr %97, i32 %.sroa.026.0.copyload, ptr %.sroa.630.0.copyload, ptr noundef nonnull byval(%struct.tag_____Tag__) align 8 %106, i8 noundef zeroext 1, ptr noundef %107, ptr noundef %.0114)
  %.not124 = icmp eq i8 %108, 0
  br i1 %.not124, label %109, label %130

109:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  %110 = load ptr, ptr %64, align 8, !tbaa !25
  %111 = call { ptr, ptr } @TypeChecker__closeTag__(ptr %.sroa.0.0.copyload, ptr %.sroa.4.0.copyload, ptr noundef %110, ptr noundef %.0114)
  %112 = extractvalue { ptr, ptr } %111, 0
  store ptr %112, ptr %4, align 8
  %113 = extractvalue { ptr, ptr } %111, 1
  store ptr %113, ptr %89, align 8
  call void @TypeChecker__badArg__(ptr noundef %0, i32 %.sroa.026.0.copyload, ptr %.sroa.630.0.copyload, ptr %96, ptr %97, ptr noundef nonnull byval(%struct.tag_____Tag__) align 8 %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  br label %130

114:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, i8 0, i64 16, i1 false)
  call void @StringBuilder__write__(ptr noundef nonnull %5, ptr %.sroa.010.0.copyload, i32 %.sroa.411.0.copyload)
  %115 = load ptr, ptr %12, align 8
  %116 = load i32, ptr %86, align 8
  call void @StringBuilder__write__(ptr noundef nonnull %5, ptr %115, i32 %116)
  call void @StringBuilder__write__(ptr noundef nonnull %5, ptr %.sroa.07.0.copyload, i32 %.sroa.48.0.copyload)
  %117 = load ptr, ptr %93, align 8, !tbaa !32
  %118 = getelementptr inbounds i8, ptr %117, i64 8
  %119 = load ptr, ptr %118, align 8
  %120 = getelementptr inbounds i8, ptr %117, i64 16
  %121 = load i32, ptr %120, align 8
  call void @StringBuilder__write__(ptr noundef nonnull %5, ptr %119, i32 %121)
  %122 = load ptr, ptr %87, align 8, !tbaa !21
  %123 = load ptr, ptr %88, align 8, !tbaa !23
  %124 = load ptr, ptr %93, align 8, !tbaa !32
  %125 = getelementptr inbounds i8, ptr %124, i64 24
  %126 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef nonnull %5)
  %127 = extractvalue { ptr, i32 } %126, 0
  %128 = extractvalue { ptr, i32 } %126, 1
  %129 = load i64, ptr %125, align 8
  call void @Error__at__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Error__) align 8 %6, ptr noundef %123, i64 %129, ptr %127, i32 %128)
  call void @List__add__Error____(ptr noundef %122, ptr noundef nonnull byval(%struct.tag_____Error__) align 8 %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %130

130:                                              ; preds = %104, %109, %114
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %131 = load i32, ptr %82, align 8, !tbaa !12
  %132 = sext i32 %131 to i64
  %133 = icmp slt i64 %indvars.iv.next, %132
  br i1 %133, label %90, label %._crit_edge, !llvm.loop !35

._crit_edge:                                      ; preds = %130, %79
  %.not121 = icmp eq ptr %.0114, null
  br i1 %.not121, label %165, label %134

134:                                              ; preds = %._crit_edge
  %135 = call i32 @Tag__argsAnyFlags__(ptr noundef nonnull %.0114)
  %136 = and i32 %135, 1048576
  %.not122 = icmp eq i32 %136, 0
  br i1 %.not122, label %142, label %137

137:                                              ; preds = %134
  %138 = load i32, ptr %1, align 8
  %139 = icmp eq i32 %138, 4
  br i1 %139, label %165, label %140

140:                                              ; preds = %137
  %141 = load ptr, ptr %9, align 8
  call void @TypeChecker__badTypeArgInference__(ptr noundef %0, i32 %138, ptr %141)
  br label %165

142:                                              ; preds = %134
  %143 = and i32 %135, 16384
  %.not123 = icmp eq i32 %143, 0
  br i1 %.not123, label %161, label %144

144:                                              ; preds = %142
  %145 = getelementptr inbounds i8, ptr %0, i64 56
  %146 = load ptr, ptr %145, align 8, !tbaa !36
  %147 = getelementptr inbounds i8, ptr %146, i64 192
  %148 = load ptr, ptr %147, align 8, !tbaa !37
  %149 = icmp eq ptr %148, null
  br i1 %149, label %150, label %158

150:                                              ; preds = %144
  %151 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %152 = getelementptr inbounds i8, ptr %151, i64 8
  %153 = load ptr, ptr %152, align 8, !tbaa !26
  %154 = load ptr, ptr %151, align 8, !tbaa !28
  %155 = call ptr %153(ptr noundef %154, i64 noundef 32) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  call void @Set__create__Tag____(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Set__Tag____) align 8 %7)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %155, ptr noundef nonnull align 8 dereferenceable(32) %7, i64 32, i1 false), !tbaa.struct !40
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  %156 = load ptr, ptr %145, align 8, !tbaa !36
  %157 = getelementptr inbounds i8, ptr %156, i64 192
  store ptr %155, ptr %157, align 8, !tbaa !37
  br label %158

158:                                              ; preds = %150, %144
  %159 = phi ptr [ %155, %150 ], [ %148, %144 ]
  %160 = call zeroext i8 @Set__tryAdd__Tag____(ptr noundef nonnull %159, ptr nonnull %12, ptr nonnull %.0114)
  br label %165

161:                                              ; preds = %142
  %162 = getelementptr inbounds i8, ptr %12, i64 80
  %163 = load ptr, ptr %162, align 8, !tbaa !41
  %164 = call zeroext i8 @CustomSet__tryAdd__Ptr__Array__Tag________(ptr noundef %163, ptr noundef nonnull %.0114)
  br label %165

165:                                              ; preds = %140, %137, %161, %158, %._crit_edge
  call void @TypeChecker__recordTag__(ptr noundef %0, i32 15, ptr nonnull %1, ptr nonnull %12, ptr %.0114)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph129, %.lr.ph132, %37, %15, %165
  %.sroa.6109.0 = phi ptr [ %.0114, %165 ], [ null, %15 ], [ null, %37 ], [ null, %.lr.ph132 ], [ null, %.lr.ph129 ]
  %.sroa.0107.0 = phi ptr [ %12, %165 ], [ null, %15 ], [ null, %37 ], [ null, %.lr.ph132 ], [ null, %.lr.ph129 ]
  %.fca.0.insert = insertvalue { ptr, ptr } poison, ptr %.sroa.0107.0, 0
  %.fca.1.insert = insertvalue { ptr, ptr } %.fca.0.insert, ptr %.sroa.6109.0, 1
  ret { ptr, ptr } %.fca.1.insert
}

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @TypeChecker__assignMatch__(ptr noundef, ptr, ptr, i32, ptr, ptr noundef byval(%struct.tag_____Tag__) align 8, i8 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
declare dso_local void @TypeChecker__badTypeArgInference__(ptr noundef, i32, ptr) local_unnamed_addr #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) local_unnamed_addr #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 24}
!6 = !{!"tag_____StructInitializerExpression__", !7, i64 0, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!7 = !{!"", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !8, i64 8}
!13 = !{!"tag_____List__Ptr__FieldInitializerExpression______", !11, i64 0, !8, i64 8, !8, i64 12}
!14 = !{!13, !11, i64 0}
!15 = !{!11, !11, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !8, i64 28}
!19 = !{!"tag_____Namespace__", !20, i64 0, !11, i64 16, !8, i64 24, !8, i64 28, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !8, i64 104}
!20 = !{!"", !11, i64 0, !8, i64 8}
!21 = !{!22, !11, i64 16}
!22 = !{!"tag_____TypeCheckerContext__", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !8, i64 120, !8, i64 124, !11, i64 128, !8, i64 136, !9, i64 140}
!23 = !{!22, !11, i64 40}
!24 = distinct !{!24, !17}
!25 = !{!19, !11, i64 72}
!26 = !{!27, !11, i64 8}
!27 = !{!"tag_____IAllocator__", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!28 = !{!27, !11, i64 0}
!29 = !{!30, !8, i64 8}
!30 = !{!"tag_____List__Ptr__Namespace______", !11, i64 0, !8, i64 8, !8, i64 12}
!31 = !{!8, !8, i64 0}
!32 = !{!33, !11, i64 0}
!33 = !{!"tag_____FieldInitializerExpression__", !11, i64 0, !11, i64 8, !7, i64 16}
!34 = !{!19, !11, i64 32}
!35 = distinct !{!35, !17}
!36 = !{!22, !11, i64 56}
!37 = !{!38, !11, i64 192}
!38 = !{!"tag_____FunctionDef__", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !7, i64 56, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !8, i64 104, !11, i64 112, !20, i64 120, !20, i64 136, !39, i64 152, !8, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !20, i64 208}
!39 = !{!"tag_____Tag__", !11, i64 0, !11, i64 8}
!40 = !{i64 0, i64 8, !15, i64 8, i64 4, !31, i64 16, i64 4, !31, i64 20, i64 4, !31, i64 24, i64 4, !31}
!41 = !{!19, !11, i64 80}


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