; LLVM IR from VAR-solutions/Algorithms :: Combinatorial Game Theory/Tic-Tac-Toe Optimal Move/Cpp (Tic-Tac-Toe)

; 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.Move = type { i32, i32 }

@player = external dso_local global i8, align 1
@.str = external hidden unnamed_addr constant [37 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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z7minimaxPA3_cib(ptr noundef, i32 noundef, i1 noundef zeroext) #1

; Function Attrs: mustprogress uwtable
define dso_local i64 @_Z12findBestMovePA3_c(ptr noundef %0) #1 {
  %2 = alloca %struct.Move, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 -1000, ptr %4, align 4, !tbaa !9
  %9 = getelementptr inbounds %struct.Move, ptr %2, i32 0, i32 0
  store i32 -1, ptr %9, align 4, !tbaa !11
  %10 = getelementptr inbounds %struct.Move, ptr %2, i32 0, i32 1
  store i32 -1, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %64, %1
  %12 = load i32, ptr %5, align 4, !tbaa !9
  %13 = icmp slt i32 %12, 3
  br i1 %13, label %15, label %14

14:                                               ; preds = %11
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %67

15:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %16

16:                                               ; preds = %60, %15
  %17 = load i32, ptr %7, align 4, !tbaa !9
  %18 = icmp slt i32 %17, 3
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %63

20:                                               ; preds = %16
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = load i32, ptr %5, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [3 x i8], ptr %21, i64 %23
  %25 = load i32, ptr %7, align 4, !tbaa !9
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [3 x i8], ptr %24, i64 0, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !14
  %29 = sext i8 %28 to i32
  %30 = icmp eq i32 %29, 95
  br i1 %30, label %31, label %59

31:                                               ; preds = %20
  %32 = load i8, ptr @player, align 1, !tbaa !14
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = load i32, ptr %5, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [3 x i8], ptr %33, i64 %35
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [3 x i8], ptr %36, i64 0, i64 %38
  store i8 %32, ptr %39, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = call noundef i32 @_Z7minimaxPA3_cib(ptr noundef %40, i32 noundef 0, i1 noundef zeroext false)
  store i32 %41, ptr %8, align 4, !tbaa !9
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = load i32, ptr %5, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [3 x i8], ptr %42, i64 %44
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [3 x i8], ptr %45, i64 0, i64 %47
  store i8 95, ptr %48, align 1, !tbaa !14
  %49 = load i32, ptr %8, align 4, !tbaa !9
  %50 = load i32, ptr %4, align 4, !tbaa !9
  %51 = icmp sgt i32 %49, %50
  br i1 %51, label %52, label %58

52:                                               ; preds = %31
  %53 = load i32, ptr %5, align 4, !tbaa !9
  %54 = getelementptr inbounds %struct.Move, ptr %2, i32 0, i32 0
  store i32 %53, ptr %54, align 4, !tbaa !11
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = getelementptr inbounds %struct.Move, ptr %2, i32 0, i32 1
  store i32 %55, ptr %56, align 4, !tbaa !13
  %57 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %57, ptr %4, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %52, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %59

59:                                               ; preds = %58, %20
  br label %60

60:                                               ; preds = %59
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %7, align 4, !tbaa !9
  br label %16, !llvm.loop !15

63:                                               ; preds = %19
  br label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %5, align 4, !tbaa !9
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %5, align 4, !tbaa !9
  br label %11, !llvm.loop !17

67:                                               ; preds = %14
  %68 = load i32, ptr %4, align 4, !tbaa !9
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %68)
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  %70 = load i64, ptr %2, align 4
  ret i64 %70
}

declare i32 @printf(ptr noundef, ...) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS4Move", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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

@player = external dso_local local_unnamed_addr global i8, align 1
@.str = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z7minimaxPA3_cib(ptr noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local i64 @_Z12findBestMovePA3_c(ptr noundef %0) local_unnamed_addr #0 {
.preheader:
  %1 = load i8, ptr %0, align 1, !tbaa !5
  %2 = icmp eq i8 %1, 95
  br i1 %2, label %3, label %7

3:                                                ; preds = %.preheader
  %4 = load i8, ptr @player, align 1, !tbaa !5
  store i8 %4, ptr %0, align 1, !tbaa !5
  %5 = tail call noundef i32 @_Z7minimaxPA3_cib(ptr noundef nonnull %0, i32 noundef 0, i1 noundef zeroext false)
  store i8 95, ptr %0, align 1, !tbaa !5
  %6 = icmp slt i32 %5, -999
  %.sroa.0.2 = sext i1 %6 to i32
  %.2 = tail call i32 @llvm.smax.i32(i32 %5, i32 -1000)
  br label %7

7:                                                ; preds = %.preheader, %3
  %.sroa.0.3 = phi i32 [ %.sroa.0.2, %3 ], [ -1, %.preheader ]
  %.3 = phi i32 [ %.2, %3 ], [ -1000, %.preheader ]
  %8 = getelementptr inbounds i8, ptr %0, i64 1
  %9 = load i8, ptr %8, align 1, !tbaa !5
  %10 = icmp eq i8 %9, 95
  br i1 %10, label %11, label %15

11:                                               ; preds = %7
  %12 = load i8, ptr @player, align 1, !tbaa !5
  store i8 %12, ptr %8, align 1, !tbaa !5
  %13 = tail call noundef i32 @_Z7minimaxPA3_cib(ptr noundef nonnull %0, i32 noundef 0, i1 noundef zeroext false)
  store i8 95, ptr %8, align 1, !tbaa !5
  %14 = icmp sgt i32 %13, %.3
  %.sroa.0.2.1 = select i1 %14, i32 0, i32 %.sroa.0.3
  %.2.1 = tail call i32 @llvm.smax.i32(i32 %13, i32 %.3)
  %.sroa.3.2.1 = select i1 %14, i32 1, i32 %.sroa.0.3
  br label %15

15:                                               ; preds = %11, %7
  %.sroa.0.3.1 = phi i32 [ %.sroa.0.2.1, %11 ], [ %.sroa.0.3, %7 ]
  %.3.1 = phi i32 [ %.2.1, %11 ], [ %.3, %7 ]
  %.sroa.3.3.1 = phi i32 [ %.sroa.3.2.1, %11 ], [ %.sroa.0.3, %7 ]
  %16 = getelementptr inbounds i8, ptr %0, i64 2
  %17 = load i8, ptr %16, align 1, !tbaa !5
  %18 = icmp eq i8 %17, 95
  br i1 %18, label %19, label %.preheader.1

19:                                               ; preds = %15
  %20 = load i8, ptr @player, align 1, !tbaa !5
  store i8 %20, ptr %16, align 1, !tbaa !5
  %21 = tail call noundef i32 @_Z7minimaxPA3_cib(ptr noundef nonnull %0, i32 noundef 0, i1 noundef zeroext false)
  store i8 95, ptr %16, align 1, !tbaa !5
  %22 = icmp sgt i32 %21, %.3.1
  %.sroa.0.2.2 = select i1 %22, i32 0, i32 %.sroa.0.3.1
  %.2.2 = tail call i32 @llvm.smax.i32(i32 %21, i32 %.3.1)
  %.sroa.3.2.2 = select i1 %22, i32 2, i32 %.sroa.3.3.1
  br label %.preheader.1

.preheader.1:                                     ; preds = %19, %15
  %.sroa.0.3.2 = phi i32 [ %.sroa.0.2.2, %19 ], [ %.sroa.0.3.1, %15 ]
  %.3.2 = phi i32 [ %.2.2, %19 ], [ %.3.1, %15 ]
  %.sroa.3.3.2 = phi i32 [ %.sroa.3.2.2, %19 ], [ %.sroa.3.3.1, %15 ]
  %23 = getelementptr inbounds i8, ptr %0, i64 3
  %24 = load i8, ptr %23, align 1, !tbaa !5
  %25 = icmp eq i8 %24, 95
  br i1 %25, label %26, label %30

26:                                               ; preds = %.preheader.1
  %27 = load i8, ptr @player, align 1, !tbaa !5
  store i8 %27, ptr %23, align 1, !tbaa !5
  %28 = tail call noundef i32 @_Z7minimaxPA3_cib(ptr noundef nonnull %0, i32 noundef 0, i1 noundef zeroext false)
  store i8 95, ptr %23, align 1, !tbaa !5
  %29 = icmp sgt i32 %28, %.3.2
  %.sroa.0.2.132 = select i1 %29, i32 1, i32 %.sroa.0.3.2
  %.2.133 = tail call i32 @llvm.smax.i32(i32 %28, i32 %.3.2)
  %.sroa.3.2.134 = select i1 %29, i32 0, i32 %.sroa.3.3.2
  br label %30

30:                                               ; preds = %26, %.preheader.1
  %.sroa.0.3.135 = phi i32 [ %.sroa.0.2.132, %26 ], [ %.sroa.0.3.2, %.preheader.1 ]
  %.3.136 = phi i32 [ %.2.133, %26 ], [ %.3.2, %.preheader.1 ]
  %.sroa.3.3.137 = phi i32 [ %.sroa.3.2.134, %26 ], [ %.sroa.3.3.2, %.preheader.1 ]
  %31 = getelementptr inbounds i8, ptr %0, i64 4
  %32 = load i8, ptr %31, align 1, !tbaa !5
  %33 = icmp eq i8 %32, 95
  br i1 %33, label %34, label %38

34:                                               ; preds = %30
  %35 = load i8, ptr @player, align 1, !tbaa !5
  store i8 %35, ptr %31, align 1, !tbaa !5
  %36 = tail call noundef i32 @_Z7minimaxPA3_cib(ptr noundef nonnull %0, i32 noundef 0, i1 noundef zeroext false)
  store i8 95, ptr %31, align 1, !tbaa !5
  %37 = icmp sgt i32 %36, %.3.136
  %.sroa.0.2.1.1 = select i1 %37, i32 1, i32 %.sroa.0.3.135
  %.2.1.1 = tail call i32 @llvm.smax.i32(i32 %36, i32 %.3.136)
  %.sroa.3.2.1.1 = select i1 %37, i32 1, i32 %.sroa.3.3.137
  br label %38

38:                                               ; preds = %34, %30
  %.sroa.0.3.1.1 = phi i32 [ %.sroa.0.2.1.1, %34 ], [ %.sroa.0.3.135, %30 ]
  %.3.1.1 = phi i32 [ %.2.1.1, %34 ], [ %.3.136, %30 ]
  %.sroa.3.3.1.1 = phi i32 [ %.sroa.3.2.1.1, %34 ], [ %.sroa.3.3.137, %30 ]
  %39 = getelementptr inbounds i8, ptr %0, i64 5
  %40 = load i8, ptr %39, align 1, !tbaa !5
  %41 = icmp eq i8 %40, 95
  br i1 %41, label %42, label %.preheader.2

42:                                               ; preds = %38
  %43 = load i8, ptr @player, align 1, !tbaa !5
  store i8 %43, ptr %39, align 1, !tbaa !5
  %44 = tail call noundef i32 @_Z7minimaxPA3_cib(ptr noundef nonnull %0, i32 noundef 0, i1 noundef zeroext false)
  store i8 95, ptr %39, align 1, !tbaa !5
  %45 = icmp sgt i32 %44, %.3.1.1
  %.sroa.0.2.2.1 = select i1 %45, i32 1, i32 %.sroa.0.3.1.1
  %.2.2.1 = tail call i32 @llvm.smax.i32(i32 %44, i32 %.3.1.1)
  %.sroa.3.2.2.1 = select i1 %45, i32 2, i32 %.sroa.3.3.1.1
  br label %.preheader.2

.preheader.2:                                     ; preds = %42, %38
  %.sroa.0.3.2.1 = phi i32 [ %.sroa.0.2.2.1, %42 ], [ %.sroa.0.3.1.1, %38 ]
  %.3.2.1 = phi i32 [ %.2.2.1, %42 ], [ %.3.1.1, %38 ]
  %.sroa.3.3.2.1 = phi i32 [ %.sroa.3.2.2.1, %42 ], [ %.sroa.3.3.1.1, %38 ]
  %46 = getelementptr inbounds i8, ptr %0, i64 6
  %47 = load i8, ptr %46, align 1, !tbaa !5
  %48 = icmp eq i8 %47, 95
  br i1 %48, label %49, label %53

49:                                               ; preds = %.preheader.2
  %50 = load i8, ptr @player, align 1, !tbaa !5
  store i8 %50, ptr %46, align 1, !tbaa !5
  %51 = tail call noundef i32 @_Z7minimaxPA3_cib(ptr noundef nonnull %0, i32 noundef 0, i1 noundef zeroext false)
  store i8 95, ptr %46, align 1, !tbaa !5
  %52 = icmp sgt i32 %51, %.3.2.1
  %.sroa.0.2.238 = select i1 %52, i32 2, i32 %.sroa.0.3.2.1
  %.2.239 = tail call i32 @llvm.smax.i32(i32 %51, i32 %.3.2.1)
  %.sroa.3.2.240 = select i1 %52, i32 0, i32 %.sroa.3.3.2.1
  br label %53

53:                                               ; preds = %49, %.preheader.2
  %.sroa.0.3.241 = phi i32 [ %.sroa.0.2.238, %49 ], [ %.sroa.0.3.2.1, %.preheader.2 ]
  %.3.242 = phi i32 [ %.2.239, %49 ], [ %.3.2.1, %.preheader.2 ]
  %.sroa.3.3.243 = phi i32 [ %.sroa.3.2.240, %49 ], [ %.sroa.3.3.2.1, %.preheader.2 ]
  %54 = getelementptr inbounds i8, ptr %0, i64 7
  %55 = load i8, ptr %54, align 1, !tbaa !5
  %56 = icmp eq i8 %55, 95
  br i1 %56, label %57, label %61

57:                                               ; preds = %53
  %58 = load i8, ptr @player, align 1, !tbaa !5
  store i8 %58, ptr %54, align 1, !tbaa !5
  %59 = tail call noundef i32 @_Z7minimaxPA3_cib(ptr noundef nonnull %0, i32 noundef 0, i1 noundef zeroext false)
  store i8 95, ptr %54, align 1, !tbaa !5
  %60 = icmp sgt i32 %59, %.3.242
  %.sroa.0.2.1.2 = select i1 %60, i32 2, i32 %.sroa.0.3.241
  %.2.1.2 = tail call i32 @llvm.smax.i32(i32 %59, i32 %.3.242)
  %.sroa.3.2.1.2 = select i1 %60, i32 1, i32 %.sroa.3.3.243
  br label %61

61:                                               ; preds = %57, %53
  %.sroa.0.3.1.2 = phi i32 [ %.sroa.0.2.1.2, %57 ], [ %.sroa.0.3.241, %53 ]
  %.3.1.2 = phi i32 [ %.2.1.2, %57 ], [ %.3.242, %53 ]
  %.sroa.3.3.1.2 = phi i32 [ %.sroa.3.2.1.2, %57 ], [ %.sroa.3.3.243, %53 ]
  %62 = getelementptr inbounds i8, ptr %0, i64 8
  %63 = load i8, ptr %62, align 1, !tbaa !5
  %64 = icmp eq i8 %63, 95
  br i1 %64, label %65, label %69

65:                                               ; preds = %61
  %66 = load i8, ptr @player, align 1, !tbaa !5
  store i8 %66, ptr %62, align 1, !tbaa !5
  %67 = tail call noundef i32 @_Z7minimaxPA3_cib(ptr noundef nonnull %0, i32 noundef 0, i1 noundef zeroext false)
  store i8 95, ptr %62, align 1, !tbaa !5
  %68 = icmp sgt i32 %67, %.3.1.2
  %.sroa.0.2.2.2 = select i1 %68, i32 2, i32 %.sroa.0.3.1.2
  %.2.2.2 = tail call i32 @llvm.smax.i32(i32 %67, i32 %.3.1.2)
  %.sroa.3.2.2.2 = select i1 %68, i32 2, i32 %.sroa.3.3.1.2
  br label %69

69:                                               ; preds = %65, %61
  %.sroa.0.3.2.2 = phi i32 [ %.sroa.0.2.2.2, %65 ], [ %.sroa.0.3.1.2, %61 ]
  %.3.2.2 = phi i32 [ %.2.2.2, %65 ], [ %.3.1.2, %61 ]
  %.sroa.3.3.2.2 = phi i32 [ %.sroa.3.2.2.2, %65 ], [ %.sroa.3.3.1.2, %61 ]
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %.3.2.2)
  %.sroa.3.0.insert.ext = zext i32 %.sroa.3.3.2.2 to i64
  %.sroa.3.0.insert.shift = shl nuw i64 %.sroa.3.0.insert.ext, 32
  %.sroa.0.0.insert.ext = zext i32 %.sroa.0.3.2.2 to i64
  %.sroa.0.0.insert.insert = or disjoint i64 %.sroa.3.0.insert.shift, %.sroa.0.0.insert.ext
  ret i64 %.sroa.0.0.insert.insert
}

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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

!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++ TBAA"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass