; LLVM IR from kazunetakahashi/atcoder :: 201510_201609/1114_codefes2015_final (J2)

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

@_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 i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [100010 x i32], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [100010 x i32], align 16
  %8 = alloca [100010 x i32], align 16
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca [100010 x i64], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = srem i32 %26, 2
  %28 = icmp eq i32 %27, 1
  br i1 %28, label %29, label %30

29:                                               ; preds = %0
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %299

30:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 400040, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %46, %30
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %49

36:                                               ; preds = %31
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %38
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %39)
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = mul nsw i32 %44, 2
  store i32 %45, ptr %43, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %36
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %5, align 4, !tbaa !5
  br label %31, !llvm.loop !9

49:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.start.p0(i64 400040, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 400040, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %65, %49
  %52 = load i32, ptr %9, align 4, !tbaa !5
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %68

56:                                               ; preds = %51
  %57 = load i32, ptr %9, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [100010 x i32], ptr %7, i64 0, i64 %58
  %60 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %59)
  %61 = load i32, ptr %9, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [100010 x i32], ptr %8, i64 0, i64 %62
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %60, ptr noundef nonnull align 4 dereferenceable(4) %63)
  br label %65

65:                                               ; preds = %56
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %9, align 4, !tbaa !5
  br label %51, !llvm.loop !11

68:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 800080, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %93, %68
  %70 = load i32, ptr %12, align 4, !tbaa !5
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %96

74:                                               ; preds = %69
  %75 = load i32, ptr %12, align 4, !tbaa !5
  %76 = srem i32 %75, 2
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %92

78:                                               ; preds = %74
  %79 = load i32, ptr %12, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %80
  %82 = load i32, ptr %12, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %84
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %81, ptr noundef nonnull align 4 dereferenceable(4) %85)
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = load i32, ptr %12, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [100010 x i64], ptr %11, i64 0, i64 %90
  store i64 %88, ptr %91, align 8, !tbaa !12
  br label %92

92:                                               ; preds = %78, %74
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %12, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %12, align 4, !tbaa !5
  br label %69, !llvm.loop !14

96:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %140, %96
  %98 = load i32, ptr %13, align 4, !tbaa !5
  %99 = load i32, ptr %2, align 4, !tbaa !5
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %97
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %143

102:                                              ; preds = %97
  %103 = load i32, ptr %13, align 4, !tbaa !5
  %104 = srem i32 %103, 2
  %105 = icmp eq i32 %104, 1
  br i1 %105, label %106, label %139

106:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %107 = load i32, ptr %13, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = load i32, ptr %13, align 4, !tbaa !5
  %113 = sub nsw i32 %112, 1
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [100010 x i64], ptr %11, i64 0, i64 %114
  %116 = load i64, ptr %115, align 8, !tbaa !12
  %117 = sub nsw i64 %111, %116
  store i64 %117, ptr %14, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %118 = load i32, ptr %13, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  %120 = load i32, ptr %2, align 4, !tbaa !5
  %121 = srem i32 %119, %120
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = load i32, ptr %13, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  %128 = load i32, ptr %2, align 4, !tbaa !5
  %129 = srem i32 %127, %128
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [100010 x i64], ptr %11, i64 0, i64 %130
  %132 = load i64, ptr %131, align 8, !tbaa !12
  %133 = sub nsw i64 %125, %132
  store i64 %133, ptr %15, align 8, !tbaa !12
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %135 = load i64, ptr %134, align 8, !tbaa !12
  %136 = load i32, ptr %13, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [100010 x i64], ptr %11, i64 0, i64 %137
  store i64 %135, ptr %138, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %139

139:                                              ; preds = %106, %102
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %13, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %13, align 4, !tbaa !5
  br label %97, !llvm.loop !15

143:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %156, %143
  %145 = load i32, ptr %16, align 4, !tbaa !5
  %146 = load i32, ptr %2, align 4, !tbaa !5
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %144
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %159

149:                                              ; preds = %144
  %150 = load i32, ptr %16, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [100010 x i64], ptr %11, i64 0, i64 %151
  %153 = load i64, ptr %152, align 8, !tbaa !12
  %154 = load i64, ptr %10, align 8, !tbaa !12
  %155 = add nsw i64 %154, %153
  store i64 %155, ptr %10, align 8, !tbaa !12
  br label %156

156:                                              ; preds = %149
  %157 = load i32, ptr %16, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %16, align 4, !tbaa !5
  br label %144, !llvm.loop !16

159:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %295, %159
  %161 = load i32, ptr %17, align 4, !tbaa !5
  %162 = load i32, ptr %6, align 4, !tbaa !5
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %160
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %298

165:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %166 = load i32, ptr %17, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [100010 x i32], ptr %7, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = sub nsw i32 %169, 1
  store i32 %170, ptr %18, align 4, !tbaa !5
  %171 = load i32, ptr %17, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [100010 x i32], ptr %8, i64 0, i64 %172
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = mul nsw i32 %174, 2
  %176 = load i32, ptr %18, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %177
  store i32 %175, ptr %178, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 -10, ptr %19, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %222, %165
  %180 = load i32, ptr %19, align 4, !tbaa !5
  %181 = icmp slt i32 %180, 10
  br i1 %181, label %183, label %182

182:                                              ; preds = %179
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %225

183:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %184 = load i32, ptr %18, align 4, !tbaa !5
  %185 = load i32, ptr %19, align 4, !tbaa !5
  %186 = add nsw i32 %184, %185
  %187 = load i32, ptr %2, align 4, !tbaa !5
  %188 = mul nsw i32 100, %187
  %189 = add nsw i32 %186, %188
  %190 = load i32, ptr %2, align 4, !tbaa !5
  %191 = srem i32 %189, %190
  store i32 %191, ptr %20, align 4, !tbaa !5
  %192 = load i32, ptr %20, align 4, !tbaa !5
  %193 = srem i32 %192, 2
  %194 = icmp eq i32 %193, 0
  br i1 %194, label %195, label %221

195:                                              ; preds = %183
  %196 = load i32, ptr %20, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [100010 x i64], ptr %11, i64 0, i64 %197
  %199 = load i64, ptr %198, align 8, !tbaa !12
  %200 = load i64, ptr %10, align 8, !tbaa !12
  %201 = sub nsw i64 %200, %199
  store i64 %201, ptr %10, align 8, !tbaa !12
  %202 = load i32, ptr %20, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %203
  %205 = load i32, ptr %20, align 4, !tbaa !5
  %206 = add nsw i32 %205, 1
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %207
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %204, ptr noundef nonnull align 4 dereferenceable(4) %208)
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = load i32, ptr %20, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [100010 x i64], ptr %11, i64 0, i64 %213
  store i64 %211, ptr %214, align 8, !tbaa !12
  %215 = load i32, ptr %20, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [100010 x i64], ptr %11, i64 0, i64 %216
  %218 = load i64, ptr %217, align 8, !tbaa !12
  %219 = load i64, ptr %10, align 8, !tbaa !12
  %220 = add nsw i64 %219, %218
  store i64 %220, ptr %10, align 8, !tbaa !12
  br label %221

221:                                              ; preds = %195, %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %19, align 4, !tbaa !5
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %19, align 4, !tbaa !5
  br label %179, !llvm.loop !17

225:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 -10, ptr %21, align 4, !tbaa !5
  br label %226

226:                                              ; preds = %288, %225
  %227 = load i32, ptr %21, align 4, !tbaa !5
  %228 = icmp slt i32 %227, 10
  br i1 %228, label %230, label %229

229:                                              ; preds = %226
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %291

230:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %231 = load i32, ptr %18, align 4, !tbaa !5
  %232 = load i32, ptr %21, align 4, !tbaa !5
  %233 = add nsw i32 %231, %232
  %234 = load i32, ptr %2, align 4, !tbaa !5
  %235 = mul nsw i32 100, %234
  %236 = add nsw i32 %233, %235
  %237 = load i32, ptr %2, align 4, !tbaa !5
  %238 = srem i32 %236, %237
  store i32 %238, ptr %22, align 4, !tbaa !5
  %239 = load i32, ptr %22, align 4, !tbaa !5
  %240 = srem i32 %239, 2
  %241 = icmp eq i32 %240, 1
  br i1 %241, label %242, label %287

242:                                              ; preds = %230
  %243 = load i32, ptr %22, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [100010 x i64], ptr %11, i64 0, i64 %244
  %246 = load i64, ptr %245, align 8, !tbaa !12
  %247 = load i64, ptr %10, align 8, !tbaa !12
  %248 = sub nsw i64 %247, %246
  store i64 %248, ptr %10, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %249 = load i32, ptr %22, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = load i32, ptr %22, align 4, !tbaa !5
  %255 = sub nsw i32 %254, 1
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [100010 x i64], ptr %11, i64 0, i64 %256
  %258 = load i64, ptr %257, align 8, !tbaa !12
  %259 = sub nsw i64 %253, %258
  store i64 %259, ptr %23, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %260 = load i32, ptr %22, align 4, !tbaa !5
  %261 = add nsw i32 %260, 1
  %262 = load i32, ptr %2, align 4, !tbaa !5
  %263 = srem i32 %261, %262
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %264
  %266 = load i32, ptr %265, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = load i32, ptr %22, align 4, !tbaa !5
  %269 = add nsw i32 %268, 1
  %270 = load i32, ptr %2, align 4, !tbaa !5
  %271 = srem i32 %269, %270
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [100010 x i64], ptr %11, i64 0, i64 %272
  %274 = load i64, ptr %273, align 8, !tbaa !12
  %275 = sub nsw i64 %267, %274
  store i64 %275, ptr %24, align 8, !tbaa !12
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %277 = load i64, ptr %276, align 8, !tbaa !12
  %278 = load i32, ptr %22, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [100010 x i64], ptr %11, i64 0, i64 %279
  store i64 %277, ptr %280, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  %281 = load i32, ptr %22, align 4, !tbaa !5
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [100010 x i64], ptr %11, i64 0, i64 %282
  %284 = load i64, ptr %283, align 8, !tbaa !12
  %285 = load i64, ptr %10, align 8, !tbaa !12
  %286 = add nsw i64 %285, %284
  store i64 %286, ptr %10, align 8, !tbaa !12
  br label %287

287:                                              ; preds = %242, %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %288

288:                                              ; preds = %287
  %289 = load i32, ptr %21, align 4, !tbaa !5
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %21, align 4, !tbaa !5
  br label %226, !llvm.loop !18

291:                                              ; preds = %229
  %292 = load i64, ptr %10, align 8, !tbaa !12
  %293 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %292)
  %294 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %293, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %295

295:                                              ; preds = %291
  %296 = load i32, ptr %17, align 4, !tbaa !5
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %17, align 4, !tbaa !5
  br label %160, !llvm.loop !19

298:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 800080, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 400040, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 400040, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 400040, ptr %4) #6
  store i32 0, ptr %3, align 4
  br label %299

299:                                              ; preds = %298, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %300 = load i32, ptr %3, align 4
  switch i32 %300, label %303 [
    i32 0, label %301
    i32 1, label %301
  ]

301:                                              ; preds = %299, %299
  %302 = load i32, ptr %1, align 4
  ret i32 %302

303:                                              ; preds = %299
  unreachable
}

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

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

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

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

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

; 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

; 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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


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

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

@_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 i32, align 4
  %2 = alloca [100010 x i32], align 16
  %3 = alloca i32, align 4
  %4 = alloca [100010 x i32], align 16
  %5 = alloca [100010 x i32], align 16
  %6 = alloca [100010 x i64], align 16
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %12 = load i32, ptr %1, align 4, !tbaa !5
  %13 = and i32 %12, -2147483647
  %14 = icmp eq i32 %13, 1
  br i1 %14, label %162, label %15

15:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 400040, ptr nonnull %2) #7
  %16 = icmp sgt i32 %12, 0
  br i1 %16, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 400040, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 400040, ptr nonnull %5) #7
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph75, label %._crit_edge76

.lr.ph:                                           ; preds = %15, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %15 ]
  %20 = getelementptr inbounds [100010 x i32], ptr %2, i64 0, i64 %indvars.iv
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %22 = load i32, ptr %20, align 4, !tbaa !5
  %23 = shl nsw i32 %22, 1
  store i32 %23, ptr %20, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = icmp slt i64 %indvars.iv.next, %25
  br i1 %26, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge76:                                    ; preds = %.lr.ph75, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 800080, ptr nonnull %6) #7
  %27 = load i32, ptr %1, align 4, !tbaa !5
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.lr.ph79, label %.preheader69

.lr.ph75:                                         ; preds = %._crit_edge, %.lr.ph75
  %indvars.iv97 = phi i64 [ %indvars.iv.next98, %.lr.ph75 ], [ 0, %._crit_edge ]
  %29 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %indvars.iv97
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %31 = getelementptr inbounds [100010 x i32], ptr %5, i64 0, i64 %indvars.iv97
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(4) %31)
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = icmp slt i64 %indvars.iv.next98, %34
  br i1 %35, label %.lr.ph75, label %._crit_edge76, !llvm.loop !11

.preheader71:                                     ; preds = %48
  %36 = icmp sgt i32 %49, 0
  br i1 %36, label %.lr.ph81, label %.preheader69

.lr.ph79:                                         ; preds = %._crit_edge76, %48
  %37 = phi i32 [ %49, %48 ], [ %27, %._crit_edge76 ]
  %indvars.iv100 = phi i64 [ %indvars.iv.next101, %48 ], [ 0, %._crit_edge76 ]
  %38 = and i64 %indvars.iv100, 1
  %39 = icmp eq i64 %38, 0
  br i1 %39, label %40, label %48

40:                                               ; preds = %.lr.ph79
  %41 = getelementptr inbounds [100010 x i32], ptr %2, i64 0, i64 %indvars.iv100
  %42 = or disjoint i64 %indvars.iv100, 1
  %43 = getelementptr inbounds [100010 x i32], ptr %2, i64 0, i64 %42
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %41, ptr noundef nonnull align 4 dereferenceable(4) %43)
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [100010 x i64], ptr %6, i64 0, i64 %indvars.iv100
  store i64 %46, ptr %47, align 8, !tbaa !12
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %.lr.ph79, %40
  %49 = phi i32 [ %37, %.lr.ph79 ], [ %.pre, %40 ]
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %50 = sext i32 %49 to i64
  %51 = icmp slt i64 %indvars.iv.next101, %50
  br i1 %51, label %.lr.ph79, label %.preheader71, !llvm.loop !14

.preheader70:                                     ; preds = %82
  %52 = icmp sgt i32 %83, 0
  br i1 %52, label %.lr.ph84.preheader, label %.preheader69

.lr.ph84.preheader:                               ; preds = %.preheader70
  %wide.trip.count = zext nneg i32 %83 to i64
  %min.iters.check = icmp ult i32 %83, 4
  br i1 %min.iters.check, label %.lr.ph84.preheader123, label %vector.ph

.lr.ph84.preheader123:                            ; preds = %middle.block, %.lr.ph84.preheader
  %indvars.iv106.ph = phi i64 [ 0, %.lr.ph84.preheader ], [ %n.vec, %middle.block ]
  %.06682.ph = phi i64 [ 0, %.lr.ph84.preheader ], [ %58, %middle.block ]
  br label %.lr.ph84

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

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %55, %vector.body ]
  %vec.phi121 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %56, %vector.body ]
  %53 = getelementptr inbounds [100010 x i64], ptr %6, i64 0, i64 %index
  %54 = getelementptr inbounds i8, ptr %53, i64 16
  %wide.load = load <2 x i64>, ptr %53, align 16, !tbaa !12
  %wide.load122 = load <2 x i64>, ptr %54, align 16, !tbaa !12
  %55 = add <2 x i64> %wide.load, %vec.phi
  %56 = add <2 x i64> %wide.load122, %vec.phi121
  %index.next = add nuw i64 %index, 4
  %57 = icmp eq i64 %index.next, %n.vec
  br i1 %57, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %56, %55
  %58 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader69, label %.lr.ph84.preheader123

.lr.ph81:                                         ; preds = %.preheader71, %82
  %59 = phi i32 [ %83, %82 ], [ %49, %.preheader71 ]
  %indvars.iv103 = phi i64 [ %indvars.iv.next104.pre-phi, %82 ], [ 0, %.preheader71 ]
  %60 = and i64 %indvars.iv103, 1
  %.not = icmp eq i64 %60, 0
  br i1 %.not, label %.lr.ph81._crit_edge, label %61

.lr.ph81._crit_edge:                              ; preds = %.lr.ph81
  %.pre115 = or disjoint i64 %indvars.iv103, 1
  br label %82

61:                                               ; preds = %.lr.ph81
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %62 = getelementptr inbounds [100010 x i32], ptr %2, i64 0, i64 %indvars.iv103
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = add nsw i64 %indvars.iv103, -1
  %66 = getelementptr inbounds [100010 x i64], ptr %6, i64 0, i64 %65
  %67 = load i64, ptr %66, align 8, !tbaa !12
  %68 = sub nsw i64 %64, %67
  store i64 %68, ptr %7, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %69 = add nuw nsw i64 %indvars.iv103, 1
  %70 = trunc nuw nsw i64 %69 to i32
  %71 = srem i32 %70, %59
  %72 = zext nneg i32 %71 to i64
  %73 = getelementptr inbounds [100010 x i32], ptr %2, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [100010 x i64], ptr %6, i64 0, i64 %72
  %77 = load i64, ptr %76, align 8, !tbaa !12
  %78 = sub nsw i64 %75, %77
  store i64 %78, ptr %8, align 8, !tbaa !12
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %80 = load i64, ptr %79, align 8, !tbaa !12
  %81 = getelementptr inbounds [100010 x i64], ptr %6, i64 0, i64 %indvars.iv103
  store i64 %80, ptr %81, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %.pre114 = load i32, ptr %1, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %.lr.ph81._crit_edge, %61
  %indvars.iv.next104.pre-phi = phi i64 [ %.pre115, %.lr.ph81._crit_edge ], [ %69, %61 ]
  %83 = phi i32 [ %59, %.lr.ph81._crit_edge ], [ %.pre114, %61 ]
  %84 = sext i32 %83 to i64
  %85 = icmp slt i64 %indvars.iv.next104.pre-phi, %84
  br i1 %85, label %.lr.ph81, label %.preheader70, !llvm.loop !18

.preheader69:                                     ; preds = %.lr.ph84, %middle.block, %._crit_edge76, %.preheader71, %.preheader70
  %.066.lcssa = phi i64 [ 0, %.preheader70 ], [ 0, %.preheader71 ], [ 0, %._crit_edge76 ], [ %58, %middle.block ], [ %90, %.lr.ph84 ]
  %86 = load i32, ptr %3, align 4, !tbaa !5
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %.lr.ph92, label %._crit_edge93

.lr.ph84:                                         ; preds = %.lr.ph84.preheader123, %.lr.ph84
  %indvars.iv106 = phi i64 [ %indvars.iv.next107, %.lr.ph84 ], [ %indvars.iv106.ph, %.lr.ph84.preheader123 ]
  %.06682 = phi i64 [ %90, %.lr.ph84 ], [ %.06682.ph, %.lr.ph84.preheader123 ]
  %88 = getelementptr inbounds [100010 x i64], ptr %6, i64 0, i64 %indvars.iv106
  %89 = load i64, ptr %88, align 8, !tbaa !12
  %90 = add nsw i64 %89, %.06682
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next107, %wide.trip.count
  br i1 %exitcond.not, label %.preheader69, label %.lr.ph84, !llvm.loop !19

._crit_edge93:                                    ; preds = %122, %.preheader69
  call void @llvm.lifetime.end.p0(i64 800080, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 400040, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 400040, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 400040, ptr nonnull %2) #7
  br label %162

.lr.ph92:                                         ; preds = %.preheader69, %122
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %122 ], [ 0, %.preheader69 ]
  %.190 = phi i64 [ %.5, %122 ], [ %.066.lcssa, %.preheader69 ]
  %91 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %indvars.iv111
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = add nsw i32 %92, -1
  %94 = getelementptr inbounds [100010 x i32], ptr %5, i64 0, i64 %indvars.iv111
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = shl nsw i32 %95, 1
  %97 = sext i32 %93 to i64
  %98 = getelementptr inbounds [100010 x i32], ptr %2, i64 0, i64 %97
  store i32 %96, ptr %98, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %.lr.ph92, %120
  %.06087 = phi i32 [ -10, %.lr.ph92 ], [ %121, %120 ]
  %.286 = phi i64 [ %.190, %.lr.ph92 ], [ %.3, %120 ]
  %100 = add nsw i32 %.06087, %93
  %101 = load i32, ptr %1, align 4, !tbaa !5
  %102 = mul nsw i32 %101, 100
  %103 = add nsw i32 %100, %102
  %104 = srem i32 %103, %101
  %105 = and i32 %104, 1
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %120

107:                                              ; preds = %99
  %108 = sext i32 %104 to i64
  %109 = getelementptr inbounds [100010 x i64], ptr %6, i64 0, i64 %108
  %110 = load i64, ptr %109, align 8, !tbaa !12
  %111 = sub i64 %.286, %110
  %112 = getelementptr inbounds [100010 x i32], ptr %2, i64 0, i64 %108
  %113 = or disjoint i32 %104, 1
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [100010 x i32], ptr %2, i64 0, i64 %114
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %112, ptr noundef nonnull align 4 dereferenceable(4) %115)
  %117 = load i32, ptr %116, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  store i64 %118, ptr %109, align 8, !tbaa !12
  %119 = add nsw i64 %111, %118
  br label %120

120:                                              ; preds = %107, %99
  %.3 = phi i64 [ %119, %107 ], [ %.286, %99 ]
  %121 = add nsw i32 %.06087, 1
  %exitcond109.not = icmp eq i32 %121, 10
  br i1 %exitcond109.not, label %.preheader, label %99, !llvm.loop !20

122:                                              ; preds = %160
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.5)
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %125 = load i32, ptr %3, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = icmp slt i64 %indvars.iv.next112, %126
  br i1 %127, label %.lr.ph92, label %._crit_edge93, !llvm.loop !21

.preheader:                                       ; preds = %120, %160
  %.05989 = phi i32 [ %161, %160 ], [ -10, %120 ]
  %.488 = phi i64 [ %.5, %160 ], [ %.3, %120 ]
  %128 = add nsw i32 %.05989, %93
  %129 = load i32, ptr %1, align 4, !tbaa !5
  %130 = mul nsw i32 %129, 100
  %131 = add nsw i32 %128, %130
  %132 = srem i32 %131, %129
  %133 = and i32 %132, -2147483647
  %134 = icmp eq i32 %133, 1
  br i1 %134, label %135, label %160

135:                                              ; preds = %.preheader
  %136 = zext nneg i32 %132 to i64
  %137 = getelementptr inbounds [100010 x i64], ptr %6, i64 0, i64 %136
  %138 = load i64, ptr %137, align 8, !tbaa !12
  %139 = sub i64 %.488, %138
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %140 = getelementptr inbounds [100010 x i32], ptr %2, i64 0, i64 %136
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = add nsw i32 %132, -1
  %144 = zext nneg i32 %143 to i64
  %145 = getelementptr inbounds [100010 x i64], ptr %6, i64 0, i64 %144
  %146 = load i64, ptr %145, align 8, !tbaa !12
  %147 = sub nsw i64 %142, %146
  store i64 %147, ptr %9, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %148 = add nuw nsw i32 %132, 1
  %149 = srem i32 %148, %129
  %150 = zext nneg i32 %149 to i64
  %151 = getelementptr inbounds [100010 x i32], ptr %2, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [100010 x i64], ptr %6, i64 0, i64 %150
  %155 = load i64, ptr %154, align 8, !tbaa !12
  %156 = sub nsw i64 %153, %155
  store i64 %156, ptr %10, align 8, !tbaa !12
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %158 = load i64, ptr %157, align 8, !tbaa !12
  store i64 %158, ptr %137, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %159 = add nsw i64 %139, %158
  br label %160

160:                                              ; preds = %135, %.preheader
  %.5 = phi i64 [ %159, %135 ], [ %.488, %.preheader ]
  %161 = add nsw i32 %.05989, 1
  %exitcond110.not = icmp eq i32 %161, 10
  br i1 %exitcond110.not, label %122, label %.preheader, !llvm.loop !22

162:                                              ; preds = %0, %._crit_edge93
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

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

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 #2

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

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

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

; 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: 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #6

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


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