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

; 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_____NodeInfo__ = type { %struct.tag_____Tag__, %struct.Node__ }
%struct.tag_____Tag__ = type { ptr, ptr }
%struct.Node__ = type { i32, ptr }
%struct.tag_____Maybe__string____ = type { %struct.string__, i8 }
%struct.tag_____Token__ = type { i32, %struct.string__, %struct.tag_____IntRange__, %struct.tag_____IntRange__, i32 }
%struct.tag_____IntRange__ = type { 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 }
%struct.tag_____Map__string__string____ = type { %struct.tag_____Array__MapEntry__string__string______, i32, i32, i32 }
%struct.tag_____Array__MapEntry__string__string______ = type { ptr, i32 }

@mu_____string4 = external dso_local global %struct.string__, align 8
@mu_____string3 = external dso_local global %struct.string__, align 8
@mu_____string176 = 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: 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 zeroext i8 @string__equals__(ptr, i32, ptr, i32) #4

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @CGenerator__nodeInfo__(ptr dead_on_unwind noalias writable sret(%struct.tag_____NodeInfo__) align 8, ptr noundef, i32, ptr) #4

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

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__genToken__(ptr noundef %0, ptr noundef %1, ptr noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca %struct.Node__, align 8
  %11 = alloca %struct.tag_____NodeInfo__, align 8
  %12 = alloca %struct.Node__, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.tag_____Maybe__string____, align 8
  %16 = alloca %struct.tag_____Maybe__string____, align 8
  %17 = alloca %struct.tag_____Maybe__string____, align 8
  %18 = alloca %struct.tag_____Maybe__string____, align 8
  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
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.tag_____Token__, ptr %19, i32 0, i32 0
  %21 = load i32, ptr %20, align 8, !tbaa !9
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %132

23:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.tag_____Token__, ptr %24, i32 0, i32 1
  %26 = getelementptr inbounds { ptr, i32 }, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8
  %28 = getelementptr inbounds { ptr, i32 }, ptr %25, i32 0, i32 1
  %29 = load i32, ptr %28, align 8
  %30 = load ptr, ptr @mu_____string176, align 8
  %31 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string176, i32 0, i32 1), align 8
  %32 = call zeroext i8 @string__equals__(ptr %27, i32 %29, ptr %30, i32 %31)
  store i8 %32, ptr %7, align 1, !tbaa !14
  %33 = load i8, ptr %7, align 1, !tbaa !14
  %34 = icmp ne i8 %33, 0
  br i1 %34, label %45, label %35

35:                                               ; preds = %23
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.tag_____Token__, ptr %36, i32 0, i32 1
  %38 = getelementptr inbounds { ptr, i32 }, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8
  %40 = getelementptr inbounds { ptr, i32 }, ptr %37, i32 0, i32 1
  %41 = load i32, ptr %40, align 8
  %42 = load ptr, ptr @mu_____string4, align 8
  %43 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string4, i32 0, i32 1), align 8
  %44 = call zeroext i8 @string__equals__(ptr %39, i32 %41, ptr %42, i32 %43)
  store i8 %44, ptr %7, align 1, !tbaa !14
  br label %45

45:                                               ; preds = %35, %23
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  %46 = load i8, ptr %7, align 1, !tbaa !14
  store i8 %46, ptr %8, align 1, !tbaa !14
  %47 = load i8, ptr %8, align 1, !tbaa !14
  %48 = icmp ne i8 %47, 0
  br i1 %48, label %59, label %49

49:                                               ; preds = %45
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.tag_____Token__, ptr %50, i32 0, i32 1
  %52 = getelementptr inbounds { ptr, i32 }, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8
  %54 = getelementptr inbounds { ptr, i32 }, ptr %51, i32 0, i32 1
  %55 = load i32, ptr %54, align 8
  %56 = load ptr, ptr @mu_____string3, align 8
  %57 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string3, i32 0, i32 1), align 8
  %58 = call zeroext i8 @string__equals__(ptr %53, i32 %55, ptr %56, i32 %57)
  store i8 %58, ptr %8, align 1, !tbaa !14
  br label %59

59:                                               ; preds = %49, %45
  %60 = load i8, ptr %8, align 1, !tbaa !14
  %61 = icmp ne i8 %60, 0
  br i1 %61, label %62, label %65

62:                                               ; preds = %59
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  call void @CGenerator__writeId__(ptr noundef %63, ptr noundef %64)
  store i32 1, ptr %9, align 4
  br label %129

65:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.Node__, ptr %10, i32 0, i32 1
  store ptr %66, ptr %67, align 8, !tbaa !15
  %68 = getelementptr inbounds %struct.Node__, ptr %10, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8, !tbaa !15
  %70 = icmp ne ptr %69, null
  %71 = zext i1 %70 to i64
  %72 = select i1 %70, i32 21, i32 0
  %73 = getelementptr inbounds %struct.Node__, ptr %10, i32 0, i32 0
  store i32 %72, ptr %73, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds { i32, ptr }, ptr %10, i32 0, i32 0
  %76 = load i32, ptr %75, align 8
  %77 = getelementptr inbounds { i32, ptr }, ptr %10, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8
  call void @CGenerator__nodeInfo__(ptr dead_on_unwind writable sret(%struct.tag_____NodeInfo__) align 8 %11, ptr noundef %74, i32 %76, ptr %78)
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %79 = getelementptr inbounds %struct.tag_____NodeInfo__, ptr %11, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %79, i64 16, i1 false), !tbaa.struct !18
  %80 = getelementptr inbounds %struct.Node__, ptr %12, i32 0, i32 0
  %81 = load i32, ptr %80, align 8, !tbaa !17
  switch i32 %81, label %125 [
    i32 34, label %82
    i32 1, label %87
    i32 0, label %92
  ]

82:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %83 = getelementptr inbounds %struct.Node__, ptr %12, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  store ptr %84, ptr %13, align 8, !tbaa !5
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  call void @CGenerator__writeFunRef__(ptr noundef %85, ptr noundef %86)
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %128

87:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %88 = getelementptr inbounds %struct.Node__, ptr %12, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8, !tbaa !15
  store ptr %89, ptr %14, align 8, !tbaa !5
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  call void @CGenerator__writeStaticField__(ptr noundef %90, ptr noundef %91)
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %128

92:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %93, i32 0, i32 15
  %95 = load ptr, ptr %94, align 8, !tbaa !20
  %96 = getelementptr inbounds %struct.tag_____Map__string__string____, ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 8, !tbaa !22
  %98 = icmp sgt i32 %97, 0
  br i1 %98, label %99, label %109

99:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #5
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %100, i32 0, i32 15
  %102 = load ptr, ptr %101, align 8, !tbaa !20
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.tag_____Token__, ptr %103, i32 0, i32 1
  %105 = getelementptr inbounds { ptr, i32 }, ptr %104, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8
  %107 = getelementptr inbounds { ptr, i32 }, ptr %104, i32 0, i32 1
  %108 = load i32, ptr %107, align 8
  call void @Map__maybeGet__string__string____(ptr dead_on_unwind writable sret(%struct.tag_____Maybe__string____) align 8 %16, ptr noundef %102, ptr %106, i32 %108)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %16, i64 24, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  br label %110

109:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #5
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 24, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %17, i64 24, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  br label %110

110:                                              ; preds = %109, %99
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %15, i64 24, i1 false), !tbaa.struct !25
  %111 = getelementptr inbounds %struct.tag_____Maybe__string____, ptr %18, i32 0, i32 1
  %112 = load i8, ptr %111, align 8, !tbaa !26
  %113 = icmp ne i8 %112, 0
  br i1 %113, label %114, label %121

114:                                              ; preds = %110
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.tag_____Maybe__string____, ptr %18, i32 0, i32 0
  %117 = getelementptr inbounds { ptr, i32 }, ptr %116, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8
  %119 = getelementptr inbounds { ptr, i32 }, ptr %116, i32 0, i32 1
  %120 = load i32, ptr %119, align 8
  call void @StringBuilder__write__(ptr noundef %115, ptr %118, i32 %120)
  br label %124

121:                                              ; preds = %110
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  call void @CGenerator__writeId__(ptr noundef %122, ptr noundef %123)
  br label %124

124:                                              ; preds = %121, %114
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  br label %128

125:                                              ; preds = %65
  %126 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  call void %127(i32 noundef -5)
  br label %128

128:                                              ; preds = %125, %124, %87, %82
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  store i32 0, ptr %9, align 4
  br label %129

129:                                              ; preds = %128, %62
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  %130 = load i32, ptr %9, align 4
  switch i32 %130, label %149 [
    i32 0, label %131
    i32 1, label %148
  ]

131:                                              ; preds = %129
  br label %148

132:                                              ; preds = %3
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.tag_____Token__, ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 8, !tbaa !9
  %136 = icmp eq i32 %135, 3
  br i1 %136, label %137, label %145

137:                                              ; preds = %132
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.tag_____Token__, ptr %139, i32 0, i32 1
  %141 = getelementptr inbounds { ptr, i32 }, ptr %140, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8
  %143 = getelementptr inbounds { ptr, i32 }, ptr %140, i32 0, i32 1
  %144 = load i32, ptr %143, align 8
  call void @StringBuilder__write__(ptr noundef %138, ptr %142, i32 %144)
  br label %147

145:                                              ; preds = %132
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  call void @CGenerator__writeFailure__(ptr noundef %146)
  br label %147

147:                                              ; preds = %145, %137
  br label %148

148:                                              ; preds = %147, %131, %129
  ret void

149:                                              ; preds = %129
  unreachable
}

; Function Attrs: nounwind uwtable
declare dso_local void @Map__maybeGet__string__string____(ptr dead_on_unwind noalias writable sret(%struct.tag_____Maybe__string____) align 8, 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 0}
!10 = !{!"tag_____Token__", !11, i64 0, !12, i64 8, !13, i64 24, !13, i64 32, !11, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!"", !6, i64 0, !11, i64 8}
!13 = !{!"tag_____IntRange__", !11, i64 0, !11, i64 4}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !6, i64 8}
!16 = !{!"", !11, i64 0, !6, i64 8}
!17 = !{!16, !11, i64 0}
!18 = !{i64 0, i64 4, !19, i64 8, i64 8, !5}
!19 = !{!11, !11, i64 0}
!20 = !{!21, !6, i64 128}
!21 = !{!"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, !12, i64 80, !11, i64 96, !12, i64 104, !11, i64 120, !6, i64 128, !6, i64 136, !7, i64 144}
!22 = !{!23, !11, i64 16}
!23 = !{!"tag_____Map__string__string____", !24, i64 0, !11, i64 16, !11, i64 20, !11, i64 24}
!24 = !{!"tag_____Array__MapEntry__string__string______", !6, i64 0, !11, i64 8}
!25 = !{i64 0, i64 8, !5, i64 8, i64 4, !19, i64 16, i64 1, !14}
!26 = !{!27, !7, i64 16}
!27 = !{!"tag_____Maybe__string____", !12, i64 0, !7, i64 16}


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

@mu_____string4 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string3 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string176 = 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 zeroext i8 @string__equals__(ptr, i32, ptr, i32) local_unnamed_addr #2

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @CGenerator__nodeInfo__(ptr dead_on_unwind noalias writable sret(%struct.tag_____NodeInfo__) align 8, ptr noundef, i32, ptr) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local void @CGenerator__genToken__(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca %struct.tag_____NodeInfo__, align 8
  %5 = alloca %struct.tag_____Maybe__string____, align 8
  %6 = load i32, ptr %1, align 8, !tbaa !5
  switch i32 %6, label %52 [
    i32 0, label %7
    i32 3, label %47
  ]

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = load ptr, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr %1, i64 16
  %11 = load i32, ptr %10, align 8
  %12 = load ptr, ptr @mu_____string176, align 8
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string176, i64 8), align 8
  %14 = tail call zeroext i8 @string__equals__(ptr %9, i32 %11, ptr %12, i32 %13)
  %.not = icmp eq i8 %14, 0
  br i1 %.not, label %15, label %.critedge56

15:                                               ; preds = %7
  %16 = load ptr, ptr %8, align 8
  %17 = load i32, ptr %10, align 8
  %18 = load ptr, ptr @mu_____string4, align 8
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string4, i64 8), align 8
  %20 = tail call zeroext i8 @string__equals__(ptr %16, i32 %17, ptr %18, i32 %19)
  %21 = icmp eq i8 %20, 0
  br i1 %21, label %.critedge, label %.critedge56

.critedge:                                        ; preds = %15
  %22 = load ptr, ptr %8, align 8
  %23 = load i32, ptr %10, align 8
  %24 = load ptr, ptr @mu_____string3, align 8
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string3, i64 8), align 8
  %26 = tail call zeroext i8 @string__equals__(ptr %22, i32 %23, ptr %24, i32 %25)
  %27 = icmp eq i8 %26, 0
  br i1 %27, label %28, label %.critedge56

.critedge56:                                      ; preds = %15, %7, %.critedge
  tail call void @CGenerator__writeId__(ptr noundef %2, ptr noundef nonnull %1)
  br label %53

28:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #3
  call void @CGenerator__nodeInfo__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____NodeInfo__) align 8 %4, ptr noundef %0, i32 21, ptr nonnull %1)
  %29 = getelementptr inbounds i8, ptr %4, i64 16
  %.sroa.019.0.copyload = load i32, ptr %29, align 8, !tbaa !13
  %.sroa.421.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 24
  %.sroa.421.0.copyload = load ptr, ptr %.sroa.421.0..sroa_idx, align 8, !tbaa !14
  switch i32 %.sroa.019.0.copyload, label %43 [
    i32 34, label %30
    i32 1, label %31
    i32 0, label %32
  ]

30:                                               ; preds = %28
  call void @CGenerator__writeFunRef__(ptr noundef %2, ptr noundef %.sroa.421.0.copyload)
  br label %46

31:                                               ; preds = %28
  call void @CGenerator__writeStaticField__(ptr noundef %2, ptr noundef %.sroa.421.0.copyload)
  br label %46

32:                                               ; preds = %28
  %33 = getelementptr inbounds i8, ptr %0, i64 128
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %36 = load i32, ptr %35, align 8, !tbaa !17
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %38, label %.thread

38:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #3
  %39 = load ptr, ptr %8, align 8
  %40 = load i32, ptr %10, align 8
  call void @Map__maybeGet__string__string____(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Maybe__string____) align 8 %5, ptr noundef nonnull %34, ptr %39, i32 %40)
  %.sroa.02.0.copyload = load ptr, ptr %5, align 8, !tbaa !14
  %.sroa.54.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %.sroa.54.0.copyload = load i32, ptr %.sroa.54.0..sroa_idx, align 8, !tbaa !13
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 16
  %.sroa.7.0.copyload = load i8, ptr %.sroa.7.0..sroa_idx, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #3
  %41 = icmp eq i8 %.sroa.7.0.copyload, 0
  br i1 %41, label %.thread, label %42

42:                                               ; preds = %38
  call void @StringBuilder__write__(ptr noundef %2, ptr %.sroa.02.0.copyload, i32 %.sroa.54.0.copyload)
  br label %46

.thread:                                          ; preds = %32, %38
  call void @CGenerator__writeId__(ptr noundef %2, ptr noundef nonnull %1)
  br label %46

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

46:                                               ; preds = %42, %.thread, %43, %31, %30
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #3
  br label %53

47:                                               ; preds = %3
  %48 = getelementptr inbounds i8, ptr %1, i64 8
  %49 = load ptr, ptr %48, align 8
  %50 = getelementptr inbounds i8, ptr %1, i64 16
  %51 = load i32, ptr %50, align 8
  tail call void @StringBuilder__write__(ptr noundef %2, ptr %49, i32 %51)
  br label %53

52:                                               ; preds = %3
  tail call void @CGenerator__writeFailure__(ptr noundef %2)
  br label %53

53:                                               ; preds = %.critedge56, %46, %47, %52
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @Map__maybeGet__string__string____(ptr dead_on_unwind noalias writable sret(%struct.tag_____Maybe__string____) align 8, ptr noundef, ptr, i32) 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, !7, i64 0}
!6 = !{!"tag_____Token__", !7, i64 0, !10, i64 8, !12, i64 24, !12, i64 32, !7, i64 40}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !7, i64 8}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"tag_____IntRange__", !7, i64 0, !7, i64 4}
!13 = !{!7, !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !11, i64 128}
!16 = !{!"tag_____GenerateContext__", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !7, i64 48, !7, i64 52, !11, i64 56, !11, i64 64, !11, i64 72, !10, i64 80, !7, i64 96, !10, i64 104, !7, i64 120, !11, i64 128, !11, i64 136, !8, i64 144}
!17 = !{!18, !7, i64 16}
!18 = !{!"tag_____Map__string__string____", !19, i64 0, !7, i64 16, !7, i64 20, !7, i64 24}
!19 = !{!"tag_____Array__MapEntry__string__string______", !11, i64 0, !7, i64 8}
!20 = !{!8, !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass