; LLVM IR from nickmqb/muon :: bootstrap/mu.ll_Tag (writeTo__)

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

@mu_____string73 = external dso_local global %struct.string__, align 8
@mu_____string72 = external dso_local global %struct.string__, align 8
@mu_____string75 = external dso_local global %struct.string__, align 8
@mu_____string77 = external dso_local global %struct.string__, align 8
@mu_____string78 = external dso_local global %struct.string__, align 8
@mu_____string76 = external dso_local global %struct.string__, align 8
@mu_____string74 = external dso_local global %struct.string__, 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: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

20:                                               ; preds = %3
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = load ptr, ptr @mu_____string72, align 8
  %23 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string72, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %21, ptr %22, i32 %23)
  br label %152

24:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  store i8 0, ptr %6, align 1, !tbaa !11
  br label %25

25:                                               ; preds = %73, %24
  br label %26

26:                                               ; preds = %25
  %27 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct.tag_____Namespace__, ptr %28, i32 0, i32 3
  %30 = load i32, ptr %29, align 4, !tbaa !12
  %31 = and i32 %30, 65536
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %34, label %33

33:                                               ; preds = %26
  br label %74

34:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %35 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !16
  store ptr %36, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !17
  %37 = load i32, ptr %8, align 4, !tbaa !17
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.tag_____Array__Tag____, ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 8, !tbaa !18
  %41 = icmp ult i32 %37, %40
  br i1 %41, label %45, label %42

42:                                               ; preds = %34
  %43 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  call void %44(i32 noundef -3)
  br label %45

45:                                               ; preds = %42, %34
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.tag_____Array__Tag____, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !20
  %49 = load i32, ptr %8, align 4, !tbaa !17
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds %struct.tag_____Tag__, ptr %48, i64 %50
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %51, i64 16, i1 false), !tbaa.struct !21
  %52 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !9
  %54 = icmp eq ptr %53, null
  br i1 %54, label %55, label %59

55:                                               ; preds = %45
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load ptr, ptr @mu_____string73, align 8
  %58 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string73, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %56, ptr %57, i32 %58)
  store i32 1, ptr %9, align 4
  br label %71

59:                                               ; preds = %45
  %60 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.tag_____Namespace__, ptr %61, i32 0, i32 3
  %63 = load i32, ptr %62, align 4, !tbaa !12
  %64 = and i32 %63, 512
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %70

66:                                               ; preds = %59
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = load ptr, ptr @mu_____string74, align 8
  %69 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string74, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %67, ptr %68, i32 %69)
  br label %70

70:                                               ; preds = %66, %59
  store i8 1, ptr %6, align 1, !tbaa !11
  store i32 0, ptr %9, align 4
  br label %71

71:                                               ; preds = %70, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  %72 = load i32, ptr %9, align 4
  switch i32 %72, label %150 [
    i32 0, label %73
  ]

73:                                               ; preds = %71
  br label %25

74:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  %75 = load i8, ptr %6, align 1, !tbaa !11
  %76 = icmp ne i8 %75, 0
  %77 = xor i1 %76, true
  %78 = zext i1 %77 to i32
  %79 = trunc i32 %78 to i8
  store i8 %79, ptr %10, align 1, !tbaa !11
  %80 = load i8, ptr %10, align 1, !tbaa !11
  %81 = icmp ne i8 %80, 0
  br i1 %81, label %82, label %91

82:                                               ; preds = %74
  %83 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct.tag_____Namespace__, ptr %84, i32 0, i32 3
  %86 = load i32, ptr %85, align 4, !tbaa !12
  %87 = and i32 %86, 512
  %88 = icmp ne i32 %87, 0
  %89 = zext i1 %88 to i32
  %90 = trunc i32 %89 to i8
  store i8 %90, ptr %10, align 1, !tbaa !11
  br label %91

91:                                               ; preds = %82, %74
  %92 = load i8, ptr %10, align 1, !tbaa !11
  %93 = icmp ne i8 %92, 0
  br i1 %93, label %94, label %98

94:                                               ; preds = %91
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = load ptr, ptr @mu_____string75, align 8
  %97 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string75, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %95, ptr %96, i32 %97)
  br label %98

98:                                               ; preds = %94, %91
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.tag_____Namespace__, ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds { ptr, i32 }, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8
  %105 = getelementptr inbounds { ptr, i32 }, ptr %102, i32 0, i32 1
  %106 = load i32, ptr %105, align 8
  call void @StringBuilder__write__(ptr noundef %99, ptr %104, i32 %106)
  %107 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !16
  %109 = icmp eq ptr %108, null
  br i1 %109, label %110, label %111

110:                                              ; preds = %98
  store i32 1, ptr %9, align 4
  br label %149

111:                                              ; preds = %98
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = load ptr, ptr @mu_____string76, align 8
  %114 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string76, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %112, ptr %113, i32 %114)
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  store i8 0, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %115 = getelementptr inbounds %struct.tag_____Tag__, ptr %4, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8, !tbaa !16
  store ptr %116, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !17
  br label %117

117:                                              ; preds = %137, %111
  %118 = load i32, ptr %13, align 4, !tbaa !17
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.tag_____Array__Tag____, ptr %119, i32 0, i32 1
  %121 = load i32, ptr %120, align 8, !tbaa !18
  %122 = icmp slt i32 %118, %121
  br i1 %122, label %123, label %145

123:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.tag_____Array__Tag____, ptr %124, i32 0, i32 0
  %126 = load ptr, ptr %125, align 8, !tbaa !20
  %127 = load i32, ptr %13, align 4, !tbaa !17
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds %struct.tag_____Tag__, ptr %126, i64 %128
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %129, i64 16, i1 false), !tbaa.struct !21
  %130 = load i8, ptr %11, align 1, !tbaa !11
  %131 = icmp ne i8 %130, 0
  br i1 %131, label %132, label %136

132:                                              ; preds = %123
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = load ptr, ptr @mu_____string77, align 8
  %135 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string77, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %133, ptr %134, i32 %135)
  br label %137

136:                                              ; preds = %123
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %137

137:                                              ; preds = %136, %132
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds { ptr, ptr }, ptr %14, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8
  %141 = getelementptr inbounds { ptr, ptr }, ptr %14, i32 0, i32 1
  %142 = load ptr, ptr %141, align 8
  call void @Tag__writeTo__(ptr %140, ptr %142, ptr noundef %138)
  %143 = load i32, ptr %13, align 4, !tbaa !17
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %13, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  br label %117, !llvm.loop !22

145:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = load ptr, ptr @mu_____string78, align 8
  %148 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string78, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %146, ptr %147, i32 %148)
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  store i32 0, ptr %9, align 4
  br label %149

149:                                              ; preds = %145, %110
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  br label %150

150:                                              ; preds = %149, %71
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  %151 = load i32, ptr %9, align 4
  switch i32 %151, label %153 [
    i32 0, label %152
    i32 1, label %152
  ]

152:                                              ; preds = %150, %150, %20
  ret void

153:                                              ; preds = %150
  unreachable
}

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: readwrite) }
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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"tag_____Tag__", !6, i64 0, !6, i64 8}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !15, i64 28}
!13 = !{!"tag_____Namespace__", !14, i64 0, !6, i64 16, !15, i64 24, !15, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !15, i64 104}
!14 = !{!"", !6, i64 0, !15, i64 8}
!15 = !{!"int", !7, i64 0}
!16 = !{!10, !6, i64 8}
!17 = !{!15, !15, i64 0}
!18 = !{!19, !15, i64 8}
!19 = !{!"tag_____Array__Tag____", !6, i64 0, !15, i64 8}
!20 = !{!19, !6, i64 0}
!21 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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

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

@mu_____string73 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string72 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string75 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string77 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string78 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string76 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string74 = external dso_local local_unnamed_addr global %struct.string__, 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: nounwind uwtable
declare dso_local void @StringBuilder__write__(ptr noundef, ptr, i32) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @Tag__writeTo__(ptr readonly %0, ptr readonly %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = icmp eq ptr %0, null
  br i1 %4, label %.sink.split, label %.preheader

.preheader:                                       ; preds = %3
  %5 = getelementptr inbounds i8, ptr %0, i64 28
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = and i32 %6, 65536
  %.not47 = icmp ne i32 %7, 0
  br i1 %.not47, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %8 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  br label %9

9:                                                ; preds = %.lr.ph, %24
  %.sroa.8.048 = phi ptr [ %1, %.lr.ph ], [ %.sroa.8.0.copyload, %24 ]
  %10 = getelementptr inbounds i8, ptr %.sroa.8.048, i64 8
  %11 = load i32, ptr %10, align 8, !tbaa !12
  %.not40 = icmp eq i32 %11, 0
  br i1 %.not40, label %12, label %14

12:                                               ; preds = %9
  %13 = load ptr, ptr %8, align 8, !tbaa !14
  tail call void %13(i32 noundef -3) #2
  br label %14

14:                                               ; preds = %12, %9
  %15 = load ptr, ptr %.sroa.8.048, align 8, !tbaa !15
  %.sroa.022.0.copyload = load ptr, ptr %15, align 8, !tbaa !14
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  %.sroa.8.0.copyload = load ptr, ptr %.sroa.8.0..sroa_idx, align 8, !tbaa !14
  %.not41 = icmp eq ptr %.sroa.022.0.copyload, null
  br i1 %.not41, label %.sink.split, label %16

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %.sroa.022.0.copyload, i64 28
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = and i32 %18, 512
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %24

21:                                               ; preds = %16
  %22 = load ptr, ptr @mu_____string74, align 8
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string74, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %22, i32 %23)
  %.pre = load i32, ptr %17, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %16, %21
  %25 = phi i32 [ %18, %16 ], [ %.pre, %21 ]
  %26 = and i32 %25, 65536
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %._crit_edge, label %9

._crit_edge:                                      ; preds = %24, %.preheader
  %.sroa.022.0.lcssa = phi ptr [ %0, %.preheader ], [ %.sroa.022.0.copyload, %24 ]
  %.sroa.8.0.lcssa = phi ptr [ %1, %.preheader ], [ %.sroa.8.0.copyload, %24 ]
  %.lcssa = phi i32 [ %6, %.preheader ], [ %25, %24 ]
  %27 = and i32 %.lcssa, 512
  %28 = icmp eq i32 %27, 0
  %.033 = or i1 %.not47, %28
  br i1 %.033, label %32, label %29

29:                                               ; preds = %._crit_edge
  %30 = load ptr, ptr @mu_____string75, align 8
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string75, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %30, i32 %31)
  br label %32

32:                                               ; preds = %29, %._crit_edge
  %33 = load ptr, ptr %.sroa.022.0.lcssa, align 8
  %34 = getelementptr inbounds i8, ptr %.sroa.022.0.lcssa, i64 8
  %35 = load i32, ptr %34, align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %33, i32 %35)
  %36 = icmp eq ptr %.sroa.8.0.lcssa, null
  br i1 %36, label %55, label %37

37:                                               ; preds = %32
  %38 = load ptr, ptr @mu_____string76, align 8
  %39 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string76, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %38, i32 %39)
  %40 = getelementptr inbounds i8, ptr %.sroa.8.0.lcssa, i64 8
  %41 = load i32, ptr %40, align 8, !tbaa !12
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.lr.ph55.preheader, label %.sink.split

.lr.ph55.preheader:                               ; preds = %37
  %43 = load ptr, ptr %.sroa.8.0.lcssa, align 8, !tbaa !15
  %.sroa.4.0..sroa_idx.peel = getelementptr inbounds i8, ptr %43, i64 8
  %.sroa.4.0.copyload.peel = load ptr, ptr %.sroa.4.0..sroa_idx.peel, align 8, !tbaa !14
  %.sroa.0.0.copyload.peel = load ptr, ptr %43, align 8, !tbaa !14
  tail call void @Tag__writeTo__(ptr %.sroa.0.0.copyload.peel, ptr %.sroa.4.0.copyload.peel, ptr noundef %2)
  %44 = load i32, ptr %40, align 8, !tbaa !12
  %45 = icmp sgt i32 %44, 1
  br i1 %45, label %.lr.ph55.peel.next, label %.sink.split

.lr.ph55.peel.next:                               ; preds = %.lr.ph55.preheader, %.lr.ph55.peel.next
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph55.peel.next ], [ 1, %.lr.ph55.preheader ]
  %46 = load ptr, ptr %.sroa.8.0.lcssa, align 8, !tbaa !15
  %47 = getelementptr inbounds %struct.tag_____Tag__, ptr %46, i64 %indvars.iv
  %.sroa.0.0.copyload = load ptr, ptr %47, align 8, !tbaa !14
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %47, i64 8
  %.sroa.4.0.copyload = load ptr, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !14
  %48 = load ptr, ptr @mu_____string77, align 8
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string77, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %48, i32 %49)
  tail call void @Tag__writeTo__(ptr %.sroa.0.0.copyload, ptr %.sroa.4.0.copyload, ptr noundef %2)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %50 = load i32, ptr %40, align 8, !tbaa !12
  %51 = sext i32 %50 to i64
  %52 = icmp slt i64 %indvars.iv.next, %51
  br i1 %52, label %.lr.ph55.peel.next, label %.sink.split, !llvm.loop !16

.sink.split:                                      ; preds = %14, %.lr.ph55.peel.next, %37, %.lr.ph55.preheader, %3
  %mu_____string73.sink = phi ptr [ @mu_____string72, %3 ], [ @mu_____string78, %.lr.ph55.preheader ], [ @mu_____string78, %37 ], [ @mu_____string78, %.lr.ph55.peel.next ], [ @mu_____string73, %14 ]
  %.sink65 = phi ptr [ getelementptr inbounds (i8, ptr @mu_____string72, i64 8), %3 ], [ getelementptr inbounds (i8, ptr @mu_____string78, i64 8), %.lr.ph55.preheader ], [ getelementptr inbounds (i8, ptr @mu_____string78, i64 8), %37 ], [ getelementptr inbounds (i8, ptr @mu_____string78, i64 8), %.lr.ph55.peel.next ], [ getelementptr inbounds (i8, ptr @mu_____string73, i64 8), %14 ]
  %53 = load ptr, ptr %mu_____string73.sink, align 8
  %54 = load i32, ptr %.sink65, align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %53, i32 %54)
  br label %55

55:                                               ; preds = %.sink.split, %32
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { 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, !11, i64 28}
!6 = !{!"tag_____Namespace__", !7, i64 0, !8, i64 16, !11, i64 24, !11, i64 28, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !11, i64 104}
!7 = !{!"", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"tag_____Array__Tag____", !8, i64 0, !11, i64 8}
!14 = !{!8, !8, i64 0}
!15 = !{!13, !8, i64 0}
!16 = distinct !{!16, !17, !18}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass