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

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

@mu_____string438 = external dso_local global %struct.string__, align 8
@mu_____string408 = external dso_local global %struct.string__, align 8
@mu_____string303 = 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: nounwind uwtable
declare dso_local void @StringBuilder__write__(ptr noundef, ptr, i32) #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__genCast__(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.tag_____Tag__, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.tag_____Tag__, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  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) #3
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %17, i32 0, i32 2
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  store ptr %19, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 1, ptr %8, align 4, !tbaa !13
  %20 = load i32, ptr %8, align 4, !tbaa !13
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.tag_____List__Node____, ptr %21, i32 0, i32 1
  %23 = load i32, ptr %22, align 8, !tbaa !14
  %24 = icmp ult i32 %20, %23
  br i1 %24, label %28, label %25

25:                                               ; preds = %3
  %26 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  call void %27(i32 noundef -3)
  br label %28

28:                                               ; preds = %25, %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.tag_____List__Node____, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !16
  %33 = load i32, ptr %8, align 4, !tbaa !13
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds %struct.Node__, ptr %32, i64 %34
  %36 = getelementptr inbounds { i32, ptr }, ptr %35, i32 0, i32 0
  %37 = load i32, ptr %36, align 8
  %38 = getelementptr inbounds { i32, ptr }, ptr %35, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8
  %40 = call { ptr, ptr } @CGenerator__nodeTag__(ptr noundef %29, i32 %37, ptr %39)
  %41 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 0
  %42 = extractvalue { ptr, ptr } %40, 0
  store ptr %42, ptr %41, align 8
  %43 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 1
  %44 = extractvalue { ptr, ptr } %40, 1
  store ptr %44, ptr %43, align 8
  %45 = getelementptr inbounds %struct.tag_____Tag__, ptr %9, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !17
  %47 = getelementptr inbounds %struct.tag_____Namespace__, ptr %46, i32 0, i32 3
  %48 = load i32, ptr %47, align 4, !tbaa !19
  %49 = and i32 %48, 8192
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %108

51:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %52, i32 0, i32 2
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  store ptr %54, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !13
  %55 = load i32, ptr %11, align 4, !tbaa !13
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.tag_____List__Node____, ptr %56, i32 0, i32 1
  %58 = load i32, ptr %57, align 8, !tbaa !14
  %59 = icmp ult i32 %55, %58
  br i1 %59, label %63, label %60

60:                                               ; preds = %51
  %61 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  call void %62(i32 noundef -3)
  br label %63

63:                                               ; preds = %60, %51
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #3
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.tag_____List__Node____, ptr %65, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !16
  %68 = load i32, ptr %11, align 4, !tbaa !13
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds %struct.Node__, ptr %67, i64 %69
  %71 = getelementptr inbounds { i32, ptr }, ptr %70, i32 0, i32 0
  %72 = load i32, ptr %71, align 8
  %73 = getelementptr inbounds { i32, ptr }, ptr %70, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8
  %75 = call { ptr, ptr } @CGenerator__nodeTag__(ptr noundef %64, i32 %72, ptr %74)
  %76 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 0
  %77 = extractvalue { ptr, ptr } %75, 0
  store ptr %77, ptr %76, align 8
  %78 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 1
  %79 = extractvalue { ptr, ptr } %75, 1
  store ptr %79, ptr %78, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %80, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !9
  store ptr %82, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !13
  %83 = load i32, ptr %14, align 4, !tbaa !13
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.tag_____List__Node____, ptr %84, i32 0, i32 1
  %86 = load i32, ptr %85, align 8, !tbaa !14
  %87 = icmp ult i32 %83, %86
  br i1 %87, label %91, label %88

88:                                               ; preds = %63
  %89 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  call void %90(i32 noundef -3)
  br label %91

91:                                               ; preds = %88, %63
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.tag_____List__Node____, ptr %93, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !16
  %96 = load i32, ptr %14, align 4, !tbaa !13
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds %struct.Node__, ptr %95, i64 %97
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds { i32, ptr }, ptr %98, i32 0, i32 0
  %101 = load i32, ptr %100, align 8
  %102 = getelementptr inbounds { i32, ptr }, ptr %98, i32 0, i32 1
  %103 = load ptr, ptr %102, align 8
  %104 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8
  %106 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8
  call void @CGenerator__genTaggedPointerCreate__(ptr noundef %92, i32 %101, ptr %103, ptr noundef %99, ptr %105, ptr %107, ptr noundef byval(%struct.tag_____Tag__) align 8 %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %147

108:                                              ; preds = %28
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = load ptr, ptr @mu_____string438, align 8
  %111 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string438, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %109, ptr %110, i32 %111)
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8
  %115 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8
  call void @CGenerator__writeTag__(ptr noundef %112, ptr %114, ptr %116)
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load ptr, ptr @mu_____string408, align 8
  %119 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string408, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %117, ptr %118, i32 %119)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %120, i32 0, i32 2
  %122 = load ptr, ptr %121, align 8, !tbaa !9
  store ptr %122, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 0, ptr %16, align 4, !tbaa !13
  %123 = load i32, ptr %16, align 4, !tbaa !13
  %124 = load ptr, ptr %15, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.tag_____List__Node____, ptr %124, i32 0, i32 1
  %126 = load i32, ptr %125, align 8, !tbaa !14
  %127 = icmp ult i32 %123, %126
  br i1 %127, label %131, label %128

128:                                              ; preds = %108
  %129 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  call void %130(i32 noundef -3)
  br label %131

131:                                              ; preds = %128, %108
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.tag_____List__Node____, ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !16
  %136 = load i32, ptr %16, align 4, !tbaa !13
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds %struct.Node__, ptr %135, i64 %137
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds { i32, ptr }, ptr %138, i32 0, i32 0
  %141 = load i32, ptr %140, align 8
  %142 = getelementptr inbounds { i32, ptr }, ptr %138, i32 0, i32 1
  %143 = load ptr, ptr %142, align 8
  call void @CGenerator__genExpression__(ptr noundef %132, i32 %141, ptr %143, ptr noundef %139)
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = load ptr, ptr @mu_____string303, align 8
  %146 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string303, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %144, ptr %145, i32 %146)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %147

147:                                              ; preds = %131, %91
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @CGenerator__genTaggedPointerCreate__(ptr noundef, i32, ptr, ptr noundef, ptr, ptr, ptr noundef byval(%struct.tag_____Tag__) align 8) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 24}
!10 = !{!"tag_____CallExpression__", !11, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!11 = !{!"", !12, i64 0, !6, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !12, i64 8}
!15 = !{!"tag_____List__Node____", !6, i64 0, !12, i64 8, !12, i64 12}
!16 = !{!15, !6, i64 0}
!17 = !{!18, !6, i64 0}
!18 = !{!"tag_____Tag__", !6, i64 0, !6, i64 8}
!19 = !{!20, !12, i64 28}
!20 = !{!"tag_____Namespace__", !21, i64 0, !6, i64 16, !12, i64 24, !12, 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, !12, i64 104}
!21 = !{!"", !6, i64 0, !12, 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_____Tag__ = type { ptr, ptr }

@mu_____string438 = 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_____string303 = 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 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: nounwind uwtable
declare dso_local void @StringBuilder__write__(ptr noundef, ptr, i32) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local { ptr, ptr } @CGenerator__nodeTag__(ptr noundef, i32, ptr) 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__genCast__(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca %struct.tag_____Tag__, align 8
  %5 = getelementptr inbounds i8, ptr %1, i64 24
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 8
  %8 = load i32, ptr %7, align 8, !tbaa !12
  %9 = icmp ugt i32 %8, 1
  br i1 %9, label %13, label %10

10:                                               ; preds = %3
  %11 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  tail call void %12(i32 noundef -3) #3
  br label %13

13:                                               ; preds = %10, %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  %14 = load ptr, ptr %6, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  %16 = load i32, ptr %15, align 8
  %17 = getelementptr inbounds i8, ptr %14, i64 24
  %18 = load ptr, ptr %17, align 8
  %19 = tail call { ptr, ptr } @CGenerator__nodeTag__(ptr noundef %0, i32 %16, ptr %18)
  %20 = extractvalue { ptr, ptr } %19, 0
  store ptr %20, ptr %4, align 8
  %21 = getelementptr inbounds i8, ptr %4, i64 8
  %22 = extractvalue { ptr, ptr } %19, 1
  store ptr %22, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr %20, i64 28
  %24 = load i32, ptr %23, align 4, !tbaa !16
  %25 = and i32 %24, 8192
  %.not = icmp eq i32 %25, 0
  br i1 %.not, label %52, label %26

26:                                               ; preds = %13
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load i32, ptr %28, align 8, !tbaa !12
  %.not30 = icmp eq i32 %29, 0
  br i1 %.not30, label %30, label %33

30:                                               ; preds = %26
  %31 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  tail call void %32(i32 noundef -3) #3
  br label %33

33:                                               ; preds = %30, %26
  %34 = load ptr, ptr %27, align 8, !tbaa !15
  %35 = load i32, ptr %34, align 8
  %36 = getelementptr inbounds i8, ptr %34, i64 8
  %37 = load ptr, ptr %36, align 8
  %38 = tail call { ptr, ptr } @CGenerator__nodeTag__(ptr noundef %0, i32 %35, ptr %37)
  %39 = extractvalue { ptr, ptr } %38, 0
  %40 = extractvalue { ptr, ptr } %38, 1
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 8
  %43 = load i32, ptr %42, align 8, !tbaa !12
  %.not31 = icmp eq i32 %43, 0
  br i1 %.not31, label %44, label %47

44:                                               ; preds = %33
  %45 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %46 = load ptr, ptr %45, align 8, !tbaa !14
  tail call void %46(i32 noundef -3) #3
  br label %47

47:                                               ; preds = %44, %33
  %48 = load ptr, ptr %41, align 8, !tbaa !15
  %49 = load i32, ptr %48, align 8
  %50 = getelementptr inbounds i8, ptr %48, i64 8
  %51 = load ptr, ptr %50, align 8
  tail call void @CGenerator__genTaggedPointerCreate__(ptr noundef %0, i32 %49, ptr %51, ptr noundef %2, ptr %39, ptr %40, ptr noundef nonnull byval(%struct.tag_____Tag__) align 8 %4)
  br label %70

52:                                               ; preds = %13
  %53 = load ptr, ptr @mu_____string438, align 8
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string438, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %53, i32 %54)
  tail call void @CGenerator__writeTag__(ptr noundef %2, ptr nonnull %20, ptr %22)
  %55 = load ptr, ptr @mu_____string408, align 8
  %56 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string408, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %55, i32 %56)
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  %59 = load i32, ptr %58, align 8, !tbaa !12
  %.not29 = icmp eq i32 %59, 0
  br i1 %.not29, label %60, label %63

60:                                               ; preds = %52
  %61 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %62 = load ptr, ptr %61, align 8, !tbaa !14
  tail call void %62(i32 noundef -3) #3
  br label %63

63:                                               ; preds = %60, %52
  %64 = load ptr, ptr %57, align 8, !tbaa !15
  %65 = load i32, ptr %64, align 8
  %66 = getelementptr inbounds i8, ptr %64, i64 8
  %67 = load ptr, ptr %66, align 8
  tail call void @CGenerator__genExpression__(ptr noundef %0, i32 %65, ptr %67, ptr noundef %2)
  %68 = load ptr, ptr @mu_____string303, align 8
  %69 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string303, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %68, i32 %69)
  br label %70

70:                                               ; preds = %63, %47
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @CGenerator__genTaggedPointerCreate__(ptr noundef, i32, ptr, ptr noundef, ptr, ptr, ptr noundef byval(%struct.tag_____Tag__) align 8) local_unnamed_addr #2

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


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