; LLVM IR from DanEngelbrecht/longtail :: lib/lz4/ext (lz4frame)

; 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.LZ4F_cctx_s = type { %struct.LZ4F_CustomMem, %struct.LZ4F_preferences_t, i32, i32, ptr, i64, i64, ptr, ptr, i64, i64, %struct.XXH32_state_s, ptr, i16, i16, i32 }
%struct.LZ4F_CustomMem = type { ptr, ptr, ptr, ptr }
%struct.LZ4F_preferences_t = type { %struct.LZ4F_frameInfo_t, i32, i32, i32, [3 x i32] }
%struct.LZ4F_frameInfo_t = type { i32, i32, i32, i32, i64, i32, i32 }
%struct.XXH32_state_s = type { i32, i32, i32, i32, i32, i32, [4 x i32], i32, i32 }

; Function Attrs: nounwind uwtable
declare hidden i64 @LZ4F_returnErrorCode(i32 noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @LZ4F_flush(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %15, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  %16 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %16, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %17, i32 0, i32 9
  %19 = load i64, ptr %18, align 8, !tbaa !11
  %20 = icmp eq i64 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %4
  store i64 0, ptr %5, align 8
  store i32 1, ptr %13, align 4
  br label %135

22:                                               ; preds = %4
  br label %23

23:                                               ; preds = %22
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %24, i32 0, i32 3
  %26 = load i32, ptr %25, align 4, !tbaa !20
  %27 = icmp ne i32 %26, 1
  br i1 %27, label %28, label %30

28:                                               ; preds = %23
  %29 = call i64 @LZ4F_returnErrorCode(i32 noundef 20)
  store i64 %29, ptr %5, align 8
  store i32 1, ptr %13, align 4
  br label %135

30:                                               ; preds = %23
  br label %31

31:                                               ; preds = %30
  br label %32

32:                                               ; preds = %31
  br label %33

33:                                               ; preds = %32
  %34 = load i64, ptr %8, align 8, !tbaa !9
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %35, i32 0, i32 9
  %37 = load i64, ptr %36, align 8, !tbaa !11
  %38 = add i64 %37, 4
  %39 = add i64 %38, 4
  %40 = icmp ult i64 %34, %39
  br i1 %40, label %41, label %43

41:                                               ; preds = %33
  %42 = call i64 @LZ4F_returnErrorCode(i32 noundef 11)
  store i64 %42, ptr %5, align 8
  store i32 1, ptr %13, align 4
  br label %135

43:                                               ; preds = %33
  br label %44

44:                                               ; preds = %43
  br label %45

45:                                               ; preds = %44
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %47, i32 0, i32 1
  %49 = getelementptr inbounds %struct.LZ4F_preferences_t, ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds %struct.LZ4F_frameInfo_t, ptr %49, i32 0, i32 1
  %51 = load i32, ptr %50, align 4, !tbaa !21
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %52, i32 0, i32 1
  %54 = getelementptr inbounds %struct.LZ4F_preferences_t, ptr %53, i32 0, i32 1
  %55 = load i32, ptr %54, align 8, !tbaa !22
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %56, i32 0, i32 15
  %58 = load i32, ptr %57, align 4, !tbaa !23
  %59 = call ptr @LZ4F_selectCompression(i32 noundef %51, i32 noundef %55, i32 noundef %58)
  store ptr %59, ptr %12, align 8, !tbaa !5
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %61, i32 0, i32 8
  %63 = load ptr, ptr %62, align 8, !tbaa !24
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %64, i32 0, i32 9
  %66 = load i64, ptr %65, align 8, !tbaa !11
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %68, i32 0, i32 12
  %70 = load ptr, ptr %69, align 8, !tbaa !25
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %71, i32 0, i32 1
  %73 = getelementptr inbounds %struct.LZ4F_preferences_t, ptr %72, i32 0, i32 1
  %74 = load i32, ptr %73, align 8, !tbaa !22
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %75, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !26
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %78, i32 0, i32 1
  %80 = getelementptr inbounds %struct.LZ4F_preferences_t, ptr %79, i32 0, i32 0
  %81 = getelementptr inbounds %struct.LZ4F_frameInfo_t, ptr %80, i32 0, i32 6
  %82 = load i32, ptr %81, align 4, !tbaa !27
  %83 = call i64 @LZ4F_makeBlock(ptr noundef %60, ptr noundef %63, i64 noundef %66, ptr noundef %67, ptr noundef %70, i32 noundef %74, ptr noundef %77, i32 noundef %82)
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i64 %83
  store ptr %85, ptr %11, align 8, !tbaa !5
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %86, i32 0, i32 1
  %88 = getelementptr inbounds %struct.LZ4F_preferences_t, ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds %struct.LZ4F_frameInfo_t, ptr %88, i32 0, i32 1
  %90 = load i32, ptr %89, align 4, !tbaa !21
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %100

92:                                               ; preds = %45
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %93, i32 0, i32 9
  %95 = load i64, ptr %94, align 8, !tbaa !11
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %96, i32 0, i32 8
  %98 = load ptr, ptr %97, align 8, !tbaa !24
  %99 = getelementptr inbounds i8, ptr %98, i64 %95
  store ptr %99, ptr %97, align 8, !tbaa !24
  br label %100

100:                                              ; preds = %92, %45
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %101, i32 0, i32 9
  store i64 0, ptr %102, align 8, !tbaa !11
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %103, i32 0, i32 8
  %105 = load ptr, ptr %104, align 8, !tbaa !24
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %106, i32 0, i32 5
  %108 = load i64, ptr %107, align 8, !tbaa !28
  %109 = getelementptr inbounds i8, ptr %105, i64 %108
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %110, i32 0, i32 7
  %112 = load ptr, ptr %111, align 8, !tbaa !29
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %113, i32 0, i32 6
  %115 = load i64, ptr %114, align 8, !tbaa !30
  %116 = getelementptr inbounds i8, ptr %112, i64 %115
  %117 = icmp ugt ptr %109, %116
  br i1 %117, label %118, label %129

118:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #2
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = call i32 @LZ4F_localSaveDict(ptr noundef %119)
  store i32 %120, ptr %14, align 4, !tbaa !31
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %121, i32 0, i32 7
  %123 = load ptr, ptr %122, align 8, !tbaa !29
  %124 = load i32, ptr %14, align 4, !tbaa !31
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds i8, ptr %123, i64 %125
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.LZ4F_cctx_s, ptr %127, i32 0, i32 8
  store ptr %126, ptr %128, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #2
  br label %129

129:                                              ; preds = %118, %100
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = ptrtoint ptr %130 to i64
  %133 = ptrtoint ptr %131 to i64
  %134 = sub i64 %132, %133
  store i64 %134, ptr %5, align 8
  store i32 1, ptr %13, align 4
  br label %135

135:                                              ; preds = %129, %41, %28, %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  %136 = load i64, ptr %5, align 8
  ret i64 %136
}

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

; Function Attrs: nounwind uwtable
declare hidden i64 @LZ4F_makeBlock(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @LZ4F_localSaveDict(ptr noundef) #0

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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 136}
!12 = !{!"LZ4F_cctx_s", !13, i64 0, !14, i64 32, !16, i64 88, !16, i64 92, !6, i64 96, !10, i64 104, !10, i64 112, !6, i64 120, !6, i64 128, !10, i64 136, !10, i64 144, !18, i64 152, !6, i64 200, !19, i64 208, !19, i64 210, !16, i64 212}
!13 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!"", !15, i64 0, !16, i64 32, !16, i64 36, !16, i64 40, !7, i64 44}
!15 = !{!"", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !17, i64 16, !16, i64 24, !16, i64 28}
!16 = !{!"int", !7, i64 0}
!17 = !{!"long long", !7, i64 0}
!18 = !{!"XXH32_state_s", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !7, i64 24, !16, i64 40, !16, i64 44}
!19 = !{!"short", !7, i64 0}
!20 = !{!12, !16, i64 92}
!21 = !{!12, !16, i64 36}
!22 = !{!12, !16, i64 64}
!23 = !{!12, !16, i64 212}
!24 = !{!12, !6, i64 128}
!25 = !{!12, !6, i64 200}
!26 = !{!12, !6, i64 96}
!27 = !{!12, !16, i64 60}
!28 = !{!12, !10, i64 104}
!29 = !{!12, !6, i64 120}
!30 = !{!12, !10, i64 112}
!31 = !{!16, !16, i64 0}


; 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: nounwind uwtable
declare hidden i64 @LZ4F_returnErrorCode(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i64 @LZ4F_flush(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr nocapture noundef readnone %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %0, i64 136
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = icmp eq i64 %6, 0
  br i1 %7, label %58, label %8

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %0, i64 92
  %10 = load i32, ptr %9, align 4, !tbaa !18
  %.not = icmp eq i32 %10, 1
  br i1 %.not, label %13, label %11

11:                                               ; preds = %8
  %12 = tail call i64 @LZ4F_returnErrorCode(i32 noundef 20)
  br label %58

13:                                               ; preds = %8
  %14 = add i64 %6, 8
  %15 = icmp ugt i64 %14, %2
  br i1 %15, label %16, label %18

16:                                               ; preds = %13
  %17 = tail call i64 @LZ4F_returnErrorCode(i32 noundef 11)
  br label %58

18:                                               ; preds = %13
  %19 = getelementptr inbounds i8, ptr %0, i64 36
  %20 = load i32, ptr %19, align 4, !tbaa !19
  %21 = getelementptr inbounds i8, ptr %0, i64 64
  %22 = load i32, ptr %21, align 8, !tbaa !20
  %23 = getelementptr inbounds i8, ptr %0, i64 212
  %24 = load i32, ptr %23, align 4, !tbaa !21
  %25 = tail call ptr @LZ4F_selectCompression(i32 noundef %20, i32 noundef %22, i32 noundef %24)
  %26 = getelementptr inbounds i8, ptr %0, i64 128
  %27 = load ptr, ptr %26, align 8, !tbaa !22
  %28 = load i64, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %0, i64 200
  %30 = load ptr, ptr %29, align 8, !tbaa !23
  %31 = load i32, ptr %21, align 8, !tbaa !20
  %32 = getelementptr inbounds i8, ptr %0, i64 96
  %33 = load ptr, ptr %32, align 8, !tbaa !24
  %34 = getelementptr inbounds i8, ptr %0, i64 60
  %35 = load i32, ptr %34, align 4, !tbaa !25
  %36 = tail call i64 @LZ4F_makeBlock(ptr noundef %1, ptr noundef %27, i64 noundef %28, ptr noundef %25, ptr noundef %30, i32 noundef %31, ptr noundef %33, i32 noundef %35)
  %37 = load i32, ptr %19, align 4, !tbaa !19
  %38 = icmp eq i32 %37, 0
  %.pre = load ptr, ptr %26, align 8, !tbaa !22
  br i1 %38, label %39, label %42

39:                                               ; preds = %18
  %40 = load i64, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %.pre, i64 %40
  store ptr %41, ptr %26, align 8, !tbaa !22
  br label %42

42:                                               ; preds = %39, %18
  %43 = phi ptr [ %41, %39 ], [ %.pre, %18 ]
  store i64 0, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %0, i64 104
  %45 = load i64, ptr %44, align 8, !tbaa !26
  %46 = getelementptr inbounds i8, ptr %43, i64 %45
  %47 = getelementptr inbounds i8, ptr %0, i64 120
  %48 = load ptr, ptr %47, align 8, !tbaa !27
  %49 = getelementptr inbounds i8, ptr %0, i64 112
  %50 = load i64, ptr %49, align 8, !tbaa !28
  %51 = getelementptr inbounds i8, ptr %48, i64 %50
  %52 = icmp ugt ptr %46, %51
  br i1 %52, label %53, label %58

53:                                               ; preds = %42
  %54 = tail call i32 @LZ4F_localSaveDict(ptr noundef nonnull %0)
  %55 = load ptr, ptr %47, align 8, !tbaa !27
  %56 = sext i32 %54 to i64
  %57 = getelementptr inbounds i8, ptr %55, i64 %56
  store ptr %57, ptr %26, align 8, !tbaa !22
  br label %58

58:                                               ; preds = %42, %53, %4, %16, %11
  %.0 = phi i64 [ %12, %11 ], [ %17, %16 ], [ 0, %4 ], [ %36, %53 ], [ %36, %42 ]
  ret i64 %.0
}

; Function Attrs: nounwind uwtable
declare hidden ptr @LZ4F_selectCompression(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i64 @LZ4F_makeBlock(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @LZ4F_localSaveDict(ptr noundef) local_unnamed_addr #0

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

!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, !15, i64 136}
!6 = !{!"LZ4F_cctx_s", !7, i64 0, !11, i64 32, !13, i64 88, !13, i64 92, !8, i64 96, !15, i64 104, !15, i64 112, !8, i64 120, !8, i64 128, !15, i64 136, !15, i64 144, !16, i64 152, !8, i64 200, !17, i64 208, !17, i64 210, !13, i64 212}
!7 = !{!"", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"", !12, i64 0, !13, i64 32, !13, i64 36, !13, i64 40, !9, i64 44}
!12 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !14, i64 16, !13, i64 24, !13, i64 28}
!13 = !{!"int", !9, i64 0}
!14 = !{!"long long", !9, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!"XXH32_state_s", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !9, i64 24, !13, i64 40, !13, i64 44}
!17 = !{!"short", !9, i64 0}
!18 = !{!6, !13, i64 92}
!19 = !{!6, !13, i64 36}
!20 = !{!6, !13, i64 64}
!21 = !{!6, !13, i64 212}
!22 = !{!6, !8, i64 128}
!23 = !{!6, !8, i64 200}
!24 = !{!6, !8, i64 96}
!25 = !{!6, !13, i64 60}
!26 = !{!6, !15, i64 104}
!27 = !{!6, !8, i64 120}
!28 = !{!6, !15, i64 112}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass