; LLVM IR from YanzhenHuang/c-nn :: xlinalg (xmat_det)

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

@stderr = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [52 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(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @xmat_submat(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

declare double @mat_read(ptr noundef, i64 noundef, i64 noundef) #5

; Function Attrs: nounwind uwtable
declare dso_local ptr @xmat_hstack(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local double @xmat_det(ptr noundef %0) #2 {
  %2 = alloca double, align 8
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca double, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.Matrix, ptr %12, i32 0, i32 0
  %14 = load i64, ptr %13, align 8, !tbaa !9
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.Matrix, ptr %15, i32 0, i32 1
  %17 = load i64, ptr %16, align 8, !tbaa !12
  %18 = icmp ne i64 %14, %17
  br i1 %18, label %19, label %22

19:                                               ; preds = %1
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str.5) #7
  call void @exit(i32 noundef 1) #8
  unreachable

22:                                               ; preds = %1
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.Matrix, ptr %23, i32 0, i32 0
  %25 = load i64, ptr %24, align 8, !tbaa !9
  %26 = icmp eq i64 %25, 2
  br i1 %26, label %27, label %39

27:                                               ; preds = %22
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = call double @mat_read(ptr noundef %28, i64 noundef 0, i64 noundef 0)
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = call double @mat_read(ptr noundef %30, i64 noundef 1, i64 noundef 1)
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = call double @mat_read(ptr noundef %32, i64 noundef 0, i64 noundef 1)
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = call double @mat_read(ptr noundef %34, i64 noundef 1, i64 noundef 0)
  %36 = fmul double %33, %35
  %37 = fneg double %36
  %38 = call double @llvm.fmuladd.f64(double %29, double %31, double %37)
  store double %38, ptr %2, align 8
  br label %121

39:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store double 0.000000e+00, ptr %4, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 1, ptr %5, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store i64 0, ptr %6, align 8, !tbaa !17
  br label %40

40:                                               ; preds = %116, %39
  %41 = load i64, ptr %6, align 8, !tbaa !17
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.Matrix, ptr %42, i32 0, i32 1
  %44 = load i64, ptr %43, align 8, !tbaa !12
  %45 = icmp slt i64 %41, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %119

47:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = load i64, ptr %6, align 8, !tbaa !17
  %50 = call double @mat_read(ptr noundef %48, i64 noundef 0, i64 noundef %49)
  store double %50, ptr %7, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %51 = call noalias ptr @malloc(i64 noundef 24) #9
  store ptr %51, ptr %8, align 8, !tbaa !5
  %52 = load i64, ptr %6, align 8, !tbaa !17
  %53 = icmp eq i64 %52, 0
  br i1 %53, label %54, label %63

54:                                               ; preds = %47
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.Matrix, ptr %56, i32 0, i32 0
  %58 = load i64, ptr %57, align 8, !tbaa !9
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.Matrix, ptr %59, i32 0, i32 1
  %61 = load i64, ptr %60, align 8, !tbaa !12
  %62 = call ptr @xmat_submat(ptr noundef %55, i64 noundef 1, i64 noundef %58, i64 noundef 1, i64 noundef %61)
  store ptr %62, ptr %8, align 8, !tbaa !5
  br label %103

63:                                               ; preds = %47
  %64 = load i64, ptr %6, align 8, !tbaa !17
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.Matrix, ptr %65, i32 0, i32 1
  %67 = load i64, ptr %66, align 8, !tbaa !12
  %68 = sub nsw i64 %67, 1
  %69 = icmp eq i64 %64, %68
  br i1 %69, label %70, label %80

70:                                               ; preds = %63
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.Matrix, ptr %72, i32 0, i32 0
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.Matrix, ptr %75, i32 0, i32 1
  %77 = load i64, ptr %76, align 8, !tbaa !12
  %78 = sub nsw i64 %77, 1
  %79 = call ptr @xmat_submat(ptr noundef %71, i64 noundef 1, i64 noundef %74, i64 noundef 0, i64 noundef %78)
  store ptr %79, ptr %8, align 8, !tbaa !5
  br label %102

80:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.Matrix, ptr %82, i32 0, i32 0
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = load i64, ptr %6, align 8, !tbaa !17
  %86 = call ptr @xmat_submat(ptr noundef %81, i64 noundef 1, i64 noundef %84, i64 noundef 0, i64 noundef %85)
  store ptr %86, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.Matrix, ptr %88, i32 0, i32 0
  %90 = load i64, ptr %89, align 8, !tbaa !9
  %91 = load i64, ptr %6, align 8, !tbaa !17
  %92 = add nsw i64 %91, 1
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.Matrix, ptr %93, i32 0, i32 1
  %95 = load i64, ptr %94, align 8, !tbaa !12
  %96 = call ptr @xmat_submat(ptr noundef %87, i64 noundef 1, i64 noundef %90, i64 noundef %92, i64 noundef %95)
  store ptr %96, ptr %10, align 8, !tbaa !5
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = call ptr @xmat_hstack(ptr noundef %97, ptr noundef %98)
  store ptr %99, ptr %8, align 8, !tbaa !5
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %100) #7
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %101) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %102

102:                                              ; preds = %80, %70
  br label %103

103:                                              ; preds = %102, %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %104 = load double, ptr %7, align 8, !tbaa !13
  %105 = load i32, ptr %5, align 4, !tbaa !15
  %106 = sitofp i32 %105 to double
  %107 = fmul double %104, %106
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = call double @xmat_det(ptr noundef %108)
  %110 = fmul double %107, %109
  store double %110, ptr %11, align 8, !tbaa !13
  %111 = load i32, ptr %5, align 4, !tbaa !15
  %112 = mul nsw i32 %111, -1
  store i32 %112, ptr %5, align 4, !tbaa !15
  %113 = load double, ptr %11, align 8, !tbaa !13
  %114 = load double, ptr %4, align 8, !tbaa !13
  %115 = fadd double %114, %113
  store double %115, ptr %4, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %116

116:                                              ; preds = %103
  %117 = load i64, ptr %6, align 8, !tbaa !17
  %118 = add nsw i64 %117, 1
  store i64 %118, ptr %6, align 8, !tbaa !17
  br label %40, !llvm.loop !18

119:                                              ; preds = %46
  %120 = load double, ptr %4, align 8, !tbaa !13
  store double %120, ptr %2, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %121

121:                                              ; preds = %119, %27
  %122 = load double, ptr %2, align 8
  ret double %122
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { 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 #4 = { noreturn 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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 8, !6, i64 16}
!11 = !{!"long long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [52 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @xmat_submat(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

declare double @mat_read(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @xmat_hstack(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local double @xmat_det(ptr noundef %0) local_unnamed_addr #0 {
  %2 = load i64, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = load i64, ptr %3, align 8, !tbaa !11
  %.not = icmp eq i64 %2, %4
  br i1 %.not, label %8, label %5

5:                                                ; preds = %1
  %6 = load ptr, ptr @stderr, align 8, !tbaa !12
  %7 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef nonnull @.str.5) #6
  tail call void @exit(i32 noundef 1) #7
  unreachable

8:                                                ; preds = %1
  %9 = icmp eq i64 %2, 2
  br i1 %9, label %21, label %.preheader

.preheader:                                       ; preds = %8
  %10 = icmp sgt i64 %2, 0
  br i1 %10, label %11, label %.loopexit

11:                                               ; preds = %.preheader
  %12 = tail call double @mat_read(ptr noundef nonnull %0, i64 noundef 0, i64 noundef 0) #8
  %13 = load i64, ptr %0, align 8, !tbaa !5
  %14 = load i64, ptr %3, align 8, !tbaa !11
  %15 = tail call ptr @xmat_submat(ptr noundef nonnull %0, i64 noundef 1, i64 noundef %13, i64 noundef 1, i64 noundef %14)
  %16 = tail call double @xmat_det(ptr noundef %15)
  %17 = fmul double %12, %16
  %18 = fadd double %17, 0.000000e+00
  %19 = load i64, ptr %3, align 8, !tbaa !11
  %20 = icmp sgt i64 %19, 1
  br i1 %20, label %.lr.ph.peel.next, label %.loopexit

21:                                               ; preds = %8
  %22 = tail call double @mat_read(ptr noundef nonnull %0, i64 noundef 0, i64 noundef 0) #8
  %23 = tail call double @mat_read(ptr noundef nonnull %0, i64 noundef 1, i64 noundef 1) #8
  %24 = tail call double @mat_read(ptr noundef nonnull %0, i64 noundef 0, i64 noundef 1) #8
  %25 = tail call double @mat_read(ptr noundef nonnull %0, i64 noundef 1, i64 noundef 0) #8
  %26 = fneg double %24
  %27 = fmul double %25, %26
  %28 = tail call double @llvm.fmuladd.f64(double %22, double %23, double %27)
  br label %.loopexit

.lr.ph.peel.next:                                 ; preds = %11, %41
  %.03947 = phi double [ %47, %41 ], [ %18, %11 ]
  %.04046 = phi i32 [ %46, %41 ], [ -1, %11 ]
  %.04245 = phi i64 [ %48, %41 ], [ 1, %11 ]
  %29 = tail call double @mat_read(ptr noundef nonnull %0, i64 noundef 0, i64 noundef %.04245) #8
  %30 = load i64, ptr %3, align 8, !tbaa !11
  %31 = add nsw i64 %30, -1
  %32 = icmp eq i64 %.04245, %31
  %33 = load i64, ptr %0, align 8, !tbaa !5
  %34 = tail call ptr @xmat_submat(ptr noundef nonnull %0, i64 noundef 1, i64 noundef %33, i64 noundef 0, i64 noundef %.04245)
  br i1 %32, label %41, label %35

35:                                               ; preds = %.lr.ph.peel.next
  %36 = load i64, ptr %0, align 8, !tbaa !5
  %37 = add nuw nsw i64 %.04245, 1
  %38 = load i64, ptr %3, align 8, !tbaa !11
  %39 = tail call ptr @xmat_submat(ptr noundef nonnull %0, i64 noundef 1, i64 noundef %36, i64 noundef %37, i64 noundef %38)
  %40 = tail call ptr @xmat_hstack(ptr noundef %34, ptr noundef %39)
  tail call void @free(ptr noundef %34) #8
  tail call void @free(ptr noundef %39) #8
  br label %41

41:                                               ; preds = %.lr.ph.peel.next, %35
  %.041 = phi ptr [ %40, %35 ], [ %34, %.lr.ph.peel.next ]
  %42 = sitofp i32 %.04046 to double
  %43 = fmul double %29, %42
  %44 = tail call double @xmat_det(ptr noundef %.041)
  %45 = fmul double %43, %44
  %46 = sub nsw i32 0, %.04046
  %47 = fadd double %.03947, %45
  %48 = add nuw nsw i64 %.04245, 1
  %49 = load i64, ptr %3, align 8, !tbaa !11
  %50 = icmp slt i64 %48, %49
  br i1 %50, label %.lr.ph.peel.next, label %.loopexit, !llvm.loop !13

.loopexit:                                        ; preds = %41, %11, %.preheader, %21
  %.0 = phi double [ %28, %21 ], [ 0.000000e+00, %.preheader ], [ %18, %11 ], [ %47, %41 ]
  ret double %.0
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture 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 = { noreturn 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 = { "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { cold nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { 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 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!10, !10, i64 0}
!13 = distinct !{!13, !14, !15}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass