; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/Codeagon 2016/Problem C (C)

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

%"class.std::basic_ostream" = type { ptr, %"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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_Z1aB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z1bB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z1cB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z1dB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@t = external dso_local global i32, align 4
@dp = external dso_local global [1011 x [1011 x i32]], align 16
@cnt1 = external dso_local global [1011 x i32], align 16
@cnt2 = external dso_local global [1011 x i32], align 16
@x = external dso_local global [26 x i32], align 16
@y = external dso_local global [26 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %30 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %31 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %32 = getelementptr i8, ptr %31, i64 -24
  %33 = load i64, ptr %32, align 8
  %34 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %33
  %35 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %34, ptr noundef null)
  %36 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %37 = getelementptr i8, ptr %36, i64 -24
  %38 = load i64, ptr %37, align 8
  %39 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %38
  %40 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %39, ptr noundef null)
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @t)
  br label %42

42:                                               ; preds = %534, %0
  %43 = load i32, ptr @t, align 4, !tbaa !8
  %44 = add nsw i32 %43, -1
  store i32 %44, ptr @t, align 4, !tbaa !8
  %45 = icmp ne i32 %43, 0
  br i1 %45, label %46, label %535

46:                                               ; preds = %42
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11)
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  %49 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11) #8
  %50 = trunc i64 %49 to i32
  store i32 %50, ptr %2, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  %51 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11) #8
  %52 = trunc i64 %51 to i32
  store i32 %52, ptr %3, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !8
  br label %53

53:                                               ; preds = %69, %46
  %54 = load i32, ptr %4, align 4, !tbaa !8
  %55 = load i32, ptr %2, align 4, !tbaa !8
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %72

58:                                               ; preds = %53
  %59 = load i32, ptr %4, align 4, !tbaa !8
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11, i64 noundef %60)
  %62 = load i8, ptr %61, align 1, !tbaa !11
  %63 = sext i8 %62 to i32
  %64 = sub nsw i32 %63, 97
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [1011 x i32], ptr @cnt1, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !8
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %66, align 4, !tbaa !8
  br label %69

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

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

73:                                               ; preds = %89, %72
  %74 = load i32, ptr %5, align 4, !tbaa !8
  %75 = load i32, ptr %3, align 4, !tbaa !8
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %92

78:                                               ; preds = %73
  %79 = load i32, ptr %5, align 4, !tbaa !8
  %80 = sext i32 %79 to i64
  %81 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11, i64 noundef %80)
  %82 = load i8, ptr %81, align 1, !tbaa !11
  %83 = sext i8 %82 to i32
  %84 = sub nsw i32 %83, 97
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [1011 x i32], ptr @cnt2, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !8
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %86, align 4, !tbaa !8
  br label %89

89:                                               ; preds = %78
  %90 = load i32, ptr %5, align 4, !tbaa !8
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %5, align 4, !tbaa !8
  br label %73, !llvm.loop !14

92:                                               ; preds = %77
  %93 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11)
  %94 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1dB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11)
  %95 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11) #8
  %96 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %95, ptr %96, align 8
  %97 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11) #8
  %98 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %97, ptr %98, align 8
  %99 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8
  %101 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %100, ptr %102)
  %103 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1dB5cxx11) #8
  %104 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %103, ptr %104, align 8
  %105 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1dB5cxx11) #8
  %106 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %105, ptr %106, align 8
  %107 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8
  %109 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %108, ptr %110)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 1, ptr %10, align 4, !tbaa !8
  br label %111

111:                                              ; preds = %181, %92
  %112 = load i32, ptr %10, align 4, !tbaa !8
  %113 = load i32, ptr %2, align 4, !tbaa !8
  %114 = icmp sle i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 10, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %184

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

117:                                              ; preds = %177, %116
  %118 = load i32, ptr %12, align 4, !tbaa !8
  %119 = load i32, ptr %2, align 4, !tbaa !8
  %120 = icmp sle i32 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  store i32 13, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %180

122:                                              ; preds = %117
  %123 = load i32, ptr %10, align 4, !tbaa !8
  %124 = sub nsw i32 %123, 1
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11, i64 noundef %125)
  %127 = load i8, ptr %126, align 1, !tbaa !11
  %128 = sext i8 %127 to i32
  %129 = load i32, ptr %12, align 4, !tbaa !8
  %130 = sub nsw i32 %129, 1
  %131 = sext i32 %130 to i64
  %132 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11, i64 noundef %131)
  %133 = load i8, ptr %132, align 1, !tbaa !11
  %134 = sext i8 %133 to i32
  %135 = icmp eq i32 %128, %134
  br i1 %135, label %136, label %153

136:                                              ; preds = %122
  %137 = load i32, ptr %10, align 4, !tbaa !8
  %138 = sub nsw i32 %137, 1
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %139
  %141 = load i32, ptr %12, align 4, !tbaa !8
  %142 = sub nsw i32 %141, 1
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [1011 x i32], ptr %140, i64 0, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !8
  %146 = add nsw i32 %145, 1
  %147 = load i32, ptr %10, align 4, !tbaa !8
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %148
  %150 = load i32, ptr %12, align 4, !tbaa !8
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [1011 x i32], ptr %149, i64 0, i64 %151
  store i32 %146, ptr %152, align 4, !tbaa !8
  br label %176

153:                                              ; preds = %122
  %154 = load i32, ptr %10, align 4, !tbaa !8
  %155 = sub nsw i32 %154, 1
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %156
  %158 = load i32, ptr %12, align 4, !tbaa !8
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [1011 x i32], ptr %157, i64 0, i64 %159
  %161 = load i32, ptr %10, align 4, !tbaa !8
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %162
  %164 = load i32, ptr %12, align 4, !tbaa !8
  %165 = sub nsw i32 %164, 1
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [1011 x i32], ptr %163, i64 0, i64 %166
  %168 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %160, ptr noundef nonnull align 4 dereferenceable(4) %167)
  %169 = load i32, ptr %168, align 4, !tbaa !8
  %170 = load i32, ptr %10, align 4, !tbaa !8
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %171
  %173 = load i32, ptr %12, align 4, !tbaa !8
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [1011 x i32], ptr %172, i64 0, i64 %174
  store i32 %169, ptr %175, align 4, !tbaa !8
  br label %176

176:                                              ; preds = %153, %136
  br label %177

177:                                              ; preds = %176
  %178 = load i32, ptr %12, align 4, !tbaa !8
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %12, align 4, !tbaa !8
  br label %117, !llvm.loop !15

180:                                              ; preds = %121
  br label %181

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

184:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %185 = load i32, ptr %2, align 4, !tbaa !8
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %186
  %188 = load i32, ptr %2, align 4, !tbaa !8
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [1011 x i32], ptr %187, i64 0, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !8
  store i32 %191, ptr %13, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 1, ptr %14, align 4, !tbaa !8
  br label %192

192:                                              ; preds = %262, %184
  %193 = load i32, ptr %14, align 4, !tbaa !8
  %194 = load i32, ptr %3, align 4, !tbaa !8
  %195 = icmp sle i32 %193, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %192
  store i32 16, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %265

197:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 1, ptr %15, align 4, !tbaa !8
  br label %198

198:                                              ; preds = %258, %197
  %199 = load i32, ptr %15, align 4, !tbaa !8
  %200 = load i32, ptr %3, align 4, !tbaa !8
  %201 = icmp sle i32 %199, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %198
  store i32 19, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %261

203:                                              ; preds = %198
  %204 = load i32, ptr %14, align 4, !tbaa !8
  %205 = sub nsw i32 %204, 1
  %206 = sext i32 %205 to i64
  %207 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11, i64 noundef %206)
  %208 = load i8, ptr %207, align 1, !tbaa !11
  %209 = sext i8 %208 to i32
  %210 = load i32, ptr %15, align 4, !tbaa !8
  %211 = sub nsw i32 %210, 1
  %212 = sext i32 %211 to i64
  %213 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1dB5cxx11, i64 noundef %212)
  %214 = load i8, ptr %213, align 1, !tbaa !11
  %215 = sext i8 %214 to i32
  %216 = icmp eq i32 %209, %215
  br i1 %216, label %217, label %234

217:                                              ; preds = %203
  %218 = load i32, ptr %14, align 4, !tbaa !8
  %219 = sub nsw i32 %218, 1
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %220
  %222 = load i32, ptr %15, align 4, !tbaa !8
  %223 = sub nsw i32 %222, 1
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [1011 x i32], ptr %221, i64 0, i64 %224
  %226 = load i32, ptr %225, align 4, !tbaa !8
  %227 = add nsw i32 %226, 1
  %228 = load i32, ptr %14, align 4, !tbaa !8
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %229
  %231 = load i32, ptr %15, align 4, !tbaa !8
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [1011 x i32], ptr %230, i64 0, i64 %232
  store i32 %227, ptr %233, align 4, !tbaa !8
  br label %257

234:                                              ; preds = %203
  %235 = load i32, ptr %14, align 4, !tbaa !8
  %236 = sub nsw i32 %235, 1
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %237
  %239 = load i32, ptr %15, align 4, !tbaa !8
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [1011 x i32], ptr %238, i64 0, i64 %240
  %242 = load i32, ptr %14, align 4, !tbaa !8
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %243
  %245 = load i32, ptr %15, align 4, !tbaa !8
  %246 = sub nsw i32 %245, 1
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [1011 x i32], ptr %244, i64 0, i64 %247
  %249 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %241, ptr noundef nonnull align 4 dereferenceable(4) %248)
  %250 = load i32, ptr %249, align 4, !tbaa !8
  %251 = load i32, ptr %14, align 4, !tbaa !8
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %252
  %254 = load i32, ptr %15, align 4, !tbaa !8
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [1011 x i32], ptr %253, i64 0, i64 %255
  store i32 %250, ptr %256, align 4, !tbaa !8
  br label %257

257:                                              ; preds = %234, %217
  br label %258

258:                                              ; preds = %257
  %259 = load i32, ptr %15, align 4, !tbaa !8
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %15, align 4, !tbaa !8
  br label %198, !llvm.loop !17

261:                                              ; preds = %202
  br label %262

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

265:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %266 = load i32, ptr %3, align 4, !tbaa !8
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %267
  %269 = load i32, ptr %3, align 4, !tbaa !8
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [1011 x i32], ptr %268, i64 0, i64 %270
  %272 = load i32, ptr %271, align 4, !tbaa !8
  store i32 %272, ptr %16, align 4, !tbaa !8
  %273 = load i32, ptr %13, align 4, !tbaa !8
  %274 = srem i32 %273, 2
  %275 = icmp ne i32 %274, 1
  br i1 %275, label %280, label %276

276:                                              ; preds = %265
  %277 = load i32, ptr %16, align 4, !tbaa !8
  %278 = srem i32 %277, 2
  %279 = icmp ne i32 %278, 1
  br i1 %279, label %280, label %285

280:                                              ; preds = %276, %265
  %281 = load i32, ptr %13, align 4, !tbaa !8
  %282 = load i32, ptr %16, align 4, !tbaa !8
  %283 = add nsw i32 %281, %282
  %284 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %283)
  br label %534

285:                                              ; preds = %276
  call void @llvm.memset.p0.i64(ptr align 16 @x, i8 0, i64 104, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @y, i8 0, i64 104, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %286 = load i32, ptr %13, align 4, !tbaa !8
  %287 = load i32, ptr %16, align 4, !tbaa !8
  %288 = add nsw i32 %286, %287
  %289 = sub nsw i32 %288, 1
  store i32 %289, ptr %17, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 1, ptr %18, align 4, !tbaa !8
  br label %290

290:                                              ; preds = %360, %285
  %291 = load i32, ptr %18, align 4, !tbaa !8
  %292 = load i32, ptr %2, align 4, !tbaa !8
  %293 = icmp sle i32 %291, %292
  br i1 %293, label %295, label %294

294:                                              ; preds = %290
  store i32 22, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %363

295:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 1, ptr %19, align 4, !tbaa !8
  br label %296

296:                                              ; preds = %356, %295
  %297 = load i32, ptr %19, align 4, !tbaa !8
  %298 = load i32, ptr %2, align 4, !tbaa !8
  %299 = icmp sle i32 %297, %298
  br i1 %299, label %301, label %300

300:                                              ; preds = %296
  store i32 25, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %359

301:                                              ; preds = %296
  %302 = load i32, ptr %18, align 4, !tbaa !8
  %303 = sub nsw i32 %302, 1
  %304 = sext i32 %303 to i64
  %305 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11, i64 noundef %304)
  %306 = load i8, ptr %305, align 1, !tbaa !11
  %307 = sext i8 %306 to i32
  %308 = load i32, ptr %19, align 4, !tbaa !8
  %309 = sub nsw i32 %308, 1
  %310 = sext i32 %309 to i64
  %311 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11, i64 noundef %310)
  %312 = load i8, ptr %311, align 1, !tbaa !11
  %313 = sext i8 %312 to i32
  %314 = icmp eq i32 %307, %313
  br i1 %314, label %315, label %332

315:                                              ; preds = %301
  %316 = load i32, ptr %18, align 4, !tbaa !8
  %317 = sub nsw i32 %316, 1
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %318
  %320 = load i32, ptr %19, align 4, !tbaa !8
  %321 = sub nsw i32 %320, 1
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [1011 x i32], ptr %319, i64 0, i64 %322
  %324 = load i32, ptr %323, align 4, !tbaa !8
  %325 = add nsw i32 %324, 1
  %326 = load i32, ptr %18, align 4, !tbaa !8
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %327
  %329 = load i32, ptr %19, align 4, !tbaa !8
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [1011 x i32], ptr %328, i64 0, i64 %330
  store i32 %325, ptr %331, align 4, !tbaa !8
  br label %355

332:                                              ; preds = %301
  %333 = load i32, ptr %18, align 4, !tbaa !8
  %334 = sub nsw i32 %333, 1
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %335
  %337 = load i32, ptr %19, align 4, !tbaa !8
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds [1011 x i32], ptr %336, i64 0, i64 %338
  %340 = load i32, ptr %18, align 4, !tbaa !8
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %341
  %343 = load i32, ptr %19, align 4, !tbaa !8
  %344 = sub nsw i32 %343, 1
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [1011 x i32], ptr %342, i64 0, i64 %345
  %347 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %339, ptr noundef nonnull align 4 dereferenceable(4) %346)
  %348 = load i32, ptr %347, align 4, !tbaa !8
  %349 = load i32, ptr %18, align 4, !tbaa !8
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %350
  %352 = load i32, ptr %19, align 4, !tbaa !8
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [1011 x i32], ptr %351, i64 0, i64 %353
  store i32 %348, ptr %354, align 4, !tbaa !8
  br label %355

355:                                              ; preds = %332, %315
  br label %356

356:                                              ; preds = %355
  %357 = load i32, ptr %19, align 4, !tbaa !8
  %358 = add nsw i32 %357, 1
  store i32 %358, ptr %19, align 4, !tbaa !8
  br label %296, !llvm.loop !19

359:                                              ; preds = %300
  br label %360

360:                                              ; preds = %359
  %361 = load i32, ptr %18, align 4, !tbaa !8
  %362 = add nsw i32 %361, 1
  store i32 %362, ptr %18, align 4, !tbaa !8
  br label %290, !llvm.loop !20

363:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 1, ptr %20, align 4, !tbaa !8
  br label %364

364:                                              ; preds = %397, %363
  %365 = load i32, ptr %20, align 4, !tbaa !8
  %366 = load i32, ptr %2, align 4, !tbaa !8
  %367 = icmp sle i32 %365, %366
  br i1 %367, label %369, label %368

368:                                              ; preds = %364
  store i32 28, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %400

369:                                              ; preds = %364
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %370 = load i32, ptr %20, align 4, !tbaa !8
  %371 = sub nsw i32 %370, 1
  %372 = sext i32 %371 to i64
  %373 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11, i64 noundef %372)
  %374 = load i8, ptr %373, align 1, !tbaa !11
  %375 = sext i8 %374 to i32
  %376 = sub nsw i32 %375, 97
  store i32 %376, ptr %21, align 4, !tbaa !8
  %377 = load i32, ptr %21, align 4, !tbaa !8
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds [26 x i32], ptr @x, i64 0, i64 %378
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %380 = load i32, ptr %20, align 4, !tbaa !8
  %381 = sub nsw i32 %380, 1
  %382 = sext i32 %381 to i64
  %383 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %382
  %384 = load i32, ptr %2, align 4, !tbaa !8
  %385 = load i32, ptr %20, align 4, !tbaa !8
  %386 = sub nsw i32 %384, %385
  %387 = sext i32 %386 to i64
  %388 = getelementptr inbounds [1011 x i32], ptr %383, i64 0, i64 %387
  %389 = load i32, ptr %388, align 4, !tbaa !8
  %390 = mul nsw i32 2, %389
  %391 = add nsw i32 1, %390
  store i32 %391, ptr %22, align 4, !tbaa !8
  %392 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %379, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %393 = load i32, ptr %392, align 4, !tbaa !8
  %394 = load i32, ptr %21, align 4, !tbaa !8
  %395 = sext i32 %394 to i64
  %396 = getelementptr inbounds [26 x i32], ptr @x, i64 0, i64 %395
  store i32 %393, ptr %396, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %397

397:                                              ; preds = %369
  %398 = load i32, ptr %20, align 4, !tbaa !8
  %399 = add nsw i32 %398, 1
  store i32 %399, ptr %20, align 4, !tbaa !8
  br label %364, !llvm.loop !21

400:                                              ; preds = %368
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 1, ptr %23, align 4, !tbaa !8
  br label %401

401:                                              ; preds = %471, %400
  %402 = load i32, ptr %23, align 4, !tbaa !8
  %403 = load i32, ptr %3, align 4, !tbaa !8
  %404 = icmp sle i32 %402, %403
  br i1 %404, label %406, label %405

405:                                              ; preds = %401
  store i32 31, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %474

406:                                              ; preds = %401
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 1, ptr %24, align 4, !tbaa !8
  br label %407

407:                                              ; preds = %467, %406
  %408 = load i32, ptr %24, align 4, !tbaa !8
  %409 = load i32, ptr %3, align 4, !tbaa !8
  %410 = icmp sle i32 %408, %409
  br i1 %410, label %412, label %411

411:                                              ; preds = %407
  store i32 34, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %470

412:                                              ; preds = %407
  %413 = load i32, ptr %23, align 4, !tbaa !8
  %414 = sub nsw i32 %413, 1
  %415 = sext i32 %414 to i64
  %416 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11, i64 noundef %415)
  %417 = load i8, ptr %416, align 1, !tbaa !11
  %418 = sext i8 %417 to i32
  %419 = load i32, ptr %24, align 4, !tbaa !8
  %420 = sub nsw i32 %419, 1
  %421 = sext i32 %420 to i64
  %422 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1dB5cxx11, i64 noundef %421)
  %423 = load i8, ptr %422, align 1, !tbaa !11
  %424 = sext i8 %423 to i32
  %425 = icmp eq i32 %418, %424
  br i1 %425, label %426, label %443

426:                                              ; preds = %412
  %427 = load i32, ptr %23, align 4, !tbaa !8
  %428 = sub nsw i32 %427, 1
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %429
  %431 = load i32, ptr %24, align 4, !tbaa !8
  %432 = sub nsw i32 %431, 1
  %433 = sext i32 %432 to i64
  %434 = getelementptr inbounds [1011 x i32], ptr %430, i64 0, i64 %433
  %435 = load i32, ptr %434, align 4, !tbaa !8
  %436 = add nsw i32 %435, 1
  %437 = load i32, ptr %23, align 4, !tbaa !8
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %438
  %440 = load i32, ptr %24, align 4, !tbaa !8
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds [1011 x i32], ptr %439, i64 0, i64 %441
  store i32 %436, ptr %442, align 4, !tbaa !8
  br label %466

443:                                              ; preds = %412
  %444 = load i32, ptr %23, align 4, !tbaa !8
  %445 = sub nsw i32 %444, 1
  %446 = sext i32 %445 to i64
  %447 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %446
  %448 = load i32, ptr %24, align 4, !tbaa !8
  %449 = sext i32 %448 to i64
  %450 = getelementptr inbounds [1011 x i32], ptr %447, i64 0, i64 %449
  %451 = load i32, ptr %23, align 4, !tbaa !8
  %452 = sext i32 %451 to i64
  %453 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %452
  %454 = load i32, ptr %24, align 4, !tbaa !8
  %455 = sub nsw i32 %454, 1
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds [1011 x i32], ptr %453, i64 0, i64 %456
  %458 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %450, ptr noundef nonnull align 4 dereferenceable(4) %457)
  %459 = load i32, ptr %458, align 4, !tbaa !8
  %460 = load i32, ptr %23, align 4, !tbaa !8
  %461 = sext i32 %460 to i64
  %462 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %461
  %463 = load i32, ptr %24, align 4, !tbaa !8
  %464 = sext i32 %463 to i64
  %465 = getelementptr inbounds [1011 x i32], ptr %462, i64 0, i64 %464
  store i32 %459, ptr %465, align 4, !tbaa !8
  br label %466

466:                                              ; preds = %443, %426
  br label %467

467:                                              ; preds = %466
  %468 = load i32, ptr %24, align 4, !tbaa !8
  %469 = add nsw i32 %468, 1
  store i32 %469, ptr %24, align 4, !tbaa !8
  br label %407, !llvm.loop !22

470:                                              ; preds = %411
  br label %471

471:                                              ; preds = %470
  %472 = load i32, ptr %23, align 4, !tbaa !8
  %473 = add nsw i32 %472, 1
  store i32 %473, ptr %23, align 4, !tbaa !8
  br label %401, !llvm.loop !23

474:                                              ; preds = %405
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 1, ptr %25, align 4, !tbaa !8
  br label %475

475:                                              ; preds = %508, %474
  %476 = load i32, ptr %25, align 4, !tbaa !8
  %477 = load i32, ptr %3, align 4, !tbaa !8
  %478 = icmp sle i32 %476, %477
  br i1 %478, label %480, label %479

479:                                              ; preds = %475
  store i32 37, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %511

480:                                              ; preds = %475
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %481 = load i32, ptr %25, align 4, !tbaa !8
  %482 = sub nsw i32 %481, 1
  %483 = sext i32 %482 to i64
  %484 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11, i64 noundef %483)
  %485 = load i8, ptr %484, align 1, !tbaa !11
  %486 = sext i8 %485 to i32
  %487 = sub nsw i32 %486, 97
  store i32 %487, ptr %26, align 4, !tbaa !8
  %488 = load i32, ptr %26, align 4, !tbaa !8
  %489 = sext i32 %488 to i64
  %490 = getelementptr inbounds [26 x i32], ptr @y, i64 0, i64 %489
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %491 = load i32, ptr %25, align 4, !tbaa !8
  %492 = sub nsw i32 %491, 1
  %493 = sext i32 %492 to i64
  %494 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %493
  %495 = load i32, ptr %3, align 4, !tbaa !8
  %496 = load i32, ptr %25, align 4, !tbaa !8
  %497 = sub nsw i32 %495, %496
  %498 = sext i32 %497 to i64
  %499 = getelementptr inbounds [1011 x i32], ptr %494, i64 0, i64 %498
  %500 = load i32, ptr %499, align 4, !tbaa !8
  %501 = mul nsw i32 2, %500
  %502 = add nsw i32 1, %501
  store i32 %502, ptr %27, align 4, !tbaa !8
  %503 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %490, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %504 = load i32, ptr %503, align 4, !tbaa !8
  %505 = load i32, ptr %26, align 4, !tbaa !8
  %506 = sext i32 %505 to i64
  %507 = getelementptr inbounds [26 x i32], ptr @y, i64 0, i64 %506
  store i32 %504, ptr %507, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %508

508:                                              ; preds = %480
  %509 = load i32, ptr %25, align 4, !tbaa !8
  %510 = add nsw i32 %509, 1
  store i32 %510, ptr %25, align 4, !tbaa !8
  br label %475, !llvm.loop !24

511:                                              ; preds = %479
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %28, align 4, !tbaa !8
  br label %512

512:                                              ; preds = %528, %511
  %513 = load i32, ptr %28, align 4, !tbaa !8
  %514 = icmp slt i32 %513, 26
  br i1 %514, label %516, label %515

515:                                              ; preds = %512
  store i32 40, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %531

516:                                              ; preds = %512
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %517 = load i32, ptr %28, align 4, !tbaa !8
  %518 = sext i32 %517 to i64
  %519 = getelementptr inbounds [26 x i32], ptr @x, i64 0, i64 %518
  %520 = load i32, ptr %519, align 4, !tbaa !8
  %521 = load i32, ptr %28, align 4, !tbaa !8
  %522 = sext i32 %521 to i64
  %523 = getelementptr inbounds [26 x i32], ptr @y, i64 0, i64 %522
  %524 = load i32, ptr %523, align 4, !tbaa !8
  %525 = add nsw i32 %520, %524
  store i32 %525, ptr %29, align 4, !tbaa !8
  %526 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %527 = load i32, ptr %526, align 4, !tbaa !8
  store i32 %527, ptr %17, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %528

528:                                              ; preds = %516
  %529 = load i32, ptr %28, align 4, !tbaa !8
  %530 = add nsw i32 %529, 1
  store i32 %530, ptr %28, align 4, !tbaa !8
  br label %512, !llvm.loop !25

531:                                              ; preds = %515
  %532 = load i32, ptr %17, align 4, !tbaa !8
  %533 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %532)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %534

534:                                              ; preds = %531, %280
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %42, !llvm.loop !26

535:                                              ; preds = %42
  ret i32 0
}

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

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

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

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

; Function Attrs: 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 noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr, ptr) #5

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

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

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

declare i32 @printf(ptr noundef, ...) #1

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

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

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

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


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

%"class.std::basic_ostream" = type { ptr, %"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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_Z1aB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z1bB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z1cB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z1dB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@t = external dso_local global i32, align 4
@dp = external dso_local global [1011 x [1011 x i32]], align 16
@cnt1 = external dso_local local_unnamed_addr global [1011 x i32], align 16
@cnt2 = external dso_local local_unnamed_addr global [1011 x i32], align 16
@x = external dso_local global [26 x i32], align 16
@y = external dso_local global [26 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = 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)
  %11 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %13
  %15 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %14, ptr noundef null)
  %16 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @t)
  %17 = load i32, ptr @t, align 4, !tbaa !8
  %18 = add nsw i32 %17, -1
  store i32 %18, ptr @t, align 4, !tbaa !8
  %.not186 = icmp eq i32 %17, 0
  br i1 %.not186, label %._crit_edge189, label %.lr.ph188

.lr.ph188:                                        ; preds = %0, %302
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11)
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11)
  %21 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11) #9
  %22 = trunc i64 %21 to i32
  %23 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11) #9
  %24 = trunc i64 %23 to i32
  %25 = icmp sgt i32 %22, 0
  br i1 %25, label %.lr.ph.preheader, label %.preheader149

.lr.ph.preheader:                                 ; preds = %.lr.ph188
  %wide.trip.count = and i64 %21, 2147483647
  br label %.lr.ph

.preheader149:                                    ; preds = %.lr.ph, %.lr.ph188
  %26 = icmp sgt i32 %24, 0
  br i1 %26, label %.lr.ph152.preheader, label %._crit_edge

.lr.ph152.preheader:                              ; preds = %.preheader149
  %wide.trip.count194 = and i64 %23, 2147483647
  br label %.lr.ph152

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11, i64 noundef %indvars.iv)
  %28 = load i8, ptr %27, align 1, !tbaa !11
  %29 = sext i8 %28 to i64
  %30 = add nsw i64 %29, -97
  %31 = getelementptr inbounds [1011 x i32], ptr @cnt1, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !8
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %31, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader149, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph152, %.preheader149
  %34 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11)
  %35 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1dB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11)
  %36 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11) #9
  %37 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11) #9
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %36, ptr %37)
  %38 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1dB5cxx11) #9
  %39 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1dB5cxx11) #9
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %38, ptr %39)
  %.not129157 = icmp slt i32 %22, 1
  br i1 %.not129157, label %._crit_edge159.split, label %.preheader144.preheader

.preheader144.preheader:                          ; preds = %._crit_edge
  %40 = add nuw nsw i64 %21, 1
  %wide.trip.count204 = and i64 %40, 4294967295
  br label %.preheader144

.lr.ph152:                                        ; preds = %.lr.ph152.preheader, %.lr.ph152
  %indvars.iv191 = phi i64 [ 0, %.lr.ph152.preheader ], [ %indvars.iv.next192, %.lr.ph152 ]
  %41 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11, i64 noundef %indvars.iv191)
  %42 = load i8, ptr %41, align 1, !tbaa !11
  %43 = sext i8 %42 to i64
  %44 = add nsw i64 %43, -97
  %45 = getelementptr inbounds [1011 x i32], ptr @cnt2, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !8
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %45, align 4, !tbaa !8
  %indvars.iv.next192 = add nuw nsw i64 %indvars.iv191, 1
  %exitcond195.not = icmp eq i64 %indvars.iv.next192, %wide.trip.count194
  br i1 %exitcond195.not, label %._crit_edge, label %.lr.ph152, !llvm.loop !14

.preheader144:                                    ; preds = %.preheader144.preheader, %._crit_edge156
  %indvars.iv201 = phi i64 [ 1, %.preheader144.preheader ], [ %indvars.iv.next202, %._crit_edge156 ]
  %48 = add nsw i64 %indvars.iv201, -1
  br label %53

._crit_edge159.split:                             ; preds = %._crit_edge156, %._crit_edge
  %sext = shl i64 %21, 32
  %49 = ashr exact i64 %sext, 32
  %50 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %49, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !8
  %.not130164 = icmp slt i32 %24, 1
  br i1 %.not130164, label %._crit_edge166.split, label %.preheader143.preheader

.preheader143.preheader:                          ; preds = %._crit_edge159.split
  %52 = add nuw nsw i64 %23, 1
  %wide.trip.count214 = and i64 %52, 4294967295
  br label %.preheader143

._crit_edge156:                                   ; preds = %69
  %indvars.iv.next202 = add nuw nsw i64 %indvars.iv201, 1
  %exitcond205.not = icmp eq i64 %indvars.iv.next202, %wide.trip.count204
  br i1 %exitcond205.not, label %._crit_edge159.split, label %.preheader144, !llvm.loop !15

53:                                               ; preds = %.preheader144, %69
  %indvars.iv196 = phi i64 [ 1, %.preheader144 ], [ %indvars.iv.next197, %69 ]
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11, i64 noundef %48)
  %55 = load i8, ptr %54, align 1, !tbaa !11
  %56 = add nsw i64 %indvars.iv196, -1
  %57 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11, i64 noundef %56)
  %58 = load i8, ptr %57, align 1, !tbaa !11
  %59 = icmp eq i8 %55, %58
  br i1 %59, label %60, label %64

60:                                               ; preds = %53
  %61 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %48, i64 %56
  %62 = load i32, ptr %61, align 4, !tbaa !8
  %63 = add nsw i32 %62, 1
  br label %69

64:                                               ; preds = %53
  %65 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %48, i64 %indvars.iv196
  %66 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %indvars.iv201, i64 %56
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %65, ptr noundef nonnull align 4 dereferenceable(4) %66)
  %68 = load i32, ptr %67, align 4, !tbaa !8
  br label %69

69:                                               ; preds = %60, %64
  %.sink = phi i32 [ %63, %60 ], [ %68, %64 ]
  %70 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %indvars.iv201, i64 %indvars.iv196
  store i32 %.sink, ptr %70, align 4
  %indvars.iv.next197 = add nuw nsw i64 %indvars.iv196, 1
  %exitcond200.not = icmp eq i64 %indvars.iv.next197, %wide.trip.count204
  br i1 %exitcond200.not, label %._crit_edge156, label %53, !llvm.loop !16

.preheader143:                                    ; preds = %.preheader143.preheader, %._crit_edge163
  %indvars.iv211 = phi i64 [ 1, %.preheader143.preheader ], [ %indvars.iv.next212, %._crit_edge163 ]
  %71 = add nsw i64 %indvars.iv211, -1
  br label %77

._crit_edge166.split:                             ; preds = %._crit_edge163, %._crit_edge159.split
  %sext131 = shl i64 %23, 32
  %72 = ashr exact i64 %sext131, 32
  %73 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %72, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !8
  %75 = and i32 %51, -2147483647
  %.not132 = icmp eq i32 %75, 1
  %76 = and i32 %74, -2147483647
  %.not133 = icmp eq i32 %76, 1
  %or.cond = select i1 %.not132, i1 %.not133, i1 false
  br i1 %or.cond, label %98, label %95

._crit_edge163:                                   ; preds = %93
  %indvars.iv.next212 = add nuw nsw i64 %indvars.iv211, 1
  %exitcond215.not = icmp eq i64 %indvars.iv.next212, %wide.trip.count214
  br i1 %exitcond215.not, label %._crit_edge166.split, label %.preheader143, !llvm.loop !17

77:                                               ; preds = %.preheader143, %93
  %indvars.iv206 = phi i64 [ 1, %.preheader143 ], [ %indvars.iv.next207, %93 ]
  %78 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11, i64 noundef %71)
  %79 = load i8, ptr %78, align 1, !tbaa !11
  %80 = add nsw i64 %indvars.iv206, -1
  %81 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1dB5cxx11, i64 noundef %80)
  %82 = load i8, ptr %81, align 1, !tbaa !11
  %83 = icmp eq i8 %79, %82
  br i1 %83, label %84, label %88

84:                                               ; preds = %77
  %85 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %71, i64 %80
  %86 = load i32, ptr %85, align 4, !tbaa !8
  %87 = add nsw i32 %86, 1
  br label %93

88:                                               ; preds = %77
  %89 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %71, i64 %indvars.iv206
  %90 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %indvars.iv211, i64 %80
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %89, ptr noundef nonnull align 4 dereferenceable(4) %90)
  %92 = load i32, ptr %91, align 4, !tbaa !8
  br label %93

93:                                               ; preds = %84, %88
  %.sink250 = phi i32 [ %87, %84 ], [ %92, %88 ]
  %94 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %indvars.iv211, i64 %indvars.iv206
  store i32 %.sink250, ptr %94, align 4
  %indvars.iv.next207 = add nuw nsw i64 %indvars.iv206, 1
  %exitcond210.not = icmp eq i64 %indvars.iv.next207, %wide.trip.count214
  br i1 %exitcond210.not, label %._crit_edge163, label %77, !llvm.loop !18

95:                                               ; preds = %._crit_edge166.split
  %96 = add nsw i32 %74, %51
  %97 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %96)
  br label %302

98:                                               ; preds = %._crit_edge166.split
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(104) @x, i8 0, i64 104, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(104) @y, i8 0, i64 104, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  %99 = add nsw i32 %51, -1
  %100 = add nuw i32 %99, %74
  store i32 %100, ptr %1, align 4, !tbaa !8
  br i1 %.not129157, label %.preheader147, label %.preheader142.preheader

.preheader142.preheader:                          ; preds = %98
  %101 = add nuw nsw i64 %21, 1
  %wide.trip.count224 = and i64 %101, 4294967295
  br label %.preheader142

.preheader148:                                    ; preds = %._crit_edge170
  br i1 %.not129157, label %.preheader147, label %.lr.ph175.preheader

.lr.ph175.preheader:                              ; preds = %.preheader148
  %102 = and i64 %21, 2147483647
  %103 = add nuw nsw i64 %21, 1
  %wide.trip.count229 = and i64 %103, 4294967295
  br label %.lr.ph175

.preheader142:                                    ; preds = %.preheader142.preheader, %._crit_edge170
  %indvars.iv221 = phi i64 [ 1, %.preheader142.preheader ], [ %indvars.iv.next222, %._crit_edge170 ]
  %104 = add nsw i64 %indvars.iv221, -1
  br label %105

._crit_edge170:                                   ; preds = %121
  %indvars.iv.next222 = add nuw nsw i64 %indvars.iv221, 1
  %exitcond225.not = icmp eq i64 %indvars.iv.next222, %wide.trip.count224
  br i1 %exitcond225.not, label %.preheader148, label %.preheader142, !llvm.loop !19

105:                                              ; preds = %.preheader142, %121
  %indvars.iv216 = phi i64 [ 1, %.preheader142 ], [ %indvars.iv.next217, %121 ]
  %106 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11, i64 noundef %104)
  %107 = load i8, ptr %106, align 1, !tbaa !11
  %108 = add nsw i64 %indvars.iv216, -1
  %109 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11, i64 noundef %108)
  %110 = load i8, ptr %109, align 1, !tbaa !11
  %111 = icmp eq i8 %107, %110
  br i1 %111, label %112, label %116

112:                                              ; preds = %105
  %113 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %104, i64 %108
  %114 = load i32, ptr %113, align 4, !tbaa !8
  %115 = add nsw i32 %114, 1
  br label %121

116:                                              ; preds = %105
  %117 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %104, i64 %indvars.iv216
  %118 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %indvars.iv221, i64 %108
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %117, ptr noundef nonnull align 4 dereferenceable(4) %118)
  %120 = load i32, ptr %119, align 4, !tbaa !8
  br label %121

121:                                              ; preds = %112, %116
  %.sink251 = phi i32 [ %115, %112 ], [ %120, %116 ]
  %122 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %indvars.iv221, i64 %indvars.iv216
  store i32 %.sink251, ptr %122, align 4
  %indvars.iv.next217 = add nuw nsw i64 %indvars.iv216, 1
  %exitcond220.not = icmp eq i64 %indvars.iv.next217, %wide.trip.count224
  br i1 %exitcond220.not, label %._crit_edge170, label %105, !llvm.loop !20

.preheader147:                                    ; preds = %.lr.ph175, %98, %.preheader148
  br i1 %.not130164, label %.preheader145, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader147
  %123 = add nuw nsw i64 %23, 1
  %wide.trip.count239 = and i64 %123, 4294967295
  br label %.preheader

.lr.ph175:                                        ; preds = %.lr.ph175.preheader, %.lr.ph175
  %indvars.iv226 = phi i64 [ 1, %.lr.ph175.preheader ], [ %indvars.iv.next227, %.lr.ph175 ]
  %124 = add nsw i64 %indvars.iv226, -1
  %125 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11, i64 noundef %124)
  %126 = load i8, ptr %125, align 1, !tbaa !11
  %127 = sext i8 %126 to i64
  %128 = add nsw i64 %127, -97
  %129 = getelementptr inbounds [26 x i32], ptr @x, i64 0, i64 %128
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  %130 = sub nsw i64 %102, %indvars.iv226
  %131 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %124, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !8
  %133 = shl nsw i32 %132, 1
  %134 = or disjoint i32 %133, 1
  store i32 %134, ptr %2, align 4, !tbaa !8
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %129, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %136 = load i32, ptr %135, align 4, !tbaa !8
  store i32 %136, ptr %129, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  %indvars.iv.next227 = add nuw nsw i64 %indvars.iv226, 1
  %exitcond230.not = icmp eq i64 %indvars.iv.next227, %wide.trip.count229
  br i1 %exitcond230.not, label %.preheader147, label %.lr.ph175, !llvm.loop !21

.preheader146:                                    ; preds = %._crit_edge179
  br i1 %.not130164, label %.preheader145, label %.lr.ph184.preheader

.lr.ph184.preheader:                              ; preds = %.preheader146
  %137 = and i64 %23, 2147483647
  %138 = add nuw nsw i64 %23, 1
  %wide.trip.count244 = and i64 %138, 4294967295
  br label %.lr.ph184

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge179
  %indvars.iv236 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next237, %._crit_edge179 ]
  %139 = add nsw i64 %indvars.iv236, -1
  br label %140

._crit_edge179:                                   ; preds = %156
  %indvars.iv.next237 = add nuw nsw i64 %indvars.iv236, 1
  %exitcond240.not = icmp eq i64 %indvars.iv.next237, %wide.trip.count239
  br i1 %exitcond240.not, label %.preheader146, label %.preheader, !llvm.loop !22

140:                                              ; preds = %.preheader, %156
  %indvars.iv231 = phi i64 [ 1, %.preheader ], [ %indvars.iv.next232, %156 ]
  %141 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11, i64 noundef %139)
  %142 = load i8, ptr %141, align 1, !tbaa !11
  %143 = add nsw i64 %indvars.iv231, -1
  %144 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1dB5cxx11, i64 noundef %143)
  %145 = load i8, ptr %144, align 1, !tbaa !11
  %146 = icmp eq i8 %142, %145
  br i1 %146, label %147, label %151

147:                                              ; preds = %140
  %148 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %139, i64 %143
  %149 = load i32, ptr %148, align 4, !tbaa !8
  %150 = add nsw i32 %149, 1
  br label %156

151:                                              ; preds = %140
  %152 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %139, i64 %indvars.iv231
  %153 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %indvars.iv236, i64 %143
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %152, ptr noundef nonnull align 4 dereferenceable(4) %153)
  %155 = load i32, ptr %154, align 4, !tbaa !8
  br label %156

156:                                              ; preds = %147, %151
  %.sink252 = phi i32 [ %150, %147 ], [ %155, %151 ]
  %157 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %indvars.iv236, i64 %indvars.iv231
  store i32 %.sink252, ptr %157, align 4
  %indvars.iv.next232 = add nuw nsw i64 %indvars.iv231, 1
  %exitcond235.not = icmp eq i64 %indvars.iv.next232, %wide.trip.count239
  br i1 %exitcond235.not, label %._crit_edge179, label %140, !llvm.loop !23

.preheader145:                                    ; preds = %.lr.ph184, %.preheader147, %.preheader146
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %158 = load i32, ptr @x, align 16, !tbaa !8
  %159 = load i32, ptr @y, align 16, !tbaa !8
  %160 = add nsw i32 %159, %158
  store i32 %160, ptr %4, align 4, !tbaa !8
  %161 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %162 = load i32, ptr %161, align 4, !tbaa !8
  store i32 %162, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %163 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 4), align 4, !tbaa !8
  %164 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 4), align 4, !tbaa !8
  %165 = add nsw i32 %164, %163
  store i32 %165, ptr %4, align 4, !tbaa !8
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %167 = load i32, ptr %166, align 4, !tbaa !8
  store i32 %167, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %168 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 8), align 8, !tbaa !8
  %169 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 8), align 8, !tbaa !8
  %170 = add nsw i32 %169, %168
  store i32 %170, ptr %4, align 4, !tbaa !8
  %171 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %172 = load i32, ptr %171, align 4, !tbaa !8
  store i32 %172, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %173 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 12), align 4, !tbaa !8
  %174 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 12), align 4, !tbaa !8
  %175 = add nsw i32 %174, %173
  store i32 %175, ptr %4, align 4, !tbaa !8
  %176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %177 = load i32, ptr %176, align 4, !tbaa !8
  store i32 %177, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %178 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 16), align 16, !tbaa !8
  %179 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 16), align 16, !tbaa !8
  %180 = add nsw i32 %179, %178
  store i32 %180, ptr %4, align 4, !tbaa !8
  %181 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %182 = load i32, ptr %181, align 4, !tbaa !8
  store i32 %182, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %183 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 20), align 4, !tbaa !8
  %184 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 20), align 4, !tbaa !8
  %185 = add nsw i32 %184, %183
  store i32 %185, ptr %4, align 4, !tbaa !8
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %187 = load i32, ptr %186, align 4, !tbaa !8
  store i32 %187, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %188 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 24), align 8, !tbaa !8
  %189 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 24), align 8, !tbaa !8
  %190 = add nsw i32 %189, %188
  store i32 %190, ptr %4, align 4, !tbaa !8
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %192 = load i32, ptr %191, align 4, !tbaa !8
  store i32 %192, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %193 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 28), align 4, !tbaa !8
  %194 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 28), align 4, !tbaa !8
  %195 = add nsw i32 %194, %193
  store i32 %195, ptr %4, align 4, !tbaa !8
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %197 = load i32, ptr %196, align 4, !tbaa !8
  store i32 %197, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %198 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 32), align 16, !tbaa !8
  %199 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 32), align 16, !tbaa !8
  %200 = add nsw i32 %199, %198
  store i32 %200, ptr %4, align 4, !tbaa !8
  %201 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %202 = load i32, ptr %201, align 4, !tbaa !8
  store i32 %202, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %203 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 36), align 4, !tbaa !8
  %204 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 36), align 4, !tbaa !8
  %205 = add nsw i32 %204, %203
  store i32 %205, ptr %4, align 4, !tbaa !8
  %206 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %207 = load i32, ptr %206, align 4, !tbaa !8
  store i32 %207, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %208 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 40), align 8, !tbaa !8
  %209 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 40), align 8, !tbaa !8
  %210 = add nsw i32 %209, %208
  store i32 %210, ptr %4, align 4, !tbaa !8
  %211 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %212 = load i32, ptr %211, align 4, !tbaa !8
  store i32 %212, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %213 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 44), align 4, !tbaa !8
  %214 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 44), align 4, !tbaa !8
  %215 = add nsw i32 %214, %213
  store i32 %215, ptr %4, align 4, !tbaa !8
  %216 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %217 = load i32, ptr %216, align 4, !tbaa !8
  store i32 %217, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %218 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 48), align 16, !tbaa !8
  %219 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 48), align 16, !tbaa !8
  %220 = add nsw i32 %219, %218
  store i32 %220, ptr %4, align 4, !tbaa !8
  %221 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %222 = load i32, ptr %221, align 4, !tbaa !8
  store i32 %222, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %223 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 52), align 4, !tbaa !8
  %224 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 52), align 4, !tbaa !8
  %225 = add nsw i32 %224, %223
  store i32 %225, ptr %4, align 4, !tbaa !8
  %226 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %227 = load i32, ptr %226, align 4, !tbaa !8
  store i32 %227, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %228 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 56), align 8, !tbaa !8
  %229 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 56), align 8, !tbaa !8
  %230 = add nsw i32 %229, %228
  store i32 %230, ptr %4, align 4, !tbaa !8
  %231 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %232 = load i32, ptr %231, align 4, !tbaa !8
  store i32 %232, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %233 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 60), align 4, !tbaa !8
  %234 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 60), align 4, !tbaa !8
  %235 = add nsw i32 %234, %233
  store i32 %235, ptr %4, align 4, !tbaa !8
  %236 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %237 = load i32, ptr %236, align 4, !tbaa !8
  store i32 %237, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %238 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 64), align 16, !tbaa !8
  %239 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 64), align 16, !tbaa !8
  %240 = add nsw i32 %239, %238
  store i32 %240, ptr %4, align 4, !tbaa !8
  %241 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %242 = load i32, ptr %241, align 4, !tbaa !8
  store i32 %242, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %243 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 68), align 4, !tbaa !8
  %244 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 68), align 4, !tbaa !8
  %245 = add nsw i32 %244, %243
  store i32 %245, ptr %4, align 4, !tbaa !8
  %246 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %247 = load i32, ptr %246, align 4, !tbaa !8
  store i32 %247, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %248 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 72), align 8, !tbaa !8
  %249 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 72), align 8, !tbaa !8
  %250 = add nsw i32 %249, %248
  store i32 %250, ptr %4, align 4, !tbaa !8
  %251 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %252 = load i32, ptr %251, align 4, !tbaa !8
  store i32 %252, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %253 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 76), align 4, !tbaa !8
  %254 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 76), align 4, !tbaa !8
  %255 = add nsw i32 %254, %253
  store i32 %255, ptr %4, align 4, !tbaa !8
  %256 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %257 = load i32, ptr %256, align 4, !tbaa !8
  store i32 %257, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %258 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 80), align 16, !tbaa !8
  %259 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 80), align 16, !tbaa !8
  %260 = add nsw i32 %259, %258
  store i32 %260, ptr %4, align 4, !tbaa !8
  %261 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %262 = load i32, ptr %261, align 4, !tbaa !8
  store i32 %262, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %263 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 84), align 4, !tbaa !8
  %264 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 84), align 4, !tbaa !8
  %265 = add nsw i32 %264, %263
  store i32 %265, ptr %4, align 4, !tbaa !8
  %266 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %267 = load i32, ptr %266, align 4, !tbaa !8
  store i32 %267, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %268 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 88), align 8, !tbaa !8
  %269 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 88), align 8, !tbaa !8
  %270 = add nsw i32 %269, %268
  store i32 %270, ptr %4, align 4, !tbaa !8
  %271 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %272 = load i32, ptr %271, align 4, !tbaa !8
  store i32 %272, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %273 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 92), align 4, !tbaa !8
  %274 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 92), align 4, !tbaa !8
  %275 = add nsw i32 %274, %273
  store i32 %275, ptr %4, align 4, !tbaa !8
  %276 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %277 = load i32, ptr %276, align 4, !tbaa !8
  store i32 %277, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %278 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 96), align 16, !tbaa !8
  %279 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 96), align 16, !tbaa !8
  %280 = add nsw i32 %279, %278
  store i32 %280, ptr %4, align 4, !tbaa !8
  %281 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %282 = load i32, ptr %281, align 4, !tbaa !8
  store i32 %282, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %283 = load i32, ptr getelementptr inbounds (i8, ptr @x, i64 100), align 4, !tbaa !8
  %284 = load i32, ptr getelementptr inbounds (i8, ptr @y, i64 100), align 4, !tbaa !8
  %285 = add nsw i32 %284, %283
  store i32 %285, ptr %4, align 4, !tbaa !8
  %286 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %287 = load i32, ptr %286, align 4, !tbaa !8
  store i32 %287, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  %288 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %287)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  br label %302

.lr.ph184:                                        ; preds = %.lr.ph184.preheader, %.lr.ph184
  %indvars.iv241 = phi i64 [ 1, %.lr.ph184.preheader ], [ %indvars.iv.next242, %.lr.ph184 ]
  %289 = add nsw i64 %indvars.iv241, -1
  %290 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11, i64 noundef %289)
  %291 = load i8, ptr %290, align 1, !tbaa !11
  %292 = sext i8 %291 to i64
  %293 = add nsw i64 %292, -97
  %294 = getelementptr inbounds [26 x i32], ptr @y, i64 0, i64 %293
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  %295 = sub nsw i64 %137, %indvars.iv241
  %296 = getelementptr inbounds [1011 x [1011 x i32]], ptr @dp, i64 0, i64 %289, i64 %295
  %297 = load i32, ptr %296, align 4, !tbaa !8
  %298 = shl nsw i32 %297, 1
  %299 = or disjoint i32 %298, 1
  store i32 %299, ptr %3, align 4, !tbaa !8
  %300 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %294, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %301 = load i32, ptr %300, align 4, !tbaa !8
  store i32 %301, ptr %294, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  %indvars.iv.next242 = add nuw nsw i64 %indvars.iv241, 1
  %exitcond245.not = icmp eq i64 %indvars.iv.next242, %wide.trip.count244
  br i1 %exitcond245.not, label %.preheader145, label %.lr.ph184, !llvm.loop !24

302:                                              ; preds = %.preheader145, %95
  %303 = load i32, ptr @t, align 4, !tbaa !8
  %304 = add nsw i32 %303, -1
  store i32 %304, ptr @t, align 4, !tbaa !8
  %.not = icmp eq i32 %303, 0
  br i1 %.not, label %._crit_edge189, label %.lr.ph188, !llvm.loop !25

._crit_edge189:                                   ; preds = %302, %0
  ret i32 0
}

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

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

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

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

; Function Attrs: mustprogress 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 noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr, ptr) local_unnamed_addr #5

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #7

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass