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

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

@mu_____string439 = external dso_local global %struct.string__, align 8
@mu_____string525 = external dso_local global %struct.string__, align 8
@mu_____string526 = 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
define dso_local void @CGenerator__genArgcArgv__(ptr noundef %0, ptr noundef %1, ptr noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.tag_____StringBuilder__, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.tag_____Tag__, align 8
  %13 = alloca %struct.string__, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %struct.tag_____Tag__, align 8
  %17 = alloca %struct.string__, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #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 %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 16, i1 false)
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %26, ptr %9, align 8, !tbaa !5
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = load ptr, ptr @mu_____string439, align 8
  %29 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string439, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %27, ptr %28, i32 %29)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %30, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  store ptr %32, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !13
  %33 = load i32, ptr %11, align 4, !tbaa !13
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.tag_____List__Node____, ptr %34, i32 0, i32 1
  %36 = load i32, ptr %35, align 8, !tbaa !18
  %37 = icmp ult i32 %33, %36
  br i1 %37, label %41, label %38

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

41:                                               ; preds = %38, %3
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.tag_____List__Node____, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !20
  %46 = load i32, ptr %11, align 4, !tbaa !13
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds %struct.Node__, ptr %45, i64 %47
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %50, i32 0, i32 4
  %52 = load ptr, ptr %51, align 8, !tbaa !21
  %53 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %52, i32 0, i32 19
  %54 = load ptr, ptr %53, align 8, !tbaa !24
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %55, i32 0, i32 4
  %57 = load ptr, ptr %56, align 8, !tbaa !21
  %58 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %57, i32 0, i32 5
  %59 = getelementptr inbounds { ptr, ptr }, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8
  %61 = getelementptr inbounds { ptr, ptr }, ptr %58, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8
  %63 = call { ptr, ptr } @TypeChecker__getSingleArgTag__(ptr noundef %54, ptr %60, ptr %62)
  %64 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 0
  %65 = extractvalue { ptr, ptr } %63, 0
  store ptr %65, ptr %64, align 8
  %66 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 1
  %67 = extractvalue { ptr, ptr } %63, 1
  store ptr %67, ptr %66, align 8
  %68 = getelementptr inbounds { i32, ptr }, ptr %48, i32 0, i32 0
  %69 = load i32, ptr %68, align 8
  %70 = getelementptr inbounds { i32, ptr }, ptr %48, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8
  %72 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8
  %74 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8
  call void @CGenerator__genConverted__(ptr noundef %42, i32 %69, ptr %71, ptr noundef %49, ptr %73, ptr %75)
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load ptr, ptr @mu_____string525, align 8
  %78 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string525, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %76, ptr %77, i32 %78)
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %79, i32 0, i32 5
  %81 = load ptr, ptr %80, align 8, !tbaa !27
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %82)
  %84 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 0
  %85 = extractvalue { ptr, i32 } %83, 0
  store ptr %85, ptr %84, align 8
  %86 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 1
  %87 = extractvalue { ptr, i32 } %83, 1
  store i32 %87, ptr %86, align 8
  %88 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8
  %90 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 1
  %91 = load i32, ptr %90, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %81, ptr %89, i32 %91)
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  call void @StringBuilder__clear__(ptr noundef %92)
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = load ptr, ptr @mu_____string439, align 8
  %95 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string439, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %93, ptr %94, i32 %95)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %96, i32 0, i32 2
  %98 = load ptr, ptr %97, align 8, !tbaa !15
  store ptr %98, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 1, ptr %15, align 4, !tbaa !13
  %99 = load i32, ptr %15, align 4, !tbaa !13
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.tag_____List__Node____, ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 8, !tbaa !18
  %103 = icmp ult i32 %99, %102
  br i1 %103, label %107, label %104

104:                                              ; preds = %41
  %105 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  call void %106(i32 noundef -3)
  br label %107

107:                                              ; preds = %104, %41
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.tag_____List__Node____, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !20
  %112 = load i32, ptr %15, align 4, !tbaa !13
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds %struct.Node__, ptr %111, i64 %113
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !21
  %119 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %118, i32 0, i32 19
  %120 = load ptr, ptr %119, align 8, !tbaa !24
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %121, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !21
  %124 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %123, i32 0, i32 18
  %125 = getelementptr inbounds { ptr, ptr }, ptr %124, i32 0, i32 0
  %126 = load ptr, ptr %125, align 8
  %127 = getelementptr inbounds { ptr, ptr }, ptr %124, i32 0, i32 1
  %128 = load ptr, ptr %127, align 8
  %129 = call { ptr, ptr } @TypeChecker__getSingleArgTag__(ptr noundef %120, ptr %126, ptr %128)
  %130 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 0
  %131 = extractvalue { ptr, ptr } %129, 0
  store ptr %131, ptr %130, align 8
  %132 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 1
  %133 = extractvalue { ptr, ptr } %129, 1
  store ptr %133, ptr %132, align 8
  %134 = getelementptr inbounds { i32, ptr }, ptr %114, i32 0, i32 0
  %135 = load i32, ptr %134, align 8
  %136 = getelementptr inbounds { i32, ptr }, ptr %114, i32 0, i32 1
  %137 = load ptr, ptr %136, align 8
  %138 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8
  %140 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 1
  %141 = load ptr, ptr %140, align 8
  call void @CGenerator__genConverted__(ptr noundef %108, i32 %135, ptr %137, ptr noundef %115, ptr %139, ptr %141)
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = load ptr, ptr @mu_____string526, align 8
  %144 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string526, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %142, ptr %143, i32 %144)
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %145, i32 0, i32 5
  %147 = load ptr, ptr %146, align 8, !tbaa !27
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %148)
  %150 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 0
  %151 = extractvalue { ptr, i32 } %149, 0
  store ptr %151, ptr %150, align 8
  %152 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 1
  %153 = extractvalue { ptr, i32 } %149, 1
  store i32 %153, ptr %152, align 8
  %154 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8
  %156 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 1
  %157 = load i32, ptr %156, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %147, ptr %155, i32 %157)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret void
}

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

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 24}
!16 = !{!"tag_____CallExpression__", !17, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!17 = !{!"", !14, i64 0, !6, i64 8}
!18 = !{!19, !14, i64 8}
!19 = !{!"tag_____List__Node____", !6, i64 0, !14, i64 8, !14, i64 12}
!20 = !{!19, !6, i64 0}
!21 = !{!22, !6, i64 32}
!22 = !{!"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, !23, i64 80, !14, i64 96, !23, i64 104, !14, i64 120, !6, i64 128, !6, i64 136, !7, i64 144}
!23 = !{!"", !6, i64 0, !14, i64 8}
!24 = !{!25, !6, i64 304}
!25 = !{!"tag_____CommonTags__", !26, i64 0, !26, i64 16, !26, i64 32, !26, i64 48, !26, i64 64, !26, i64 80, !26, i64 96, !26, i64 112, !26, i64 128, !26, i64 144, !26, i64 160, !26, i64 176, !26, i64 192, !26, i64 208, !26, i64 224, !26, i64 240, !26, i64 256, !26, i64 272, !26, 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}
!26 = !{!"tag_____Tag__", !6, i64 0, !6, i64 8}
!27 = !{!22, !6, i64 40}


; 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 }

@mu_____string439 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string525 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string526 = 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
define dso_local void @CGenerator__genArgcArgv__(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readnone %2) local_unnamed_addr #2 {
  %4 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %5 = getelementptr inbounds i8, ptr %4, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = load ptr, ptr %4, align 8, !tbaa !10
  %8 = tail call ptr %6(ptr noundef %7, i64 noundef 16) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, i8 0, i64 16, i1 false)
  %9 = load ptr, ptr @mu_____string439, align 8
  %10 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string439, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %8, ptr %9, i32 %10)
  %11 = getelementptr inbounds i8, ptr %1, i64 24
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = getelementptr inbounds i8, ptr %12, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !15
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %15, label %18

15:                                               ; preds = %3
  %16 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %17 = load ptr, ptr %16, align 8, !tbaa !17
  tail call void %17(i32 noundef -3) #3
  br label %18

18:                                               ; preds = %15, %3
  %19 = load ptr, ptr %12, align 8, !tbaa !18
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  %21 = load ptr, ptr %20, align 8, !tbaa !19
  %22 = getelementptr inbounds i8, ptr %21, i64 304
  %23 = load ptr, ptr %22, align 8, !tbaa !22
  %24 = getelementptr inbounds i8, ptr %21, i64 80
  %25 = load ptr, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr %21, i64 88
  %27 = load ptr, ptr %26, align 8
  %28 = tail call { ptr, ptr } @TypeChecker__getSingleArgTag__(ptr noundef %23, ptr %25, ptr %27)
  %29 = extractvalue { ptr, ptr } %28, 0
  %30 = extractvalue { ptr, ptr } %28, 1
  %31 = load i32, ptr %19, align 8
  %32 = getelementptr inbounds i8, ptr %19, i64 8
  %33 = load ptr, ptr %32, align 8
  tail call void @CGenerator__genConverted__(ptr noundef %0, i32 %31, ptr %33, ptr noundef nonnull %8, ptr %29, ptr %30)
  %34 = load ptr, ptr @mu_____string525, align 8
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string525, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %8, ptr %34, i32 %35)
  %36 = getelementptr inbounds i8, ptr %0, i64 40
  %37 = load ptr, ptr %36, align 8, !tbaa !25
  %38 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef nonnull %8)
  %39 = extractvalue { ptr, i32 } %38, 0
  %40 = extractvalue { ptr, i32 } %38, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %37, ptr %39, i32 %40)
  tail call void @StringBuilder__clear__(ptr noundef nonnull %8)
  %41 = load ptr, ptr @mu_____string439, align 8
  %42 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string439, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %8, ptr %41, i32 %42)
  %43 = load ptr, ptr %11, align 8, !tbaa !11
  %44 = getelementptr inbounds i8, ptr %43, i64 8
  %45 = load i32, ptr %44, align 8, !tbaa !15
  %46 = icmp ugt i32 %45, 1
  br i1 %46, label %50, label %47

47:                                               ; preds = %18
  %48 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %49 = load ptr, ptr %48, align 8, !tbaa !17
  tail call void %49(i32 noundef -3) #3
  br label %50

50:                                               ; preds = %47, %18
  %51 = load ptr, ptr %43, align 8, !tbaa !18
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %53 = load ptr, ptr %20, align 8, !tbaa !19
  %54 = getelementptr inbounds i8, ptr %53, i64 304
  %55 = load ptr, ptr %54, align 8, !tbaa !22
  %56 = getelementptr inbounds i8, ptr %53, i64 288
  %57 = load ptr, ptr %56, align 8
  %58 = getelementptr inbounds i8, ptr %53, i64 296
  %59 = load ptr, ptr %58, align 8
  %60 = tail call { ptr, ptr } @TypeChecker__getSingleArgTag__(ptr noundef %55, ptr %57, ptr %59)
  %61 = extractvalue { ptr, ptr } %60, 0
  %62 = extractvalue { ptr, ptr } %60, 1
  %63 = load i32, ptr %52, align 8
  %64 = getelementptr inbounds i8, ptr %51, i64 24
  %65 = load ptr, ptr %64, align 8
  tail call void @CGenerator__genConverted__(ptr noundef nonnull %0, i32 %63, ptr %65, ptr noundef nonnull %8, ptr %61, ptr %62)
  %66 = load ptr, ptr @mu_____string526, align 8
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string526, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %8, ptr %66, i32 %67)
  %68 = load ptr, ptr %36, align 8, !tbaa !25
  %69 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef nonnull %8)
  %70 = extractvalue { ptr, i32 } %69, 0
  %71 = extractvalue { ptr, i32 } %69, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %68, ptr %70, i32 %71)
  ret void
}

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

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


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