; LLVM IR from nickmqb/muon :: bootstrap/mu.ll_CGenerator (sdefStructVariant__)

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

%struct.string__ = type { ptr, i32 }
%struct.tag_____Tag__ = type { ptr, ptr }
%struct.tag_____MapEntry__string__Node____ = type { i32, %struct.string__, %struct.Node__ }
%struct.Node__ = type { i32, ptr }
%struct.tag_____StringBuilder__ = type { ptr, i32, i32 }
%struct.tag_____Namespace__ = type { %struct.string__, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.tag_____Map__string__Node____ = type { %struct.tag_____Array__MapEntry__string__Node______, i32, i32, i32 }
%struct.tag_____Array__MapEntry__string__Node______ = type { ptr, i32 }
%struct.tag_____FieldDef__ = type { ptr, ptr, %struct.Node__, ptr, %struct.tag_____Tag__ }
%struct.tag_____GenerateContext__ = type { ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, %struct.string__, i32, %struct.string__, i32, ptr, ptr, i8 }
%struct.tag_____List__Ptr__FieldDef______ = type { ptr, i32, i32 }
%struct.tag_____CustomSet__Ptr__Array__Tag________ = type { %struct.tag_____Array__SetEntry__Ptr__Array__Tag__________, i32, i32, i32, ptr, ptr }
%struct.tag_____Array__SetEntry__Ptr__Array__Tag__________ = type { ptr, i32 }

@top_____abandonFn__ = external dso_local thread_local global ptr, align 8
@__const.CGenerator__sdefStructVariant__.local4 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.CGenerator__sdefStructVariant__.local5 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.CGenerator__sdefStructVariant__.local9 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.CGenerator__sdefStructVariant__.local10 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.CGenerator__sdefStructVariant__.local12 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.CGenerator__sdefStructVariant__.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 @CodeBuilder__writeLine__(ptr noundef, ptr, i32) #4

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

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__sdefStructVariant__(ptr noundef %0, ptr %1, ptr %2) #4 {
  %4 = alloca %struct.tag_____Tag__, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.tag_____MapEntry__string__Node____, align 8
  %9 = alloca %struct.Node__, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %struct.tag_____Tag__, align 8
  %12 = alloca %struct.string__, align 8
  %13 = alloca %struct.tag_____StringBuilder__, align 8
  %14 = alloca %struct.string__, align 8
  %15 = alloca %struct.string__, align 8
  %16 = alloca %struct.string__, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %struct.tag_____Tag__, align 8
  %21 = alloca %struct.tag_____StringBuilder__, align 8
  %22 = alloca %struct.string__, align 8
  %23 = alloca %struct.string__, align 8
  %24 = alloca %struct.string__, align 8
  %25 = alloca %struct.string__, align 8
  %26 = alloca %struct.string__, align 8
  %27 = alloca %struct.tag_____StringBuilder__, align 8
  %28 = alloca %struct.string__, align 8
  %29 = alloca %struct.string__, align 8
  %30 = alloca %struct.string__, align 8
  %31 = getelementptr inbounds { ptr, ptr }, ptr %4, i32 0, i32 0
  store ptr %1, ptr %31, align 8
  %32 = getelementptr inbounds { ptr, ptr }, ptr %4, i32 0, i32 1
  store ptr %2, ptr %32, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %33 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds %struct.tag_____Namespace__, ptr %34, i32 0, i32 4
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  store ptr %36, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !15
  br label %37

37:                                               ; preds = %120, %3
  %38 = load i32, ptr %7, align 4, !tbaa !15
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.tag_____Map__string__Node____, ptr %39, i32 0, i32 0
  %41 = getelementptr inbounds %struct.tag_____Array__MapEntry__string__Node______, ptr %40, i32 0, i32 1
  %42 = load i32, ptr %41, align 8, !tbaa !16
  %43 = icmp slt i32 %38, %42
  br i1 %43, label %44, label %123

44:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #5
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.tag_____Map__string__Node____, ptr %45, i32 0, i32 0
  %47 = getelementptr inbounds %struct.tag_____Array__MapEntry__string__Node______, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !19
  %49 = load i32, ptr %7, align 4, !tbaa !15
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds %struct.tag_____MapEntry__string__Node____, ptr %48, i64 %50
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %51, i64 40, i1 false), !tbaa.struct !20
  %52 = getelementptr inbounds %struct.tag_____MapEntry__string__Node____, ptr %8, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !21
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %120

55:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %56 = getelementptr inbounds %struct.tag_____MapEntry__string__Node____, ptr %8, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %56, i64 16, i1 false), !tbaa.struct !24
  %57 = getelementptr inbounds %struct.Node__, ptr %9, i32 0, i32 0
  %58 = load i32, ptr %57, align 8, !tbaa !25
  switch i32 %58, label %115 [
    i32 36, label %59
    i32 0, label %116
  ]

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %60 = getelementptr inbounds %struct.Node__, ptr %9, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !26
  store ptr %61, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.tag_____FieldDef__, ptr %62, i32 0, i32 4
  %64 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  %66 = getelementptr inbounds %struct.tag_____Namespace__, ptr %65, i32 0, i32 9
  %67 = load ptr, ptr %66, align 8, !tbaa !27
  %68 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8, !tbaa !28
  %70 = getelementptr inbounds { ptr, ptr }, ptr %63, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8
  %72 = getelementptr inbounds { ptr, ptr }, ptr %63, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8
  %74 = call { ptr, ptr } @TypeChecker__closeTag__(ptr %71, ptr %73, ptr noundef %67, ptr noundef %69)
  %75 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
  %76 = extractvalue { ptr, ptr } %74, 0
  store ptr %76, ptr %75, align 8
  %77 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
  %78 = extractvalue { ptr, ptr } %74, 1
  store ptr %78, ptr %77, align 8
  %79 = getelementptr inbounds %struct.tag_____Tag__, ptr %11, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  %81 = getelementptr inbounds %struct.tag_____Namespace__, ptr %80, i32 0, i32 3
  %82 = load i32, ptr %81, align 4, !tbaa !29
  %83 = and i32 %82, 2097440
  %84 = icmp eq i32 %83, 256
  br i1 %84, label %85, label %114

85:                                               ; preds = %59
  %86 = getelementptr inbounds %struct.tag_____Tag__, ptr %11, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !9
  %88 = getelementptr inbounds %struct.tag_____Namespace__, ptr %87, i32 0, i32 10
  %89 = load ptr, ptr %88, align 8, !tbaa !30
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %107

91:                                               ; preds = %85
  %92 = getelementptr inbounds %struct.tag_____Tag__, ptr %11, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = getelementptr inbounds %struct.tag_____Namespace__, ptr %93, i32 0, i32 11
  %95 = load ptr, ptr %94, align 8, !tbaa !31
  %96 = getelementptr inbounds %struct.tag_____Tag__, ptr %11, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8, !tbaa !28
  %98 = call zeroext i8 @CustomSet__contains__Ptr__Array__Tag________(ptr noundef %95, ptr noundef %97)
  %99 = icmp ne i8 %98, 0
  br i1 %99, label %106, label %100

100:                                              ; preds = %91
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8
  %104 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8
  call void @CGenerator__sdefStructVariant__(ptr noundef %101, ptr %103, ptr %105)
  br label %106

106:                                              ; preds = %100, %91
  br label %113

107:                                              ; preds = %85
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8
  %111 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
  %112 = load ptr, ptr %111, align 8
  call void @CGenerator__sdefStructVariant__(ptr noundef %108, ptr %110, ptr %112)
  br label %113

113:                                              ; preds = %107, %106
  br label %114

114:                                              ; preds = %113, %59
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %119

115:                                              ; preds = %55
  br label %119

116:                                              ; preds = %55
  %117 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  call void %118(i32 noundef -5)
  br label %119

119:                                              ; preds = %116, %115, %114
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  br label %120

120:                                              ; preds = %119, %44
  %121 = load i32, ptr %7, align 4, !tbaa !15
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %7, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #5
  br label %37, !llvm.loop !32

123:                                              ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %124 = getelementptr inbounds { ptr, ptr }, ptr %4, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8
  %126 = getelementptr inbounds { ptr, ptr }, ptr %4, i32 0, i32 1
  %127 = load ptr, ptr %126, align 8
  %128 = call { ptr, i32 } @CGenerator__symTag__(ptr %125, ptr %127)
  %129 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %130 = extractvalue { ptr, i32 } %128, 0
  store ptr %130, ptr %129, align 8
  %131 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %132 = extractvalue { ptr, i32 } %128, 1
  store i32 %132, ptr %131, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 @__const.CGenerator__sdefStructVariant__.local4, i64 16, i1 false)
  %133 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8
  %135 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 1
  %136 = load i32, ptr %135, align 8
  call void @StringBuilder__write__(ptr noundef %13, ptr %134, i32 %136)
  %137 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %138 = load ptr, ptr %137, align 8
  %139 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %140 = load i32, ptr %139, align 8
  call void @StringBuilder__write__(ptr noundef %13, ptr %138, i32 %140)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 @__const.CGenerator__sdefStructVariant__.local5, i64 16, i1 false)
  %141 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8
  %143 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 1
  %144 = load i32, ptr %143, align 8
  call void @StringBuilder__write__(ptr noundef %13, ptr %142, i32 %144)
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %145, i32 0, i32 5
  %147 = load ptr, ptr %146, align 8, !tbaa !34
  %148 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef %13)
  %149 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 0
  %150 = extractvalue { ptr, i32 } %148, 0
  store ptr %150, ptr %149, align 8
  %151 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 1
  %152 = extractvalue { ptr, i32 } %148, 1
  store i32 %152, ptr %151, align 8
  %153 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8
  %155 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 1
  %156 = load i32, ptr %155, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %147, ptr %154, i32 %156)
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %157, i32 0, i32 5
  %159 = load ptr, ptr %158, align 8, !tbaa !34
  call void @CodeBuilder__indent__(ptr noundef %159)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %160 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %161 = load ptr, ptr %160, align 8, !tbaa !9
  %162 = getelementptr inbounds %struct.tag_____Namespace__, ptr %161, i32 0, i32 7
  %163 = load ptr, ptr %162, align 8, !tbaa !36
  store ptr %163, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !15
  br label %164

164:                                              ; preds = %170, %123
  %165 = load i32, ptr %18, align 4, !tbaa !15
  %166 = load ptr, ptr %17, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.tag_____List__Ptr__FieldDef______, ptr %166, i32 0, i32 1
  %168 = load i32, ptr %167, align 8, !tbaa !37
  %169 = icmp slt i32 %165, %168
  br i1 %169, label %170, label %242

170:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %171 = load ptr, ptr %17, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.tag_____List__Ptr__FieldDef______, ptr %171, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8, !tbaa !39
  %174 = load i32, ptr %18, align 4, !tbaa !15
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds ptr, ptr %173, i64 %175
  %177 = load ptr, ptr %176, align 8, !tbaa !5
  store ptr %177, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %178 = load ptr, ptr %19, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.tag_____FieldDef__, ptr %178, i32 0, i32 4
  %180 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8, !tbaa !9
  %182 = getelementptr inbounds %struct.tag_____Namespace__, ptr %181, i32 0, i32 9
  %183 = load ptr, ptr %182, align 8, !tbaa !27
  %184 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 1
  %185 = load ptr, ptr %184, align 8, !tbaa !28
  %186 = getelementptr inbounds { ptr, ptr }, ptr %179, i32 0, i32 0
  %187 = load ptr, ptr %186, align 8
  %188 = getelementptr inbounds { ptr, ptr }, ptr %179, i32 0, i32 1
  %189 = load ptr, ptr %188, align 8
  %190 = call { ptr, ptr } @TypeChecker__closeTag__(ptr %187, ptr %189, ptr noundef %183, ptr noundef %185)
  %191 = getelementptr inbounds { ptr, ptr }, ptr %20, i32 0, i32 0
  %192 = extractvalue { ptr, ptr } %190, 0
  store ptr %192, ptr %191, align 8
  %193 = getelementptr inbounds { ptr, ptr }, ptr %20, i32 0, i32 1
  %194 = extractvalue { ptr, ptr } %190, 1
  store ptr %194, ptr %193, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 16, i1 false)
  %195 = getelementptr inbounds { ptr, ptr }, ptr %20, i32 0, i32 0
  %196 = load ptr, ptr %195, align 8
  %197 = getelementptr inbounds { ptr, ptr }, ptr %20, i32 0, i32 1
  %198 = load ptr, ptr %197, align 8
  %199 = call { ptr, i32 } @CGenerator__symTag__(ptr %196, ptr %198)
  %200 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 0
  %201 = extractvalue { ptr, i32 } %199, 0
  store ptr %201, ptr %200, align 8
  %202 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 1
  %203 = extractvalue { ptr, i32 } %199, 1
  store i32 %203, ptr %202, align 8
  %204 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8
  %206 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 1
  %207 = load i32, ptr %206, align 8
  call void @StringBuilder__write__(ptr noundef %21, ptr %205, i32 %207)
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 @__const.CGenerator__sdefStructVariant__.local9, i64 16, i1 false)
  %208 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8
  %210 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 1
  %211 = load i32, ptr %210, align 8
  call void @StringBuilder__write__(ptr noundef %21, ptr %209, i32 %211)
  %212 = load ptr, ptr %19, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.tag_____FieldDef__, ptr %212, i32 0, i32 1
  %214 = load ptr, ptr %213, align 8, !tbaa !40
  %215 = call { ptr, i32 } @CGenerator__symId__(ptr noundef %214)
  %216 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 0
  %217 = extractvalue { ptr, i32 } %215, 0
  store ptr %217, ptr %216, align 8
  %218 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 1
  %219 = extractvalue { ptr, i32 } %215, 1
  store i32 %219, ptr %218, align 8
  %220 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 0
  %221 = load ptr, ptr %220, align 8
  %222 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 1
  %223 = load i32, ptr %222, align 8
  call void @StringBuilder__write__(ptr noundef %21, ptr %221, i32 %223)
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 @__const.CGenerator__sdefStructVariant__.local10, i64 16, i1 false)
  %224 = getelementptr inbounds { ptr, i32 }, ptr %25, i32 0, i32 0
  %225 = load ptr, ptr %224, align 8
  %226 = getelementptr inbounds { ptr, i32 }, ptr %25, i32 0, i32 1
  %227 = load i32, ptr %226, align 8
  call void @StringBuilder__write__(ptr noundef %21, ptr %225, i32 %227)
  %228 = load ptr, ptr %5, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %228, i32 0, i32 5
  %230 = load ptr, ptr %229, align 8, !tbaa !34
  %231 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef %21)
  %232 = getelementptr inbounds { ptr, i32 }, ptr %26, i32 0, i32 0
  %233 = extractvalue { ptr, i32 } %231, 0
  store ptr %233, ptr %232, align 8
  %234 = getelementptr inbounds { ptr, i32 }, ptr %26, i32 0, i32 1
  %235 = extractvalue { ptr, i32 } %231, 1
  store i32 %235, ptr %234, align 8
  %236 = getelementptr inbounds { ptr, i32 }, ptr %26, i32 0, i32 0
  %237 = load ptr, ptr %236, align 8
  %238 = getelementptr inbounds { ptr, i32 }, ptr %26, i32 0, i32 1
  %239 = load i32, ptr %238, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %230, ptr %237, i32 %239)
  %240 = load i32, ptr %18, align 4, !tbaa !15
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %18, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %164, !llvm.loop !42

242:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  %243 = load ptr, ptr %5, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %243, i32 0, i32 5
  %245 = load ptr, ptr %244, align 8, !tbaa !34
  call void @CodeBuilder__unIndent__(ptr noundef %245)
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 @__const.CGenerator__sdefStructVariant__.local12, i64 16, i1 false)
  %246 = getelementptr inbounds { ptr, i32 }, ptr %28, i32 0, i32 0
  %247 = load ptr, ptr %246, align 8
  %248 = getelementptr inbounds { ptr, i32 }, ptr %28, i32 0, i32 1
  %249 = load i32, ptr %248, align 8
  call void @StringBuilder__write__(ptr noundef %27, ptr %247, i32 %249)
  %250 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %251 = load ptr, ptr %250, align 8
  %252 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %253 = load i32, ptr %252, align 8
  call void @StringBuilder__write__(ptr noundef %27, ptr %251, i32 %253)
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 @__const.CGenerator__sdefStructVariant__.local13, i64 16, i1 false)
  %254 = getelementptr inbounds { ptr, i32 }, ptr %29, i32 0, i32 0
  %255 = load ptr, ptr %254, align 8
  %256 = getelementptr inbounds { ptr, i32 }, ptr %29, i32 0, i32 1
  %257 = load i32, ptr %256, align 8
  call void @StringBuilder__write__(ptr noundef %27, ptr %255, i32 %257)
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %258, i32 0, i32 5
  %260 = load ptr, ptr %259, align 8, !tbaa !34
  %261 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef %27)
  %262 = getelementptr inbounds { ptr, i32 }, ptr %30, i32 0, i32 0
  %263 = extractvalue { ptr, i32 } %261, 0
  store ptr %263, ptr %262, align 8
  %264 = getelementptr inbounds { ptr, i32 }, ptr %30, i32 0, i32 1
  %265 = extractvalue { ptr, i32 } %261, 1
  store i32 %265, ptr %264, align 8
  %266 = getelementptr inbounds { ptr, i32 }, ptr %30, i32 0, i32 0
  %267 = load ptr, ptr %266, align 8
  %268 = getelementptr inbounds { ptr, i32 }, ptr %30, i32 0, i32 1
  %269 = load i32, ptr %268, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %260, ptr %267, i32 %269)
  %270 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %271 = load ptr, ptr %270, align 8, !tbaa !9
  %272 = getelementptr inbounds %struct.tag_____Namespace__, ptr %271, i32 0, i32 10
  %273 = load ptr, ptr %272, align 8, !tbaa !30
  %274 = icmp ne ptr %273, null
  br i1 %274, label %275, label %305

275:                                              ; preds = %242
  %276 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %277 = load ptr, ptr %276, align 8, !tbaa !9
  %278 = getelementptr inbounds %struct.tag_____Namespace__, ptr %277, i32 0, i32 11
  %279 = load ptr, ptr %278, align 8, !tbaa !31
  %280 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 1
  %281 = load ptr, ptr %280, align 8, !tbaa !28
  call void @CustomSet__add__Ptr__Array__Tag________(ptr noundef %279, ptr noundef %281)
  %282 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %283 = load ptr, ptr %282, align 8, !tbaa !9
  %284 = getelementptr inbounds %struct.tag_____Namespace__, ptr %283, i32 0, i32 11
  %285 = load ptr, ptr %284, align 8, !tbaa !31
  %286 = getelementptr inbounds %struct.tag_____CustomSet__Ptr__Array__Tag________, ptr %285, i32 0, i32 1
  %287 = load i32, ptr %286, align 8, !tbaa !43
  %288 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %289 = load ptr, ptr %288, align 8, !tbaa !9
  %290 = getelementptr inbounds %struct.tag_____Namespace__, ptr %289, i32 0, i32 10
  %291 = load ptr, ptr %290, align 8, !tbaa !30
  %292 = getelementptr inbounds %struct.tag_____CustomSet__Ptr__Array__Tag________, ptr %291, i32 0, i32 1
  %293 = load i32, ptr %292, align 8, !tbaa !43
  %294 = icmp eq i32 %287, %293
  br i1 %294, label %295, label %304

295:                                              ; preds = %275
  %296 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %297 = load ptr, ptr %296, align 8, !tbaa !9
  %298 = getelementptr inbounds %struct.tag_____Namespace__, ptr %297, i32 0, i32 3
  %299 = load i32, ptr %298, align 4, !tbaa !29
  %300 = or i32 %299, 2097152
  %301 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %302 = load ptr, ptr %301, align 8, !tbaa !9
  %303 = getelementptr inbounds %struct.tag_____Namespace__, ptr %302, i32 0, i32 3
  store i32 %300, ptr %303, align 4, !tbaa !29
  br label %304

304:                                              ; preds = %295, %275
  br label %314

305:                                              ; preds = %242
  %306 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %307 = load ptr, ptr %306, align 8, !tbaa !9
  %308 = getelementptr inbounds %struct.tag_____Namespace__, ptr %307, i32 0, i32 3
  %309 = load i32, ptr %308, align 4, !tbaa !29
  %310 = or i32 %309, 2097152
  %311 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %312 = load ptr, ptr %311, align 8, !tbaa !9
  %313 = getelementptr inbounds %struct.tag_____Namespace__, ptr %312, i32 0, i32 3
  store i32 %310, ptr %313, align 4, !tbaa !29
  br label %314

314:                                              ; preds = %305, %304
  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 %15) #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 16, ptr %12) #5
  ret void
}

; 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 zeroext i8 @CustomSet__contains__Ptr__Array__Tag________(ptr noundef, ptr noundef) #4

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"tag_____Tag__", !6, i64 0, !6, i64 8}
!11 = !{!12, !6, i64 32}
!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 = !{!14, !14, i64 0}
!16 = !{!17, !14, i64 8}
!17 = !{!"tag_____Map__string__Node____", !18, i64 0, !14, i64 16, !14, i64 20, !14, i64 24}
!18 = !{!"tag_____Array__MapEntry__string__Node______", !6, i64 0, !14, i64 8}
!19 = !{!17, !6, i64 0}
!20 = !{i64 0, i64 4, !15, i64 8, i64 8, !5, i64 16, i64 4, !15, i64 24, i64 4, !15, i64 32, i64 8, !5}
!21 = !{!22, !14, i64 0}
!22 = !{!"tag_____MapEntry__string__Node____", !14, i64 0, !13, i64 8, !23, i64 24}
!23 = !{!"", !14, i64 0, !6, i64 8}
!24 = !{i64 0, i64 4, !15, i64 8, i64 8, !5}
!25 = !{!23, !14, i64 0}
!26 = !{!23, !6, i64 8}
!27 = !{!12, !6, i64 72}
!28 = !{!10, !6, i64 8}
!29 = !{!12, !14, i64 28}
!30 = !{!12, !6, i64 80}
!31 = !{!12, !6, i64 88}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!35, !6, i64 40}
!35 = !{!"tag_____GenerateContext__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !14, i64 48, !14, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !13, i64 80, !14, i64 96, !13, i64 104, !14, i64 120, !6, i64 128, !6, i64 136, !7, i64 144}
!36 = !{!12, !6, i64 56}
!37 = !{!38, !14, i64 8}
!38 = !{!"tag_____List__Ptr__FieldDef______", !6, i64 0, !14, i64 8, !14, i64 12}
!39 = !{!38, !6, i64 0}
!40 = !{!41, !6, i64 8}
!41 = !{!"tag_____FieldDef__", !6, i64 0, !6, i64 8, !23, i64 16, !6, i64 32, !10, i64 40}
!42 = distinct !{!42, !33}
!43 = !{!44, !14, i64 16}
!44 = !{!"tag_____CustomSet__Ptr__Array__Tag________", !45, i64 0, !14, i64 16, !14, i64 20, !14, i64 24, !6, i64 32, !6, i64 40}
!45 = !{!"tag_____Array__SetEntry__Ptr__Array__Tag__________", !6, i64 0, !14, i64 8}


; 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_____StringBuilder__ = type { ptr, i32, i32 }
%struct.tag_____MapEntry__string__Node____ = type { i32, %struct.string__, %struct.Node__ }
%struct.Node__ = type { i32, ptr }

@top_____abandonFn__ = external dso_local thread_local local_unnamed_addr global ptr, align 8
@__const.CGenerator__sdefStructVariant__.local4 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.CGenerator__sdefStructVariant__.local5 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.CGenerator__sdefStructVariant__.local9 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.CGenerator__sdefStructVariant__.local10 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.CGenerator__sdefStructVariant__.local12 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.CGenerator__sdefStructVariant__.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: nounwind uwtable
declare dso_local void @StringBuilder__write__(ptr noundef, ptr, i32) local_unnamed_addr #3

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__sdefStructVariant__(ptr noundef %0, ptr %1, ptr %2) local_unnamed_addr #3 {
  %4 = alloca %struct.tag_____StringBuilder__, align 8
  %5 = alloca %struct.tag_____StringBuilder__, align 8
  %6 = alloca %struct.tag_____StringBuilder__, align 8
  %7 = getelementptr inbounds i8, ptr %1, i64 32
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %8, i64 8
  %10 = load i32, ptr %9, align 8, !tbaa !12
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %12 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %13 = getelementptr inbounds i8, ptr %1, i64 72
  br label %14

14:                                               ; preds = %.lr.ph, %42
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %42 ]
  %15 = load ptr, ptr %8, align 8, !tbaa !15
  %16 = getelementptr inbounds %struct.tag_____MapEntry__string__Node____, ptr %15, i64 %indvars.iv
  %.sroa.048.0.copyload = load i32, ptr %16, align 8, !tbaa !16
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 32
  %.sroa.6.0.copyload = load ptr, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !17
  %.not81 = icmp eq i32 %.sroa.048.0.copyload, 0
  br i1 %.not81, label %42, label %17

17:                                               ; preds = %14
  %.sroa.450.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 24
  %.sroa.450.0.copyload = load i32, ptr %.sroa.450.0..sroa_idx, align 8, !tbaa !16
  switch i32 %.sroa.450.0.copyload, label %42 [
    i32 36, label %18
    i32 0, label %40
  ]

18:                                               ; preds = %17
  %19 = getelementptr inbounds i8, ptr %.sroa.6.0.copyload, i64 40
  %20 = load ptr, ptr %13, align 8, !tbaa !18
  %21 = load ptr, ptr %19, align 8
  %22 = getelementptr inbounds i8, ptr %.sroa.6.0.copyload, i64 48
  %23 = load ptr, ptr %22, align 8
  %24 = tail call { ptr, ptr } @TypeChecker__closeTag__(ptr %21, ptr %23, ptr noundef %20, ptr noundef %2)
  %25 = extractvalue { ptr, ptr } %24, 0
  %26 = extractvalue { ptr, ptr } %24, 1
  %27 = getelementptr inbounds i8, ptr %25, i64 28
  %28 = load i32, ptr %27, align 4, !tbaa !19
  %29 = and i32 %28, 2097440
  %30 = icmp eq i32 %29, 256
  br i1 %30, label %31, label %42

31:                                               ; preds = %18
  %32 = getelementptr inbounds i8, ptr %25, i64 80
  %33 = load ptr, ptr %32, align 8, !tbaa !20
  %.not82 = icmp eq ptr %33, null
  br i1 %.not82, label %39, label %34

34:                                               ; preds = %31
  %35 = getelementptr inbounds i8, ptr %25, i64 88
  %36 = load ptr, ptr %35, align 8, !tbaa !21
  %37 = tail call zeroext i8 @CustomSet__contains__Ptr__Array__Tag________(ptr noundef %36, ptr noundef %26)
  %.not83 = icmp eq i8 %37, 0
  br i1 %.not83, label %38, label %42

38:                                               ; preds = %34
  tail call void @CGenerator__sdefStructVariant__(ptr noundef %0, ptr nonnull %25, ptr %26)
  br label %42

39:                                               ; preds = %31
  tail call void @CGenerator__sdefStructVariant__(ptr noundef %0, ptr nonnull %25, ptr %26)
  br label %42

40:                                               ; preds = %17
  %41 = load ptr, ptr %12, align 8, !tbaa !17
  tail call void %41(i32 noundef -5) #4
  br label %42

42:                                               ; preds = %40, %17, %39, %38, %34, %18, %14
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %43 = load i32, ptr %9, align 8, !tbaa !12
  %44 = sext i32 %43 to i64
  %45 = icmp slt i64 %indvars.iv.next, %44
  br i1 %45, label %14, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %42, %3
  %46 = tail call { ptr, i32 } @CGenerator__symTag__(ptr %1, ptr %2)
  %47 = extractvalue { ptr, i32 } %46, 0
  %48 = extractvalue { ptr, i32 } %46, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  %.sroa.029.0.copyload = load ptr, ptr @__const.CGenerator__sdefStructVariant__.local4, align 8
  %.sroa.430.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.CGenerator__sdefStructVariant__.local4, i64 8), align 8
  call void @StringBuilder__write__(ptr noundef nonnull %4, ptr %.sroa.029.0.copyload, i32 %.sroa.430.0.copyload)
  call void @StringBuilder__write__(ptr noundef nonnull %4, ptr %47, i32 %48)
  %.sroa.026.0.copyload = load ptr, ptr @__const.CGenerator__sdefStructVariant__.local5, align 8
  %.sroa.427.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.CGenerator__sdefStructVariant__.local5, i64 8), align 8
  call void @StringBuilder__write__(ptr noundef nonnull %4, ptr %.sroa.026.0.copyload, i32 %.sroa.427.0.copyload)
  %49 = getelementptr inbounds i8, ptr %0, i64 40
  %50 = load ptr, ptr %49, align 8, !tbaa !24
  %51 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef nonnull %4)
  %52 = extractvalue { ptr, i32 } %51, 0
  %53 = extractvalue { ptr, i32 } %51, 1
  call void @CodeBuilder__writeLine__(ptr noundef %50, ptr %52, i32 %53)
  %54 = load ptr, ptr %49, align 8, !tbaa !24
  call void @CodeBuilder__indent__(ptr noundef %54)
  %55 = getelementptr inbounds i8, ptr %1, i64 56
  %56 = load ptr, ptr %55, align 8, !tbaa !26
  %57 = getelementptr inbounds i8, ptr %56, i64 8
  %58 = load i32, ptr %57, align 8, !tbaa !27
  %59 = icmp sgt i32 %58, 0
  br i1 %59, label %.lr.ph87, label %._crit_edge88

.lr.ph87:                                         ; preds = %._crit_edge
  %60 = getelementptr inbounds i8, ptr %1, i64 72
  %.sroa.012.0.copyload = load ptr, ptr @__const.CGenerator__sdefStructVariant__.local9, align 8
  %.sroa.413.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.CGenerator__sdefStructVariant__.local9, i64 8), align 8
  %.sroa.07.0.copyload = load ptr, ptr @__const.CGenerator__sdefStructVariant__.local10, align 8
  %.sroa.48.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.CGenerator__sdefStructVariant__.local10, i64 8), align 8
  br label %61

61:                                               ; preds = %.lr.ph87, %61
  %indvars.iv90 = phi i64 [ 0, %.lr.ph87 ], [ %indvars.iv.next91, %61 ]
  %62 = load ptr, ptr %56, align 8, !tbaa !29
  %63 = getelementptr inbounds ptr, ptr %62, i64 %indvars.iv90
  %64 = load ptr, ptr %63, align 8, !tbaa !17
  %65 = getelementptr inbounds i8, ptr %64, i64 40
  %66 = load ptr, ptr %60, align 8, !tbaa !18
  %67 = load ptr, ptr %65, align 8
  %68 = getelementptr inbounds i8, ptr %64, i64 48
  %69 = load ptr, ptr %68, align 8
  %70 = call { ptr, ptr } @TypeChecker__closeTag__(ptr %67, ptr %69, ptr noundef %66, ptr noundef %2)
  %71 = extractvalue { ptr, ptr } %70, 0
  %72 = extractvalue { ptr, ptr } %70, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, i8 0, i64 16, i1 false)
  %73 = call { ptr, i32 } @CGenerator__symTag__(ptr %71, ptr %72)
  %74 = extractvalue { ptr, i32 } %73, 0
  %75 = extractvalue { ptr, i32 } %73, 1
  call void @StringBuilder__write__(ptr noundef nonnull %5, ptr %74, i32 %75)
  call void @StringBuilder__write__(ptr noundef nonnull %5, ptr %.sroa.012.0.copyload, i32 %.sroa.413.0.copyload)
  %76 = getelementptr inbounds i8, ptr %64, i64 8
  %77 = load ptr, ptr %76, align 8, !tbaa !30
  %78 = call { ptr, i32 } @CGenerator__symId__(ptr noundef %77)
  %79 = extractvalue { ptr, i32 } %78, 0
  %80 = extractvalue { ptr, i32 } %78, 1
  call void @StringBuilder__write__(ptr noundef nonnull %5, ptr %79, i32 %80)
  call void @StringBuilder__write__(ptr noundef nonnull %5, ptr %.sroa.07.0.copyload, i32 %.sroa.48.0.copyload)
  %81 = load ptr, ptr %49, align 8, !tbaa !24
  %82 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef nonnull %5)
  %83 = extractvalue { ptr, i32 } %82, 0
  %84 = extractvalue { ptr, i32 } %82, 1
  call void @CodeBuilder__writeLine__(ptr noundef %81, ptr %83, i32 %84)
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  %85 = load i32, ptr %57, align 8, !tbaa !27
  %86 = sext i32 %85 to i64
  %87 = icmp slt i64 %indvars.iv.next91, %86
  br i1 %87, label %61, label %._crit_edge88, !llvm.loop !34

._crit_edge88:                                    ; preds = %61, %._crit_edge
  %88 = load ptr, ptr %49, align 8, !tbaa !24
  call void @CodeBuilder__unIndent__(ptr noundef %88)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, i8 0, i64 16, i1 false)
  %.sroa.02.0.copyload = load ptr, ptr @__const.CGenerator__sdefStructVariant__.local12, align 8
  %.sroa.43.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.CGenerator__sdefStructVariant__.local12, i64 8), align 8
  call void @StringBuilder__write__(ptr noundef nonnull %6, ptr %.sroa.02.0.copyload, i32 %.sroa.43.0.copyload)
  call void @StringBuilder__write__(ptr noundef nonnull %6, ptr %47, i32 %48)
  %.sroa.01.0.copyload = load ptr, ptr @__const.CGenerator__sdefStructVariant__.local13, align 8
  %.sroa.4.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.CGenerator__sdefStructVariant__.local13, i64 8), align 8
  call void @StringBuilder__write__(ptr noundef nonnull %6, ptr %.sroa.01.0.copyload, i32 %.sroa.4.0.copyload)
  %89 = load ptr, ptr %49, align 8, !tbaa !24
  %90 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef nonnull %6)
  %91 = extractvalue { ptr, i32 } %90, 0
  %92 = extractvalue { ptr, i32 } %90, 1
  call void @CodeBuilder__writeLine__(ptr noundef %89, ptr %91, i32 %92)
  %93 = getelementptr inbounds i8, ptr %1, i64 80
  %94 = load ptr, ptr %93, align 8, !tbaa !20
  %.not = icmp eq ptr %94, null
  br i1 %.not, label %.sink.split, label %95

95:                                               ; preds = %._crit_edge88
  %96 = getelementptr inbounds i8, ptr %1, i64 88
  %97 = load ptr, ptr %96, align 8, !tbaa !21
  call void @CustomSet__add__Ptr__Array__Tag________(ptr noundef %97, ptr noundef %2)
  %98 = load ptr, ptr %96, align 8, !tbaa !21
  %99 = getelementptr inbounds i8, ptr %98, i64 16
  %100 = load i32, ptr %99, align 8, !tbaa !35
  %101 = load ptr, ptr %93, align 8, !tbaa !20
  %102 = getelementptr inbounds i8, ptr %101, i64 16
  %103 = load i32, ptr %102, align 8, !tbaa !35
  %104 = icmp eq i32 %100, %103
  br i1 %104, label %.sink.split, label %108

.sink.split:                                      ; preds = %._crit_edge88, %95
  %105 = getelementptr inbounds i8, ptr %1, i64 28
  %106 = load i32, ptr %105, align 4, !tbaa !19
  %107 = or i32 %106, 2097152
  store i32 %107, ptr %105, align 4, !tbaa !19
  br label %108

108:                                              ; preds = %.sink.split, %95
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  ret void
}

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

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

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @CGenerator__symTag__(ptr, ptr) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @CodeBuilder__indent__(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @CodeBuilder__unIndent__(ptr noundef) local_unnamed_addr #3

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

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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !8, i64 32}
!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 = !{!13, !11, i64 8}
!13 = !{!"tag_____Map__string__Node____", !14, i64 0, !11, i64 16, !11, i64 20, !11, i64 24}
!14 = !{!"tag_____Array__MapEntry__string__Node______", !8, i64 0, !11, i64 8}
!15 = !{!13, !8, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!6, !8, i64 72}
!19 = !{!6, !11, i64 28}
!20 = !{!6, !8, i64 80}
!21 = !{!6, !8, i64 88}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!25, !8, i64 40}
!25 = !{!"tag_____GenerateContext__", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !11, i64 48, !11, i64 52, !8, i64 56, !8, i64 64, !8, i64 72, !7, i64 80, !11, i64 96, !7, i64 104, !11, i64 120, !8, i64 128, !8, i64 136, !9, i64 144}
!26 = !{!6, !8, i64 56}
!27 = !{!28, !11, i64 8}
!28 = !{!"tag_____List__Ptr__FieldDef______", !8, i64 0, !11, i64 8, !11, i64 12}
!29 = !{!28, !8, i64 0}
!30 = !{!31, !8, i64 8}
!31 = !{!"tag_____FieldDef__", !8, i64 0, !8, i64 8, !32, i64 16, !8, i64 32, !33, i64 40}
!32 = !{!"", !11, i64 0, !8, i64 8}
!33 = !{!"tag_____Tag__", !8, i64 0, !8, i64 8}
!34 = distinct !{!34, !23}
!35 = !{!36, !11, i64 16}
!36 = !{!"tag_____CustomSet__Ptr__Array__Tag________", !37, i64 0, !11, i64 16, !11, i64 20, !11, i64 24, !8, i64 32, !8, i64 40}
!37 = !{!"tag_____Array__SetEntry__Ptr__Array__Tag__________", !8, i64 0, !11, i64 8}


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