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

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

@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 @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__evalExpression__(ptr dead_on_unwind noalias writable sret(%struct.tag_____EvalResult__) align 8, ptr noundef, i32, ptr) #4

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

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

30:                                               ; preds = %27, %3
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.tag_____List__Node____, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  %35 = load i32, ptr %7, align 4, !tbaa !13
  %36 = zext i32 %35 to i64
  %37 = getelementptr inbounds %struct.Node__, ptr %34, i64 %36
  %38 = getelementptr inbounds { i32, ptr }, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 8
  %40 = getelementptr inbounds { i32, ptr }, ptr %37, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8
  call void @Interpreter__evalExpression__(ptr dead_on_unwind writable sret(%struct.tag_____EvalResult__) align 8 %8, ptr noundef %31, i32 %39, ptr %41)
  %42 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %8, i32 0, i32 2
  %43 = load i32, ptr %42, align 8, !tbaa !17
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %47

45:                                               ; preds = %30
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 32, i1 false)
  %46 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %0, i32 0, i32 2
  store i32 2, ptr %46, align 8, !tbaa !17
  store i32 1, ptr %9, align 4
  br label %148

47:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %48 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %8, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %48, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %49, i32 0, i32 2
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  store ptr %51, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 1, ptr %12, align 4, !tbaa !13
  %52 = load i32, ptr %12, align 4, !tbaa !13
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.tag_____List__Node____, ptr %53, i32 0, i32 1
  %55 = load i32, ptr %54, align 8, !tbaa !14
  %56 = icmp ult i32 %52, %55
  br i1 %56, label %60, label %57

57:                                               ; preds = %47
  %58 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  call void %59(i32 noundef -3)
  br label %60

60:                                               ; preds = %57, %47
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %61, i32 0, i32 10
  %63 = load ptr, ptr %62, align 8, !tbaa !22
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.tag_____List__Node____, ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !16
  %67 = load i32, ptr %12, align 4, !tbaa !13
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds %struct.Node__, ptr %66, i64 %68
  %70 = getelementptr inbounds { i32, ptr }, ptr %69, i32 0, i32 0
  %71 = load i32, ptr %70, align 8
  %72 = getelementptr inbounds { i32, ptr }, ptr %69, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8
  call void @Map__get__Node__NodeInfo____(ptr dead_on_unwind writable sret(%struct.tag_____NodeInfo__) align 8 %14, ptr noundef %63, i32 %71, ptr %73)
  %74 = getelementptr inbounds %struct.tag_____NodeInfo__, ptr %14, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %74, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  %75 = getelementptr inbounds %struct.tag_____Tag__, ptr %10, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !25
  %77 = getelementptr inbounds %struct.tag_____Namespace__, ptr %76, i32 0, i32 3
  %78 = load i32, ptr %77, align 4, !tbaa !26
  %79 = and i32 %78, 1
  %80 = icmp eq i32 %79, 0
  %81 = zext i1 %80 to i32
  %82 = trunc i32 %81 to i8
  store i8 %82, ptr %15, align 1, !tbaa !28
  %83 = load i8, ptr %15, align 1, !tbaa !28
  %84 = icmp ne i8 %83, 0
  br i1 %84, label %94, label %85

85:                                               ; preds = %60
  %86 = getelementptr inbounds %struct.tag_____Tag__, ptr %13, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !25
  %88 = getelementptr inbounds %struct.tag_____Namespace__, ptr %87, i32 0, i32 3
  %89 = load i32, ptr %88, align 4, !tbaa !26
  %90 = and i32 %89, 1
  %91 = icmp eq i32 %90, 0
  %92 = zext i1 %91 to i32
  %93 = trunc i32 %92 to i8
  store i8 %93, ptr %15, align 1, !tbaa !28
  br label %94

94:                                               ; preds = %85, %60
  %95 = load i8, ptr %15, align 1, !tbaa !28
  %96 = icmp ne i8 %95, 0
  br i1 %96, label %97, label %99

97:                                               ; preds = %94
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 32, i1 false)
  %98 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %0, i32 0, i32 2
  store i32 2, ptr %98, align 8, !tbaa !17
  store i32 1, ptr %9, align 4
  br label %147

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %100 = getelementptr inbounds %struct.tag_____Tag__, ptr %13, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !25
  %102 = getelementptr inbounds %struct.tag_____Namespace__, ptr %101, i32 0, i32 13
  %103 = load i32, ptr %102, align 8, !tbaa !29
  %104 = icmp ne i32 %103, 6
  br i1 %104, label %105, label %110

105:                                              ; preds = %99
  %106 = getelementptr inbounds %struct.tag_____Tag__, ptr %13, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !25
  %108 = getelementptr inbounds %struct.tag_____Namespace__, ptr %107, i32 0, i32 13
  %109 = load i32, ptr %108, align 8, !tbaa !29
  store i32 %109, ptr %16, align 4, !tbaa !13
  br label %122

110:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.tag_____GenerateContext__, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !30
  %114 = getelementptr inbounds %struct.tag_____Compilation__, ptr %113, i32 0, i32 6
  %115 = load i32, ptr %114, align 8, !tbaa !31
  %116 = and i32 %115, 2
  %117 = icmp eq i32 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %110
  store i32 8, ptr %17, align 4, !tbaa !13
  br label %120

119:                                              ; preds = %110
  store i32 4, ptr %17, align 4, !tbaa !13
  br label %120

120:                                              ; preds = %119, %118
  %121 = load i32, ptr %17, align 4, !tbaa !13
  store i32 %121, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %122

122:                                              ; preds = %120, %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %123 = load i32, ptr %16, align 4, !tbaa !13
  store i32 %123, ptr %18, align 4, !tbaa !13
  %124 = getelementptr inbounds %struct.tag_____Tag__, ptr %13, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !25
  %126 = getelementptr inbounds %struct.tag_____Namespace__, ptr %125, i32 0, i32 3
  %127 = load i32, ptr %126, align 4, !tbaa !26
  %128 = and i32 %127, 2
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %138

130:                                              ; preds = %122
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 32, i1 false)
  %131 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %0, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %131, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !21
  %132 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %8, i32 0, i32 1
  %133 = load i64, ptr %132, align 8, !tbaa !33
  %134 = load i32, ptr %18, align 4, !tbaa !13
  %135 = call i64 @Interpreter__rankToMask__(i32 noundef %134)
  %136 = and i64 %133, %135
  %137 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %0, i32 0, i32 1
  store i64 %136, ptr %137, align 8, !tbaa !33
  store i32 1, ptr %9, align 4
  br label %146

138:                                              ; preds = %122
  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
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %139, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !21
  %140 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %8, i32 0, i32 1
  %141 = load i64, ptr %140, align 8, !tbaa !33
  %142 = load i32, ptr %18, align 4, !tbaa !13
  %143 = call i64 @Interpreter__rankToMask__(i32 noundef %142)
  %144 = call i64 @Interpreter__maskAndSignExtend__(i64 noundef %141, i64 noundef %143)
  %145 = getelementptr inbounds %struct.tag_____EvalResult__, ptr %0, i32 0, i32 1
  store i64 %144, ptr %145, align 8, !tbaa !33
  store i32 1, ptr %9, align 4
  br label %146

146:                                              ; preds = %138, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %147

147:                                              ; preds = %146, %97
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %148

148:                                              ; preds = %147, %45
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local i64 @Interpreter__maskAndSignExtend__(i64 noundef, i64 noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local i64 @Interpreter__rankToMask__(i32 noundef) #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, !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, !12, i64 24}
!18 = !{!"tag_____EvalResult__", !19, i64 0, !20, i64 16, !12, i64 24}
!19 = !{!"tag_____Tag__", !6, i64 0, !6, i64 8}
!20 = !{!"long", !7, i64 0}
!21 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!22 = !{!23, !6, i64 72}
!23 = !{!"tag_____GenerateContext__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !12, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !24, i64 80, !12, i64 96, !24, i64 104, !12, i64 120, !6, i64 128, !6, i64 136, !7, i64 144}
!24 = !{!"", !6, i64 0, !12, i64 8}
!25 = !{!19, !6, i64 0}
!26 = !{!27, !12, i64 28}
!27 = !{!"tag_____Namespace__", !24, 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}
!28 = !{!7, !7, i64 0}
!29 = !{!27, !12, i64 104}
!30 = !{!23, !6, i64 0}
!31 = !{!32, !12, i64 48}
!32 = !{!"tag_____Compilation__", !6, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !12, i64 48}
!33 = !{!18, !20, 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.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 }

@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: 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 #3

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

; Function Attrs: nounwind uwtable
define dso_local void @Interpreter__evalCast__(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.tag_____EvalResult__) align 8 %0, ptr noundef %1, ptr nocapture noundef readonly %2) local_unnamed_addr #3 {
  %4 = alloca %struct.tag_____EvalResult__, align 8
  %5 = alloca %struct.tag_____NodeInfo__, align 8
  %6 = getelementptr inbounds i8, ptr %2, i64 24
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 8
  %9 = load i32, ptr %8, align 8, !tbaa !12
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %10, label %13

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) #4
  br label %13

13:                                               ; preds = %10, %3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  %14 = load ptr, ptr %7, align 8, !tbaa !15
  %15 = load i32, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr %14, i64 8
  %17 = load ptr, ptr %16, align 8
  call void @Interpreter__evalExpression__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____EvalResult__) align 8 %4, ptr noundef %1, i32 %15, ptr %17)
  %18 = getelementptr inbounds i8, ptr %4, i64 24
  %19 = load i32, ptr %18, align 8, !tbaa !16
  %.not32 = icmp eq i32 %19, 0
  br i1 %.not32, label %22, label %20

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

22:                                               ; preds = %13
  %.sroa.018.0.copyload = load ptr, ptr %4, align 8, !tbaa !14
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load i32, ptr %24, align 8, !tbaa !12
  %26 = icmp ugt i32 %25, 1
  br i1 %26, label %30, label %27

27:                                               ; preds = %22
  %28 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %29 = load ptr, ptr %28, align 8, !tbaa !14
  call void %29(i32 noundef -3) #4
  br label %30

30:                                               ; preds = %27, %22
  %31 = getelementptr inbounds i8, ptr %1, i64 72
  %32 = load ptr, ptr %31, align 8, !tbaa !20
  %33 = load ptr, ptr %23, align 8, !tbaa !15
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %35 = load i32, ptr %34, align 8
  %36 = getelementptr inbounds i8, ptr %33, i64 24
  %37 = load ptr, ptr %36, align 8
  call void @Map__get__Node__NodeInfo____(ptr dead_on_unwind nonnull writable sret(%struct.tag_____NodeInfo__) align 8 %5, ptr noundef %32, i32 %35, ptr %37)
  %.sroa.0.0.copyload = load ptr, ptr %5, align 8, !tbaa !14
  %.sroa.9.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %.sroa.9.0.copyload = load ptr, ptr %.sroa.9.0..sroa_idx, align 8, !tbaa !14
  %38 = getelementptr inbounds i8, ptr %.sroa.018.0.copyload, i64 28
  %39 = load i32, ptr %38, align 4, !tbaa !23
  %40 = and i32 %39, 1
  %.not33.not = icmp eq i32 %40, 0
  br i1 %.not33.not, label %.critedge, label %41

41:                                               ; preds = %30
  %42 = getelementptr inbounds i8, ptr %.sroa.0.0.copyload, i64 28
  %43 = load i32, ptr %42, align 4, !tbaa !23
  %44 = and i32 %43, 1
  %.not37 = icmp eq i32 %44, 0
  br i1 %.not37, label %.critedge, label %46

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

46:                                               ; preds = %41
  %47 = getelementptr inbounds i8, ptr %.sroa.0.0.copyload, i64 104
  %48 = load i32, ptr %47, align 8, !tbaa !25
  %.not35 = icmp eq i32 %48, 6
  br i1 %.not35, label %49, label %55

49:                                               ; preds = %46
  %50 = load ptr, ptr %1, align 8, !tbaa !26
  %51 = getelementptr inbounds i8, ptr %50, i64 48
  %52 = load i32, ptr %51, align 8, !tbaa !27
  %53 = and i32 %52, 2
  %54 = icmp eq i32 %53, 0
  %. = select i1 %54, i32 8, i32 4
  br label %55

55:                                               ; preds = %46, %49
  %.028 = phi i32 [ %., %49 ], [ %48, %46 ]
  %56 = and i32 %43, 2
  %.not36 = icmp eq i32 %56, 0
  %57 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 0, ptr %57, align 8
  store ptr %.sroa.0.0.copyload, ptr %0, align 8, !tbaa !14
  %.sroa.9.0..sroa_idx13 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %.sroa.9.0.copyload, ptr %.sroa.9.0..sroa_idx13, align 8, !tbaa !14
  %58 = getelementptr inbounds i8, ptr %4, i64 16
  %59 = load i64, ptr %58, align 8, !tbaa !29
  %60 = call i64 @Interpreter__rankToMask__(i32 noundef %.028)
  %61 = getelementptr inbounds i8, ptr %0, i64 16
  br i1 %.not36, label %64, label %62

62:                                               ; preds = %55
  %63 = and i64 %60, %59
  store i64 %63, ptr %61, align 8, !tbaa !29
  br label %66

64:                                               ; preds = %55
  %65 = call i64 @Interpreter__maskAndSignExtend__(i64 noundef %59, i64 noundef %60)
  store i64 %65, ptr %61, align 8, !tbaa !29
  br label %66

66:                                               ; preds = %.critedge, %64, %62, %20
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local i64 @Interpreter__maskAndSignExtend__(i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i64 @Interpreter__rankToMask__(i32 noundef) local_unnamed_addr #3

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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 24}
!17 = !{!"tag_____EvalResult__", !18, i64 0, !19, i64 16, !8, i64 24}
!18 = !{!"tag_____Tag__", !11, i64 0, !11, i64 8}
!19 = !{!"long", !9, i64 0}
!20 = !{!21, !11, i64 72}
!21 = !{!"tag_____GenerateContext__", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !8, i64 48, !8, i64 52, !11, i64 56, !11, i64 64, !11, i64 72, !22, i64 80, !8, i64 96, !22, i64 104, !8, i64 120, !11, i64 128, !11, i64 136, !9, i64 144}
!22 = !{!"", !11, i64 0, !8, i64 8}
!23 = !{!24, !8, i64 28}
!24 = !{!"tag_____Namespace__", !22, 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}
!25 = !{!24, !8, i64 104}
!26 = !{!21, !11, i64 0}
!27 = !{!28, !8, i64 48}
!28 = !{!"tag_____Compilation__", !11, i64 0, !11, i64 8, !8, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !8, i64 48}
!29 = !{!17, !19, i64 16}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass