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

; 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_____string462 = external dso_local global %struct.string__, align 8
@mu_____string464 = external dso_local global %struct.string__, align 8
@mu_____string460 = 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_____string458 = external dso_local global %struct.string__, align 8
@mu_____string461 = external dso_local global %struct.string__, align 8
@mu_____string421 = external dso_local global %struct.string__, align 8
@mu_____string463 = external dso_local global %struct.string__, align 8
@mu_____string459 = external dso_local global %struct.string__, align 8
@top_____currentAllocator__ = external dso_local thread_local global %struct.tag_____IAllocator__, align 8
@Tag__null___ = external hidden global %struct.tag_____Tag__, 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
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

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__genTaggedPointerCreate__(ptr noundef %0, i32 %1, ptr %2, ptr noundef %3, ptr %4, ptr %5, ptr noundef byval(%struct.tag_____Tag__) align 8 %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 %struct.string__, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %struct.tag_____StringBuilder__, align 8
  %15 = alloca ptr, 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 = alloca %struct.string__, align 8
  %21 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 0
  store i32 %1, ptr %21, align 8
  %22 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 1
  store ptr %2, ptr %22, align 8
  %23 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 0
  store ptr %4, ptr %23, align 8
  %24 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 1
  store ptr %5, ptr %24, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = call { ptr, i32 } @CGenerator__newLocal__(ptr noundef %25)
  %27 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %28 = extractvalue { ptr, i32 } %26, 0
  store ptr %28, ptr %27, align 8
  %29 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %30 = extractvalue { ptr, i32 } %26, 1
  store i32 %30, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %31 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %32 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %35 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = call ptr %33(ptr noundef %36, i64 noundef 16)
  store ptr %37, ptr %13, align 8, !tbaa !5
  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)
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %39 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %39, ptr %15, align 8, !tbaa !5
  %40 = load ptr, ptr %15, align 8, !tbaa !5
  %41 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8
  %43 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8
  call void @CGenerator__writeTag__(ptr noundef %40, ptr %42, ptr %44)
  %45 = load ptr, ptr %15, align 8, !tbaa !5
  %46 = load ptr, ptr @mu_____string421, align 8
  %47 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string421, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %45, ptr %46, i32 %47)
  %48 = load ptr, ptr %15, align 8, !tbaa !5
  %49 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8
  %51 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %52 = load i32, ptr %51, align 8
  call void @StringBuilder__write__(ptr noundef %48, ptr %50, i32 %52)
  %53 = load ptr, ptr %15, align 8, !tbaa !5
  %54 = load ptr, ptr @mu_____string324, align 8
  %55 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string324, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %53, ptr %54, i32 %55)
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %56, i32 0, i32 5
  %58 = load ptr, ptr %57, align 8, !tbaa !15
  %59 = load ptr, ptr %15, align 8, !tbaa !5
  %60 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %59)
  %61 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 0
  %62 = extractvalue { ptr, i32 } %60, 0
  store ptr %62, ptr %61, align 8
  %63 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 1
  %64 = extractvalue { ptr, i32 } %60, 1
  store i32 %64, ptr %63, align 8
  %65 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8
  %67 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 1
  %68 = load i32, ptr %67, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %58, ptr %66, i32 %68)
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  call void @StringBuilder__clear__(ptr noundef %69)
  %70 = getelementptr inbounds %struct.tag_____Tag__, ptr %9, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !18
  %72 = load ptr, ptr @Tag__null___, align 8, !tbaa !18
  %73 = icmp ne ptr %71, %72
  br i1 %73, label %74, label %149

74:                                               ; preds = %7
  %75 = load ptr, ptr %15, align 8, !tbaa !5
  %76 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8
  %78 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %79 = load i32, ptr %78, align 8
  call void @StringBuilder__write__(ptr noundef %75, ptr %77, i32 %79)
  %80 = load ptr, ptr %15, align 8, !tbaa !5
  %81 = load ptr, ptr @mu_____string458, align 8
  %82 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string458, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %80, ptr %81, i32 %82)
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = load ptr, ptr %15, align 8, !tbaa !5
  %85 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 0
  %86 = load i32, ptr %85, align 8
  %87 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 1
  %88 = load ptr, ptr %87, align 8
  call void @CGenerator__genExpression__(ptr noundef %83, i32 %86, ptr %88, ptr noundef %84)
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = load ptr, ptr @mu_____string410, align 8
  %91 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string410, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %89, ptr %90, i32 %91)
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %92, i32 0, i32 5
  %94 = load ptr, ptr %93, align 8, !tbaa !15
  %95 = load ptr, ptr %15, align 8, !tbaa !5
  %96 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %95)
  %97 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 0
  %98 = extractvalue { ptr, i32 } %96, 0
  store ptr %98, ptr %97, align 8
  %99 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 1
  %100 = extractvalue { ptr, i32 } %96, 1
  store i32 %100, ptr %99, align 8
  %101 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8
  %103 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 1
  %104 = load i32, ptr %103, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %94, ptr %102, i32 %104)
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  call void @StringBuilder__clear__(ptr noundef %105)
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  %107 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8
  %109 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %110 = load i32, ptr %109, align 8
  call void @StringBuilder__write__(ptr noundef %106, ptr %108, i32 %110)
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = load ptr, ptr @mu_____string459, align 8
  %113 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string459, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %111, ptr %112, i32 %113)
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8
  %117 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %118 = load i32, ptr %117, align 8
  call void @StringBuilder__write__(ptr noundef %114, ptr %116, i32 %118)
  %119 = load ptr, ptr %15, align 8, !tbaa !5
  %120 = load ptr, ptr @mu_____string460, align 8
  %121 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string460, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %119, ptr %120, i32 %121)
  %122 = load ptr, ptr %15, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8, !tbaa !18
  call void @CGenerator__writeNs__(ptr noundef %122, ptr noundef %124)
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  %126 = load ptr, ptr @mu_____string461, align 8
  %127 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string461, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %125, ptr %126, i32 %127)
  %128 = load ptr, ptr %15, align 8, !tbaa !5
  %129 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8
  %131 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 1
  %132 = load ptr, ptr %131, align 8
  call void @CGenerator__writeNestedTag__(ptr noundef %128, ptr %130, ptr %132)
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = load ptr, ptr @mu_____string462, align 8
  %135 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string462, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %133, ptr %134, i32 %135)
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %136, i32 0, i32 5
  %138 = load ptr, ptr %137, align 8, !tbaa !15
  %139 = load ptr, ptr %15, align 8, !tbaa !5
  %140 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %139)
  %141 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %142 = extractvalue { ptr, i32 } %140, 0
  store ptr %142, ptr %141, align 8
  %143 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %144 = extractvalue { ptr, i32 } %140, 1
  store i32 %144, ptr %143, align 8
  %145 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8
  %147 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %148 = load i32, ptr %147, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %138, ptr %146, i32 %148)
  br label %193

149:                                              ; preds = %7
  %150 = load ptr, ptr %15, align 8, !tbaa !5
  %151 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8
  %153 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %154 = load i32, ptr %153, align 8
  call void @StringBuilder__write__(ptr noundef %150, ptr %152, i32 %154)
  %155 = load ptr, ptr %15, align 8, !tbaa !5
  %156 = load ptr, ptr @mu_____string463, align 8
  %157 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string463, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %155, ptr %156, i32 %157)
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %158, i32 0, i32 5
  %160 = load ptr, ptr %159, align 8, !tbaa !15
  %161 = load ptr, ptr %15, align 8, !tbaa !5
  %162 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %161)
  %163 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 0
  %164 = extractvalue { ptr, i32 } %162, 0
  store ptr %164, ptr %163, align 8
  %165 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 1
  %166 = extractvalue { ptr, i32 } %162, 1
  store i32 %166, ptr %165, align 8
  %167 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 0
  %168 = load ptr, ptr %167, align 8
  %169 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 1
  %170 = load i32, ptr %169, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %160, ptr %168, i32 %170)
  %171 = load ptr, ptr %15, align 8, !tbaa !5
  call void @StringBuilder__clear__(ptr noundef %171)
  %172 = load ptr, ptr %15, align 8, !tbaa !5
  %173 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8
  %175 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %176 = load i32, ptr %175, align 8
  call void @StringBuilder__write__(ptr noundef %172, ptr %174, i32 %176)
  %177 = load ptr, ptr %15, align 8, !tbaa !5
  %178 = load ptr, ptr @mu_____string464, align 8
  %179 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string464, i32 0, i32 1), align 8
  call void @StringBuilder__write__(ptr noundef %177, ptr %178, i32 %179)
  %180 = load ptr, ptr %10, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %180, i32 0, i32 5
  %182 = load ptr, ptr %181, align 8, !tbaa !15
  %183 = load ptr, ptr %15, align 8, !tbaa !5
  %184 = call { ptr, i32 } @StringBuilder__toString__(ptr noundef %183)
  %185 = getelementptr inbounds { ptr, i32 }, ptr %20, i32 0, i32 0
  %186 = extractvalue { ptr, i32 } %184, 0
  store ptr %186, ptr %185, align 8
  %187 = getelementptr inbounds { ptr, i32 }, ptr %20, i32 0, i32 1
  %188 = extractvalue { ptr, i32 } %184, 1
  store i32 %188, ptr %187, align 8
  %189 = getelementptr inbounds { ptr, i32 }, ptr %20, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8
  %191 = getelementptr inbounds { ptr, i32 }, ptr %20, i32 0, i32 1
  %192 = load i32, ptr %191, align 8
  call void @CodeBuilder__writeLine__(ptr noundef %182, ptr %190, i32 %192)
  br label %193

193:                                              ; preds = %149, %74
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  %195 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %196 = load ptr, ptr %195, align 8
  %197 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %198 = load i32, ptr %197, align 8
  call void @StringBuilder__write__(ptr noundef %194, ptr %196, i32 %198)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  ret void
}

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_____string462 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string464 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string460 = 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_____string458 = 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_____string421 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string463 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string459 = 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
@Tag__null___ = external hidden local_unnamed_addr global %struct.tag_____Tag__, 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
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

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__genTaggedPointerCreate__(ptr noundef %0, i32 %1, ptr %2, ptr noundef %3, ptr %4, ptr %5, ptr nocapture noundef readonly byval(%struct.tag_____Tag__) align 8 %6) local_unnamed_addr #2 {
  %8 = tail call { ptr, i32 } @CGenerator__newLocal__(ptr noundef %0)
  %9 = extractvalue { ptr, i32 } %8, 0
  %10 = extractvalue { ptr, i32 } %8, 1
  %11 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %12 = getelementptr inbounds i8, ptr %11, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = load ptr, ptr %11, align 8, !tbaa !10
  %15 = tail call ptr %13(ptr noundef %14, i64 noundef 16) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, i8 0, i64 16, i1 false)
  %16 = load ptr, ptr %6, align 8
  %17 = getelementptr inbounds i8, ptr %6, i64 8
  %18 = load ptr, ptr %17, align 8
  tail call void @CGenerator__writeTag__(ptr noundef %15, ptr %16, ptr %18)
  %19 = load ptr, ptr @mu_____string421, align 8
  %20 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string421, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %15, ptr %19, i32 %20)
  tail call void @StringBuilder__write__(ptr noundef %15, ptr %9, i32 %10)
  %21 = load ptr, ptr @mu_____string324, align 8
  %22 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string324, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef %15, ptr %21, i32 %22)
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  %25 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef %15)
  %26 = extractvalue { ptr, i32 } %25, 0
  %27 = extractvalue { ptr, i32 } %25, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %24, ptr %26, i32 %27)
  tail call void @StringBuilder__clear__(ptr noundef %15)
  %28 = load ptr, ptr @Tag__null___, align 8, !tbaa !15
  %.not = icmp eq ptr %28, %4
  tail call void @StringBuilder__write__(ptr noundef nonnull %15, ptr %9, i32 %10)
  br i1 %.not, label %45, label %29

29:                                               ; preds = %7
  %30 = load ptr, ptr @mu_____string458, align 8
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string458, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %15, ptr %30, i32 %31)
  tail call void @CGenerator__genExpression__(ptr noundef nonnull %0, i32 %1, ptr %2, ptr noundef nonnull %15)
  %32 = load ptr, ptr @mu_____string410, align 8
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string410, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %15, ptr %32, i32 %33)
  %34 = load ptr, ptr %23, align 8, !tbaa !11
  %35 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef nonnull %15)
  %36 = extractvalue { ptr, i32 } %35, 0
  %37 = extractvalue { ptr, i32 } %35, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %34, ptr %36, i32 %37)
  tail call void @StringBuilder__clear__(ptr noundef nonnull %15)
  tail call void @StringBuilder__write__(ptr noundef nonnull %15, ptr %9, i32 %10)
  %38 = load ptr, ptr @mu_____string459, align 8
  %39 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string459, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %15, ptr %38, i32 %39)
  tail call void @StringBuilder__write__(ptr noundef nonnull %15, ptr %9, i32 %10)
  %40 = load ptr, ptr @mu_____string460, align 8
  %41 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string460, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %15, ptr %40, i32 %41)
  %42 = load ptr, ptr %6, align 8, !tbaa !15
  tail call void @CGenerator__writeNs__(ptr noundef nonnull %15, ptr noundef %42)
  %43 = load ptr, ptr @mu_____string461, align 8
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string461, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %15, ptr %43, i32 %44)
  tail call void @CGenerator__writeNestedTag__(ptr noundef nonnull %15, ptr %4, ptr %5)
  br label %52

45:                                               ; preds = %7
  %46 = load ptr, ptr @mu_____string463, align 8
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string463, i64 8), align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %15, ptr %46, i32 %47)
  %48 = load ptr, ptr %23, align 8, !tbaa !11
  %49 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef nonnull %15)
  %50 = extractvalue { ptr, i32 } %49, 0
  %51 = extractvalue { ptr, i32 } %49, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %48, ptr %50, i32 %51)
  tail call void @StringBuilder__clear__(ptr noundef nonnull %15)
  tail call void @StringBuilder__write__(ptr noundef nonnull %15, ptr %9, i32 %10)
  br label %52

52:                                               ; preds = %45, %29
  %mu_____string464.sink = phi ptr [ @mu_____string464, %45 ], [ @mu_____string462, %29 ]
  %.sink68 = phi ptr [ getelementptr inbounds (i8, ptr @mu_____string464, i64 8), %45 ], [ getelementptr inbounds (i8, ptr @mu_____string462, i64 8), %29 ]
  %53 = load ptr, ptr %mu_____string464.sink, align 8
  %54 = load i32, ptr %.sink68, align 8
  tail call void @StringBuilder__write__(ptr noundef nonnull %15, ptr %53, i32 %54)
  %55 = load ptr, ptr %23, align 8, !tbaa !11
  %56 = tail call { ptr, i32 } @StringBuilder__toString__(ptr noundef nonnull %15)
  %57 = extractvalue { ptr, i32 } %56, 0
  %58 = extractvalue { ptr, i32 } %56, 1
  tail call void @CodeBuilder__writeLine__(ptr noundef %55, ptr %57, i32 %58)
  tail call void @StringBuilder__write__(ptr noundef %3, ptr %9, i32 %10)
  ret void
}

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}
!15 = !{!16, !7, i64 0}
!16 = !{!"tag_____Tag__", !7, i64 0, !7, i64 8}


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