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

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

@mu_____string438 = external dso_local global %struct.string__, align 8
@mu_____string469 = external dso_local global %struct.string__, align 8
@mu_____string408 = 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_____string484 = external dso_local global %struct.string__, align 8
@mu_____string461 = external dso_local global %struct.string__, align 8
@mu_____string485 = 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
@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 @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
define dso_local void @CGenerator__genTaggedPointerCast__(ptr noundef %0, i32 %1, ptr %2, ptr %3, ptr %4, ptr noundef byval(%struct.tag_____Tag__) align 8 %5, ptr noundef %6) #4 {
  %8 = alloca %struct.Node__, align 8
  %9 = alloca %struct.tag_____Tag__, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.tag_____StringBuilder__, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.string__, align 8
  %16 = alloca %struct.string__, align 8
  %17 = alloca %struct.string__, align 8
  %18 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 0
  store i32 %1, ptr %18, align 8
  %19 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 1
  store ptr %2, ptr %19, align 8
  %20 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 0
  store ptr %3, ptr %20, align 8
  %21 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 1
  store ptr %4, ptr %21, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %6, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %22 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %23 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %22, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %26 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = call ptr %24(ptr noundef %27, i64 noundef 16)
  store ptr %28, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 16, i1 false)
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %30, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = call { ptr, i32 } @CGenerator__newLocal__(ptr noundef %31)
  %33 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 0
  %34 = extractvalue { ptr, i32 } %32, 0
  store ptr %34, ptr %33, align 8
  %35 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 1
  %36 = extractvalue { ptr, i32 } %32, 1
  store i32 %36, ptr %35, align 8
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  %38 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8
  %40 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8
  call void @CGenerator__writeTag__(ptr noundef %37, ptr %39, ptr %41)
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  %43 = load ptr, ptr @mu_____string421, align 8
  %44 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string421, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %42, ptr %43, i32 %44)
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  %46 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8
  %48 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 1
  %49 = load i32, ptr %48, align 8
  call void @StringBuilder__write__(ptr noundef %45, ptr %47, i32 %49)
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = load ptr, ptr @mu_____string422, align 8
  %52 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string422, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %50, ptr %51, i32 %52)
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 0
  %56 = load i32, ptr %55, align 8
  %57 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8
  call void @CGenerator__genExpression__(ptr noundef %53, i32 %56, ptr %58, ptr noundef %54)
  %59 = load ptr, ptr %14, align 8, !tbaa !5
  %60 = load ptr, ptr @mu_____string324, align 8
  %61 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string324, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %59, ptr %60, i32 %61)
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %62, i32 0, i32 5
  %64 = load ptr, ptr %63, align 8, !tbaa !15
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %65)
  %67 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 0
  %68 = extractvalue { ptr, i32 } %66, 0
  store ptr %68, ptr %67, align 8
  %69 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 1
  %70 = extractvalue { ptr, i32 } %66, 1
  store i32 %70, ptr %69, align 8
  %71 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8
  %73 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 1
  %74 = load i32, ptr %73, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %64, ptr %72, i32 %74)
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  call void @StringBuilder__clear__(ptr noundef %75)
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = load ptr, ptr @mu_____string469, align 8
  %78 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string469, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %76, ptr %77, i32 %78)
  %79 = load ptr, ptr %14, align 8, !tbaa !5
  %80 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8
  %82 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 1
  %83 = load i32, ptr %82, align 8
  call void @StringBuilder__write__(ptr noundef %79, ptr %81, i32 %83)
  %84 = load ptr, ptr %14, align 8, !tbaa !5
  %85 = load ptr, ptr @mu_____string484, align 8
  %86 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string484, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %84, ptr %85, i32 %86)
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.tag_____Tag__, ptr %9, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !18
  call void @CGenerator__writeNs__(ptr noundef %87, ptr noundef %89)
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = load ptr, ptr @mu_____string461, align 8
  %92 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string461, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %90, ptr %91, i32 %92)
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8
  %96 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8
  call void @CGenerator__writeNestedTag__(ptr noundef %93, ptr %95, ptr %97)
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = load ptr, ptr @mu_____string410, align 8
  %100 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string410, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %98, ptr %99, i32 %100)
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %101, i32 0, i32 5
  %103 = load ptr, ptr %102, align 8, !tbaa !15
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %104)
  %106 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 0
  %107 = extractvalue { ptr, i32 } %105, 0
  store ptr %107, ptr %106, align 8
  %108 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 1
  %109 = extractvalue { ptr, i32 } %105, 1
  store i32 %109, ptr %108, align 8
  %110 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8
  %112 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 1
  %113 = load i32, ptr %112, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %103, ptr %111, i32 %113)
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = load ptr, ptr @mu_____string438, align 8
  %116 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string438, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %114, ptr %115, i32 %116)
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8
  %120 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 1
  %121 = load ptr, ptr %120, align 8
  call void @CGenerator__writeTag__(ptr noundef %117, ptr %119, ptr %121)
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = load ptr, ptr @mu_____string408, align 8
  %124 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string408, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %122, ptr %123, i32 %124)
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  %126 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8
  %128 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 1
  %129 = load i32, ptr %128, align 8
  call void @StringBuilder__write__(ptr noundef %125, ptr %127, i32 %129)
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = load ptr, ptr @mu_____string485, align 8
  %132 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string485, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %130, ptr %131, i32 %132)
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  ret void
}

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @CGenerator__writeNestedTag__(ptr noundef, ptr, ptr) #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 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 0}
!19 = !{!"tag_____Tag__", !6, i64 0, !6, i64 8}


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

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

@mu_____string438 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string469 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string408 = 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_____string484 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string461 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string485 = 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
@top_____currentAllocator__ = external dso_local thread_local local_unnamed_addr global %struct.tag_____IAllocator__, 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 @StringBuilder__clear__(ptr noundef) 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
define dso_local void @CGenerator__genTaggedPointerCast__(ptr noundef %0, i32 %1, ptr %2, ptr %3, ptr %4, ptr nocapture noundef readonly byval(%struct.tag_____Tag__) align 8 %5, ptr noundef %6) local_unnamed_addr #2 {
  %8 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %9 = getelementptr inbounds i8, ptr %8, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = load ptr, ptr %8, align 8, !tbaa !10
  %12 = tail call ptr %10(ptr noundef %11, i64 noundef 16) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %12, i8 0, i64 16, i1 false)
  %13 = tail call { ptr, i32 } @CGenerator__newLocal__(ptr noundef %0)
  %14 = extractvalue { ptr, i32 } %13, 0
  %15 = extractvalue { ptr, i32 } %13, 1
  tail call void @CGenerator__writeTag__(ptr noundef %12, ptr %3, ptr %4)
  %16 = load ptr, ptr @mu_____string421, align 8
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string421, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %12, ptr %16, i32 %17)
  tail call void @StringBuilder__write__(ptr noundef %12, ptr %14, i32 %15)
  %18 = load ptr, ptr @mu_____string422, align 8
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string422, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %12, ptr %18, i32 %19)
  tail call void @CGenerator__genExpression__(ptr noundef %0, i32 %1, ptr %2, ptr noundef %12)
  %20 = load ptr, ptr @mu_____string324, align 8
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string324, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %12, ptr %20, i32 %21)
  %22 = getelementptr inbounds i8, ptr %0, i64 40
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef %12)
  %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 %12)
  %27 = load ptr, ptr @mu_____string469, align 8
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string469, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %12, ptr %27, i32 %28)
  tail call void @StringBuilder__write__(ptr noundef %12, ptr %14, i32 %15)
  %29 = load ptr, ptr @mu_____string484, align 8
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string484, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %12, ptr %29, i32 %30)
  tail call void @CGenerator__writeNs__(ptr noundef %12, ptr noundef %3)
  %31 = load ptr, ptr @mu_____string461, align 8
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string461, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %12, ptr %31, i32 %32)
  %33 = load ptr, ptr %5, align 8
  %34 = getelementptr inbounds i8, ptr %5, i64 8
  %35 = load ptr, ptr %34, align 8
  tail call void @CGenerator__writeNestedTag__(ptr noundef %12, ptr %33, ptr %35)
  %36 = load ptr, ptr @mu_____string410, align 8
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string410, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %12, ptr %36, i32 %37)
  %38 = load ptr, ptr %22, align 8, !tbaa !11
  %39 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef %12)
  %40 = extractvalue { ptr, i32 } %39, 0
  %41 = extractvalue { ptr, i32 } %39, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %38, ptr %40, i32 %41)
  %42 = load ptr, ptr @mu_____string438, align 8
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string438, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %6, ptr %42, i32 %43)
  %44 = load ptr, ptr %5, align 8
  %45 = load ptr, ptr %34, align 8
  tail call void @CGenerator__writeTag__(ptr noundef %6, ptr %44, ptr %45)
  %46 = load ptr, ptr @mu_____string408, align 8
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string408, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %6, ptr %46, i32 %47)
  tail call void @StringBuilder__write__(ptr noundef %6, ptr %14, i32 %15)
  %48 = load ptr, ptr @mu_____string485, align 8
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string485, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %6, ptr %48, i32 %49)
  ret void
}

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

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

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


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