; LLVM IR from DimitrisJim/leetcode_solutions :: C/Algorithms (589)

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

; Function Attrs: nounwind uwtable
define dso_local ptr @preorder(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %18, label %16

16:                                               ; preds = %2
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %17, align 4, !tbaa !9
  store ptr null, ptr %3, align 8
  br label %103

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 50, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %19 = call noalias ptr @malloc(i64 noundef 8) #6
  store ptr %19, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %20 = load i32, ptr %8, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = mul i64 %21, 4
  %23 = call noalias ptr @malloc(i64 noundef %22) #6
  store ptr %23, ptr %10, align 8, !tbaa !5
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = getelementptr inbounds ptr, ptr %25, i64 0
  store ptr %24, ptr %26, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %89, %18
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %30, label %98

30:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = add nsw i32 %32, -1
  store i32 %33, ptr %7, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds ptr, ptr %31, i64 %34
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %36, ptr %11, align 8, !tbaa !5
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.Node, ptr %37, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %75

41:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.Node, ptr %42, i32 0, i32 1
  %44 = load i32, ptr %43, align 4, !tbaa !13
  store i32 %44, ptr %12, align 4, !tbaa !9
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = add nsw i32 %46, %47
  %49 = sext i32 %48 to i64
  %50 = mul i64 %49, 8
  %51 = call ptr @realloc(ptr noundef %45, i64 noundef %50) #7
  store ptr %51, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = sub nsw i32 %52, 1
  store i32 %53, ptr %13, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %71, %41
  %55 = load i32, ptr %13, align 4, !tbaa !9
  %56 = icmp sge i32 %55, 0
  br i1 %56, label %58, label %57

57:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %74

58:                                               ; preds = %54
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.Node, ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !11
  %62 = load i32, ptr %13, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds ptr, ptr %61, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %7, align 4, !tbaa !9
  %69 = sext i32 %67 to i64
  %70 = getelementptr inbounds ptr, ptr %66, i64 %69
  store ptr %65, ptr %70, align 8, !tbaa !5
  br label %71

71:                                               ; preds = %58
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = add nsw i32 %72, -1
  store i32 %73, ptr %13, align 4, !tbaa !9
  br label %54, !llvm.loop !14

74:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %75

75:                                               ; preds = %74, %30
  %76 = load i32, ptr %6, align 4, !tbaa !9
  %77 = load i32, ptr %8, align 4, !tbaa !9
  %78 = icmp eq i32 %76, %77
  br i1 %78, label %79, label %89

79:                                               ; preds = %75
  %80 = load i32, ptr %8, align 4, !tbaa !9
  %81 = sitofp i32 %80 to double
  %82 = fmul double %81, 1.500000e+00
  %83 = fptosi double %82 to i32
  store i32 %83, ptr %8, align 4, !tbaa !9
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = mul i64 %86, 4
  %88 = call ptr @realloc(ptr noundef %84, i64 noundef %87) #7
  store ptr %88, ptr %10, align 8, !tbaa !5
  br label %89

89:                                               ; preds = %79, %75
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.Node, ptr %90, i32 0, i32 0
  %92 = load i32, ptr %91, align 8, !tbaa !16
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = load i32, ptr %6, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %6, align 4, !tbaa !9
  %96 = sext i32 %94 to i64
  %97 = getelementptr inbounds i32, ptr %93, i64 %96
  store i32 %92, ptr %97, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %27, !llvm.loop !17

98:                                               ; preds = %27
  %99 = load i32, ptr %6, align 4, !tbaa !9
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 %99, ptr %100, align 4, !tbaa !9
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %101) #5
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %102, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %103

103:                                              ; preds = %98, %16
  %104 = load ptr, ptr %3, align 8
  ret ptr %104
}

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

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

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #3

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind allocsize(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 #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 }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { nounwind allocsize(1) }

!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, !6, i64 8}
!12 = !{!"Node", !10, i64 0, !10, i64 4, !6, i64 8}
!13 = !{!12, !10, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!12, !10, i64 0}
!17 = distinct !{!17, !15}


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

; Function Attrs: nounwind uwtable
define dso_local noalias ptr @preorder(ptr noundef %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %3, label %4

3:                                                ; preds = %2
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %53

4:                                                ; preds = %2
  %5 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #4
  %6 = tail call noalias dereferenceable_or_null(200) ptr @malloc(i64 noundef 200) #4
  store ptr %0, ptr %5, align 8, !tbaa !9
  br label %7

7:                                                ; preds = %4, %47
  %indvars.iv56 = phi i64 [ 0, %4 ], [ %indvars.iv.next57, %47 ]
  %.03448 = phi ptr [ %6, %4 ], [ %.1, %47 ]
  %.03547 = phi ptr [ %5, %4 ], [ %.136, %47 ]
  %.03746 = phi i32 [ 50, %4 ], [ %.138, %47 ]
  %.03945 = phi i32 [ 1, %4 ], [ %.2, %47 ]
  %8 = add nsw i32 %.03945, -1
  %9 = zext nneg i32 %8 to i64
  %10 = getelementptr inbounds ptr, ptr %.03547, i64 %9
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %11, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  %.not42 = icmp eq ptr %13, null
  br i1 %.not42, label %.loopexit, label %14

14:                                               ; preds = %7
  %15 = getelementptr inbounds i8, ptr %11, i64 4
  %16 = load i32, ptr %15, align 4, !tbaa !13
  %17 = add nsw i32 %16, %8
  %18 = sext i32 %17 to i64
  %19 = shl nsw i64 %18, 3
  %20 = tail call ptr @realloc(ptr noundef nonnull %.03547, i64 noundef %19) #5
  %21 = icmp sgt i32 %16, 0
  br i1 %21, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %14
  %22 = load ptr, ptr %12, align 8, !tbaa !11
  %23 = zext nneg i32 %16 to i64
  %24 = zext nneg i32 %.03945 to i64
  %25 = add nsw i64 %24, -1
  %min.iters.check = icmp ult i32 %16, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %23, 2147483644
  %ind.end = add nsw i64 %25, %n.vec
  %ind.end59 = and i64 %23, 3
  %invariant.gep = getelementptr ptr, ptr %22, i64 %23
  %26 = getelementptr ptr, ptr %20, i64 %25
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %27 = xor i64 %index, -1
  %gep = getelementptr ptr, ptr %invariant.gep, i64 %27
  %28 = getelementptr inbounds i8, ptr %gep, i64 -8
  %29 = getelementptr inbounds i8, ptr %gep, i64 -24
  %wide.load = load <2 x ptr>, ptr %28, align 8, !tbaa !9
  %reverse = shufflevector <2 x ptr> %wide.load, <2 x ptr> poison, <2 x i32> <i32 1, i32 0>
  %wide.load62 = load <2 x ptr>, ptr %29, align 8, !tbaa !9
  %reverse63 = shufflevector <2 x ptr> %wide.load62, <2 x ptr> poison, <2 x i32> <i32 1, i32 0>
  %30 = getelementptr ptr, ptr %26, i64 %index
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  store <2 x ptr> %reverse, ptr %30, align 8, !tbaa !9
  store <2 x ptr> %reverse63, ptr %31, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %32 = icmp eq i64 %index.next, %n.vec
  br i1 %32, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %23
  br i1 %cmp.n, label %.loopexit.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv51.ph = phi i64 [ %25, %.lr.ph ], [ %ind.end, %middle.block ]
  %indvars.iv.ph = phi i64 [ %23, %.lr.ph ], [ %ind.end59, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv51 = phi i64 [ %indvars.iv.next52, %scalar.ph ], [ %indvars.iv51.ph, %scalar.ph.preheader ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %33 = getelementptr inbounds ptr, ptr %22, i64 %indvars.iv.next
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %indvars.iv.next52 = add nsw i64 %indvars.iv51, 1
  %35 = getelementptr inbounds ptr, ptr %20, i64 %indvars.iv51
  store ptr %34, ptr %35, align 8, !tbaa !9
  %36 = icmp ugt i64 %indvars.iv, 1
  br i1 %36, label %scalar.ph, label %.loopexit.loopexit, !llvm.loop !18

.loopexit.loopexit:                               ; preds = %scalar.ph, %middle.block
  %indvars.iv.next52.lcssa = phi i64 [ %ind.end, %middle.block ], [ %indvars.iv.next52, %scalar.ph ]
  %37 = trunc nsw i64 %indvars.iv.next52.lcssa to i32
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %14, %7
  %.2 = phi i32 [ %8, %7 ], [ %8, %14 ], [ %37, %.loopexit.loopexit ]
  %.136 = phi ptr [ %.03547, %7 ], [ %20, %14 ], [ %20, %.loopexit.loopexit ]
  %38 = zext i32 %.03746 to i64
  %39 = icmp eq i64 %indvars.iv56, %38
  br i1 %39, label %40, label %47

40:                                               ; preds = %.loopexit
  %41 = sitofp i32 %.03746 to double
  %42 = fmul double %41, 1.500000e+00
  %43 = fptosi double %42 to i32
  %44 = sext i32 %43 to i64
  %45 = shl nsw i64 %44, 2
  %46 = tail call ptr @realloc(ptr noundef %.03448, i64 noundef %45) #5
  br label %47

47:                                               ; preds = %40, %.loopexit
  %.138 = phi i32 [ %43, %40 ], [ %.03746, %.loopexit ]
  %.1 = phi ptr [ %46, %40 ], [ %.03448, %.loopexit ]
  %48 = load i32, ptr %11, align 8, !tbaa !19
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %49 = getelementptr inbounds i32, ptr %.1, i64 %indvars.iv56
  store i32 %48, ptr %49, align 4, !tbaa !5
  %50 = icmp sgt i32 %.2, 0
  br i1 %50, label %7, label %51, !llvm.loop !20

51:                                               ; preds = %47
  %52 = trunc nuw i64 %indvars.iv.next57 to i32
  store i32 %52, ptr %1, align 4, !tbaa !5
  tail call void @free(ptr noundef %.136) #6
  br label %53

53:                                               ; preds = %51, %3
  %.032 = phi ptr [ %.1, %51 ], [ null, %3 ]
  ret ptr %.032
}

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

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #2

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

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 = { 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 #2 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #3 = { 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 #4 = { nounwind allocsize(0) }
attributes #5 = { nounwind allocsize(1) }
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 = !{!12, !10, i64 8}
!12 = !{!"Node", !6, i64 0, !6, i64 4, !10, i64 8}
!13 = !{!12, !6, i64 4}
!14 = distinct !{!14, !15, !16, !17}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !15, !17, !16}
!19 = !{!12, !6, i64 0}
!20 = distinct !{!20, !15}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass