; LLVM IR from Tunghohin/Competitive_Coding :: Codeforces (cf1530_B)

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

@table = external dso_local global [100 x [100 x i32]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %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
  store i32 0, ptr %1, align 4
  %14 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %15 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %16 = getelementptr i8, ptr %15, i64 -24
  %17 = load i64, ptr %16, align 8
  %18 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %17
  %19 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %18, ptr noundef null)
  %20 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %21 = getelementptr i8, ptr %20, i64 -24
  %22 = load i64, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %22
  %24 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %23, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  %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)
  br label %26

26:                                               ; preds = %268, %0
  %27 = load i32, ptr %2, align 4, !tbaa !8
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr %2, align 4, !tbaa !8
  %29 = icmp ne i32 %27, 0
  br i1 %29, label %30, label %270

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %31 = 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)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !8
  br label %33

33:                                               ; preds = %57, %30
  %34 = load i32, ptr %5, align 4, !tbaa !8
  %35 = load i32, ptr %3, align 4, !tbaa !8
  %36 = add nsw i32 %35, 1
  %37 = icmp sle i32 %34, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %33
  store i32 4, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %60

39:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !8
  br label %40

40:                                               ; preds = %53, %39
  %41 = load i32, ptr %7, align 4, !tbaa !8
  %42 = load i32, ptr %4, align 4, !tbaa !8
  %43 = add nsw i32 %42, 1
  %44 = icmp sle i32 %41, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %40
  store i32 7, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %56

46:                                               ; preds = %40
  %47 = load i32, ptr %5, align 4, !tbaa !8
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %48
  %50 = load i32, ptr %7, align 4, !tbaa !8
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [100 x i32], ptr %49, i64 0, i64 %51
  store i32 0, ptr %52, align 4, !tbaa !8
  br label %53

53:                                               ; preds = %46
  %54 = load i32, ptr %7, align 4, !tbaa !8
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %7, align 4, !tbaa !8
  br label %40, !llvm.loop !11

56:                                               ; preds = %45
  br label %57

57:                                               ; preds = %56
  %58 = load i32, ptr %5, align 4, !tbaa !8
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %5, align 4, !tbaa !8
  br label %33, !llvm.loop !13

60:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 1, ptr %8, align 4, !tbaa !8
  br label %61

61:                                               ; preds = %86, %60
  %62 = load i32, ptr %8, align 4, !tbaa !8
  %63 = load i32, ptr %4, align 4, !tbaa !8
  %64 = icmp sle i32 %62, %63
  br i1 %64, label %66, label %65

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

66:                                               ; preds = %61
  %67 = load i32, ptr %8, align 4, !tbaa !8
  %68 = add nsw i32 %67, 1
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [100 x i32], ptr getelementptr inbounds ([100 x [100 x i32]], ptr @table, i64 0, i64 1), i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !8
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %84

73:                                               ; preds = %66
  %74 = load i32, ptr %8, align 4, !tbaa !8
  %75 = sub nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [100 x i32], ptr getelementptr inbounds ([100 x [100 x i32]], ptr @table, i64 0, i64 1), i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !8
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %84

80:                                               ; preds = %73
  %81 = load i32, ptr %8, align 4, !tbaa !8
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [100 x i32], ptr getelementptr inbounds ([100 x [100 x i32]], ptr @table, i64 0, i64 1), i64 0, i64 %82
  store i32 1, ptr %83, align 4, !tbaa !8
  br label %85

84:                                               ; preds = %73, %66
  br label %86

85:                                               ; preds = %80
  br label %86

86:                                               ; preds = %85, %84
  %87 = load i32, ptr %8, align 4, !tbaa !8
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %8, align 4, !tbaa !8
  br label %61, !llvm.loop !14

89:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 1, ptr %9, align 4, !tbaa !8
  br label %90

90:                                               ; preds = %134, %89
  %91 = load i32, ptr %9, align 4, !tbaa !8
  %92 = load i32, ptr %3, align 4, !tbaa !8
  %93 = icmp sle i32 %91, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %90
  store i32 13, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %137

95:                                               ; preds = %90
  %96 = load i32, ptr %9, align 4, !tbaa !8
  %97 = sub nsw i32 %96, 1
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %98
  %100 = load i32, ptr %4, align 4, !tbaa !8
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [100 x i32], ptr %99, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !8
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %133, label %105

105:                                              ; preds = %95
  %106 = load i32, ptr %9, align 4, !tbaa !8
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %107
  %109 = load i32, ptr %4, align 4, !tbaa !8
  %110 = sub nsw i32 %109, 1
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [100 x i32], ptr %108, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !8
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %133, label %115

115:                                              ; preds = %105
  %116 = load i32, ptr %9, align 4, !tbaa !8
  %117 = sub nsw i32 %116, 1
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %118
  %120 = load i32, ptr %4, align 4, !tbaa !8
  %121 = sub nsw i32 %120, 1
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [100 x i32], ptr %119, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !8
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %133, label %126

126:                                              ; preds = %115
  %127 = load i32, ptr %9, align 4, !tbaa !8
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %128
  %130 = load i32, ptr %4, align 4, !tbaa !8
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [100 x i32], ptr %129, i64 0, i64 %131
  store i32 1, ptr %132, align 4, !tbaa !8
  br label %133

133:                                              ; preds = %126, %115, %105, %95
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %9, align 4, !tbaa !8
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %9, align 4, !tbaa !8
  br label %90, !llvm.loop !15

137:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %138 = load i32, ptr %4, align 4, !tbaa !8
  store i32 %138, ptr %10, align 4, !tbaa !8
  br label %139

139:                                              ; preds = %182, %137
  %140 = load i32, ptr %10, align 4, !tbaa !8
  %141 = icmp sge i32 %140, 1
  br i1 %141, label %143, label %142

142:                                              ; preds = %139
  store i32 16, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %185

143:                                              ; preds = %139
  %144 = load i32, ptr %3, align 4, !tbaa !8
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %145
  %147 = load i32, ptr %10, align 4, !tbaa !8
  %148 = add nsw i32 %147, 1
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [100 x i32], ptr %146, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !8
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %181, label %153

153:                                              ; preds = %143
  %154 = load i32, ptr %3, align 4, !tbaa !8
  %155 = sub nsw i32 %154, 1
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %156
  %158 = load i32, ptr %10, align 4, !tbaa !8
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [100 x i32], ptr %157, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !8
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %181, label %163

163:                                              ; preds = %153
  %164 = load i32, ptr %3, align 4, !tbaa !8
  %165 = sub nsw i32 %164, 1
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %166
  %168 = load i32, ptr %10, align 4, !tbaa !8
  %169 = add nsw i32 %168, 1
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [100 x i32], ptr %167, i64 0, i64 %170
  %172 = load i32, ptr %171, align 4, !tbaa !8
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %181, label %174

174:                                              ; preds = %163
  %175 = load i32, ptr %3, align 4, !tbaa !8
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %176
  %178 = load i32, ptr %10, align 4, !tbaa !8
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [100 x i32], ptr %177, i64 0, i64 %179
  store i32 1, ptr %180, align 4, !tbaa !8
  br label %181

181:                                              ; preds = %174, %163, %153, %143
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %10, align 4, !tbaa !8
  %184 = add nsw i32 %183, -1
  store i32 %184, ptr %10, align 4, !tbaa !8
  br label %139, !llvm.loop !16

185:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %186 = load i32, ptr %3, align 4, !tbaa !8
  store i32 %186, ptr %11, align 4, !tbaa !8
  br label %187

187:                                              ; preds = %236, %185
  %188 = load i32, ptr %11, align 4, !tbaa !8
  %189 = icmp sge i32 %188, 1
  br i1 %189, label %191, label %190

190:                                              ; preds = %187
  store i32 19, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %239

191:                                              ; preds = %187
  %192 = load i32, ptr %11, align 4, !tbaa !8
  %193 = add nsw i32 %192, 1
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %194
  %196 = getelementptr inbounds [100 x i32], ptr %195, i64 0, i64 1
  %197 = load i32, ptr %196, align 4, !tbaa !8
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %235, label %199

199:                                              ; preds = %191
  %200 = load i32, ptr %11, align 4, !tbaa !8
  %201 = sub nsw i32 %200, 1
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %202
  %204 = getelementptr inbounds [100 x i32], ptr %203, i64 0, i64 1
  %205 = load i32, ptr %204, align 4, !tbaa !8
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %235, label %207

207:                                              ; preds = %199
  %208 = load i32, ptr %11, align 4, !tbaa !8
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %209
  %211 = getelementptr inbounds [100 x i32], ptr %210, i64 0, i64 2
  %212 = load i32, ptr %211, align 8, !tbaa !8
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %235, label %214

214:                                              ; preds = %207
  %215 = load i32, ptr %11, align 4, !tbaa !8
  %216 = add nsw i32 %215, 1
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %217
  %219 = getelementptr inbounds [100 x i32], ptr %218, i64 0, i64 2
  %220 = load i32, ptr %219, align 8, !tbaa !8
  %221 = icmp ne i32 %220, 0
  br i1 %221, label %235, label %222

222:                                              ; preds = %214
  %223 = load i32, ptr %11, align 4, !tbaa !8
  %224 = sub nsw i32 %223, 1
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %225
  %227 = getelementptr inbounds [100 x i32], ptr %226, i64 0, i64 2
  %228 = load i32, ptr %227, align 8, !tbaa !8
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %235, label %230

230:                                              ; preds = %222
  %231 = load i32, ptr %11, align 4, !tbaa !8
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %232
  %234 = getelementptr inbounds [100 x i32], ptr %233, i64 0, i64 1
  store i32 1, ptr %234, align 4, !tbaa !8
  br label %235

235:                                              ; preds = %230, %222, %214, %207, %199, %191
  br label %236

236:                                              ; preds = %235
  %237 = load i32, ptr %11, align 4, !tbaa !8
  %238 = add nsw i32 %237, -1
  store i32 %238, ptr %11, align 4, !tbaa !8
  br label %187, !llvm.loop !17

239:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 1, ptr %12, align 4, !tbaa !8
  br label %240

240:                                              ; preds = %265, %239
  %241 = load i32, ptr %12, align 4, !tbaa !8
  %242 = load i32, ptr %3, align 4, !tbaa !8
  %243 = icmp sle i32 %241, %242
  br i1 %243, label %245, label %244

244:                                              ; preds = %240
  store i32 22, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %268

245:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 1, ptr %13, align 4, !tbaa !8
  br label %246

246:                                              ; preds = %260, %245
  %247 = load i32, ptr %13, align 4, !tbaa !8
  %248 = load i32, ptr %4, align 4, !tbaa !8
  %249 = icmp sle i32 %247, %248
  br i1 %249, label %251, label %250

250:                                              ; preds = %246
  store i32 25, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %263

251:                                              ; preds = %246
  %252 = load i32, ptr %12, align 4, !tbaa !8
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %253
  %255 = load i32, ptr %13, align 4, !tbaa !8
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [100 x i32], ptr %254, i64 0, i64 %256
  %258 = load i32, ptr %257, align 4, !tbaa !8
  %259 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %258)
  br label %260

260:                                              ; preds = %251
  %261 = load i32, ptr %13, align 4, !tbaa !8
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %13, align 4, !tbaa !8
  br label %246, !llvm.loop !18

263:                                              ; preds = %250
  %264 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
  br label %265

265:                                              ; preds = %263
  %266 = load i32, ptr %12, align 4, !tbaa !8
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %12, align 4, !tbaa !8
  br label %240, !llvm.loop !19

268:                                              ; preds = %244
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %26, !llvm.loop !20

270:                                              ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %271 = load i32, ptr %1, align 4
  ret i32 %271
}

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

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

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

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

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

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

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nounwind }

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

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

@table = external dso_local local_unnamed_addr global [100 x [100 x i32]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

.lr.ph92:                                         ; preds = %0, %._crit_edge89
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %18 = 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)
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %20 = load i32, ptr %2, align 4, !tbaa !8
  %.not4571 = icmp slt i32 %20, -1
  %.pre = load i32, ptr %3, align 4, !tbaa !8
  br i1 %.not4571, label %.preheader67, label %.preheader62.lr.ph

.preheader62.lr.ph:                               ; preds = %.lr.ph92
  %.not6169 = icmp slt i32 %.pre, -1
  br i1 %.not6169, label %.preheader66, label %.preheader62.preheader

.preheader62.preheader:                           ; preds = %.preheader62.lr.ph
  %21 = add i32 %.pre, 2
  %22 = zext i32 %21 to i64
  %23 = shl nuw nsw i64 %22, 2
  %24 = add i32 %20, 2
  %wide.trip.count = zext i32 %24 to i64
  %25 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %wide.trip.count, 7
  %26 = icmp ult i64 %25, 7
  br i1 %26, label %.preheader67.loopexit.unr-lcssa, label %.preheader62.preheader.new

.preheader62.preheader.new:                       ; preds = %.preheader62.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967288
  br label %.preheader62

.preheader67.loopexit.unr-lcssa:                  ; preds = %.preheader62, %.preheader62.preheader
  %indvar.unr = phi i64 [ 0, %.preheader62.preheader ], [ %indvar.next.7, %.preheader62 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader67, label %.preheader62.epil

.preheader62.epil:                                ; preds = %.preheader67.loopexit.unr-lcssa, %.preheader62.epil
  %indvar.epil = phi i64 [ %indvar.next.epil, %.preheader62.epil ], [ %indvar.unr, %.preheader67.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader62.epil ], [ 0, %.preheader67.loopexit.unr-lcssa ]
  %27 = mul nuw nsw i64 %indvar.epil, 400
  %scevgep.epil = getelementptr i8, ptr @table, i64 %27
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep.epil, i8 0, i64 %23, i1 false), !tbaa !8
  %indvar.next.epil = add nuw nsw i64 %indvar.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader67, label %.preheader62.epil, !llvm.loop !11

.preheader67:                                     ; preds = %.preheader67.loopexit.unr-lcssa, %.preheader62.epil, %.lr.ph92
  %.not4673 = icmp slt i32 %.pre, 1
  br i1 %.not4673, label %.preheader66, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader67
  %28 = zext nneg i32 %.pre to i64
  %xtraiter119 = and i64 %28, 1
  %29 = icmp eq i32 %.pre, 1
  br i1 %29, label %.preheader66.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter122 = and i64 %28, 2147483646
  br label %.lr.ph

.preheader62:                                     ; preds = %.preheader62, %.preheader62.preheader.new
  %indvar = phi i64 [ 0, %.preheader62.preheader.new ], [ %indvar.next.7, %.preheader62 ]
  %niter = phi i64 [ 0, %.preheader62.preheader.new ], [ %niter.next.7, %.preheader62 ]
  %30 = mul nuw nsw i64 %indvar, 400
  %scevgep = getelementptr i8, ptr @table, i64 %30
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep, i8 0, i64 %23, i1 false), !tbaa !8
  %31 = mul nuw i64 %indvar, 400
  %gep = getelementptr i8, ptr getelementptr (i8, ptr @table, i64 400), i64 %31
  call void @llvm.memset.p0.i64(ptr align 16 %gep, i8 0, i64 %23, i1 false), !tbaa !8
  %32 = mul nuw i64 %indvar, 400
  %gep124 = getelementptr i8, ptr getelementptr (i8, ptr @table, i64 800), i64 %32
  call void @llvm.memset.p0.i64(ptr align 16 %gep124, i8 0, i64 %23, i1 false), !tbaa !8
  %33 = mul nuw i64 %indvar, 400
  %gep125 = getelementptr i8, ptr getelementptr (i8, ptr @table, i64 1200), i64 %33
  call void @llvm.memset.p0.i64(ptr align 16 %gep125, i8 0, i64 %23, i1 false), !tbaa !8
  %34 = mul nuw i64 %indvar, 400
  %gep126 = getelementptr i8, ptr getelementptr (i8, ptr @table, i64 1600), i64 %34
  call void @llvm.memset.p0.i64(ptr align 16 %gep126, i8 0, i64 %23, i1 false), !tbaa !8
  %35 = mul nuw i64 %indvar, 400
  %gep127 = getelementptr i8, ptr getelementptr (i8, ptr @table, i64 2000), i64 %35
  call void @llvm.memset.p0.i64(ptr align 16 %gep127, i8 0, i64 %23, i1 false), !tbaa !8
  %36 = mul nuw i64 %indvar, 400
  %gep128 = getelementptr i8, ptr getelementptr (i8, ptr @table, i64 2400), i64 %36
  call void @llvm.memset.p0.i64(ptr align 16 %gep128, i8 0, i64 %23, i1 false), !tbaa !8
  %37 = mul nuw i64 %indvar, 400
  %gep129 = getelementptr i8, ptr getelementptr (i8, ptr @table, i64 2800), i64 %37
  call void @llvm.memset.p0.i64(ptr align 16 %gep129, i8 0, i64 %23, i1 false), !tbaa !8
  %indvar.next.7 = add nuw nsw i64 %indvar, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %.preheader67.loopexit.unr-lcssa, label %.preheader62, !llvm.loop !13

.preheader66.loopexit.unr-lcssa:                  ; preds = %71, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next.1, %71 ]
  %lcmp.mod121.not = icmp eq i64 %xtraiter119, 0
  br i1 %lcmp.mod121.not, label %.preheader66, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader66.loopexit.unr-lcssa
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.unr, 1
  %38 = getelementptr inbounds [100 x i32], ptr getelementptr inbounds (i8, ptr @table, i64 400), i64 0, i64 %indvars.iv.next.epil
  %39 = load i32, ptr %38, align 4, !tbaa !8
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %.preheader66

41:                                               ; preds = %.lr.ph.epil
  %42 = add nsw i64 %indvars.iv.unr, -1
  %43 = getelementptr inbounds [100 x i32], ptr getelementptr inbounds (i8, ptr @table, i64 400), i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !8
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %.preheader66

46:                                               ; preds = %41
  %47 = getelementptr inbounds [100 x i32], ptr getelementptr inbounds (i8, ptr @table, i64 400), i64 0, i64 %indvars.iv.unr
  store i32 1, ptr %47, align 4, !tbaa !8
  br label %.preheader66

.preheader66:                                     ; preds = %.preheader66.loopexit.unr-lcssa, %46, %41, %.lr.ph.epil, %.preheader62.lr.ph, %.preheader67
  %.not4776 = icmp slt i32 %20, 1
  br i1 %.not4776, label %.preheader65, label %.lr.ph78

.lr.ph78:                                         ; preds = %.preheader66
  %48 = sext i32 %.pre to i64
  %49 = add nsw i32 %.pre, -1
  %50 = sext i32 %49 to i64
  %51 = add nuw i32 %20, 1
  %wide.trip.count103 = zext i32 %51 to i64
  br label %77

.lr.ph:                                           ; preds = %71, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %71 ]
  %niter123 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter123.next.1, %71 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %52 = getelementptr inbounds [100 x i32], ptr getelementptr inbounds (i8, ptr @table, i64 400), i64 0, i64 %indvars.iv.next
  %53 = load i32, ptr %52, align 4, !tbaa !8
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %.lr.ph.1

55:                                               ; preds = %.lr.ph
  %56 = add nsw i64 %indvars.iv, -1
  %57 = getelementptr inbounds [100 x i32], ptr getelementptr inbounds (i8, ptr @table, i64 400), i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !8
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %.lr.ph.1

60:                                               ; preds = %55
  %61 = getelementptr inbounds [100 x i32], ptr getelementptr inbounds (i8, ptr @table, i64 400), i64 0, i64 %indvars.iv
  store i32 1, ptr %61, align 4, !tbaa !8
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph, %55, %60
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %62 = getelementptr inbounds [100 x i32], ptr getelementptr inbounds (i8, ptr @table, i64 400), i64 0, i64 %indvars.iv.next.1
  %63 = load i32, ptr %62, align 4, !tbaa !8
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %71

65:                                               ; preds = %.lr.ph.1
  %66 = getelementptr inbounds [100 x i32], ptr getelementptr inbounds (i8, ptr @table, i64 400), i64 0, i64 %indvars.iv
  %67 = load i32, ptr %66, align 4, !tbaa !8
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %71

69:                                               ; preds = %65
  %70 = getelementptr inbounds [100 x i32], ptr getelementptr inbounds (i8, ptr @table, i64 400), i64 0, i64 %indvars.iv.next
  store i32 1, ptr %70, align 4, !tbaa !8
  br label %71

71:                                               ; preds = %69, %65, %.lr.ph.1
  %niter123.next.1 = add i64 %niter123, 2
  %niter123.ncmp.1 = icmp eq i64 %niter123.next.1, %unroll_iter122
  br i1 %niter123.ncmp.1, label %.preheader66.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !15

.preheader65:                                     ; preds = %89, %.preheader66
  %72 = icmp sgt i32 %.pre, 0
  br i1 %72, label %.lr.ph80, label %.preheader64

.lr.ph80:                                         ; preds = %.preheader65
  %73 = sext i32 %20 to i64
  %74 = add nsw i32 %20, -1
  %75 = sext i32 %74 to i64
  %76 = zext nneg i32 %.pre to i64
  br label %92

77:                                               ; preds = %.lr.ph78, %89
  %indvars.iv100 = phi i64 [ 1, %.lr.ph78 ], [ %indvars.iv.next101, %89 ]
  %78 = add nsw i64 %indvars.iv100, -1
  %79 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %78, i64 %48
  %80 = load i32, ptr %79, align 4, !tbaa !8
  %.not58 = icmp eq i32 %80, 0
  br i1 %.not58, label %81, label %89

81:                                               ; preds = %77
  %82 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %indvars.iv100, i64 %50
  %83 = load i32, ptr %82, align 4, !tbaa !8
  %.not59 = icmp eq i32 %83, 0
  br i1 %.not59, label %84, label %89

84:                                               ; preds = %81
  %85 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %78, i64 %50
  %86 = load i32, ptr %85, align 4, !tbaa !8
  %.not60 = icmp eq i32 %86, 0
  br i1 %.not60, label %87, label %89

87:                                               ; preds = %84
  %88 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %indvars.iv100, i64 %48
  store i32 1, ptr %88, align 4, !tbaa !8
  br label %89

89:                                               ; preds = %77, %81, %84, %87
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %exitcond104.not = icmp eq i64 %indvars.iv.next101, %wide.trip.count103
  br i1 %exitcond104.not, label %.preheader65, label %77, !llvm.loop !16

.preheader64:                                     ; preds = %104, %.preheader65
  %90 = icmp sgt i32 %20, 0
  br i1 %90, label %.lr.ph82.preheader, label %._crit_edge89

.lr.ph82.preheader:                               ; preds = %.preheader64
  %91 = zext nneg i32 %20 to i64
  br label %.lr.ph82

92:                                               ; preds = %.lr.ph80, %104
  %indvars.iv105 = phi i64 [ %76, %.lr.ph80 ], [ %indvars.iv.next106, %104 ]
  %93 = add nuw nsw i64 %indvars.iv105, 1
  %94 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %73, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !8
  %.not55 = icmp eq i32 %95, 0
  br i1 %.not55, label %96, label %104

96:                                               ; preds = %92
  %97 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %75, i64 %indvars.iv105
  %98 = load i32, ptr %97, align 4, !tbaa !8
  %.not56 = icmp eq i32 %98, 0
  br i1 %.not56, label %99, label %104

99:                                               ; preds = %96
  %100 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %75, i64 %93
  %101 = load i32, ptr %100, align 4, !tbaa !8
  %.not57 = icmp eq i32 %101, 0
  br i1 %.not57, label %102, label %104

102:                                              ; preds = %99
  %103 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %73, i64 %indvars.iv105
  store i32 1, ptr %103, align 4, !tbaa !8
  br label %104

104:                                              ; preds = %92, %96, %99, %102
  %indvars.iv.next106 = add nsw i64 %indvars.iv105, -1
  %105 = icmp sgt i64 %indvars.iv105, 1
  br i1 %105, label %92, label %.preheader64, !llvm.loop !17

.preheader63:                                     ; preds = %.lr.ph82._crit_edge
  br i1 %.not4776, label %._crit_edge89, label %.preheader

.lr.ph82:                                         ; preds = %.lr.ph82.preheader, %.lr.ph82._crit_edge
  %indvars.iv108 = phi i64 [ %91, %.lr.ph82.preheader ], [ %110, %.lr.ph82._crit_edge ]
  %106 = add nuw nsw i64 %indvars.iv108, 1
  %107 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %106
  %108 = getelementptr inbounds i8, ptr %107, i64 4
  %109 = load i32, ptr %108, align 4, !tbaa !8
  %.not50 = icmp eq i32 %109, 0
  %110 = add nsw i64 %indvars.iv108, -1
  br i1 %.not50, label %111, label %.lr.ph82._crit_edge

111:                                              ; preds = %.lr.ph82
  %112 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %110
  %113 = getelementptr inbounds i8, ptr %112, i64 4
  %114 = load i32, ptr %113, align 4, !tbaa !8
  %.not51 = icmp eq i32 %114, 0
  br i1 %.not51, label %115, label %.lr.ph82._crit_edge

115:                                              ; preds = %111
  %116 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %indvars.iv108
  %117 = getelementptr inbounds i8, ptr %116, i64 8
  %118 = load i32, ptr %117, align 8, !tbaa !8
  %.not52 = icmp eq i32 %118, 0
  br i1 %.not52, label %119, label %.lr.ph82._crit_edge

119:                                              ; preds = %115
  %120 = getelementptr inbounds i8, ptr %107, i64 8
  %121 = load i32, ptr %120, align 8, !tbaa !8
  %.not53 = icmp eq i32 %121, 0
  br i1 %.not53, label %122, label %.lr.ph82._crit_edge

122:                                              ; preds = %119
  %123 = getelementptr inbounds i8, ptr %112, i64 8
  %124 = load i32, ptr %123, align 8, !tbaa !8
  %.not54 = icmp eq i32 %124, 0
  br i1 %.not54, label %125, label %.lr.ph82._crit_edge

125:                                              ; preds = %122
  %126 = getelementptr inbounds i8, ptr %116, i64 4
  store i32 1, ptr %126, align 4, !tbaa !8
  br label %.lr.ph82._crit_edge

.lr.ph82._crit_edge:                              ; preds = %.lr.ph82, %111, %115, %119, %122, %125
  %127 = icmp sgt i64 %indvars.iv108, 1
  br i1 %127, label %.lr.ph82, label %.preheader63, !llvm.loop !18

.preheader:                                       ; preds = %.preheader63, %._crit_edge86
  %indvars.iv114 = phi i64 [ %indvars.iv.next115, %._crit_edge86 ], [ 1, %.preheader63 ]
  %128 = load i32, ptr %3, align 4, !tbaa !8
  %.not4983 = icmp slt i32 %128, 1
  br i1 %.not4983, label %._crit_edge86, label %.lr.ph85

._crit_edge89:                                    ; preds = %._crit_edge86, %.preheader64, %.preheader63
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  %130 = load i32, ptr %1, align 4, !tbaa !8
  %131 = add nsw i32 %130, -1
  store i32 %131, ptr %1, align 4, !tbaa !8
  %.not = icmp eq i32 %130, 0
  br i1 %.not, label %._crit_edge93, label %.lr.ph92, !llvm.loop !19

._crit_edge86:                                    ; preds = %.lr.ph85, %.preheader
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %133 = load i32, ptr %2, align 4, !tbaa !8
  %134 = sext i32 %133 to i64
  %.not48.not = icmp slt i64 %indvars.iv114, %134
  br i1 %.not48.not, label %.preheader, label %._crit_edge89, !llvm.loop !20

.lr.ph85:                                         ; preds = %.preheader, %.lr.ph85
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %.lr.ph85 ], [ 1, %.preheader ]
  %135 = getelementptr inbounds [100 x [100 x i32]], ptr @table, i64 0, i64 %indvars.iv114, i64 %indvars.iv111
  %136 = load i32, ptr %135, align 4, !tbaa !8
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %136)
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %138 = load i32, ptr %3, align 4, !tbaa !8
  %139 = sext i32 %138 to i64
  %.not49.not = icmp slt i64 %indvars.iv111, %139
  br i1 %.not49.not, label %.lr.ph85, label %._crit_edge86, !llvm.loop !21

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }

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

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


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