; LLVM IR from DroneBridge/DroneBridge :: InjectionTest (receive_main)

; 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.db_socket_t = type { i32, %struct.sockaddr_ll }
%struct.sockaddr_ll = type { i16, i16, i32, i16, i8, i8, [8 x i8] }
%struct.sigaction = type { %union.anon, %struct.__sigset_t, i32, ptr }
%union.anon = type { ptr }
%struct.__sigset_t = type { [16 x i64] }

@keep_going = external dso_local global i32, align 4
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [66 x i8], align 1

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

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

; 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 [2048 x i8], align 16
  %7 = alloca [2048 x i8], align 16
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca [4 x [16 x i8]], align 16
  %12 = alloca [4 x %struct.db_socket_t], align 16
  %13 = alloca %struct.db_socket_t, align 4
  %14 = alloca %struct.sigaction, align 8
  %15 = alloca i16, align 2
  %16 = alloca i64, align 8
  %17 = alloca i16, align 2
  %18 = alloca i8, align 1
  %19 = 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 @llvm.lifetime.start.p0(i64 2048, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 2048, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  store i8 0, ptr %8, align 1, !tbaa !11
  %20 = getelementptr inbounds [2048 x i8], ptr %6, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %20, i8 0, i64 2048, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  store i8 -56, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  store i8 109, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #6
  %21 = getelementptr inbounds [4 x [16 x i8]], ptr %11, i64 0, i64 0
  %22 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %23 = call ptr @strncpy(ptr noundef %22, ptr noundef @.str.1, i64 noundef 16) #6
  call void @llvm.lifetime.start.p0(i64 96, ptr %12) #6
  %24 = getelementptr inbounds [4 x %struct.db_socket_t], ptr %12, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %24, i8 0, i64 4, i1 false)
  %25 = getelementptr inbounds [4 x %struct.db_socket_t], ptr %12, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  %26 = getelementptr inbounds [4 x [16 x i8]], ptr %11, i64 0, i64 0
  %27 = getelementptr inbounds [16 x i8], ptr %26, i64 0, i64 0
  %28 = load i8, ptr %9, align 1, !tbaa !11
  %29 = load i8, ptr %10, align 1, !tbaa !11
  call void @open_db_socket(ptr dead_on_unwind writable sret(%struct.db_socket_t) align 4 %13, ptr noundef %27, i8 noundef zeroext %28, i8 noundef signext %29, i32 noundef 6, i8 noundef zeroext 1, i8 noundef zeroext 5, i8 noundef zeroext 2)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 4 %13, i64 24, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 152, ptr %14) #6
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 152, i1 false)
  %30 = getelementptr inbounds %struct.sigaction, ptr %14, i32 0, i32 0
  store ptr @sig_handler, ptr %30, align 8, !tbaa !11
  %31 = call i32 @sigaction(i32 noundef 15, ptr noundef %14, ptr noundef null) #6
  %32 = call i32 @sigaction(i32 noundef 2, ptr noundef %14, ptr noundef null) #6
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %34

34:                                               ; preds = %37, %2
  %35 = load i32, ptr @keep_going, align 4, !tbaa !5
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %57

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #6
  store i16 0, ptr %15, align 2, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %38 = getelementptr inbounds [4 x %struct.db_socket_t], ptr %12, i64 0, i64 0
  %39 = getelementptr inbounds %struct.db_socket_t, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 16, !tbaa !15
  %41 = getelementptr inbounds [2048 x i8], ptr %6, i64 0, i64 0
  %42 = call i64 @recv(i32 noundef %40, ptr noundef %41, i64 noundef 2048, i32 noundef 0)
  store i64 %42, ptr %16, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #6
  %43 = getelementptr inbounds [2048 x i8], ptr %6, i64 0, i64 0
  %44 = load i64, ptr %16, align 8, !tbaa !18
  %45 = getelementptr inbounds [2048 x i8], ptr %7, i64 0, i64 0
  %46 = call zeroext i16 @get_db_payload(ptr noundef %43, i64 noundef %44, ptr noundef %45, ptr noundef %8, ptr noundef %15)
  store i16 %46, ptr %17, align 2, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  %47 = getelementptr inbounds [2048 x i8], ptr %6, i64 0, i64 0
  %48 = load i16, ptr %15, align 2, !tbaa !13
  %49 = zext i16 %48 to i32
  %50 = call signext i8 @get_rssi(ptr noundef %47, i32 noundef %49)
  store i8 %50, ptr %18, align 1, !tbaa !11
  %51 = load i64, ptr %16, align 8, !tbaa !18
  %52 = load i16, ptr %17, align 2, !tbaa !13
  %53 = zext i16 %52 to i32
  %54 = load i8, ptr %18, align 1, !tbaa !11
  %55 = sext i8 %54 to i32
  %56 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %51, i32 noundef %53, i32 noundef %55)
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #6
  br label %34, !llvm.loop !20

57:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %69, %57
  %59 = load i32, ptr %19, align 4, !tbaa !5
  %60 = icmp slt i32 %59, 4
  br i1 %60, label %62, label %61

61:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %72

62:                                               ; preds = %58
  %63 = load i32, ptr %19, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [4 x %struct.db_socket_t], ptr %12, i64 0, i64 %64
  %66 = getelementptr inbounds %struct.db_socket_t, ptr %65, i32 0, i32 0
  %67 = load i32, ptr %66, align 8, !tbaa !15
  %68 = call i32 @close(i32 noundef %67)
  br label %69

69:                                               ; preds = %62
  %70 = load i32, ptr %19, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %19, align 4, !tbaa !5
  br label %58, !llvm.loop !22

72:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 152, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %6) #6
  ret i32 0
}

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

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

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #4

declare void @open_db_socket(ptr dead_on_unwind writable sret(%struct.db_socket_t) align 4, ptr noundef, i8 noundef zeroext, i8 noundef signext, i32 noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #1

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

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

; Function Attrs: nounwind
declare i32 @sigaction(i32 noundef, ptr noundef, ptr noundef) #4

declare i64 @recv(i32 noundef, ptr noundef, i64 noundef, i32 noundef) #1

declare zeroext i16 @get_db_payload(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare signext i8 @get_rssi(ptr noundef, i32 noundef) #1

declare i32 @close(i32 noundef) #1

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 = { "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 willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 = !{!"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 = !{!7, !7, i64 0}
!12 = !{i64 0, i64 4, !5, i64 4, i64 2, !13, i64 6, i64 2, !13, i64 8, i64 4, !5, i64 12, i64 2, !13, i64 14, i64 1, !11, i64 15, i64 1, !11, i64 16, i64 8, !11}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"", !6, i64 0, !17, i64 4}
!17 = !{!"sockaddr_ll", !14, i64 0, !14, i64 2, !6, i64 4, !14, i64 8, !7, i64 10, !7, i64 11, !7, i64 12}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}


; 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.db_socket_t = type { i32, %struct.sockaddr_ll }
%struct.sockaddr_ll = type { i16, i16, i32, i16, i8, i8, [8 x i8] }
%struct.sigaction = type { %union.anon, %struct.__sigset_t, i32, ptr }
%union.anon = type { ptr }
%struct.__sigset_t = type { [16 x i64] }

@keep_going = external dso_local local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [66 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca [2048 x i8], align 16
  %4 = alloca [2048 x i8], align 16
  %5 = alloca i8, align 1
  %6 = alloca [4 x [16 x i8]], align 16
  %7 = alloca %struct.db_socket_t, align 4
  %8 = alloca %struct.sigaction, align 8
  %9 = alloca i16, align 2
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  store i8 0, ptr %5, align 1, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(2048) %3, i8 0, i64 2048, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #7
  %10 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef 16) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @open_db_socket(ptr dead_on_unwind nonnull writable sret(%struct.db_socket_t) align 4 %7, ptr noundef nonnull %6, i8 noundef zeroext -56, i8 noundef signext 109, i32 noundef 6, i8 noundef zeroext 1, i8 noundef zeroext 5, i8 noundef zeroext 2) #7
  %.sroa.0.0.copyload = load i32, ptr %7, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %8) #7
  %11 = getelementptr inbounds i8, ptr %8, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(152) %11, i8 0, i64 144, i1 false)
  store ptr @sig_handler, ptr %8, align 8, !tbaa !5
  %12 = call i32 @sigaction(i32 noundef 15, ptr noundef nonnull %8, ptr noundef null) #7
  %13 = call i32 @sigaction(i32 noundef 2, ptr noundef nonnull %8, ptr noundef null) #7
  %14 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %15 = load i32, ptr @keep_going, align 4, !tbaa !8
  %.not9 = icmp eq i32 %15, 0
  br i1 %.not9, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %.lr.ph, %2
  %16 = call i32 @close(i32 noundef %.sroa.0.0.copyload) #7
  %17 = call i32 @close(i32 noundef undef) #7
  %18 = call i32 @close(i32 noundef undef) #7
  %19 = call i32 @close(i32 noundef undef) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %3) #7
  ret i32 0

.lr.ph:                                           ; preds = %2, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %9) #7
  store i16 0, ptr %9, align 2, !tbaa !10
  %20 = call i64 @recv(i32 noundef %.sroa.0.0.copyload, ptr noundef nonnull %3, i64 noundef 2048, i32 noundef 0) #7
  %21 = call zeroext i16 @get_db_payload(ptr noundef nonnull %3, i64 noundef %20, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %9) #7
  %22 = load i16, ptr %9, align 2, !tbaa !10
  %23 = zext i16 %22 to i32
  %24 = call signext i8 @get_rssi(ptr noundef nonnull %3, i32 noundef %23) #7
  %25 = zext i16 %21 to i32
  %26 = sext i8 %24 to i32
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %20, i32 noundef %25, i32 noundef %26)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %9) #7
  %28 = load i32, ptr @keep_going, align 4, !tbaa !8
  %.not = icmp eq i32 %28, 0
  br i1 %.not, label %.preheader, label %.lr.ph, !llvm.loop !12
}

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #4

declare void @open_db_socket(ptr dead_on_unwind writable sret(%struct.db_socket_t) align 4, ptr noundef, i8 noundef zeroext, i8 noundef signext, i32 noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #5

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

; Function Attrs: nounwind
declare i32 @sigaction(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

declare i64 @recv(i32 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #5

declare zeroext i16 @get_db_payload(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

declare signext i8 @get_rssi(ptr noundef, i32 noundef) local_unnamed_addr #5

declare i32 @close(i32 noundef) local_unnamed_addr #5

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 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { "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 #6 = { 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 #7 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


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