; LLVM IR from Aeternum-Veritas/Merry :: merry (merry_subsystem)

; 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.MerrySubSys = type { ptr, i64, i64, i64, ptr, ptr, i8, ptr }
%struct.MerrySubChannel = type { ptr, ptr, i8 }

@stdout = external global ptr, align 8
@.str = external hidden unnamed_addr constant [57 x i8], align 1
@subsys = external hidden global %struct.MerrySubSys, align 8
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [65 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local zeroext i8 @merry_init_subsys(i64 noundef %0) #0 {
  %2 = alloca i8, align 1
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  store i64 %0, ptr %3, align 8, !tbaa !5
  %5 = load ptr, ptr @stdout, align 8, !tbaa !9
  %6 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef @.str, ptr noundef null) #5
  %7 = load i64, ptr %3, align 8, !tbaa !5
  %8 = mul i64 24, %7
  %9 = call noalias ptr @malloc(i64 noundef %8) #6
  store ptr %9, ptr @subsys, align 8, !tbaa !11
  %10 = load ptr, ptr @subsys, align 8, !tbaa !11
  %11 = icmp eq ptr %10, null
  br i1 %11, label %12, label %15

12:                                               ; preds = %1
  %13 = load ptr, ptr @stderr, align 8, !tbaa !9
  %14 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef @.str.1) #5
  br label %57

15:                                               ; preds = %1
  %16 = call ptr @merry_task_queue_init(i64 noundef 20)
  store ptr %16, ptr getelementptr inbounds (%struct.MerrySubSys, ptr @subsys, i32 0, i32 4), align 8, !tbaa !13
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %22

18:                                               ; preds = %15
  %19 = load ptr, ptr @stderr, align 8, !tbaa !9
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str.2) #5
  %21 = load ptr, ptr @subsys, align 8, !tbaa !11
  call void @free(ptr noundef %21) #5
  br label %57

22:                                               ; preds = %15
  %23 = call ptr (...) @merry_mutex_init()
  store ptr %23, ptr getelementptr inbounds (%struct.MerrySubSys, ptr @subsys, i32 0, i32 5), align 8, !tbaa !14
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %30

25:                                               ; preds = %22
  %26 = load ptr, ptr @stderr, align 8, !tbaa !9
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.3) #5
  %28 = load ptr, ptr @subsys, align 8, !tbaa !11
  call void @free(ptr noundef %28) #5
  %29 = load ptr, ptr getelementptr inbounds (%struct.MerrySubSys, ptr @subsys, i32 0, i32 4), align 8, !tbaa !13
  call void @merry_task_queue_destroy(ptr noundef %29)
  br label %30

30:                                               ; preds = %25, %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store i64 0, ptr %4, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %49, %30
  %32 = load i64, ptr %4, align 8, !tbaa !5
  %33 = load i64, ptr %3, align 8, !tbaa !5
  %34 = icmp ult i64 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  br label %52

36:                                               ; preds = %31
  %37 = load ptr, ptr @subsys, align 8, !tbaa !11
  %38 = load i64, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.MerrySubChannel, ptr %37, i64 %38
  %40 = getelementptr inbounds %struct.MerrySubChannel, ptr %39, i32 0, i32 2
  store i8 0, ptr %40, align 8, !tbaa !15
  %41 = load ptr, ptr @subsys, align 8, !tbaa !11
  %42 = load i64, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.MerrySubChannel, ptr %41, i64 %42
  %44 = getelementptr inbounds %struct.MerrySubChannel, ptr %43, i32 0, i32 1
  store ptr null, ptr %44, align 8, !tbaa !17
  %45 = load ptr, ptr @subsys, align 8, !tbaa !11
  %46 = load i64, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.MerrySubChannel, ptr %45, i64 %46
  %48 = getelementptr inbounds %struct.MerrySubChannel, ptr %47, i32 0, i32 0
  store ptr null, ptr %48, align 8, !tbaa !18
  br label %49

49:                                               ; preds = %36
  %50 = load i64, ptr %4, align 8, !tbaa !5
  %51 = add i64 %50, 1
  store i64 %51, ptr %4, align 8, !tbaa !5
  br label %31, !llvm.loop !19

52:                                               ; preds = %35
  store i64 0, ptr getelementptr inbounds (%struct.MerrySubSys, ptr @subsys, i32 0, i32 2), align 8, !tbaa !21
  %53 = load i64, ptr %3, align 8, !tbaa !5
  store i64 %53, ptr getelementptr inbounds (%struct.MerrySubSys, ptr @subsys, i32 0, i32 1), align 8, !tbaa !22
  store i8 0, ptr getelementptr inbounds (%struct.MerrySubSys, ptr @subsys, i32 0, i32 6), align 8, !tbaa !23
  br label %54

54:                                               ; preds = %52
  %55 = load ptr, ptr @stdout, align 8, !tbaa !9
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.4, ptr noundef null) #5
  store i8 0, ptr %2, align 1
  br label %60

57:                                               ; preds = %18, %12
  %58 = load ptr, ptr @stdout, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.5, ptr noundef null) #5
  store i8 1, ptr %2, align 1
  br label %60

60:                                               ; preds = %57, %54
  %61 = load i8, ptr %2, align 1
  ret i8 %61
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

declare ptr @merry_task_queue_init(i64 noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

declare ptr @merry_mutex_init(...) #3

declare void @merry_task_queue_destroy(ptr noundef) #3

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

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

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 = { 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 = { nounwind allocsize(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 = { "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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 = !{!"long", !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 = !{!12, !10, i64 0}
!12 = !{!"MerrySubSys", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 40, !7, i64 48, !10, i64 56}
!13 = !{!12, !10, i64 32}
!14 = !{!12, !10, i64 40}
!15 = !{!16, !7, i64 16}
!16 = !{!"MerrySubChannel", !10, i64 0, !10, i64 8, !7, i64 16}
!17 = !{!16, !10, i64 8}
!18 = !{!16, !10, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!12, !6, i64 16}
!22 = !{!12, !6, i64 8}
!23 = !{!12, !7, i64 48}


; 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.MerrySubSys = type { ptr, i64, i64, i64, ptr, ptr, i8, ptr }
%struct.MerrySubChannel = type { ptr, ptr, i8 }

@stdout = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [57 x i8], align 1
@subsys = external hidden local_unnamed_addr global %struct.MerrySubSys, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [65 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local zeroext range(i8 0, 2) i8 @merry_init_subsys(i64 noundef %0) local_unnamed_addr #0 {
  %2 = load ptr, ptr @stdout, align 8, !tbaa !5
  %3 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %2, ptr noundef nonnull @.str, ptr noundef null) #6
  %4 = mul i64 %0, 24
  %5 = tail call noalias ptr @malloc(i64 noundef %4) #7
  store ptr %5, ptr @subsys, align 8, !tbaa !9
  %6 = icmp eq ptr %5, null
  br i1 %6, label %7, label %10

7:                                                ; preds = %1
  %8 = load ptr, ptr @stderr, align 8, !tbaa !5
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.1) #8
  br label %47

10:                                               ; preds = %1
  %11 = tail call ptr @merry_task_queue_init(i64 noundef 20) #6
  store ptr %11, ptr getelementptr inbounds (i8, ptr @subsys, i64 32), align 8, !tbaa !12
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %17

13:                                               ; preds = %10
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.2) #8
  %16 = load ptr, ptr @subsys, align 8, !tbaa !9
  tail call void @free(ptr noundef %16) #6
  br label %47

17:                                               ; preds = %10
  %18 = tail call ptr (...) @merry_mutex_init() #6
  store ptr %18, ptr getelementptr inbounds (i8, ptr @subsys, i64 40), align 8, !tbaa !13
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %25

20:                                               ; preds = %17
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.3) #8
  %23 = load ptr, ptr @subsys, align 8, !tbaa !9
  tail call void @free(ptr noundef %23) #6
  %24 = load ptr, ptr getelementptr inbounds (i8, ptr @subsys, i64 32), align 8, !tbaa !12
  tail call void @merry_task_queue_destroy(ptr noundef %24) #6
  br label %25

25:                                               ; preds = %20, %17
  %.not = icmp eq i64 %0, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %25
  %26 = load ptr, ptr @subsys, align 8, !tbaa !9
  %xtraiter = and i64 %0, 7
  %27 = icmp ult i64 %0, 8
  br i1 %27, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %0, -8
  br label %30

._crit_edge.loopexit.unr-lcssa:                   ; preds = %30, %.lr.ph
  %.011.unr = phi i64 [ 0, %.lr.ph ], [ %46, %30 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.011.epil = phi i64 [ %29, %.epil.preheader ], [ %.011.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %28 = getelementptr inbounds %struct.MerrySubChannel, ptr %26, i64 %.011.epil
  %29 = add nuw i64 %.011.epil, 1
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(17) %28, i8 0, i64 17, i1 false)
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !14

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %25
  store i64 0, ptr getelementptr inbounds (i8, ptr @subsys, i64 16), align 8, !tbaa !16
  store i64 %0, ptr getelementptr inbounds (i8, ptr @subsys, i64 8), align 8, !tbaa !17
  store i8 0, ptr getelementptr inbounds (i8, ptr @subsys, i64 48), align 8, !tbaa !18
  br label %47

30:                                               ; preds = %30, %.lr.ph.new
  %.011 = phi i64 [ 0, %.lr.ph.new ], [ %46, %30 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.7, %30 ]
  %31 = getelementptr inbounds %struct.MerrySubChannel, ptr %26, i64 %.011
  %32 = or disjoint i64 %.011, 1
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(17) %31, i8 0, i64 17, i1 false)
  %33 = getelementptr inbounds %struct.MerrySubChannel, ptr %26, i64 %32
  %34 = or disjoint i64 %.011, 2
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(17) %33, i8 0, i64 17, i1 false)
  %35 = getelementptr inbounds %struct.MerrySubChannel, ptr %26, i64 %34
  %36 = or disjoint i64 %.011, 3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(17) %35, i8 0, i64 17, i1 false)
  %37 = getelementptr inbounds %struct.MerrySubChannel, ptr %26, i64 %36
  %38 = or disjoint i64 %.011, 4
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(17) %37, i8 0, i64 17, i1 false)
  %39 = getelementptr inbounds %struct.MerrySubChannel, ptr %26, i64 %38
  %40 = or disjoint i64 %.011, 5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(17) %39, i8 0, i64 17, i1 false)
  %41 = getelementptr inbounds %struct.MerrySubChannel, ptr %26, i64 %40
  %42 = or disjoint i64 %.011, 6
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(17) %41, i8 0, i64 17, i1 false)
  %43 = getelementptr inbounds %struct.MerrySubChannel, ptr %26, i64 %42
  %44 = or disjoint i64 %.011, 7
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(17) %43, i8 0, i64 17, i1 false)
  %45 = getelementptr inbounds %struct.MerrySubChannel, ptr %26, i64 %44
  %46 = add nuw i64 %.011, 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(17) %45, i8 0, i64 17, i1 false)
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge.loopexit.unr-lcssa, label %30, !llvm.loop !19

47:                                               ; preds = %7, %13, %._crit_edge
  %.str.5.sink = phi ptr [ @.str.4, %._crit_edge ], [ @.str.5, %13 ], [ @.str.5, %7 ]
  %.09 = phi i8 [ 0, %._crit_edge ], [ 1, %13 ], [ 1, %7 ]
  %48 = load ptr, ptr @stdout, align 8, !tbaa !5
  %49 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull %.str.5.sink, ptr noundef null) #6
  ret i8 %.09
}

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

declare ptr @merry_task_queue_init(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

declare ptr @merry_mutex_init(...) local_unnamed_addr #3

declare void @merry_task_queue_destroy(ptr noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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: write) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { cold 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, !6, i64 0}
!10 = !{!"MerrySubSys", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !6, i64 32, !6, i64 40, !7, i64 48, !6, i64 56}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !6, i64 32}
!13 = !{!10, !6, i64 40}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = !{!10, !11, i64 16}
!17 = !{!10, !11, i64 8}
!18 = !{!10, !7, i64 48}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass