; LLVM IR from achilles288/robot-monitor-graphics :: src/base/bitmap_tiff.ll (ZNK3rmg6Bitmap8saveTIFFEPKc)

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

%"class.rmg::Bitmap" = type { i16, i16, i8, ptr }

@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@__const._ZNK3rmg6Bitmap8saveTIFFEPKc.extras = external hidden unnamed_addr constant [1 x i16], align 2

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

declare ptr @TIFFOpen(ptr noundef, ptr noundef) #1

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

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

declare void @TIFFClose(ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3rmg6Bitmap8saveTIFFEPKc(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca [65 x i8], align 16
  %8 = alloca [1 x i16], align 2
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = call ptr @TIFFOpen(ptr noundef %12, ptr noundef @.str.2)
  store ptr %13, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %19, label %16

16:                                               ; preds = %2
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %17)
  store i32 1, ptr %6, align 4
  br label %107

19:                                               ; preds = %2
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef %20, i32 noundef 305, ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 65, ptr %7) #5
  %22 = getelementptr inbounds [65 x i8], ptr %7, i64 0, i64 0
  %23 = call i32 @gethostname(ptr noundef %22, i64 noundef 65) #5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds [65 x i8], ptr %7, i64 0, i64 0
  %26 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef %24, i32 noundef 316, ptr noundef %25)
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef %27, i32 noundef 274, i32 noundef 1)
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.rmg::Bitmap", ptr %11, i32 0, i32 0
  %31 = load i16, ptr %30, align 8, !tbaa !9
  %32 = zext i16 %31 to i32
  %33 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef %29, i32 noundef 256, i32 noundef %32)
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.rmg::Bitmap", ptr %11, i32 0, i32 1
  %36 = load i16, ptr %35, align 2, !tbaa !12
  %37 = zext i16 %36 to i32
  %38 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef %34, i32 noundef 257, i32 noundef %37)
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef %39, i32 noundef 258, i32 noundef 8)
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef %41, i32 noundef 259, i32 noundef 5)
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.rmg::Bitmap", ptr %11, i32 0, i32 2
  %45 = load i8, ptr %44, align 4, !tbaa !13
  %46 = zext i8 %45 to i32
  %47 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef %43, i32 noundef 277, i32 noundef %46)
  %48 = getelementptr inbounds %"class.rmg::Bitmap", ptr %11, i32 0, i32 2
  %49 = load i8, ptr %48, align 4, !tbaa !13
  %50 = zext i8 %49 to i32
  %51 = icmp eq i32 %50, 1
  br i1 %51, label %52, label %55

52:                                               ; preds = %19
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef %53, i32 noundef 262, i32 noundef 1)
  br label %67

55:                                               ; preds = %19
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef %56, i32 noundef 262, i32 noundef 2)
  %58 = getelementptr inbounds %"class.rmg::Bitmap", ptr %11, i32 0, i32 2
  %59 = load i8, ptr %58, align 4, !tbaa !13
  %60 = zext i8 %59 to i32
  %61 = icmp eq i32 %60, 4
  br i1 %61, label %62, label %66

62:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %8, ptr align 2 @__const._ZNK3rmg6Bitmap8saveTIFFEPKc.extras, i64 2, i1 false)
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds [1 x i16], ptr %8, i64 0, i64 0
  %65 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef %63, i32 noundef 338, i32 noundef 1, ptr noundef %64)
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #5
  br label %66

66:                                               ; preds = %62, %55
  br label %67

67:                                               ; preds = %66, %52
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef %68, i32 noundef 284, i32 noundef 1)
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef %70, i32 noundef 296, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %72 = getelementptr inbounds %"class.rmg::Bitmap", ptr %11, i32 0, i32 0
  %73 = load i16, ptr %72, align 8, !tbaa !9
  %74 = zext i16 %73 to i32
  %75 = getelementptr inbounds %"class.rmg::Bitmap", ptr %11, i32 0, i32 2
  %76 = load i8, ptr %75, align 4, !tbaa !13
  %77 = zext i8 %76 to i32
  %78 = mul nsw i32 %74, %77
  store i32 %78, ptr %9, align 4, !tbaa !14
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = load i32, ptr %9, align 4, !tbaa !14
  %82 = call i32 @TIFFDefaultStripSize(ptr noundef %80, i32 noundef %81)
  %83 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef %79, i32 noundef 278, i32 noundef %82)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !14
  br label %84

84:                                               ; preds = %102, %67
  %85 = load i32, ptr %10, align 4, !tbaa !14
  %86 = getelementptr inbounds %"class.rmg::Bitmap", ptr %11, i32 0, i32 1
  %87 = load i16, ptr %86, align 2, !tbaa !12
  %88 = zext i16 %87 to i32
  %89 = icmp slt i32 %85, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %84
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %105

91:                                               ; preds = %84
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %"class.rmg::Bitmap", ptr %11, i32 0, i32 3
  %94 = load ptr, ptr %93, align 8, !tbaa !16
  %95 = load i32, ptr %10, align 4, !tbaa !14
  %96 = load i32, ptr %9, align 4, !tbaa !14
  %97 = mul i32 %95, %96
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds i8, ptr %94, i64 %98
  %100 = load i32, ptr %10, align 4, !tbaa !14
  %101 = call i32 @TIFFWriteScanline(ptr noundef %92, ptr noundef %99, i32 noundef %100, i16 noundef zeroext 0)
  br label %102

102:                                              ; preds = %91
  %103 = load i32, ptr %10, align 4, !tbaa !14
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %10, align 4, !tbaa !14
  br label %84, !llvm.loop !17

105:                                              ; preds = %90
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  call void @TIFFClose(ptr noundef %106)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 65, ptr %7) #5
  store i32 0, ptr %6, align 4
  br label %107

107:                                              ; preds = %105, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  %108 = load i32, ptr %6, align 4
  switch i32 %108, label %110 [
    i32 0, label %109
    i32 1, label %109
  ]

109:                                              ; preds = %107, %107
  ret void

110:                                              ; preds = %107
  unreachable
}

declare i32 @TIFFSetField(ptr noundef, i32 noundef, ...) #1

; Function Attrs: nounwind
declare i32 @gethostname(ptr noundef, i64 noundef) #3

; 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) #4

declare i32 @TIFFDefaultStripSize(ptr noundef, i32 noundef) #1

declare i32 @TIFFWriteScanline(ptr noundef, ptr noundef, i32 noundef, i16 noundef zeroext) #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 = { 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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, !11, i64 0}
!10 = !{!"_ZTSN3rmg6BitmapE", !11, i64 0, !11, i64 2, !7, i64 4, !6, i64 8}
!11 = !{!"short", !7, i64 0}
!12 = !{!10, !11, i64 2}
!13 = !{!10, !7, i64 4}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!10, !6, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"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"

@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@__const._ZNK3rmg6Bitmap8saveTIFFEPKc.extras = external hidden unnamed_addr constant [1 x i16], align 2

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

declare ptr @TIFFOpen(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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) #0

declare void @TIFFClose(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3rmg6Bitmap8saveTIFFEPKc(ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %0, ptr noundef %1) local_unnamed_addr #3 align 2 {
  %3 = alloca [65 x i8], align 16
  %4 = alloca [1 x i16], align 2
  %5 = tail call ptr @TIFFOpen(ptr noundef %1, ptr noundef nonnull @.str.2)
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %6, label %8

6:                                                ; preds = %2
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef %1)
  br label %59

8:                                                ; preds = %2
  %9 = tail call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef nonnull %5, i32 noundef 305, ptr noundef nonnull @.str.4)
  call void @llvm.lifetime.start.p0(i64 65, ptr nonnull %3) #5
  %10 = call i32 @gethostname(ptr noundef nonnull %3, i64 noundef 65) #5
  %11 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef nonnull %5, i32 noundef 316, ptr noundef nonnull %3)
  %12 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef nonnull %5, i32 noundef 274, i32 noundef 1)
  %13 = load i16, ptr %0, align 8, !tbaa !5
  %14 = zext i16 %13 to i32
  %15 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef nonnull %5, i32 noundef 256, i32 noundef %14)
  %16 = getelementptr inbounds i8, ptr %0, i64 2
  %17 = load i16, ptr %16, align 2, !tbaa !11
  %18 = zext i16 %17 to i32
  %19 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef nonnull %5, i32 noundef 257, i32 noundef %18)
  %20 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef nonnull %5, i32 noundef 258, i32 noundef 8)
  %21 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef nonnull %5, i32 noundef 259, i32 noundef 5)
  %22 = getelementptr inbounds i8, ptr %0, i64 4
  %23 = load i8, ptr %22, align 4, !tbaa !12
  %24 = zext i8 %23 to i32
  %25 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef nonnull %5, i32 noundef 277, i32 noundef %24)
  %26 = load i8, ptr %22, align 4, !tbaa !12
  %27 = icmp eq i8 %26, 1
  br i1 %27, label %28, label %30

28:                                               ; preds = %8
  %29 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef nonnull %5, i32 noundef 262, i32 noundef 1)
  br label %37

30:                                               ; preds = %8
  %31 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef nonnull %5, i32 noundef 262, i32 noundef 2)
  %32 = load i8, ptr %22, align 4, !tbaa !12
  %33 = icmp eq i8 %32, 4
  br i1 %33, label %34, label %37

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #5
  %35 = load i16, ptr @__const._ZNK3rmg6Bitmap8saveTIFFEPKc.extras, align 2
  store i16 %35, ptr %4, align 2
  %36 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef nonnull %5, i32 noundef 338, i32 noundef 1, ptr noundef nonnull %4)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #5
  br label %37

37:                                               ; preds = %30, %34, %28
  %38 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef nonnull %5, i32 noundef 284, i32 noundef 1)
  %39 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef nonnull %5, i32 noundef 296, i32 noundef 1)
  %40 = load i16, ptr %0, align 8, !tbaa !5
  %41 = zext i16 %40 to i32
  %42 = load i8, ptr %22, align 4, !tbaa !12
  %43 = zext i8 %42 to i32
  %44 = mul nuw nsw i32 %43, %41
  %45 = call i32 @TIFFDefaultStripSize(ptr noundef nonnull %5, i32 noundef %44)
  %46 = call i32 (ptr, i32, ...) @TIFFSetField(ptr noundef nonnull %5, i32 noundef 278, i32 noundef %45)
  %47 = load i16, ptr %16, align 2, !tbaa !11
  %.not28 = icmp eq i16 %47, 0
  br i1 %.not28, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %37
  %48 = getelementptr inbounds i8, ptr %0, i64 8
  br label %49

._crit_edge:                                      ; preds = %49, %37
  call void @TIFFClose(ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 65, ptr nonnull %3) #5
  br label %59

49:                                               ; preds = %.lr.ph, %49
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %49 ]
  %50 = load ptr, ptr %48, align 8, !tbaa !13
  %51 = trunc nuw nsw i64 %indvars.iv to i32
  %52 = mul i32 %44, %51
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds i8, ptr %50, i64 %53
  %55 = call i32 @TIFFWriteScanline(ptr noundef nonnull %5, ptr noundef %54, i32 noundef %51, i16 noundef zeroext 0)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %56 = load i16, ptr %16, align 2, !tbaa !11
  %57 = zext i16 %56 to i64
  %58 = icmp ult i64 %indvars.iv.next, %57
  br i1 %58, label %49, label %._crit_edge, !llvm.loop !14

59:                                               ; preds = %._crit_edge, %6
  ret void
}

declare i32 @TIFFSetField(ptr noundef, i32 noundef, ...) local_unnamed_addr #1

; Function Attrs: nounwind
declare i32 @gethostname(ptr noundef, i64 noundef) local_unnamed_addr #4

declare i32 @TIFFDefaultStripSize(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @TIFFWriteScanline(ptr noundef, ptr noundef, i32 noundef, i16 noundef zeroext) local_unnamed_addr #1

attributes #0 = { mustprogress 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 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 0}
!6 = !{!"_ZTSN3rmg6BitmapE", !7, i64 0, !7, i64 2, !8, i64 4, !10, i64 8}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 2}
!12 = !{!6, !8, i64 4}
!13 = !{!6, !10, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass