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

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

@mu_____string500 = external dso_local global %struct.string__, align 8
@mu_____string409 = external dso_local global %struct.string__, align 8
@mu_____string498 = external dso_local global %struct.string__, align 8
@mu_____string499 = external dso_local global %struct.string__, align 8
@mu_____string410 = external dso_local global %struct.string__, align 8
@top_____currentAllocator__ = external dso_local thread_local global %struct.tag_____IAllocator__, align 8
@__const.CGenerator__genFormatSlice__.local3 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.CGenerator__genFormatSlice__.local4 = external hidden unnamed_addr constant %struct.string__, 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 { ptr, i32 } @StringBuilder__compactToString__(ptr noundef) #4

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

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__genFormatSlice__(ptr noundef %0, ptr %1, i32 %2, ptr %3, i32 %4) #4 {
  %6 = alloca %struct.string__, align 8
  %7 = alloca %struct.string__, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.tag_____StringBuilder__, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.string__, align 8
  %13 = alloca %struct.string__, align 8
  %14 = alloca %struct.tag_____StringBuilder__, align 8
  %15 = alloca %struct.string__, align 8
  %16 = alloca %struct.string__, align 8
  %17 = alloca %struct.string__, align 8
  %18 = alloca %struct.string__, align 8
  %19 = alloca %struct.string__, align 8
  %20 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 0
  store ptr %1, ptr %20, align 8
  %21 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 1
  store i32 %2, ptr %21, align 8
  %22 = getelementptr inbounds { ptr, i32 }, ptr %7, i32 0, i32 0
  store ptr %3, ptr %22, align 8
  %23 = getelementptr inbounds { ptr, i32 }, ptr %7, i32 0, i32 1
  store i32 %4, ptr %23, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.string__, ptr %7, i32 0, i32 1
  %25 = load i32, ptr %24, align 8, !tbaa !9
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %28

27:                                               ; preds = %5
  br label %131

28:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %29 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %30 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %29, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !12
  %32 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %33 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !14
  %35 = call ptr %31(ptr noundef %34, i64 noundef 16)
  store ptr %35, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 16, i1 false)
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 8 %10, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %37, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = call { ptr, i32 } @CGenerator__newLocal__(ptr noundef %38)
  %40 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %41 = extractvalue { ptr, i32 } %39, 0
  store ptr %41, ptr %40, align 8
  %42 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %43 = extractvalue { ptr, i32 } %39, 1
  store i32 %43, ptr %42, align 8
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = load ptr, ptr @mu_____string498, align 8
  %46 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string498, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %44, ptr %45, i32 %46)
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8
  %50 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %51 = load i32, ptr %50, align 8
  call void @StringBuilder__write__(ptr noundef %47, ptr %49, i32 %51)
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = load ptr, ptr @mu_____string499, align 8
  %54 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string499, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %52, ptr %53, i32 %54)
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = getelementptr inbounds { ptr, i32 }, ptr %7, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8
  %58 = getelementptr inbounds { ptr, i32 }, ptr %7, i32 0, i32 1
  %59 = load i32, ptr %58, align 8
  %60 = call { ptr, i32 } @CGenerator__writeUnescapedString__(ptr noundef %55, ptr %57, i32 %59)
  %61 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 0
  %62 = extractvalue { ptr, i32 } %60, 0
  store ptr %62, ptr %61, align 8
  %63 = getelementptr inbounds { ptr, i32 }, ptr %13, i32 0, i32 1
  %64 = extractvalue { ptr, i32 } %60, 1
  store i32 %64, ptr %63, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 @__const.CGenerator__genFormatSlice__.local3, i64 16, i1 false)
  %65 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8
  %67 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 1
  %68 = load i32, ptr %67, align 8
  call void @StringBuilder__write__(ptr noundef %14, ptr %66, i32 %68)
  %69 = getelementptr inbounds %struct.string__, ptr %7, i32 0, i32 1
  %70 = load i32, ptr %69, align 8, !tbaa !9
  call void @int__writeTo__(i32 noundef %70, ptr noundef %14)
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 @__const.CGenerator__genFormatSlice__.local4, i64 16, i1 false)
  %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 @StringBuilder__write__(ptr noundef %14, ptr %72, i32 %74)
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef %14)
  %77 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 0
  %78 = extractvalue { ptr, i32 } %76, 0
  store ptr %78, ptr %77, align 8
  %79 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 1
  %80 = extractvalue { ptr, i32 } %76, 1
  store i32 %80, ptr %79, align 8
  %81 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8
  %83 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 1
  %84 = load i32, ptr %83, align 8
  call void @StringBuilder__write__(ptr noundef %75, ptr %82, i32 %84)
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %85, i32 0, i32 5
  %87 = load ptr, ptr %86, align 8, !tbaa !17
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %88)
  %90 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %91 = extractvalue { ptr, i32 } %89, 0
  store ptr %91, ptr %90, align 8
  %92 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %93 = extractvalue { ptr, i32 } %89, 1
  store i32 %93, ptr %92, align 8
  %94 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8
  %96 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %97 = load i32, ptr %96, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %87, ptr %95, i32 %97)
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  call void @StringBuilder__clear__(ptr noundef %98)
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = load ptr, ptr @mu_____string500, align 8
  %101 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string500, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %99, ptr %100, i32 %101)
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8
  %105 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 1
  %106 = load i32, ptr %105, align 8
  call void @StringBuilder__write__(ptr noundef %102, ptr %104, i32 %106)
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = load ptr, ptr @mu_____string409, align 8
  %109 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string409, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %107, ptr %108, i32 %109)
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8
  %113 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %114 = load i32, ptr %113, align 8
  call void @StringBuilder__write__(ptr noundef %110, ptr %112, i32 %114)
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = load ptr, ptr @mu_____string410, align 8
  %117 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string410, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %115, ptr %116, i32 %117)
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %118, i32 0, i32 5
  %120 = load ptr, ptr %119, align 8, !tbaa !17
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %121)
  %123 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 0
  %124 = extractvalue { ptr, i32 } %122, 0
  store ptr %124, ptr %123, align 8
  %125 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 1
  %126 = extractvalue { ptr, i32 } %122, 1
  store i32 %126, ptr %125, align 8
  %127 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8
  %129 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 1
  %130 = load i32, ptr %129, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %120, ptr %128, i32 %130)
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %131

131:                                              ; preds = %28, %27
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @CGenerator__writeUnescapedString__(ptr noundef, ptr, i32) #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, !11, i64 8}
!10 = !{!"", !6, i64 0, !11, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 8}
!13 = !{!"tag_____IAllocator__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!13, !6, i64 0}
!15 = !{i64 0, i64 8, !5, i64 8, i64 4, !16, i64 12, i64 4, !16}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !6, i64 40}
!18 = !{!"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, !10, i64 80, !11, i64 96, !10, i64 104, !11, i64 120, !6, i64 128, !6, i64 136, !7, i64 144}


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

@mu_____string500 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string409 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string498 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string499 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string410 = 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
@__const.CGenerator__genFormatSlice__.local3 = external hidden unnamed_addr constant %struct.string__, align 8
@__const.CGenerator__genFormatSlice__.local4 = external hidden unnamed_addr constant %struct.string__, 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: nounwind uwtable
declare dso_local void @StringBuilder__write__(ptr noundef, ptr, i32) local_unnamed_addr #3

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__genFormatSlice__(ptr noundef %0, ptr %1, i32 %2, ptr %3, i32 %4) local_unnamed_addr #3 {
  %6 = alloca %struct.tag_____StringBuilder__, align 8
  %7 = icmp eq i32 %4, 0
  br i1 %7, label %40, label %8

8:                                                ; preds = %5
  %9 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %10 = getelementptr inbounds i8, ptr %9, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = load ptr, ptr %9, align 8, !tbaa !10
  %13 = tail call ptr %11(ptr noundef %12, i64 noundef 16) #4
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, i8 0, i64 16, i1 false)
  %14 = tail call { ptr, i32 } @CGenerator__newLocal__(ptr noundef %0)
  %15 = extractvalue { ptr, i32 } %14, 0
  %16 = extractvalue { ptr, i32 } %14, 1
  %17 = load ptr, ptr @mu_____string498, align 8
  %18 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string498, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %13, ptr %17, i32 %18)
  tail call void @StringBuilder__write__(ptr noundef %13, ptr %15, i32 %16)
  %19 = load ptr, ptr @mu_____string499, align 8
  %20 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string499, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %13, ptr %19, i32 %20)
  %21 = tail call { ptr, i32 } @CGenerator__writeUnescapedString__(ptr noundef %13, ptr %3, i32 %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, i8 0, i64 16, i1 false)
  %.sroa.06.0.copyload = load ptr, ptr @__const.CGenerator__genFormatSlice__.local3, align 8
  %.sroa.47.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.CGenerator__genFormatSlice__.local3, i64 8), align 8
  call void @StringBuilder__write__(ptr noundef nonnull %6, ptr %.sroa.06.0.copyload, i32 %.sroa.47.0.copyload)
  call void @int__writeTo__(i32 noundef %4, ptr noundef nonnull %6)
  %.sroa.05.0.copyload = load ptr, ptr @__const.CGenerator__genFormatSlice__.local4, align 8
  %.sroa.4.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.CGenerator__genFormatSlice__.local4, i64 8), align 8
  call void @StringBuilder__write__(ptr noundef nonnull %6, ptr %.sroa.05.0.copyload, i32 %.sroa.4.0.copyload)
  %22 = call { ptr, i32 } @StringBuilder__compactToString__(ptr noundef nonnull %6)
  %23 = extractvalue { ptr, i32 } %22, 0
  %24 = extractvalue { ptr, i32 } %22, 1
  call void @StringBuilder__write__(ptr noundef %13, ptr %23, i32 %24)
  %25 = getelementptr inbounds i8, ptr %0, i64 40
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %13)
  %28 = extractvalue { ptr, i32 } %27, 0
  %29 = extractvalue { ptr, i32 } %27, 1
  call void @CodeBuilder__writeLine__(ptr noundef %26, ptr %28, i32 %29)
  call void @StringBuilder__clear__(ptr noundef %13)
  %30 = load ptr, ptr @mu_____string500, align 8
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string500, i64 8), align 8
  call void @StringBuilder__write__(ptr noundef %13, ptr %30, i32 %31)
  call void @StringBuilder__write__(ptr noundef %13, ptr %1, i32 %2)
  %32 = load ptr, ptr @mu_____string409, align 8
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string409, i64 8), align 8
  call void @StringBuilder__write__(ptr noundef %13, ptr %32, i32 %33)
  call void @StringBuilder__write__(ptr noundef %13, ptr %15, i32 %16)
  %34 = load ptr, ptr @mu_____string410, align 8
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string410, i64 8), align 8
  call void @StringBuilder__write__(ptr noundef %13, ptr %34, i32 %35)
  %36 = load ptr, ptr %25, align 8, !tbaa !11
  %37 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %13)
  %38 = extractvalue { ptr, i32 } %37, 0
  %39 = extractvalue { ptr, i32 } %37, 1
  call void @CodeBuilder__writeLine__(ptr noundef %36, ptr %38, i32 %39)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %40

40:                                               ; preds = %5, %8
  ret void
}

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

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 = { 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 #4 = { 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,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass