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

; 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.global_State = type { ptr, ptr, i64, i64, i64, i64, %struct.stringtable, %struct.lua_TValue, i32, i8, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.Mbuffer, i32, i32, i32, ptr, ptr, ptr, ptr, [24 x ptr], [9 x ptr] }
%struct.stringtable = type { ptr, i32, i32 }
%struct.lua_TValue = type { %union.Value, i32 }
%union.Value = type { ptr }
%struct.Mbuffer = type { ptr, i64, i64 }

; 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 void @luaC_step(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @lua_gc(ptr noundef %0, i32 noundef %1, i32 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.lua_State, ptr %11, i32 0, i32 5
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  store ptr %13, ptr %8, align 8, !tbaa !5
  %14 = load i32, ptr %5, align 4, !tbaa !9
  switch i32 %14, label %113 [
    i32 0, label %15
    i32 1, label %18
    i32 2, label %22
    i32 3, label %24
    i32 4, label %34
    i32 5, label %44
    i32 6, label %90
    i32 7, label %97
    i32 9, label %108
  ]

15:                                               ; preds = %3
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.global_State, ptr %16, i32 0, i32 12
  store i8 0, ptr %17, align 1, !tbaa !16
  br label %114

18:                                               ; preds = %3
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  call void @luaE_setdebt(ptr noundef %19, i64 noundef 0)
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.global_State, ptr %20, i32 0, i32 12
  store i8 1, ptr %21, align 1, !tbaa !16
  br label %114

22:                                               ; preds = %3
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  call void @luaC_fullgc(ptr noundef %23, i32 noundef 0)
  br label %114

24:                                               ; preds = %3
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.global_State, ptr %25, i32 0, i32 2
  %27 = load i64, ptr %26, align 8, !tbaa !21
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.global_State, ptr %28, i32 0, i32 3
  %30 = load i64, ptr %29, align 8, !tbaa !22
  %31 = add i64 %27, %30
  %32 = lshr i64 %31, 10
  %33 = trunc i64 %32 to i32
  store i32 %33, ptr %7, align 4, !tbaa !9
  br label %114

34:                                               ; preds = %3
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.global_State, ptr %35, i32 0, i32 2
  %37 = load i64, ptr %36, align 8, !tbaa !21
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.global_State, ptr %38, i32 0, i32 3
  %40 = load i64, ptr %39, align 8, !tbaa !22
  %41 = add i64 %37, %40
  %42 = and i64 %41, 1023
  %43 = trunc i64 %42 to i32
  store i32 %43, ptr %7, align 4, !tbaa !9
  br label %114

44:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store i64 1, ptr %9, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.global_State, ptr %45, i32 0, i32 12
  %47 = load i8, ptr %46, align 1, !tbaa !16
  %48 = zext i8 %47 to i32
  store i32 %48, ptr %10, align 4, !tbaa !9
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.global_State, ptr %49, i32 0, i32 12
  store i8 1, ptr %50, align 1, !tbaa !16
  %51 = load i32, ptr %6, align 4, !tbaa !9
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %56

53:                                               ; preds = %44
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  call void @luaE_setdebt(ptr noundef %54, i64 noundef -3200)
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  call void @luaC_step(ptr noundef %55)
  br label %75

56:                                               ; preds = %44
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = mul nsw i64 %58, 1024
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.global_State, ptr %60, i32 0, i32 3
  %62 = load i64, ptr %61, align 8, !tbaa !22
  %63 = add nsw i64 %59, %62
  store i64 %63, ptr %9, align 8, !tbaa !23
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = load i64, ptr %9, align 8, !tbaa !23
  call void @luaE_setdebt(ptr noundef %64, i64 noundef %65)
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.lua_State, ptr %66, i32 0, i32 5
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  %69 = getelementptr inbounds %struct.global_State, ptr %68, i32 0, i32 3
  %70 = load i64, ptr %69, align 8, !tbaa !22
  %71 = icmp sgt i64 %70, 0
  br i1 %71, label %72, label %74

72:                                               ; preds = %56
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  call void @luaC_step(ptr noundef %73)
  br label %74

74:                                               ; preds = %72, %56
  br label %75

75:                                               ; preds = %74, %53
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = trunc i32 %76 to i8
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.global_State, ptr %78, i32 0, i32 12
  store i8 %77, ptr %79, align 1, !tbaa !16
  %80 = load i64, ptr %9, align 8, !tbaa !23
  %81 = icmp sgt i64 %80, 0
  br i1 %81, label %82, label %89

82:                                               ; preds = %75
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.global_State, ptr %83, i32 0, i32 10
  %85 = load i8, ptr %84, align 1, !tbaa !24
  %86 = zext i8 %85 to i32
  %87 = icmp eq i32 %86, 7
  br i1 %87, label %88, label %89

88:                                               ; preds = %82
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %88, %82, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %114

90:                                               ; preds = %3
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.global_State, ptr %91, i32 0, i32 26
  %93 = load i32, ptr %92, align 4, !tbaa !25
  store i32 %93, ptr %7, align 4, !tbaa !9
  %94 = load i32, ptr %6, align 4, !tbaa !9
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.global_State, ptr %95, i32 0, i32 26
  store i32 %94, ptr %96, align 4, !tbaa !25
  br label %114

97:                                               ; preds = %3
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.global_State, ptr %98, i32 0, i32 27
  %100 = load i32, ptr %99, align 8, !tbaa !26
  store i32 %100, ptr %7, align 4, !tbaa !9
  %101 = load i32, ptr %6, align 4, !tbaa !9
  %102 = icmp slt i32 %101, 40
  br i1 %102, label %103, label %104

103:                                              ; preds = %97
  store i32 40, ptr %6, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %103, %97
  %105 = load i32, ptr %6, align 4, !tbaa !9
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.global_State, ptr %106, i32 0, i32 27
  store i32 %105, ptr %107, align 8, !tbaa !26
  br label %114

108:                                              ; preds = %3
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.global_State, ptr %109, i32 0, i32 12
  %111 = load i8, ptr %110, align 1, !tbaa !16
  %112 = zext i8 %111 to i32
  store i32 %112, ptr %7, align 4, !tbaa !9
  br label %114

113:                                              ; preds = %3
  store i32 -1, ptr %7, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %113, %108, %104, %90, %89, %34, %24, %22, %18, %15
  %115 = load i32, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret i32 %115
}

declare hidden void @luaE_setdebt(ptr noundef, i64 noundef) #1

declare hidden void @luaC_fullgc(ptr noundef, i32 noundef) #1

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 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 24}
!12 = !{!"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, !13, i64 96, !6, i64 168, !14, i64 176, !10, i64 184, !10, i64 188, !10, i64 192, !15, i64 196, !15, i64 198, !7, i64 200, !7, i64 201}
!13 = !{!"CallInfo", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !14, i64 56, !15, i64 64, !7, i64 66}
!14 = !{!"long", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!17, !7, i64 87}
!17 = !{!"global_State", !6, i64 0, !6, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !18, i64 48, !19, i64 64, !10, i64 80, !7, i64 84, !7, i64 85, !7, i64 86, !7, i64 87, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !20, i64 176, !10, i64 200, !10, i64 204, !10, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !7, i64 248, !7, i64 440}
!18 = !{!"stringtable", !6, i64 0, !10, i64 8, !10, i64 12}
!19 = !{!"lua_TValue", !7, i64 0, !10, i64 8}
!20 = !{!"Mbuffer", !6, i64 0, !14, i64 8, !14, i64 16}
!21 = !{!17, !14, i64 16}
!22 = !{!17, !14, i64 24}
!23 = !{!14, !14, i64 0}
!24 = !{!17, !7, i64 85}
!25 = !{!17, !10, i64 204}
!26 = !{!17, !10, i64 208}


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

declare hidden void @luaC_step(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @lua_gc(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  switch i32 %1, label %58 [
    i32 0, label %6
    i32 1, label %8
    i32 2, label %10
    i32 3, label %11
    i32 4, label %19
    i32 5, label %27
    i32 6, label %48
    i32 7, label %51
    i32 9, label %54
  ]

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %5, i64 87
  store i8 0, ptr %7, align 1, !tbaa !14
  br label %58

8:                                                ; preds = %3
  tail call void @luaE_setdebt(ptr noundef %5, i64 noundef 0) #3
  %9 = getelementptr inbounds i8, ptr %5, i64 87
  store i8 1, ptr %9, align 1, !tbaa !14
  br label %58

10:                                               ; preds = %3
  tail call void @luaC_fullgc(ptr noundef nonnull %0, i32 noundef 0) #3
  br label %58

11:                                               ; preds = %3
  %12 = getelementptr inbounds i8, ptr %5, i64 16
  %13 = load i64, ptr %12, align 8, !tbaa !19
  %14 = getelementptr inbounds i8, ptr %5, i64 24
  %15 = load i64, ptr %14, align 8, !tbaa !20
  %16 = add i64 %15, %13
  %17 = lshr i64 %16, 10
  %18 = trunc i64 %17 to i32
  br label %58

19:                                               ; preds = %3
  %20 = getelementptr inbounds i8, ptr %5, i64 16
  %21 = load i64, ptr %20, align 8, !tbaa !19
  %22 = getelementptr inbounds i8, ptr %5, i64 24
  %23 = load i64, ptr %22, align 8, !tbaa !20
  %24 = add i64 %23, %21
  %25 = trunc i64 %24 to i32
  %26 = and i32 %25, 1023
  br label %58

27:                                               ; preds = %3
  %28 = getelementptr inbounds i8, ptr %5, i64 87
  %29 = load i8, ptr %28, align 1, !tbaa !14
  store i8 1, ptr %28, align 1, !tbaa !14
  %30 = icmp eq i32 %2, 0
  br i1 %30, label %.thread, label %31

.thread:                                          ; preds = %27
  tail call void @luaE_setdebt(ptr noundef nonnull %5, i64 noundef -3200) #3
  tail call void @luaC_step(ptr noundef nonnull %0) #3
  store i8 %29, ptr %28, align 1, !tbaa !14
  br label %44

31:                                               ; preds = %27
  %32 = sext i32 %2 to i64
  %33 = shl nsw i64 %32, 10
  %34 = getelementptr inbounds i8, ptr %5, i64 24
  %35 = load i64, ptr %34, align 8, !tbaa !20
  %36 = add nsw i64 %35, %33
  tail call void @luaE_setdebt(ptr noundef nonnull %5, i64 noundef %36) #3
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 24
  %39 = load i64, ptr %38, align 8, !tbaa !20
  %40 = icmp sgt i64 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %31
  tail call void @luaC_step(ptr noundef nonnull %0) #3
  br label %42

42:                                               ; preds = %31, %41
  store i8 %29, ptr %28, align 1, !tbaa !14
  %43 = icmp sgt i64 %36, 0
  br i1 %43, label %44, label %58

44:                                               ; preds = %.thread, %42
  %45 = getelementptr inbounds i8, ptr %5, i64 85
  %46 = load i8, ptr %45, align 1, !tbaa !21
  %47 = icmp eq i8 %46, 7
  %spec.select = zext i1 %47 to i32
  br label %58

48:                                               ; preds = %3
  %49 = getelementptr inbounds i8, ptr %5, i64 204
  %50 = load i32, ptr %49, align 4, !tbaa !22
  store i32 %2, ptr %49, align 4, !tbaa !22
  br label %58

51:                                               ; preds = %3
  %52 = getelementptr inbounds i8, ptr %5, i64 208
  %53 = load i32, ptr %52, align 8, !tbaa !23
  %spec.store.select = tail call i32 @llvm.smax.i32(i32 %2, i32 40)
  store i32 %spec.store.select, ptr %52, align 8, !tbaa !23
  br label %58

54:                                               ; preds = %3
  %55 = getelementptr inbounds i8, ptr %5, i64 87
  %56 = load i8, ptr %55, align 1, !tbaa !14
  %57 = zext i8 %56 to i32
  br label %58

58:                                               ; preds = %44, %3, %42, %54, %51, %48, %19, %11, %10, %8, %6
  %.1 = phi i32 [ %57, %54 ], [ %53, %51 ], [ %50, %48 ], [ %26, %19 ], [ %18, %11 ], [ 0, %10 ], [ 0, %8 ], [ 0, %6 ], [ 0, %42 ], [ %spec.select, %44 ], [ -1, %3 ]
  ret i32 %.1
}

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

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

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 24}
!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 = !{!15, !8, i64 87}
!15 = !{!"global_State", !7, i64 0, !7, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !16, i64 48, !17, i64 64, !13, i64 80, !8, i64 84, !8, i64 85, !8, i64 86, !8, i64 87, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !18, i64 176, !13, i64 200, !13, i64 204, !13, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !8, i64 248, !8, i64 440}
!16 = !{!"stringtable", !7, i64 0, !13, i64 8, !13, i64 12}
!17 = !{!"lua_TValue", !8, i64 0, !13, i64 8}
!18 = !{!"Mbuffer", !7, i64 0, !11, i64 8, !11, i64 16}
!19 = !{!15, !11, i64 16}
!20 = !{!15, !11, i64 24}
!21 = !{!15, !8, i64 85}
!22 = !{!15, !13, i64 204}
!23 = !{!15, !13, i64 208}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass