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

; 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.jit_State = type { %struct.GCtrace, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i8, i8, %struct.IRType1, i8, %struct.FoldState, ptr, i32, i32, i32, i32, i32, i32, i32, %struct.MRef, [5 x %union.TValue], ptr, i32, i32, i32, i32, ptr, ptr, i32, i32, i8, ptr, i32, i32, ptr, [100 x i16], [255 x i32], [15 x i32], [16 x ptr], [64 x %struct.HotPenalty], i32, i32, [16 x %struct.BPropEntry], i32, %struct.ScEvEntry, ptr, i32, i32, ptr, i32, i32, ptr, ptr, ptr, i64, i64, %union.TValue, ptr, i32, i32 }
%struct.GCtrace = type { %struct.GCRef, i8, i8, i8, i8, i32, %struct.GCRef, ptr, i32, i16, i16, ptr, ptr, %struct.GCRef, %struct.MRef, i32, i32, ptr, i32, i16, i16, i16, i16, i16, i16, i16, i8, i8 }
%struct.GCRef = type { i32 }
%struct.IRType1 = type { i8 }
%struct.FoldState = type { %union.IRIns, %union.IRIns, %union.IRIns }
%union.IRIns = type { %struct.anon.0 }
%struct.anon.0 = type { i32, %struct.IRType1, i8, i8, i8 }
%struct.MRef = type { i32 }
%struct.HotPenalty = type { %struct.MRef, i16, i16 }
%struct.BPropEntry = type { i16, i16, i32 }
%struct.ScEvEntry = type { %struct.MRef, i16, i16, i16, i16, %struct.IRType1, i8 }
%union.TValue = type { i64 }
%struct.RecordFFData = type { ptr, i64, i32 }
%struct.GG_State = type { %struct.lua_State, %struct.global_State, %struct.jit_State, [64 x i16], [243 x ptr], [57 x i32] }
%struct.lua_State = type { %union.anon.4 }
%union.anon.4 = type { %struct.anon.5, [320 x i8] }
%struct.anon.5 = type { %struct.GCRef, i8, i8, i8, i8, %struct.MRef, %struct.GCRef, ptr, ptr, %struct.MRef, %struct.MRef, %struct.GCRef, %struct.GCRef, ptr, 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 }
%struct.Node = type { %union.TValue, %union.TValue, %struct.MRef, %struct.MRef }
%struct.GCupval = type { %struct.GCRef, i8, i8, i8, i8, %union.anon.6, %struct.MRef, i32 }
%union.anon.6 = type { %union.TValue }
%struct.CType = type { i32, i32, i16, i16, %struct.GCRef }
%struct.anon.1 = type { %union.anon, i32 }
%union.anon = type { %struct.GCRef }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @lj_ir_set_(ptr noundef, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext) #1

declare hidden i32 @lj_opt_fold(ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare hidden i32 @lj_ir_kgc(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: noreturn
declare hidden void @lj_trace_err(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @argv2ctype(ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
define hidden void @recff_ffi_xof(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.jit_State, ptr %8, i32 0, i32 5
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  %11 = getelementptr inbounds i32, ptr %10, i64 0
  %12 = load i32, ptr %11, align 4, !tbaa !20
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.RecordFFData, ptr %13, i32 0, i32 0
  %15 = load ptr, ptr %14, align 8, !tbaa !21
  %16 = getelementptr inbounds %union.TValue, ptr %15, i64 0
  %17 = call i32 @argv2ctype(ptr noundef %7, i32 noundef %12, ptr noundef %16)
  store i32 %17, ptr %5, align 4, !tbaa !20
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.RecordFFData, ptr %18, i32 0, i32 2
  %20 = load i32, ptr %19, align 8, !tbaa !23
  %21 = icmp eq i32 %20, 191
  br i1 %21, label %22, label %41

22:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 -800
  %25 = getelementptr inbounds %struct.GG_State, ptr %24, i32 0, i32 1
  %26 = getelementptr inbounds %struct.global_State, ptr %25, i32 0, i32 28
  %27 = getelementptr inbounds %struct.MRef, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !24
  %29 = zext i32 %28 to i64
  %30 = inttoptr i64 %29 to ptr
  %31 = load i32, ptr %5, align 4, !tbaa !20
  %32 = call ptr @lj_ctype_rawref(ptr noundef %30, i32 noundef %31)
  store ptr %32, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.CType, ptr %33, i32 0, i32 0
  %35 = load i32, ptr %34, align 4, !tbaa !33
  %36 = and i32 %35, -804257792
  %37 = icmp eq i32 %36, 269484032
  br i1 %37, label %38, label %40

38:                                               ; preds = %22
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  call void @lj_trace_err(ptr noundef %39, i32 noundef 11) #6
  unreachable

40:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %81

41:                                               ; preds = %2
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.RecordFFData, ptr %42, i32 0, i32 2
  %44 = load i32, ptr %43, align 8, !tbaa !23
  %45 = icmp eq i32 %44, 193
  br i1 %45, label %46, label %80

46:                                               ; preds = %41
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.jit_State, ptr %47, i32 0, i32 5
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = getelementptr inbounds i32, ptr %49, i64 1
  %51 = load i32, ptr %50, align 4, !tbaa !20
  %52 = and i32 %51, 520093696
  %53 = icmp eq i32 %52, 67108864
  br i1 %53, label %56, label %54

54:                                               ; preds = %46
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  call void @lj_trace_err(ptr noundef %55, i32 noundef 11) #6
  unreachable

56:                                               ; preds = %46
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.jit_State, ptr %58, i32 0, i32 5
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = getelementptr inbounds i32, ptr %60, i64 1
  %62 = load i32, ptr %61, align 4, !tbaa !20
  %63 = trunc i32 %62 to i16
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.RecordFFData, ptr %65, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !21
  %68 = getelementptr inbounds %union.TValue, ptr %67, i64 1
  %69 = getelementptr inbounds %struct.anon.1, ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds %struct.GCRef, ptr %69, i32 0, i32 0
  %71 = load i32, ptr %70, align 8, !tbaa !35
  %72 = zext i32 %71 to i64
  %73 = inttoptr i64 %72 to ptr
  %74 = call i32 @lj_ir_kgc(ptr noundef %64, ptr noundef %73, i32 noundef 4)
  %75 = trunc i32 %74 to i16
  call void @lj_ir_set_(ptr noundef %57, i16 noundef zeroext 2180, i16 noundef zeroext %63, i16 noundef zeroext %75)
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = call i32 @lj_opt_fold(ptr noundef %76)
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.RecordFFData, ptr %78, i32 0, i32 1
  store i64 3, ptr %79, align 8, !tbaa !36
  br label %80

80:                                               ; preds = %56, %41
  br label %81

81:                                               ; preds = %80, %40
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.jit_State, ptr %82, i32 0, i32 32
  store i32 5, ptr %83, align 4, !tbaa !37
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.jit_State, ptr %84, i32 0, i32 5
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = getelementptr inbounds i32, ptr %86, i64 2
  store i32 32767, ptr %87, align 4, !tbaa !20
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.jit_State, ptr %88, i32 0, i32 5
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = getelementptr inbounds i32, ptr %90, i64 1
  store i32 32767, ptr %91, align 4, !tbaa !20
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.jit_State, ptr %92, i32 0, i32 5
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = getelementptr inbounds i32, ptr %94, i64 0
  store i32 32767, ptr %95, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void
}

declare hidden ptr @lj_ctype_rawref(ptr noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline 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 = { "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 = { noreturn "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 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 }
attributes #6 = { noreturn }

!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 128}
!10 = !{!"jit_State", !11, i64 0, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !13, i64 136, !13, i64 140, !13, i64 144, !7, i64 148, !7, i64 149, !16, i64 150, !7, i64 151, !17, i64 152, !6, i64 176, !13, i64 184, !13, i64 188, !13, i64 192, !13, i64 196, !13, i64 200, !13, i64 204, !13, i64 208, !15, i64 212, !7, i64 216, !6, i64 256, !13, i64 264, !13, i64 268, !13, i64 272, !13, i64 276, !6, i64 280, !6, i64 288, !13, i64 296, !13, i64 300, !7, i64 304, !6, i64 312, !13, i64 320, !13, i64 324, !6, i64 328, !7, i64 336, !7, i64 536, !7, i64 1556, !7, i64 1616, !7, i64 1744, !13, i64 2256, !13, i64 2260, !7, i64 2264, !13, i64 2392, !18, i64 2396, !6, i64 2416, !13, i64 2424, !13, i64 2428, !6, i64 2432, !13, i64 2440, !13, i64 2444, !6, i64 2448, !6, i64 2456, !6, i64 2464, !19, i64 2472, !19, i64 2480, !7, i64 2488, !6, i64 2496, !13, i64 2504, !13, i64 2508}
!11 = !{!"GCtrace", !12, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !13, i64 8, !12, i64 12, !6, i64 16, !13, i64 24, !14, i64 28, !14, i64 30, !6, i64 32, !6, i64 40, !12, i64 48, !15, i64 52, !13, i64 56, !13, i64 60, !6, i64 64, !13, i64 72, !14, i64 76, !14, i64 78, !14, i64 80, !14, i64 82, !14, i64 84, !14, i64 86, !14, i64 88, !7, i64 90, !7, i64 91}
!12 = !{!"GCRef", !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!"MRef", !13, i64 0}
!16 = !{!"IRType1", !7, i64 0}
!17 = !{!"FoldState", !7, i64 0, !7, i64 8, !7, i64 16}
!18 = !{!"ScEvEntry", !15, i64 0, !14, i64 4, !14, i64 6, !14, i64 8, !14, i64 10, !16, i64 12, !7, i64 13}
!19 = !{!"long", !7, i64 0}
!20 = !{!13, !13, i64 0}
!21 = !{!22, !6, i64 0}
!22 = !{!"RecordFFData", !6, i64 0, !19, i64 8, !13, i64 16}
!23 = !{!22, !13, i64 16}
!24 = !{!25, !13, i64 640}
!25 = !{!"GG_State", !26, i64 0, !27, i64 384, !10, i64 800, !7, i64 3312, !7, i64 3440, !7, i64 5384}
!26 = !{!"lua_State", !7, i64 0}
!27 = !{!"global_State", !6, i64 0, !13, i64 8, !13, i64 12, !6, i64 16, !6, i64 24, !28, i64 32, !13, i64 88, !29, i64 92, !30, i64 108, !7, i64 124, !7, i64 125, !7, i64 126, !7, i64 127, !12, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !31, i64 160, !32, i64 184, !13, i64 208, !13, i64 212, !6, i64 216, !6, i64 224, !6, i64 232, !13, i64 240, !13, i64 244, !12, i64 248, !15, i64 252, !15, i64 256, !7, i64 260}
!28 = !{!"GCState", !13, i64 0, !13, i64 4, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !13, i64 12, !12, i64 16, !15, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52}
!29 = !{!"SBuf", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!30 = !{!"GCstr", !12, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !13, i64 8, !13, i64 12}
!31 = !{!"Node", !7, i64 0, !7, i64 8, !15, i64 16, !15, i64 20}
!32 = !{!"GCupval", !12, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !15, i64 16, !13, i64 20}
!33 = !{!34, !13, i64 0}
!34 = !{!"CType", !13, i64 0, !13, i64 4, !14, i64 8, !14, i64 10, !12, i64 12}
!35 = !{!7, !7, i64 0}
!36 = !{!22, !19, i64 8}
!37 = !{!10, !13, i64 300}


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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @lj_ir_set_(ptr noundef, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #0

declare hidden i32 @lj_opt_fold(ptr noundef) local_unnamed_addr #1

declare hidden i32 @lj_ir_kgc(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: noreturn
declare hidden void @lj_trace_err(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @argv2ctype(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define hidden void @recff_ffi_xof(ptr noundef %0, ptr nocapture noundef %1) local_unnamed_addr #3 {
  %3 = getelementptr inbounds i8, ptr %0, i64 128
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = load i32, ptr %4, align 4, !tbaa !19
  %6 = load ptr, ptr %1, align 8, !tbaa !20
  %7 = tail call i32 @argv2ctype(ptr noundef %0, i32 noundef %5, ptr noundef %6)
  %8 = getelementptr inbounds i8, ptr %1, i64 16
  %9 = load i32, ptr %8, align 8, !tbaa !22
  switch i32 %9, label %38 [
    i32 191, label %10
    i32 193, label %20
  ]

10:                                               ; preds = %2
  %11 = getelementptr inbounds i8, ptr %0, i64 -160
  %12 = load i32, ptr %11, align 8, !tbaa !23
  %13 = zext i32 %12 to i64
  %14 = inttoptr i64 %13 to ptr
  %15 = tail call ptr @lj_ctype_rawref(ptr noundef %14, i32 noundef %7) #4
  %16 = load i32, ptr %15, align 4, !tbaa !32
  %17 = and i32 %16, -804257792
  %18 = icmp eq i32 %17, 269484032
  br i1 %18, label %19, label %38

19:                                               ; preds = %10
  tail call void @lj_trace_err(ptr noundef nonnull %0, i32 noundef 11) #5
  unreachable

20:                                               ; preds = %2
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 4
  %23 = load i32, ptr %22, align 4, !tbaa !19
  %24 = and i32 %23, 520093696
  %25 = icmp eq i32 %24, 67108864
  br i1 %25, label %27, label %26

26:                                               ; preds = %20
  tail call void @lj_trace_err(ptr noundef nonnull %0, i32 noundef 11) #5
  unreachable

27:                                               ; preds = %20
  %28 = trunc i32 %23 to i16
  %29 = load ptr, ptr %1, align 8, !tbaa !20
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = load i32, ptr %30, align 8, !tbaa !34
  %32 = zext i32 %31 to i64
  %33 = inttoptr i64 %32 to ptr
  %34 = tail call i32 @lj_ir_kgc(ptr noundef nonnull %0, ptr noundef %33, i32 noundef 4) #4
  %35 = trunc i32 %34 to i16
  tail call void @lj_ir_set_(ptr noundef nonnull %0, i16 noundef zeroext 2180, i16 noundef zeroext %28, i16 noundef zeroext %35)
  %36 = tail call i32 @lj_opt_fold(ptr noundef nonnull %0) #4
  %37 = getelementptr inbounds i8, ptr %1, i64 8
  store i64 3, ptr %37, align 8, !tbaa !35
  br label %38

38:                                               ; preds = %2, %10, %27
  %39 = getelementptr inbounds i8, ptr %0, i64 300
  store i32 5, ptr %39, align 4, !tbaa !36
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  store i32 32767, ptr %41, align 4, !tbaa !19
  %42 = getelementptr inbounds i8, ptr %40, i64 4
  store i32 32767, ptr %42, align 4, !tbaa !19
  store i32 32767, ptr %40, align 4, !tbaa !19
  ret void
}

declare hidden ptr @lj_ctype_rawref(ptr noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { alwaysinline 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 = { noreturn "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 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 }
attributes #5 = { noreturn 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, !12, i64 128}
!6 = !{!"jit_State", !7, i64 0, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !9, i64 136, !9, i64 140, !9, i64 144, !10, i64 148, !10, i64 149, !15, i64 150, !10, i64 151, !16, i64 152, !12, i64 176, !9, i64 184, !9, i64 188, !9, i64 192, !9, i64 196, !9, i64 200, !9, i64 204, !9, i64 208, !14, i64 212, !10, i64 216, !12, i64 256, !9, i64 264, !9, i64 268, !9, i64 272, !9, i64 276, !12, i64 280, !12, i64 288, !9, i64 296, !9, i64 300, !10, i64 304, !12, i64 312, !9, i64 320, !9, i64 324, !12, i64 328, !10, i64 336, !10, i64 536, !10, i64 1556, !10, i64 1616, !10, i64 1744, !9, i64 2256, !9, i64 2260, !10, i64 2264, !9, i64 2392, !17, i64 2396, !12, i64 2416, !9, i64 2424, !9, i64 2428, !12, i64 2432, !9, i64 2440, !9, i64 2444, !12, i64 2448, !12, i64 2456, !12, i64 2464, !18, i64 2472, !18, i64 2480, !10, i64 2488, !12, i64 2496, !9, i64 2504, !9, i64 2508}
!7 = !{!"GCtrace", !8, i64 0, !10, i64 4, !10, i64 5, !10, i64 6, !10, i64 7, !9, i64 8, !8, i64 12, !12, i64 16, !9, i64 24, !13, i64 28, !13, i64 30, !12, i64 32, !12, i64 40, !8, i64 48, !14, i64 52, !9, i64 56, !9, i64 60, !12, i64 64, !9, i64 72, !13, i64 76, !13, i64 78, !13, i64 80, !13, i64 82, !13, i64 84, !13, i64 86, !13, i64 88, !10, i64 90, !10, i64 91}
!8 = !{!"GCRef", !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!"short", !10, i64 0}
!14 = !{!"MRef", !9, i64 0}
!15 = !{!"IRType1", !10, i64 0}
!16 = !{!"FoldState", !10, i64 0, !10, i64 8, !10, i64 16}
!17 = !{!"ScEvEntry", !14, i64 0, !13, i64 4, !13, i64 6, !13, i64 8, !13, i64 10, !15, i64 12, !10, i64 13}
!18 = !{!"long", !10, i64 0}
!19 = !{!9, !9, i64 0}
!20 = !{!21, !12, i64 0}
!21 = !{!"RecordFFData", !12, i64 0, !18, i64 8, !9, i64 16}
!22 = !{!21, !9, i64 16}
!23 = !{!24, !9, i64 640}
!24 = !{!"GG_State", !25, i64 0, !26, i64 384, !6, i64 800, !10, i64 3312, !10, i64 3440, !10, i64 5384}
!25 = !{!"lua_State", !10, i64 0}
!26 = !{!"global_State", !12, i64 0, !9, i64 8, !9, i64 12, !12, i64 16, !12, i64 24, !27, i64 32, !9, i64 88, !28, i64 92, !29, i64 108, !10, i64 124, !10, i64 125, !10, i64 126, !10, i64 127, !8, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !30, i64 160, !31, i64 184, !9, i64 208, !9, i64 212, !12, i64 216, !12, i64 224, !12, i64 232, !9, i64 240, !9, i64 244, !8, i64 248, !14, i64 252, !14, i64 256, !10, i64 260}
!27 = !{!"GCState", !9, i64 0, !9, i64 4, !10, i64 8, !10, i64 9, !10, i64 10, !10, i64 11, !9, i64 12, !8, i64 16, !14, i64 20, !8, i64 24, !8, i64 28, !8, i64 32, !8, i64 36, !9, i64 40, !9, i64 44, !9, i64 48, !9, i64 52}
!28 = !{!"SBuf", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!29 = !{!"GCstr", !8, i64 0, !10, i64 4, !10, i64 5, !10, i64 6, !10, i64 7, !9, i64 8, !9, i64 12}
!30 = !{!"Node", !10, i64 0, !10, i64 8, !14, i64 16, !14, i64 20}
!31 = !{!"GCupval", !8, i64 0, !10, i64 4, !10, i64 5, !10, i64 6, !10, i64 7, !10, i64 8, !14, i64 16, !9, i64 20}
!32 = !{!33, !9, i64 0}
!33 = !{!"CType", !9, i64 0, !9, i64 4, !13, i64 8, !13, i64 10, !8, i64 12}
!34 = !{!10, !10, i64 0}
!35 = !{!21, !18, i64 8}
!36 = !{!6, !9, i64 300}


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