; LLVM IR from duc0/ContestNeko :: CPPProjects (Board)

; 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.Board = type { i32, i32, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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] }

@board = external dso_local global %class.Board, align 8
@f = external dso_local global [3 x [3 x [2020 x [2020 x i64]]]], align 16
@good = external dso_local global [2020 x [2020 x i8]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z6isSideRK5Boardii(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %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
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i64, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i64, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i64, align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %36 = 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)
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %38 = load i32, ptr %2, align 4, !tbaa !5
  call void @_ZN5Board4initEi(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %38)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %50, %0
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %62

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  %45 = invoke 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) %5)
          to label %46 unwind label %53

46:                                               ; preds = %44
  %47 = load i32, ptr %4, align 4, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %48 unwind label %53

48:                                               ; preds = %46
  invoke void @_ZN5Board6setRowEiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %47, ptr noundef %8)
          to label %49 unwind label %57

49:                                               ; preds = %48
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #7
  br label %50

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

53:                                               ; preds = %46, %44
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %6, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %7, align 4
  br label %61

57:                                               ; preds = %48
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %6, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %61

61:                                               ; preds = %57, %53
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %690

62:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 0, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %679, %62
  %64 = load i32, ptr %11, align 4, !tbaa !5
  %65 = icmp slt i32 %64, 4
  br i1 %65, label %67, label %66

66:                                               ; preds = %63
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %682

67:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %68

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

72:                                               ; preds = %68
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %77

73:                                               ; preds = %68
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %13, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %13, align 4, !tbaa !5
  br label %68, !llvm.loop !13

77:                                               ; preds = %72
  call void @llvm.memset.p0.i64(ptr align 16 @f, i8 0, i64 293788800, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %115, %77
  %79 = load i32, ptr %14, align 4, !tbaa !5
  %80 = load i32, ptr %2, align 4, !tbaa !5
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %118

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %111, %83
  %85 = load i32, ptr %15, align 4, !tbaa !5
  %86 = load i32, ptr %3, align 4, !tbaa !5
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %114

89:                                               ; preds = %84
  %90 = load i32, ptr %14, align 4, !tbaa !5
  %91 = load i32, ptr %15, align 4, !tbaa !5
  %92 = call noundef zeroext i1 @_Z6isSideRK5Boardii(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %90, i32 noundef %91)
  br i1 %92, label %102, label %93

93:                                               ; preds = %89
  %94 = load i32, ptr %14, align 4, !tbaa !5
  %95 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %94)
  %96 = load i32, ptr %15, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %95, i64 noundef %97) #7
  %99 = load i8, ptr %98, align 1, !tbaa !14
  %100 = sext i8 %99 to i32
  %101 = icmp eq i32 %100, 46
  br label %102

102:                                              ; preds = %93, %89
  %103 = phi i1 [ false, %89 ], [ %101, %93 ]
  %104 = load i32, ptr %14, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [2020 x [2020 x i8]], ptr @good, i64 0, i64 %105
  %107 = load i32, ptr %15, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [2020 x i8], ptr %106, i64 0, i64 %108
  %110 = zext i1 %103 to i8
  store i8 %110, ptr %109, align 1, !tbaa !15
  br label %111

111:                                              ; preds = %102
  %112 = load i32, ptr %15, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %15, align 4, !tbaa !5
  br label %84, !llvm.loop !17

114:                                              ; preds = %88
  br label %115

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

118:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %119

119:                                              ; preds = %138, %118
  %120 = load i32, ptr %16, align 4, !tbaa !5
  %121 = load i32, ptr %3, align 4, !tbaa !5
  %122 = sub nsw i32 %121, 2
  %123 = icmp sle i32 %120, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %119
  store i32 17, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %141

125:                                              ; preds = %119
  %126 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef 0)
  %127 = load i32, ptr %16, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %126, i64 noundef %128) #7
  %130 = load i8, ptr %129, align 1, !tbaa !14
  %131 = sext i8 %130 to i32
  %132 = icmp eq i32 %131, 46
  br i1 %132, label %133, label %137

133:                                              ; preds = %125
  %134 = load i32, ptr %16, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [2020 x i64], ptr getelementptr inbounds ([3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 2), i64 0, i64 %135
  store i64 1, ptr %136, align 8, !tbaa !11
  br label %137

137:                                              ; preds = %133, %125
  br label %138

138:                                              ; preds = %137
  %139 = load i32, ptr %16, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %16, align 4, !tbaa !5
  br label %119, !llvm.loop !19

141:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %469, %141
  %143 = load i32, ptr %17, align 4, !tbaa !5
  %144 = load i32, ptr %2, align 4, !tbaa !5
  %145 = icmp slt i32 %143, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %142
  store i32 20, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %472

147:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 2, ptr %18, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %465, %147
  %149 = load i32, ptr %18, align 4, !tbaa !5
  %150 = icmp sge i32 %149, 0
  br i1 %150, label %152, label %151

151:                                              ; preds = %148
  store i32 23, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %468

152:                                              ; preds = %148
  %153 = load i32, ptr %18, align 4, !tbaa !5
  %154 = icmp sgt i32 %153, 0
  br i1 %154, label %155, label %207

155:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %156

156:                                              ; preds = %203, %155
  %157 = load i32, ptr %19, align 4, !tbaa !5
  %158 = load i32, ptr %3, align 4, !tbaa !5
  %159 = icmp slt i32 %157, %158
  br i1 %159, label %161, label %160

160:                                              ; preds = %156
  store i32 26, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %206

161:                                              ; preds = %156
  %162 = load i32, ptr %17, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [2020 x [2020 x i8]], ptr @good, i64 0, i64 %163
  %165 = load i32, ptr %19, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [2020 x i8], ptr %164, i64 0, i64 %166
  %168 = load i8, ptr %167, align 1, !tbaa !15, !range !20, !noundef !21
  %169 = trunc i8 %168 to i1
  br i1 %169, label %171, label %170

170:                                              ; preds = %161
  br label %203

171:                                              ; preds = %161
  %172 = load i32, ptr %19, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  %174 = load i32, ptr %3, align 4, !tbaa !5
  %175 = icmp slt i32 %173, %174
  br i1 %175, label %176, label %202

176:                                              ; preds = %171
  %177 = load i32, ptr %18, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %178
  %180 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %179, i64 0, i64 0
  %181 = load i32, ptr %17, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [2020 x [2020 x i64]], ptr %180, i64 0, i64 %182
  %184 = load i32, ptr %19, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [2020 x i64], ptr %183, i64 0, i64 %185
  %187 = load i64, ptr %186, align 8, !tbaa !11
  %188 = load i32, ptr %18, align 4, !tbaa !5
  %189 = sub nsw i32 %188, 1
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %190
  %192 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %191, i64 0, i64 2
  %193 = load i32, ptr %17, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [2020 x [2020 x i64]], ptr %192, i64 0, i64 %194
  %196 = load i32, ptr %19, align 4, !tbaa !5
  %197 = add nsw i32 %196, 1
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [2020 x i64], ptr %195, i64 0, i64 %198
  %200 = load i64, ptr %199, align 8, !tbaa !11
  %201 = add nsw i64 %200, %187
  store i64 %201, ptr %199, align 8, !tbaa !11
  br label %202

202:                                              ; preds = %176, %171
  br label %203

203:                                              ; preds = %202, %170
  %204 = load i32, ptr %19, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %19, align 4, !tbaa !5
  br label %156, !llvm.loop !22

206:                                              ; preds = %160
  br label %207

207:                                              ; preds = %206, %152
  %208 = load i32, ptr %18, align 4, !tbaa !5
  %209 = icmp sgt i32 %208, 0
  br i1 %209, label %210, label %261

210:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %211 = load i32, ptr %3, align 4, !tbaa !5
  %212 = sub nsw i32 %211, 1
  store i32 %212, ptr %20, align 4, !tbaa !5
  br label %213

213:                                              ; preds = %257, %210
  %214 = load i32, ptr %20, align 4, !tbaa !5
  %215 = icmp sge i32 %214, 0
  br i1 %215, label %217, label %216

216:                                              ; preds = %213
  store i32 29, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %260

217:                                              ; preds = %213
  %218 = load i32, ptr %17, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [2020 x [2020 x i8]], ptr @good, i64 0, i64 %219
  %221 = load i32, ptr %20, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [2020 x i8], ptr %220, i64 0, i64 %222
  %224 = load i8, ptr %223, align 1, !tbaa !15, !range !20, !noundef !21
  %225 = trunc i8 %224 to i1
  br i1 %225, label %227, label %226

226:                                              ; preds = %217
  br label %257

227:                                              ; preds = %217
  %228 = load i32, ptr %20, align 4, !tbaa !5
  %229 = icmp sgt i32 %228, 0
  br i1 %229, label %230, label %256

230:                                              ; preds = %227
  %231 = load i32, ptr %18, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %232
  %234 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %233, i64 0, i64 0
  %235 = load i32, ptr %17, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [2020 x [2020 x i64]], ptr %234, i64 0, i64 %236
  %238 = load i32, ptr %20, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [2020 x i64], ptr %237, i64 0, i64 %239
  %241 = load i64, ptr %240, align 8, !tbaa !11
  %242 = load i32, ptr %18, align 4, !tbaa !5
  %243 = sub nsw i32 %242, 1
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %244
  %246 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %245, i64 0, i64 1
  %247 = load i32, ptr %17, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [2020 x [2020 x i64]], ptr %246, i64 0, i64 %248
  %250 = load i32, ptr %20, align 4, !tbaa !5
  %251 = sub nsw i32 %250, 1
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [2020 x i64], ptr %249, i64 0, i64 %252
  %254 = load i64, ptr %253, align 8, !tbaa !11
  %255 = add nsw i64 %254, %241
  store i64 %255, ptr %253, align 8, !tbaa !11
  br label %256

256:                                              ; preds = %230, %227
  br label %257

257:                                              ; preds = %256, %226
  %258 = load i32, ptr %20, align 4, !tbaa !5
  %259 = add nsw i32 %258, -1
  store i32 %259, ptr %20, align 4, !tbaa !5
  br label %213, !llvm.loop !23

260:                                              ; preds = %216
  br label %261

261:                                              ; preds = %260, %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %262

262:                                              ; preds = %308, %261
  %263 = load i32, ptr %21, align 4, !tbaa !5
  %264 = load i32, ptr %3, align 4, !tbaa !5
  %265 = icmp slt i32 %263, %264
  br i1 %265, label %267, label %266

266:                                              ; preds = %262
  store i32 32, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %311

267:                                              ; preds = %262
  %268 = load i32, ptr %17, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [2020 x [2020 x i8]], ptr @good, i64 0, i64 %269
  %271 = load i32, ptr %21, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [2020 x i8], ptr %270, i64 0, i64 %272
  %274 = load i8, ptr %273, align 1, !tbaa !15, !range !20, !noundef !21
  %275 = trunc i8 %274 to i1
  br i1 %275, label %277, label %276

276:                                              ; preds = %267
  br label %308

277:                                              ; preds = %267
  %278 = load i32, ptr %21, align 4, !tbaa !5
  %279 = add nsw i32 %278, 1
  %280 = load i32, ptr %3, align 4, !tbaa !5
  %281 = icmp slt i32 %279, %280
  br i1 %281, label %282, label %307

282:                                              ; preds = %277
  %283 = load i32, ptr %18, align 4, !tbaa !5
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %284
  %286 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %285, i64 0, i64 2
  %287 = load i32, ptr %17, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [2020 x [2020 x i64]], ptr %286, i64 0, i64 %288
  %290 = load i32, ptr %21, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [2020 x i64], ptr %289, i64 0, i64 %291
  %293 = load i64, ptr %292, align 8, !tbaa !11
  %294 = load i32, ptr %18, align 4, !tbaa !5
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %295
  %297 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %296, i64 0, i64 2
  %298 = load i32, ptr %17, align 4, !tbaa !5
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [2020 x [2020 x i64]], ptr %297, i64 0, i64 %299
  %301 = load i32, ptr %21, align 4, !tbaa !5
  %302 = add nsw i32 %301, 1
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [2020 x i64], ptr %300, i64 0, i64 %303
  %305 = load i64, ptr %304, align 8, !tbaa !11
  %306 = add nsw i64 %305, %293
  store i64 %306, ptr %304, align 8, !tbaa !11
  br label %307

307:                                              ; preds = %282, %277
  br label %308

308:                                              ; preds = %307, %276
  %309 = load i32, ptr %21, align 4, !tbaa !5
  %310 = add nsw i32 %309, 1
  store i32 %310, ptr %21, align 4, !tbaa !5
  br label %262, !llvm.loop !24

311:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %312 = load i32, ptr %3, align 4, !tbaa !5
  %313 = sub nsw i32 %312, 1
  store i32 %313, ptr %22, align 4, !tbaa !5
  br label %314

314:                                              ; preds = %357, %311
  %315 = load i32, ptr %22, align 4, !tbaa !5
  %316 = icmp sge i32 %315, 0
  br i1 %316, label %318, label %317

317:                                              ; preds = %314
  store i32 35, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %360

318:                                              ; preds = %314
  %319 = load i32, ptr %17, align 4, !tbaa !5
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [2020 x [2020 x i8]], ptr @good, i64 0, i64 %320
  %322 = load i32, ptr %22, align 4, !tbaa !5
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [2020 x i8], ptr %321, i64 0, i64 %323
  %325 = load i8, ptr %324, align 1, !tbaa !15, !range !20, !noundef !21
  %326 = trunc i8 %325 to i1
  br i1 %326, label %328, label %327

327:                                              ; preds = %318
  br label %357

328:                                              ; preds = %318
  %329 = load i32, ptr %22, align 4, !tbaa !5
  %330 = icmp sgt i32 %329, 0
  br i1 %330, label %331, label %356

331:                                              ; preds = %328
  %332 = load i32, ptr %18, align 4, !tbaa !5
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %333
  %335 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %334, i64 0, i64 1
  %336 = load i32, ptr %17, align 4, !tbaa !5
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [2020 x [2020 x i64]], ptr %335, i64 0, i64 %337
  %339 = load i32, ptr %22, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [2020 x i64], ptr %338, i64 0, i64 %340
  %342 = load i64, ptr %341, align 8, !tbaa !11
  %343 = load i32, ptr %18, align 4, !tbaa !5
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %344
  %346 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %345, i64 0, i64 1
  %347 = load i32, ptr %17, align 4, !tbaa !5
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds [2020 x [2020 x i64]], ptr %346, i64 0, i64 %348
  %350 = load i32, ptr %22, align 4, !tbaa !5
  %351 = sub nsw i32 %350, 1
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [2020 x i64], ptr %349, i64 0, i64 %352
  %354 = load i64, ptr %353, align 8, !tbaa !11
  %355 = add nsw i64 %354, %342
  store i64 %355, ptr %353, align 8, !tbaa !11
  br label %356

356:                                              ; preds = %331, %328
  br label %357

357:                                              ; preds = %356, %327
  %358 = load i32, ptr %22, align 4, !tbaa !5
  %359 = add nsw i32 %358, -1
  store i32 %359, ptr %22, align 4, !tbaa !5
  br label %314, !llvm.loop !25

360:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %361

361:                                              ; preds = %461, %360
  %362 = load i32, ptr %23, align 4, !tbaa !5
  %363 = load i32, ptr %3, align 4, !tbaa !5
  %364 = icmp slt i32 %362, %363
  br i1 %364, label %366, label %365

365:                                              ; preds = %361
  store i32 38, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %464

366:                                              ; preds = %361
  %367 = load i32, ptr %17, align 4, !tbaa !5
  %368 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %367)
  %369 = load i32, ptr %23, align 4, !tbaa !5
  %370 = sext i32 %369 to i64
  %371 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %368, i64 noundef %370) #7
  %372 = load i8, ptr %371, align 1, !tbaa !14
  %373 = sext i8 %372 to i32
  %374 = icmp ne i32 %373, 46
  br i1 %374, label %375, label %376

375:                                              ; preds = %366
  br label %461

376:                                              ; preds = %366
  %377 = load i32, ptr %17, align 4, !tbaa !5
  %378 = add nsw i32 %377, 1
  %379 = load i32, ptr %2, align 4, !tbaa !5
  %380 = icmp slt i32 %378, %379
  br i1 %380, label %381, label %406

381:                                              ; preds = %376
  %382 = load i32, ptr %18, align 4, !tbaa !5
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %383
  %385 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %384, i64 0, i64 0
  %386 = load i32, ptr %17, align 4, !tbaa !5
  %387 = sext i32 %386 to i64
  %388 = getelementptr inbounds [2020 x [2020 x i64]], ptr %385, i64 0, i64 %387
  %389 = load i32, ptr %23, align 4, !tbaa !5
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds [2020 x i64], ptr %388, i64 0, i64 %390
  %392 = load i64, ptr %391, align 8, !tbaa !11
  %393 = load i32, ptr %18, align 4, !tbaa !5
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %394
  %396 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %395, i64 0, i64 0
  %397 = load i32, ptr %17, align 4, !tbaa !5
  %398 = add nsw i32 %397, 1
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [2020 x [2020 x i64]], ptr %396, i64 0, i64 %399
  %401 = load i32, ptr %23, align 4, !tbaa !5
  %402 = sext i32 %401 to i64
  %403 = getelementptr inbounds [2020 x i64], ptr %400, i64 0, i64 %402
  %404 = load i64, ptr %403, align 8, !tbaa !11
  %405 = add nsw i64 %404, %392
  store i64 %405, ptr %403, align 8, !tbaa !11
  br label %406

406:                                              ; preds = %381, %376
  %407 = load i32, ptr %18, align 4, !tbaa !5
  %408 = icmp sgt i32 %407, 0
  br i1 %408, label %409, label %460

409:                                              ; preds = %406
  %410 = load i32, ptr %18, align 4, !tbaa !5
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %411
  %413 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %412, i64 0, i64 2
  %414 = load i32, ptr %17, align 4, !tbaa !5
  %415 = sext i32 %414 to i64
  %416 = getelementptr inbounds [2020 x [2020 x i64]], ptr %413, i64 0, i64 %415
  %417 = load i32, ptr %23, align 4, !tbaa !5
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds [2020 x i64], ptr %416, i64 0, i64 %418
  %420 = load i64, ptr %419, align 8, !tbaa !11
  %421 = load i32, ptr %18, align 4, !tbaa !5
  %422 = sub nsw i32 %421, 1
  %423 = sext i32 %422 to i64
  %424 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %423
  %425 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %424, i64 0, i64 0
  %426 = load i32, ptr %17, align 4, !tbaa !5
  %427 = add nsw i32 %426, 1
  %428 = sext i32 %427 to i64
  %429 = getelementptr inbounds [2020 x [2020 x i64]], ptr %425, i64 0, i64 %428
  %430 = load i32, ptr %23, align 4, !tbaa !5
  %431 = sext i32 %430 to i64
  %432 = getelementptr inbounds [2020 x i64], ptr %429, i64 0, i64 %431
  %433 = load i64, ptr %432, align 8, !tbaa !11
  %434 = add nsw i64 %433, %420
  store i64 %434, ptr %432, align 8, !tbaa !11
  %435 = load i32, ptr %18, align 4, !tbaa !5
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %436
  %438 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %437, i64 0, i64 1
  %439 = load i32, ptr %17, align 4, !tbaa !5
  %440 = sext i32 %439 to i64
  %441 = getelementptr inbounds [2020 x [2020 x i64]], ptr %438, i64 0, i64 %440
  %442 = load i32, ptr %23, align 4, !tbaa !5
  %443 = sext i32 %442 to i64
  %444 = getelementptr inbounds [2020 x i64], ptr %441, i64 0, i64 %443
  %445 = load i64, ptr %444, align 8, !tbaa !11
  %446 = load i32, ptr %18, align 4, !tbaa !5
  %447 = sub nsw i32 %446, 1
  %448 = sext i32 %447 to i64
  %449 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %448
  %450 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %449, i64 0, i64 0
  %451 = load i32, ptr %17, align 4, !tbaa !5
  %452 = add nsw i32 %451, 1
  %453 = sext i32 %452 to i64
  %454 = getelementptr inbounds [2020 x [2020 x i64]], ptr %450, i64 0, i64 %453
  %455 = load i32, ptr %23, align 4, !tbaa !5
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds [2020 x i64], ptr %454, i64 0, i64 %456
  %458 = load i64, ptr %457, align 8, !tbaa !11
  %459 = add nsw i64 %458, %445
  store i64 %459, ptr %457, align 8, !tbaa !11
  br label %460

460:                                              ; preds = %409, %406
  br label %461

461:                                              ; preds = %460, %375
  %462 = load i32, ptr %23, align 4, !tbaa !5
  %463 = add nsw i32 %462, 1
  store i32 %463, ptr %23, align 4, !tbaa !5
  br label %361, !llvm.loop !26

464:                                              ; preds = %365
  br label %465

465:                                              ; preds = %464
  %466 = load i32, ptr %18, align 4, !tbaa !5
  %467 = add nsw i32 %466, -1
  store i32 %467, ptr %18, align 4, !tbaa !5
  br label %148, !llvm.loop !27

468:                                              ; preds = %151
  br label %469

469:                                              ; preds = %468
  %470 = load i32, ptr %17, align 4, !tbaa !5
  %471 = add nsw i32 %470, 1
  store i32 %471, ptr %17, align 4, !tbaa !5
  br label %142, !llvm.loop !28

472:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  store i64 0, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 1, ptr %25, align 4, !tbaa !5
  br label %473

473:                                              ; preds = %514, %472
  %474 = load i32, ptr %25, align 4, !tbaa !5
  %475 = load i32, ptr %3, align 4, !tbaa !5
  %476 = sub nsw i32 %475, 2
  %477 = icmp sle i32 %474, %476
  br i1 %477, label %479, label %478

478:                                              ; preds = %473
  store i32 41, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %517

479:                                              ; preds = %473
  %480 = load i32, ptr %2, align 4, !tbaa !5
  %481 = sub nsw i32 %480, 1
  %482 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %481)
  %483 = load i32, ptr %25, align 4, !tbaa !5
  %484 = sext i32 %483 to i64
  %485 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %482, i64 noundef %484) #7
  %486 = load i8, ptr %485, align 1, !tbaa !14
  %487 = sext i8 %486 to i32
  %488 = icmp ne i32 %487, 46
  br i1 %488, label %489, label %490

489:                                              ; preds = %479
  br label %514

490:                                              ; preds = %479
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %491

491:                                              ; preds = %510, %490
  %492 = load i32, ptr %26, align 4, !tbaa !5
  %493 = icmp sle i32 %492, 2
  br i1 %493, label %495, label %494

494:                                              ; preds = %491
  store i32 44, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %513

495:                                              ; preds = %491
  %496 = load i32, ptr %26, align 4, !tbaa !5
  %497 = sext i32 %496 to i64
  %498 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %497
  %499 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %498, i64 0, i64 0
  %500 = load i32, ptr %2, align 4, !tbaa !5
  %501 = sub nsw i32 %500, 1
  %502 = sext i32 %501 to i64
  %503 = getelementptr inbounds [2020 x [2020 x i64]], ptr %499, i64 0, i64 %502
  %504 = load i32, ptr %25, align 4, !tbaa !5
  %505 = sext i32 %504 to i64
  %506 = getelementptr inbounds [2020 x i64], ptr %503, i64 0, i64 %505
  %507 = load i64, ptr %506, align 8, !tbaa !11
  %508 = load i64, ptr %24, align 8, !tbaa !11
  %509 = add nsw i64 %508, %507
  store i64 %509, ptr %24, align 8, !tbaa !11
  br label %510

510:                                              ; preds = %495
  %511 = load i32, ptr %26, align 4, !tbaa !5
  %512 = add nsw i32 %511, 1
  store i32 %512, ptr %26, align 4, !tbaa !5
  br label %491, !llvm.loop !29

513:                                              ; preds = %494
  br label %514

514:                                              ; preds = %513, %489
  %515 = load i32, ptr %25, align 4, !tbaa !5
  %516 = add nsw i32 %515, 1
  store i32 %516, ptr %25, align 4, !tbaa !5
  br label %473, !llvm.loop !30

517:                                              ; preds = %478
  %518 = load i64, ptr %24, align 8, !tbaa !11
  %519 = load i64, ptr %10, align 8, !tbaa !11
  %520 = add nsw i64 %519, %518
  store i64 %520, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store i64 0, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 1, ptr %28, align 4, !tbaa !5
  br label %521

521:                                              ; preds = %556, %517
  %522 = load i32, ptr %28, align 4, !tbaa !5
  %523 = load i32, ptr %2, align 4, !tbaa !5
  %524 = sub nsw i32 %523, 2
  %525 = icmp sle i32 %522, %524
  br i1 %525, label %527, label %526

526:                                              ; preds = %521
  store i32 47, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %559

527:                                              ; preds = %521
  %528 = load i32, ptr %28, align 4, !tbaa !5
  %529 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %528)
  %530 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %529, i64 noundef 0) #7
  %531 = load i8, ptr %530, align 1, !tbaa !14
  %532 = sext i8 %531 to i32
  %533 = icmp ne i32 %532, 46
  br i1 %533, label %534, label %535

534:                                              ; preds = %527
  br label %556

535:                                              ; preds = %527
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %536

536:                                              ; preds = %552, %535
  %537 = load i32, ptr %29, align 4, !tbaa !5
  %538 = icmp sle i32 %537, 2
  br i1 %538, label %540, label %539

539:                                              ; preds = %536
  store i32 50, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %555

540:                                              ; preds = %536
  %541 = load i32, ptr %29, align 4, !tbaa !5
  %542 = sext i32 %541 to i64
  %543 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %542
  %544 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %543, i64 0, i64 1
  %545 = load i32, ptr %28, align 4, !tbaa !5
  %546 = sext i32 %545 to i64
  %547 = getelementptr inbounds [2020 x [2020 x i64]], ptr %544, i64 0, i64 %546
  %548 = getelementptr inbounds [2020 x i64], ptr %547, i64 0, i64 0
  %549 = load i64, ptr %548, align 16, !tbaa !11
  %550 = load i64, ptr %27, align 8, !tbaa !11
  %551 = add nsw i64 %550, %549
  store i64 %551, ptr %27, align 8, !tbaa !11
  br label %552

552:                                              ; preds = %540
  %553 = load i32, ptr %29, align 4, !tbaa !5
  %554 = add nsw i32 %553, 1
  store i32 %554, ptr %29, align 4, !tbaa !5
  br label %536, !llvm.loop !31

555:                                              ; preds = %539
  br label %556

556:                                              ; preds = %555, %534
  %557 = load i32, ptr %28, align 4, !tbaa !5
  %558 = add nsw i32 %557, 1
  store i32 %558, ptr %28, align 4, !tbaa !5
  br label %521, !llvm.loop !32

559:                                              ; preds = %526
  %560 = load i64, ptr %27, align 8, !tbaa !11
  %561 = load i64, ptr %10, align 8, !tbaa !11
  %562 = add nsw i64 %561, %560
  store i64 %562, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  store i64 0, ptr %30, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 1, ptr %31, align 4, !tbaa !5
  br label %563

563:                                              ; preds = %604, %559
  %564 = load i32, ptr %31, align 4, !tbaa !5
  %565 = load i32, ptr %2, align 4, !tbaa !5
  %566 = sub nsw i32 %565, 2
  %567 = icmp sle i32 %564, %566
  br i1 %567, label %569, label %568

568:                                              ; preds = %563
  store i32 53, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %607

569:                                              ; preds = %563
  %570 = load i32, ptr %31, align 4, !tbaa !5
  %571 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %570)
  %572 = load i32, ptr %3, align 4, !tbaa !5
  %573 = sub nsw i32 %572, 1
  %574 = sext i32 %573 to i64
  %575 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %571, i64 noundef %574) #7
  %576 = load i8, ptr %575, align 1, !tbaa !14
  %577 = sext i8 %576 to i32
  %578 = icmp ne i32 %577, 46
  br i1 %578, label %579, label %580

579:                                              ; preds = %569
  br label %604

580:                                              ; preds = %569
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %581

581:                                              ; preds = %600, %580
  %582 = load i32, ptr %32, align 4, !tbaa !5
  %583 = icmp sle i32 %582, 2
  br i1 %583, label %585, label %584

584:                                              ; preds = %581
  store i32 56, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %603

585:                                              ; preds = %581
  %586 = load i32, ptr %32, align 4, !tbaa !5
  %587 = sext i32 %586 to i64
  %588 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %587
  %589 = getelementptr inbounds [3 x [2020 x [2020 x i64]]], ptr %588, i64 0, i64 2
  %590 = load i32, ptr %31, align 4, !tbaa !5
  %591 = sext i32 %590 to i64
  %592 = getelementptr inbounds [2020 x [2020 x i64]], ptr %589, i64 0, i64 %591
  %593 = load i32, ptr %3, align 4, !tbaa !5
  %594 = sub nsw i32 %593, 1
  %595 = sext i32 %594 to i64
  %596 = getelementptr inbounds [2020 x i64], ptr %592, i64 0, i64 %595
  %597 = load i64, ptr %596, align 8, !tbaa !11
  %598 = load i64, ptr %30, align 8, !tbaa !11
  %599 = add nsw i64 %598, %597
  store i64 %599, ptr %30, align 8, !tbaa !11
  br label %600

600:                                              ; preds = %585
  %601 = load i32, ptr %32, align 4, !tbaa !5
  %602 = add nsw i32 %601, 1
  store i32 %602, ptr %32, align 4, !tbaa !5
  br label %581, !llvm.loop !33

603:                                              ; preds = %584
  br label %604

604:                                              ; preds = %603, %579
  %605 = load i32, ptr %31, align 4, !tbaa !5
  %606 = add nsw i32 %605, 1
  store i32 %606, ptr %31, align 4, !tbaa !5
  br label %563, !llvm.loop !34

607:                                              ; preds = %568
  %608 = load i64, ptr %30, align 8, !tbaa !11
  %609 = load i64, ptr %10, align 8, !tbaa !11
  %610 = add nsw i64 %609, %608
  store i64 %610, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  store i64 0, ptr %33, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  store i32 1, ptr %34, align 4, !tbaa !5
  br label %611

611:                                              ; preds = %670, %607
  %612 = load i32, ptr %34, align 4, !tbaa !5
  %613 = load i32, ptr %2, align 4, !tbaa !5
  %614 = sub nsw i32 %613, 2
  %615 = icmp sle i32 %612, %614
  br i1 %615, label %617, label %616

616:                                              ; preds = %611
  store i32 59, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %673

617:                                              ; preds = %611
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  store i32 1, ptr %35, align 4, !tbaa !5
  br label %618

618:                                              ; preds = %666, %617
  %619 = load i32, ptr %35, align 4, !tbaa !5
  %620 = load i32, ptr %3, align 4, !tbaa !5
  %621 = sub nsw i32 %620, 1
  %622 = icmp sle i32 %619, %621
  br i1 %622, label %624, label %623

623:                                              ; preds = %618
  store i32 62, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %669

624:                                              ; preds = %618
  %625 = load i32, ptr %34, align 4, !tbaa !5
  %626 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %625)
  %627 = load i32, ptr %35, align 4, !tbaa !5
  %628 = sext i32 %627 to i64
  %629 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %626, i64 noundef %628) #7
  %630 = load i8, ptr %629, align 1, !tbaa !14
  %631 = sext i8 %630 to i32
  %632 = icmp ne i32 %631, 46
  br i1 %632, label %633, label %634

633:                                              ; preds = %624
  br label %666

634:                                              ; preds = %624
  %635 = load i32, ptr %34, align 4, !tbaa !5
  %636 = sext i32 %635 to i64
  %637 = getelementptr inbounds [2020 x [2020 x i64]], ptr getelementptr inbounds ([3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 2), i64 0, i64 %636
  %638 = load i32, ptr %35, align 4, !tbaa !5
  %639 = sext i32 %638 to i64
  %640 = getelementptr inbounds [2020 x i64], ptr %637, i64 0, i64 %639
  %641 = load i64, ptr %640, align 8, !tbaa !11
  %642 = icmp eq i64 %641, 0
  br i1 %642, label %643, label %644

643:                                              ; preds = %634
  br label %666

644:                                              ; preds = %634
  %645 = load i32, ptr %34, align 4, !tbaa !5
  %646 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %645)
  %647 = load i32, ptr %35, align 4, !tbaa !5
  %648 = sub nsw i32 %647, 1
  %649 = sext i32 %648 to i64
  %650 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %646, i64 noundef %649) #7
  %651 = load i8, ptr %650, align 1, !tbaa !14
  %652 = sext i8 %651 to i32
  %653 = icmp eq i32 %652, 46
  br i1 %653, label %654, label %665

654:                                              ; preds = %644
  %655 = load i32, ptr %34, align 4, !tbaa !5
  %656 = sext i32 %655 to i64
  %657 = getelementptr inbounds [2020 x [2020 x i64]], ptr getelementptr inbounds ([3 x [2020 x [2020 x i64]]], ptr getelementptr inbounds ([3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 1), i64 0, i64 2), i64 0, i64 %656
  %658 = load i32, ptr %35, align 4, !tbaa !5
  %659 = sub nsw i32 %658, 1
  %660 = sext i32 %659 to i64
  %661 = getelementptr inbounds [2020 x i64], ptr %657, i64 0, i64 %660
  %662 = load i64, ptr %661, align 8, !tbaa !11
  %663 = load i64, ptr %33, align 8, !tbaa !11
  %664 = add nsw i64 %663, %662
  store i64 %664, ptr %33, align 8, !tbaa !11
  br label %665

665:                                              ; preds = %654, %644
  br label %666

666:                                              ; preds = %665, %643, %633
  %667 = load i32, ptr %35, align 4, !tbaa !5
  %668 = add nsw i32 %667, 1
  store i32 %668, ptr %35, align 4, !tbaa !5
  br label %618, !llvm.loop !35

669:                                              ; preds = %623
  br label %670

670:                                              ; preds = %669
  %671 = load i32, ptr %34, align 4, !tbaa !5
  %672 = add nsw i32 %671, 1
  store i32 %672, ptr %34, align 4, !tbaa !5
  br label %611, !llvm.loop !36

673:                                              ; preds = %616
  %674 = load i64, ptr %33, align 8, !tbaa !11
  %675 = load i64, ptr %9, align 8, !tbaa !11
  %676 = add nsw i64 %675, %674
  store i64 %676, ptr %9, align 8, !tbaa !11
  call void @_ZN5Board11rotateRightEv(ptr noundef nonnull align 8 dereferenceable(32) @board)
  %677 = call noundef i32 @_ZNK5Board6numRowEv(ptr noundef nonnull align 8 dereferenceable(32) @board)
  store i32 %677, ptr %2, align 4, !tbaa !5
  %678 = call noundef i32 @_ZNK5Board6numColEv(ptr noundef nonnull align 8 dereferenceable(32) @board)
  store i32 %678, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %679

679:                                              ; preds = %673
  %680 = load i32, ptr %11, align 4, !tbaa !5
  %681 = add nsw i32 %680, 1
  store i32 %681, ptr %11, align 4, !tbaa !5
  br label %63, !llvm.loop !37

682:                                              ; preds = %66
  %683 = load i64, ptr %9, align 8, !tbaa !11
  %684 = load i64, ptr %10, align 8, !tbaa !11
  %685 = sdiv i64 %684, 2
  %686 = add nsw i64 %683, %685
  %687 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %686)
  %688 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %687, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %689 = load i32, ptr %1, align 4
  ret i32 %689

690:                                              ; preds = %61
  %691 = load ptr, ptr %6, align 8
  %692 = load i32, ptr %7, align 4
  %693 = insertvalue { ptr, i32 } poison, ptr %691, 0
  %694 = insertvalue { ptr, i32 } %693, i32 %692, 1
  resume { ptr, i32 } %694
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Board4initEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Board6setRowEiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Board11rotateRightEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5Board6numRowEv(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5Board6numColEv(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}
!32 = distinct !{!32, !10}
!33 = distinct !{!33, !10}
!34 = distinct !{!34, !10}
!35 = distinct !{!35, !10}
!36 = distinct !{!36, !10}
!37 = distinct !{!37, !10}


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

%class.Board = type { i32, i32, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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] }

@board = external dso_local global %class.Board, align 8
@f = external dso_local local_unnamed_addr global [3 x [3 x [2020 x [2020 x i64]]]], align 16
@good = external dso_local local_unnamed_addr global [2020 x [2020 x i8]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z6isSideRK5Boardii(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %5 = 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)
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %7 = load i32, ptr %1, align 4, !tbaa !5
  call void @_ZN5Board4initEi(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %7)
  %8 = load i32, ptr %1, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph, label %.preheader214

.preheader214:                                    ; preds = %13, %0
  %.pre345.pre = load i32, ptr %2, align 4, !tbaa !5
  br label %.preheader213

.lr.ph:                                           ; preds = %0, %13
  %.0180216 = phi i32 [ %14, %13 ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  %10 = invoke 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) %3)
          to label %11 unwind label %17

11:                                               ; preds = %.lr.ph
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %12 unwind label %17

12:                                               ; preds = %11
  invoke void @_ZN5Board6setRowEiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %.0180216, ptr noundef nonnull %4)
          to label %13 unwind label %19

13:                                               ; preds = %12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  %14 = add nuw nsw i32 %.0180216, 1
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = icmp slt i32 %14, %15
  br i1 %16, label %.lr.ph, label %.preheader214, !llvm.loop !9

17:                                               ; preds = %11, %.lr.ph
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %21

19:                                               ; preds = %12
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  br label %21

21:                                               ; preds = %19, %17
  %.pn = phi { ptr, i32 } [ %20, %19 ], [ %18, %17 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn

.preheader213:                                    ; preds = %.preheader214, %._crit_edge277
  %.pre345 = phi i32 [ %.pre345.pre, %.preheader214 ], [ %238, %._crit_edge277 ]
  %.0175281 = phi i32 [ 0, %.preheader214 ], [ %239, %._crit_edge277 ]
  %.0176280 = phi i64 [ 0, %.preheader214 ], [ %235, %._crit_edge277 ]
  %.0177279 = phi i64 [ 0, %.preheader214 ], [ %236, %._crit_edge277 ]
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(293788800) @f, i8 0, i64 293788800, i1 false)
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.preheader209, label %.preheader212

24:                                               ; preds = %._crit_edge277
  %25 = sdiv i64 %235, 2
  %26 = add nsw i64 %25, %236
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %26)
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

.preheader212:                                    ; preds = %._crit_edge, %.preheader213
  %29 = phi i32 [ %22, %.preheader213 ], [ %35, %._crit_edge ]
  %30 = phi i32 [ %.pre345, %.preheader213 ], [ %36, %._crit_edge ]
  %.not220 = icmp slt i32 %30, 3
  br i1 %.not220, label %.preheader211, label %.lr.ph222

.preheader209:                                    ; preds = %.preheader213, %._crit_edge
  %31 = phi i32 [ %35, %._crit_edge ], [ %22, %.preheader213 ]
  %32 = phi i32 [ %36, %._crit_edge ], [ %.pre345, %.preheader213 ]
  %indvars.iv287 = phi i64 [ %indvars.iv.next288, %._crit_edge ], [ 0, %.preheader213 ]
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph218, label %._crit_edge

.lr.ph218:                                        ; preds = %.preheader209
  %34 = trunc nuw nsw i64 %indvars.iv287 to i32
  br label %39

._crit_edge.loopexit:                             ; preds = %47
  %.pre344 = load i32, ptr %1, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader209
  %35 = phi i32 [ %.pre344, %._crit_edge.loopexit ], [ %31, %.preheader209 ]
  %36 = phi i32 [ %51, %._crit_edge.loopexit ], [ %32, %.preheader209 ]
  %indvars.iv.next288 = add nuw nsw i64 %indvars.iv287, 1
  %37 = sext i32 %35 to i64
  %38 = icmp slt i64 %indvars.iv.next288, %37
  br i1 %38, label %.preheader209, label %.preheader212, !llvm.loop !11

39:                                               ; preds = %.lr.ph218, %47
  %indvars.iv = phi i64 [ 0, %.lr.ph218 ], [ %indvars.iv.next, %47 ]
  %40 = trunc nuw nsw i64 %indvars.iv to i32
  %41 = call noundef zeroext i1 @_Z6isSideRK5Boardii(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %34, i32 noundef %40)
  br i1 %41, label %47, label %42

42:                                               ; preds = %39
  %43 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %34)
  %44 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %43, i64 noundef %indvars.iv) #7
  %45 = load i8, ptr %44, align 1, !tbaa !12
  %46 = icmp eq i8 %45, 46
  br label %47

47:                                               ; preds = %42, %39
  %48 = phi i1 [ false, %39 ], [ %46, %42 ]
  %49 = getelementptr inbounds [2020 x [2020 x i8]], ptr @good, i64 0, i64 %indvars.iv287, i64 %indvars.iv
  %50 = zext i1 %48 to i8
  store i8 %50, ptr %49, align 1, !tbaa !13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = icmp slt i64 %indvars.iv.next, %52
  br i1 %53, label %39, label %._crit_edge.loopexit, !llvm.loop !15

.preheader211.loopexit:                           ; preds = %63
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  br label %.preheader211

.preheader211:                                    ; preds = %.preheader211.loopexit, %.preheader212
  %54 = phi i32 [ %64, %.preheader211.loopexit ], [ %30, %.preheader212 ]
  %55 = phi i32 [ %.pre, %.preheader211.loopexit ], [ %29, %.preheader212 ]
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.preheader208, label %.preheader210

.lr.ph222:                                        ; preds = %.preheader212, %63
  %indvars.iv290 = phi i64 [ %indvars.iv.next291, %63 ], [ 1, %.preheader212 ]
  %57 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef 0)
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %57, i64 noundef %indvars.iv290) #7
  %59 = load i8, ptr %58, align 1, !tbaa !12
  %60 = icmp eq i8 %59, 46
  br i1 %60, label %61, label %63

61:                                               ; preds = %.lr.ph222
  %62 = getelementptr inbounds [2020 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 195859200), i64 0, i64 %indvars.iv290
  store i64 1, ptr %62, align 8, !tbaa !16
  br label %63

63:                                               ; preds = %.lr.ph222, %61
  %indvars.iv.next291 = add nuw nsw i64 %indvars.iv290, 1
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = add nsw i32 %64, -2
  %66 = sext i32 %65 to i64
  %.not.not = icmp slt i64 %indvars.iv290, %66
  br i1 %.not.not, label %.lr.ph222, label %.preheader211.loopexit, !llvm.loop !18

.preheader210:                                    ; preds = %71, %.preheader211
  %67 = phi i32 [ %55, %.preheader211 ], [ %72, %71 ]
  %68 = phi i32 [ %54, %.preheader211 ], [ %144, %71 ]
  %.not187245 = icmp slt i32 %68, 3
  br i1 %.not187245, label %._crit_edge249, label %.lr.ph248

.preheader208:                                    ; preds = %.preheader211, %71
  %69 = phi i32 [ %144, %71 ], [ %54, %.preheader211 ]
  %indvars.iv313 = phi i64 [ %indvars.iv.next314, %71 ], [ 0, %.preheader211 ]
  %indvars.iv.next314 = add nuw nsw i64 %indvars.iv313, 1
  %70 = trunc nuw nsw i64 %indvars.iv313 to i32
  br label %75

71:                                               ; preds = %._crit_edge239
  %72 = load i32, ptr %1, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = icmp slt i64 %indvars.iv.next314, %73
  br i1 %74, label %.preheader208, label %.preheader210, !llvm.loop !19

75:                                               ; preds = %.preheader208, %._crit_edge239
  %76 = phi i32 [ %69, %.preheader208 ], [ %144, %._crit_edge239 ]
  %indvars.iv310 = phi i64 [ 2, %.preheader208 ], [ %indvars.iv.next311.pre-phi, %._crit_edge239 ]
  %.not196 = icmp eq i64 %indvars.iv310, 0
  br i1 %.not196, label %.critedge, label %.preheader201

.preheader201:                                    ; preds = %75
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %.lr.ph224, label %.preheader.._crit_edge239_crit_edge

.lr.ph224:                                        ; preds = %.preheader201
  %78 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %indvars.iv310
  %79 = add nsw i64 %indvars.iv310, -1
  %80 = zext nneg i32 %76 to i64
  %wide.trip.count = zext nneg i32 %76 to i64
  br label %81

81:                                               ; preds = %.lr.ph224, %._crit_edge350
  %indvars.iv293 = phi i64 [ 0, %.lr.ph224 ], [ %85, %._crit_edge350 ]
  %82 = getelementptr inbounds [2020 x [2020 x i8]], ptr @good, i64 0, i64 %indvars.iv313, i64 %indvars.iv293
  %83 = load i8, ptr %82, align 1, !tbaa !13, !range !20, !noundef !21
  %84 = trunc nuw i8 %83 to i1
  %85 = add nuw nsw i64 %indvars.iv293, 1
  %86 = icmp ult i64 %85, %80
  %or.cond371 = select i1 %84, i1 %86, i1 false
  br i1 %or.cond371, label %87, label %._crit_edge350

87:                                               ; preds = %81
  %88 = getelementptr inbounds [2020 x [2020 x i64]], ptr %78, i64 0, i64 %indvars.iv313, i64 %indvars.iv293
  %89 = load i64, ptr %88, align 8, !tbaa !16
  %90 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %79, i64 2, i64 %indvars.iv313, i64 %85
  %91 = load i64, ptr %90, align 8, !tbaa !16
  %92 = add nsw i64 %91, %89
  store i64 %92, ptr %90, align 8, !tbaa !16
  br label %._crit_edge350

._crit_edge350:                                   ; preds = %81, %87
  %exitcond.not = icmp eq i64 %85, %wide.trip.count
  br i1 %exitcond.not, label %.preheader200, label %81, !llvm.loop !22

.preheader200:                                    ; preds = %._crit_edge350
  br i1 %77, label %.lr.ph229, label %.preheader.._crit_edge239_crit_edge

.lr.ph229:                                        ; preds = %.preheader200
  %93 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %indvars.iv310
  %94 = add nsw i64 %indvars.iv310, -1
  %95 = zext nneg i32 %76 to i64
  br label %96

96:                                               ; preds = %.lr.ph229, %108
  %indvars.iv296 = phi i64 [ %95, %.lr.ph229 ], [ %indvars.iv.next297, %108 ]
  %indvars.iv.next297 = add nsw i64 %indvars.iv296, -1
  %97 = getelementptr inbounds [2020 x [2020 x i8]], ptr @good, i64 0, i64 %indvars.iv313, i64 %indvars.iv.next297
  %98 = load i8, ptr %97, align 1, !tbaa !13, !range !20, !noundef !21
  %99 = trunc nuw i8 %98 to i1
  %100 = icmp ne i64 %indvars.iv296, 1
  %or.cond = and i1 %100, %99
  br i1 %or.cond, label %101, label %108

101:                                              ; preds = %96
  %102 = getelementptr inbounds [2020 x [2020 x i64]], ptr %93, i64 0, i64 %indvars.iv313, i64 %indvars.iv.next297
  %103 = load i64, ptr %102, align 8, !tbaa !16
  %104 = add nsw i64 %indvars.iv296, -2
  %105 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %94, i64 1, i64 %indvars.iv313, i64 %104
  %106 = load i64, ptr %105, align 8, !tbaa !16
  %107 = add nsw i64 %106, %103
  store i64 %107, ptr %105, align 8, !tbaa !16
  br label %108

108:                                              ; preds = %101, %96
  %109 = icmp ugt i64 %indvars.iv296, 1
  br i1 %109, label %96, label %.critedge, !llvm.loop !23

.critedge:                                        ; preds = %108, %75
  %110 = icmp sgt i32 %76, 0
  br i1 %110, label %.lr.ph231, label %.preheader.._crit_edge239_crit_edge

.lr.ph231:                                        ; preds = %.critedge
  %111 = zext nneg i32 %76 to i64
  %wide.trip.count302 = zext nneg i32 %76 to i64
  br label %113

.preheader199:                                    ; preds = %._crit_edge351
  br i1 %110, label %.lr.ph236, label %.preheader.._crit_edge239_crit_edge

.lr.ph236:                                        ; preds = %.preheader199
  %112 = zext nneg i32 %76 to i64
  br label %130

113:                                              ; preds = %.lr.ph231, %._crit_edge351
  %indvars.iv299 = phi i64 [ 0, %.lr.ph231 ], [ %117, %._crit_edge351 ]
  %114 = getelementptr inbounds [2020 x [2020 x i8]], ptr @good, i64 0, i64 %indvars.iv313, i64 %indvars.iv299
  %115 = load i8, ptr %114, align 1, !tbaa !13, !range !20, !noundef !21
  %116 = trunc nuw i8 %115 to i1
  %117 = add nuw nsw i64 %indvars.iv299, 1
  %118 = icmp ult i64 %117, %111
  %or.cond372 = select i1 %116, i1 %118, i1 false
  br i1 %or.cond372, label %119, label %._crit_edge351

119:                                              ; preds = %113
  %120 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %indvars.iv310, i64 2, i64 %indvars.iv313, i64 %indvars.iv299
  %121 = load i64, ptr %120, align 8, !tbaa !16
  %122 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %indvars.iv310, i64 2, i64 %indvars.iv313, i64 %117
  %123 = load i64, ptr %122, align 8, !tbaa !16
  %124 = add nsw i64 %123, %121
  store i64 %124, ptr %122, align 8, !tbaa !16
  br label %._crit_edge351

._crit_edge351:                                   ; preds = %113, %119
  %exitcond303.not = icmp eq i64 %117, %wide.trip.count302
  br i1 %exitcond303.not, label %.preheader199, label %113, !llvm.loop !24

.preheader:                                       ; preds = %142
  br i1 %110, label %.lr.ph238, label %.preheader.._crit_edge239_crit_edge

.preheader.._crit_edge239_crit_edge:              ; preds = %.critedge, %.preheader201, %.preheader200, %.preheader199, %.preheader
  %.pre353 = add nsw i64 %indvars.iv310, -1
  br label %._crit_edge239

.lr.ph238:                                        ; preds = %.preheader
  %125 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %indvars.iv310
  %126 = getelementptr inbounds i8, ptr %125, i64 65286400
  %127 = add nsw i64 %indvars.iv310, -1
  %128 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %127
  %129 = getelementptr inbounds i8, ptr %125, i64 32643200
  br label %145

130:                                              ; preds = %.lr.ph236, %142
  %indvars.iv304 = phi i64 [ %112, %.lr.ph236 ], [ %indvars.iv.next305, %142 ]
  %indvars.iv.next305 = add nsw i64 %indvars.iv304, -1
  %131 = getelementptr inbounds [2020 x [2020 x i8]], ptr @good, i64 0, i64 %indvars.iv313, i64 %indvars.iv.next305
  %132 = load i8, ptr %131, align 1, !tbaa !13, !range !20, !noundef !21
  %133 = trunc nuw i8 %132 to i1
  %134 = icmp ne i64 %indvars.iv304, 1
  %or.cond3 = and i1 %134, %133
  br i1 %or.cond3, label %135, label %142

135:                                              ; preds = %130
  %136 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %indvars.iv310, i64 1, i64 %indvars.iv313, i64 %indvars.iv.next305
  %137 = load i64, ptr %136, align 8, !tbaa !16
  %138 = add nsw i64 %indvars.iv304, -2
  %139 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 %indvars.iv310, i64 1, i64 %indvars.iv313, i64 %138
  %140 = load i64, ptr %139, align 8, !tbaa !16
  %141 = add nsw i64 %140, %137
  store i64 %141, ptr %139, align 8, !tbaa !16
  br label %142

142:                                              ; preds = %135, %130
  %143 = icmp ugt i64 %indvars.iv304, 1
  br i1 %143, label %130, label %.preheader, !llvm.loop !25

._crit_edge239:                                   ; preds = %169, %.preheader.._crit_edge239_crit_edge
  %indvars.iv.next311.pre-phi = phi i64 [ %.pre353, %.preheader.._crit_edge239_crit_edge ], [ %127, %169 ]
  %144 = phi i32 [ %76, %.preheader.._crit_edge239_crit_edge ], [ %170, %169 ]
  %.not = icmp eq i64 %indvars.iv310, 0
  br i1 %.not, label %71, label %75, !llvm.loop !26

145:                                              ; preds = %.lr.ph238, %169
  %indvars.iv307 = phi i64 [ 0, %.lr.ph238 ], [ %indvars.iv.next308, %169 ]
  %146 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %70)
  %147 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %146, i64 noundef %indvars.iv307) #7
  %148 = load i8, ptr %147, align 1, !tbaa !12
  %.not197 = icmp eq i8 %148, 46
  br i1 %.not197, label %149, label %169

149:                                              ; preds = %145
  %150 = load i32, ptr %1, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = icmp slt i64 %indvars.iv.next314, %151
  br i1 %152, label %153, label %159

153:                                              ; preds = %149
  %154 = getelementptr inbounds [2020 x [2020 x i64]], ptr %125, i64 0, i64 %indvars.iv313, i64 %indvars.iv307
  %155 = load i64, ptr %154, align 8, !tbaa !16
  %156 = getelementptr inbounds [2020 x [2020 x i64]], ptr %125, i64 0, i64 %indvars.iv.next314, i64 %indvars.iv307
  %157 = load i64, ptr %156, align 8, !tbaa !16
  %158 = add nsw i64 %157, %155
  store i64 %158, ptr %156, align 8, !tbaa !16
  br label %159

159:                                              ; preds = %153, %149
  br i1 %.not196, label %169, label %160

160:                                              ; preds = %159
  %161 = getelementptr inbounds [2020 x [2020 x i64]], ptr %126, i64 0, i64 %indvars.iv313, i64 %indvars.iv307
  %162 = load i64, ptr %161, align 8, !tbaa !16
  %163 = getelementptr inbounds [2020 x [2020 x i64]], ptr %128, i64 0, i64 %indvars.iv.next314, i64 %indvars.iv307
  %164 = load i64, ptr %163, align 8, !tbaa !16
  %165 = add nsw i64 %164, %162
  %166 = getelementptr inbounds [2020 x [2020 x i64]], ptr %129, i64 0, i64 %indvars.iv313, i64 %indvars.iv307
  %167 = load i64, ptr %166, align 8, !tbaa !16
  %168 = add nsw i64 %167, %165
  store i64 %168, ptr %163, align 8, !tbaa !16
  br label %169

169:                                              ; preds = %159, %160, %145
  %indvars.iv.next308 = add nuw nsw i64 %indvars.iv307, 1
  %170 = load i32, ptr %2, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = icmp slt i64 %indvars.iv.next308, %171
  br i1 %172, label %145, label %._crit_edge239, !llvm.loop !27

._crit_edge249.loopexit:                          ; preds = %.loopexit207
  %.pre346 = load i32, ptr %1, align 4, !tbaa !5
  br label %._crit_edge249

._crit_edge249:                                   ; preds = %._crit_edge249.loopexit, %.preheader210
  %173 = phi i32 [ %67, %.preheader210 ], [ %.pre346, %._crit_edge249.loopexit ]
  %.0161.lcssa = phi i64 [ 0, %.preheader210 ], [ %.2163, %._crit_edge249.loopexit ]
  %174 = add nsw i64 %.0161.lcssa, %.0176280
  %.not188252 = icmp slt i32 %173, 3
  br i1 %.not188252, label %._crit_edge277, label %.lr.ph256

.lr.ph248:                                        ; preds = %.preheader210, %.loopexit207
  %indvars.iv320 = phi i64 [ %indvars.iv.next321, %.loopexit207 ], [ 1, %.preheader210 ]
  %.0161246 = phi i64 [ %.2163, %.loopexit207 ], [ 0, %.preheader210 ]
  %175 = load i32, ptr %1, align 4, !tbaa !5
  %176 = add nsw i32 %175, -1
  %177 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %176)
  %178 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %177, i64 noundef %indvars.iv320) #7
  %179 = load i8, ptr %178, align 1, !tbaa !12
  %.not195 = icmp eq i8 %179, 46
  br i1 %.not195, label %.preheader206, label %.loopexit207

.preheader206:                                    ; preds = %.lr.ph248
  %180 = load i32, ptr %1, align 4, !tbaa !5
  %181 = add nsw i32 %180, -1
  %182 = sext i32 %181 to i64
  %invariant.gep = getelementptr [2020 x [2020 x i64]], ptr @f, i64 0, i64 %182, i64 %indvars.iv320
  %183 = load i64, ptr %invariant.gep, align 8, !tbaa !16
  %184 = add nsw i64 %183, %.0161246
  %gep.1 = getelementptr i8, ptr %invariant.gep, i64 97929600
  %185 = load i64, ptr %gep.1, align 8, !tbaa !16
  %186 = add nsw i64 %185, %184
  %gep.2 = getelementptr i8, ptr %invariant.gep, i64 195859200
  %187 = load i64, ptr %gep.2, align 8, !tbaa !16
  %188 = add nsw i64 %187, %186
  br label %.loopexit207

.loopexit207:                                     ; preds = %.preheader206, %.lr.ph248
  %.2163 = phi i64 [ %.0161246, %.lr.ph248 ], [ %188, %.preheader206 ]
  %indvars.iv.next321 = add nuw nsw i64 %indvars.iv320, 1
  %189 = load i32, ptr %2, align 4, !tbaa !5
  %190 = add nsw i32 %189, -2
  %191 = sext i32 %190 to i64
  %.not187.not = icmp slt i64 %indvars.iv320, %191
  br i1 %.not187.not, label %.lr.ph248, label %._crit_edge249.loopexit, !llvm.loop !28

._crit_edge257:                                   ; preds = %.loopexit205
  %192 = add nsw i64 %174, %.2158
  %.not189261 = icmp slt i32 %206, 3
  br i1 %.not189261, label %._crit_edge277, label %.lr.ph265

.lr.ph256:                                        ; preds = %._crit_edge249, %.loopexit205
  %indvars.iv327 = phi i64 [ %indvars.iv.next328, %.loopexit205 ], [ 1, %._crit_edge249 ]
  %.0156253 = phi i64 [ %.2158, %.loopexit205 ], [ 0, %._crit_edge249 ]
  %193 = trunc nuw nsw i64 %indvars.iv327 to i32
  %194 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %193)
  %195 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %194, i64 noundef 0) #7
  %196 = load i8, ptr %195, align 1, !tbaa !12
  %.not194 = icmp eq i8 %196, 46
  br i1 %.not194, label %.preheader204, label %.loopexit205

.preheader204:                                    ; preds = %.lr.ph256
  %197 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 0, i64 1, i64 %indvars.iv327
  %198 = load i64, ptr %197, align 16, !tbaa !16
  %199 = add nsw i64 %198, %.0156253
  %200 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 1, i64 1, i64 %indvars.iv327
  %201 = load i64, ptr %200, align 16, !tbaa !16
  %202 = add nsw i64 %201, %199
  %203 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 2, i64 1, i64 %indvars.iv327
  %204 = load i64, ptr %203, align 16, !tbaa !16
  %205 = add nsw i64 %204, %202
  br label %.loopexit205

.loopexit205:                                     ; preds = %.preheader204, %.lr.ph256
  %.2158 = phi i64 [ %.0156253, %.lr.ph256 ], [ %205, %.preheader204 ]
  %indvars.iv.next328 = add nuw nsw i64 %indvars.iv327, 1
  %206 = load i32, ptr %1, align 4, !tbaa !5
  %207 = add nsw i32 %206, -2
  %208 = sext i32 %207 to i64
  %.not188.not = icmp slt i64 %indvars.iv327, %208
  br i1 %.not188.not, label %.lr.ph256, label %._crit_edge257, !llvm.loop !29

._crit_edge266:                                   ; preds = %.loopexit
  %209 = add nsw i64 %192, %.2153
  %.not190274 = icmp slt i32 %229, 3
  br i1 %.not190274, label %._crit_edge277, label %.preheader202.preheader

.preheader202.preheader:                          ; preds = %._crit_edge266
  %.pre347 = load i32, ptr %2, align 4, !tbaa !5
  br label %.preheader202

.lr.ph265:                                        ; preds = %._crit_edge257, %.loopexit
  %indvars.iv334 = phi i64 [ %indvars.iv.next335, %.loopexit ], [ 1, %._crit_edge257 ]
  %.0151262 = phi i64 [ %.2153, %.loopexit ], [ 0, %._crit_edge257 ]
  %210 = trunc nuw nsw i64 %indvars.iv334 to i32
  %211 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %210)
  %212 = load i32, ptr %2, align 4, !tbaa !5
  %213 = add nsw i32 %212, -1
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %211, i64 noundef %214) #7
  %216 = load i8, ptr %215, align 1, !tbaa !12
  %.not193 = icmp eq i8 %216, 46
  br i1 %.not193, label %.preheader203, label %.loopexit

.preheader203:                                    ; preds = %.lr.ph265
  %217 = load i32, ptr %2, align 4, !tbaa !5
  %218 = add nsw i32 %217, -1
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 0, i64 2, i64 %indvars.iv334, i64 %219
  %221 = load i64, ptr %220, align 8, !tbaa !16
  %222 = add nsw i64 %221, %.0151262
  %223 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 1, i64 2, i64 %indvars.iv334, i64 %219
  %224 = load i64, ptr %223, align 8, !tbaa !16
  %225 = add nsw i64 %224, %222
  %226 = getelementptr inbounds [3 x [3 x [2020 x [2020 x i64]]]], ptr @f, i64 0, i64 2, i64 2, i64 %indvars.iv334, i64 %219
  %227 = load i64, ptr %226, align 8, !tbaa !16
  %228 = add nsw i64 %227, %225
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader203, %.lr.ph265
  %.2153 = phi i64 [ %.0151262, %.lr.ph265 ], [ %228, %.preheader203 ]
  %indvars.iv.next335 = add nuw nsw i64 %indvars.iv334, 1
  %229 = load i32, ptr %1, align 4, !tbaa !5
  %230 = add nsw i32 %229, -2
  %231 = sext i32 %230 to i64
  %.not189.not = icmp slt i64 %indvars.iv334, %231
  br i1 %.not189.not, label %.lr.ph265, label %._crit_edge266, !llvm.loop !30

.preheader202:                                    ; preds = %.preheader202.preheader, %._crit_edge272
  %232 = phi i32 [ %229, %.preheader202.preheader ], [ %240, %._crit_edge272 ]
  %233 = phi i32 [ %.pre347, %.preheader202.preheader ], [ %241, %._crit_edge272 ]
  %indvars.iv340 = phi i64 [ 1, %.preheader202.preheader ], [ %indvars.iv.next341, %._crit_edge272 ]
  %.0148275 = phi i64 [ 0, %.preheader202.preheader ], [ %.1.lcssa, %._crit_edge272 ]
  %.not191.not268 = icmp sgt i32 %233, 1
  br i1 %.not191.not268, label %.lr.ph271, label %._crit_edge272

.lr.ph271:                                        ; preds = %.preheader202
  %234 = trunc nuw nsw i64 %indvars.iv340 to i32
  br label %244

._crit_edge277:                                   ; preds = %._crit_edge272, %._crit_edge249, %._crit_edge257, %._crit_edge266
  %235 = phi i64 [ %209, %._crit_edge266 ], [ %192, %._crit_edge257 ], [ %174, %._crit_edge249 ], [ %209, %._crit_edge272 ]
  %.0148.lcssa = phi i64 [ 0, %._crit_edge266 ], [ 0, %._crit_edge257 ], [ 0, %._crit_edge249 ], [ %.1.lcssa, %._crit_edge272 ]
  %236 = add nsw i64 %.0148.lcssa, %.0177279
  call void @_ZN5Board11rotateRightEv(ptr noundef nonnull align 8 dereferenceable(32) @board)
  %237 = call noundef i32 @_ZNK5Board6numRowEv(ptr noundef nonnull align 8 dereferenceable(32) @board)
  store i32 %237, ptr %1, align 4, !tbaa !5
  %238 = call noundef i32 @_ZNK5Board6numColEv(ptr noundef nonnull align 8 dereferenceable(32) @board)
  store i32 %238, ptr %2, align 4, !tbaa !5
  %239 = add nuw nsw i32 %.0175281, 1
  %exitcond343.not = icmp eq i32 %239, 4
  br i1 %exitcond343.not, label %24, label %.preheader213, !llvm.loop !31

._crit_edge272.loopexit:                          ; preds = %262
  %.pre348 = load i32, ptr %1, align 4, !tbaa !5
  br label %._crit_edge272

._crit_edge272:                                   ; preds = %._crit_edge272.loopexit, %.preheader202
  %240 = phi i32 [ %232, %.preheader202 ], [ %.pre348, %._crit_edge272.loopexit ]
  %241 = phi i32 [ %233, %.preheader202 ], [ %263, %._crit_edge272.loopexit ]
  %.1.lcssa = phi i64 [ %.0148275, %.preheader202 ], [ %.2, %._crit_edge272.loopexit ]
  %indvars.iv.next341 = add nuw nsw i64 %indvars.iv340, 1
  %242 = add nsw i32 %240, -2
  %243 = sext i32 %242 to i64
  %.not190.not = icmp slt i64 %indvars.iv340, %243
  br i1 %.not190.not, label %.preheader202, label %._crit_edge277, !llvm.loop !32

244:                                              ; preds = %.lr.ph271, %262
  %indvars.iv337 = phi i64 [ 1, %.lr.ph271 ], [ %indvars.iv.next338, %262 ]
  %.1269 = phi i64 [ %.0148275, %.lr.ph271 ], [ %.2, %262 ]
  %245 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %234)
  %246 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %245, i64 noundef %indvars.iv337) #7
  %247 = load i8, ptr %246, align 1, !tbaa !12
  %.not192 = icmp eq i8 %247, 46
  br i1 %.not192, label %248, label %262

248:                                              ; preds = %244
  %249 = getelementptr inbounds [2020 x [2020 x i64]], ptr getelementptr inbounds (i8, ptr @f, i64 195859200), i64 0, i64 %indvars.iv340, i64 %indvars.iv337
  %250 = load i64, ptr %249, align 8, !tbaa !16
  %251 = icmp eq i64 %250, 0
  br i1 %251, label %262, label %252

252:                                              ; preds = %248
  %253 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32) @board, i32 noundef %234)
  %254 = add nsw i64 %indvars.iv337, -1
  %255 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %253, i64 noundef %254) #7
  %256 = load i8, ptr %255, align 1, !tbaa !12
  %257 = icmp eq i8 %256, 46
  br i1 %257, label %258, label %262

258:                                              ; preds = %252
  %259 = getelementptr inbounds [2020 x [2020 x i64]], ptr getelementptr inbounds (i8, ptr @f, i64 163216000), i64 0, i64 %indvars.iv340, i64 %254
  %260 = load i64, ptr %259, align 8, !tbaa !16
  %261 = add nsw i64 %260, %.1269
  br label %262

262:                                              ; preds = %252, %258, %248, %244
  %.2 = phi i64 [ %.1269, %244 ], [ %.1269, %248 ], [ %261, %258 ], [ %.1269, %252 ]
  %indvars.iv.next338 = add nuw nsw i64 %indvars.iv337, 1
  %263 = load i32, ptr %2, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %.not191.not = icmp slt i64 %indvars.iv.next338, %264
  br i1 %.not191.not, label %244, label %._crit_edge272.loopexit, !llvm.loop !33
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Board4initEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Board6setRowEiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5BoardixB5cxx11Ei(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Board11rotateRightEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5Board6numRowEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5Board6numColEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = !{!17, !17, i64 0}
!17 = !{!"long long", !7, i64 0}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}
!32 = distinct !{!32, !10}
!33 = distinct !{!33, !10}


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