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

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

@mu_____string0 = external dso_local global %struct.string__, align 8
@mu_____string519 = external dso_local global %struct.string__, align 8
@mu_____string523 = external dso_local global %struct.string__, align 8
@mu_____string524 = external dso_local global %struct.string__, align 8
@mu_____string521 = external dso_local global %struct.string__, align 8
@mu_____string522 = external dso_local global %struct.string__, align 8
@mu_____string305 = external dso_local global %struct.string__, align 8
@mu_____string303 = external dso_local global %struct.string__, align 8
@mu_____string410 = external dso_local global %struct.string__, align 8
@mu_____string324 = external dso_local global %struct.string__, align 8
@mu_____string448 = external dso_local global %struct.string__, align 8
@mu_____string421 = external dso_local global %struct.string__, align 8
@mu_____string422 = external dso_local global %struct.string__, align 8
@mu_____string520 = external dso_local global %struct.string__, align 8
@mu_____string518 = 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

; 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 void @CodeBuilder__writeLine__(ptr noundef, ptr, i32) #4

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

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

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

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

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

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

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

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

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

58:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %59, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !16
  %62 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %61, i32 0, i32 19
  %63 = load ptr, ptr %62, align 8, !tbaa !18
  %64 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8
  %66 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8
  %68 = call { ptr, ptr } @TypeChecker__getSingleArgTag__(ptr noundef %63, ptr %65, ptr %67)
  %69 = getelementptr inbounds { ptr, ptr }, ptr %17, i32 0, i32 0
  %70 = extractvalue { ptr, ptr } %68, 0
  store ptr %70, ptr %69, align 8
  %71 = getelementptr inbounds { ptr, ptr }, ptr %17, i32 0, i32 1
  %72 = extractvalue { ptr, ptr } %68, 1
  store ptr %72, ptr %71, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  store i8 1, ptr %16, align 1, !tbaa !9
  br label %73

73:                                               ; preds = %58, %8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %74 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %75 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !21
  %77 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %78 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !23
  %80 = call ptr %76(ptr noundef %79, i64 noundef 16)
  store ptr %80, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 16, i1 false)
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %81, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %82 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %82, ptr %20, align 8, !tbaa !5
  %83 = load ptr, ptr %20, align 8, !tbaa !5
  %84 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8
  %86 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 1
  %87 = load ptr, ptr %86, align 8
  call void @CGenerator__writeTag__(ptr noundef %83, ptr %85, ptr %87)
  %88 = load ptr, ptr %20, align 8, !tbaa !5
  %89 = load ptr, ptr @mu_____string421, align 8
  %90 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string421, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %88, ptr %89, i32 %90)
  %91 = load ptr, ptr %20, align 8, !tbaa !5
  %92 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8
  %94 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 1
  %95 = load i32, ptr %94, align 8
  call void @StringBuilder__write__(ptr noundef %91, ptr %93, i32 %95)
  %96 = load ptr, ptr %20, align 8, !tbaa !5
  %97 = load ptr, ptr @mu_____string422, align 8
  %98 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string422, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %96, ptr %97, i32 %98)
  %99 = load i8, ptr %16, align 1, !tbaa !9
  %100 = icmp ne i8 %99, 0
  br i1 %100, label %101, label %129

101:                                              ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %102 = getelementptr inbounds %struct.tag_____Tag__, ptr %15, i32 0, i32 1
  %103 = load ptr, ptr %102, align 8, !tbaa !26
  store ptr %103, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !25
  %104 = load i32, ptr %22, align 4, !tbaa !25
  %105 = load ptr, ptr %21, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.tag_____Array__Tag____, ptr %105, i32 0, i32 1
  %107 = load i32, ptr %106, align 8, !tbaa !27
  %108 = icmp ult i32 %104, %107
  br i1 %108, label %112, label %109

109:                                              ; preds = %101
  %110 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  call void %111(i32 noundef -3)
  br label %112

112:                                              ; preds = %109, %101
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = load ptr, ptr %21, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.tag_____Array__Tag____, ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !29
  %117 = load i32, ptr %22, align 4, !tbaa !25
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds %struct.tag_____Tag__, ptr %116, i64 %118
  %120 = load ptr, ptr %20, align 8, !tbaa !5
  %121 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 0
  %122 = load i32, ptr %121, align 8
  %123 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 1
  %124 = load ptr, ptr %123, align 8
  %125 = getelementptr inbounds { ptr, ptr }, ptr %119, i32 0, i32 0
  %126 = load ptr, ptr %125, align 8
  %127 = getelementptr inbounds { ptr, ptr }, ptr %119, i32 0, i32 1
  %128 = load ptr, ptr %127, align 8
  call void @CGenerator__genLvalueRefExpression__(ptr noundef %113, i32 %122, ptr %124, ptr %126, ptr %128, ptr noundef %120)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %136

129:                                              ; preds = %73
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = load ptr, ptr %20, align 8, !tbaa !5
  %132 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 0
  %133 = load i32, ptr %132, align 8
  %134 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 1
  %135 = load ptr, ptr %134, align 8
  call void @CGenerator__genExpression__(ptr noundef %130, i32 %133, ptr %135, ptr noundef %131)
  br label %136

136:                                              ; preds = %129, %112
  %137 = load ptr, ptr %20, align 8, !tbaa !5
  %138 = load ptr, ptr @mu_____string324, align 8
  %139 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string324, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %137, ptr %138, i32 %139)
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %140, i32 0, i32 5
  %142 = load ptr, ptr %141, align 8, !tbaa !30
  %143 = load ptr, ptr %20, align 8, !tbaa !5
  %144 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %143)
  %145 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 0
  %146 = extractvalue { ptr, i32 } %144, 0
  store ptr %146, ptr %145, align 8
  %147 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 1
  %148 = extractvalue { ptr, i32 } %144, 1
  store i32 %148, ptr %147, align 8
  %149 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 0
  %150 = load ptr, ptr %149, align 8
  %151 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 1
  %152 = load i32, ptr %151, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %142, ptr %150, i32 %152)
  %153 = load ptr, ptr %20, align 8, !tbaa !5
  call void @StringBuilder__clear__(ptr noundef %153)
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 @mu_____string0, i64 16, i1 false), !tbaa.struct !31
  %154 = load i8, ptr %12, align 1, !tbaa !9
  %155 = icmp ne i8 %154, 0
  br i1 %155, label %156, label %290

156:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %157 = load ptr, ptr %11, align 8, !tbaa !5
  %158 = call { ptr, i32 } @CGenerator__newLocal__(ptr noundef %157)
  %159 = getelementptr inbounds { ptr, i32 }, ptr %25, i32 0, i32 0
  %160 = extractvalue { ptr, i32 } %158, 0
  store ptr %160, ptr %159, align 8
  %161 = getelementptr inbounds { ptr, i32 }, ptr %25, i32 0, i32 1
  %162 = extractvalue { ptr, i32 } %158, 1
  store i32 %162, ptr %161, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %25, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  %163 = load ptr, ptr %20, align 8, !tbaa !5
  %164 = load ptr, ptr @mu_____string518, align 8
  %165 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string518, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %163, ptr %164, i32 %165)
  %166 = load ptr, ptr %20, align 8, !tbaa !5
  %167 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 0
  %168 = load ptr, ptr %167, align 8
  %169 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 1
  %170 = load i32, ptr %169, align 8
  call void @StringBuilder__write__(ptr noundef %166, ptr %168, i32 %170)
  %171 = load ptr, ptr %20, align 8, !tbaa !5
  %172 = load ptr, ptr @mu_____string519, align 8
  %173 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string519, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %171, ptr %172, i32 %173)
  %174 = load ptr, ptr %11, align 8, !tbaa !5
  %175 = load ptr, ptr %20, align 8, !tbaa !5
  %176 = getelementptr inbounds { i32, ptr }, ptr %10, i32 0, i32 0
  %177 = load i32, ptr %176, align 8
  %178 = getelementptr inbounds { i32, ptr }, ptr %10, i32 0, i32 1
  %179 = load ptr, ptr %178, align 8
  call void @CGenerator__genExpression__(ptr noundef %174, i32 %177, ptr %179, ptr noundef %175)
  %180 = load ptr, ptr %20, align 8, !tbaa !5
  %181 = load ptr, ptr @mu_____string410, align 8
  %182 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string410, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %180, ptr %181, i32 %182)
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %183, i32 0, i32 5
  %185 = load ptr, ptr %184, align 8, !tbaa !30
  %186 = load ptr, ptr %20, align 8, !tbaa !5
  %187 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %186)
  %188 = getelementptr inbounds { ptr, i32 }, ptr %26, i32 0, i32 0
  %189 = extractvalue { ptr, i32 } %187, 0
  store ptr %189, ptr %188, align 8
  %190 = getelementptr inbounds { ptr, i32 }, ptr %26, i32 0, i32 1
  %191 = extractvalue { ptr, i32 } %187, 1
  store i32 %191, ptr %190, align 8
  %192 = getelementptr inbounds { ptr, i32 }, ptr %26, i32 0, i32 0
  %193 = load ptr, ptr %192, align 8
  %194 = getelementptr inbounds { ptr, i32 }, ptr %26, i32 0, i32 1
  %195 = load i32, ptr %194, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %185, ptr %193, i32 %195)
  %196 = load ptr, ptr %20, align 8, !tbaa !5
  call void @StringBuilder__clear__(ptr noundef %196)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %197 = getelementptr inbounds %struct.tag_____Tag__, ptr %15, i32 0, i32 1
  %198 = load ptr, ptr %197, align 8, !tbaa !26
  store ptr %198, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !25
  %199 = load i32, ptr %28, align 4, !tbaa !25
  %200 = load ptr, ptr %27, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.tag_____Array__Tag____, ptr %200, i32 0, i32 1
  %202 = load i32, ptr %201, align 8, !tbaa !27
  %203 = icmp ult i32 %199, %202
  br i1 %203, label %207, label %204

204:                                              ; preds = %156
  %205 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %206 = load ptr, ptr %205, align 8, !tbaa !5
  call void %206(i32 noundef -3)
  br label %207

207:                                              ; preds = %204, %156
  %208 = load ptr, ptr %27, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.tag_____Array__Tag____, ptr %208, i32 0, i32 0
  %210 = load ptr, ptr %209, align 8, !tbaa !29
  %211 = load i32, ptr %28, align 4, !tbaa !25
  %212 = zext i32 %211 to i64
  %213 = getelementptr inbounds %struct.tag_____Tag__, ptr %210, i64 %212
  %214 = getelementptr inbounds %struct.tag_____Tag__, ptr %213, i32 0, i32 0
  %215 = load ptr, ptr %214, align 8, !tbaa !10
  %216 = load ptr, ptr %11, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %216, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !16
  %219 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %218, i32 0, i32 16
  %220 = getelementptr inbounds %struct.tag_____Tag__, ptr %219, i32 0, i32 0
  %221 = load ptr, ptr %220, align 8, !tbaa !32
  %222 = icmp eq ptr %215, %221
  br i1 %222, label %223, label %256

223:                                              ; preds = %207
  %224 = load ptr, ptr %20, align 8, !tbaa !5
  %225 = load ptr, ptr @mu_____string520, align 8
  %226 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string520, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %224, ptr %225, i32 %226)
  %227 = load ptr, ptr %20, align 8, !tbaa !5
  %228 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 0
  %229 = load ptr, ptr %228, align 8
  %230 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 1
  %231 = load i32, ptr %230, align 8
  call void @StringBuilder__write__(ptr noundef %227, ptr %229, i32 %231)
  %232 = load ptr, ptr %20, align 8, !tbaa !5
  %233 = load ptr, ptr @mu_____string521, align 8
  %234 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string521, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %232, ptr %233, i32 %234)
  %235 = load ptr, ptr %20, align 8, !tbaa !5
  %236 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 0
  %237 = load ptr, ptr %236, align 8
  %238 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 1
  %239 = load i32, ptr %238, align 8
  call void @StringBuilder__write__(ptr noundef %235, ptr %237, i32 %239)
  %240 = load ptr, ptr %20, align 8, !tbaa !5
  %241 = load ptr, ptr @mu_____string522, align 8
  %242 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string522, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %240, ptr %241, i32 %242)
  %243 = load ptr, ptr %11, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %243, i32 0, i32 5
  %245 = load ptr, ptr %244, align 8, !tbaa !30
  %246 = load ptr, ptr %20, align 8, !tbaa !5
  %247 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %246)
  %248 = getelementptr inbounds { ptr, i32 }, ptr %29, i32 0, i32 0
  %249 = extractvalue { ptr, i32 } %247, 0
  store ptr %249, ptr %248, align 8
  %250 = getelementptr inbounds { ptr, i32 }, ptr %29, i32 0, i32 1
  %251 = extractvalue { ptr, i32 } %247, 1
  store i32 %251, ptr %250, align 8
  %252 = getelementptr inbounds { ptr, i32 }, ptr %29, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8
  %254 = getelementptr inbounds { ptr, i32 }, ptr %29, i32 0, i32 1
  %255 = load i32, ptr %254, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %245, ptr %253, i32 %255)
  br label %289

256:                                              ; preds = %207
  %257 = load ptr, ptr %20, align 8, !tbaa !5
  %258 = load ptr, ptr @mu_____string520, align 8
  %259 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string520, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %257, ptr %258, i32 %259)
  %260 = load ptr, ptr %20, align 8, !tbaa !5
  %261 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 0
  %262 = load ptr, ptr %261, align 8
  %263 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 1
  %264 = load i32, ptr %263, align 8
  call void @StringBuilder__write__(ptr noundef %260, ptr %262, i32 %264)
  %265 = load ptr, ptr %20, align 8, !tbaa !5
  %266 = load ptr, ptr @mu_____string521, align 8
  %267 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string521, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %265, ptr %266, i32 %267)
  %268 = load ptr, ptr %20, align 8, !tbaa !5
  %269 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 0
  %270 = load ptr, ptr %269, align 8
  %271 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 1
  %272 = load i32, ptr %271, align 8
  call void @StringBuilder__write__(ptr noundef %268, ptr %270, i32 %272)
  %273 = load ptr, ptr %20, align 8, !tbaa !5
  %274 = load ptr, ptr @mu_____string523, align 8
  %275 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string523, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %273, ptr %274, i32 %275)
  %276 = load ptr, ptr %11, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %276, i32 0, i32 5
  %278 = load ptr, ptr %277, align 8, !tbaa !30
  %279 = load ptr, ptr %20, align 8, !tbaa !5
  %280 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %279)
  %281 = getelementptr inbounds { ptr, i32 }, ptr %30, i32 0, i32 0
  %282 = extractvalue { ptr, i32 } %280, 0
  store ptr %282, ptr %281, align 8
  %283 = getelementptr inbounds { ptr, i32 }, ptr %30, i32 0, i32 1
  %284 = extractvalue { ptr, i32 } %280, 1
  store i32 %284, ptr %283, align 8
  %285 = getelementptr inbounds { ptr, i32 }, ptr %30, i32 0, i32 0
  %286 = load ptr, ptr %285, align 8
  %287 = getelementptr inbounds { ptr, i32 }, ptr %30, i32 0, i32 1
  %288 = load i32, ptr %287, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %278, ptr %286, i32 %288)
  br label %289

289:                                              ; preds = %256, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %290

290:                                              ; preds = %289, %136
  %291 = load ptr, ptr %13, align 8, !tbaa !5
  %292 = load ptr, ptr @mu_____string448, align 8
  %293 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string448, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %291, ptr %292, i32 %293)
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #5
  %294 = load ptr, ptr %11, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %294, i32 0, i32 4
  %296 = load ptr, ptr %295, align 8, !tbaa !16
  %297 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %296, i32 0, i32 19
  %298 = load ptr, ptr %297, align 8, !tbaa !18
  %299 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 0
  %300 = load ptr, ptr %299, align 8
  %301 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 1
  %302 = load ptr, ptr %301, align 8
  %303 = call { ptr, ptr } @TypeChecker__getSingleArgTag__(ptr noundef %298, ptr %300, ptr %302)
  %304 = getelementptr inbounds { ptr, ptr }, ptr %31, i32 0, i32 0
  %305 = extractvalue { ptr, ptr } %303, 0
  store ptr %305, ptr %304, align 8
  %306 = getelementptr inbounds { ptr, ptr }, ptr %31, i32 0, i32 1
  %307 = extractvalue { ptr, ptr } %303, 1
  store ptr %307, ptr %306, align 8
  %308 = load ptr, ptr %13, align 8, !tbaa !5
  %309 = getelementptr inbounds { ptr, ptr }, ptr %31, i32 0, i32 0
  %310 = load ptr, ptr %309, align 8
  %311 = getelementptr inbounds { ptr, ptr }, ptr %31, i32 0, i32 1
  %312 = load ptr, ptr %311, align 8
  call void @CGenerator__writeTag__(ptr noundef %308, ptr %310, ptr %312)
  %313 = load ptr, ptr %13, align 8, !tbaa !5
  %314 = load ptr, ptr @mu_____string303, align 8
  %315 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string303, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %313, ptr %314, i32 %315)
  %316 = load ptr, ptr %13, align 8, !tbaa !5
  %317 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 0
  %318 = load ptr, ptr %317, align 8
  %319 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 1
  %320 = load i32, ptr %319, align 8
  call void @StringBuilder__write__(ptr noundef %316, ptr %318, i32 %320)
  %321 = load ptr, ptr %13, align 8, !tbaa !5
  %322 = load ptr, ptr @mu_____string524, align 8
  %323 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string524, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %321, ptr %322, i32 %323)
  %324 = load i8, ptr %12, align 1, !tbaa !9
  %325 = icmp ne i8 %324, 0
  br i1 %325, label %326, label %332

326:                                              ; preds = %290
  %327 = load ptr, ptr %13, align 8, !tbaa !5
  %328 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 0
  %329 = load ptr, ptr %328, align 8
  %330 = getelementptr inbounds { ptr, i32 }, ptr %24, i32 0, i32 1
  %331 = load i32, ptr %330, align 8
  call void @StringBuilder__write__(ptr noundef %327, ptr %329, i32 %331)
  br label %339

332:                                              ; preds = %290
  %333 = load ptr, ptr %11, align 8, !tbaa !5
  %334 = load ptr, ptr %13, align 8, !tbaa !5
  %335 = getelementptr inbounds { i32, ptr }, ptr %10, i32 0, i32 0
  %336 = load i32, ptr %335, align 8
  %337 = getelementptr inbounds { i32, ptr }, ptr %10, i32 0, i32 1
  %338 = load ptr, ptr %337, align 8
  call void @CGenerator__genExpression__(ptr noundef %333, i32 %336, ptr %338, ptr noundef %334)
  br label %339

339:                                              ; preds = %332, %326
  %340 = load ptr, ptr %13, align 8, !tbaa !5
  %341 = load ptr, ptr @mu_____string305, align 8
  %342 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string305, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %340, ptr %341, i32 %342)
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  ret void
}

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 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 0}
!11 = !{!"tag_____Tag__", !6, i64 0, !6, i64 8}
!12 = !{!13, !15, i64 28}
!13 = !{!"tag_____Namespace__", !14, i64 0, !6, i64 16, !15, i64 24, !15, 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, !15, i64 104}
!14 = !{!"", !6, i64 0, !15, i64 8}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !6, i64 32}
!17 = !{!"tag_____GenerateContext__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !15, i64 48, !15, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !14, i64 80, !15, i64 96, !14, i64 104, !15, i64 120, !6, i64 128, !6, i64 136, !7, i64 144}
!18 = !{!19, !6, i64 304}
!19 = !{!"tag_____CommonTags__", !11, i64 0, !11, i64 16, !11, i64 32, !11, i64 48, !11, i64 64, !11, i64 80, !11, i64 96, !11, i64 112, !11, i64 128, !11, i64 144, !11, i64 160, !11, i64 176, !11, i64 192, !11, i64 208, !11, i64 224, !11, i64 240, !11, i64 256, !11, i64 272, !11, i64 288, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376}
!20 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!21 = !{!22, !6, i64 8}
!22 = !{!"tag_____IAllocator__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!22, !6, i64 0}
!24 = !{i64 0, i64 8, !5, i64 8, i64 4, !25, i64 12, i64 4, !25}
!25 = !{!15, !15, i64 0}
!26 = !{!11, !6, i64 8}
!27 = !{!28, !15, i64 8}
!28 = !{!"tag_____Array__Tag____", !6, i64 0, !15, i64 8}
!29 = !{!28, !6, i64 0}
!30 = !{!17, !6, i64 40}
!31 = !{i64 0, i64 8, !5, i64 8, i64 4, !25}
!32 = !{!19, !6, i64 256}


; 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_____Tag__ = type { ptr, ptr }

@mu_____string0 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string519 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string523 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string524 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string521 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string522 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string305 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string303 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string410 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string324 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string448 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string421 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string422 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string520 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string518 = 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
@top_____abandonFn__ = external dso_local thread_local local_unnamed_addr global ptr, align 8

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__genIndex__(ptr noundef %0, i32 %1, ptr %2, i32 %3, ptr %4, ptr nocapture noundef readonly byval(%struct.tag_____Tag__) align 8 %5, i8 noundef zeroext %6, ptr noundef %7) local_unnamed_addr #2 {
  %9 = tail call { ptr, i32 } @CGenerator__newLocal__(ptr noundef %0)
  %10 = extractvalue { ptr, i32 } %9, 0
  %11 = extractvalue { ptr, i32 } %9, 1
  %12 = tail call { ptr, ptr } @CGenerator__nodeTag__(ptr noundef %0, i32 %1, ptr %2)
  %13 = extractvalue { ptr, ptr } %12, 0
  %14 = extractvalue { ptr, ptr } %12, 1
  %15 = getelementptr inbounds i8, ptr %13, i64 28
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = and i32 %16, 65536
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %18, label %26

18:                                               ; preds = %8
  %19 = getelementptr inbounds i8, ptr %0, i64 32
  %20 = load ptr, ptr %19, align 8, !tbaa !12
  %21 = getelementptr inbounds i8, ptr %20, i64 304
  %22 = load ptr, ptr %21, align 8, !tbaa !14
  %23 = tail call { ptr, ptr } @TypeChecker__getSingleArgTag__(ptr noundef %22, ptr nonnull %13, ptr %14)
  %24 = extractvalue { ptr, ptr } %23, 0
  %25 = extractvalue { ptr, ptr } %23, 1
  br label %26

26:                                               ; preds = %18, %8
  %.sroa.056.0 = phi ptr [ %24, %18 ], [ %13, %8 ]
  %.sroa.7.0 = phi ptr [ %25, %18 ], [ %14, %8 ]
  %27 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !17
  %30 = load ptr, ptr %27, align 8, !tbaa !19
  %31 = tail call ptr %29(ptr noundef %30, i64 noundef 16) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %31, i8 0, i64 16, i1 false)
  tail call void @CGenerator__writeTag__(ptr noundef %31, ptr %.sroa.056.0, ptr %.sroa.7.0)
  %32 = load ptr, ptr @mu_____string421, align 8
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string421, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %31, ptr %32, i32 %33)
  tail call void @StringBuilder__write__(ptr noundef %31, ptr %10, i32 %11)
  %34 = load ptr, ptr @mu_____string422, align 8
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string422, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %31, ptr %34, i32 %35)
  br i1 %.not, label %36, label %47

36:                                               ; preds = %26
  %37 = getelementptr inbounds i8, ptr %.sroa.7.0, i64 8
  %38 = load i32, ptr %37, align 8, !tbaa !20
  %.not103 = icmp eq i32 %38, 0
  br i1 %.not103, label %39, label %42

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

42:                                               ; preds = %39, %36
  %43 = load ptr, ptr %.sroa.7.0, align 8, !tbaa !23
  %44 = load ptr, ptr %43, align 8
  %45 = getelementptr inbounds i8, ptr %43, i64 8
  %46 = load ptr, ptr %45, align 8
  tail call void @CGenerator__genLvalueRefExpression__(ptr noundef %0, i32 %1, ptr %2, ptr %44, ptr %46, ptr noundef nonnull %31)
  br label %48

47:                                               ; preds = %26
  tail call void @CGenerator__genExpression__(ptr noundef %0, i32 %1, ptr %2, ptr noundef nonnull %31)
  br label %48

48:                                               ; preds = %47, %42
  %49 = load ptr, ptr @mu_____string324, align 8
  %50 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string324, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %31, ptr %49, i32 %50)
  %51 = getelementptr inbounds i8, ptr %0, i64 40
  %52 = load ptr, ptr %51, align 8, !tbaa !24
  %53 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef nonnull %31)
  %54 = extractvalue { ptr, i32 } %53, 0
  %55 = extractvalue { ptr, i32 } %53, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %52, ptr %54, i32 %55)
  tail call void @StringBuilder__clear__(ptr noundef nonnull %31)
  %.sroa.010.0.copyload = load ptr, ptr @mu_____string0, align 8, !tbaa !22
  %.sroa.8.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string0, i64 8), align 8, !tbaa !25
  %.not104 = icmp eq i8 %6, 0
  br i1 %.not104, label %92, label %56

56:                                               ; preds = %48
  %57 = tail call { ptr, i32 } @CGenerator__newLocal__(ptr noundef nonnull %0)
  %58 = extractvalue { ptr, i32 } %57, 0
  %59 = extractvalue { ptr, i32 } %57, 1
  %60 = load ptr, ptr @mu_____string518, align 8
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string518, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %31, ptr %60, i32 %61)
  tail call void @StringBuilder__write__(ptr noundef nonnull %31, ptr %58, i32 %59)
  %62 = load ptr, ptr @mu_____string519, align 8
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string519, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %31, ptr %62, i32 %63)
  tail call void @CGenerator__genExpression__(ptr noundef nonnull %0, i32 %3, ptr %4, ptr noundef nonnull %31)
  %64 = load ptr, ptr @mu_____string410, align 8
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string410, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %31, ptr %64, i32 %65)
  %66 = load ptr, ptr %51, align 8, !tbaa !24
  %67 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef nonnull %31)
  %68 = extractvalue { ptr, i32 } %67, 0
  %69 = extractvalue { ptr, i32 } %67, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %66, ptr %68, i32 %69)
  tail call void @StringBuilder__clear__(ptr noundef nonnull %31)
  %70 = getelementptr inbounds i8, ptr %.sroa.7.0, i64 8
  %71 = load i32, ptr %70, align 8, !tbaa !20
  %.not105 = icmp eq i32 %71, 0
  br i1 %.not105, label %72, label %.sink.split

72:                                               ; preds = %56
  %73 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %74 = load ptr, ptr %73, align 8, !tbaa !22
  tail call void %74(i32 noundef -3) #3
  br label %.sink.split

.sink.split:                                      ; preds = %72, %56
  %75 = load ptr, ptr %.sroa.7.0, align 8, !tbaa !23
  %76 = load ptr, ptr %75, align 8, !tbaa !26
  %77 = getelementptr inbounds i8, ptr %0, i64 32
  %78 = load ptr, ptr %77, align 8, !tbaa !12
  %79 = getelementptr inbounds i8, ptr %78, i64 256
  %80 = load ptr, ptr %79, align 8, !tbaa !27
  %81 = icmp eq ptr %76, %80
  %82 = load ptr, ptr @mu_____string520, align 8
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string520, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %31, ptr %82, i32 %83)
  tail call void @StringBuilder__write__(ptr noundef nonnull %31, ptr %58, i32 %59)
  %84 = load ptr, ptr @mu_____string521, align 8
  %85 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string521, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %31, ptr %84, i32 %85)
  tail call void @StringBuilder__write__(ptr noundef nonnull %31, ptr %10, i32 %11)
  %mu_____string522.val = load ptr, ptr @mu_____string522, align 8
  %mu_____string523.val = load ptr, ptr @mu_____string523, align 8
  %86 = select i1 %81, ptr %mu_____string522.val, ptr %mu_____string523.val
  %.val = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string522, i64 8), align 8
  %.val112 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string523, i64 8), align 8
  %87 = select i1 %81, i32 %.val, i32 %.val112
  tail call void @StringBuilder__write__(ptr noundef nonnull %31, ptr %86, i32 %87)
  %88 = load ptr, ptr %51, align 8, !tbaa !24
  %89 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef nonnull %31)
  %90 = extractvalue { ptr, i32 } %89, 0
  %91 = extractvalue { ptr, i32 } %89, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %88, ptr %90, i32 %91)
  br label %92

92:                                               ; preds = %.sink.split, %48
  %.sroa.010.0 = phi ptr [ %.sroa.010.0.copyload, %48 ], [ %58, %.sink.split ]
  %.sroa.8.0 = phi i32 [ %.sroa.8.0.copyload, %48 ], [ %59, %.sink.split ]
  %93 = load ptr, ptr @mu_____string448, align 8
  %94 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string448, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %7, ptr %93, i32 %94)
  %95 = getelementptr inbounds i8, ptr %0, i64 32
  %96 = load ptr, ptr %95, align 8, !tbaa !12
  %97 = getelementptr inbounds i8, ptr %96, i64 304
  %98 = load ptr, ptr %97, align 8, !tbaa !14
  %99 = load ptr, ptr %5, align 8
  %100 = getelementptr inbounds i8, ptr %5, i64 8
  %101 = load ptr, ptr %100, align 8
  %102 = tail call { ptr, ptr } @TypeChecker__getSingleArgTag__(ptr noundef %98, ptr %99, ptr %101)
  %103 = extractvalue { ptr, ptr } %102, 0
  %104 = extractvalue { ptr, ptr } %102, 1
  tail call void @CGenerator__writeTag__(ptr noundef %7, ptr %103, ptr %104)
  %105 = load ptr, ptr @mu_____string303, align 8
  %106 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string303, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %7, ptr %105, i32 %106)
  tail call void @StringBuilder__write__(ptr noundef %7, ptr %10, i32 %11)
  %107 = load ptr, ptr @mu_____string524, align 8
  %108 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string524, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %7, ptr %107, i32 %108)
  br i1 %.not104, label %110, label %109

109:                                              ; preds = %92
  tail call void @StringBuilder__write__(ptr noundef %7, ptr %.sroa.010.0, i32 %.sroa.8.0)
  br label %111

110:                                              ; preds = %92
  tail call void @CGenerator__genExpression__(ptr noundef nonnull %0, i32 %3, ptr %4, ptr noundef %7)
  br label %111

111:                                              ; preds = %110, %109
  %112 = load ptr, ptr @mu_____string305, align 8
  %113 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string305, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %7, ptr %112, i32 %113)
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 28}
!6 = !{!"tag_____Namespace__", !7, i64 0, !8, i64 16, !11, i64 24, !11, i64 28, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !11, i64 104}
!7 = !{!"", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!13, !8, i64 32}
!13 = !{!"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}
!14 = !{!15, !8, i64 304}
!15 = !{!"tag_____CommonTags__", !16, i64 0, !16, i64 16, !16, i64 32, !16, i64 48, !16, i64 64, !16, i64 80, !16, i64 96, !16, i64 112, !16, i64 128, !16, i64 144, !16, i64 160, !16, i64 176, !16, i64 192, !16, i64 208, !16, i64 224, !16, i64 240, !16, i64 256, !16, i64 272, !16, i64 288, !8, i64 304, !8, i64 312, !8, i64 320, !8, i64 328, !8, i64 336, !8, i64 344, !8, i64 352, !8, i64 360, !8, i64 368, !8, i64 376}
!16 = !{!"tag_____Tag__", !8, i64 0, !8, i64 8}
!17 = !{!18, !8, i64 8}
!18 = !{!"tag_____IAllocator__", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!19 = !{!18, !8, i64 0}
!20 = !{!21, !11, i64 8}
!21 = !{!"tag_____Array__Tag____", !8, i64 0, !11, i64 8}
!22 = !{!8, !8, i64 0}
!23 = !{!21, !8, i64 0}
!24 = !{!13, !8, i64 40}
!25 = !{!11, !11, i64 0}
!26 = !{!16, !8, i64 0}
!27 = !{!15, !8, i64 256}


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