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

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

@mu_____string446 = external dso_local global %struct.string__, align 8
@mu_____string308 = external dso_local global %struct.string__, align 8
@mu_____string447 = external dso_local global %struct.string__, align 8
@mu_____string465 = 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, i32 } @StringBuilder__toString__(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__genIfStatement__(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 ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.Node__, align 8
  %12 = alloca %struct.Node__, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %struct.Node__, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %18 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %19 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %18, i32 0, i32 1
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %22 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %21, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = call ptr %20(ptr noundef %23, i64 noundef 16)
  store ptr %24, 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)
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %6, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %26, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = load ptr, ptr @mu_____string446, align 8
  %29 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string446, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %27, ptr %28, i32 %29)
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.tag_____IfStatement__, ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds { i32, ptr }, ptr %32, i32 0, i32 0
  %35 = load i32, ptr %34, align 8
  %36 = getelementptr inbounds { i32, ptr }, ptr %32, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8
  call void @CGenerator__genExpression__(ptr noundef %30, i32 %35, ptr %37, ptr noundef %33)
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr @mu_____string447, align 8
  %40 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string447, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %38, ptr %39, i32 %40)
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %41, i32 0, i32 5
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %44)
  %46 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 0
  %47 = extractvalue { ptr, i32 } %45, 0
  store ptr %47, ptr %46, align 8
  %48 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 1
  %49 = extractvalue { ptr, i32 } %45, 1
  store i32 %49, ptr %48, align 8
  %50 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8
  %52 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 1
  %53 = load i32, ptr %52, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %43, ptr %51, i32 %53)
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %54, i32 0, i32 5
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  call void @CodeBuilder__indent__(ptr noundef %56)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.tag_____IfStatement__, ptr %57, i32 0, i32 3
  %59 = load ptr, ptr %58, align 8, !tbaa !18
  %60 = getelementptr inbounds %struct.tag_____BlockStatement__, ptr %59, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !21
  store ptr %61, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %62

62:                                               ; preds = %68, %2
  %63 = load i32, ptr %10, align 4, !tbaa !13
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.tag_____List__Node____, ptr %64, i32 0, i32 1
  %66 = load i32, ptr %65, align 8, !tbaa !23
  %67 = icmp slt i32 %63, %66
  br i1 %67, label %68, label %82

68:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.tag_____List__Node____, ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !25
  %72 = load i32, ptr %10, align 4, !tbaa !13
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds %struct.Node__, ptr %71, i64 %73
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %74, i64 16, i1 false), !tbaa.struct !26
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds { i32, ptr }, ptr %11, i32 0, i32 0
  %77 = load i32, ptr %76, align 8
  %78 = getelementptr inbounds { i32, ptr }, ptr %11, i32 0, i32 1
  %79 = load ptr, ptr %78, align 8
  call void @CGenerator__genStatement__(ptr noundef %75, i32 %77, ptr %79)
  %80 = load i32, ptr %10, align 4, !tbaa !13
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  br label %62, !llvm.loop !27

82:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %83, i32 0, i32 5
  %85 = load ptr, ptr %84, align 8, !tbaa !15
  call void @CodeBuilder__unIndent__(ptr noundef %85)
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.tag_____IfStatement__, ptr %86, i32 0, i32 5
  %88 = getelementptr inbounds %struct.Node__, ptr %87, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8, !tbaa !29
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %144

91:                                               ; preds = %82
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %92, i32 0, i32 5
  %94 = load ptr, ptr %93, align 8, !tbaa !15
  %95 = load ptr, ptr @mu_____string465, align 8
  %96 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string465, i32 0, i32 1), align 8
  call void @CodeBuilder__writeLine__(ptr noundef %94, ptr %95, i32 %96)
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %97, i32 0, i32 5
  %99 = load ptr, ptr %98, align 8, !tbaa !15
  call void @CodeBuilder__indent__(ptr noundef %99)
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.tag_____IfStatement__, ptr %100, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %101, i64 16, i1 false), !tbaa.struct !26
  %102 = getelementptr inbounds %struct.Node__, ptr %12, i32 0, i32 0
  %103 = load i32, ptr %102, align 8, !tbaa !30
  switch i32 %103, label %137 [
    i32 25, label %104
    i32 5, label %109
    i32 0, label %136
  ]

104:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %105 = getelementptr inbounds %struct.Node__, ptr %12, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !31
  store ptr %106, ptr %13, align 8, !tbaa !5
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  call void @CGenerator__genIfStatement__(ptr noundef %107, ptr noundef %108)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %140

109:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %110 = getelementptr inbounds %struct.Node__, ptr %12, i32 0, i32 1
  %111 = load ptr, ptr %110, align 8, !tbaa !31
  store ptr %111, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.tag_____BlockStatement__, ptr %112, i32 0, i32 1
  %114 = load ptr, ptr %113, align 8, !tbaa !21
  store ptr %114, 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 !13
  br label %115

115:                                              ; preds = %121, %109
  %116 = load i32, ptr %16, align 4, !tbaa !13
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.tag_____List__Node____, ptr %117, i32 0, i32 1
  %119 = load i32, ptr %118, align 8, !tbaa !23
  %120 = icmp slt i32 %116, %119
  br i1 %120, label %121, label %135

121:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %122 = load ptr, ptr %15, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.tag_____List__Node____, ptr %122, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8, !tbaa !25
  %125 = load i32, ptr %16, align 4, !tbaa !13
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds %struct.Node__, ptr %124, i64 %126
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %127, i64 16, i1 false), !tbaa.struct !26
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds { i32, ptr }, ptr %17, i32 0, i32 0
  %130 = load i32, ptr %129, align 8
  %131 = getelementptr inbounds { i32, ptr }, ptr %17, i32 0, i32 1
  %132 = load ptr, ptr %131, align 8
  call void @CGenerator__genStatement__(ptr noundef %128, i32 %130, ptr %132)
  %133 = load i32, ptr %16, align 4, !tbaa !13
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  br label %115, !llvm.loop !32

135:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %140

136:                                              ; preds = %91
  br label %137

137:                                              ; preds = %136, %91
  %138 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  call void %139(i32 noundef -5)
  br label %140

140:                                              ; preds = %137, %135, %104
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %141, i32 0, i32 5
  %143 = load ptr, ptr %142, align 8, !tbaa !15
  call void @CodeBuilder__unIndent__(ptr noundef %143)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  br label %144

144:                                              ; preds = %140, %82
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %145, i32 0, i32 5
  %147 = load ptr, ptr %146, align 8, !tbaa !15
  %148 = load ptr, ptr @mu_____string308, align 8
  %149 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string308, i32 0, i32 1), align 8
  call void @CodeBuilder__writeLine__(ptr noundef %147, ptr %148, i32 %149)
  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
}

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 8}
!10 = !{!"tag_____IAllocator__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!11 = !{!10, !6, i64 0}
!12 = !{i64 0, i64 8, !5, i64 8, i64 4, !13, i64 12, i64 4, !13}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !6, i64 40}
!16 = !{!"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, !17, i64 80, !14, i64 96, !17, i64 104, !14, i64 120, !6, i64 128, !6, i64 136, !7, i64 144}
!17 = !{!"", !6, i64 0, !14, i64 8}
!18 = !{!19, !6, i64 32}
!19 = !{!"tag_____IfStatement__", !6, i64 0, !20, i64 8, !6, i64 24, !6, i64 32, !6, i64 40, !20, i64 48}
!20 = !{!"", !14, i64 0, !6, i64 8}
!21 = !{!22, !6, i64 8}
!22 = !{!"tag_____BlockStatement__", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!24, !14, i64 8}
!24 = !{!"tag_____List__Node____", !6, i64 0, !14, i64 8, !14, i64 12}
!25 = !{!24, !6, i64 0}
!26 = !{i64 0, i64 4, !13, i64 8, i64 8, !5}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!19, !6, i64 56}
!30 = !{!20, !14, i64 0}
!31 = !{!20, !6, i64 8}
!32 = distinct !{!32, !28}


; 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_____string446 = 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_____string447 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string465 = 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, i32 } @StringBuilder__toString__(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__genIfStatement__(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %4 = getelementptr inbounds i8, ptr %3, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = load ptr, ptr %3, align 8, !tbaa !10
  %7 = tail call ptr %5(ptr noundef %6, i64 noundef 16) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %7, i8 0, i64 16, i1 false)
  %8 = load ptr, ptr @mu_____string446, align 8
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string446, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %7, ptr %8, i32 %9)
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load i32, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr %1, i64 16
  %13 = load ptr, ptr %12, align 8
  tail call void @CGenerator__genExpression__(ptr noundef %0, i32 %11, ptr %13, ptr noundef %7)
  %14 = load ptr, ptr @mu_____string447, align 8
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string447, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %7, ptr %14, i32 %15)
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  %18 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef %7)
  %19 = extractvalue { ptr, i32 } %18, 0
  %20 = extractvalue { ptr, i32 } %18, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %17, ptr %19, i32 %20)
  %21 = load ptr, ptr %16, align 8, !tbaa !11
  tail call void @CodeBuilder__indent__(ptr noundef %21)
  %22 = getelementptr inbounds i8, ptr %1, i64 32
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !18
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = load i32, ptr %26, align 8, !tbaa !20
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %2 ]
  %29 = load ptr, ptr %25, align 8, !tbaa !22
  %30 = getelementptr inbounds %struct.Node__, ptr %29, i64 %indvars.iv
  %.sroa.011.0.copyload = load i32, ptr %30, align 8, !tbaa !23
  %.sroa.413.0..sroa_idx = getelementptr inbounds i8, ptr %30, i64 8
  %.sroa.413.0.copyload = load ptr, ptr %.sroa.413.0..sroa_idx, align 8, !tbaa !24
  tail call void @CGenerator__genStatement__(ptr noundef %0, i32 %.sroa.011.0.copyload, ptr %.sroa.413.0.copyload)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %31 = load i32, ptr %26, align 8, !tbaa !20
  %32 = sext i32 %31 to i64
  %33 = icmp slt i64 %indvars.iv.next, %32
  br i1 %33, label %.lr.ph, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %.lr.ph, %2
  %34 = load ptr, ptr %16, align 8, !tbaa !11
  tail call void @CodeBuilder__unIndent__(ptr noundef %34)
  %35 = getelementptr inbounds i8, ptr %1, i64 56
  %36 = load ptr, ptr %35, align 8, !tbaa !27
  %.not = icmp eq ptr %36, null
  br i1 %.not, label %59, label %37

37:                                               ; preds = %._crit_edge
  %38 = getelementptr inbounds i8, ptr %1, i64 48
  %39 = load ptr, ptr %16, align 8, !tbaa !11
  %40 = load ptr, ptr @mu_____string465, align 8
  %41 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string465, i64 8), align 8
  tail call void @CodeBuilder__writeLine__(ptr noundef %39, ptr %40, i32 %41)
  %42 = load ptr, ptr %16, align 8, !tbaa !11
  tail call void @CodeBuilder__indent__(ptr noundef %42)
  %.sroa.07.0.copyload = load i32, ptr %38, align 8, !tbaa !23
  %.sroa.49.0.copyload = load ptr, ptr %35, align 8, !tbaa !24
  switch i32 %.sroa.07.0.copyload, label %55 [
    i32 25, label %43
    i32 5, label %44
  ]

43:                                               ; preds = %37
  tail call void @CGenerator__genIfStatement__(ptr noundef nonnull %0, ptr noundef %.sroa.49.0.copyload)
  br label %.loopexit

44:                                               ; preds = %37
  %45 = getelementptr inbounds i8, ptr %.sroa.49.0.copyload, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !18
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  %48 = load i32, ptr %47, align 8, !tbaa !20
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %.lr.ph45, label %.loopexit

.lr.ph45:                                         ; preds = %44, %.lr.ph45
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %.lr.ph45 ], [ 0, %44 ]
  %50 = load ptr, ptr %46, align 8, !tbaa !22
  %51 = getelementptr inbounds %struct.Node__, ptr %50, i64 %indvars.iv47
  %.sroa.0.0.copyload = load i32, ptr %51, align 8, !tbaa !23
  %.sroa.41.0..sroa_idx = getelementptr inbounds i8, ptr %51, i64 8
  %.sroa.41.0.copyload = load ptr, ptr %.sroa.41.0..sroa_idx, align 8, !tbaa !24
  tail call void @CGenerator__genStatement__(ptr noundef %0, i32 %.sroa.0.0.copyload, ptr %.sroa.41.0.copyload)
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %52 = load i32, ptr %47, align 8, !tbaa !20
  %53 = sext i32 %52 to i64
  %54 = icmp slt i64 %indvars.iv.next48, %53
  br i1 %54, label %.lr.ph45, label %.loopexit, !llvm.loop !28

55:                                               ; preds = %37
  %56 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %57 = load ptr, ptr %56, align 8, !tbaa !24
  tail call void %57(i32 noundef -5) #3
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph45, %44, %55, %43
  %58 = load ptr, ptr %16, align 8, !tbaa !11
  tail call void @CodeBuilder__unIndent__(ptr noundef %58)
  br label %59

59:                                               ; preds = %.loopexit, %._crit_edge
  %60 = load ptr, ptr %16, align 8, !tbaa !11
  %61 = load ptr, ptr @mu_____string308, align 8
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string308, i64 8), align 8
  tail call void @CodeBuilder__writeLine__(ptr noundef %60, ptr %61, i32 %62)
  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, !7, i64 8}
!6 = !{!"tag_____IAllocator__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = !{!12, !7, i64 40}
!12 = !{!"tag_____GenerateContext__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !13, i64 48, !13, i64 52, !7, i64 56, !7, i64 64, !7, i64 72, !14, i64 80, !13, i64 96, !14, i64 104, !13, i64 120, !7, i64 128, !7, i64 136, !8, i64 144}
!13 = !{!"int", !8, i64 0}
!14 = !{!"", !7, i64 0, !13, i64 8}
!15 = !{!16, !7, i64 32}
!16 = !{!"tag_____IfStatement__", !7, i64 0, !17, i64 8, !7, i64 24, !7, i64 32, !7, i64 40, !17, i64 48}
!17 = !{!"", !13, i64 0, !7, i64 8}
!18 = !{!19, !7, i64 8}
!19 = !{!"tag_____BlockStatement__", !7, i64 0, !7, i64 8, !7, i64 16}
!20 = !{!21, !13, i64 8}
!21 = !{!"tag_____List__Node____", !7, i64 0, !13, i64 8, !13, i64 12}
!22 = !{!21, !7, i64 0}
!23 = !{!13, !13, i64 0}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!16, !7, i64 56}
!28 = distinct !{!28, !26}


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