; LLVM IR from paintdream/DontStarveLuaJIT :: src/luajit/src (lj_func)

; 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.lua_State = type { %union.anon }
%union.anon = type { %struct.anon, [320 x i8] }
%struct.anon = type { %struct.GCRef, i8, i8, i8, i8, %struct.MRef, %struct.GCRef, ptr, ptr, %struct.MRef, %struct.MRef, %struct.GCRef, %struct.GCRef, ptr, i32 }
%struct.MRef = type { i32 }
%struct.GCRef = type { i32 }
%struct.global_State = type { ptr, i32, i32, ptr, ptr, %struct.GCState, i32, %struct.SBuf, %struct.GCstr, i8, i8, i8, i8, %struct.GCRef, %union.TValue, %union.TValue, %union.TValue, %struct.Node, %struct.GCupval, i32, i32, ptr, ptr, ptr, i32, i32, %struct.GCRef, %struct.MRef, %struct.MRef, [38 x %struct.GCRef] }
%struct.GCState = type { i32, i32, i8, i8, i8, i8, i32, %struct.GCRef, %struct.MRef, %struct.GCRef, %struct.GCRef, %struct.GCRef, %struct.GCRef, i32, i32, i32, i32 }
%struct.SBuf = type { %struct.MRef, %struct.MRef, %struct.MRef, %struct.MRef }
%struct.GCstr = type { %struct.GCRef, i8, i8, i8, i8, i32, i32 }
%union.TValue = type { i64 }
%struct.Node = type { %union.TValue, %union.TValue, %struct.MRef, %struct.MRef }
%struct.GCupval = type { %struct.GCRef, i8, i8, i8, i8, %union.anon.0, %struct.MRef, i32 }
%union.anon.0 = type { %union.TValue }
%struct.GCfuncL = type { %struct.GCRef, i8, i8, i8, i8, %struct.GCRef, %struct.GCRef, %struct.MRef, [1 x %struct.GCRef] }
%struct.GCproto = type { %struct.GCRef, i8, i8, i8, i8, i32, %struct.GCRef, %struct.MRef, %struct.MRef, i32, i32, i32, i8, i8, i16, %struct.GCRef, i32, i32, %struct.MRef, %struct.MRef, %struct.MRef }

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @func_newL(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define hidden ptr @lj_func_newL_gc(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.lua_State, ptr %14, i32 0, i32 0
  %16 = getelementptr inbounds %struct.anon, ptr %15, i32 0, i32 5
  %17 = getelementptr inbounds %struct.MRef, ptr %16, i32 0, i32 0
  %18 = load i32, ptr %17, align 8, !tbaa !9
  %19 = zext i32 %18 to i64
  %20 = inttoptr i64 %19 to ptr
  %21 = getelementptr inbounds %struct.global_State, ptr %20, i32 0, i32 5
  %22 = getelementptr inbounds %struct.GCState, ptr %21, i32 0, i32 0
  %23 = load i32, ptr %22, align 8, !tbaa !10
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.lua_State, ptr %24, i32 0, i32 0
  %26 = getelementptr inbounds %struct.anon, ptr %25, i32 0, i32 5
  %27 = getelementptr inbounds %struct.MRef, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !9
  %29 = zext i32 %28 to i64
  %30 = inttoptr i64 %29 to ptr
  %31 = getelementptr inbounds %struct.global_State, ptr %30, i32 0, i32 5
  %32 = getelementptr inbounds %struct.GCState, ptr %31, i32 0, i32 1
  %33 = load i32, ptr %32, align 4, !tbaa !20
  %34 = icmp uge i32 %23, %33
  %35 = xor i1 %34, true
  %36 = xor i1 %35, true
  %37 = zext i1 %36 to i32
  %38 = sext i32 %37 to i64
  %39 = call i64 @llvm.expect.i64(i64 %38, i64 0)
  %40 = icmp ne i64 %39, 0
  br i1 %40, label %41, label %43

41:                                               ; preds = %3
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  call void @lj_gc_step_fixtop(ptr noundef %42)
  br label %43

43:                                               ; preds = %41, %3
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.GCfuncL, ptr %46, i32 0, i32 5
  %48 = getelementptr inbounds %struct.GCRef, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 4, !tbaa !21
  %50 = zext i32 %49 to i64
  %51 = inttoptr i64 %50 to ptr
  %52 = call ptr @func_newL(ptr noundef %44, ptr noundef %45, ptr noundef %51)
  store ptr %52, ptr %7, align 8, !tbaa !5
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.GCfuncL, ptr %53, i32 0, i32 8
  %55 = getelementptr inbounds [1 x %struct.GCRef], ptr %54, i64 0, i64 0
  store ptr %55, ptr %8, align 8, !tbaa !5
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.GCproto, ptr %56, i32 0, i32 12
  %58 = load i8, ptr %57, align 4, !tbaa !23
  %59 = zext i8 %58 to i32
  store i32 %59, ptr %10, align 4, !tbaa !26
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.lua_State, ptr %60, i32 0, i32 0
  %62 = getelementptr inbounds %struct.anon, ptr %61, i32 0, i32 7
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  store ptr %63, ptr %11, align 8, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !26
  br label %64

64:                                               ; preds = %129, %43
  %65 = load i32, ptr %9, align 4, !tbaa !26
  %66 = load i32, ptr %10, align 4, !tbaa !26
  %67 = icmp ult i32 %65, %66
  br i1 %67, label %68, label %132

68:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.GCproto, ptr %69, i32 0, i32 8
  %71 = getelementptr inbounds %struct.MRef, ptr %70, i32 0, i32 0
  %72 = load i32, ptr %71, align 4, !tbaa !27
  %73 = zext i32 %72 to i64
  %74 = inttoptr i64 %73 to ptr
  %75 = load i32, ptr %9, align 4, !tbaa !26
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds i16, ptr %74, i64 %76
  %78 = load i16, ptr %77, align 2, !tbaa !28
  %79 = zext i16 %78 to i32
  store i32 %79, ptr %12, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %80 = load i32, ptr %12, align 4, !tbaa !26
  %81 = and i32 %80, 32768
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %110

83:                                               ; preds = %68
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = load i32, ptr %12, align 4, !tbaa !26
  %87 = and i32 %86, 255
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds %union.TValue, ptr %85, i64 %88
  %90 = call ptr @func_finduv(ptr noundef %84, ptr noundef %89)
  store ptr %90, ptr %13, align 8, !tbaa !5
  %91 = load i32, ptr %12, align 4, !tbaa !26
  %92 = udiv i32 %91, 16384
  %93 = and i32 %92, 1
  %94 = trunc i32 %93 to i8
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.GCupval, ptr %95, i32 0, i32 4
  store i8 %94, ptr %96, align 1, !tbaa !29
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.GCfuncL, ptr %97, i32 0, i32 7
  %99 = getelementptr inbounds %struct.MRef, ptr %98, i32 0, i32 0
  %100 = load i32, ptr %99, align 4, !tbaa !30
  %101 = zext i32 %100 to i64
  %102 = inttoptr i64 %101 to ptr
  %103 = ptrtoint ptr %102 to i64
  %104 = trunc i64 %103 to i32
  %105 = load i32, ptr %12, align 4, !tbaa !26
  %106 = shl i32 %105, 24
  %107 = xor i32 %104, %106
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.GCupval, ptr %108, i32 0, i32 7
  store i32 %107, ptr %109, align 4, !tbaa !31
  br label %119

110:                                              ; preds = %68
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load i32, ptr %12, align 4, !tbaa !26
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds %struct.GCRef, ptr %111, i64 %113
  %115 = getelementptr inbounds %struct.GCRef, ptr %114, i32 0, i32 0
  %116 = load i32, ptr %115, align 4, !tbaa !32
  %117 = zext i32 %116 to i64
  %118 = inttoptr i64 %117 to ptr
  store ptr %118, ptr %13, align 8, !tbaa !5
  br label %119

119:                                              ; preds = %110, %83
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = ptrtoint ptr %120 to i64
  %122 = trunc i64 %121 to i32
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.GCfuncL, ptr %123, i32 0, i32 8
  %125 = load i32, ptr %9, align 4, !tbaa !26
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds [1 x %struct.GCRef], ptr %124, i64 0, i64 %126
  %128 = getelementptr inbounds %struct.GCRef, ptr %127, i32 0, i32 0
  store i32 %122, ptr %128, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %129

129:                                              ; preds = %119
  %130 = load i32, ptr %9, align 4, !tbaa !26
  %131 = add i32 %130, 1
  store i32 %131, ptr %9, align 4, !tbaa !26
  br label %64, !llvm.loop !33

132:                                              ; preds = %64
  %133 = load i32, ptr %10, align 4, !tbaa !26
  %134 = trunc i32 %133 to i8
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.GCfuncL, ptr %135, i32 0, i32 4
  store i8 %134, ptr %136, align 1, !tbaa !9
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret ptr %137
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #2

declare hidden void @lj_gc_step_fixtop(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden ptr @func_finduv(ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #3 = { "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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 32}
!11 = !{!"global_State", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16, !6, i64 24, !13, i64 32, !12, i64 88, !16, i64 92, !17, i64 108, !7, i64 124, !7, i64 125, !7, i64 126, !7, i64 127, !14, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !18, i64 160, !19, i64 184, !12, i64 208, !12, i64 212, !6, i64 216, !6, i64 224, !6, i64 232, !12, i64 240, !12, i64 244, !14, i64 248, !15, i64 252, !15, i64 256, !7, i64 260}
!12 = !{!"int", !7, i64 0}
!13 = !{!"GCState", !12, i64 0, !12, i64 4, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !12, i64 12, !14, i64 16, !15, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52}
!14 = !{!"GCRef", !12, i64 0}
!15 = !{!"MRef", !12, i64 0}
!16 = !{!"SBuf", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!17 = !{!"GCstr", !14, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !12, i64 8, !12, i64 12}
!18 = !{!"Node", !7, i64 0, !7, i64 8, !15, i64 16, !15, i64 20}
!19 = !{!"GCupval", !14, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !15, i64 16, !12, i64 20}
!20 = !{!11, !12, i64 36}
!21 = !{!22, !12, i64 8}
!22 = !{!"GCfuncL", !14, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !14, i64 8, !14, i64 12, !15, i64 16, !7, i64 20}
!23 = !{!24, !7, i64 36}
!24 = !{!"GCproto", !14, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !12, i64 8, !14, i64 12, !15, i64 16, !15, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !7, i64 36, !7, i64 37, !25, i64 38, !14, i64 40, !12, i64 44, !12, i64 48, !15, i64 52, !15, i64 56, !15, i64 60}
!25 = !{!"short", !7, i64 0}
!26 = !{!12, !12, i64 0}
!27 = !{!24, !12, i64 20}
!28 = !{!25, !25, i64 0}
!29 = !{!19, !7, i64 7}
!30 = !{!22, !12, i64 16}
!31 = !{!19, !12, i64 20}
!32 = !{!14, !12, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


; 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"

%union.TValue = type { i64 }
%struct.GCRef = type { i32 }

; Function Attrs: nounwind uwtable
declare hidden ptr @func_newL(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define hidden ptr @lj_func_newL_gc(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = zext i32 %5 to i64
  %7 = inttoptr i64 %6 to ptr
  %8 = getelementptr inbounds i8, ptr %7, i64 32
  %9 = load i32, ptr %8, align 8, !tbaa !8
  %10 = getelementptr inbounds i8, ptr %7, i64 36
  %11 = load i32, ptr %10, align 4, !tbaa !19
  %.not = icmp ult i32 %9, %11
  br i1 %.not, label %13, label %12, !prof !20

12:                                               ; preds = %3
  tail call void @lj_gc_step_fixtop(ptr noundef nonnull %0) #2
  br label %13

13:                                               ; preds = %12, %3
  %14 = getelementptr inbounds i8, ptr %2, i64 8
  %15 = load i32, ptr %14, align 4, !tbaa !21
  %16 = zext i32 %15 to i64
  %17 = inttoptr i64 %16 to ptr
  %18 = tail call ptr @func_newL(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %17)
  %19 = getelementptr inbounds i8, ptr %2, i64 20
  %20 = getelementptr inbounds i8, ptr %1, i64 36
  %21 = load i8, ptr %20, align 4, !tbaa !23
  %22 = getelementptr inbounds i8, ptr %0, i64 16
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %.not33 = icmp eq i8 %21, 0
  br i1 %.not33, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %13
  %24 = getelementptr inbounds i8, ptr %1, i64 20
  %25 = getelementptr inbounds i8, ptr %2, i64 16
  %26 = getelementptr inbounds i8, ptr %18, i64 20
  %wide.trip.count = zext i8 %21 to i64
  br label %27

27:                                               ; preds = %.lr.ph, %53
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %53 ]
  %28 = load i32, ptr %24, align 4, !tbaa !26
  %29 = zext i32 %28 to i64
  %30 = inttoptr i64 %29 to ptr
  %31 = getelementptr inbounds i16, ptr %30, i64 %indvars.iv
  %32 = load i16, ptr %31, align 2, !tbaa !27
  %.not31 = icmp sgt i16 %32, -1
  br i1 %.not31, label %47, label %33

33:                                               ; preds = %27
  %34 = zext i16 %32 to i32
  %35 = and i32 %34, 255
  %36 = zext nneg i32 %35 to i64
  %37 = getelementptr inbounds %union.TValue, ptr %23, i64 %36
  %38 = tail call ptr @func_finduv(ptr noundef %0, ptr noundef %37)
  %39 = lshr i16 %32, 14
  %40 = trunc nuw nsw i16 %39 to i8
  %41 = and i8 %40, 1
  %42 = getelementptr inbounds i8, ptr %38, i64 7
  store i8 %41, ptr %42, align 1, !tbaa !28
  %43 = load i32, ptr %25, align 4, !tbaa !29
  %44 = shl i32 %34, 24
  %45 = xor i32 %43, %44
  %46 = getelementptr inbounds i8, ptr %38, i64 20
  store i32 %45, ptr %46, align 4, !tbaa !30
  br label %53

47:                                               ; preds = %27
  %48 = zext nneg i16 %32 to i64
  %49 = getelementptr inbounds %struct.GCRef, ptr %19, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !31
  %51 = zext i32 %50 to i64
  %52 = inttoptr i64 %51 to ptr
  br label %53

53:                                               ; preds = %47, %33
  %.0 = phi ptr [ %38, %33 ], [ %52, %47 ]
  %54 = ptrtoint ptr %.0 to i64
  %55 = trunc i64 %54 to i32
  %56 = getelementptr inbounds [1 x %struct.GCRef], ptr %26, i64 0, i64 %indvars.iv
  store i32 %55, ptr %56, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %27, !llvm.loop !32

._crit_edge:                                      ; preds = %53, %13
  %57 = getelementptr inbounds i8, ptr %18, i64 7
  store i8 %21, ptr %57, align 1, !tbaa !5
  ret ptr %18
}

declare hidden void @lj_gc_step_fixtop(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden ptr @func_finduv(ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { 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 #1 = { "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 #2 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !11, i64 32}
!9 = !{!"global_State", !10, i64 0, !11, i64 8, !11, i64 12, !10, i64 16, !10, i64 24, !12, i64 32, !11, i64 88, !15, i64 92, !16, i64 108, !6, i64 124, !6, i64 125, !6, i64 126, !6, i64 127, !13, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !17, i64 160, !18, i64 184, !11, i64 208, !11, i64 212, !10, i64 216, !10, i64 224, !10, i64 232, !11, i64 240, !11, i64 244, !13, i64 248, !14, i64 252, !14, i64 256, !6, i64 260}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!"int", !6, i64 0}
!12 = !{!"GCState", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 9, !6, i64 10, !6, i64 11, !11, i64 12, !13, i64 16, !14, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52}
!13 = !{!"GCRef", !11, i64 0}
!14 = !{!"MRef", !11, i64 0}
!15 = !{!"SBuf", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!16 = !{!"GCstr", !13, i64 0, !6, i64 4, !6, i64 5, !6, i64 6, !6, i64 7, !11, i64 8, !11, i64 12}
!17 = !{!"Node", !6, i64 0, !6, i64 8, !14, i64 16, !14, i64 20}
!18 = !{!"GCupval", !13, i64 0, !6, i64 4, !6, i64 5, !6, i64 6, !6, i64 7, !6, i64 8, !14, i64 16, !11, i64 20}
!19 = !{!9, !11, i64 36}
!20 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!21 = !{!22, !11, i64 8}
!22 = !{!"GCfuncL", !13, i64 0, !6, i64 4, !6, i64 5, !6, i64 6, !6, i64 7, !13, i64 8, !13, i64 12, !14, i64 16, !6, i64 20}
!23 = !{!24, !6, i64 36}
!24 = !{!"GCproto", !13, i64 0, !6, i64 4, !6, i64 5, !6, i64 6, !6, i64 7, !11, i64 8, !13, i64 12, !14, i64 16, !14, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !6, i64 36, !6, i64 37, !25, i64 38, !13, i64 40, !11, i64 44, !11, i64 48, !14, i64 52, !14, i64 56, !14, i64 60}
!25 = !{!"short", !6, i64 0}
!26 = !{!24, !11, i64 20}
!27 = !{!25, !25, i64 0}
!28 = !{!18, !6, i64 7}
!29 = !{!22, !11, i64 16}
!30 = !{!18, !11, i64 20}
!31 = !{!13, !11, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass