; LLVM IR from Montimage/mmt-security :: src/lib (message_t)

; 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.message_struct = type { i64, i64, i64, ptr, i16, %struct.mmt_bit_t, ptr, i32, i32, ptr, [32 x i8] }
%struct.mmt_bit_t = type { [32 x i8] }
%struct.message_element_struct = type { i32, i32, i32, ptr }
%struct.mmt_memory_struct = type { i32, i32, ptr }

@.str = external hidden unnamed_addr constant [80 x i8], align 1

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #1

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

declare zeroext i16 @mmt_sec_hash_proto_attribute(i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @set_element_data_message_t(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, i64 noundef %5) #3 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i64 %5, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.message_struct, ptr %18, i32 0, i32 7
  %20 = load i32, ptr %19, align 16, !tbaa !13
  %21 = zext i32 %20 to i64
  %22 = load i64, ptr %13, align 8, !tbaa !11
  %23 = add i64 %21, %22
  %24 = add i64 %23, 16
  %25 = add i64 %24, 1
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.message_struct, ptr %26, i32 0, i32 8
  %28 = load i32, ptr %27, align 4, !tbaa !17
  %29 = zext i32 %28 to i64
  %30 = icmp uge i64 %25, %29
  %31 = xor i1 %30, true
  %32 = xor i1 %31, true
  %33 = zext i1 %32 to i32
  %34 = sext i32 %33 to i64
  %35 = call i64 @llvm.expect.i64(i64 %34, i64 0)
  %36 = icmp ne i64 %35, 0
  br i1 %36, label %37, label %53

37:                                               ; preds = %6
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.message_struct, ptr %38, i32 0, i32 0
  %40 = load i64, ptr %39, align 64, !tbaa !18
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = load i32, ptr %10, align 4, !tbaa !9
  %43 = load i64, ptr %13, align 8, !tbaa !11
  %44 = add i64 %43, 16
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.message_struct, ptr %45, i32 0, i32 8
  %47 = load i32, ptr %46, align 4, !tbaa !17
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.message_struct, ptr %48, i32 0, i32 7
  %50 = load i32, ptr %49, align 16, !tbaa !13
  %51 = sub i32 %47, %50
  %52 = call ptr @mmt_sec_get_config_name(i32 noundef 0)
  call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 2, ptr noundef @.str, i64 noundef %40, i32 noundef %41, i32 noundef %42, i64 noundef %44, i32 noundef %51, ptr noundef %52)
  store i32 1, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %140

53:                                               ; preds = %6
  %54 = load i64, ptr %13, align 8, !tbaa !11
  %55 = icmp eq i64 %54, 0
  br i1 %55, label %59, label %56

56:                                               ; preds = %53
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = icmp eq ptr %57, null
  br label %59

59:                                               ; preds = %56, %53
  %60 = phi i1 [ true, %53 ], [ %58, %56 ]
  %61 = xor i1 %60, true
  %62 = xor i1 %61, true
  %63 = zext i1 %62 to i32
  %64 = sext i32 %63 to i64
  %65 = call i64 @llvm.expect.i64(i64 %64, i64 0)
  %66 = icmp ne i64 %65, 0
  br i1 %66, label %67, label %68

67:                                               ; preds = %59
  store i32 0, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %140

68:                                               ; preds = %59
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = icmp eq i32 %69, 354
  br i1 %70, label %71, label %85

71:                                               ; preds = %68
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = icmp eq i32 %72, 0
  br i1 %73, label %74, label %85

74:                                               ; preds = %71
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = load double, ptr %75, align 8, !tbaa !19
  %77 = fcmp oeq double %76, 0.000000e+00
  br i1 %77, label %78, label %85

78:                                               ; preds = %74
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = icmp ule i32 6, %79
  br i1 %80, label %81, label %85

81:                                               ; preds = %78
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = icmp ule i32 %82, 14
  br i1 %83, label %84, label %85

84:                                               ; preds = %81
  store i32 0, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %140

85:                                               ; preds = %81, %78, %74, %71, %68
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %9, align 4, !tbaa !9
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = call zeroext i16 @mmt_sec_hash_proto_attribute(i32 noundef %88, i32 noundef %89)
  %91 = zext i16 %90 to i32
  store i32 %91, ptr %16, align 4, !tbaa !9
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.message_struct, ptr %92, i32 0, i32 5
  %94 = load i32, ptr %16, align 4, !tbaa !9
  %95 = trunc i32 %94 to i8
  call void @mmt_bit_set(ptr noundef %93, i8 noundef zeroext %95)
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.message_struct, ptr %96, i32 0, i32 3
  %98 = load ptr, ptr %97, align 8, !tbaa !21
  %99 = load i32, ptr %16, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds %struct.message_element_struct, ptr %98, i64 %100
  store ptr %101, ptr %15, align 8, !tbaa !5
  %102 = load i32, ptr %9, align 4, !tbaa !9
  %103 = load ptr, ptr %15, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.message_element_struct, ptr %103, i32 0, i32 0
  store i32 %102, ptr %104, align 8, !tbaa !22
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.message_element_struct, ptr %106, i32 0, i32 1
  store i32 %105, ptr %107, align 4, !tbaa !24
  %108 = load i32, ptr %12, align 4, !tbaa !9
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.message_element_struct, ptr %109, i32 0, i32 2
  store i32 %108, ptr %110, align 8, !tbaa !25
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.message_struct, ptr %111, i32 0, i32 6
  %113 = load ptr, ptr %112, align 8, !tbaa !26
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.message_struct, ptr %114, i32 0, i32 7
  %116 = load i32, ptr %115, align 16, !tbaa !13
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds i8, ptr %113, i64 %117
  store ptr %118, ptr %14, align 8, !tbaa !5
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = load i64, ptr %13, align 8, !tbaa !11
  call void @mmt_mem_reset(ptr noundef %119, i64 noundef %120)
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.mmt_memory_struct, ptr %121, i32 0, i32 2
  %123 = load ptr, ptr %122, align 8, !tbaa !27
  %124 = load ptr, ptr %15, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.message_element_struct, ptr %124, i32 0, i32 3
  store ptr %123, ptr %125, align 8, !tbaa !29
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.message_element_struct, ptr %126, i32 0, i32 3
  %128 = load ptr, ptr %127, align 8, !tbaa !29
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = load i64, ptr %13, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %128, ptr align 1 %129, i64 %130, i1 false)
  %131 = load i64, ptr %13, align 8, !tbaa !11
  %132 = add i64 %131, 16
  %133 = add i64 %132, 1
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.message_struct, ptr %134, i32 0, i32 7
  %136 = load i32, ptr %135, align 16, !tbaa !13
  %137 = zext i32 %136 to i64
  %138 = add i64 %137, %133
  %139 = trunc i64 %138 to i32
  store i32 %139, ptr %135, align 16, !tbaa !13
  store i32 0, ptr %7, align 4
  store i32 1, ptr %17, align 4
  br label %140

140:                                              ; preds = %87, %84, %67, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %141 = load i32, ptr %7, align 4
  ret i32 %141
}

declare void @mmt_sec_log(i32 noundef, ptr noundef, ...) #2

declare ptr @mmt_sec_get_config_name(i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @mmt_bit_set(ptr noundef, i8 noundef zeroext) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @mmt_mem_reset(ptr noundef, i64 noundef) #4

; 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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 = { 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 = { inlinehint 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 80}
!14 = !{!"message_struct", !12, i64 0, !12, i64 8, !12, i64 16, !6, i64 24, !15, i64 32, !16, i64 34, !6, i64 72, !10, i64 80, !10, i64 84, !6, i64 88}
!15 = !{!"short", !7, i64 0}
!16 = !{!"", !7, i64 0}
!17 = !{!14, !10, i64 84}
!18 = !{!14, !12, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = !{!14, !6, i64 24}
!22 = !{!23, !10, i64 0}
!23 = !{!"message_element_struct", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16}
!24 = !{!23, !10, i64 4}
!25 = !{!23, !10, i64 8}
!26 = !{!14, !6, i64 72}
!27 = !{!28, !6, i64 8}
!28 = !{!"mmt_memory_struct", !10, i64 0, !10, i64 4, !6, i64 8}
!29 = !{!23, !6, i64 16}


; 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.message_element_struct = type { i32, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [80 x i8], align 1

declare zeroext i16 @mmt_sec_hash_proto_attribute(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @set_element_data_message_t(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef readonly %3, i32 noundef %4, i64 noundef %5) local_unnamed_addr #1 {
  %7 = getelementptr inbounds i8, ptr %0, i64 80
  %8 = load i32, ptr %7, align 16, !tbaa !5
  %9 = zext i32 %8 to i64
  %10 = add i64 %5, 17
  %11 = add i64 %10, %9
  %12 = getelementptr inbounds i8, ptr %0, i64 84
  %13 = load i32, ptr %12, align 4, !tbaa !14
  %14 = zext i32 %13 to i64
  %.not = icmp ult i64 %11, %14
  br i1 %.not, label %20, label %15, !prof !15

15:                                               ; preds = %6
  %16 = load i64, ptr %0, align 64, !tbaa !16
  %17 = add i64 %5, 16
  %18 = sub i32 %13, %8
  %19 = tail call ptr @mmt_sec_get_config_name(i32 noundef 0) #4
  tail call void (i32, ptr, ...) @mmt_sec_log(i32 noundef 2, ptr noundef nonnull @.str, i64 noundef %16, i32 noundef %1, i32 noundef %2, i64 noundef %17, i32 noundef %18, ptr noundef %19) #4
  br label %54

20:                                               ; preds = %6
  %21 = icmp eq i64 %5, 0
  %22 = icmp eq ptr %3, null
  %23 = or i1 %22, %21
  br i1 %23, label %54, label %24, !prof !17

24:                                               ; preds = %20
  %25 = icmp eq i32 %1, 354
  %26 = icmp eq i32 %4, 0
  %or.cond = and i1 %25, %26
  br i1 %or.cond, label %27, label %32

27:                                               ; preds = %24
  %28 = load double, ptr %3, align 8, !tbaa !18
  %29 = fcmp oeq double %28, 0.000000e+00
  %30 = add i32 %2, -6
  %31 = icmp ult i32 %30, 9
  %or.cond5 = and i1 %31, %29
  br i1 %or.cond5, label %54, label %32

32:                                               ; preds = %27, %24
  %33 = tail call zeroext i16 @mmt_sec_hash_proto_attribute(i32 noundef %1, i32 noundef %2) #4
  %34 = getelementptr inbounds i8, ptr %0, i64 34
  %35 = trunc i16 %33 to i8
  tail call void @mmt_bit_set(ptr noundef nonnull %34, i8 noundef zeroext %35)
  %36 = getelementptr inbounds i8, ptr %0, i64 24
  %37 = load ptr, ptr %36, align 8, !tbaa !20
  %38 = zext i16 %33 to i64
  %39 = getelementptr inbounds %struct.message_element_struct, ptr %37, i64 %38
  store i32 %1, ptr %39, align 8, !tbaa !21
  %40 = getelementptr inbounds i8, ptr %39, i64 4
  store i32 %2, ptr %40, align 4, !tbaa !23
  %41 = getelementptr inbounds i8, ptr %39, i64 8
  store i32 %4, ptr %41, align 8, !tbaa !24
  %42 = getelementptr inbounds i8, ptr %0, i64 72
  %43 = load ptr, ptr %42, align 8, !tbaa !25
  %44 = load i32, ptr %7, align 16, !tbaa !5
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds i8, ptr %43, i64 %45
  tail call void @mmt_mem_reset(ptr noundef %46, i64 noundef %5)
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  %48 = load ptr, ptr %47, align 8, !tbaa !26
  %49 = getelementptr inbounds i8, ptr %39, i64 16
  store ptr %48, ptr %49, align 8, !tbaa !28
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %48, ptr nonnull align 1 %3, i64 %5, i1 false)
  %50 = load i32, ptr %7, align 16, !tbaa !5
  %51 = trunc i64 %5 to i32
  %52 = add i32 %51, 17
  %53 = add i32 %52, %50
  store i32 %53, ptr %7, align 16, !tbaa !5
  br label %54

54:                                               ; preds = %27, %20, %32, %15
  %.0 = phi i32 [ 1, %15 ], [ 0, %32 ], [ 0, %20 ], [ 0, %27 ]
  ret i32 %.0
}

declare void @mmt_sec_log(i32 noundef, ptr noundef, ...) local_unnamed_addr #0

declare ptr @mmt_sec_get_config_name(i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @mmt_bit_set(ptr noundef, i8 noundef zeroext) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @mmt_mem_reset(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress 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) #3

attributes #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 = { 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 #2 = { inlinehint 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !13, i64 80}
!6 = !{!"message_struct", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !11, i64 32, !12, i64 34, !10, i64 72, !13, i64 80, !13, i64 84, !10, i64 88}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!"", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!6, !13, i64 84}
!15 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!16 = !{!6, !7, i64 0}
!17 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !8, i64 0}
!20 = !{!6, !10, i64 24}
!21 = !{!22, !13, i64 0}
!22 = !{!"message_element_struct", !13, i64 0, !13, i64 4, !13, i64 8, !10, i64 16}
!23 = !{!22, !13, i64 4}
!24 = !{!22, !13, i64 8}
!25 = !{!6, !10, i64 72}
!26 = !{!27, !10, i64 8}
!27 = !{!"mmt_memory_struct", !13, i64 0, !13, i64 4, !10, i64 8}
!28 = !{!22, !10, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass