; LLVM IR from kala13x/libxutils :: examples (events)

; 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.XEvents = type { ptr, i32, ptr, ptr, i32, i32, i8, %struct.XHash }
%struct.XHash = type { ptr, ptr, i64, [32 x %struct.xlist] }
%struct.xlist = type { ptr, ptr, %struct.xlist_data, i8 }
%struct.xlist_data = type { ptr, ptr, ptr, i64 }
%struct.XSocket = type { i32, %union.xsock_addr_t, i32, i32, i16, i32, i32, i32, i32, ptr }
%union.xsock_addr_t = type { %struct.sockaddr_in, [96 x i8] }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }

@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @signal_callback(i32 noundef) #0

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

declare void @XLog_Display(i32 noundef, i8 noundef zeroext, ptr noundef, ...) #2

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

declare ptr @XSock_ErrStr(ptr noundef) #2

declare void @XSock_Close(ptr noundef) #2

declare ptr @XEvents_RegisterEvent(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare ptr @XEvents_GetStatusStr(i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @event_callback(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca [2 x i32], align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.XEvents, align 8
  %9 = alloca %struct.XSocket, align 8
  %10 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @XLog_Init(ptr noundef null, i16 noundef zeroext 203, i8 noundef zeroext 0)
  call void @XLog_TimeFormatSet(i32 noundef 1)
  call void @XLog_FlagsSet(i16 noundef zeroext 255)
  call void @XLog_IndentSet(i8 noundef zeroext 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %11 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
  store i32 15, ptr %11, align 4, !tbaa !5
  %12 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
  store i32 2, ptr %12, align 4, !tbaa !5
  %13 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
  %14 = call i32 @XSig_Register(ptr noundef %13, i64 noundef 2, ptr noundef @signal_callback)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 1864, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 152, ptr %9) #4
  %15 = load i32, ptr %4, align 4, !tbaa !5
  %16 = icmp slt i32 %15, 2
  br i1 %16, label %17, label %24

17:                                               ; preds = %2
  %18 = load ptr, ptr %5, align 8, !tbaa !9
  %19 = getelementptr inbounds ptr, ptr %18, i64 0
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 1, i8 noundef zeroext 1, ptr noundef @.str.28, ptr noundef %20)
  %21 = load ptr, ptr %5, align 8, !tbaa !9
  %22 = getelementptr inbounds ptr, ptr %21, i64 0
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 1, i8 noundef zeroext 1, ptr noundef @.str.29, ptr noundef %23)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %63

24:                                               ; preds = %2
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = getelementptr inbounds ptr, ptr %25, i64 1
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = load ptr, ptr %5, align 8, !tbaa !9
  %29 = getelementptr inbounds ptr, ptr %28, i64 2
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = call i32 @atoi(ptr noundef %30) #5
  %32 = trunc i32 %31 to i16
  %33 = call i32 @XSock_Create(ptr noundef %9, i32 noundef 1025, ptr noundef %27, i16 noundef zeroext %32)
  %34 = getelementptr inbounds %struct.XSocket, ptr %9, i32 0, i32 5
  %35 = load i32, ptr %34, align 8, !tbaa !11
  %36 = icmp eq i32 %35, -1
  br i1 %36, label %37, label %39

37:                                               ; preds = %24
  %38 = call ptr @XSock_ErrStr(ptr noundef %9)
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.12, ptr noundef %38)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %63

39:                                               ; preds = %24
  %40 = load ptr, ptr %5, align 8, !tbaa !9
  %41 = getelementptr inbounds ptr, ptr %40, i64 2
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = call i32 @atoi(ptr noundef %42) #5
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 4, i8 noundef zeroext 1, ptr noundef @.str.30, i32 noundef %43)
  %44 = call i32 @XEvents_Create(ptr noundef %8, i32 noundef 0, ptr noundef %9, ptr noundef @event_callback, i8 noundef zeroext 1)
  store i32 %44, ptr %7, align 4, !tbaa !5
  %45 = load i32, ptr %7, align 4, !tbaa !5
  %46 = icmp ne i32 %45, 11
  br i1 %46, label %47, label %50

47:                                               ; preds = %39
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = call ptr @XEvents_GetStatusStr(i32 noundef %48)
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.12, ptr noundef %49)
  call void @XSock_Close(ptr noundef %9)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %63

50:                                               ; preds = %39
  %51 = getelementptr inbounds %struct.XSocket, ptr %9, i32 0, i32 5
  %52 = load i32, ptr %51, align 8, !tbaa !11
  %53 = call ptr @XEvents_RegisterEvent(ptr noundef %8, ptr noundef null, i32 noundef %52, i32 noundef 1, i32 noundef 0)
  %54 = icmp eq ptr %53, null
  br i1 %54, label %55, label %56

55:                                               ; preds = %50
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.31)
  call void @XEvents_Destroy(ptr noundef %8)
  call void @XSock_Close(ptr noundef %9)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %63

56:                                               ; preds = %50
  br label %57

57:                                               ; preds = %60, %56
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = icmp eq i32 %58, 11
  br i1 %59, label %60, label %62

60:                                               ; preds = %57
  %61 = call i32 @XEvents_Service(ptr noundef %8, i32 noundef 100)
  store i32 %61, ptr %7, align 4, !tbaa !5
  br label %57, !llvm.loop !14

62:                                               ; preds = %57
  call void @XEvents_Destroy(ptr noundef %8)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %63

63:                                               ; preds = %62, %55, %47, %37, %17
  call void @llvm.lifetime.end.p0(i64 152, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 1864, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %64 = load i32, ptr %3, align 4
  ret i32 %64
}

declare void @XLog_Init(ptr noundef, i16 noundef zeroext, i8 noundef zeroext) #2

declare void @XLog_TimeFormatSet(i32 noundef) #2

declare void @XLog_FlagsSet(i16 noundef zeroext) #2

declare void @XLog_IndentSet(i8 noundef zeroext) #2

declare i32 @XSig_Register(ptr noundef, i64 noundef, ptr noundef) #2

declare i32 @XSock_Create(ptr noundef, i32 noundef, ptr noundef, i16 noundef zeroext) #2

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #3

declare i32 @XEvents_Create(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i8 noundef zeroext) #2

declare void @XEvents_Destroy(ptr noundef) #2

declare i32 @XEvents_Service(ptr noundef, i32 noundef) #2

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint nounwind willreturn memory(read) 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 = { nounwind willreturn memory(read) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 128}
!12 = !{!"XSocket", !6, i64 0, !7, i64 4, !6, i64 116, !6, i64 120, !13, i64 124, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !10, i64 144}
!13 = !{!"short", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"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"

%struct.XEvents = type { ptr, i32, ptr, ptr, i32, i32, i8, %struct.XHash }
%struct.XHash = type { ptr, ptr, i64, [32 x %struct.xlist] }
%struct.xlist = type { ptr, ptr, %struct.xlist_data, i8 }
%struct.xlist_data = type { ptr, ptr, ptr, i64 }
%struct.XSocket = type { i32, %union.xsock_addr_t, i32, i32, i16, i32, i32, i32, i32, ptr }
%union.xsock_addr_t = type { %struct.sockaddr_in, [96 x i8] }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }

@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @signal_callback(i32 noundef) #0

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

declare void @XLog_Display(i32 noundef, i8 noundef zeroext, ptr noundef, ...) local_unnamed_addr #2

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

declare ptr @XSock_ErrStr(ptr noundef) local_unnamed_addr #2

declare void @XSock_Close(ptr noundef) local_unnamed_addr #2

declare ptr @XEvents_RegisterEvent(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare ptr @XEvents_GetStatusStr(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @event_callback(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [2 x i32], align 4
  %4 = alloca %struct.XEvents, align 8
  %5 = alloca %struct.XSocket, align 8
  tail call void @XLog_Init(ptr noundef null, i16 noundef zeroext 203, i8 noundef zeroext 0) #4
  tail call void @XLog_TimeFormatSet(i32 noundef 1) #4
  tail call void @XLog_FlagsSet(i16 noundef zeroext 255) #4
  tail call void @XLog_IndentSet(i8 noundef zeroext 1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  store i32 15, ptr %3, align 4, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 2, ptr %6, align 4, !tbaa !5
  %7 = call i32 @XSig_Register(ptr noundef nonnull %3, i64 noundef 2, ptr noundef nonnull @signal_callback) #4
  call void @llvm.lifetime.start.p0(i64 1864, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %5) #4
  %8 = icmp slt i32 %0, 2
  br i1 %8, label %9, label %12

9:                                                ; preds = %2
  %10 = load ptr, ptr %1, align 8, !tbaa !9
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 1, i8 noundef zeroext 1, ptr noundef nonnull @.str.28, ptr noundef %10) #4
  %11 = load ptr, ptr %1, align 8, !tbaa !9
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 1, i8 noundef zeroext 1, ptr noundef nonnull @.str.29, ptr noundef %11) #4
  br label %39

12:                                               ; preds = %2
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %1, i64 16
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = call i32 @atoi(ptr nocapture noundef %16) #5
  %18 = trunc i32 %17 to i16
  %19 = call i32 @XSock_Create(ptr noundef nonnull %5, i32 noundef 1025, ptr noundef %14, i16 noundef zeroext %18) #4
  %20 = getelementptr inbounds i8, ptr %5, i64 128
  %21 = load i32, ptr %20, align 8, !tbaa !11
  %22 = icmp eq i32 %21, -1
  br i1 %22, label %23, label %25

23:                                               ; preds = %12
  %24 = call ptr @XSock_ErrStr(ptr noundef nonnull %5) #4
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.12, ptr noundef %24) #4
  br label %39

25:                                               ; preds = %12
  %26 = load ptr, ptr %15, align 8, !tbaa !9
  %27 = call i32 @atoi(ptr nocapture noundef %26) #5
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 4, i8 noundef zeroext 1, ptr noundef nonnull @.str.30, i32 noundef %27) #4
  %28 = call i32 @XEvents_Create(ptr noundef nonnull %4, i32 noundef 0, ptr noundef nonnull %5, ptr noundef nonnull @event_callback, i8 noundef zeroext 1) #4
  %.not = icmp eq i32 %28, 11
  br i1 %.not, label %31, label %29

29:                                               ; preds = %25
  %30 = call ptr @XEvents_GetStatusStr(i32 noundef %28) #4
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.12, ptr noundef %30) #4
  call void @XSock_Close(ptr noundef nonnull %5) #4
  br label %39

31:                                               ; preds = %25
  %32 = load i32, ptr %20, align 8, !tbaa !11
  %33 = call ptr @XEvents_RegisterEvent(ptr noundef nonnull %4, ptr noundef null, i32 noundef %32, i32 noundef 1, i32 noundef 0) #4
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %.preheader

35:                                               ; preds = %31
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.31) #4
  call void @XEvents_Destroy(ptr noundef nonnull %4) #4
  call void @XSock_Close(ptr noundef nonnull %5) #4
  br label %39

.preheader:                                       ; preds = %31, %.preheader
  %36 = call i32 @XEvents_Service(ptr noundef nonnull %4, i32 noundef 100) #4
  %37 = icmp eq i32 %36, 11
  br i1 %37, label %.preheader, label %38, !llvm.loop !14

38:                                               ; preds = %.preheader
  call void @XEvents_Destroy(ptr noundef nonnull %4) #4
  br label %39

39:                                               ; preds = %38, %35, %29, %23, %9
  %.09 = phi i32 [ 1, %9 ], [ 1, %23 ], [ 1, %29 ], [ 1, %35 ], [ 0, %38 ]
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 1864, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret i32 %.09
}

declare void @XLog_Init(ptr noundef, i16 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #2

declare void @XLog_TimeFormatSet(i32 noundef) local_unnamed_addr #2

declare void @XLog_FlagsSet(i16 noundef zeroext) local_unnamed_addr #2

declare void @XLog_IndentSet(i8 noundef zeroext) local_unnamed_addr #2

declare i32 @XSig_Register(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare i32 @XSock_Create(ptr noundef, i32 noundef, ptr noundef, i16 noundef zeroext) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #3

declare i32 @XEvents_Create(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #2

declare void @XEvents_Destroy(ptr noundef) local_unnamed_addr #2

declare i32 @XEvents_Service(ptr noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { nounwind willreturn memory(read) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 128}
!12 = !{!"XSocket", !6, i64 0, !7, i64 4, !6, i64 116, !6, i64 120, !13, i64 124, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !10, i64 144}
!13 = !{!"short", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass