; LLVM IR from CerebusOSS/CereLink :: cbhwlib/CCFUtilsBinary.ll (ZN14CCFUtilsBinary16WriteCCFNoPromptEPKc)

; 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.CCFUtils = type <{ ptr, ptr, i8, [7 x i8], ptr, i8, [7 x i8], ptr, i32, i32, i32, [4 x i8], ptr, i8, i8, [6 x i8] }>
%class.CCFUtilsBinary = type { %class.CCFUtils.base, [2 x i8], %"struct.ccf::ccfBinaryData" }
%class.CCFUtils.base = type <{ ptr, ptr, i8, [7 x i8], ptr, i8, [7 x i8], ptr, i32, i32, i32, [4 x i8], ptr, i8, i8 }>
%"struct.ccf::ccfBinaryData" = type <{ [160 x %struct.cbPKT_CHANINFO], %"struct.ccf::cbPKT_ADAPTFILTINFO_CB2005_37", %"struct.ccf::cbPKT_SS_DETECT_CB2005_37", %"struct.ccf::cbPKT_SS_ARTIF_REJECT_CB2005_37", [144 x %"struct.ccf::cbPKT_SS_NOISE_BOUNDARY_CB2005_37_type"], %"struct.ccf::cbPKT_SS_STATISTICS_CB2005_37_type", %"struct.ccf::cbPKT_SS_STATUS_CB2005_37", %"struct.ccf::cbPKT_SYSINFO_CB2005_37", [72 x %"struct.ccf::cbPKT_NTRODEINFO_CB2005_37"] }>
%struct.cbPKT_CHANINFO = type { %struct.cbPKT_HEADER, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.cbSCALING, %struct.cbFILTDESC, %struct.cbSCALING, %struct.cbFILTDESC, [16 x i8], i32, [4 x i32], %struct.cbSCALING, %struct.cbSCALING, i32, i32, i32, i32, %union.anon, i8, [2 x i8], i8, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, [5 x %struct.cbMANUALUNITMAPPING], [5 x [4 x %struct.cbHOOP]] }
%struct.cbPKT_HEADER = type { i64, i16, i16, i16, i8, i8 }
%struct.cbFILTDESC = type { [16 x i8], i32, i32, i32, i32, i32, i32 }
%struct.cbSCALING = type { i16, i16, i32, i32, i32, [8 x i8] }
%union.anon = type { %struct.anon }
%struct.anon = type { i16, i16, i32 }
%struct.cbMANUALUNITMAPPING = type { i16, [3 x i16], [3 x [3 x i16]], i16, i32 }
%struct.cbHOOP = type { i16, i16, i16, i16 }
%"struct.ccf::cbPKT_ADAPTFILTINFO_CB2005_37" = type { i32, i16, i8, i8, i32, i32, float, i32, i32 }
%"struct.ccf::cbPKT_SS_DETECT_CB2005_37" = type { i32, i16, i8, i8, float, float }
%"struct.ccf::cbPKT_SS_ARTIF_REJECT_CB2005_37" = type { i32, i16, i8, i8, i32, i32 }
%"struct.ccf::cbPKT_SS_NOISE_BOUNDARY_CB2005_37_type" = type { i32, i16, i8, i8, i32, [3 x float], [3 x [3 x float]] }
%"struct.ccf::cbPKT_SS_STATISTICS_CB2005_37_type" = type { i32, i16, i8, i8, i32, i32, i32, float, float, float, float, float, float, float, i32, i32 }
%"struct.ccf::cbPKT_SS_STATUS_CB2005_37" = type { i32, i16, i8, i8, %"struct.ccf::cbAdaptControl_37", %"struct.ccf::cbAdaptControl_37" }
%"struct.ccf::cbAdaptControl_37" = type { i32, float, float }
%"struct.ccf::cbPKT_SYSINFO_CB2005_37" = type { i32, i16, i8, i8, i32, i32, i32, i32, i32, i32 }
%"struct.ccf::cbPKT_NTRODEINFO_CB2005_37" = type { i32, i16, i8, i8, i32, [16 x i8], [6 x [5 x %"struct.ccf::cbMANUALUNITMAPPING_37"]], i16, i16, [4 x i16] }
%"struct.ccf::cbMANUALUNITMAPPING_37" = type { i16, [3 x i16], [3 x [3 x i16]], i16, i32 }

@_ZN14CCFUtilsBinary20m_szConfigFileHeaderE = external dso_local constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14CCFUtilsBinary16WriteCCFNoPromptEPKc(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef %1) unnamed_addr #3 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca [11 x i8], align 1
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds %class.CCFUtils, ptr %10, i32 0, i32 12
  store ptr %11, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = call noalias ptr @fopen(ptr noundef %13, ptr noundef @.str.17)
  store ptr %14, ptr %6, align 8, !tbaa !5
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  store i32 -4, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %78

18:                                               ; preds = %2
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = call i64 @fwrite(ptr noundef @_ZN14CCFUtilsBinary20m_szConfigFileHeaderE, i64 noundef 6, i64 noundef 1, ptr noundef %19)
  call void @llvm.lifetime.start.p0(i64 11, ptr %8) #5
  call void @llvm.memset.p0.i64(ptr align 1 %8, i8 0, i64 11, i1 false)
  %21 = getelementptr inbounds [11 x i8], ptr %8, i64 0, i64 0
  %22 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %21, i64 noundef 10, ptr noundef @.str.18, i32 noundef 4, i32 noundef 1) #5
  %23 = getelementptr inbounds [11 x i8], ptr %8, i64 0, i64 0
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call i64 @fwrite(ptr noundef %23, i64 noundef 10, i64 noundef 1, ptr noundef %24)
  %26 = getelementptr inbounds %class.CCFUtilsBinary, ptr %10, i32 0, i32 2
  %27 = getelementptr inbounds %"struct.ccf::ccfBinaryData", ptr %26, i32 0, i32 0
  %28 = getelementptr inbounds [160 x %struct.cbPKT_CHANINFO], ptr %27, i64 0, i64 0
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call i64 @fwrite(ptr noundef %28, i64 noundef 1, i64 noundef 108800, ptr noundef %29)
  %31 = getelementptr inbounds %class.CCFUtilsBinary, ptr %10, i32 0, i32 2
  %32 = getelementptr inbounds %"struct.ccf::ccfBinaryData", ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = call i64 @fwrite(ptr noundef %32, i64 noundef 28, i64 noundef 1, ptr noundef %33)
  %35 = getelementptr inbounds %class.CCFUtilsBinary, ptr %10, i32 0, i32 2
  %36 = getelementptr inbounds %"struct.ccf::ccfBinaryData", ptr %35, i32 0, i32 2
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = call i64 @fwrite(ptr noundef %36, i64 noundef 16, i64 noundef 1, ptr noundef %37)
  %39 = getelementptr inbounds %class.CCFUtilsBinary, ptr %10, i32 0, i32 2
  %40 = getelementptr inbounds %"struct.ccf::ccfBinaryData", ptr %39, i32 0, i32 3
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = call i64 @fwrite(ptr noundef %40, i64 noundef 16, i64 noundef 1, ptr noundef %41)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !13
  br label %43

43:                                               ; preds = %55, %18
  %44 = load i32, ptr %9, align 4, !tbaa !13
  %45 = icmp slt i32 %44, 144
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %58

47:                                               ; preds = %43
  %48 = getelementptr inbounds %class.CCFUtilsBinary, ptr %10, i32 0, i32 2
  %49 = getelementptr inbounds %"struct.ccf::ccfBinaryData", ptr %48, i32 0, i32 4
  %50 = load i32, ptr %9, align 4, !tbaa !13
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [144 x %"struct.ccf::cbPKT_SS_NOISE_BOUNDARY_CB2005_37_type"], ptr %49, i64 0, i64 %51
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = call i64 @fwrite(ptr noundef %52, i64 noundef 60, i64 noundef 1, ptr noundef %53)
  br label %55

55:                                               ; preds = %47
  %56 = load i32, ptr %9, align 4, !tbaa !13
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %9, align 4, !tbaa !13
  br label %43, !llvm.loop !14

58:                                               ; preds = %46
  %59 = getelementptr inbounds %class.CCFUtilsBinary, ptr %10, i32 0, i32 2
  %60 = getelementptr inbounds %"struct.ccf::ccfBinaryData", ptr %59, i32 0, i32 5
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = call i64 @fwrite(ptr noundef %60, i64 noundef 56, i64 noundef 1, ptr noundef %61)
  %63 = getelementptr inbounds %class.CCFUtilsBinary, ptr %10, i32 0, i32 2
  %64 = getelementptr inbounds %"struct.ccf::ccfBinaryData", ptr %63, i32 0, i32 6
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = call i64 @fwrite(ptr noundef %64, i64 noundef 32, i64 noundef 1, ptr noundef %65)
  %67 = getelementptr inbounds %class.CCFUtilsBinary, ptr %10, i32 0, i32 2
  %68 = getelementptr inbounds %"struct.ccf::ccfBinaryData", ptr %67, i32 0, i32 7
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = call i64 @fwrite(ptr noundef %68, i64 noundef 32, i64 noundef 1, ptr noundef %69)
  %71 = getelementptr inbounds %class.CCFUtilsBinary, ptr %10, i32 0, i32 2
  %72 = getelementptr inbounds %"struct.ccf::ccfBinaryData", ptr %71, i32 0, i32 8
  %73 = getelementptr inbounds [72 x %"struct.ccf::cbPKT_NTRODEINFO_CB2005_37"], ptr %72, i64 0, i64 0
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = call i64 @fwrite(ptr noundef %73, i64 noundef 72000, i64 noundef 1, ptr noundef %74)
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = call i32 @fclose(ptr noundef %76)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 11, ptr %8) #5
  br label %78

78:                                               ; preds = %58, %17
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %79 = load i32, ptr %3, align 4
  ret i32 %79
}

declare i64 @fwrite(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 64}
!10 = !{!"_ZTS8CCFUtils", !6, i64 8, !11, i64 16, !6, i64 24, !11, i64 32, !6, i64 40, !12, i64 48, !12, i64 52, !12, i64 56, !6, i64 64, !11, i64 72, !11, i64 73}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!12, !12, 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.ccf::cbPKT_SS_NOISE_BOUNDARY_CB2005_37_type" = type { i32, i16, i8, i8, i32, [3 x float], [3 x [3 x float]] }

@_ZN14CCFUtilsBinary20m_szConfigFileHeaderE = external dso_local constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture 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

; Function Attrs: mustprogress nofree nounwind uwtable
define dso_local noundef range(i32 -4, 1) i32 @_ZN14CCFUtilsBinary16WriteCCFNoPromptEPKc(ptr nocapture noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef %1) unnamed_addr #3 align 2 {
  %3 = alloca [11 x i8], align 1
  %4 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %1, ptr %4, align 8, !tbaa !5
  %5 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str.17)
  %6 = icmp eq ptr %5, null
  br i1 %6, label %33, label %7

7:                                                ; preds = %2
  %8 = tail call i64 @fwrite(ptr noundef nonnull @_ZN14CCFUtilsBinary20m_szConfigFileHeaderE, i64 noundef 6, i64 noundef 1, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 11, ptr nonnull %3) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(11) %3, i8 0, i64 11, i1 false)
  %9 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 10, ptr noundef nonnull @.str.18, i32 noundef 4, i32 noundef 1) #4
  %10 = call i64 @fwrite(ptr noundef nonnull %3, i64 noundef 10, i64 noundef 1, ptr noundef nonnull %5)
  %11 = getelementptr inbounds i8, ptr %0, i64 76
  %12 = tail call i64 @fwrite(ptr noundef nonnull %11, i64 noundef 1, i64 noundef 108800, ptr noundef nonnull %5)
  %13 = getelementptr inbounds i8, ptr %0, i64 108876
  %14 = tail call i64 @fwrite(ptr noundef nonnull %13, i64 noundef 28, i64 noundef 1, ptr noundef nonnull %5)
  %15 = getelementptr inbounds i8, ptr %0, i64 108904
  %16 = tail call i64 @fwrite(ptr noundef nonnull %15, i64 noundef 16, i64 noundef 1, ptr noundef nonnull %5)
  %17 = getelementptr inbounds i8, ptr %0, i64 108920
  %18 = tail call i64 @fwrite(ptr noundef nonnull %17, i64 noundef 16, i64 noundef 1, ptr noundef nonnull %5)
  %19 = getelementptr inbounds i8, ptr %0, i64 108936
  br label %30

20:                                               ; preds = %30
  %21 = getelementptr inbounds i8, ptr %0, i64 117576
  %22 = tail call i64 @fwrite(ptr noundef nonnull %21, i64 noundef 56, i64 noundef 1, ptr noundef nonnull %5)
  %23 = getelementptr inbounds i8, ptr %0, i64 117632
  %24 = tail call i64 @fwrite(ptr noundef nonnull %23, i64 noundef 32, i64 noundef 1, ptr noundef nonnull %5)
  %25 = getelementptr inbounds i8, ptr %0, i64 117664
  %26 = tail call i64 @fwrite(ptr noundef nonnull %25, i64 noundef 32, i64 noundef 1, ptr noundef nonnull %5)
  %27 = getelementptr inbounds i8, ptr %0, i64 117696
  %28 = tail call i64 @fwrite(ptr noundef nonnull %27, i64 noundef 72000, i64 noundef 1, ptr noundef nonnull %5)
  %29 = tail call i32 @fclose(ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 11, ptr nonnull %3) #4
  br label %33

30:                                               ; preds = %7, %30
  %indvars.iv = phi i64 [ 0, %7 ], [ %indvars.iv.next, %30 ]
  %31 = getelementptr inbounds [144 x %"struct.ccf::cbPKT_SS_NOISE_BOUNDARY_CB2005_37_type"], ptr %19, i64 0, i64 %indvars.iv
  %32 = tail call i64 @fwrite(ptr noundef nonnull %31, i64 noundef 60, i64 noundef 1, ptr noundef nonnull %5)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 144
  br i1 %exitcond.not, label %20, label %30, !llvm.loop !12

33:                                               ; preds = %2, %20
  %.019 = phi i32 [ 0, %20 ], [ -4, %2 ]
  ret i32 %.019
}

; Function Attrs: nofree nounwind
declare noundef i64 @fwrite(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nofree 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 #4 = { 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 64}
!6 = !{!"_ZTS8CCFUtils", !7, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !7, i64 64, !10, i64 72, !10, i64 73}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


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