; LLVM IR from kazunetakahashi/atcoder :: 2019/0209_yahoo-procon2019-qual (D)

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

@L = external dso_local global i32, align 4
@A = external dso_local global [200010 x i64], align 16
@B = external dso_local global [200010 x i64], align 16
@C = external dso_local global [200010 x i64], align 16
@sum = external dso_local global [3 x [200010 x i64]], 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 @_Z4calciiii(i32 noundef, i32 noundef, 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: 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() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  %4 = alloca i8, align 1
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @L)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %16

16:                                               ; preds = %32, %0
  %17 = load i32, ptr %3, align 4, !tbaa !9
  %18 = load i32, ptr @L, align 4, !tbaa !9
  %19 = icmp slt i32 %17, %18
  br i1 %19, label %21, label %20

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

21:                                               ; preds = %16
  %22 = load i32, ptr %3, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [200010 x i64], ptr @A, i64 0, i64 %23
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [200010 x i64], ptr @A, i64 0, i64 %27
  %29 = load i64, ptr %28, align 8, !tbaa !5
  %30 = load i64, ptr %2, align 8, !tbaa !5
  %31 = add nsw i64 %30, %29
  store i64 %31, ptr %2, align 8, !tbaa !5
  br label %32

32:                                               ; preds = %21
  %33 = load i32, ptr %3, align 4, !tbaa !9
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %3, align 4, !tbaa !9
  br label %16, !llvm.loop !11

35:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #7
  store i8 1, ptr %4, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %49, %35
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = load i32, ptr @L, align 4, !tbaa !9
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  store i32 5, ptr %6, align 4
  br label %52

41:                                               ; preds = %36
  %42 = load i32, ptr %5, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [200010 x i64], ptr @A, i64 0, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !5
  %46 = icmp sgt i64 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %41
  store i8 0, ptr %4, align 1, !tbaa !13
  store i32 5, ptr %6, align 4
  br label %52

48:                                               ; preds = %41
  br label %49

49:                                               ; preds = %48
  %50 = load i32, ptr %5, align 4, !tbaa !9
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %5, align 4, !tbaa !9
  br label %36, !llvm.loop !15

52:                                               ; preds = %47, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %53

53:                                               ; preds = %52
  %54 = load i8, ptr %4, align 1, !tbaa !13, !range !16, !noundef !17
  %55 = trunc i8 %54 to i1
  br i1 %55, label %56, label %59

56:                                               ; preds = %53
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %223

59:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %92, %59
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = load i32, ptr @L, align 4, !tbaa !9
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %65, label %64

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

65:                                               ; preds = %60
  %66 = load i32, ptr %7, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [200010 x i64], ptr @A, i64 0, i64 %67
  %69 = load i64, ptr %68, align 8, !tbaa !5
  %70 = icmp eq i64 %69, 0
  br i1 %70, label %71, label %75

71:                                               ; preds = %65
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [200010 x i64], ptr @B, i64 0, i64 %73
  store i64 2, ptr %74, align 8, !tbaa !5
  br label %91

75:                                               ; preds = %65
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [200010 x i64], ptr @A, i64 0, i64 %77
  %79 = load i64, ptr %78, align 8, !tbaa !5
  %80 = srem i64 %79, 2
  %81 = icmp eq i64 %80, 0
  br i1 %81, label %82, label %86

82:                                               ; preds = %75
  %83 = load i32, ptr %7, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [200010 x i64], ptr @B, i64 0, i64 %84
  store i64 0, ptr %85, align 8, !tbaa !5
  br label %90

86:                                               ; preds = %75
  %87 = load i32, ptr %7, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [200010 x i64], ptr @B, i64 0, i64 %88
  store i64 1, ptr %89, align 8, !tbaa !5
  br label %90

90:                                               ; preds = %86, %82
  br label %91

91:                                               ; preds = %90, %71
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %7, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %7, align 4, !tbaa !9
  br label %60, !llvm.loop !18

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

96:                                               ; preds = %117, %95
  %97 = load i32, ptr %8, align 4, !tbaa !9
  %98 = load i32, ptr @L, align 4, !tbaa !9
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %96
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %120

101:                                              ; preds = %96
  %102 = load i32, ptr %8, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [200010 x i64], ptr @A, i64 0, i64 %103
  %105 = load i64, ptr %104, align 8, !tbaa !5
  %106 = srem i64 %105, 2
  %107 = icmp eq i64 %106, 1
  br i1 %107, label %108, label %112

108:                                              ; preds = %101
  %109 = load i32, ptr %8, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [200010 x i64], ptr @C, i64 0, i64 %110
  store i64 0, ptr %111, align 8, !tbaa !5
  br label %116

112:                                              ; preds = %101
  %113 = load i32, ptr %8, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [200010 x i64], ptr @C, i64 0, i64 %114
  store i64 1, ptr %115, align 8, !tbaa !5
  br label %116

116:                                              ; preds = %112, %108
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %8, align 4, !tbaa !9
  br label %96, !llvm.loop !19

120:                                              ; preds = %100
  store i64 0, ptr getelementptr inbounds ([200010 x i64], ptr @sum, i64 0, i64 2), align 16, !tbaa !5
  store i64 0, ptr getelementptr inbounds ([200010 x i64], ptr @sum, i64 0, i64 1), align 8, !tbaa !5
  store i64 0, ptr @sum, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %166, %120
  %122 = load i32, ptr %9, align 4, !tbaa !9
  %123 = load i32, ptr @L, align 4, !tbaa !9
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %121
  store i32 14, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %169

126:                                              ; preds = %121
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [200010 x i64], ptr @sum, i64 0, i64 %128
  %130 = load i64, ptr %129, align 8, !tbaa !5
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [200010 x i64], ptr @A, i64 0, i64 %132
  %134 = load i64, ptr %133, align 8, !tbaa !5
  %135 = add nsw i64 %130, %134
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = add nsw i32 %136, 1
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [200010 x i64], ptr @sum, i64 0, i64 %138
  store i64 %135, ptr %139, align 8, !tbaa !5
  %140 = load i32, ptr %9, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [200010 x i64], ptr getelementptr inbounds ([3 x [200010 x i64]], ptr @sum, i64 0, i64 1), i64 0, i64 %141
  %143 = load i64, ptr %142, align 8, !tbaa !5
  %144 = load i32, ptr %9, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [200010 x i64], ptr @B, i64 0, i64 %145
  %147 = load i64, ptr %146, align 8, !tbaa !5
  %148 = add nsw i64 %143, %147
  %149 = load i32, ptr %9, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [200010 x i64], ptr getelementptr inbounds ([3 x [200010 x i64]], ptr @sum, i64 0, i64 1), i64 0, i64 %151
  store i64 %148, ptr %152, align 8, !tbaa !5
  %153 = load i32, ptr %9, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [200010 x i64], ptr getelementptr inbounds ([3 x [200010 x i64]], ptr @sum, i64 0, i64 2), i64 0, i64 %154
  %156 = load i64, ptr %155, align 8, !tbaa !5
  %157 = load i32, ptr %9, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [200010 x i64], ptr @C, i64 0, i64 %158
  %160 = load i64, ptr %159, align 8, !tbaa !5
  %161 = add nsw i64 %156, %160
  %162 = load i32, ptr %9, align 4, !tbaa !9
  %163 = add nsw i32 %162, 1
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [200010 x i64], ptr getelementptr inbounds ([3 x [200010 x i64]], ptr @sum, i64 0, i64 2), i64 0, i64 %164
  store i64 %161, ptr %165, align 8, !tbaa !5
  br label %166

166:                                              ; preds = %126
  %167 = load i32, ptr %9, align 4, !tbaa !9
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %9, align 4, !tbaa !9
  br label %121, !llvm.loop !20

169:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %170

170:                                              ; preds = %216, %169
  %171 = load i32, ptr %10, align 4, !tbaa !9
  %172 = load i32, ptr @L, align 4, !tbaa !9
  %173 = icmp sle i32 %171, %172
  br i1 %173, label %175, label %174

174:                                              ; preds = %170
  store i32 17, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %219

175:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %176 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %176, ptr %11, align 4, !tbaa !9
  br label %177

177:                                              ; preds = %212, %175
  %178 = load i32, ptr %11, align 4, !tbaa !9
  %179 = load i32, ptr @L, align 4, !tbaa !9
  %180 = icmp sle i32 %178, %179
  br i1 %180, label %182, label %181

181:                                              ; preds = %177
  store i32 20, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %215

182:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %183 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %183, ptr %12, align 4, !tbaa !9
  br label %184

184:                                              ; preds = %208, %182
  %185 = load i32, ptr %12, align 4, !tbaa !9
  %186 = load i32, ptr @L, align 4, !tbaa !9
  %187 = icmp sle i32 %185, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %184
  store i32 23, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %211

189:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %190 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %190, ptr %13, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %204, %189
  %192 = load i32, ptr %13, align 4, !tbaa !9
  %193 = load i32, ptr @L, align 4, !tbaa !9
  %194 = icmp sle i32 %192, %193
  br i1 %194, label %196, label %195

195:                                              ; preds = %191
  store i32 26, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %207

196:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %197 = load i32, ptr %10, align 4, !tbaa !9
  %198 = load i32, ptr %11, align 4, !tbaa !9
  %199 = load i32, ptr %12, align 4, !tbaa !9
  %200 = load i32, ptr %13, align 4, !tbaa !9
  %201 = call noundef i64 @_Z4calciiii(i32 noundef %197, i32 noundef %198, i32 noundef %199, i32 noundef %200)
  store i64 %201, ptr %14, align 8, !tbaa !5
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %203 = load i64, ptr %202, align 8, !tbaa !5
  store i64 %203, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %204

204:                                              ; preds = %196
  %205 = load i32, ptr %13, align 4, !tbaa !9
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %13, align 4, !tbaa !9
  br label %191, !llvm.loop !21

207:                                              ; preds = %195
  br label %208

208:                                              ; preds = %207
  %209 = load i32, ptr %12, align 4, !tbaa !9
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %12, align 4, !tbaa !9
  br label %184, !llvm.loop !22

211:                                              ; preds = %188
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %11, align 4, !tbaa !9
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %11, align 4, !tbaa !9
  br label %177, !llvm.loop !23

215:                                              ; preds = %181
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %10, align 4, !tbaa !9
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %10, align 4, !tbaa !9
  br label %170, !llvm.loop !24

219:                                              ; preds = %174
  %220 = load i64, ptr %2, align 8, !tbaa !5
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %220)
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %221, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %6, align 4
  br label %223

223:                                              ; preds = %219, %56
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %224 = load i32, ptr %6, align 4
  switch i32 %224, label %227 [
    i32 0, label %225
    i32 1, label %225
  ]

225:                                              ; preds = %223, %223
  %226 = load i32, ptr %1, align 4
  ret i32 %226

227:                                              ; preds = %223
  unreachable
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #3

; 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)) #4 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 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 #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 = { 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 #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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !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"

%"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" }

@L = external dso_local global i32, align 4
@A = external dso_local global [200010 x i64], align 16
@B = external dso_local local_unnamed_addr global [200010 x i64], align 16
@C = external dso_local local_unnamed_addr global [200010 x i64], align 16
@sum = external dso_local local_unnamed_addr global [3 x [200010 x i64]], 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 @_Z4calciiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress 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() local_unnamed_addr #2 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @L)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  %4 = load i32, ptr @L, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph, label %.critedge

.preheader67:                                     ; preds = %.lr.ph
  store i64 %10, ptr %1, align 8, !tbaa !9
  %.not71 = icmp sgt i32 %11, 0
  br i1 %.not71, label %.lr.ph73.preheader, label %.critedge

.lr.ph73.preheader:                               ; preds = %.preheader67
  %wide.trip.count = zext nneg i32 %11 to i64
  br label %.lr.ph73

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %6 = phi i64 [ %10, %.lr.ph ], [ 0, %0 ]
  %7 = getelementptr inbounds [200010 x i64], ptr @A, i64 0, i64 %indvars.iv
  %8 = 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) %7)
  %9 = load i64, ptr %7, align 8, !tbaa !9
  %10 = add nsw i64 %6, %9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %11 = load i32, ptr @L, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = icmp slt i64 %indvars.iv.next, %12
  br i1 %13, label %.lr.ph, label %.preheader67, !llvm.loop !11

14:                                               ; preds = %.lr.ph73
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next98, %wide.trip.count
  br i1 %exitcond.not, label %.critedge, label %.lr.ph73, !llvm.loop !13

.lr.ph73:                                         ; preds = %.lr.ph73.preheader, %14
  %indvars.iv97 = phi i64 [ 0, %.lr.ph73.preheader ], [ %indvars.iv.next98, %14 ]
  %15 = getelementptr inbounds [200010 x i64], ptr @A, i64 0, i64 %indvars.iv97
  %16 = load i64, ptr %15, align 8, !tbaa !9
  %17 = icmp sgt i64 %16, 0
  br i1 %17, label %.lr.ph75, label %14

.critedge:                                        ; preds = %14, %0, %.preheader67
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %116

.lr.ph77.preheader:                               ; preds = %42
  %smax = tail call i32 @llvm.smax.i32(i32 %11, i32 1)
  %wide.trip.count108 = zext nneg i32 %smax to i64
  %min.iters.check = icmp slt i32 %11, 4
  br i1 %min.iters.check, label %.lr.ph77.preheader145, label %vector.ph

.lr.ph77.preheader145:                            ; preds = %middle.block, %.lr.ph77.preheader
  %indvars.iv105.ph = phi i64 [ 0, %.lr.ph77.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph77

vector.ph:                                        ; preds = %.lr.ph77.preheader
  %n.vec = and i64 %wide.trip.count108, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %20 = getelementptr inbounds [200010 x i64], ptr @A, i64 0, i64 %index
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  %wide.load = load <2 x i64>, ptr %20, align 16, !tbaa !9
  %wide.load137 = load <2 x i64>, ptr %21, align 16, !tbaa !9
  %22 = and <2 x i64> %wide.load, <i64 -9223372036854775807, i64 -9223372036854775807>
  %23 = and <2 x i64> %wide.load137, <i64 -9223372036854775807, i64 -9223372036854775807>
  %24 = icmp ne <2 x i64> %22, <i64 1, i64 1>
  %25 = icmp ne <2 x i64> %23, <i64 1, i64 1>
  %26 = zext <2 x i1> %24 to <2 x i64>
  %27 = zext <2 x i1> %25 to <2 x i64>
  %28 = getelementptr inbounds [200010 x i64], ptr @C, i64 0, i64 %index
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  store <2 x i64> %26, ptr %28, align 16
  store <2 x i64> %27, ptr %29, align 16
  %index.next = add nuw i64 %index, 4
  %30 = icmp eq i64 %index.next, %n.vec
  br i1 %30, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count108
  br i1 %cmp.n, label %.lr.ph80.preheader, label %.lr.ph77.preheader145

.lr.ph75:                                         ; preds = %.lr.ph73, %42
  %indvars.iv100 = phi i64 [ %indvars.iv.next101, %42 ], [ 0, %.lr.ph73 ]
  %31 = getelementptr inbounds [200010 x i64], ptr @A, i64 0, i64 %indvars.iv100
  %32 = load i64, ptr %31, align 8, !tbaa !9
  %33 = icmp eq i64 %32, 0
  br i1 %33, label %34, label %36

34:                                               ; preds = %.lr.ph75
  %35 = getelementptr inbounds [200010 x i64], ptr @B, i64 0, i64 %indvars.iv100
  store i64 2, ptr %35, align 8, !tbaa !9
  br label %42

36:                                               ; preds = %.lr.ph75
  %37 = and i64 %32, 1
  %38 = icmp eq i64 %37, 0
  %39 = getelementptr inbounds [200010 x i64], ptr @B, i64 0, i64 %indvars.iv100
  br i1 %38, label %40, label %41

40:                                               ; preds = %36
  store i64 0, ptr %39, align 8, !tbaa !9
  br label %42

41:                                               ; preds = %36
  store i64 1, ptr %39, align 8, !tbaa !9
  br label %42

42:                                               ; preds = %34, %41, %40
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %exitcond104.not = icmp eq i64 %indvars.iv.next101, %wide.trip.count
  br i1 %exitcond104.not, label %.lr.ph77.preheader, label %.lr.ph75, !llvm.loop !17

.lr.ph80.preheader:                               ; preds = %.lr.ph77, %middle.block
  %smax113 = tail call i32 @llvm.smax.i32(i32 %11, i32 1)
  %wide.trip.count114 = zext nneg i32 %smax113 to i64
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) @sum, i8 0, i64 24, i1 false)
  %.pre = load i64, ptr getelementptr inbounds (i8, ptr @sum, i64 1600080), align 16, !tbaa !9
  %.pre116 = load i64, ptr getelementptr inbounds (i8, ptr @sum, i64 3200160), align 16, !tbaa !9
  %xtraiter = and i64 %wide.trip.count114, 1
  %43 = icmp eq i32 %11, 1
  br i1 %43, label %.preheader63.preheader.unr-lcssa, label %.lr.ph80.preheader.new

.lr.ph80.preheader.new:                           ; preds = %.lr.ph80.preheader
  %unroll_iter = and i64 %wide.trip.count114, 2147483646
  br label %.lr.ph80

.lr.ph77:                                         ; preds = %.lr.ph77.preheader145, %.lr.ph77
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %.lr.ph77 ], [ %indvars.iv105.ph, %.lr.ph77.preheader145 ]
  %44 = getelementptr inbounds [200010 x i64], ptr @A, i64 0, i64 %indvars.iv105
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = and i64 %45, -9223372036854775807
  %47 = icmp ne i64 %46, 1
  %spec.select = zext i1 %47 to i64
  %48 = getelementptr inbounds [200010 x i64], ptr @C, i64 0, i64 %indvars.iv105
  store i64 %spec.select, ptr %48, align 8
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond109.not = icmp eq i64 %indvars.iv.next106, %wide.trip.count108
  br i1 %exitcond109.not, label %.lr.ph80.preheader, label %.lr.ph77, !llvm.loop !18

.lr.ph80:                                         ; preds = %.lr.ph80, %.lr.ph80.preheader.new
  %49 = phi i64 [ %.pre116, %.lr.ph80.preheader.new ], [ %74, %.lr.ph80 ]
  %50 = phi i64 [ %.pre, %.lr.ph80.preheader.new ], [ %70, %.lr.ph80 ]
  %51 = phi i64 [ 0, %.lr.ph80.preheader.new ], [ %66, %.lr.ph80 ]
  %indvars.iv110 = phi i64 [ 0, %.lr.ph80.preheader.new ], [ %indvars.iv.next111.1, %.lr.ph80 ]
  %niter = phi i64 [ 0, %.lr.ph80.preheader.new ], [ %niter.next.1, %.lr.ph80 ]
  %52 = getelementptr inbounds [200010 x i64], ptr @A, i64 0, i64 %indvars.iv110
  %53 = load i64, ptr %52, align 16, !tbaa !9
  %54 = add nsw i64 %53, %51
  %indvars.iv.next111 = or disjoint i64 %indvars.iv110, 1
  %55 = getelementptr inbounds [200010 x i64], ptr @sum, i64 0, i64 %indvars.iv.next111
  store i64 %54, ptr %55, align 8, !tbaa !9
  %56 = getelementptr inbounds [200010 x i64], ptr @B, i64 0, i64 %indvars.iv110
  %57 = load i64, ptr %56, align 16, !tbaa !9
  %58 = add nsw i64 %57, %50
  %59 = getelementptr inbounds [200010 x i64], ptr getelementptr inbounds (i8, ptr @sum, i64 1600080), i64 0, i64 %indvars.iv.next111
  store i64 %58, ptr %59, align 8, !tbaa !9
  %60 = getelementptr inbounds [200010 x i64], ptr @C, i64 0, i64 %indvars.iv110
  %61 = load i64, ptr %60, align 16, !tbaa !9
  %62 = add nsw i64 %61, %49
  %63 = getelementptr inbounds [200010 x i64], ptr getelementptr inbounds (i8, ptr @sum, i64 3200160), i64 0, i64 %indvars.iv.next111
  store i64 %62, ptr %63, align 8, !tbaa !9
  %64 = getelementptr inbounds [200010 x i64], ptr @A, i64 0, i64 %indvars.iv.next111
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = add nsw i64 %65, %54
  %indvars.iv.next111.1 = add nuw nsw i64 %indvars.iv110, 2
  %67 = getelementptr inbounds [200010 x i64], ptr @sum, i64 0, i64 %indvars.iv.next111.1
  store i64 %66, ptr %67, align 16, !tbaa !9
  %68 = getelementptr inbounds [200010 x i64], ptr @B, i64 0, i64 %indvars.iv.next111
  %69 = load i64, ptr %68, align 8, !tbaa !9
  %70 = add nsw i64 %69, %58
  %71 = getelementptr inbounds [200010 x i64], ptr getelementptr inbounds (i8, ptr @sum, i64 1600080), i64 0, i64 %indvars.iv.next111.1
  store i64 %70, ptr %71, align 16, !tbaa !9
  %72 = getelementptr inbounds [200010 x i64], ptr @C, i64 0, i64 %indvars.iv.next111
  %73 = load i64, ptr %72, align 8, !tbaa !9
  %74 = add nsw i64 %73, %62
  %75 = getelementptr inbounds [200010 x i64], ptr getelementptr inbounds (i8, ptr @sum, i64 3200160), i64 0, i64 %indvars.iv.next111.1
  store i64 %74, ptr %75, align 16, !tbaa !9
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader63.preheader.unr-lcssa, label %.lr.ph80, !llvm.loop !19

.preheader63.preheader.unr-lcssa:                 ; preds = %.lr.ph80, %.lr.ph80.preheader
  %.unr = phi i64 [ %.pre116, %.lr.ph80.preheader ], [ %74, %.lr.ph80 ]
  %.unr148 = phi i64 [ %.pre, %.lr.ph80.preheader ], [ %70, %.lr.ph80 ]
  %.unr149 = phi i64 [ 0, %.lr.ph80.preheader ], [ %66, %.lr.ph80 ]
  %indvars.iv110.unr = phi i64 [ 0, %.lr.ph80.preheader ], [ %indvars.iv.next111.1, %.lr.ph80 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader63.preheader, label %.lr.ph80.epil

.lr.ph80.epil:                                    ; preds = %.preheader63.preheader.unr-lcssa
  %76 = getelementptr inbounds [200010 x i64], ptr @A, i64 0, i64 %indvars.iv110.unr
  %77 = load i64, ptr %76, align 8, !tbaa !9
  %78 = add nsw i64 %77, %.unr149
  %indvars.iv.next111.epil = add nuw nsw i64 %indvars.iv110.unr, 1
  %79 = getelementptr inbounds [200010 x i64], ptr @sum, i64 0, i64 %indvars.iv.next111.epil
  store i64 %78, ptr %79, align 8, !tbaa !9
  %80 = getelementptr inbounds [200010 x i64], ptr @B, i64 0, i64 %indvars.iv110.unr
  %81 = load i64, ptr %80, align 8, !tbaa !9
  %82 = add nsw i64 %81, %.unr148
  %83 = getelementptr inbounds [200010 x i64], ptr getelementptr inbounds (i8, ptr @sum, i64 1600080), i64 0, i64 %indvars.iv.next111.epil
  store i64 %82, ptr %83, align 8, !tbaa !9
  %84 = getelementptr inbounds [200010 x i64], ptr @C, i64 0, i64 %indvars.iv110.unr
  %85 = load i64, ptr %84, align 8, !tbaa !9
  %86 = add nsw i64 %85, %.unr
  %87 = getelementptr inbounds [200010 x i64], ptr getelementptr inbounds (i8, ptr @sum, i64 3200160), i64 0, i64 %indvars.iv.next111.epil
  store i64 %86, ptr %87, align 8, !tbaa !9
  br label %.preheader63.preheader

.preheader63.preheader:                           ; preds = %.preheader63.preheader.unr-lcssa, %.lr.ph80.epil
  br label %.preheader63

.preheader63:                                     ; preds = %.preheader63.preheader, %._crit_edge90
  %88 = phi i64 [ %95, %._crit_edge90 ], [ %10, %.preheader63.preheader ]
  %89 = phi i32 [ %96, %._crit_edge90 ], [ %11, %.preheader63.preheader ]
  %.04992 = phi i32 [ %97, %._crit_edge90 ], [ 0, %.preheader63.preheader ]
  %.not5988 = icmp sgt i32 %.04992, %89
  br i1 %.not5988, label %._crit_edge90, label %.preheader62

._crit_edge93:                                    ; preds = %._crit_edge90
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %95)
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %116

.preheader62:                                     ; preds = %.preheader63, %._crit_edge87
  %92 = phi i64 [ %102, %._crit_edge87 ], [ %88, %.preheader63 ]
  %93 = phi i32 [ %103, %._crit_edge87 ], [ %89, %.preheader63 ]
  %94 = phi i32 [ %104, %._crit_edge87 ], [ %89, %.preheader63 ]
  %.04889 = phi i32 [ %105, %._crit_edge87 ], [ %.04992, %.preheader63 ]
  %.not6085 = icmp sgt i32 %.04889, %94
  br i1 %.not6085, label %._crit_edge87, label %.preheader

._crit_edge90:                                    ; preds = %._crit_edge87, %.preheader63
  %95 = phi i64 [ %88, %.preheader63 ], [ %102, %._crit_edge87 ]
  %96 = phi i32 [ %89, %.preheader63 ], [ %103, %._crit_edge87 ]
  %97 = add nuw nsw i32 %.04992, 1
  %.not58.not = icmp slt i32 %.04992, %96
  br i1 %.not58.not, label %.preheader63, label %._crit_edge93, !llvm.loop !20

.preheader:                                       ; preds = %.preheader62, %._crit_edge84
  %98 = phi i64 [ %106, %._crit_edge84 ], [ %92, %.preheader62 ]
  %99 = phi i32 [ %107, %._crit_edge84 ], [ %93, %.preheader62 ]
  %100 = phi i32 [ %108, %._crit_edge84 ], [ %94, %.preheader62 ]
  %101 = phi i32 [ %109, %._crit_edge84 ], [ %94, %.preheader62 ]
  %.04786 = phi i32 [ %110, %._crit_edge84 ], [ %.04889, %.preheader62 ]
  %.not6181 = icmp sgt i32 %.04786, %101
  br i1 %.not6181, label %._crit_edge84, label %.lr.ph83

._crit_edge87:                                    ; preds = %._crit_edge84, %.preheader62
  %102 = phi i64 [ %92, %.preheader62 ], [ %106, %._crit_edge84 ]
  %103 = phi i32 [ %93, %.preheader62 ], [ %107, %._crit_edge84 ]
  %104 = phi i32 [ %94, %.preheader62 ], [ %108, %._crit_edge84 ]
  %105 = add nuw nsw i32 %.04889, 1
  %.not59.not = icmp slt i32 %.04889, %104
  br i1 %.not59.not, label %.preheader62, label %._crit_edge90, !llvm.loop !21

._crit_edge84:                                    ; preds = %.lr.ph83, %.preheader
  %106 = phi i64 [ %98, %.preheader ], [ %113, %.lr.ph83 ]
  %107 = phi i32 [ %99, %.preheader ], [ %115, %.lr.ph83 ]
  %108 = phi i32 [ %100, %.preheader ], [ %115, %.lr.ph83 ]
  %109 = phi i32 [ %101, %.preheader ], [ %115, %.lr.ph83 ]
  %110 = add nuw nsw i32 %.04786, 1
  %.not60.not = icmp slt i32 %.04786, %109
  br i1 %.not60.not, label %.preheader, label %._crit_edge87, !llvm.loop !22

.lr.ph83:                                         ; preds = %.preheader, %.lr.ph83
  %.082 = phi i32 [ %114, %.lr.ph83 ], [ %.04786, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  %111 = call noundef i64 @_Z4calciiii(i32 noundef %.04992, i32 noundef %.04889, i32 noundef %.04786, i32 noundef %.082)
  store i64 %111, ptr %2, align 8, !tbaa !9
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %113 = load i64, ptr %112, align 8, !tbaa !9
  store i64 %113, ptr %1, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  %114 = add nuw nsw i32 %.082, 1
  %115 = load i32, ptr @L, align 4, !tbaa !5
  %.not61.not = icmp slt i32 %.082, %115
  br i1 %.not61.not, label %.lr.ph83, label %._crit_edge84, !llvm.loop !23

116:                                              ; preds = %._crit_edge93, %.critedge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  ret i32 0
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; 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 #4 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; 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 #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 #4 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #7

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 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 #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 = { 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12, !15, !16}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12, !16, !15}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,MergedLoadStoreMotionPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass