; LLVM IR from eyangch/competitive-programming :: Codeforces/1621 (e)

; 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.segt = type { i64, [400001 x i64], [400001 x i64] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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" }

@S = external dso_local global %struct.segt, align 8
@T = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@A = external dso_local global [100000 x i64], align 16
@sum = external dso_local global [100000 x i64], align 16
@tot = external dso_local global [100000 x i64], align 16
@B = external dso_local global [100000 x %"class.std::vector"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z4divcxx(i64 noundef, i64 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i64, 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
  store i32 0, ptr %1, align 4
  %12 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %13 = getelementptr i8, ptr %12, i64 -24
  %14 = load i64, ptr %13, align 8
  %15 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %14
  %16 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %15, ptr noundef null)
  %17 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  br label %19

19:                                               ; preds = %185, %0
  %20 = load i64, ptr @T, align 8, !tbaa !8
  %21 = add nsw i64 %20, -1
  store i64 %21, ptr @T, align 8, !tbaa !8
  %22 = icmp ne i64 %20, 0
  br i1 %22, label %23, label %186

23:                                               ; preds = %19
  %24 = 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)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) @M)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %26

26:                                               ; preds = %38, %23
  %27 = load i64, ptr %2, align 8, !tbaa !8
  %28 = load i64, ptr @N, align 8, !tbaa !8
  %29 = icmp slt i64 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %41

31:                                               ; preds = %26
  %32 = load i64, ptr %2, align 8, !tbaa !8
  %33 = getelementptr inbounds [100000 x i64], ptr @A, i64 0, i64 %32
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %35 = load i64, ptr %2, align 8, !tbaa !8
  %36 = getelementptr inbounds [100000 x i64], ptr @A, i64 0, i64 %35
  %37 = load i64, ptr %36, align 8, !tbaa !8
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %37, i64 noundef 1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  br label %38

38:                                               ; preds = %31
  %39 = load i64, ptr %2, align 8, !tbaa !8
  %40 = add nsw i64 %39, 1
  store i64 %40, ptr %2, align 8, !tbaa !8
  br label %26, !llvm.loop !11

41:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store i64 0, ptr %3, align 8, !tbaa !8
  br label %42

42:                                               ; preds = %84, %41
  %43 = load i64, ptr %3, align 8, !tbaa !8
  %44 = load i64, ptr @M, align 8, !tbaa !8
  %45 = icmp slt i64 %43, %44
  br i1 %45, label %47, label %46

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

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %49 = load i64, ptr %3, align 8, !tbaa !8
  %50 = getelementptr inbounds [100000 x %"class.std::vector"], ptr @B, i64 0, i64 %49
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %51 = load i64, ptr %3, align 8, !tbaa !8
  %52 = getelementptr inbounds [100000 x i64], ptr @sum, i64 0, i64 %51
  store i64 0, ptr %52, align 8, !tbaa !8
  %53 = load i64, ptr %3, align 8, !tbaa !8
  %54 = getelementptr inbounds [100000 x i64], ptr @tot, i64 0, i64 %53
  store i64 0, ptr %54, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 0, ptr %6, align 8, !tbaa !8
  br label %55

55:                                               ; preds = %73, %47
  %56 = load i64, ptr %6, align 8, !tbaa !8
  %57 = load i64, ptr %5, align 8, !tbaa !8
  %58 = icmp slt i64 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 10, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %76

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %62 = load i64, ptr %3, align 8, !tbaa !8
  %63 = getelementptr inbounds [100000 x %"class.std::vector"], ptr @B, i64 0, i64 %62
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %64 = load i64, ptr %7, align 8, !tbaa !8
  %65 = load i64, ptr %3, align 8, !tbaa !8
  %66 = getelementptr inbounds [100000 x i64], ptr @sum, i64 0, i64 %65
  %67 = load i64, ptr %66, align 8, !tbaa !8
  %68 = add nsw i64 %67, %64
  store i64 %68, ptr %66, align 8, !tbaa !8
  %69 = load i64, ptr %3, align 8, !tbaa !8
  %70 = getelementptr inbounds [100000 x i64], ptr @tot, i64 0, i64 %69
  %71 = load i64, ptr %70, align 8, !tbaa !8
  %72 = add nsw i64 %71, 1
  store i64 %72, ptr %70, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %73

73:                                               ; preds = %60
  %74 = load i64, ptr %6, align 8, !tbaa !8
  %75 = add nsw i64 %74, 1
  store i64 %75, ptr %6, align 8, !tbaa !8
  br label %55, !llvm.loop !13

76:                                               ; preds = %59
  %77 = load i64, ptr %3, align 8, !tbaa !8
  %78 = getelementptr inbounds [100000 x i64], ptr @sum, i64 0, i64 %77
  %79 = load i64, ptr %78, align 8, !tbaa !8
  %80 = load i64, ptr %3, align 8, !tbaa !8
  %81 = getelementptr inbounds [100000 x i64], ptr @tot, i64 0, i64 %80
  %82 = load i64, ptr %81, align 8, !tbaa !8
  %83 = call noundef i64 @_Z4divcxx(i64 noundef %79, i64 noundef %82)
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %83, i64 noundef -1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %84

84:                                               ; preds = %76
  %85 = load i64, ptr %3, align 8, !tbaa !8
  %86 = add nsw i64 %85, 1
  store i64 %86, ptr %3, align 8, !tbaa !8
  br label %42, !llvm.loop !14

87:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 0, ptr %8, align 8, !tbaa !8
  br label %88

88:                                               ; preds = %151, %87
  %89 = load i64, ptr %8, align 8, !tbaa !8
  %90 = load i64, ptr @M, align 8, !tbaa !8
  %91 = icmp slt i64 %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  store i32 13, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %154

93:                                               ; preds = %88
  %94 = load i64, ptr %8, align 8, !tbaa !8
  %95 = getelementptr inbounds [100000 x i64], ptr @sum, i64 0, i64 %94
  %96 = load i64, ptr %95, align 8, !tbaa !8
  %97 = load i64, ptr %8, align 8, !tbaa !8
  %98 = getelementptr inbounds [100000 x i64], ptr @tot, i64 0, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !8
  %100 = call noundef i64 @_Z4divcxx(i64 noundef %96, i64 noundef %99)
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %100, i64 noundef 1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !8
  br label %101

101:                                              ; preds = %140, %93
  %102 = load i64, ptr %9, align 8, !tbaa !8
  %103 = load i64, ptr %8, align 8, !tbaa !8
  %104 = getelementptr inbounds [100000 x i64], ptr @tot, i64 0, i64 %103
  %105 = load i64, ptr %104, align 8, !tbaa !8
  %106 = icmp slt i64 %102, %105
  br i1 %106, label %108, label %107

107:                                              ; preds = %101
  store i32 16, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %143

108:                                              ; preds = %101
  %109 = load i64, ptr %8, align 8, !tbaa !8
  %110 = getelementptr inbounds [100000 x i64], ptr @sum, i64 0, i64 %109
  %111 = load i64, ptr %110, align 8, !tbaa !8
  %112 = load i64, ptr %8, align 8, !tbaa !8
  %113 = getelementptr inbounds [100000 x %"class.std::vector"], ptr @B, i64 0, i64 %112
  %114 = load i64, ptr %9, align 8, !tbaa !8
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %113, i64 noundef %114) #6
  %116 = load i64, ptr %115, align 8, !tbaa !8
  %117 = sub nsw i64 %111, %116
  %118 = load i64, ptr %8, align 8, !tbaa !8
  %119 = getelementptr inbounds [100000 x i64], ptr @tot, i64 0, i64 %118
  %120 = load i64, ptr %119, align 8, !tbaa !8
  %121 = sub nsw i64 %120, 1
  %122 = call noundef i64 @_Z4divcxx(i64 noundef %117, i64 noundef %121)
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %122, i64 noundef -1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  %123 = load i64, ptr getelementptr inbounds ([400001 x i64], ptr getelementptr inbounds (%struct.segt, ptr @S, i32 0, i32 2), i64 0, i64 1), align 8, !tbaa !8
  %124 = icmp sge i64 %123, 0
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i1 noundef zeroext %124)
  %126 = load i64, ptr %8, align 8, !tbaa !8
  %127 = getelementptr inbounds [100000 x i64], ptr @sum, i64 0, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !8
  %129 = load i64, ptr %8, align 8, !tbaa !8
  %130 = getelementptr inbounds [100000 x %"class.std::vector"], ptr @B, i64 0, i64 %129
  %131 = load i64, ptr %9, align 8, !tbaa !8
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %131) #6
  %133 = load i64, ptr %132, align 8, !tbaa !8
  %134 = sub nsw i64 %128, %133
  %135 = load i64, ptr %8, align 8, !tbaa !8
  %136 = getelementptr inbounds [100000 x i64], ptr @tot, i64 0, i64 %135
  %137 = load i64, ptr %136, align 8, !tbaa !8
  %138 = sub nsw i64 %137, 1
  %139 = call noundef i64 @_Z4divcxx(i64 noundef %134, i64 noundef %138)
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %139, i64 noundef 1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  br label %140

140:                                              ; preds = %108
  %141 = load i64, ptr %9, align 8, !tbaa !8
  %142 = add nsw i64 %141, 1
  store i64 %142, ptr %9, align 8, !tbaa !8
  br label %101, !llvm.loop !15

143:                                              ; preds = %107
  %144 = load i64, ptr %8, align 8, !tbaa !8
  %145 = getelementptr inbounds [100000 x i64], ptr @sum, i64 0, i64 %144
  %146 = load i64, ptr %145, align 8, !tbaa !8
  %147 = load i64, ptr %8, align 8, !tbaa !8
  %148 = getelementptr inbounds [100000 x i64], ptr @tot, i64 0, i64 %147
  %149 = load i64, ptr %148, align 8, !tbaa !8
  %150 = call noundef i64 @_Z4divcxx(i64 noundef %146, i64 noundef %149)
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %150, i64 noundef -1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  br label %151

151:                                              ; preds = %143
  %152 = load i64, ptr %8, align 8, !tbaa !8
  %153 = add nsw i64 %152, 1
  store i64 %153, ptr %8, align 8, !tbaa !8
  br label %88, !llvm.loop !16

154:                                              ; preds = %92
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !8
  br label %156

156:                                              ; preds = %165, %154
  %157 = load i64, ptr %10, align 8, !tbaa !8
  %158 = load i64, ptr @N, align 8, !tbaa !8
  %159 = icmp slt i64 %157, %158
  br i1 %159, label %161, label %160

160:                                              ; preds = %156
  store i32 19, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %168

161:                                              ; preds = %156
  %162 = load i64, ptr %10, align 8, !tbaa !8
  %163 = getelementptr inbounds [100000 x i64], ptr @A, i64 0, i64 %162
  %164 = load i64, ptr %163, align 8, !tbaa !8
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %164, i64 noundef -1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  br label %165

165:                                              ; preds = %161
  %166 = load i64, ptr %10, align 8, !tbaa !8
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr %10, align 8, !tbaa !8
  br label %156, !llvm.loop !17

168:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !8
  br label %169

169:                                              ; preds = %182, %168
  %170 = load i64, ptr %11, align 8, !tbaa !8
  %171 = load i64, ptr @M, align 8, !tbaa !8
  %172 = icmp slt i64 %170, %171
  br i1 %172, label %174, label %173

173:                                              ; preds = %169
  store i32 22, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %185

174:                                              ; preds = %169
  %175 = load i64, ptr %11, align 8, !tbaa !8
  %176 = getelementptr inbounds [100000 x i64], ptr @sum, i64 0, i64 %175
  %177 = load i64, ptr %176, align 8, !tbaa !8
  %178 = load i64, ptr %11, align 8, !tbaa !8
  %179 = getelementptr inbounds [100000 x i64], ptr @tot, i64 0, i64 %178
  %180 = load i64, ptr %179, align 8, !tbaa !8
  %181 = call noundef i64 @_Z4divcxx(i64 noundef %177, i64 noundef %180)
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %181, i64 noundef 1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  br label %182

182:                                              ; preds = %174
  %183 = load i64, ptr %11, align 8, !tbaa !8
  %184 = add nsw i64 %183, 1
  store i64 %184, ptr %11, align 8, !tbaa !8
  br label %169, !llvm.loop !18

185:                                              ; preds = %173
  br label %19, !llvm.loop !19

186:                                              ; preds = %19
  %187 = load i32, ptr %1, align 4
  ret i32 %187
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #0 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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

; 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) #5

attributes #0 = { 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 #1 = { 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 #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 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 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.segt = type { i64, [400001 x i64], [400001 x i64] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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" }

@S = external dso_local global %struct.segt, align 8
@T = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@A = external dso_local global [100000 x i64], align 16
@sum = external dso_local local_unnamed_addr global [100000 x i64], align 16
@tot = external dso_local local_unnamed_addr global [100000 x i64], align 16
@B = external dso_local global [100000 x %"class.std::vector"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %4 = getelementptr i8, ptr %3, i64 -24
  %5 = load i64, ptr %4, align 8
  %6 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %5
  %7 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %6, ptr noundef null)
  %8 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %9 = 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) @T)
  %10 = load i64, ptr @T, align 8, !tbaa !8
  %11 = add nsw i64 %10, -1
  store i64 %11, ptr @T, align 8, !tbaa !8
  %.not67 = icmp eq i64 %10, 0
  br i1 %.not67, label %._crit_edge70, label %.lr.ph69

.loopexit:                                        ; preds = %.lr.ph66, %.preheader
  %12 = load i64, ptr @T, align 8, !tbaa !8
  %13 = add nsw i64 %12, -1
  store i64 %13, ptr @T, align 8, !tbaa !8
  %.not = icmp eq i64 %12, 0
  br i1 %.not, label %._crit_edge70, label %.lr.ph69, !llvm.loop !11

.lr.ph69:                                         ; preds = %0, %.loopexit
  %14 = 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)
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) @M)
  %16 = load i64, ptr @N, align 8, !tbaa !8
  %17 = icmp sgt i64 %16, 0
  br i1 %17, label %.lr.ph, label %.preheader49

.preheader49:                                     ; preds = %.lr.ph, %.lr.ph69
  %18 = load i64, ptr @M, align 8, !tbaa !8
  %19 = icmp sgt i64 %18, 0
  br i1 %19, label %.lr.ph54, label %._crit_edge61

.lr.ph:                                           ; preds = %.lr.ph69, %.lr.ph
  %.04650 = phi i64 [ %23, %.lr.ph ], [ 0, %.lr.ph69 ]
  %20 = getelementptr inbounds [100000 x i64], ptr @A, i64 0, i64 %.04650
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %22 = load i64, ptr %20, align 8, !tbaa !8
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %22, i64 noundef 1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  %23 = add nuw nsw i64 %.04650, 1
  %24 = load i64, ptr @N, align 8, !tbaa !8
  %25 = icmp slt i64 %23, %24
  br i1 %25, label %.lr.ph, label %.preheader49, !llvm.loop !13

.preheader48:                                     ; preds = %._crit_edge
  %26 = icmp sgt i64 %37, 0
  br i1 %26, label %.lr.ph60, label %._crit_edge61

.lr.ph54:                                         ; preds = %.preheader49, %._crit_edge
  %.04553 = phi i64 [ %36, %._crit_edge ], [ 0, %.preheader49 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %28 = getelementptr inbounds [100000 x %"class.std::vector"], ptr @B, i64 0, i64 %.04553
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  %29 = getelementptr inbounds [100000 x i64], ptr @sum, i64 0, i64 %.04553
  store i64 0, ptr %29, align 8, !tbaa !8
  %30 = getelementptr inbounds [100000 x i64], ptr @tot, i64 0, i64 %.04553
  store i64 0, ptr %30, align 8, !tbaa !8
  %31 = load i64, ptr %1, align 8, !tbaa !8
  %32 = icmp sgt i64 %31, 0
  br i1 %32, label %.lr.ph52, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph52, %.lr.ph54
  %33 = phi i64 [ 0, %.lr.ph54 ], [ %44, %.lr.ph52 ]
  %34 = phi i64 [ 0, %.lr.ph54 ], [ %42, %.lr.ph52 ]
  %35 = call noundef i64 @_Z4divcxx(i64 noundef %34, i64 noundef %33)
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %35, i64 noundef -1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  %36 = add nuw nsw i64 %.04553, 1
  %37 = load i64, ptr @M, align 8, !tbaa !8
  %38 = icmp slt i64 %36, %37
  br i1 %38, label %.lr.ph54, label %.preheader48, !llvm.loop !14

.lr.ph52:                                         ; preds = %.lr.ph54, %.lr.ph52
  %.04451 = phi i64 [ %45, %.lr.ph52 ], [ 0, %.lr.ph54 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %40 = load i64, ptr %2, align 8, !tbaa !8
  %41 = load i64, ptr %29, align 8, !tbaa !8
  %42 = add nsw i64 %41, %40
  store i64 %42, ptr %29, align 8, !tbaa !8
  %43 = load i64, ptr %30, align 8, !tbaa !8
  %44 = add nsw i64 %43, 1
  store i64 %44, ptr %30, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %45 = add nuw nsw i64 %.04451, 1
  %46 = load i64, ptr %1, align 8, !tbaa !8
  %47 = icmp slt i64 %45, %46
  br i1 %47, label %.lr.ph52, label %._crit_edge, !llvm.loop !15

._crit_edge61:                                    ; preds = %._crit_edge58, %.preheader49, %.preheader48
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
  %49 = load i64, ptr @N, align 8, !tbaa !8
  %50 = icmp sgt i64 %49, 0
  br i1 %50, label %.lr.ph64, label %.preheader

.lr.ph60:                                         ; preds = %.preheader48, %._crit_edge58
  %.04359 = phi i64 [ %61, %._crit_edge58 ], [ 0, %.preheader48 ]
  %51 = getelementptr inbounds [100000 x i64], ptr @sum, i64 0, i64 %.04359
  %52 = load i64, ptr %51, align 8, !tbaa !8
  %53 = getelementptr inbounds [100000 x i64], ptr @tot, i64 0, i64 %.04359
  %54 = load i64, ptr %53, align 8, !tbaa !8
  %55 = call noundef i64 @_Z4divcxx(i64 noundef %52, i64 noundef %54)
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %55, i64 noundef 1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  %56 = load i64, ptr %53, align 8, !tbaa !8
  %57 = icmp sgt i64 %56, 0
  br i1 %57, label %.lr.ph57, label %._crit_edge58

.lr.ph57:                                         ; preds = %.lr.ph60
  %58 = getelementptr inbounds [100000 x %"class.std::vector"], ptr @B, i64 0, i64 %.04359
  br label %64

._crit_edge58:                                    ; preds = %64, %.lr.ph60
  %.lcssa = phi i64 [ %56, %.lr.ph60 ], [ %83, %64 ]
  %59 = load i64, ptr %51, align 8, !tbaa !8
  %60 = call noundef i64 @_Z4divcxx(i64 noundef %59, i64 noundef %.lcssa)
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %60, i64 noundef -1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  %61 = add nuw nsw i64 %.04359, 1
  %62 = load i64, ptr @M, align 8, !tbaa !8
  %63 = icmp slt i64 %61, %62
  br i1 %63, label %.lr.ph60, label %._crit_edge61, !llvm.loop !16

64:                                               ; preds = %.lr.ph57, %64
  %.04255 = phi i64 [ 0, %.lr.ph57 ], [ %82, %64 ]
  %65 = load i64, ptr %51, align 8, !tbaa !8
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %.04255) #6
  %67 = load i64, ptr %66, align 8, !tbaa !8
  %68 = sub nsw i64 %65, %67
  %69 = load i64, ptr %53, align 8, !tbaa !8
  %70 = add nsw i64 %69, -1
  %71 = call noundef i64 @_Z4divcxx(i64 noundef %68, i64 noundef %70)
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %71, i64 noundef -1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  %72 = load i64, ptr getelementptr inbounds (i8, ptr @S, i64 3200024), align 8, !tbaa !8
  %73 = icmp sgt i64 %72, -1
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i1 noundef zeroext %73)
  %75 = load i64, ptr %51, align 8, !tbaa !8
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %.04255) #6
  %77 = load i64, ptr %76, align 8, !tbaa !8
  %78 = sub nsw i64 %75, %77
  %79 = load i64, ptr %53, align 8, !tbaa !8
  %80 = add nsw i64 %79, -1
  %81 = call noundef i64 @_Z4divcxx(i64 noundef %78, i64 noundef %80)
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %81, i64 noundef 1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  %82 = add nuw nsw i64 %.04255, 1
  %83 = load i64, ptr %53, align 8, !tbaa !8
  %84 = icmp slt i64 %82, %83
  br i1 %84, label %64, label %._crit_edge58, !llvm.loop !17

.preheader:                                       ; preds = %.lr.ph64, %._crit_edge61
  %85 = load i64, ptr @M, align 8, !tbaa !8
  %86 = icmp sgt i64 %85, 0
  br i1 %86, label %.lr.ph66, label %.loopexit

.lr.ph64:                                         ; preds = %._crit_edge61, %.lr.ph64
  %.04162 = phi i64 [ %89, %.lr.ph64 ], [ 0, %._crit_edge61 ]
  %87 = getelementptr inbounds [100000 x i64], ptr @A, i64 0, i64 %.04162
  %88 = load i64, ptr %87, align 8, !tbaa !8
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %88, i64 noundef -1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  %89 = add nuw nsw i64 %.04162, 1
  %90 = load i64, ptr @N, align 8, !tbaa !8
  %91 = icmp slt i64 %89, %90
  br i1 %91, label %.lr.ph64, label %.preheader, !llvm.loop !18

.lr.ph66:                                         ; preds = %.preheader, %.lr.ph66
  %.065 = phi i64 [ %97, %.lr.ph66 ], [ 0, %.preheader ]
  %92 = getelementptr inbounds [100000 x i64], ptr @sum, i64 0, i64 %.065
  %93 = load i64, ptr %92, align 8, !tbaa !8
  %94 = getelementptr inbounds [100000 x i64], ptr @tot, i64 0, i64 %.065
  %95 = load i64, ptr %94, align 8, !tbaa !8
  %96 = call noundef i64 @_Z4divcxx(i64 noundef %93, i64 noundef %95)
  call void @_ZN4segt3updExxxxx(ptr noundef nonnull align 8 dereferenceable(6400024) @S, i64 noundef %96, i64 noundef 1, i64 noundef 1, i64 noundef 0, i64 noundef 100000)
  %97 = add nuw nsw i64 %.065, 1
  %98 = load i64, ptr @M, align 8, !tbaa !8
  %99 = icmp slt i64 %97, %98
  br i1 %99, label %.lr.ph66, label %.loopexit, !llvm.loop !19

._crit_edge70:                                    ; preds = %.loopexit, %0
  ret i32 0
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #0 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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

; 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 #5

attributes #0 = { 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 #1 = { 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 #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 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 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


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