; LLVM IR from paintdream/DontStarveLuaJIT :: src/lua51/src (lvm)

; 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_TValue = type { %union.Value, i32 }
%union.Value = type { ptr }
%struct.Table = type { ptr, i8, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.lua_State = type { ptr, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i16, i16, i8, i8, i32, i32, ptr, %struct.lua_TValue, %struct.lua_TValue, ptr, ptr, ptr, i64, [8 x i8] }
%struct.global_State = type { %struct.stringtable, ptr, ptr, i8, i8, i32, ptr, ptr, ptr, ptr, ptr, ptr, %struct.Mbuffer, i64, i64, i64, i64, i32, i32, ptr, %struct.lua_TValue, ptr, %struct.UpVal, [9 x ptr], [17 x ptr] }
%struct.stringtable = type { ptr, i32, i32 }
%struct.Mbuffer = type { ptr, i64, i64 }
%struct.UpVal = type { ptr, i8, i8, ptr, %union.anon }
%union.anon = type { %struct.lua_TValue }
%struct.GCheader = type { ptr, i8, i8 }

@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1

; 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

declare hidden ptr @luaT_gettm(ptr noundef, i32 noundef, ptr noundef) #1

; 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) #2

declare hidden ptr @luaT_gettmbyobj(ptr noundef, ptr noundef, i32 noundef) #1

declare hidden void @luaG_typeerror(ptr noundef, ptr noundef, ptr noundef) #1

declare hidden void @luaG_runerror(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define hidden void @luaV_settable(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #3 {
  %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 ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %16

16:                                               ; preds = %135, %4
  %17 = load i32, ptr %9, align 4, !tbaa !9
  %18 = icmp slt i32 %17, 100
  br i1 %18, label %19, label %138

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.lua_TValue, ptr %20, i32 0, i32 1
  %22 = load i32, ptr %21, align 8, !tbaa !11
  %23 = icmp eq i32 %22, 5
  br i1 %23, label %24, label %108

24:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.lua_TValue, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !13
  store ptr %27, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call ptr @luaH_set(ptr noundef %28, ptr noundef %29, ptr noundef %30)
  store ptr %31, ptr %12, align 8, !tbaa !5
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.lua_TValue, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 8, !tbaa !11
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %68

36:                                               ; preds = %24
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.Table, ptr %37, i32 0, i32 5
  %39 = load ptr, ptr %38, align 8, !tbaa !14
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %42

41:                                               ; preds = %36
  br label %65

42:                                               ; preds = %36
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.Table, ptr %43, i32 0, i32 5
  %45 = load ptr, ptr %44, align 8, !tbaa !14
  %46 = getelementptr inbounds %struct.Table, ptr %45, i32 0, i32 3
  %47 = load i8, ptr %46, align 2, !tbaa !16
  %48 = zext i8 %47 to i32
  %49 = and i32 %48, 2
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %42
  br label %63

52:                                               ; preds = %42
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.Table, ptr %53, i32 0, i32 5
  %55 = load ptr, ptr %54, align 8, !tbaa !14
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.lua_State, ptr %56, i32 0, i32 6
  %58 = load ptr, ptr %57, align 8, !tbaa !17
  %59 = getelementptr inbounds %struct.global_State, ptr %58, i32 0, i32 24
  %60 = getelementptr inbounds [17 x ptr], ptr %59, i64 0, i64 1
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = call ptr @luaT_gettm(ptr noundef %55, i32 noundef 1, ptr noundef %61)
  br label %63

63:                                               ; preds = %52, %51
  %64 = phi ptr [ null, %51 ], [ %62, %52 ]
  br label %65

65:                                               ; preds = %63, %41
  %66 = phi ptr [ null, %41 ], [ %64, %63 ]
  store ptr %66, ptr %10, align 8, !tbaa !5
  %67 = icmp eq ptr %66, null
  br i1 %67, label %68, label %104

68:                                               ; preds = %65, %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %69, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %70, ptr %14, align 8, !tbaa !5
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.lua_TValue, ptr %71, i32 0, i32 0
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.lua_TValue, ptr %73, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %72, ptr align 8 %74, i64 8, i1 false), !tbaa.struct !21
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.lua_TValue, ptr %75, i32 0, i32 1
  %77 = load i32, ptr %76, align 8, !tbaa !11
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.lua_TValue, ptr %78, i32 0, i32 1
  store i32 %77, ptr %79, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.lua_TValue, ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 8, !tbaa !11
  %83 = icmp sge i32 %82, 4
  br i1 %83, label %84, label %103

84:                                               ; preds = %68
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.lua_TValue, ptr %85, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  %88 = getelementptr inbounds %struct.GCheader, ptr %87, i32 0, i32 2
  %89 = load i8, ptr %88, align 1, !tbaa !13
  %90 = zext i8 %89 to i32
  %91 = and i32 %90, 3
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %103

93:                                               ; preds = %84
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.GCheader, ptr %94, i32 0, i32 2
  %96 = load i8, ptr %95, align 1, !tbaa !13
  %97 = zext i8 %96 to i32
  %98 = and i32 %97, 4
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %103

100:                                              ; preds = %93
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  call void @luaC_barrierback(ptr noundef %101, ptr noundef %102)
  br label %103

103:                                              ; preds = %100, %93, %84, %68
  store i32 1, ptr %15, align 4
  br label %105

104:                                              ; preds = %65
  store i32 0, ptr %15, align 4
  br label %105

105:                                              ; preds = %104, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %106 = load i32, ptr %15, align 4
  switch i32 %106, label %132 [
    i32 0, label %107
  ]

107:                                              ; preds = %105
  br label %119

108:                                              ; preds = %19
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = call ptr @luaT_gettmbyobj(ptr noundef %109, ptr noundef %110, i32 noundef 1)
  store ptr %111, ptr %10, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.lua_TValue, ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 8, !tbaa !11
  %114 = icmp eq i32 %113, 0
  br i1 %114, label %115, label %118

115:                                              ; preds = %108
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  call void @luaG_typeerror(ptr noundef %116, ptr noundef %117, ptr noundef @.str.1)
  br label %118

118:                                              ; preds = %115, %108
  br label %119

119:                                              ; preds = %118, %107
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.lua_TValue, ptr %120, i32 0, i32 1
  %122 = load i32, ptr %121, align 8, !tbaa !11
  %123 = icmp eq i32 %122, 6
  br i1 %123, label %124, label %130

124:                                              ; preds = %119
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  call void @callTM(ptr noundef %125, ptr noundef %126, ptr noundef %127, ptr noundef %128, ptr noundef %129)
  store i32 1, ptr %15, align 4
  br label %132

130:                                              ; preds = %119
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %131, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %15, align 4
  br label %132

132:                                              ; preds = %130, %124, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %133 = load i32, ptr %15, align 4
  switch i32 %133, label %140 [
    i32 0, label %134
  ]

134:                                              ; preds = %132
  br label %135

135:                                              ; preds = %134
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %9, align 4, !tbaa !9
  br label %16, !llvm.loop !22

138:                                              ; preds = %16
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, ...) @luaG_runerror(ptr noundef %139, ptr noundef @.str.3)
  store i32 0, ptr %15, align 4
  br label %140

140:                                              ; preds = %138, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %141 = load i32, ptr %15, align 4
  switch i32 %141, label %143 [
    i32 0, label %142
    i32 1, label %142
  ]

142:                                              ; preds = %140, %140
  ret void

143:                                              ; preds = %140
  unreachable
}

declare hidden ptr @luaH_set(ptr noundef, ptr noundef, ptr noundef) #1

declare hidden void @luaC_barrierback(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @callTM(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"lua_TValue", !7, i64 0, !10, i64 8}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 16}
!15 = !{!"Table", !6, i64 0, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !10, i64 56}
!16 = !{!15, !7, i64 10}
!17 = !{!18, !6, i64 32}
!18 = !{!"lua_State", !6, i64 0, !7, i64 8, !7, i64 9, !7, i64 10, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !19, i64 96, !19, i64 98, !7, i64 100, !7, i64 101, !10, i64 104, !10, i64 108, !6, i64 112, !12, i64 120, !12, i64 136, !6, i64 152, !6, i64 160, !6, i64 168, !20, i64 176, !7, i64 184}
!19 = !{!"short", !7, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{i64 0, i64 8, !13}
!22 = distinct !{!22, !23}
!23 = !{!"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"

@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1

declare hidden ptr @luaT_gettm(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare hidden ptr @luaT_gettmbyobj(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare hidden void @luaG_typeerror(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare hidden void @luaG_runerror(ptr noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define hidden void @luaV_settable(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  %.phi.trans.insert = getelementptr inbounds i8, ptr %1, i64 8
  %.pre = load i32, ptr %.phi.trans.insert, align 8, !tbaa !5
  br label %8

6:                                                ; preds = %52
  %7 = add nuw nsw i32 %.03961, 1
  %exitcond.not = icmp eq i32 %7, 100
  br i1 %exitcond.not, label %57, label %8, !llvm.loop !10

8:                                                ; preds = %4, %6
  %9 = phi i32 [ %.pre, %4 ], [ %54, %6 ]
  %.03762 = phi ptr [ %1, %4 ], [ %.3, %6 ]
  %.03961 = phi i32 [ 0, %4 ], [ %7, %6 ]
  %10 = icmp eq i32 %9, 5
  br i1 %10, label %11, label %46

11:                                               ; preds = %8
  %12 = load ptr, ptr %.03762, align 8, !tbaa !12
  %13 = tail call ptr @luaH_set(ptr noundef %0, ptr noundef %12, ptr noundef %2) #2
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  %15 = load i32, ptr %14, align 8, !tbaa !5
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %17, label %.thread

17:                                               ; preds = %11
  %18 = getelementptr inbounds i8, ptr %12, i64 16
  %19 = load ptr, ptr %18, align 8, !tbaa !13
  %20 = icmp eq ptr %19, null
  br i1 %20, label %.thread, label %21

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %19, i64 10
  %23 = load i8, ptr %22, align 2, !tbaa !16
  %24 = and i8 %23, 2
  %.not = icmp eq i8 %24, 0
  br i1 %.not, label %25, label %.thread

25:                                               ; preds = %21
  %26 = load ptr, ptr %5, align 8, !tbaa !17
  %27 = getelementptr inbounds i8, ptr %26, i64 304
  %28 = load ptr, ptr %27, align 8, !tbaa !21
  %29 = tail call ptr @luaT_gettm(ptr noundef nonnull %19, i32 noundef 1, ptr noundef %28) #2
  %30 = icmp eq ptr %29, null
  br i1 %30, label %.thread, label %52

.thread:                                          ; preds = %21, %17, %25, %11
  %31 = getelementptr inbounds i8, ptr %13, i64 8
  %32 = load i64, ptr %3, align 8, !tbaa !12
  store i64 %32, ptr %13, align 8, !tbaa !12
  %33 = getelementptr inbounds i8, ptr %3, i64 8
  %34 = load i32, ptr %33, align 8, !tbaa !5
  store i32 %34, ptr %31, align 8, !tbaa !5
  %35 = icmp sgt i32 %34, 3
  br i1 %35, label %36, label %.thread52

36:                                               ; preds = %.thread
  %37 = load ptr, ptr %3, align 8, !tbaa !12
  %38 = getelementptr inbounds i8, ptr %37, i64 9
  %39 = load i8, ptr %38, align 1, !tbaa !12
  %40 = and i8 %39, 3
  %.not45 = icmp eq i8 %40, 0
  br i1 %.not45, label %.thread52, label %41

41:                                               ; preds = %36
  %42 = getelementptr inbounds i8, ptr %12, i64 9
  %43 = load i8, ptr %42, align 1, !tbaa !12
  %44 = and i8 %43, 4
  %.not46 = icmp eq i8 %44, 0
  br i1 %.not46, label %.thread52, label %45

45:                                               ; preds = %41
  tail call void @luaC_barrierback(ptr noundef %0, ptr noundef nonnull %12) #2
  br label %.thread52

46:                                               ; preds = %8
  %47 = tail call ptr @luaT_gettmbyobj(ptr noundef %0, ptr noundef nonnull %.03762, i32 noundef 1) #2
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  %49 = load i32, ptr %48, align 8, !tbaa !5
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %46
  tail call void @luaG_typeerror(ptr noundef %0, ptr noundef nonnull %.03762, ptr noundef nonnull @.str.1) #2
  br label %52

52:                                               ; preds = %25, %46, %51
  %.3 = phi ptr [ %47, %51 ], [ %47, %46 ], [ %29, %25 ]
  %53 = getelementptr inbounds i8, ptr %.3, i64 8
  %54 = load i32, ptr %53, align 8, !tbaa !5
  %55 = icmp eq i32 %54, 6
  br i1 %55, label %56, label %6

56:                                               ; preds = %52
  tail call void @callTM(ptr noundef %0, ptr noundef nonnull %.3, ptr noundef nonnull %.03762, ptr noundef %2, ptr noundef %3)
  br label %.thread52

57:                                               ; preds = %6
  tail call void (ptr, ptr, ...) @luaG_runerror(ptr noundef %0, ptr noundef nonnull @.str.3) #2
  br label %.thread52

.thread52:                                        ; preds = %.thread, %36, %41, %45, %56, %57
  ret void
}

declare hidden ptr @luaH_set(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare hidden void @luaC_barrierback(ptr noundef, ptr noundef) local_unnamed_addr #0

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

attributes #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 = { 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 = { 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, !9, i64 8}
!6 = !{!"lua_TValue", !7, i64 0, !9, i64 8}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !15, i64 16}
!14 = !{!"Table", !15, i64 0, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !9, i64 56}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!14, !7, i64 10}
!17 = !{!18, !15, i64 32}
!18 = !{!"lua_State", !15, i64 0, !7, i64 8, !7, i64 9, !7, i64 10, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !9, i64 88, !9, i64 92, !19, i64 96, !19, i64 98, !7, i64 100, !7, i64 101, !9, i64 104, !9, i64 108, !15, i64 112, !6, i64 120, !6, i64 136, !15, i64 152, !15, i64 160, !15, i64 168, !20, i64 176, !7, i64 184}
!19 = !{!"short", !7, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!15, !15, i64 0}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass