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

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

@mu_____string423 = external dso_local global %struct.string__, align 8
@mu_____string536 = external dso_local global %struct.string__, align 8
@mu_____string306 = external dso_local global %struct.string__, align 8
@mu_____string308 = external dso_local global %struct.string__, align 8
@mu_____string534 = external dso_local global %struct.string__, align 8
@mu_____string535 = external dso_local global %struct.string__, align 8
@top_____currentAllocator__ = external dso_local thread_local global %struct.tag_____IAllocator__, 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, 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 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 @CGenerator__genExpression__(ptr noundef, i32, ptr, ptr noundef) #4

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

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__genWhileStatement__(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.tag_____StringBuilder__, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.string__, align 8
  %9 = alloca %struct.string__, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.string__, align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.string__, align 8
  %14 = alloca %struct.string__, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %struct.Node__, align 8
  %18 = alloca %struct.string__, align 8
  %19 = alloca %struct.string__, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %20, i32 0, i32 5
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = load ptr, ptr @mu_____string534, align 8
  %24 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string534, i32 0, i32 1), align 8
  call void @CodeBuilder__writeLine__(ptr noundef %22, ptr %23, i32 %24)
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %25, i32 0, i32 5
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  call void @CodeBuilder__indent__(ptr noundef %27)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %28 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %29 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %28, i32 0, i32 1
  %30 = load ptr, ptr %29, align 8, !tbaa !13
  %31 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %32 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %31, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !15
  %34 = call ptr %30(ptr noundef %33, i64 noundef 16)
  store ptr %34, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 16, i1 false)
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %6, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %36, ptr %7, align 8, !tbaa !5
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = load ptr, ptr @mu_____string535, align 8
  %39 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string535, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %37, ptr %38, i32 %39)
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.tag_____WhileStatement__, ptr %41, i32 0, i32 1
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds { i32, ptr }, ptr %42, i32 0, i32 0
  %45 = load i32, ptr %44, align 8
  %46 = getelementptr inbounds { i32, ptr }, ptr %42, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8
  call void @CGenerator__genExpression__(ptr noundef %40, i32 %45, ptr %47, ptr noundef %43)
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = load ptr, ptr @mu_____string536, align 8
  %50 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string536, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %48, ptr %49, i32 %50)
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %51, i32 0, i32 5
  %53 = load ptr, ptr %52, align 8, !tbaa !9
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %54)
  %56 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 0
  %57 = extractvalue { ptr, i32 } %55, 0
  store ptr %57, ptr %56, align 8
  %58 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 1
  %59 = extractvalue { ptr, i32 } %55, 1
  store i32 %59, ptr %58, align 8
  %60 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8
  %62 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 1
  %63 = load i32, ptr %62, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %53, ptr %61, i32 %63)
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  call void @StringBuilder__clear__(ptr noundef %64)
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %65, i32 0, i32 11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %66, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %67, i32 0, i32 12
  %69 = load i32, ptr %68, align 8, !tbaa !19
  store i32 %69, ptr %10, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %70, i32 0, i32 13
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %71, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %72, i32 0, i32 14
  %74 = load i32, ptr %73, align 8, !tbaa !20
  store i32 %74, ptr %12, align 4, !tbaa !17
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %75, i32 0, i32 11
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = call { ptr, i32 } @CGenerator__newLabel__(ptr noundef %77)
  %79 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 0
  %80 = extractvalue { ptr, i32 } %78, 0
  store ptr %80, ptr %79, align 8
  %81 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 1
  %82 = extractvalue { ptr, i32 } %78, 1
  store i32 %82, ptr %81, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %76, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %83, i32 0, i32 12
  store i32 0, ptr %84, align 8, !tbaa !19
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %85, i32 0, i32 13
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = call { ptr, i32 } @CGenerator__newLabel__(ptr noundef %87)
  %89 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 0
  %90 = extractvalue { ptr, i32 } %88, 0
  store ptr %90, ptr %89, align 8
  %91 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 1
  %92 = extractvalue { ptr, i32 } %88, 1
  store i32 %92, ptr %91, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %86, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %93, i32 0, i32 14
  store i32 0, ptr %94, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.tag_____WhileStatement__, ptr %95, i32 0, i32 3
  %97 = load ptr, ptr %96, align 8, !tbaa !21
  %98 = getelementptr inbounds %struct.tag_____BlockStatement__, ptr %97, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !24
  store ptr %99, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !17
  br label %100

100:                                              ; preds = %106, %2
  %101 = load i32, ptr %16, align 4, !tbaa !17
  %102 = load ptr, ptr %15, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.tag_____List__Node____, ptr %102, i32 0, i32 1
  %104 = load i32, ptr %103, align 8, !tbaa !26
  %105 = icmp slt i32 %101, %104
  br i1 %105, label %106, label %120

106:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %107 = load ptr, ptr %15, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.tag_____List__Node____, ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !28
  %110 = load i32, ptr %16, align 4, !tbaa !17
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds %struct.Node__, ptr %109, i64 %111
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %112, i64 16, i1 false), !tbaa.struct !29
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds { i32, ptr }, ptr %17, i32 0, i32 0
  %115 = load i32, ptr %114, align 8
  %116 = getelementptr inbounds { i32, ptr }, ptr %17, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8
  call void @CGenerator__genStatement__(ptr noundef %113, i32 %115, ptr %117)
  %118 = load i32, ptr %16, align 4, !tbaa !17
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %16, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  br label %100, !llvm.loop !30

120:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %121, i32 0, i32 14
  %123 = load i32, ptr %122, align 8, !tbaa !20
  %124 = icmp sgt i32 %123, 0
  br i1 %124, label %125, label %161

125:                                              ; preds = %120
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %126, i32 0, i32 5
  %128 = load ptr, ptr %127, align 8, !tbaa !9
  call void @CodeBuilder__unIndent__(ptr noundef %128)
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %130, i32 0, i32 13
  %132 = getelementptr inbounds { ptr, i32 }, ptr %131, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8
  %134 = getelementptr inbounds { ptr, i32 }, ptr %131, i32 0, i32 1
  %135 = load i32, ptr %134, align 8
  call void @StringBuilder__write__(ptr noundef %129, ptr %133, i32 %135)
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = load ptr, ptr @mu_____string306, align 8
  %138 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string306, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %136, ptr %137, i32 %138)
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %139, i32 0, i32 5
  %141 = load ptr, ptr %140, align 8, !tbaa !9
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %142)
  %144 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %145 = extractvalue { ptr, i32 } %143, 0
  store ptr %145, ptr %144, align 8
  %146 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %147 = extractvalue { ptr, i32 } %143, 1
  store i32 %147, ptr %146, align 8
  %148 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8
  %150 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %151 = load i32, ptr %150, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %141, ptr %149, i32 %151)
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  call void @StringBuilder__clear__(ptr noundef %152)
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %153, i32 0, i32 5
  %155 = load ptr, ptr %154, align 8, !tbaa !9
  call void @CodeBuilder__indent__(ptr noundef %155)
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %156, i32 0, i32 5
  %158 = load ptr, ptr %157, align 8, !tbaa !9
  %159 = load ptr, ptr @mu_____string423, align 8
  %160 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string423, i32 0, i32 1), align 8
  call void @CodeBuilder__writeLine__(ptr noundef %158, ptr %159, i32 %160)
  br label %161

161:                                              ; preds = %125, %120
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %162, i32 0, i32 5
  %164 = load ptr, ptr %163, align 8, !tbaa !9
  call void @CodeBuilder__unIndent__(ptr noundef %164)
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %165, i32 0, i32 5
  %167 = load ptr, ptr %166, align 8, !tbaa !9
  %168 = load ptr, ptr @mu_____string308, align 8
  %169 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string308, i32 0, i32 1), align 8
  call void @CodeBuilder__writeLine__(ptr noundef %167, ptr %168, i32 %169)
  %170 = load ptr, ptr %3, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %170, i32 0, i32 12
  %172 = load i32, ptr %171, align 8, !tbaa !19
  %173 = icmp sgt i32 %172, 0
  br i1 %173, label %174, label %210

174:                                              ; preds = %161
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %175, i32 0, i32 5
  %177 = load ptr, ptr %176, align 8, !tbaa !9
  call void @CodeBuilder__unIndent__(ptr noundef %177)
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  %179 = load ptr, ptr %3, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %179, i32 0, i32 11
  %181 = getelementptr inbounds { ptr, i32 }, ptr %180, i32 0, i32 0
  %182 = load ptr, ptr %181, align 8
  %183 = getelementptr inbounds { ptr, i32 }, ptr %180, i32 0, i32 1
  %184 = load i32, ptr %183, align 8
  call void @StringBuilder__write__(ptr noundef %178, ptr %182, i32 %184)
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = load ptr, ptr @mu_____string306, align 8
  %187 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string306, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %185, ptr %186, i32 %187)
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %188, i32 0, i32 5
  %190 = load ptr, ptr %189, align 8, !tbaa !9
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %191)
  %193 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 0
  %194 = extractvalue { ptr, i32 } %192, 0
  store ptr %194, ptr %193, align 8
  %195 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 1
  %196 = extractvalue { ptr, i32 } %192, 1
  store i32 %196, ptr %195, align 8
  %197 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8
  %199 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 1
  %200 = load i32, ptr %199, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %190, ptr %198, i32 %200)
  %201 = load ptr, ptr %7, align 8, !tbaa !5
  call void @StringBuilder__clear__(ptr noundef %201)
  %202 = load ptr, ptr %3, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %202, i32 0, i32 5
  %204 = load ptr, ptr %203, align 8, !tbaa !9
  call void @CodeBuilder__indent__(ptr noundef %204)
  %205 = load ptr, ptr %3, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %205, i32 0, i32 5
  %207 = load ptr, ptr %206, align 8, !tbaa !9
  %208 = load ptr, ptr @mu_____string423, align 8
  %209 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string423, i32 0, i32 1), align 8
  call void @CodeBuilder__writeLine__(ptr noundef %207, ptr %208, i32 %209)
  br label %210

210:                                              ; preds = %174, %161
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %211, i32 0, i32 11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %212, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !18
  %213 = load i32, ptr %10, align 4, !tbaa !17
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %214, i32 0, i32 12
  store i32 %213, ptr %215, align 8, !tbaa !19
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %216, i32 0, i32 13
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %217, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !18
  %218 = load i32, ptr %12, align 4, !tbaa !17
  %219 = load ptr, ptr %3, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %219, i32 0, i32 14
  store i32 %218, ptr %220, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @CGenerator__newLabel__(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 40}
!10 = !{!"tag_____GenerateContext__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !11, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !12, i64 80, !11, i64 96, !12, i64 104, !11, i64 120, !6, i64 128, !6, i64 136, !7, i64 144}
!11 = !{!"int", !7, i64 0}
!12 = !{!"", !6, i64 0, !11, i64 8}
!13 = !{!14, !6, i64 8}
!14 = !{!"tag_____IAllocator__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!14, !6, i64 0}
!16 = !{i64 0, i64 8, !5, i64 8, i64 4, !17, i64 12, i64 4, !17}
!17 = !{!11, !11, i64 0}
!18 = !{i64 0, i64 8, !5, i64 8, i64 4, !17}
!19 = !{!10, !11, i64 96}
!20 = !{!10, !11, i64 120}
!21 = !{!22, !6, i64 32}
!22 = !{!"tag_____WhileStatement__", !6, i64 0, !23, i64 8, !6, i64 24, !6, i64 32}
!23 = !{!"", !11, i64 0, !6, i64 8}
!24 = !{!25, !6, i64 8}
!25 = !{!"tag_____BlockStatement__", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!27, !11, i64 8}
!27 = !{!"tag_____List__Node____", !6, i64 0, !11, i64 8, !11, i64 12}
!28 = !{!27, !6, i64 0}
!29 = !{i64 0, i64 4, !17, i64 8, i64 8, !5}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.string__ = type { ptr, i32 }
%struct.tag_____IAllocator__ = type { ptr, ptr, ptr, ptr }
%struct.Node__ = type { i32, ptr }

@mu_____string423 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string536 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string306 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string308 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string534 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string535 = 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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__genWhileStatement__(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #4 {
  %3 = alloca %struct.string__, align 8
  %4 = alloca %struct.string__, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = load ptr, ptr @mu_____string534, align 8
  %8 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string534, i64 8), align 8
  tail call void @CodeBuilder__writeLine__(ptr noundef %6, ptr %7, i32 %8)
  %9 = load ptr, ptr %5, align 8, !tbaa !5
  tail call void @CodeBuilder__indent__(ptr noundef %9)
  %10 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %11 = getelementptr inbounds i8, ptr %10, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !12
  %13 = load ptr, ptr %10, align 8, !tbaa !14
  %14 = tail call ptr %12(ptr noundef %13, i64 noundef 16) #5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %14, i8 0, i64 16, i1 false)
  %15 = load ptr, ptr @mu_____string535, align 8
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string535, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %14, ptr %15, i32 %16)
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  %18 = load i32, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr %1, i64 16
  %20 = load ptr, ptr %19, align 8
  tail call void @CGenerator__genExpression__(ptr noundef %0, i32 %18, ptr %20, ptr noundef %14)
  %21 = load ptr, ptr @mu_____string536, align 8
  %22 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string536, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %14, ptr %21, i32 %22)
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef %14)
  %25 = extractvalue { ptr, i32 } %24, 0
  %26 = extractvalue { ptr, i32 } %24, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %23, ptr %25, i32 %26)
  tail call void @StringBuilder__clear__(ptr noundef %14)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3)
  %27 = getelementptr inbounds i8, ptr %0, i64 80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %27, i64 16, i1 false), !tbaa.struct !15
  %28 = getelementptr inbounds i8, ptr %0, i64 96
  %29 = load i32, ptr %28, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4)
  %30 = getelementptr inbounds i8, ptr %0, i64 104
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %30, i64 16, i1 false), !tbaa.struct !15
  %31 = getelementptr inbounds i8, ptr %0, i64 120
  %32 = load i32, ptr %31, align 8, !tbaa !19
  %33 = tail call { ptr, i32 } @CGenerator__newLabel__(ptr noundef %0)
  %34 = extractvalue { ptr, i32 } %33, 0
  %35 = extractvalue { ptr, i32 } %33, 1
  store ptr %34, ptr %27, align 8, !tbaa !16
  %.sroa.411.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 88
  store i32 %35, ptr %.sroa.411.0..sroa_idx, align 8, !tbaa !17
  store i32 0, ptr %28, align 8, !tbaa !18
  %36 = tail call { ptr, i32 } @CGenerator__newLabel__(ptr noundef %0)
  %37 = extractvalue { ptr, i32 } %36, 0
  %38 = extractvalue { ptr, i32 } %36, 1
  store ptr %37, ptr %30, align 8, !tbaa !16
  %.sroa.49.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 112
  store i32 %38, ptr %.sroa.49.0..sroa_idx, align 8, !tbaa !17
  store i32 0, ptr %31, align 8, !tbaa !19
  %39 = getelementptr inbounds i8, ptr %1, i64 32
  %40 = load ptr, ptr %39, align 8, !tbaa !20
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  %42 = load ptr, ptr %41, align 8, !tbaa !23
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = load i32, ptr %43, align 8, !tbaa !25
  %45 = icmp sgt i32 %44, 0
  br i1 %45, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %2, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %2 ]
  %46 = load ptr, ptr %42, align 8, !tbaa !27
  %47 = getelementptr inbounds %struct.Node__, ptr %46, i64 %indvars.iv
  %.sroa.03.0.copyload = load i32, ptr %47, align 8, !tbaa !17
  %.sroa.44.0..sroa_idx = getelementptr inbounds i8, ptr %47, i64 8
  %.sroa.44.0.copyload = load ptr, ptr %.sroa.44.0..sroa_idx, align 8, !tbaa !16
  tail call void @CGenerator__genStatement__(ptr noundef %0, i32 %.sroa.03.0.copyload, ptr %.sroa.44.0.copyload)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %48 = load i32, ptr %43, align 8, !tbaa !25
  %49 = sext i32 %48 to i64
  %50 = icmp slt i64 %indvars.iv.next, %49
  br i1 %50, label %.lr.ph, label %._crit_edge, !llvm.loop !28

._crit_edge:                                      ; preds = %.lr.ph
  %.pre = load i32, ptr %31, align 8, !tbaa !19
  %51 = icmp sgt i32 %.pre, 0
  br i1 %51, label %52, label %._crit_edge.thread

52:                                               ; preds = %._crit_edge
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  tail call void @CodeBuilder__unIndent__(ptr noundef %53)
  %54 = load ptr, ptr %30, align 8
  %55 = load i32, ptr %.sroa.49.0..sroa_idx, align 8
  tail call void @StringBuilder__write__(ptr noundef %14, ptr %54, i32 %55)
  %56 = load ptr, ptr @mu_____string306, align 8
  %57 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string306, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %14, ptr %56, i32 %57)
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef %14)
  %60 = extractvalue { ptr, i32 } %59, 0
  %61 = extractvalue { ptr, i32 } %59, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %58, ptr %60, i32 %61)
  tail call void @StringBuilder__clear__(ptr noundef %14)
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  tail call void @CodeBuilder__indent__(ptr noundef %62)
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = load ptr, ptr @mu_____string423, align 8
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string423, i64 8), align 8
  tail call void @CodeBuilder__writeLine__(ptr noundef %63, ptr %64, i32 %65)
  br label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %2, %52, %._crit_edge
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  tail call void @CodeBuilder__unIndent__(ptr noundef %66)
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = load ptr, ptr @mu_____string308, align 8
  %69 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string308, i64 8), align 8
  tail call void @CodeBuilder__writeLine__(ptr noundef %67, ptr %68, i32 %69)
  %70 = load i32, ptr %28, align 8, !tbaa !18
  %71 = icmp sgt i32 %70, 0
  br i1 %71, label %72, label %86

72:                                               ; preds = %._crit_edge.thread
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  tail call void @CodeBuilder__unIndent__(ptr noundef %73)
  %74 = load ptr, ptr %27, align 8
  %75 = load i32, ptr %.sroa.411.0..sroa_idx, align 8
  tail call void @StringBuilder__write__(ptr noundef %14, ptr %74, i32 %75)
  %76 = load ptr, ptr @mu_____string306, align 8
  %77 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string306, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %14, ptr %76, i32 %77)
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef %14)
  %80 = extractvalue { ptr, i32 } %79, 0
  %81 = extractvalue { ptr, i32 } %79, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %78, ptr %80, i32 %81)
  tail call void @StringBuilder__clear__(ptr noundef %14)
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  tail call void @CodeBuilder__indent__(ptr noundef %82)
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = load ptr, ptr @mu_____string423, align 8
  %85 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string423, i64 8), align 8
  tail call void @CodeBuilder__writeLine__(ptr noundef %83, ptr %84, i32 %85)
  br label %86

86:                                               ; preds = %72, %._crit_edge.thread
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %3, i64 16, i1 false), !tbaa.struct !15
  store i32 %29, ptr %28, align 8, !tbaa !18
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %4, i64 16, i1 false), !tbaa.struct !15
  store i32 %32, ptr %31, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3)
  ret void
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 40}
!6 = !{!"tag_____GenerateContext__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !10, i64 52, !7, i64 56, !7, i64 64, !7, i64 72, !11, i64 80, !10, i64 96, !11, i64 104, !10, i64 120, !7, i64 128, !7, i64 136, !8, i64 144}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !10, i64 8}
!12 = !{!13, !7, i64 8}
!13 = !{!"tag_____IAllocator__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!14 = !{!13, !7, i64 0}
!15 = !{i64 0, i64 8, !16, i64 8, i64 4, !17}
!16 = !{!7, !7, i64 0}
!17 = !{!10, !10, i64 0}
!18 = !{!6, !10, i64 96}
!19 = !{!6, !10, i64 120}
!20 = !{!21, !7, i64 32}
!21 = !{!"tag_____WhileStatement__", !7, i64 0, !22, i64 8, !7, i64 24, !7, i64 32}
!22 = !{!"", !10, i64 0, !7, i64 8}
!23 = !{!24, !7, i64 8}
!24 = !{!"tag_____BlockStatement__", !7, i64 0, !7, i64 8, !7, i64 16}
!25 = !{!26, !10, i64 8}
!26 = !{!"tag_____List__Node____", !7, i64 0, !10, i64 8, !10, i64 12}
!27 = !{!26, !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


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