; LLVM IR from nickmqb/muon :: bootstrap/mu.ll_Interpreter (evalToken__)

; 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_____EvalResult__ = type { %struct.tag_____Tag__, i64, i32 }
%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_____StaticFieldDef__ = type { ptr, ptr, ptr, %struct.Node__, ptr, ptr, %struct.Node__, i32, ptr, %struct.tag_____Tag__, i32, ptr, %struct.tag_____EvalResult__, %struct.string__ }
%struct.tag_____CommonTags__ = type { %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@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 zeroext i8 @string__equals__(ptr, i32, ptr, i32) #4

; Function Attrs: nounwind uwtable
declare dso_local void @Map__get__Node__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 @Interpreter__computeStaticField__(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @Interpreter__evalToken__(ptr dead_on_unwind noalias writable sret(%struct.tag_____EvalResult__) align 8 %0, ptr noundef %1, ptr noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca %struct.Node__, align 8
  %9 = alloca %struct.tag_____NodeInfo__, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.Node__, align 8
  %12 = alloca %struct.tag_____NodeInfo__, align 8
  %13 = alloca %struct.Node__, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i8, align 1
  store ptr %1, ptr %4, align 8, !tbaa !5
  store ptr %2, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.tag_____Token__, ptr %16, i32 0, i32 0
  %18 = load i32, ptr %17, align 8, !tbaa !9
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %20, label %133

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

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

42:                                               ; preds = %32, %20
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  %43 = load i8, ptr %6, align 1, !tbaa !14
  store i8 %43, ptr %7, align 1, !tbaa !14
  %44 = load i8, ptr %7, align 1, !tbaa !14
  %45 = icmp ne i8 %44, 0
  br i1 %45, label %56, label %46

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

56:                                               ; preds = %46, %42
  %57 = load i8, ptr %7, align 1, !tbaa !14
  %58 = icmp ne i8 %57, 0
  br i1 %58, label %59, label %78

59:                                               ; preds = %56
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.Node__, ptr %8, i32 0, i32 1
  store ptr %60, ptr %61, align 8, !tbaa !15
  %62 = getelementptr inbounds %struct.Node__, ptr %8, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !15
  %64 = icmp ne ptr %63, null
  %65 = zext i1 %64 to i64
  %66 = select i1 %64, i32 21, i32 0
  %67 = getelementptr inbounds %struct.Node__, ptr %8, i32 0, i32 0
  store i32 %66, ptr %67, align 8, !tbaa !17
  %68 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %0, i32 0, i32 0
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %69, i32 0, i32 10
  %71 = load ptr, ptr %70, align 8, !tbaa !18
  %72 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 0
  %73 = load i32, ptr %72, align 8
  %74 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8
  call void @Map__get__Node__NodeInfo____(ptr dead_on_unwind writable sret(%struct.tag_____NodeInfo__) align 8 %9, ptr noundef %71, i32 %73, ptr %75)
  %76 = getelementptr inbounds %struct.tag_____NodeInfo__, ptr %9, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %68, ptr align 8 %76, i64 16, i1 false), !tbaa.struct !20
  %77 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %0, i32 0, i32 2
  store i32 3, ptr %77, align 8, !tbaa !21
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  br label %132

78:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.Node__, ptr %11, i32 0, i32 1
  store ptr %79, ptr %80, align 8, !tbaa !15
  %81 = getelementptr inbounds %struct.Node__, ptr %11, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !15
  %83 = icmp ne ptr %82, null
  %84 = zext i1 %83 to i64
  %85 = select i1 %83, i32 21, i32 0
  %86 = getelementptr inbounds %struct.Node__, ptr %11, i32 0, i32 0
  store i32 %85, ptr %86, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #5
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %87, i32 0, i32 10
  %89 = load ptr, ptr %88, align 8, !tbaa !18
  %90 = getelementptr inbounds { i32, ptr }, ptr %11, i32 0, i32 0
  %91 = load i32, ptr %90, align 8
  %92 = getelementptr inbounds { i32, ptr }, ptr %11, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8
  call void @Map__get__Node__NodeInfo____(ptr dead_on_unwind writable sret(%struct.tag_____NodeInfo__) align 8 %12, ptr noundef %89, i32 %91, ptr %93)
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %94 = getelementptr inbounds %struct.tag_____NodeInfo__, ptr %12, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %94, i64 16, i1 false), !tbaa.struct !25
  %95 = getelementptr inbounds %struct.Node__, ptr %13, i32 0, i32 0
  %96 = load i32, ptr %95, align 8, !tbaa !17
  switch i32 %96, label %129 [
    i32 1, label %97
    i32 0, label %128
  ]

97:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %98 = getelementptr inbounds %struct.Node__, ptr %13, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !15
  store ptr %99, ptr %14, align 8, !tbaa !5
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  call void @Interpreter__computeStaticField__(ptr noundef %100, ptr noundef %101)
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.tag_____StaticFieldDef__, ptr %102, i32 0, i32 12
  %104 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %103, i32 0, i32 2
  %105 = load i32, ptr %104, align 8, !tbaa !27
  %106 = icmp eq i32 %105, 0
  %107 = zext i1 %106 to i32
  %108 = trunc i32 %107 to i8
  store i8 %108, ptr %15, align 1, !tbaa !14
  %109 = load i8, ptr %15, align 1, !tbaa !14
  %110 = icmp ne i8 %109, 0
  br i1 %110, label %119, label %111

111:                                              ; preds = %97
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.tag_____StaticFieldDef__, ptr %112, i32 0, i32 12
  %114 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %113, i32 0, i32 2
  %115 = load i32, ptr %114, align 8, !tbaa !27
  %116 = icmp eq i32 %115, 1
  %117 = zext i1 %116 to i32
  %118 = trunc i32 %117 to i8
  store i8 %118, ptr %15, align 1, !tbaa !14
  br label %119

119:                                              ; preds = %111, %97
  %120 = load i8, ptr %15, align 1, !tbaa !14
  %121 = icmp ne i8 %120, 0
  br i1 %121, label %122, label %125

122:                                              ; preds = %119
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.tag_____StaticFieldDef__, ptr %123, i32 0, i32 12
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %124, i64 32, i1 false), !tbaa.struct !29
  store i32 1, ptr %10, align 4
  br label %127

125:                                              ; preds = %119
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 32, i1 false)
  %126 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %0, i32 0, i32 2
  store i32 2, ptr %126, align 8, !tbaa !21
  store i32 1, ptr %10, align 4
  br label %127

127:                                              ; preds = %125, %122
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %131

128:                                              ; preds = %78
  br label %129

129:                                              ; preds = %128, %78
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 32, i1 false)
  %130 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %0, i32 0, i32 2
  store i32 2, ptr %130, align 8, !tbaa !21
  store i32 1, ptr %10, align 4
  br label %131

131:                                              ; preds = %129, %127
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  br label %132

132:                                              ; preds = %131, %59
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  br label %148

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

138:                                              ; preds = %133
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 32, i1 false)
  %139 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %0, i32 0, i32 0
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %140, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !31
  %143 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %142, i32 0, i32 15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %139, ptr align 8 %143, i64 16, i1 false), !tbaa.struct !20
  %144 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %0, i32 0, i32 2
  store i32 3, ptr %144, align 8, !tbaa !21
  br label %148

145:                                              ; preds = %133
  %146 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %147 = load ptr, ptr %146, align 8, !tbaa !5
  call void %147(i32 noundef -1)
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 32, i1 false)
  br label %148

148:                                              ; preds = %145, %138, %132
  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, !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 = !{!19, !6, i64 72}
!19 = !{!"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}
!20 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!21 = !{!22, !11, i64 24}
!22 = !{!"tag_____EvalResult__", !23, i64 0, !24, i64 16, !11, i64 24}
!23 = !{!"tag_____Tag__", !6, i64 0, !6, i64 8}
!24 = !{!"long", !7, i64 0}
!25 = !{i64 0, i64 4, !26, i64 8, i64 8, !5}
!26 = !{!11, !11, i64 0}
!27 = !{!28, !11, i64 144}
!28 = !{!"tag_____StaticFieldDef__", !6, i64 0, !6, i64 8, !6, i64 16, !16, i64 24, !6, i64 40, !6, i64 48, !16, i64 56, !11, i64 72, !6, i64 80, !23, i64 88, !11, i64 104, !6, i64 112, !22, i64 120, !12, i64 152}
!29 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !30, i64 24, i64 4, !26}
!30 = !{!24, !24, i64 0}
!31 = !{!19, !6, i64 32}


; 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_____EvalResult__ = type { %struct.tag_____Tag__, i64, i32 }

@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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: mustprogress 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 zeroext i8 @string__equals__(ptr, i32, ptr, i32) local_unnamed_addr #4

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

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

; Function Attrs: nounwind uwtable
define dso_local void @Interpreter__evalToken__(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.tag_____EvalResult__) align 8 %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #4 {
  %4 = alloca %struct.tag_____NodeInfo__, align 8
  %5 = alloca %struct.tag_____NodeInfo__, align 8
  %6 = load i32, ptr %2, align 8, !tbaa !5
  switch i32 %6, label %52 [
    i32 0, label %7
    i32 3, label %46
  ]

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %2, i64 8
  %9 = load ptr, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr %2, 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 %.critedge37

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 %.critedge37

.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 %32, label %.critedge37

.critedge37:                                      ; preds = %15, %7, %.critedge
  %28 = getelementptr inbounds i8, ptr %1, i64 72
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  call void @Map__get__Node__NodeInfo____(ptr dead_on_unwind nonnull writable sret(%struct.tag_____NodeInfo__) align 8 %4, ptr noundef %29, i32 21, ptr nonnull %2)
  %30 = getelementptr inbounds i8, ptr %0, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %30, i8 0, i64 16, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %4, i64 16, i1 false), !tbaa.struct !15
  %31 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 3, ptr %31, align 8, !tbaa !17
  br label %55

32:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  %33 = getelementptr inbounds i8, ptr %1, i64 72
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  call void @Map__get__Node__NodeInfo____(ptr dead_on_unwind nonnull writable sret(%struct.tag_____NodeInfo__) align 8 %5, ptr noundef %34, i32 21, ptr nonnull %2)
  %35 = getelementptr inbounds i8, ptr %5, i64 16
  %.sroa.0.0.copyload = load i32, ptr %35, align 8, !tbaa !21
  %cond = icmp eq i32 %.sroa.0.0.copyload, 1
  br i1 %cond, label %36, label %43

36:                                               ; preds = %32
  %.sroa.45.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 24
  %.sroa.45.0.copyload = load ptr, ptr %.sroa.45.0..sroa_idx, align 8, !tbaa !16
  call void @Interpreter__computeStaticField__(ptr noundef nonnull %1, ptr noundef %.sroa.45.0.copyload)
  %37 = getelementptr inbounds i8, ptr %.sroa.45.0.copyload, i64 144
  %38 = load i32, ptr %37, align 8, !tbaa !22
  %spec.select = icmp ugt i32 %38, 1
  br i1 %spec.select, label %41, label %39

39:                                               ; preds = %36
  %40 = getelementptr inbounds i8, ptr %.sroa.45.0.copyload, i64 120
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %40, i64 32, i1 false), !tbaa.struct !25
  br label %45

41:                                               ; preds = %36
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 0, i64 32, i1 false)
  %42 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 2, ptr %42, align 8, !tbaa !17
  br label %45

43:                                               ; preds = %32
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 0, i64 32, i1 false)
  %44 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 2, ptr %44, align 8, !tbaa !17
  br label %45

45:                                               ; preds = %39, %41, %43
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %55

46:                                               ; preds = %3
  %47 = getelementptr inbounds i8, ptr %1, i64 32
  %48 = load ptr, ptr %47, align 8, !tbaa !27
  %49 = getelementptr inbounds i8, ptr %48, i64 240
  %50 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %50, i8 0, i64 16, i1 false)
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %49, i64 16, i1 false), !tbaa.struct !15
  %51 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 3, ptr %51, align 8, !tbaa !17
  br label %55

52:                                               ; preds = %3
  %53 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %54 = load ptr, ptr %53, align 8, !tbaa !16
  tail call void %54(i32 noundef -1) #5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 0, i64 32, i1 false)
  br label %55

55:                                               ; preds = %.critedge37, %45, %52, %46
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress 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, !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 = !{!14, !11, i64 72}
!14 = !{!"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}
!15 = !{i64 0, i64 8, !16, i64 8, i64 8, !16}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !7, i64 24}
!18 = !{!"tag_____EvalResult__", !19, i64 0, !20, i64 16, !7, i64 24}
!19 = !{!"tag_____Tag__", !11, i64 0, !11, i64 8}
!20 = !{!"long", !8, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !7, i64 144}
!23 = !{!"tag_____StaticFieldDef__", !11, i64 0, !11, i64 8, !11, i64 16, !24, i64 24, !11, i64 40, !11, i64 48, !24, i64 56, !7, i64 72, !11, i64 80, !19, i64 88, !7, i64 104, !11, i64 112, !18, i64 120, !10, i64 152}
!24 = !{!"", !7, i64 0, !11, i64 8}
!25 = !{i64 0, i64 8, !16, i64 8, i64 8, !16, i64 16, i64 8, !26, i64 24, i64 4, !21}
!26 = !{!20, !20, i64 0}
!27 = !{!14, !11, i64 32}


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