; LLVM IR from eyangch/competitive-programming :: Codeforces/1598 (f)

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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@N = external dso_local global i64, align 8
@ts = external dso_local global [20 x i64], align 16
@ct = external dso_local global [20 x [400001 x i64]], align 16
@mn = external dso_local global [20 x i64], align 16
@dp = external dso_local global [1048576 x i64], align 16
@_Z1SB5cxx11 = external dso_local global [20 x %"class.std::__cxx11::basic_string"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca double, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %14 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %15 = getelementptr i8, ptr %14, i64 -24
  %16 = load i64, ptr %15, align 8
  %17 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %16
  %18 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %17, ptr noundef null)
  %19 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %21

21:                                               ; preds = %79, %0
  %22 = load i64, ptr %2, align 8, !tbaa !8
  %23 = load i64, ptr @N, align 8, !tbaa !8
  %24 = icmp slt i64 %22, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %82

26:                                               ; preds = %21
  %27 = load i64, ptr %2, align 8, !tbaa !8
  %28 = getelementptr inbounds [20 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %27
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %28)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 0, ptr %4, align 8, !tbaa !8
  %30 = load i64, ptr %2, align 8, !tbaa !8
  %31 = getelementptr inbounds [20 x i64], ptr @mn, i64 0, i64 %30
  store i64 0, ptr %31, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 0, ptr %5, align 8, !tbaa !8
  br label %32

32:                                               ; preds = %72, %26
  %33 = load i64, ptr %5, align 8, !tbaa !8
  %34 = load i64, ptr %2, align 8, !tbaa !8
  %35 = getelementptr inbounds [20 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %34
  %36 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %35) #7
  %37 = icmp slt i64 %33, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %32
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %75

39:                                               ; preds = %32
  %40 = load i64, ptr %2, align 8, !tbaa !8
  %41 = getelementptr inbounds [20 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %40
  %42 = load i64, ptr %5, align 8, !tbaa !8
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %41, i64 noundef %42)
  %44 = load i8, ptr %43, align 1, !tbaa !11
  %45 = sext i8 %44 to i32
  %46 = icmp eq i32 %45, 40
  %47 = zext i1 %46 to i64
  %48 = select i1 %46, i32 1, i32 -1
  %49 = sext i32 %48 to i64
  %50 = load i64, ptr %4, align 8, !tbaa !8
  %51 = add nsw i64 %50, %49
  store i64 %51, ptr %4, align 8, !tbaa !8
  %52 = load i64, ptr %2, align 8, !tbaa !8
  %53 = getelementptr inbounds [20 x i64], ptr @mn, i64 0, i64 %52
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %55 = load i64, ptr %54, align 8, !tbaa !8
  %56 = load i64, ptr %2, align 8, !tbaa !8
  %57 = getelementptr inbounds [20 x i64], ptr @mn, i64 0, i64 %56
  store i64 %55, ptr %57, align 8, !tbaa !8
  %58 = load i64, ptr %2, align 8, !tbaa !8
  %59 = getelementptr inbounds [20 x i64], ptr @mn, i64 0, i64 %58
  %60 = load i64, ptr %59, align 8, !tbaa !8
  %61 = load i64, ptr %4, align 8, !tbaa !8
  %62 = icmp eq i64 %60, %61
  br i1 %62, label %63, label %71

63:                                               ; preds = %39
  %64 = load i64, ptr %2, align 8, !tbaa !8
  %65 = getelementptr inbounds [20 x [400001 x i64]], ptr @ct, i64 0, i64 %64
  %66 = load i64, ptr %4, align 8, !tbaa !8
  %67 = sub nsw i64 0, %66
  %68 = getelementptr inbounds [400001 x i64], ptr %65, i64 0, i64 %67
  %69 = load i64, ptr %68, align 8, !tbaa !8
  %70 = add nsw i64 %69, 1
  store i64 %70, ptr %68, align 8, !tbaa !8
  br label %71

71:                                               ; preds = %63, %39
  br label %72

72:                                               ; preds = %71
  %73 = load i64, ptr %5, align 8, !tbaa !8
  %74 = add nsw i64 %73, 1
  store i64 %74, ptr %5, align 8, !tbaa !8
  br label %32, !llvm.loop !12

75:                                               ; preds = %38
  %76 = load i64, ptr %4, align 8, !tbaa !8
  %77 = load i64, ptr %2, align 8, !tbaa !8
  %78 = getelementptr inbounds [20 x i64], ptr @ts, i64 0, i64 %77
  store i64 %76, ptr %78, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %79

79:                                               ; preds = %75
  %80 = load i64, ptr %2, align 8, !tbaa !8
  %81 = add nsw i64 %80, 1
  store i64 %81, ptr %2, align 8, !tbaa !8
  br label %21, !llvm.loop !14

82:                                               ; preds = %25
  %83 = load i64, ptr @N, align 8, !tbaa !8
  %84 = trunc i64 %83 to i32
  %85 = shl i32 1, %84
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i64, ptr @dp, i64 %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store double -1.000000e+09, ptr %6, align 8, !tbaa !15
  call void @_ZSt4fillIPxdEvT_S1_RKT0_(ptr noundef @dp, ptr noundef %87, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  store i64 0, ptr @dp, align 16, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store i64 0, ptr %8, align 8, !tbaa !8
  br label %88

88:                                               ; preds = %178, %82
  %89 = load i64, ptr %8, align 8, !tbaa !8
  %90 = load i64, ptr @N, align 8, !tbaa !8
  %91 = trunc i64 %90 to i32
  %92 = shl i32 1, %91
  %93 = sext i32 %92 to i64
  %94 = icmp slt i64 %89, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %88
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %181

96:                                               ; preds = %88
  %97 = load i64, ptr %8, align 8, !tbaa !8
  %98 = getelementptr inbounds [1048576 x i64], ptr @dp, i64 0, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !8
  %100 = icmp slt i64 %99, 0
  br i1 %100, label %101, label %102

101:                                              ; preds = %96
  br label %178

102:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 0, ptr %10, align 8, !tbaa !8
  br label %103

103:                                              ; preds = %121, %102
  %104 = load i64, ptr %10, align 8, !tbaa !8
  %105 = load i64, ptr @N, align 8, !tbaa !8
  %106 = icmp slt i64 %104, %105
  br i1 %106, label %108, label %107

107:                                              ; preds = %103
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %124

108:                                              ; preds = %103
  %109 = load i64, ptr %8, align 8, !tbaa !8
  %110 = load i64, ptr %10, align 8, !tbaa !8
  %111 = ashr i64 %109, %110
  %112 = and i64 %111, 1
  %113 = icmp ne i64 %112, 0
  br i1 %113, label %114, label %120

114:                                              ; preds = %108
  %115 = load i64, ptr %10, align 8, !tbaa !8
  %116 = getelementptr inbounds [20 x i64], ptr @ts, i64 0, i64 %115
  %117 = load i64, ptr %116, align 8, !tbaa !8
  %118 = load i64, ptr %9, align 8, !tbaa !8
  %119 = add nsw i64 %118, %117
  store i64 %119, ptr %9, align 8, !tbaa !8
  br label %120

120:                                              ; preds = %114, %108
  br label %121

121:                                              ; preds = %120
  %122 = load i64, ptr %10, align 8, !tbaa !8
  %123 = add nsw i64 %122, 1
  store i64 %123, ptr %10, align 8, !tbaa !8
  br label %103, !llvm.loop !17

124:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 0, ptr %11, align 8, !tbaa !8
  br label %125

125:                                              ; preds = %174, %124
  %126 = load i64, ptr %11, align 8, !tbaa !8
  %127 = load i64, ptr @N, align 8, !tbaa !8
  %128 = icmp slt i64 %126, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %125
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %177

130:                                              ; preds = %125
  %131 = load i64, ptr %8, align 8, !tbaa !8
  %132 = load i64, ptr %11, align 8, !tbaa !8
  %133 = ashr i64 %131, %132
  %134 = and i64 %133, 1
  %135 = icmp ne i64 %134, 0
  br i1 %135, label %173, label %136

136:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %137 = load i64, ptr %8, align 8, !tbaa !8
  %138 = getelementptr inbounds [1048576 x i64], ptr @dp, i64 0, i64 %137
  %139 = load i64, ptr %138, align 8, !tbaa !8
  %140 = load i64, ptr %11, align 8, !tbaa !8
  %141 = getelementptr inbounds [20 x [400001 x i64]], ptr @ct, i64 0, i64 %140
  %142 = load i64, ptr %9, align 8, !tbaa !8
  %143 = getelementptr inbounds [400001 x i64], ptr %141, i64 0, i64 %142
  %144 = load i64, ptr %143, align 8, !tbaa !8
  %145 = add nsw i64 %139, %144
  store i64 %145, ptr %12, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %146 = load i64, ptr %9, align 8, !tbaa !8
  %147 = load i64, ptr %11, align 8, !tbaa !8
  %148 = getelementptr inbounds [20 x i64], ptr @mn, i64 0, i64 %147
  %149 = load i64, ptr %148, align 8, !tbaa !8
  %150 = add nsw i64 %146, %149
  store i64 %150, ptr %13, align 8, !tbaa !8
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %152 = load i64, ptr %151, align 8, !tbaa !8
  store i64 %152, ptr %7, align 8, !tbaa !8
  %153 = load i64, ptr %13, align 8, !tbaa !8
  %154 = icmp sge i64 %153, 0
  br i1 %154, label %155, label %172

155:                                              ; preds = %136
  %156 = load i64, ptr %8, align 8, !tbaa !8
  %157 = load i64, ptr %11, align 8, !tbaa !8
  %158 = trunc i64 %157 to i32
  %159 = shl i32 1, %158
  %160 = sext i32 %159 to i64
  %161 = or i64 %156, %160
  %162 = getelementptr inbounds [1048576 x i64], ptr @dp, i64 0, i64 %161
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %164 = load i64, ptr %163, align 8, !tbaa !8
  %165 = load i64, ptr %8, align 8, !tbaa !8
  %166 = load i64, ptr %11, align 8, !tbaa !8
  %167 = trunc i64 %166 to i32
  %168 = shl i32 1, %167
  %169 = sext i32 %168 to i64
  %170 = or i64 %165, %169
  %171 = getelementptr inbounds [1048576 x i64], ptr @dp, i64 0, i64 %170
  store i64 %164, ptr %171, align 8, !tbaa !8
  br label %172

172:                                              ; preds = %155, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %173

173:                                              ; preds = %172, %130
  br label %174

174:                                              ; preds = %173
  %175 = load i64, ptr %11, align 8, !tbaa !8
  %176 = add nsw i64 %175, 1
  store i64 %176, ptr %11, align 8, !tbaa !8
  br label %125, !llvm.loop !18

177:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %178

178:                                              ; preds = %177, %101
  %179 = load i64, ptr %8, align 8, !tbaa !8
  %180 = add nsw i64 %179, 1
  store i64 %180, ptr %8, align 8, !tbaa !8
  br label %88, !llvm.loop !19

181:                                              ; preds = %95
  %182 = load i64, ptr %7, align 8, !tbaa !8
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %182)
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %183, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  %185 = load i32, ptr %1, align 4
  ret i32 %185
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #1 align 2

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPxdEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 align 2

attributes #0 = { 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 #1 = { 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 = { "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 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { inlinehint 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 #7 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !10, i64 0}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@N = external dso_local global i64, align 8
@ts = external dso_local local_unnamed_addr global [20 x i64], align 16
@ct = external dso_local local_unnamed_addr global [20 x [400001 x i64]], align 16
@mn = external dso_local global [20 x i64], align 16
@dp = external dso_local global [1048576 x i64], align 16
@_Z1SB5cxx11 = external dso_local global [20 x %"class.std::__cxx11::basic_string"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca double, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %6 = getelementptr i8, ptr %5, i64 -24
  %7 = load i64, ptr %6, align 8
  %8 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %7
  %9 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %8, ptr noundef null)
  %10 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %11 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %12 = load i64, ptr @N, align 8, !tbaa !8
  %13 = icmp sgt i64 %12, 0
  br i1 %13, label %.lr.ph50, label %._crit_edge51

._crit_edge51:                                    ; preds = %._crit_edge, %0
  %.lcssa = phi i64 [ %12, %0 ], [ %28, %._crit_edge ]
  %14 = trunc i64 %.lcssa to i32
  %15 = shl nuw i32 1, %14
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds i64, ptr @dp, i64 %16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  store double -1.000000e+09, ptr %2, align 8, !tbaa !11
  call void @_ZSt4fillIPxdEvT_S1_RKT0_(ptr noundef nonnull @dp, ptr noundef nonnull %17, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  store i64 0, ptr @dp, align 16, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store i64 0, ptr %3, align 8, !tbaa !8
  %18 = load i64, ptr @N, align 8, !tbaa !8
  %19 = and i64 %18, 4294967295
  %.not63 = icmp eq i64 %19, 31
  br i1 %.not63, label %._crit_edge62, label %.lr.ph61

.lr.ph50:                                         ; preds = %0, %._crit_edge
  %.048 = phi i64 [ %27, %._crit_edge ], [ 0, %0 ]
  %20 = getelementptr inbounds [20 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %.048
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %20)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  store i64 0, ptr %1, align 8, !tbaa !8
  %22 = getelementptr inbounds [20 x i64], ptr @mn, i64 0, i64 %.048
  store i64 0, ptr %22, align 8, !tbaa !8
  %23 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  %24 = icmp sgt i64 %23, 0
  br i1 %24, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %45, %.lr.ph50
  %25 = load i64, ptr %1, align 8, !tbaa !8
  %26 = getelementptr inbounds [20 x i64], ptr @ts, i64 0, i64 %.048
  store i64 %25, ptr %26, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  %27 = add nuw nsw i64 %.048, 1
  %28 = load i64, ptr @N, align 8, !tbaa !8
  %29 = icmp slt i64 %27, %28
  br i1 %29, label %.lr.ph50, label %._crit_edge51, !llvm.loop !13

.lr.ph:                                           ; preds = %.lr.ph50, %45
  %.04247 = phi i64 [ %46, %45 ], [ 0, %.lr.ph50 ]
  %30 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %20, i64 noundef %.04247)
  %31 = load i8, ptr %30, align 1, !tbaa !15
  %32 = icmp eq i8 %31, 40
  %33 = select i1 %32, i64 1, i64 -1
  %34 = load i64, ptr %1, align 8, !tbaa !8
  %35 = add nsw i64 %33, %34
  store i64 %35, ptr %1, align 8, !tbaa !8
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %37 = load i64, ptr %36, align 8, !tbaa !8
  store i64 %37, ptr %22, align 8, !tbaa !8
  %38 = load i64, ptr %1, align 8, !tbaa !8
  %39 = icmp eq i64 %37, %38
  br i1 %39, label %40, label %45

40:                                               ; preds = %.lr.ph
  %41 = sub nsw i64 0, %37
  %42 = getelementptr inbounds [20 x [400001 x i64]], ptr @ct, i64 0, i64 %.048, i64 %41
  %43 = load i64, ptr %42, align 8, !tbaa !8
  %44 = add nsw i64 %43, 1
  store i64 %44, ptr %42, align 8, !tbaa !8
  br label %45

45:                                               ; preds = %.lr.ph, %40
  %46 = add nuw nsw i64 %.04247, 1
  %47 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  %48 = icmp slt i64 %46, %47
  br i1 %48, label %.lr.ph, label %._crit_edge, !llvm.loop !16

._crit_edge62.loopexit:                           ; preds = %.loopexit
  %.pre65 = load i64, ptr %3, align 8, !tbaa !8
  br label %._crit_edge62

._crit_edge62:                                    ; preds = %._crit_edge62.loopexit, %._crit_edge51
  %49 = phi i64 [ %.pre65, %._crit_edge62.loopexit ], [ 0, %._crit_edge51 ]
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %49)
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %50, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret i32 0

.lr.ph61:                                         ; preds = %._crit_edge51, %.loopexit
  %52 = phi i64 [ %107, %.loopexit ], [ %18, %._crit_edge51 ]
  %.04158 = phi i64 [ %108, %.loopexit ], [ 0, %._crit_edge51 ]
  %53 = getelementptr inbounds [1048576 x i64], ptr @dp, i64 0, i64 %.04158
  %54 = load i64, ptr %53, align 8, !tbaa !8
  %55 = icmp slt i64 %54, 0
  br i1 %55, label %.loopexit, label %.preheader46

.preheader46:                                     ; preds = %.lr.ph61
  %56 = icmp sgt i64 %52, 0
  br i1 %56, label %.lr.ph54.preheader, label %.loopexit

.lr.ph54.preheader:                               ; preds = %.preheader46
  %xtraiter = and i64 %52, 1
  %57 = icmp eq i64 %52, 1
  br i1 %57, label %.preheader.unr-lcssa, label %.lr.ph54.preheader.new

.lr.ph54.preheader.new:                           ; preds = %.lr.ph54.preheader
  %unroll_iter = and i64 %52, 9223372036854775806
  br label %.lr.ph54

.preheader.unr-lcssa:                             ; preds = %77, %.lr.ph54.preheader
  %.1.lcssa.ph = phi i64 [ poison, %.lr.ph54.preheader ], [ %.1.1, %77 ]
  %.03953.unr = phi i64 [ 0, %.lr.ph54.preheader ], [ %78, %77 ]
  %.04052.unr = phi i64 [ 0, %.lr.ph54.preheader ], [ %.1.1, %77 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.lr.ph54.epil

.lr.ph54.epil:                                    ; preds = %.preheader.unr-lcssa
  %58 = shl nuw i64 1, %.03953.unr
  %59 = and i64 %58, %.04158
  %.not45.epil = icmp eq i64 %59, 0
  br i1 %.not45.epil, label %.preheader, label %60

60:                                               ; preds = %.lr.ph54.epil
  %61 = getelementptr inbounds [20 x i64], ptr @ts, i64 0, i64 %.03953.unr
  %62 = load i64, ptr %61, align 8, !tbaa !8
  %63 = add nsw i64 %62, %.04052.unr
  br label %.preheader

.preheader:                                       ; preds = %.lr.ph54.epil, %60, %.preheader.unr-lcssa
  %.1.lcssa = phi i64 [ %.1.lcssa.ph, %.preheader.unr-lcssa ], [ %63, %60 ], [ %.04052.unr, %.lr.ph54.epil ]
  %invariant.op = xor i64 %.1.lcssa, -1
  br i1 %56, label %.lr.ph57, label %.loopexit

.lr.ph54:                                         ; preds = %77, %.lr.ph54.preheader.new
  %.03953 = phi i64 [ 0, %.lr.ph54.preheader.new ], [ %78, %77 ]
  %.04052 = phi i64 [ 0, %.lr.ph54.preheader.new ], [ %.1.1, %77 ]
  %niter = phi i64 [ 0, %.lr.ph54.preheader.new ], [ %niter.next.1, %77 ]
  %64 = shl nuw i64 1, %.03953
  %65 = and i64 %64, %.04158
  %.not45 = icmp eq i64 %65, 0
  br i1 %.not45, label %.lr.ph54.1, label %66

66:                                               ; preds = %.lr.ph54
  %67 = getelementptr inbounds [20 x i64], ptr @ts, i64 0, i64 %.03953
  %68 = load i64, ptr %67, align 16, !tbaa !8
  %69 = add nsw i64 %68, %.04052
  br label %.lr.ph54.1

.lr.ph54.1:                                       ; preds = %.lr.ph54, %66
  %.1 = phi i64 [ %69, %66 ], [ %.04052, %.lr.ph54 ]
  %70 = shl nuw i64 2, %.03953
  %71 = and i64 %70, %.04158
  %.not45.1 = icmp eq i64 %71, 0
  br i1 %.not45.1, label %77, label %72

72:                                               ; preds = %.lr.ph54.1
  %73 = or disjoint i64 %.03953, 1
  %74 = getelementptr inbounds [20 x i64], ptr @ts, i64 0, i64 %73
  %75 = load i64, ptr %74, align 8, !tbaa !8
  %76 = add nsw i64 %75, %.1
  br label %77

77:                                               ; preds = %72, %.lr.ph54.1
  %.1.1 = phi i64 [ %76, %72 ], [ %.1, %.lr.ph54.1 ]
  %78 = add nuw nsw i64 %.03953, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader.unr-lcssa, label %.lr.ph54, !llvm.loop !17

.lr.ph57:                                         ; preds = %.preheader, %102
  %79 = phi i64 [ %103, %102 ], [ %52, %.preheader ]
  %80 = phi i64 [ %104, %102 ], [ %52, %.preheader ]
  %.03856 = phi i64 [ %105, %102 ], [ 0, %.preheader ]
  %81 = shl nuw i64 1, %.03856
  %82 = and i64 %81, %.04158
  %.not = icmp eq i64 %82, 0
  br i1 %.not, label %83, label %102

83:                                               ; preds = %.lr.ph57
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %84 = load i64, ptr %53, align 8, !tbaa !8
  %85 = getelementptr inbounds [20 x [400001 x i64]], ptr @ct, i64 0, i64 %.03856, i64 %.1.lcssa
  %86 = load i64, ptr %85, align 8, !tbaa !8
  %87 = add nsw i64 %86, %84
  store i64 %87, ptr %4, align 8, !tbaa !8
  %88 = getelementptr inbounds [20 x i64], ptr @mn, i64 0, i64 %.03856
  %89 = load i64, ptr %88, align 8, !tbaa !8
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %91 = load i64, ptr %90, align 8, !tbaa !8
  store i64 %91, ptr %3, align 8, !tbaa !8
  %92 = icmp sgt i64 %89, %invariant.op
  br i1 %92, label %93, label %101

93:                                               ; preds = %83
  %94 = trunc i64 %.03856 to i32
  %95 = shl nuw i32 1, %94
  %96 = sext i32 %95 to i64
  %97 = or i64 %.04158, %96
  %98 = getelementptr inbounds [1048576 x i64], ptr @dp, i64 0, i64 %97
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %100 = load i64, ptr %99, align 8, !tbaa !8
  store i64 %100, ptr %98, align 8, !tbaa !8
  br label %101

101:                                              ; preds = %93, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %.pre = load i64, ptr @N, align 8, !tbaa !8
  br label %102

102:                                              ; preds = %.lr.ph57, %101
  %103 = phi i64 [ %79, %.lr.ph57 ], [ %.pre, %101 ]
  %104 = phi i64 [ %80, %.lr.ph57 ], [ %.pre, %101 ]
  %105 = add nuw nsw i64 %.03856, 1
  %106 = icmp slt i64 %105, %104
  br i1 %106, label %.lr.ph57, label %.loopexit, !llvm.loop !18

.loopexit:                                        ; preds = %102, %.preheader46, %.preheader, %.lr.ph61
  %107 = phi i64 [ %52, %.preheader ], [ %52, %.lr.ph61 ], [ %52, %.preheader46 ], [ %103, %102 ]
  %108 = add nuw nsw i64 %.04158, 1
  %109 = trunc i64 %107 to i32
  %110 = shl nuw i32 1, %109
  %111 = sext i32 %110 to i64
  %112 = icmp slt i64 %108, %111
  br i1 %112, label %.lr.ph61, label %._crit_edge62.loopexit, !llvm.loop !19
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPxdEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 align 2

attributes #0 = { 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 #1 = { 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 = { "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 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { inlinehint 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 #7 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


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