; LLVM IR from ADJA/algos :: DataStructures (SegmentTree)

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

@n = external dso_local global i32, align 4
@num = external dso_local global i32, align 4
@qn = external dso_local global i32, align 4
@a = external dso_local global [105000 x i32], align 16
@tree = external dso_local global [420000 x i32], align 16
@l = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z6getMaxii(i32 noundef, i32 noundef) #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %7

7:                                                ; preds = %17, %0
  %8 = load i32, ptr %2, align 4, !tbaa !5
  %9 = load i32, ptr @n, align 4, !tbaa !5
  %10 = icmp sle i32 %8, %9
  br i1 %10, label %12, label %11

11:                                               ; preds = %7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %20

12:                                               ; preds = %7
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %14
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %15)
  br label %17

17:                                               ; preds = %12
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr %2, align 4, !tbaa !5
  br label %7, !llvm.loop !9

20:                                               ; preds = %11
  store i32 1, ptr @num, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %25, %20
  %22 = load i32, ptr @num, align 4, !tbaa !5
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %25, label %28

25:                                               ; preds = %21
  %26 = load i32, ptr @num, align 4, !tbaa !5
  %27 = mul nsw i32 %26, 2
  store i32 %27, ptr @num, align 4, !tbaa !5
  br label %21, !llvm.loop !11

28:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %29 = load i32, ptr @num, align 4, !tbaa !5
  store i32 %29, ptr %3, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %59, %28
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = load i32, ptr @num, align 4, !tbaa !5
  %33 = mul nsw i32 2, %32
  %34 = icmp slt i32 %31, %33
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %30
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = load i32, ptr @num, align 4, !tbaa !5
  %39 = sub nsw i32 %37, %38
  %40 = add nsw i32 %39, 1
  %41 = load i32, ptr @n, align 4, !tbaa !5
  %42 = icmp sle i32 %40, %41
  br i1 %42, label %43, label %54

43:                                               ; preds = %36
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = load i32, ptr @num, align 4, !tbaa !5
  %46 = sub nsw i32 %44, %45
  %47 = add nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [420000 x i32], ptr @tree, i64 0, i64 %52
  store i32 %50, ptr %53, align 4, !tbaa !5
  br label %58

54:                                               ; preds = %36
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [420000 x i32], ptr @tree, i64 0, i64 %56
  store i32 -1000000000, ptr %57, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %54, %43
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %3, align 4, !tbaa !5
  br label %30, !llvm.loop !12

62:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %63 = load i32, ptr @num, align 4, !tbaa !5
  %64 = sub nsw i32 %63, 1
  store i32 %64, ptr %4, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %84, %62
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = icmp sge i32 %66, 1
  br i1 %67, label %69, label %68

68:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %87

69:                                               ; preds = %65
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = mul nsw i32 %70, 2
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [420000 x i32], ptr @tree, i64 0, i64 %72
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = mul nsw i32 %74, 2
  %76 = add nsw i32 %75, 1
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [420000 x i32], ptr @tree, i64 0, i64 %77
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %73, ptr noundef nonnull align 4 dereferenceable(4) %78)
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [420000 x i32], ptr @tree, i64 0, i64 %82
  store i32 %80, ptr %83, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %69
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = add nsw i32 %85, -1
  store i32 %86, ptr %4, align 4, !tbaa !5
  br label %65, !llvm.loop !13

87:                                               ; preds = %68
  %88 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @qn)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %100, %87
  %90 = load i32, ptr %5, align 4, !tbaa !5
  %91 = load i32, ptr @qn, align 4, !tbaa !5
  %92 = icmp sle i32 %90, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %103

94:                                               ; preds = %89
  %95 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @l, ptr noundef @r)
  %96 = load i32, ptr @l, align 4, !tbaa !5
  %97 = load i32, ptr @r, align 4, !tbaa !5
  %98 = call noundef i32 @_Z6getMaxii(i32 noundef %96, i32 noundef %97)
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %98)
  br label %100

100:                                              ; preds = %94
  %101 = load i32, ptr %5, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %5, align 4, !tbaa !5
  br label %89, !llvm.loop !14

103:                                              ; preds = %93
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #4

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

attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 norecurse 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 = { "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 }

!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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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

@n = external dso_local global i32, align 4
@num = external dso_local local_unnamed_addr global i32, align 4
@qn = external dso_local global i32, align 4
@a = external dso_local global [105000 x i32], align 16
@tree = external dso_local global [420000 x i32], align 16
@l = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z6getMaxii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %.not25 = icmp slt i32 %2, 1
  br i1 %.not25, label %.preheader24, label %.lr.ph

.preheader24:                                     ; preds = %.lr.ph, %0
  %.lcssa = phi i32 [ %2, %0 ], [ %5, %.lr.ph ]
  br label %7

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %3 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %indvars.iv
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %3)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %5 = load i32, ptr @n, align 4, !tbaa !5
  %6 = sext i32 %5 to i64
  %.not.not = icmp slt i64 %indvars.iv, %6
  br i1 %.not.not, label %.lr.ph, label %.preheader24, !llvm.loop !9

7:                                                ; preds = %7, %.preheader24
  %storemerge = phi i32 [ %9, %7 ], [ 1, %.preheader24 ]
  %8 = icmp slt i32 %storemerge, %.lcssa
  %9 = shl nsw i32 %storemerge, 1
  br i1 %8, label %7, label %.preheader23, !llvm.loop !11

.preheader23:                                     ; preds = %7
  store i32 %storemerge, ptr @num, align 4, !tbaa !5
  %10 = icmp slt i32 %storemerge, %9
  br i1 %10, label %.lr.ph29.preheader, label %.preheader

.lr.ph29.preheader:                               ; preds = %.preheader23
  %11 = sext i32 %storemerge to i64
  %12 = sext i32 %.lcssa to i64
  %wide.trip.count = sext i32 %9 to i64
  %xtraiter = and i64 %11, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph29.prol.loopexit, label %.lr.ph29.prol

.lr.ph29.prol:                                    ; preds = %.lr.ph29.preheader
  %.not22.not.prol = icmp sgt i32 %.lcssa, 0
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 4), align 4
  %spec.select = select i1 %.not22.not.prol, i32 %13, i32 -1000000000
  %14 = getelementptr inbounds [420000 x i32], ptr @tree, i64 0, i64 %11
  store i32 %spec.select, ptr %14, align 4
  %indvars.iv.next40.prol = add nsw i64 %11, 1
  br label %.lr.ph29.prol.loopexit

.lr.ph29.prol.loopexit:                           ; preds = %.lr.ph29.prol, %.lr.ph29.preheader
  %indvars.iv39.unr = phi i64 [ %11, %.lr.ph29.preheader ], [ %indvars.iv.next40.prol, %.lr.ph29.prol ]
  %15 = add nsw i64 %wide.trip.count, -1
  %16 = icmp eq i64 %15, %11
  br i1 %16, label %.preheader, label %.lr.ph29

.preheader:                                       ; preds = %.lr.ph29.prol.loopexit, %30, %.preheader23
  %17 = icmp sgt i32 %storemerge, 1
  br i1 %17, label %.lr.ph31.preheader, label %._crit_edge

.lr.ph31.preheader:                               ; preds = %.preheader
  %18 = zext nneg i32 %storemerge to i64
  br label %.lr.ph31

.lr.ph29:                                         ; preds = %.lr.ph29.prol.loopexit, %30
  %indvars.iv39 = phi i64 [ %indvars.iv.next40.1, %30 ], [ %indvars.iv39.unr, %.lr.ph29.prol.loopexit ]
  %19 = sub nuw nsw i64 %indvars.iv39, %11
  %.not22.not = icmp slt i64 %19, %12
  br i1 %.not22.not, label %20, label %.lr.ph29.1

20:                                               ; preds = %.lr.ph29
  %21 = add nuw nsw i64 %19, 1
  %22 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  br label %.lr.ph29.1

.lr.ph29.1:                                       ; preds = %.lr.ph29, %20
  %.sink = phi i32 [ %23, %20 ], [ -1000000000, %.lr.ph29 ]
  %24 = getelementptr inbounds [420000 x i32], ptr @tree, i64 0, i64 %indvars.iv39
  store i32 %.sink, ptr %24, align 4
  %indvars.iv.next40 = add nsw i64 %indvars.iv39, 1
  %25 = sub nuw nsw i64 %indvars.iv.next40, %11
  %.not22.not.1 = icmp slt i64 %25, %12
  br i1 %.not22.not.1, label %26, label %30

26:                                               ; preds = %.lr.ph29.1
  %27 = add nuw nsw i64 %25, 1
  %28 = getelementptr inbounds [105000 x i32], ptr @a, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %26, %.lr.ph29.1
  %.sink.1 = phi i32 [ %29, %26 ], [ -1000000000, %.lr.ph29.1 ]
  %31 = getelementptr inbounds [420000 x i32], ptr @tree, i64 0, i64 %indvars.iv.next40
  store i32 %.sink.1, ptr %31, align 4
  %indvars.iv.next40.1 = add nsw i64 %indvars.iv39, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next40.1, %wide.trip.count
  br i1 %exitcond.not.1, label %.preheader, label %.lr.ph29, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph31, %.preheader
  %32 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @qn)
  %33 = load i32, ptr @qn, align 4, !tbaa !5
  %.not2132 = icmp slt i32 %33, 1
  br i1 %.not2132, label %._crit_edge36, label %.lr.ph35

.lr.ph31:                                         ; preds = %.lr.ph31.preheader, %.lr.ph31
  %indvars.iv42 = phi i64 [ %18, %.lr.ph31.preheader ], [ %indvars.iv.next43, %.lr.ph31 ]
  %indvars.iv.next43 = add nsw i64 %indvars.iv42, -1
  %34 = shl nuw nsw i64 %indvars.iv.next43, 1
  %35 = getelementptr inbounds [420000 x i32], ptr @tree, i64 0, i64 %34
  %36 = or disjoint i64 %34, 1
  %37 = getelementptr inbounds [420000 x i32], ptr @tree, i64 0, i64 %36
  %38 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %37)
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = getelementptr inbounds [420000 x i32], ptr @tree, i64 0, i64 %indvars.iv.next43
  store i32 %39, ptr %40, align 4, !tbaa !5
  %41 = icmp ugt i64 %indvars.iv42, 2
  br i1 %41, label %.lr.ph31, label %._crit_edge, !llvm.loop !13

._crit_edge36:                                    ; preds = %.lr.ph35, %._crit_edge
  ret i32 0

.lr.ph35:                                         ; preds = %._crit_edge, %.lr.ph35
  %.033 = phi i32 [ %47, %.lr.ph35 ], [ 1, %._crit_edge ]
  %42 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @l, ptr noundef nonnull @r)
  %43 = load i32, ptr @l, align 4, !tbaa !5
  %44 = load i32, ptr @r, align 4, !tbaa !5
  %45 = tail call noundef i32 @_Z6getMaxii(i32 noundef %43, i32 noundef %44)
  %46 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %45)
  %47 = add nuw nsw i32 %.033, 1
  %48 = load i32, ptr @qn, align 4, !tbaa !5
  %.not21.not = icmp slt i32 %.033, %48
  br i1 %.not21.not, label %.lr.ph35, label %._crit_edge36, !llvm.loop !14
}

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

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

attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 = { mustprogress norecurse 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 = { 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" }

!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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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