; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/Good Bye 2015/Problem C (C)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@h = external dso_local global i32, align 4
@w = external dso_local global i32, align 4
@g = external dso_local global [600 x [600 x i32]], align 16
@dp = external dso_local global [600 x [600 x i32]], align 16
@row = external dso_local global [600 x [600 x i32]], align 16
@col = external dso_local global [600 x [600 x i32]], align 16
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_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
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %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
  store i32 0, ptr %1, align 4
  %22 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %23 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %24 = getelementptr i8, ptr %23, i64 -24
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %25
  %27 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %26, ptr noundef null)
  %28 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %29 = getelementptr i8, ptr %28, i64 -24
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %30
  %32 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %31, ptr noundef null)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @h)
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(4) @w)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !8
  br label %35

35:                                               ; preds = %74, %0
  %36 = load i32, ptr %2, align 4, !tbaa !8
  %37 = load i32, ptr @h, align 4, !tbaa !8
  %38 = icmp sle i32 %36, %37
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %35
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 1, ptr %4, align 4, !tbaa !8
  br label %42

42:                                               ; preds = %70, %40
  %43 = load i32, ptr %4, align 4, !tbaa !8
  %44 = load i32, ptr @w, align 4, !tbaa !8
  %45 = icmp sle i32 %43, %44
  br i1 %45, label %47, label %46

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

47:                                               ; preds = %42
  %48 = load i32, ptr %4, align 4, !tbaa !8
  %49 = sub nsw i32 %48, 1
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %50)
  %52 = load i8, ptr %51, align 1, !tbaa !11
  %53 = sext i8 %52 to i32
  %54 = icmp eq i32 %53, 46
  br i1 %54, label %55, label %62

55:                                               ; preds = %47
  %56 = load i32, ptr %2, align 4, !tbaa !8
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %57
  %59 = load i32, ptr %4, align 4, !tbaa !8
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [600 x i32], ptr %58, i64 0, i64 %60
  store i32 1, ptr %61, align 4, !tbaa !8
  br label %69

62:                                               ; preds = %47
  %63 = load i32, ptr %2, align 4, !tbaa !8
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %64
  %66 = load i32, ptr %4, align 4, !tbaa !8
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [600 x i32], ptr %65, i64 0, i64 %67
  store i32 0, ptr %68, align 4, !tbaa !8
  br label %69

69:                                               ; preds = %62, %55
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %4, align 4, !tbaa !8
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %4, align 4, !tbaa !8
  br label %42, !llvm.loop !12

73:                                               ; preds = %46
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %2, align 4, !tbaa !8
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %2, align 4, !tbaa !8
  br label %35, !llvm.loop !14

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

78:                                               ; preds = %116, %77
  %79 = load i32, ptr %5, align 4, !tbaa !8
  %80 = load i32, ptr @w, align 4, !tbaa !8
  %81 = icmp sle i32 %79, %80
  br i1 %81, label %83, label %82

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

83:                                               ; preds = %78
  %84 = load i32, ptr %5, align 4, !tbaa !8
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [600 x i32], ptr getelementptr inbounds ([600 x [600 x i32]], ptr @g, i64 0, i64 1), i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !8
  %88 = icmp eq i32 %87, 1
  br i1 %88, label %89, label %106

89:                                               ; preds = %83
  %90 = load i32, ptr %5, align 4, !tbaa !8
  %91 = sub nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [600 x i32], ptr getelementptr inbounds ([600 x [600 x i32]], ptr @g, i64 0, i64 1), i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !8
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %96, label %106

96:                                               ; preds = %89
  %97 = load i32, ptr %5, align 4, !tbaa !8
  %98 = sub nsw i32 %97, 1
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [600 x i32], ptr getelementptr inbounds ([600 x [600 x i32]], ptr @dp, i64 0, i64 1), i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !8
  %102 = add nsw i32 %101, 1
  %103 = load i32, ptr %5, align 4, !tbaa !8
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [600 x i32], ptr getelementptr inbounds ([600 x [600 x i32]], ptr @dp, i64 0, i64 1), i64 0, i64 %104
  store i32 %102, ptr %105, align 4, !tbaa !8
  br label %115

106:                                              ; preds = %89, %83
  %107 = load i32, ptr %5, align 4, !tbaa !8
  %108 = sub nsw i32 %107, 1
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [600 x i32], ptr getelementptr inbounds ([600 x [600 x i32]], ptr @dp, i64 0, i64 1), i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !8
  %112 = load i32, ptr %5, align 4, !tbaa !8
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [600 x i32], ptr getelementptr inbounds ([600 x [600 x i32]], ptr @dp, i64 0, i64 1), i64 0, i64 %113
  store i32 %111, ptr %114, align 4, !tbaa !8
  br label %115

115:                                              ; preds = %106, %96
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %5, align 4, !tbaa !8
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %5, align 4, !tbaa !8
  br label %78, !llvm.loop !15

119:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 2, ptr %6, align 4, !tbaa !8
  br label %120

120:                                              ; preds = %164, %119
  %121 = load i32, ptr %6, align 4, !tbaa !8
  %122 = load i32, ptr @h, align 4, !tbaa !8
  %123 = icmp sle i32 %121, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %120
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %167

125:                                              ; preds = %120
  %126 = load i32, ptr %6, align 4, !tbaa !8
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %127
  %129 = getelementptr inbounds [600 x i32], ptr %128, i64 0, i64 1
  %130 = load i32, ptr %129, align 4, !tbaa !8
  %131 = icmp eq i32 %130, 1
  br i1 %131, label %132, label %152

132:                                              ; preds = %125
  %133 = load i32, ptr %6, align 4, !tbaa !8
  %134 = sub nsw i32 %133, 1
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %135
  %137 = getelementptr inbounds [600 x i32], ptr %136, i64 0, i64 1
  %138 = load i32, ptr %137, align 4, !tbaa !8
  %139 = icmp eq i32 %138, 1
  br i1 %139, label %140, label %152

140:                                              ; preds = %132
  %141 = load i32, ptr %6, align 4, !tbaa !8
  %142 = sub nsw i32 %141, 1
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %143
  %145 = getelementptr inbounds [600 x i32], ptr %144, i64 0, i64 1
  %146 = load i32, ptr %145, align 4, !tbaa !8
  %147 = add nsw i32 %146, 1
  %148 = load i32, ptr %6, align 4, !tbaa !8
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %149
  %151 = getelementptr inbounds [600 x i32], ptr %150, i64 0, i64 1
  store i32 %147, ptr %151, align 4, !tbaa !8
  br label %163

152:                                              ; preds = %132, %125
  %153 = load i32, ptr %6, align 4, !tbaa !8
  %154 = sub nsw i32 %153, 1
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %155
  %157 = getelementptr inbounds [600 x i32], ptr %156, i64 0, i64 1
  %158 = load i32, ptr %157, align 4, !tbaa !8
  %159 = load i32, ptr %6, align 4, !tbaa !8
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %160
  %162 = getelementptr inbounds [600 x i32], ptr %161, i64 0, i64 1
  store i32 %158, ptr %162, align 4, !tbaa !8
  br label %163

163:                                              ; preds = %152, %140
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %6, align 4, !tbaa !8
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %6, align 4, !tbaa !8
  br label %120, !llvm.loop !16

167:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 2, ptr %7, align 4, !tbaa !8
  br label %168

168:                                              ; preds = %263, %167
  %169 = load i32, ptr %7, align 4, !tbaa !8
  %170 = load i32, ptr @h, align 4, !tbaa !8
  %171 = icmp sle i32 %169, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %168
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %266

173:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 2, ptr %8, align 4, !tbaa !8
  br label %174

174:                                              ; preds = %259, %173
  %175 = load i32, ptr %8, align 4, !tbaa !8
  %176 = load i32, ptr @w, align 4, !tbaa !8
  %177 = icmp sle i32 %175, %176
  br i1 %177, label %179, label %178

178:                                              ; preds = %174
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %262

179:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !8
  %180 = load i32, ptr %7, align 4, !tbaa !8
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %181
  %183 = load i32, ptr %8, align 4, !tbaa !8
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [600 x i32], ptr %182, i64 0, i64 %184
  %186 = load i32, ptr %185, align 4, !tbaa !8
  %187 = icmp eq i32 %186, 1
  br i1 %187, label %188, label %201

188:                                              ; preds = %179
  %189 = load i32, ptr %7, align 4, !tbaa !8
  %190 = sub nsw i32 %189, 1
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %191
  %193 = load i32, ptr %8, align 4, !tbaa !8
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [600 x i32], ptr %192, i64 0, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !8
  %197 = icmp eq i32 %196, 1
  br i1 %197, label %198, label %201

198:                                              ; preds = %188
  %199 = load i32, ptr %9, align 4, !tbaa !8
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %9, align 4, !tbaa !8
  br label %201

201:                                              ; preds = %198, %188, %179
  %202 = load i32, ptr %7, align 4, !tbaa !8
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %203
  %205 = load i32, ptr %8, align 4, !tbaa !8
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [600 x i32], ptr %204, i64 0, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !8
  %209 = icmp eq i32 %208, 1
  br i1 %209, label %210, label %223

210:                                              ; preds = %201
  %211 = load i32, ptr %7, align 4, !tbaa !8
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %212
  %214 = load i32, ptr %8, align 4, !tbaa !8
  %215 = sub nsw i32 %214, 1
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [600 x i32], ptr %213, i64 0, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !8
  %219 = icmp eq i32 %218, 1
  br i1 %219, label %220, label %223

220:                                              ; preds = %210
  %221 = load i32, ptr %9, align 4, !tbaa !8
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %9, align 4, !tbaa !8
  br label %223

223:                                              ; preds = %220, %210, %201
  %224 = load i32, ptr %7, align 4, !tbaa !8
  %225 = sub nsw i32 %224, 1
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %226
  %228 = load i32, ptr %8, align 4, !tbaa !8
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [600 x i32], ptr %227, i64 0, i64 %229
  %231 = load i32, ptr %230, align 4, !tbaa !8
  %232 = load i32, ptr %7, align 4, !tbaa !8
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %233
  %235 = load i32, ptr %8, align 4, !tbaa !8
  %236 = sub nsw i32 %235, 1
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [600 x i32], ptr %234, i64 0, i64 %237
  %239 = load i32, ptr %238, align 4, !tbaa !8
  %240 = add nsw i32 %231, %239
  %241 = load i32, ptr %7, align 4, !tbaa !8
  %242 = sub nsw i32 %241, 1
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %243
  %245 = load i32, ptr %8, align 4, !tbaa !8
  %246 = sub nsw i32 %245, 1
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [600 x i32], ptr %244, i64 0, i64 %247
  %249 = load i32, ptr %248, align 4, !tbaa !8
  %250 = sub nsw i32 %240, %249
  %251 = load i32, ptr %9, align 4, !tbaa !8
  %252 = add nsw i32 %250, %251
  %253 = load i32, ptr %7, align 4, !tbaa !8
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %254
  %256 = load i32, ptr %8, align 4, !tbaa !8
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [600 x i32], ptr %255, i64 0, i64 %257
  store i32 %252, ptr %258, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %259

259:                                              ; preds = %223
  %260 = load i32, ptr %8, align 4, !tbaa !8
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %8, align 4, !tbaa !8
  br label %174, !llvm.loop !17

262:                                              ; preds = %178
  br label %263

263:                                              ; preds = %262
  %264 = load i32, ptr %7, align 4, !tbaa !8
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %7, align 4, !tbaa !8
  br label %168, !llvm.loop !18

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

267:                                              ; preds = %319, %266
  %268 = load i32, ptr %10, align 4, !tbaa !8
  %269 = load i32, ptr @h, align 4, !tbaa !8
  %270 = icmp sle i32 %268, %269
  br i1 %270, label %272, label %271

271:                                              ; preds = %267
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %322

272:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 2, ptr %11, align 4, !tbaa !8
  br label %273

273:                                              ; preds = %315, %272
  %274 = load i32, ptr %11, align 4, !tbaa !8
  %275 = load i32, ptr @w, align 4, !tbaa !8
  %276 = icmp sle i32 %274, %275
  br i1 %276, label %278, label %277

277:                                              ; preds = %273
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %318

278:                                              ; preds = %273
  %279 = load i32, ptr %10, align 4, !tbaa !8
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [600 x [600 x i32]], ptr @row, i64 0, i64 %280
  %282 = load i32, ptr %11, align 4, !tbaa !8
  %283 = sub nsw i32 %282, 1
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [600 x i32], ptr %281, i64 0, i64 %284
  %286 = load i32, ptr %285, align 4, !tbaa !8
  %287 = load i32, ptr %10, align 4, !tbaa !8
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %288
  %290 = load i32, ptr %11, align 4, !tbaa !8
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [600 x i32], ptr %289, i64 0, i64 %291
  %293 = load i32, ptr %292, align 4, !tbaa !8
  %294 = icmp eq i32 %293, 1
  br i1 %294, label %295, label %305

295:                                              ; preds = %278
  %296 = load i32, ptr %10, align 4, !tbaa !8
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %297
  %299 = load i32, ptr %11, align 4, !tbaa !8
  %300 = sub nsw i32 %299, 1
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [600 x i32], ptr %298, i64 0, i64 %301
  %303 = load i32, ptr %302, align 4, !tbaa !8
  %304 = icmp eq i32 %303, 1
  br label %305

305:                                              ; preds = %295, %278
  %306 = phi i1 [ false, %278 ], [ %304, %295 ]
  %307 = zext i1 %306 to i32
  %308 = add nsw i32 %286, %307
  %309 = load i32, ptr %10, align 4, !tbaa !8
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [600 x [600 x i32]], ptr @row, i64 0, i64 %310
  %312 = load i32, ptr %11, align 4, !tbaa !8
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [600 x i32], ptr %311, i64 0, i64 %313
  store i32 %308, ptr %314, align 4, !tbaa !8
  br label %315

315:                                              ; preds = %305
  %316 = load i32, ptr %11, align 4, !tbaa !8
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %11, align 4, !tbaa !8
  br label %273, !llvm.loop !19

318:                                              ; preds = %277
  br label %319

319:                                              ; preds = %318
  %320 = load i32, ptr %10, align 4, !tbaa !8
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %10, align 4, !tbaa !8
  br label %267, !llvm.loop !20

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

323:                                              ; preds = %375, %322
  %324 = load i32, ptr %12, align 4, !tbaa !8
  %325 = load i32, ptr @w, align 4, !tbaa !8
  %326 = icmp sle i32 %324, %325
  br i1 %326, label %328, label %327

327:                                              ; preds = %323
  store i32 26, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %378

328:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 2, ptr %13, align 4, !tbaa !8
  br label %329

329:                                              ; preds = %371, %328
  %330 = load i32, ptr %13, align 4, !tbaa !8
  %331 = load i32, ptr @h, align 4, !tbaa !8
  %332 = icmp sle i32 %330, %331
  br i1 %332, label %334, label %333

333:                                              ; preds = %329
  store i32 29, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %374

334:                                              ; preds = %329
  %335 = load i32, ptr %13, align 4, !tbaa !8
  %336 = sub nsw i32 %335, 1
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [600 x [600 x i32]], ptr @col, i64 0, i64 %337
  %339 = load i32, ptr %12, align 4, !tbaa !8
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [600 x i32], ptr %338, i64 0, i64 %340
  %342 = load i32, ptr %341, align 4, !tbaa !8
  %343 = load i32, ptr %13, align 4, !tbaa !8
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %344
  %346 = load i32, ptr %12, align 4, !tbaa !8
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [600 x i32], ptr %345, i64 0, i64 %347
  %349 = load i32, ptr %348, align 4, !tbaa !8
  %350 = icmp eq i32 %349, 1
  br i1 %350, label %351, label %361

351:                                              ; preds = %334
  %352 = load i32, ptr %13, align 4, !tbaa !8
  %353 = sub nsw i32 %352, 1
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %354
  %356 = load i32, ptr %12, align 4, !tbaa !8
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds [600 x i32], ptr %355, i64 0, i64 %357
  %359 = load i32, ptr %358, align 4, !tbaa !8
  %360 = icmp eq i32 %359, 1
  br label %361

361:                                              ; preds = %351, %334
  %362 = phi i1 [ false, %334 ], [ %360, %351 ]
  %363 = zext i1 %362 to i32
  %364 = add nsw i32 %342, %363
  %365 = load i32, ptr %13, align 4, !tbaa !8
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds [600 x [600 x i32]], ptr @col, i64 0, i64 %366
  %368 = load i32, ptr %12, align 4, !tbaa !8
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [600 x i32], ptr %367, i64 0, i64 %369
  store i32 %364, ptr %370, align 4, !tbaa !8
  br label %371

371:                                              ; preds = %361
  %372 = load i32, ptr %13, align 4, !tbaa !8
  %373 = add nsw i32 %372, 1
  store i32 %373, ptr %13, align 4, !tbaa !8
  br label %329, !llvm.loop !21

374:                                              ; preds = %333
  br label %375

375:                                              ; preds = %374
  %376 = load i32, ptr %12, align 4, !tbaa !8
  %377 = add nsw i32 %376, 1
  store i32 %377, ptr %12, align 4, !tbaa !8
  br label %323, !llvm.loop !22

378:                                              ; preds = %327
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %379 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %14)
  br label %380

380:                                              ; preds = %384, %378
  %381 = load i32, ptr %14, align 4, !tbaa !8
  %382 = add nsw i32 %381, -1
  store i32 %382, ptr %14, align 4, !tbaa !8
  %383 = icmp ne i32 %381, 0
  br i1 %383, label %384, label %457

384:                                              ; preds = %380
  %385 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %386 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %385, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %387 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %386, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %388 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %387, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %389 = load i32, ptr %17, align 4, !tbaa !8
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %390
  %392 = load i32, ptr %18, align 4, !tbaa !8
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds [600 x i32], ptr %391, i64 0, i64 %393
  %395 = load i32, ptr %394, align 4, !tbaa !8
  %396 = load i32, ptr %17, align 4, !tbaa !8
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %397
  %399 = load i32, ptr %16, align 4, !tbaa !8
  %400 = sext i32 %399 to i64
  %401 = getelementptr inbounds [600 x i32], ptr %398, i64 0, i64 %400
  %402 = load i32, ptr %401, align 4, !tbaa !8
  %403 = sub nsw i32 %395, %402
  %404 = load i32, ptr %15, align 4, !tbaa !8
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %405
  %407 = load i32, ptr %18, align 4, !tbaa !8
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds [600 x i32], ptr %406, i64 0, i64 %408
  %410 = load i32, ptr %409, align 4, !tbaa !8
  %411 = sub nsw i32 %403, %410
  %412 = load i32, ptr %15, align 4, !tbaa !8
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %413
  %415 = load i32, ptr %16, align 4, !tbaa !8
  %416 = sext i32 %415 to i64
  %417 = getelementptr inbounds [600 x i32], ptr %414, i64 0, i64 %416
  %418 = load i32, ptr %417, align 4, !tbaa !8
  %419 = add nsw i32 %411, %418
  store i32 %419, ptr %19, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %420 = load i32, ptr %17, align 4, !tbaa !8
  %421 = sext i32 %420 to i64
  %422 = getelementptr inbounds [600 x [600 x i32]], ptr @col, i64 0, i64 %421
  %423 = load i32, ptr %16, align 4, !tbaa !8
  %424 = sext i32 %423 to i64
  %425 = getelementptr inbounds [600 x i32], ptr %422, i64 0, i64 %424
  %426 = load i32, ptr %425, align 4, !tbaa !8
  %427 = load i32, ptr %15, align 4, !tbaa !8
  %428 = sext i32 %427 to i64
  %429 = getelementptr inbounds [600 x [600 x i32]], ptr @col, i64 0, i64 %428
  %430 = load i32, ptr %16, align 4, !tbaa !8
  %431 = sext i32 %430 to i64
  %432 = getelementptr inbounds [600 x i32], ptr %429, i64 0, i64 %431
  %433 = load i32, ptr %432, align 4, !tbaa !8
  %434 = sub nsw i32 %426, %433
  store i32 %434, ptr %20, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %435 = load i32, ptr %15, align 4, !tbaa !8
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds [600 x [600 x i32]], ptr @row, i64 0, i64 %436
  %438 = load i32, ptr %18, align 4, !tbaa !8
  %439 = sext i32 %438 to i64
  %440 = getelementptr inbounds [600 x i32], ptr %437, i64 0, i64 %439
  %441 = load i32, ptr %440, align 4, !tbaa !8
  %442 = load i32, ptr %15, align 4, !tbaa !8
  %443 = sext i32 %442 to i64
  %444 = getelementptr inbounds [600 x [600 x i32]], ptr @row, i64 0, i64 %443
  %445 = load i32, ptr %16, align 4, !tbaa !8
  %446 = sext i32 %445 to i64
  %447 = getelementptr inbounds [600 x i32], ptr %444, i64 0, i64 %446
  %448 = load i32, ptr %447, align 4, !tbaa !8
  %449 = sub nsw i32 %441, %448
  store i32 %449, ptr %21, align 4, !tbaa !8
  %450 = load i32, ptr %19, align 4, !tbaa !8
  %451 = load i32, ptr %20, align 4, !tbaa !8
  %452 = add nsw i32 %450, %451
  %453 = load i32, ptr %21, align 4, !tbaa !8
  %454 = add nsw i32 %452, %453
  %455 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %454)
  %456 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %455, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %380, !llvm.loop !23

457:                                              ; preds = %380
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %458 = load i32, ptr %1, align 4
  ret i32 %458
}

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

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.start.p0(i64 immarg, ptr nocapture) #3

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

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

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

; 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

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

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 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}
!23 = distinct !{!23, !13}


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

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

@h = external dso_local global i32, align 4
@w = external dso_local global i32, align 4
@g = external dso_local local_unnamed_addr global [600 x [600 x i32]], align 16
@dp = external dso_local local_unnamed_addr global [600 x [600 x i32]], align 16
@row = external dso_local local_unnamed_addr global [600 x [600 x i32]], align 16
@col = external dso_local local_unnamed_addr global [600 x [600 x i32]], align 16
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_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 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %7 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %8 = getelementptr i8, ptr %7, i64 -24
  %9 = load i64, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %9
  %11 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %10, ptr noundef null)
  %12 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %13 = getelementptr i8, ptr %12, i64 -24
  %14 = load i64, ptr %13, align 8
  %15 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %14
  %16 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %15, ptr noundef null)
  %17 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @h)
  %18 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) @w)
  %19 = load i32, ptr @h, align 4, !tbaa !8
  %.not114 = icmp slt i32 %19, 1
  br i1 %.not114, label %..preheader110_crit_edge, label %.lr.ph117

..preheader110_crit_edge:                         ; preds = %0
  %.pre = load i32, ptr @w, align 4, !tbaa !8
  br label %.preheader110

.preheader110:                                    ; preds = %._crit_edge, %..preheader110_crit_edge
  %20 = phi i32 [ %.pre, %..preheader110_crit_edge ], [ %24, %._crit_edge ]
  %.lcssa111 = phi i32 [ %19, %..preheader110_crit_edge ], [ %25, %._crit_edge ]
  %.not86118 = icmp slt i32 %20, 2
  br i1 %.not86118, label %.preheader109, label %.lr.ph120.preheader

.lr.ph120.preheader:                              ; preds = %.preheader110
  %21 = add nuw i32 %20, 1
  %wide.trip.count = zext i32 %21 to i64
  br label %.lr.ph120

.lr.ph117:                                        ; preds = %0, %._crit_edge
  %indvars.iv152 = phi i64 [ %indvars.iv.next153, %._crit_edge ], [ 1, %0 ]
  %22 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  %23 = load i32, ptr @w, align 4, !tbaa !8
  %.not95112 = icmp slt i32 %23, 1
  br i1 %.not95112, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph117
  %24 = phi i32 [ %23, %.lr.ph117 ], [ %32, %.lr.ph ]
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %25 = load i32, ptr @h, align 4, !tbaa !8
  %26 = sext i32 %25 to i64
  %.not.not = icmp slt i64 %indvars.iv152, %26
  br i1 %.not.not, label %.lr.ph117, label %.preheader110, !llvm.loop !11

.lr.ph:                                           ; preds = %.lr.ph117, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.lr.ph117 ]
  %27 = add nsw i64 %indvars.iv, -1
  %28 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %27)
  %29 = load i8, ptr %28, align 1, !tbaa !13
  %30 = icmp eq i8 %29, 46
  %spec.select206 = zext i1 %30 to i32
  %31 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %indvars.iv152, i64 %indvars.iv
  store i32 %spec.select206, ptr %31, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %32 = load i32, ptr @w, align 4, !tbaa !8
  %33 = sext i32 %32 to i64
  %.not95.not = icmp slt i64 %indvars.iv, %33
  br i1 %.not95.not, label %.lr.ph, label %._crit_edge, !llvm.loop !14

.preheader109:                                    ; preds = %49, %.preheader110
  %.not87122 = icmp slt i32 %.lcssa111, 2
  br i1 %.not87122, label %.preheader106, label %.lr.ph124.preheader

.lr.ph124.preheader:                              ; preds = %.preheader109
  %34 = add nuw i32 %.lcssa111, 1
  %wide.trip.count161 = zext i32 %34 to i64
  br label %.lr.ph124

.lr.ph120:                                        ; preds = %.lr.ph120.preheader, %49
  %indvars.iv155 = phi i64 [ 2, %.lr.ph120.preheader ], [ %indvars.iv.next156, %49 ]
  %35 = getelementptr inbounds [600 x i32], ptr getelementptr inbounds (i8, ptr @g, i64 2400), i64 0, i64 %indvars.iv155
  %36 = load i32, ptr %35, align 4, !tbaa !8
  %37 = icmp eq i32 %36, 1
  %38 = add nsw i64 %indvars.iv155, -1
  br i1 %37, label %39, label %.lr.ph120._crit_edge

39:                                               ; preds = %.lr.ph120
  %40 = getelementptr inbounds [600 x i32], ptr getelementptr inbounds (i8, ptr @g, i64 2400), i64 0, i64 %38
  %41 = load i32, ptr %40, align 4, !tbaa !8
  %42 = icmp eq i32 %41, 1
  br i1 %42, label %43, label %.lr.ph120._crit_edge

43:                                               ; preds = %39
  %44 = getelementptr inbounds [600 x i32], ptr getelementptr inbounds (i8, ptr @dp, i64 2400), i64 0, i64 %38
  %45 = load i32, ptr %44, align 4, !tbaa !8
  %46 = add nsw i32 %45, 1
  br label %49

.lr.ph120._crit_edge:                             ; preds = %.lr.ph120, %39
  %47 = getelementptr inbounds [600 x i32], ptr getelementptr inbounds (i8, ptr @dp, i64 2400), i64 0, i64 %38
  %48 = load i32, ptr %47, align 4, !tbaa !8
  br label %49

49:                                               ; preds = %43, %.lr.ph120._crit_edge
  %.sink = phi i32 [ %46, %43 ], [ %48, %.lr.ph120._crit_edge ]
  %50 = getelementptr inbounds [600 x i32], ptr getelementptr inbounds (i8, ptr @dp, i64 2400), i64 0, i64 %indvars.iv155
  store i32 %.sink, ptr %50, align 4, !tbaa !8
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next156, %wide.trip.count
  br i1 %exitcond.not, label %.preheader109, label %.lr.ph120, !llvm.loop !15

.preheader108:                                    ; preds = %67
  br i1 %.not87122, label %.preheader106, label %.preheader107.lr.ph

.preheader107.lr.ph:                              ; preds = %.preheader108
  br i1 %.not86118, label %.preheader104.thread, label %.preheader107.preheader

.preheader107.preheader:                          ; preds = %.preheader107.lr.ph
  %51 = add nuw i32 %20, 1
  %52 = add nuw i32 %.lcssa111, 1
  %wide.trip.count171 = zext i32 %52 to i64
  %wide.trip.count166 = zext i32 %51 to i64
  br label %.preheader107

.lr.ph124:                                        ; preds = %.lr.ph124.preheader, %67
  %indvars.iv158 = phi i64 [ 2, %.lr.ph124.preheader ], [ %indvars.iv.next159, %67 ]
  %53 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %indvars.iv158, i64 1
  %54 = load i32, ptr %53, align 4, !tbaa !8
  %55 = icmp eq i32 %54, 1
  %56 = add nsw i64 %indvars.iv158, -1
  br i1 %55, label %57, label %.lr.ph124._crit_edge

57:                                               ; preds = %.lr.ph124
  %58 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %56, i64 1
  %59 = load i32, ptr %58, align 4, !tbaa !8
  %60 = icmp eq i32 %59, 1
  br i1 %60, label %61, label %.lr.ph124._crit_edge

61:                                               ; preds = %57
  %62 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %56, i64 1
  %63 = load i32, ptr %62, align 4, !tbaa !8
  %64 = add nsw i32 %63, 1
  br label %67

.lr.ph124._crit_edge:                             ; preds = %.lr.ph124, %57
  %65 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %56, i64 1
  %66 = load i32, ptr %65, align 4, !tbaa !8
  br label %67

67:                                               ; preds = %61, %.lr.ph124._crit_edge
  %.sink208 = phi i32 [ %64, %61 ], [ %66, %.lr.ph124._crit_edge ]
  %68 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %indvars.iv158, i64 1
  store i32 %.sink208, ptr %68, align 4, !tbaa !8
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %exitcond162.not = icmp eq i64 %indvars.iv.next159, %wide.trip.count161
  br i1 %exitcond162.not, label %.preheader108, label %.lr.ph124, !llvm.loop !16

.preheader107:                                    ; preds = %.preheader107.preheader, %._crit_edge128
  %indvars.iv168 = phi i64 [ 2, %.preheader107.preheader ], [ %indvars.iv.next169, %._crit_edge128 ]
  %69 = add nsw i64 %indvars.iv168, -1
  br label %72

.preheader106:                                    ; preds = %._crit_edge128, %.preheader109, %.preheader108
  %.not89135 = icmp slt i32 %.lcssa111, 1
  %brmerge = or i1 %.not89135, %.not86118
  br i1 %brmerge, label %.preheader104, label %.preheader105.preheader

.preheader105.preheader:                          ; preds = %.preheader106
  %70 = add nuw i32 %20, 1
  %71 = add nuw i32 %.lcssa111, 1
  %wide.trip.count181 = zext i32 %71 to i64
  %wide.trip.count176 = zext i32 %70 to i64
  br label %.preheader105

._crit_edge128:                                   ; preds = %85
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %exitcond172.not = icmp eq i64 %indvars.iv.next169, %wide.trip.count171
  br i1 %exitcond172.not, label %.preheader106, label %.preheader107, !llvm.loop !17

72:                                               ; preds = %.preheader107, %85
  %indvars.iv163 = phi i64 [ 2, %.preheader107 ], [ %indvars.iv.next164, %85 ]
  %73 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %indvars.iv168, i64 %indvars.iv163
  %74 = load i32, ptr %73, align 4, !tbaa !8
  %75 = icmp eq i32 %74, 1
  br i1 %75, label %76, label %._crit_edge196

._crit_edge196:                                   ; preds = %72
  %.pre197 = add nsw i64 %indvars.iv163, -1
  br label %85

76:                                               ; preds = %72
  %77 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %69, i64 %indvars.iv163
  %78 = load i32, ptr %77, align 4, !tbaa !8
  %79 = icmp eq i32 %78, 1
  %spec.select = zext i1 %79 to i32
  %80 = add nsw i64 %indvars.iv163, -1
  %81 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %indvars.iv168, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !8
  %83 = icmp eq i32 %82, 1
  %84 = select i1 %79, i32 2, i32 1
  %spec.select96 = select i1 %83, i32 %84, i32 %spec.select
  br label %85

85:                                               ; preds = %._crit_edge196, %76
  %.pre-phi = phi i64 [ %.pre197, %._crit_edge196 ], [ %80, %76 ]
  %.1 = phi i32 [ 0, %._crit_edge196 ], [ %spec.select96, %76 ]
  %86 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %69, i64 %indvars.iv163
  %87 = load i32, ptr %86, align 4, !tbaa !8
  %88 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %indvars.iv168, i64 %.pre-phi
  %89 = load i32, ptr %88, align 4, !tbaa !8
  %90 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %69, i64 %.pre-phi
  %91 = load i32, ptr %90, align 4, !tbaa !8
  %92 = add i32 %87, %.1
  %93 = add i32 %92, %89
  %94 = sub i32 %93, %91
  %95 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %indvars.iv168, i64 %indvars.iv163
  store i32 %94, ptr %95, align 4, !tbaa !8
  %indvars.iv.next164 = add nuw nsw i64 %indvars.iv163, 1
  %exitcond167.not = icmp eq i64 %indvars.iv.next164, %wide.trip.count166
  br i1 %exitcond167.not, label %._crit_edge128, label %72, !llvm.loop !18

.preheader105:                                    ; preds = %.preheader105.preheader, %._crit_edge134
  %indvars.iv178 = phi i64 [ 1, %.preheader105.preheader ], [ %indvars.iv.next179, %._crit_edge134 ]
  %.phi.trans.insert = getelementptr inbounds [600 x [600 x i32]], ptr @row, i64 0, i64 %indvars.iv178, i64 1
  %.pre193 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !8
  br label %98

.preheader104:                                    ; preds = %._crit_edge134, %.preheader106
  %.not90141 = icmp slt i32 %20, 1
  %brmerge210 = or i1 %.not90141, %.not87122
  br i1 %brmerge210, label %._crit_edge143, label %.preheader.preheader

.preheader104.thread:                             ; preds = %.preheader107.lr.ph
  %.not90141203.not = icmp eq i32 %20, 1
  br i1 %.not90141203.not, label %.preheader.preheader, label %._crit_edge143

.preheader.preheader:                             ; preds = %.preheader104, %.preheader104.thread
  %96 = add nuw i32 %.lcssa111, 1
  %97 = add nuw i32 %20, 1
  %wide.trip.count191 = zext i32 %97 to i64
  %wide.trip.count186 = zext i32 %96 to i64
  br label %.preheader

._crit_edge134:                                   ; preds = %108
  %indvars.iv.next179 = add nuw nsw i64 %indvars.iv178, 1
  %exitcond182.not = icmp eq i64 %indvars.iv.next179, %wide.trip.count181
  br i1 %exitcond182.not, label %.preheader104, label %.preheader105, !llvm.loop !19

98:                                               ; preds = %.preheader105, %108
  %99 = phi i32 [ %.pre193, %.preheader105 ], [ %111, %108 ]
  %indvars.iv173 = phi i64 [ 2, %.preheader105 ], [ %indvars.iv.next174, %108 ]
  %100 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %indvars.iv178, i64 %indvars.iv173
  %101 = load i32, ptr %100, align 4, !tbaa !8
  %102 = icmp eq i32 %101, 1
  br i1 %102, label %103, label %108

103:                                              ; preds = %98
  %104 = add nsw i64 %indvars.iv173, -1
  %105 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %indvars.iv178, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !8
  %107 = icmp eq i32 %106, 1
  br label %108

108:                                              ; preds = %103, %98
  %109 = phi i1 [ false, %98 ], [ %107, %103 ]
  %110 = zext i1 %109 to i32
  %111 = add nsw i32 %99, %110
  %112 = getelementptr inbounds [600 x [600 x i32]], ptr @row, i64 0, i64 %indvars.iv178, i64 %indvars.iv173
  store i32 %111, ptr %112, align 4, !tbaa !8
  %indvars.iv.next174 = add nuw nsw i64 %indvars.iv173, 1
  %exitcond177.not = icmp eq i64 %indvars.iv.next174, %wide.trip.count176
  br i1 %exitcond177.not, label %._crit_edge134, label %98, !llvm.loop !20

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge140
  %indvars.iv188 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next189, %._crit_edge140 ]
  %.phi.trans.insert194 = getelementptr inbounds [600 x [600 x i32]], ptr @col, i64 0, i64 1, i64 %indvars.iv188
  %.pre195 = load i32, ptr %.phi.trans.insert194, align 4, !tbaa !8
  br label %116

._crit_edge143:                                   ; preds = %._crit_edge140, %.preheader104, %.preheader104.thread
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %113 = 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)
  %114 = load i32, ptr %1, align 4, !tbaa !8
  %115 = add nsw i32 %114, -1
  store i32 %115, ptr %1, align 4, !tbaa !8
  %.not91144 = icmp eq i32 %114, 0
  br i1 %.not91144, label %._crit_edge147, label %.lr.ph146

._crit_edge140:                                   ; preds = %126
  %indvars.iv.next189 = add nuw nsw i64 %indvars.iv188, 1
  %exitcond192.not = icmp eq i64 %indvars.iv.next189, %wide.trip.count191
  br i1 %exitcond192.not, label %._crit_edge143, label %.preheader, !llvm.loop !21

116:                                              ; preds = %.preheader, %126
  %117 = phi i32 [ %.pre195, %.preheader ], [ %129, %126 ]
  %indvars.iv183 = phi i64 [ 2, %.preheader ], [ %indvars.iv.next184, %126 ]
  %118 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %indvars.iv183, i64 %indvars.iv188
  %119 = load i32, ptr %118, align 4, !tbaa !8
  %120 = icmp eq i32 %119, 1
  br i1 %120, label %121, label %126

121:                                              ; preds = %116
  %122 = add nsw i64 %indvars.iv183, -1
  %123 = getelementptr inbounds [600 x [600 x i32]], ptr @g, i64 0, i64 %122, i64 %indvars.iv188
  %124 = load i32, ptr %123, align 4, !tbaa !8
  %125 = icmp eq i32 %124, 1
  br label %126

126:                                              ; preds = %121, %116
  %127 = phi i1 [ false, %116 ], [ %125, %121 ]
  %128 = zext i1 %127 to i32
  %129 = add nsw i32 %117, %128
  %130 = getelementptr inbounds [600 x [600 x i32]], ptr @col, i64 0, i64 %indvars.iv183, i64 %indvars.iv188
  store i32 %129, ptr %130, align 4, !tbaa !8
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %exitcond187.not = icmp eq i64 %indvars.iv.next184, %wide.trip.count186
  br i1 %exitcond187.not, label %._crit_edge140, label %116, !llvm.loop !22

.lr.ph146:                                        ; preds = %._crit_edge143, %.lr.ph146
  %131 = 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)
  %132 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %131, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %133 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %132, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %134 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %133, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %135 = load i32, ptr %4, align 4, !tbaa !8
  %136 = sext i32 %135 to i64
  %137 = load i32, ptr %5, align 4, !tbaa !8
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %136, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !8
  %141 = load i32, ptr %3, align 4, !tbaa !8
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %136, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !8
  %145 = load i32, ptr %2, align 4, !tbaa !8
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %146, i64 %138
  %148 = load i32, ptr %147, align 4, !tbaa !8
  %149 = getelementptr inbounds [600 x [600 x i32]], ptr @dp, i64 0, i64 %146, i64 %142
  %150 = load i32, ptr %149, align 4, !tbaa !8
  %151 = getelementptr inbounds [600 x [600 x i32]], ptr @col, i64 0, i64 %136, i64 %142
  %152 = load i32, ptr %151, align 4, !tbaa !8
  %153 = getelementptr inbounds [600 x [600 x i32]], ptr @col, i64 0, i64 %146, i64 %142
  %154 = load i32, ptr %153, align 4, !tbaa !8
  %155 = getelementptr inbounds [600 x [600 x i32]], ptr @row, i64 0, i64 %146, i64 %138
  %156 = load i32, ptr %155, align 4, !tbaa !8
  %157 = getelementptr inbounds [600 x [600 x i32]], ptr @row, i64 0, i64 %146, i64 %142
  %158 = load i32, ptr %157, align 4, !tbaa !8
  %159 = add i32 %144, %148
  %160 = sub i32 %140, %159
  %.neg101 = add i32 %160, %150
  %161 = add i32 %.neg101, %152
  %162 = add i32 %161, %156
  %163 = add i32 %154, %158
  %164 = sub i32 %162, %163
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %164)
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %165, i8 noundef signext 10)
  %167 = load i32, ptr %1, align 4, !tbaa !8
  %168 = add nsw i32 %167, -1
  store i32 %168, ptr %1, align 4, !tbaa !8
  %.not91 = icmp eq i32 %167, 0
  br i1 %.not91, label %._crit_edge147, label %.lr.ph146, !llvm.loop !23

._crit_edge147:                                   ; preds = %.lr.ph146, %._crit_edge143
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  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

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.start.p0(i64 immarg, ptr nocapture) #3

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

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

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

; 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

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

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 = { 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 = !{!10, !10, i64 0}
!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}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}


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