; LLVM IR from ahr9n/psolving-paradigms :: 1.brute-force/1.1.iterative-brute-force (CodeForces 38B - Chess)

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

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

@dx = external dso_local global [2 x i32], align 4
@dy = external dso_local global [2 x i32], align 4
@sx = external dso_local global [4 x i32], align 16
@sy = external dso_local global [4 x i32], align 16
@chess = external dso_local global [8 x [8 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 norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %class.anon, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %class.anon.0, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %18 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %19 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %20 = getelementptr i8, ptr %19, i64 -24
  %21 = load i64, ptr %20, align 8
  %22 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %21
  %23 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %22, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  %24 = 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) %2)
          to label %25 unwind label %46

25:                                               ; preds = %0
  %26 = 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) %24, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %27 unwind label %46

27:                                               ; preds = %25
  call void @llvm.memset.p0.i64(ptr align 16 @chess, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #7
  %28 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 0)
          to label %29 unwind label %50

29:                                               ; preds = %27
  %30 = load i8, ptr %28, align 1, !tbaa !8
  %31 = sext i8 %30 to i32
  %32 = sub nsw i32 %31, 97
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %33
  %35 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 1)
          to label %36 unwind label %50

36:                                               ; preds = %29
  %37 = load i8, ptr %35, align 1, !tbaa !8
  %38 = sext i8 %37 to i32
  %39 = sub nsw i32 %38, 49
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [8 x i8], ptr %34, i64 0, i64 %40
  store i8 1, ptr %41, align 1, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %42

42:                                               ; preds = %115, %36
  %43 = load i32, ptr %7, align 4, !tbaa !12
  %44 = icmp slt i32 %43, 2
  br i1 %44, label %54, label %45

45:                                               ; preds = %42
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %118

46:                                               ; preds = %25, %0
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %4, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %5, align 4
  br label %232

50:                                               ; preds = %120, %118, %29, %27
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %4, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %5, align 4
  br label %231

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

55:                                               ; preds = %110, %54
  %56 = load i32, ptr %9, align 4, !tbaa !12
  %57 = icmp slt i32 %56, 4
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %114

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %60 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 0)
          to label %61 unwind label %101

61:                                               ; preds = %59
  %62 = load i8, ptr %60, align 1, !tbaa !8
  %63 = sext i8 %62 to i32
  %64 = sub nsw i32 %63, 97
  %65 = load i32, ptr %7, align 4, !tbaa !12
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [2 x i32], ptr @dx, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !12
  %69 = load i32, ptr %9, align 4, !tbaa !12
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [4 x i32], ptr @sx, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !12
  %73 = mul nsw i32 %68, %72
  %74 = add nsw i32 %64, %73
  store i32 %74, ptr %10, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %75 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 1)
          to label %76 unwind label %105

76:                                               ; preds = %61
  %77 = load i8, ptr %75, align 1, !tbaa !8
  %78 = sext i8 %77 to i32
  %79 = sub nsw i32 %78, 49
  %80 = load i32, ptr %7, align 4, !tbaa !12
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [2 x i32], ptr @dy, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !12
  %84 = load i32, ptr %9, align 4, !tbaa !12
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [4 x i32], ptr @sy, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !12
  %88 = mul nsw i32 %83, %87
  %89 = add nsw i32 %79, %88
  store i32 %89, ptr %11, align 4, !tbaa !12
  %90 = load i32, ptr %10, align 4, !tbaa !12
  %91 = load i32, ptr %11, align 4, !tbaa !12
  %92 = invoke noundef zeroext i1 @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef %90, i32 noundef %91)
          to label %93 unwind label %105

93:                                               ; preds = %76
  br i1 %92, label %94, label %109

94:                                               ; preds = %93
  %95 = load i32, ptr %10, align 4, !tbaa !12
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %96
  %98 = load i32, ptr %11, align 4, !tbaa !12
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [8 x i8], ptr %97, i64 0, i64 %99
  store i8 1, ptr %100, align 1, !tbaa !10
  br label %109

101:                                              ; preds = %59
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %4, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %5, align 4
  br label %113

105:                                              ; preds = %76, %61
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %4, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %113

109:                                              ; preds = %94, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %9, align 4, !tbaa !12
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %9, align 4, !tbaa !12
  br label %55, !llvm.loop !14

113:                                              ; preds = %105, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %231

114:                                              ; preds = %58
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %7, align 4, !tbaa !12
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %7, align 4, !tbaa !12
  br label %42, !llvm.loop !16

118:                                              ; preds = %45
  %119 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
          to label %120 unwind label %50

120:                                              ; preds = %118
  %121 = load i8, ptr %119, align 1, !tbaa !8
  %122 = sext i8 %121 to i32
  %123 = sub nsw i32 %122, 97
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %124
  %126 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 1)
          to label %127 unwind label %50

127:                                              ; preds = %120
  %128 = load i8, ptr %126, align 1, !tbaa !8
  %129 = sext i8 %128 to i32
  %130 = sub nsw i32 %129, 49
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [8 x i8], ptr %125, i64 0, i64 %131
  store i8 1, ptr %132, align 1, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !12
  br label %133

133:                                              ; preds = %148, %127
  %134 = load i32, ptr %12, align 4, !tbaa !12
  %135 = icmp slt i32 %134, 8
  br i1 %135, label %137, label %136

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

137:                                              ; preds = %133
  %138 = load i32, ptr %12, align 4, !tbaa !12
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %139
  %141 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 1)
          to label %142 unwind label %151

142:                                              ; preds = %137
  %143 = load i8, ptr %141, align 1, !tbaa !8
  %144 = sext i8 %143 to i32
  %145 = sub nsw i32 %144, 49
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [8 x i8], ptr %140, i64 0, i64 %146
  store i8 1, ptr %147, align 1, !tbaa !10
  br label %148

148:                                              ; preds = %142
  %149 = load i32, ptr %12, align 4, !tbaa !12
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %12, align 4, !tbaa !12
  br label %133, !llvm.loop !17

151:                                              ; preds = %137
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %4, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %231

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

156:                                              ; preds = %171, %155
  %157 = load i32, ptr %13, align 4, !tbaa !12
  %158 = icmp slt i32 %157, 8
  br i1 %158, label %160, label %159

159:                                              ; preds = %156
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %178

160:                                              ; preds = %156
  %161 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
          to label %162 unwind label %174

162:                                              ; preds = %160
  %163 = load i8, ptr %161, align 1, !tbaa !8
  %164 = sext i8 %163 to i32
  %165 = sub nsw i32 %164, 97
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %166
  %168 = load i32, ptr %13, align 4, !tbaa !12
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [8 x i8], ptr %167, i64 0, i64 %169
  store i8 1, ptr %170, align 1, !tbaa !10
  br label %171

171:                                              ; preds = %162
  %172 = load i32, ptr %13, align 4, !tbaa !12
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %13, align 4, !tbaa !12
  br label %156, !llvm.loop !18

174:                                              ; preds = %160
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %4, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %231

178:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  %179 = getelementptr inbounds %class.anon.0, ptr %14, i32 0, i32 0
  store ptr %6, ptr %179, align 8, !tbaa !19
  %180 = getelementptr inbounds %class.anon.0, ptr %14, i32 0, i32 1
  store ptr %2, ptr %180, align 8, !tbaa !19
  %181 = getelementptr inbounds %class.anon.0, ptr %14, i32 0, i32 2
  store ptr %3, ptr %181, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !12
  br label %182

182:                                              ; preds = %218, %178
  %183 = load i32, ptr %16, align 4, !tbaa !12
  %184 = icmp slt i32 %183, 8
  br i1 %184, label %186, label %185

185:                                              ; preds = %182
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %221

186:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !12
  br label %187

187:                                              ; preds = %210, %186
  %188 = load i32, ptr %17, align 4, !tbaa !12
  %189 = icmp slt i32 %188, 8
  br i1 %189, label %191, label %190

190:                                              ; preds = %187
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %217

191:                                              ; preds = %187
  %192 = load i32, ptr %16, align 4, !tbaa !12
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %193
  %195 = load i32, ptr %17, align 4, !tbaa !12
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [8 x i8], ptr %194, i64 0, i64 %196
  %198 = load i8, ptr %197, align 1, !tbaa !10, !range !21, !noundef !22
  %199 = trunc i8 %198 to i1
  %200 = xor i1 %199, true
  %201 = zext i1 %200 to i32
  %202 = load i32, ptr %16, align 4, !tbaa !12
  %203 = load i32, ptr %17, align 4, !tbaa !12
  %204 = invoke noundef zeroext i1 @"_ZZ4mainENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef %202, i32 noundef %203)
          to label %205 unwind label %213

205:                                              ; preds = %191
  %206 = zext i1 %204 to i32
  %207 = and i32 %201, %206
  %208 = load i32, ptr %15, align 4, !tbaa !12
  %209 = add nsw i32 %208, %207
  store i32 %209, ptr %15, align 4, !tbaa !12
  br label %210

210:                                              ; preds = %205
  %211 = load i32, ptr %17, align 4, !tbaa !12
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %17, align 4, !tbaa !12
  br label %187, !llvm.loop !23

213:                                              ; preds = %191
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %4, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %230

217:                                              ; preds = %190
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %16, align 4, !tbaa !12
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %16, align 4, !tbaa !12
  br label %182, !llvm.loop !24

221:                                              ; preds = %185
  %222 = load i32, ptr %15, align 4, !tbaa !12
  %223 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %222)
          to label %224 unwind label %226

224:                                              ; preds = %221
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #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 %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #7
  %225 = load i32, ptr %1, align 4
  ret i32 %225

226:                                              ; preds = %221
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %4, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %5, align 4
  br label %230

230:                                              ; preds = %226, %213
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  br label %231

231:                                              ; preds = %230, %174, %151, %113, %50
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  br label %232

232:                                              ; preds = %231, %46
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #7
  br label %233

233:                                              ; preds = %232
  %234 = load ptr, ptr %4, align 8
  %235 = load i32, ptr %5, align 4
  %236 = insertvalue { ptr, i32 } poison, ptr %234, 0
  %237 = insertvalue { ptr, i32 } %236, i32 %235, 1
  resume { ptr, i32 } %237
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 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)) #1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, i32 noundef) #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZ4mainENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #6 align 2

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"omnipotent char", !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"bool", !9, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = !{!20, !20, i64 0}
!20 = !{!"any pointer", !9, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}


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

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

@dx = external dso_local local_unnamed_addr global [2 x i32], align 4
@dy = external dso_local local_unnamed_addr global [2 x i32], align 4
@sx = external dso_local local_unnamed_addr global [4 x i32], align 16
@sy = external dso_local local_unnamed_addr global [4 x i32], align 16
@chess = external dso_local local_unnamed_addr global [8 x [8 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 norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %class.anon, align 1
  %4 = alloca %class.anon.0, align 8
  %5 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %6 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %7 = getelementptr i8, ptr %6, i64 -24
  %8 = load i64, ptr %7, align 8
  %9 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %8
  %10 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %9, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  %11 = 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) %1)
          to label %12 unwind label %40

12:                                               ; preds = %0
  %13 = 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) %11, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %.preheader43 unwind label %40

.preheader43:                                     ; preds = %12
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) @chess, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #7
  %14 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %15 = load i8, ptr %14, align 1, !tbaa !8
  %16 = sext i8 %15 to i64
  %17 = add nsw i64 %16, -97
  %18 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 1)
  %19 = load i8, ptr %18, align 1, !tbaa !8
  %20 = sext i8 %19 to i64
  %21 = add nsw i64 %20, -49
  %22 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %17, i64 %21
  store i8 1, ptr %22, align 1, !tbaa !10
  %23 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %24 = load i8, ptr %23, align 1, !tbaa !8
  %25 = sext i8 %24 to i32
  %26 = add nsw i32 %25, -97
  %27 = load i32, ptr @dx, align 4, !tbaa !12
  %28 = load i32, ptr @sx, align 16, !tbaa !12
  %29 = mul nsw i32 %28, %27
  %30 = add nsw i32 %26, %29
  %31 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 1)
  %32 = load i8, ptr %31, align 1, !tbaa !8
  %33 = sext i8 %32 to i32
  %34 = add nsw i32 %33, -49
  %35 = load i32, ptr @dy, align 4, !tbaa !12
  %36 = load i32, ptr @sy, align 16, !tbaa !12
  %37 = mul nsw i32 %36, %35
  %38 = add nsw i32 %34, %37
  %39 = call noundef zeroext i1 @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %30, i32 noundef %38)
  br i1 %39, label %42, label %46

40:                                               ; preds = %12, %0
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %363

42:                                               ; preds = %.preheader43
  %43 = sext i32 %30 to i64
  %44 = sext i32 %38 to i64
  %45 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %43, i64 %44
  store i8 1, ptr %45, align 1, !tbaa !10
  br label %46

46:                                               ; preds = %42, %.preheader43
  %47 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %48 = load i8, ptr %47, align 1, !tbaa !8
  %49 = sext i8 %48 to i32
  %50 = add nsw i32 %49, -97
  %51 = load i32, ptr @dx, align 4, !tbaa !12
  %52 = load i32, ptr getelementptr inbounds (i8, ptr @sx, i64 4), align 4, !tbaa !12
  %53 = mul nsw i32 %52, %51
  %54 = add nsw i32 %50, %53
  %55 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 1)
  %56 = load i8, ptr %55, align 1, !tbaa !8
  %57 = sext i8 %56 to i32
  %58 = add nsw i32 %57, -49
  %59 = load i32, ptr @dy, align 4, !tbaa !12
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @sy, i64 4), align 4, !tbaa !12
  %61 = mul nsw i32 %60, %59
  %62 = add nsw i32 %58, %61
  %63 = call noundef zeroext i1 @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %54, i32 noundef %62)
  br i1 %63, label %64, label %68

64:                                               ; preds = %46
  %65 = sext i32 %54 to i64
  %66 = sext i32 %62 to i64
  %67 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %65, i64 %66
  store i8 1, ptr %67, align 1, !tbaa !10
  br label %68

68:                                               ; preds = %64, %46
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %70 = load i8, ptr %69, align 1, !tbaa !8
  %71 = sext i8 %70 to i32
  %72 = add nsw i32 %71, -97
  %73 = load i32, ptr @dx, align 4, !tbaa !12
  %74 = load i32, ptr getelementptr inbounds (i8, ptr @sx, i64 8), align 8, !tbaa !12
  %75 = mul nsw i32 %74, %73
  %76 = add nsw i32 %72, %75
  %77 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 1)
  %78 = load i8, ptr %77, align 1, !tbaa !8
  %79 = sext i8 %78 to i32
  %80 = add nsw i32 %79, -49
  %81 = load i32, ptr @dy, align 4, !tbaa !12
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @sy, i64 8), align 8, !tbaa !12
  %83 = mul nsw i32 %82, %81
  %84 = add nsw i32 %80, %83
  %85 = call noundef zeroext i1 @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %76, i32 noundef %84)
  br i1 %85, label %86, label %90

86:                                               ; preds = %68
  %87 = sext i32 %76 to i64
  %88 = sext i32 %84 to i64
  %89 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %87, i64 %88
  store i8 1, ptr %89, align 1, !tbaa !10
  br label %90

90:                                               ; preds = %86, %68
  %91 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %92 = load i8, ptr %91, align 1, !tbaa !8
  %93 = sext i8 %92 to i32
  %94 = add nsw i32 %93, -97
  %95 = load i32, ptr @dx, align 4, !tbaa !12
  %96 = load i32, ptr getelementptr inbounds (i8, ptr @sx, i64 12), align 4, !tbaa !12
  %97 = mul nsw i32 %96, %95
  %98 = add nsw i32 %94, %97
  %99 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 1)
  %100 = load i8, ptr %99, align 1, !tbaa !8
  %101 = sext i8 %100 to i32
  %102 = add nsw i32 %101, -49
  %103 = load i32, ptr @dy, align 4, !tbaa !12
  %104 = load i32, ptr getelementptr inbounds (i8, ptr @sy, i64 12), align 4, !tbaa !12
  %105 = mul nsw i32 %104, %103
  %106 = add nsw i32 %102, %105
  %107 = call noundef zeroext i1 @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %98, i32 noundef %106)
  br i1 %107, label %108, label %.preheader43.1

108:                                              ; preds = %90
  %109 = sext i32 %98 to i64
  %110 = sext i32 %106 to i64
  %111 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %109, i64 %110
  store i8 1, ptr %111, align 1, !tbaa !10
  br label %.preheader43.1

.preheader43.1:                                   ; preds = %108, %90
  %112 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %113 = load i8, ptr %112, align 1, !tbaa !8
  %114 = sext i8 %113 to i32
  %115 = add nsw i32 %114, -97
  %116 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 4), align 4, !tbaa !12
  %117 = load i32, ptr @sx, align 16, !tbaa !12
  %118 = mul nsw i32 %117, %116
  %119 = add nsw i32 %115, %118
  %120 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 1)
  %121 = load i8, ptr %120, align 1, !tbaa !8
  %122 = sext i8 %121 to i32
  %123 = add nsw i32 %122, -49
  %124 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 4), align 4, !tbaa !12
  %125 = load i32, ptr @sy, align 16, !tbaa !12
  %126 = mul nsw i32 %125, %124
  %127 = add nsw i32 %123, %126
  %128 = call noundef zeroext i1 @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %119, i32 noundef %127)
  br i1 %128, label %129, label %133

129:                                              ; preds = %.preheader43.1
  %130 = sext i32 %119 to i64
  %131 = sext i32 %127 to i64
  %132 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %130, i64 %131
  store i8 1, ptr %132, align 1, !tbaa !10
  br label %133

133:                                              ; preds = %129, %.preheader43.1
  %134 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %135 = load i8, ptr %134, align 1, !tbaa !8
  %136 = sext i8 %135 to i32
  %137 = add nsw i32 %136, -97
  %138 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 4), align 4, !tbaa !12
  %139 = load i32, ptr getelementptr inbounds (i8, ptr @sx, i64 4), align 4, !tbaa !12
  %140 = mul nsw i32 %139, %138
  %141 = add nsw i32 %137, %140
  %142 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 1)
  %143 = load i8, ptr %142, align 1, !tbaa !8
  %144 = sext i8 %143 to i32
  %145 = add nsw i32 %144, -49
  %146 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 4), align 4, !tbaa !12
  %147 = load i32, ptr getelementptr inbounds (i8, ptr @sy, i64 4), align 4, !tbaa !12
  %148 = mul nsw i32 %147, %146
  %149 = add nsw i32 %145, %148
  %150 = call noundef zeroext i1 @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %141, i32 noundef %149)
  br i1 %150, label %151, label %155

151:                                              ; preds = %133
  %152 = sext i32 %141 to i64
  %153 = sext i32 %149 to i64
  %154 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %152, i64 %153
  store i8 1, ptr %154, align 1, !tbaa !10
  br label %155

155:                                              ; preds = %151, %133
  %156 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %157 = load i8, ptr %156, align 1, !tbaa !8
  %158 = sext i8 %157 to i32
  %159 = add nsw i32 %158, -97
  %160 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 4), align 4, !tbaa !12
  %161 = load i32, ptr getelementptr inbounds (i8, ptr @sx, i64 8), align 8, !tbaa !12
  %162 = mul nsw i32 %161, %160
  %163 = add nsw i32 %159, %162
  %164 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 1)
  %165 = load i8, ptr %164, align 1, !tbaa !8
  %166 = sext i8 %165 to i32
  %167 = add nsw i32 %166, -49
  %168 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 4), align 4, !tbaa !12
  %169 = load i32, ptr getelementptr inbounds (i8, ptr @sy, i64 8), align 8, !tbaa !12
  %170 = mul nsw i32 %169, %168
  %171 = add nsw i32 %167, %170
  %172 = call noundef zeroext i1 @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %163, i32 noundef %171)
  br i1 %172, label %173, label %177

173:                                              ; preds = %155
  %174 = sext i32 %163 to i64
  %175 = sext i32 %171 to i64
  %176 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %174, i64 %175
  store i8 1, ptr %176, align 1, !tbaa !10
  br label %177

177:                                              ; preds = %173, %155
  %178 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %179 = load i8, ptr %178, align 1, !tbaa !8
  %180 = sext i8 %179 to i32
  %181 = add nsw i32 %180, -97
  %182 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 4), align 4, !tbaa !12
  %183 = load i32, ptr getelementptr inbounds (i8, ptr @sx, i64 12), align 4, !tbaa !12
  %184 = mul nsw i32 %183, %182
  %185 = add nsw i32 %181, %184
  %186 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 1)
  %187 = load i8, ptr %186, align 1, !tbaa !8
  %188 = sext i8 %187 to i32
  %189 = add nsw i32 %188, -49
  %190 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 4), align 4, !tbaa !12
  %191 = load i32, ptr getelementptr inbounds (i8, ptr @sy, i64 12), align 4, !tbaa !12
  %192 = mul nsw i32 %191, %190
  %193 = add nsw i32 %189, %192
  %194 = call noundef zeroext i1 @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %185, i32 noundef %193)
  br i1 %194, label %195, label %.preheader42.preheader

195:                                              ; preds = %177
  %196 = sext i32 %185 to i64
  %197 = sext i32 %193 to i64
  %198 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %196, i64 %197
  store i8 1, ptr %198, align 1, !tbaa !10
  br label %.preheader42.preheader

.preheader42.preheader:                           ; preds = %195, %177
  %199 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %200 = load i8, ptr %199, align 1, !tbaa !8
  %201 = sext i8 %200 to i64
  %202 = add nsw i64 %201, -97
  %203 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %204 = load i8, ptr %203, align 1, !tbaa !8
  %205 = sext i8 %204 to i64
  %206 = add nsw i64 %205, -49
  %207 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %202, i64 %206
  store i8 1, ptr %207, align 1, !tbaa !10
  %208 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %209 = load i8, ptr %208, align 1, !tbaa !8
  %210 = sext i8 %209 to i64
  %211 = add nsw i64 %210, -49
  %212 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 0, i64 %211
  store i8 1, ptr %212, align 1, !tbaa !10
  %213 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %214 = load i8, ptr %213, align 1, !tbaa !8
  %215 = sext i8 %214 to i64
  %216 = add nsw i64 %215, -49
  %217 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 1, i64 %216
  store i8 1, ptr %217, align 1, !tbaa !10
  %218 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %219 = load i8, ptr %218, align 1, !tbaa !8
  %220 = sext i8 %219 to i64
  %221 = add nsw i64 %220, -49
  %222 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 2, i64 %221
  store i8 1, ptr %222, align 1, !tbaa !10
  %223 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %224 = load i8, ptr %223, align 1, !tbaa !8
  %225 = sext i8 %224 to i64
  %226 = add nsw i64 %225, -49
  %227 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 3, i64 %226
  store i8 1, ptr %227, align 1, !tbaa !10
  %228 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %229 = load i8, ptr %228, align 1, !tbaa !8
  %230 = sext i8 %229 to i64
  %231 = add nsw i64 %230, -49
  %232 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 4, i64 %231
  store i8 1, ptr %232, align 1, !tbaa !10
  %233 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %234 = load i8, ptr %233, align 1, !tbaa !8
  %235 = sext i8 %234 to i64
  %236 = add nsw i64 %235, -49
  %237 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 5, i64 %236
  store i8 1, ptr %237, align 1, !tbaa !10
  %238 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %239 = load i8, ptr %238, align 1, !tbaa !8
  %240 = sext i8 %239 to i64
  %241 = add nsw i64 %240, -49
  %242 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 6, i64 %241
  store i8 1, ptr %242, align 1, !tbaa !10
  %243 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %244 = load i8, ptr %243, align 1, !tbaa !8
  %245 = sext i8 %244 to i64
  %246 = add nsw i64 %245, -49
  %247 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 7, i64 %246
  store i8 1, ptr %247, align 1, !tbaa !10
  %248 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %249 = load i8, ptr %248, align 1, !tbaa !8
  %250 = sext i8 %249 to i64
  %251 = add nsw i64 %250, -97
  %252 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %251, i64 0
  store i8 1, ptr %252, align 8, !tbaa !10
  %253 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %254 = load i8, ptr %253, align 1, !tbaa !8
  %255 = sext i8 %254 to i64
  %256 = add nsw i64 %255, -97
  %257 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %256, i64 1
  store i8 1, ptr %257, align 1, !tbaa !10
  %258 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %259 = load i8, ptr %258, align 1, !tbaa !8
  %260 = sext i8 %259 to i64
  %261 = add nsw i64 %260, -97
  %262 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %261, i64 2
  store i8 1, ptr %262, align 2, !tbaa !10
  %263 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %264 = load i8, ptr %263, align 1, !tbaa !8
  %265 = sext i8 %264 to i64
  %266 = add nsw i64 %265, -97
  %267 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %266, i64 3
  store i8 1, ptr %267, align 1, !tbaa !10
  %268 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %269 = load i8, ptr %268, align 1, !tbaa !8
  %270 = sext i8 %269 to i64
  %271 = add nsw i64 %270, -97
  %272 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %271, i64 4
  store i8 1, ptr %272, align 4, !tbaa !10
  %273 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %274 = load i8, ptr %273, align 1, !tbaa !8
  %275 = sext i8 %274 to i64
  %276 = add nsw i64 %275, -97
  %277 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %276, i64 5
  store i8 1, ptr %277, align 1, !tbaa !10
  %278 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %279 = load i8, ptr %278, align 1, !tbaa !8
  %280 = sext i8 %279 to i64
  %281 = add nsw i64 %280, -97
  %282 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %281, i64 6
  store i8 1, ptr %282, align 2, !tbaa !10
  %283 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %284 = load i8, ptr %283, align 1, !tbaa !8
  %285 = sext i8 %284 to i64
  %286 = add nsw i64 %285, -97
  %287 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %286, i64 7
  store i8 1, ptr %287, align 1, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  store ptr %3, ptr %4, align 8, !tbaa !14
  %288 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr %1, ptr %288, align 8, !tbaa !14
  %289 = getelementptr inbounds i8, ptr %4, i64 16
  store ptr %2, ptr %289, align 8, !tbaa !14
  br label %.preheader

.preheader:                                       ; preds = %.preheader42.preheader, %324
  %indvars.iv = phi i64 [ 0, %.preheader42.preheader ], [ %indvars.iv.next, %324 ]
  %.03152 = phi i32 [ 0, %.preheader42.preheader ], [ %356, %324 ]
  %290 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %indvars.iv, i64 0
  %291 = load i8, ptr %290, align 8, !tbaa !10, !range !16, !noundef !17
  %292 = trunc nuw nsw i64 %indvars.iv to i32
  %293 = invoke noundef zeroext i1 @"_ZZ4mainENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %292, i32 noundef 0)
          to label %296 unwind label %357

294:                                              ; preds = %324
  %295 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %356)
          to label %359 unwind label %360

296:                                              ; preds = %.preheader
  %297 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %indvars.iv, i64 1
  %298 = load i8, ptr %297, align 1, !tbaa !10, !range !16, !noundef !17
  %299 = invoke noundef zeroext i1 @"_ZZ4mainENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %292, i32 noundef 1)
          to label %300 unwind label %357

300:                                              ; preds = %296
  %301 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %indvars.iv, i64 2
  %302 = load i8, ptr %301, align 2, !tbaa !10, !range !16, !noundef !17
  %303 = invoke noundef zeroext i1 @"_ZZ4mainENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %292, i32 noundef 2)
          to label %304 unwind label %357

304:                                              ; preds = %300
  %305 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %indvars.iv, i64 3
  %306 = load i8, ptr %305, align 1, !tbaa !10, !range !16, !noundef !17
  %307 = invoke noundef zeroext i1 @"_ZZ4mainENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %292, i32 noundef 3)
          to label %308 unwind label %357

308:                                              ; preds = %304
  %309 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %indvars.iv, i64 4
  %310 = load i8, ptr %309, align 4, !tbaa !10, !range !16, !noundef !17
  %311 = invoke noundef zeroext i1 @"_ZZ4mainENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %292, i32 noundef 4)
          to label %312 unwind label %357

312:                                              ; preds = %308
  %313 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %indvars.iv, i64 5
  %314 = load i8, ptr %313, align 1, !tbaa !10, !range !16, !noundef !17
  %315 = invoke noundef zeroext i1 @"_ZZ4mainENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %292, i32 noundef 5)
          to label %316 unwind label %357

316:                                              ; preds = %312
  %317 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %indvars.iv, i64 6
  %318 = load i8, ptr %317, align 2, !tbaa !10, !range !16, !noundef !17
  %319 = invoke noundef zeroext i1 @"_ZZ4mainENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %292, i32 noundef 6)
          to label %320 unwind label %357

320:                                              ; preds = %316
  %321 = getelementptr inbounds [8 x [8 x i8]], ptr @chess, i64 0, i64 %indvars.iv, i64 7
  %322 = load i8, ptr %321, align 1, !tbaa !10, !range !16, !noundef !17
  %323 = invoke noundef zeroext i1 @"_ZZ4mainENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %292, i32 noundef 7)
          to label %324 unwind label %357

324:                                              ; preds = %320
  %325 = xor i8 %318, 1
  %326 = zext nneg i8 %325 to i32
  %327 = select i1 %319, i32 %326, i32 0
  %328 = xor i8 %314, 1
  %329 = zext nneg i8 %328 to i32
  %330 = select i1 %315, i32 %329, i32 0
  %331 = xor i8 %310, 1
  %332 = zext nneg i8 %331 to i32
  %333 = select i1 %311, i32 %332, i32 0
  %334 = xor i8 %306, 1
  %335 = zext nneg i8 %334 to i32
  %336 = select i1 %307, i32 %335, i32 0
  %337 = xor i8 %302, 1
  %338 = zext nneg i8 %337 to i32
  %339 = select i1 %303, i32 %338, i32 0
  %340 = xor i8 %298, 1
  %341 = zext nneg i8 %340 to i32
  %342 = select i1 %299, i32 %341, i32 0
  %343 = xor i8 %291, 1
  %344 = zext nneg i8 %343 to i32
  %345 = select i1 %293, i32 %344, i32 0
  %346 = add nsw i32 %345, %.03152
  %347 = add nsw i32 %342, %346
  %348 = add nsw i32 %339, %347
  %349 = add nsw i32 %336, %348
  %350 = add nsw i32 %333, %349
  %351 = add nsw i32 %330, %350
  %352 = add nsw i32 %327, %351
  %353 = xor i8 %322, 1
  %354 = zext nneg i8 %353 to i32
  %355 = select i1 %323, i32 %354, i32 0
  %356 = add nsw i32 %355, %352
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 8
  br i1 %exitcond.not, label %294, label %.preheader, !llvm.loop !18

357:                                              ; preds = %320, %316, %312, %308, %304, %300, %296, %.preheader
  %358 = landingpad { ptr, i32 }
          cleanup
  br label %362

359:                                              ; preds = %294
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  ret i32 0

360:                                              ; preds = %294
  %361 = landingpad { ptr, i32 }
          cleanup
  br label %362

362:                                              ; preds = %360, %357
  %.pn = phi { ptr, i32 } [ %358, %357 ], [ %361, %360 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #7
  br label %363

363:                                              ; preds = %362, %40
  %.pn.pn = phi { ptr, i32 } [ %.pn, %362 ], [ %41, %40 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn.pn
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 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 #1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @"_ZZ4mainENK3$_0clEii"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, i32 noundef) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZ4mainENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #6 align 2

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"omnipotent char", !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"bool", !9, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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