; LLVM IR from ejoy/ejoy2d :: lua (ldo)

; 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 { ptr, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.CallInfo, ptr, i64, i32, i32, i32, i16, i16, i8, i8 }
%struct.CallInfo = type { ptr, ptr, ptr, ptr, %union.anon, i64, i16, i8 }
%union.anon = type { %struct.anon.0 }
%struct.anon.0 = type { ptr, i64, i64 }
%struct.anon = type { ptr, ptr }
%struct.lua_TValue = type { %union.Value, i32 }
%union.Value = type { ptr }

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; 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 void @luaD_hook(ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define hidden i32 @luaD_poscall(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = 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 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.lua_State, ptr %11, i32 0, i32 6
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %13, ptr %8, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.lua_State, ptr %14, i32 0, i32 22
  %16 = load i8, ptr %15, align 8, !tbaa !15
  %17 = zext i8 %16 to i32
  %18 = and i32 %17, 6
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %50

20:                                               ; preds = %2
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.lua_State, ptr %21, i32 0, i32 22
  %23 = load i8, ptr %22, align 8, !tbaa !15
  %24 = zext i8 %23 to i32
  %25 = and i32 %24, 2
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %41

27:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.lua_State, ptr %29, i32 0, i32 9
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %32 = ptrtoint ptr %28 to i64
  %33 = ptrtoint ptr %31 to i64
  %34 = sub i64 %32, %33
  store i64 %34, ptr %9, align 8, !tbaa !17
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  call void @luaD_hook(ptr noundef %35, i32 noundef 1, i32 noundef -1)
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.lua_State, ptr %36, i32 0, i32 9
  %38 = load ptr, ptr %37, align 8, !tbaa !16
  %39 = load i64, ptr %9, align 8, !tbaa !17
  %40 = getelementptr inbounds i8, ptr %38, i64 %39
  store ptr %40, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %41

41:                                               ; preds = %27, %20
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.CallInfo, ptr %42, i32 0, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  %45 = getelementptr inbounds %struct.CallInfo, ptr %44, i32 0, i32 4
  %46 = getelementptr inbounds %struct.anon, ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !19
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.lua_State, ptr %48, i32 0, i32 7
  store ptr %47, ptr %49, align 8, !tbaa !20
  br label %50

50:                                               ; preds = %41, %2
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.CallInfo, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !21
  store ptr %53, ptr %5, align 8, !tbaa !5
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.CallInfo, ptr %54, i32 0, i32 6
  %56 = load i16, ptr %55, align 8, !tbaa !22
  %57 = sext i16 %56 to i32
  store i32 %57, ptr %6, align 4, !tbaa !23
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.CallInfo, ptr %58, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !18
  store ptr %60, ptr %8, align 8, !tbaa !5
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.lua_State, ptr %61, i32 0, i32 6
  store ptr %60, ptr %62, align 8, !tbaa !9
  %63 = load i32, ptr %6, align 4, !tbaa !23
  store i32 %63, ptr %7, align 4, !tbaa !23
  br label %64

64:                                               ; preds = %82, %50
  %65 = load i32, ptr %7, align 4, !tbaa !23
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %73

67:                                               ; preds = %64
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.lua_State, ptr %69, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !24
  %72 = icmp ult ptr %68, %71
  br label %73

73:                                               ; preds = %67, %64
  %74 = phi i1 [ false, %64 ], [ %72, %67 ]
  br i1 %74, label %75, label %85

75:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.lua_TValue, ptr %76, i32 1
  store ptr %77, ptr %5, align 8, !tbaa !5
  store ptr %76, ptr %10, align 8, !tbaa !5
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.lua_TValue, ptr %79, i32 1
  store ptr %80, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %78, ptr align 8 %79, i64 16, i1 false), !tbaa.struct !25
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %82

82:                                               ; preds = %75
  %83 = load i32, ptr %7, align 4, !tbaa !23
  %84 = add nsw i32 %83, -1
  store i32 %84, ptr %7, align 4, !tbaa !23
  br label %64, !llvm.loop !26

85:                                               ; preds = %73
  br label %86

86:                                               ; preds = %90, %85
  %87 = load i32, ptr %7, align 4, !tbaa !23
  %88 = add nsw i32 %87, -1
  store i32 %88, ptr %7, align 4, !tbaa !23
  %89 = icmp sgt i32 %87, 0
  br i1 %89, label %90, label %94

90:                                               ; preds = %86
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.lua_TValue, ptr %91, i32 1
  store ptr %92, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.lua_TValue, ptr %91, i32 0, i32 1
  store i32 0, ptr %93, align 8, !tbaa !28
  br label %86, !llvm.loop !30

94:                                               ; preds = %86
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.lua_State, ptr %96, i32 0, i32 4
  store ptr %95, ptr %97, align 8, !tbaa !24
  %98 = load i32, ptr %6, align 4, !tbaa !23
  %99 = sub nsw i32 %98, -1
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret i32 %99
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 32}
!10 = !{!"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, !6, i64 88, !11, i64 96, !6, i64 168, !12, i64 176, !14, i64 184, !14, i64 188, !14, i64 192, !13, i64 196, !13, i64 198, !7, i64 200, !7, i64 201}
!11 = !{!"CallInfo", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !12, i64 56, !13, i64 64, !7, i64 66}
!12 = !{!"long", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!10, !7, i64 200}
!16 = !{!10, !6, i64 56}
!17 = !{!12, !12, i64 0}
!18 = !{!11, !6, i64 16}
!19 = !{!7, !7, i64 0}
!20 = !{!10, !6, i64 40}
!21 = !{!11, !6, i64 0}
!22 = !{!11, !13, i64 64}
!23 = !{!14, !14, i64 0}
!24 = !{!10, !6, i64 16}
!25 = !{i64 0, i64 8, !19, i64 8, i64 4, !23}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!29, !14, i64 8}
!29 = !{!"lua_TValue", !7, i64 0, !14, i64 8}
!30 = distinct !{!30, !27}


; 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: 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) #0

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

; Function Attrs: nounwind uwtable
define hidden range(i32 -32767, 32769) i32 @luaD_poscall(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %0, i64 32
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 200
  %6 = load i8, ptr %5, align 8, !tbaa !14
  %7 = zext i8 %6 to i32
  %8 = and i32 %7, 6
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %._crit_edge45, label %9

._crit_edge45:                                    ; preds = %2
  %.phi.trans.insert = getelementptr inbounds i8, ptr %4, i64 16
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !15
  br label %25

9:                                                ; preds = %2
  %10 = and i32 %7, 2
  %.not31 = icmp eq i32 %10, 0
  br i1 %.not31, label %19, label %11

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %0, i64 56
  %13 = load ptr, ptr %12, align 8, !tbaa !16
  %14 = ptrtoint ptr %1 to i64
  %15 = ptrtoint ptr %13 to i64
  %16 = sub i64 %14, %15
  tail call void @luaD_hook(ptr noundef nonnull %0, i32 noundef 1, i32 noundef -1)
  %17 = load ptr, ptr %12, align 8, !tbaa !16
  %18 = getelementptr inbounds i8, ptr %17, i64 %16
  br label %19

19:                                               ; preds = %11, %9
  %.0 = phi ptr [ %18, %11 ], [ %1, %9 ]
  %20 = getelementptr inbounds i8, ptr %4, i64 16
  %21 = load ptr, ptr %20, align 8, !tbaa !15
  %22 = getelementptr inbounds i8, ptr %21, i64 40
  %23 = load ptr, ptr %22, align 8, !tbaa !17
  %24 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %23, ptr %24, align 8, !tbaa !18
  br label %25

25:                                               ; preds = %._crit_edge45, %19
  %26 = phi ptr [ %21, %19 ], [ %.pre, %._crit_edge45 ]
  %.1 = phi ptr [ %.0, %19 ], [ %1, %._crit_edge45 ]
  %27 = load ptr, ptr %4, align 8, !tbaa !19
  %28 = getelementptr inbounds i8, ptr %4, i64 64
  %29 = load i16, ptr %28, align 8, !tbaa !20
  %30 = sext i16 %29 to i32
  store ptr %26, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %0, i64 16
  %.not3233 = icmp eq i16 %29, 0
  br i1 %.not3233, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %25, %34
  %indvar = phi i32 [ %indvar.next, %34 ], [ 0, %25 ]
  %.236 = phi ptr [ %36, %34 ], [ %.1, %25 ]
  %.02735 = phi ptr [ %35, %34 ], [ %27, %25 ]
  %.02934 = phi i32 [ %37, %34 ], [ %30, %25 ]
  %32 = load ptr, ptr %31, align 8, !tbaa !21
  %33 = icmp ult ptr %.236, %32
  br i1 %33, label %34, label %.critedge

34:                                               ; preds = %.lr.ph
  %35 = getelementptr inbounds i8, ptr %.02735, i64 16
  %36 = getelementptr inbounds i8, ptr %.236, i64 16
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.02735, ptr noundef nonnull align 8 dereferenceable(16) %.236, i64 16, i1 false), !tbaa.struct !22
  %37 = add nsw i32 %.02934, -1
  %.not32 = icmp eq i32 %37, 0
  %indvar.next = add i32 %indvar, 1
  br i1 %.not32, label %._crit_edge, label %.lr.ph, !llvm.loop !24

.critedge:                                        ; preds = %.lr.ph
  %38 = icmp sgt i32 %.02934, 0
  br i1 %38, label %.lr.ph43.preheader, label %._crit_edge

.lr.ph43.preheader:                               ; preds = %.critedge
  %xtraiter = and i32 %.02934, 7
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph43.prol.loopexit, label %.lr.ph43.prol

.lr.ph43.prol:                                    ; preds = %.lr.ph43.preheader, %.lr.ph43.prol
  %.12842.prol = phi ptr [ %40, %.lr.ph43.prol ], [ %.02735, %.lr.ph43.preheader ]
  %.13041.prol = phi i32 [ %39, %.lr.ph43.prol ], [ %.02934, %.lr.ph43.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph43.prol ], [ 0, %.lr.ph43.preheader ]
  %39 = add nsw i32 %.13041.prol, -1
  %40 = getelementptr inbounds i8, ptr %.12842.prol, i64 16
  %41 = getelementptr inbounds i8, ptr %.12842.prol, i64 8
  store i32 0, ptr %41, align 8, !tbaa !26
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph43.prol.loopexit, label %.lr.ph43.prol, !llvm.loop !28

.lr.ph43.prol.loopexit:                           ; preds = %.lr.ph43.prol, %.lr.ph43.preheader
  %.12842.unr = phi ptr [ %.02735, %.lr.ph43.preheader ], [ %40, %.lr.ph43.prol ]
  %.13041.unr = phi i32 [ %.02934, %.lr.ph43.preheader ], [ %39, %.lr.ph43.prol ]
  %.lcssa.unr = phi ptr [ poison, %.lr.ph43.preheader ], [ %40, %.lr.ph43.prol ]
  %42 = sub i32 %indvar, %30
  %43 = icmp ugt i32 %42, -8
  br i1 %43, label %._crit_edge, label %.lr.ph43

.lr.ph43:                                         ; preds = %.lr.ph43.prol.loopexit, %.lr.ph43
  %.12842 = phi ptr [ %52, %.lr.ph43 ], [ %.12842.unr, %.lr.ph43.prol.loopexit ]
  %.13041 = phi i32 [ %51, %.lr.ph43 ], [ %.13041.unr, %.lr.ph43.prol.loopexit ]
  %44 = getelementptr inbounds i8, ptr %.12842, i64 8
  store i32 0, ptr %44, align 8, !tbaa !26
  %45 = getelementptr inbounds i8, ptr %.12842, i64 24
  store i32 0, ptr %45, align 8, !tbaa !26
  %46 = getelementptr inbounds i8, ptr %.12842, i64 40
  store i32 0, ptr %46, align 8, !tbaa !26
  %47 = getelementptr inbounds i8, ptr %.12842, i64 56
  store i32 0, ptr %47, align 8, !tbaa !26
  %48 = getelementptr inbounds i8, ptr %.12842, i64 72
  store i32 0, ptr %48, align 8, !tbaa !26
  %49 = getelementptr inbounds i8, ptr %.12842, i64 88
  store i32 0, ptr %49, align 8, !tbaa !26
  %50 = getelementptr inbounds i8, ptr %.12842, i64 104
  store i32 0, ptr %50, align 8, !tbaa !26
  %51 = add nsw i32 %.13041, -8
  %52 = getelementptr inbounds i8, ptr %.12842, i64 128
  %53 = getelementptr inbounds i8, ptr %.12842, i64 120
  store i32 0, ptr %53, align 8, !tbaa !26
  %54 = add i32 %.13041, -9
  %55 = icmp ult i32 %54, -2
  br i1 %55, label %.lr.ph43, label %._crit_edge, !llvm.loop !30

._crit_edge:                                      ; preds = %34, %.lr.ph43.prol.loopexit, %.lr.ph43, %25, %.critedge
  %.128.lcssa = phi ptr [ %.02735, %.critedge ], [ %27, %25 ], [ %.lcssa.unr, %.lr.ph43.prol.loopexit ], [ %52, %.lr.ph43 ], [ %35, %34 ]
  store ptr %.128.lcssa, ptr %31, align 8, !tbaa !21
  %56 = add nsw i32 %30, 1
  ret i32 %56
}

attributes #0 = { mustprogress nocallback nofree 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" }

!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 32}
!6 = !{!"lua_State", !7, i64 0, !8, i64 8, !8, i64 9, !8, i64 10, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !10, i64 96, !7, i64 168, !11, i64 176, !13, i64 184, !13, i64 188, !13, i64 192, !12, i64 196, !12, i64 198, !8, i64 200, !8, i64 201}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"CallInfo", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !8, i64 32, !11, i64 56, !12, i64 64, !8, i64 66}
!11 = !{!"long", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!6, !8, i64 200}
!15 = !{!10, !7, i64 16}
!16 = !{!6, !7, i64 56}
!17 = !{!8, !8, i64 0}
!18 = !{!6, !7, i64 40}
!19 = !{!10, !7, i64 0}
!20 = !{!10, !12, i64 64}
!21 = !{!6, !7, i64 16}
!22 = !{i64 0, i64 8, !17, i64 8, i64 4, !23}
!23 = !{!13, !13, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!27, !13, i64 8}
!27 = !{!"lua_TValue", !8, i64 0, !13, i64 8}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.unroll.disable"}
!30 = distinct !{!30, !25}


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