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

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

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

@k = external dso_local global i64, align 8
@x = external dso_local global i64, align 8
@n = external dso_local global i64, align 8
@m = external dso_local global i64, align 8
@dp = external dso_local global [51 x [3 x i64]], align 16
@_Z2s1B5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z2s2B5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  store i32 0, ptr %1, align 4
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @k)
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(8) @x)
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) @n)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(8) @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %335, %0
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = icmp sle i32 %31, 100
  br i1 %32, label %34, label %33

33:                                               ; preds = %30
  store i32 2, ptr %3, align 4
  br label %338

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %329, %34
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = icmp sle i32 %36, 100
  br i1 %37, label %39, label %38

38:                                               ; preds = %35
  store i32 5, ptr %3, align 4
  br label %332

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

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

43:                                               ; preds = %40
  store i32 8, ptr %3, align 4
  br label %326

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

45:                                               ; preds = %317, %44
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = icmp slt i32 %46, 4
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  store i32 11, ptr %3, align 4
  br label %320

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %311, %49
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = icmp slt i32 %51, 4
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  store i32 14, ptr %3, align 4
  br label %314

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

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

58:                                               ; preds = %55
  store i32 17, ptr %3, align 4
  br label %308

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = add nsw i32 %60, %61
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = icmp sgt i32 %63, 0
  %65 = zext i1 %64 to i32
  %66 = add nsw i32 %62, %65
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = icmp sgt i32 %67, 0
  %69 = zext i1 %68 to i32
  %70 = add nsw i32 %66, %69
  store i32 %70, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %71 = load i32, ptr %4, align 4, !tbaa !5
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = add nsw i32 %71, %72
  %74 = load i32, ptr %7, align 4, !tbaa !5
  %75 = icmp sgt i32 %74, 0
  %76 = zext i1 %75 to i32
  %77 = add nsw i32 %73, %76
  %78 = load i32, ptr %8, align 4, !tbaa !5
  %79 = icmp sgt i32 %78, 0
  %80 = zext i1 %79 to i32
  %81 = add nsw i32 %77, %80
  store i32 %81, ptr %10, align 4, !tbaa !5
  %82 = load i32, ptr %9, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = load i64, ptr @n, align 8, !tbaa !9
  %85 = icmp sgt i64 %83, %84
  br i1 %85, label %91, label %86

86:                                               ; preds = %59
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = load i64, ptr @m, align 8, !tbaa !9
  %90 = icmp sgt i64 %88, %89
  br i1 %90, label %91, label %92

91:                                               ; preds = %86, %59
  store i32 19, ptr %3, align 4
  br label %302

92:                                               ; preds = %86
  %93 = load i32, ptr %2, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  store i64 %94, ptr getelementptr inbounds ([51 x [3 x i64]], ptr @dp, i64 0, i64 1), align 8, !tbaa !9
  %95 = load i32, ptr %5, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  store i64 %96, ptr getelementptr inbounds ([3 x i64], ptr getelementptr inbounds ([51 x [3 x i64]], ptr @dp, i64 0, i64 1), i64 0, i64 1), align 8, !tbaa !9
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  store i64 %98, ptr getelementptr inbounds ([3 x i64], ptr getelementptr inbounds ([51 x [3 x i64]], ptr @dp, i64 0, i64 1), i64 0, i64 2), align 8, !tbaa !9
  %99 = load i32, ptr %4, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  store i64 %100, ptr getelementptr inbounds ([51 x [3 x i64]], ptr @dp, i64 0, i64 2), align 16, !tbaa !9
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  store i64 %102, ptr getelementptr inbounds ([3 x i64], ptr getelementptr inbounds ([51 x [3 x i64]], ptr @dp, i64 0, i64 2), i64 0, i64 1), align 8, !tbaa !9
  %103 = load i32, ptr %8, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  store i64 %104, ptr getelementptr inbounds ([3 x i64], ptr getelementptr inbounds ([51 x [3 x i64]], ptr @dp, i64 0, i64 2), i64 0, i64 2), align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 3, ptr %11, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %172, %92
  %106 = load i32, ptr %11, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = load i64, ptr @k, align 8, !tbaa !9
  %109 = icmp sle i64 %107, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %105
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %175

111:                                              ; preds = %105
  %112 = load i32, ptr %11, align 4, !tbaa !5
  %113 = sub nsw i32 %112, 2
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %114
  %116 = getelementptr inbounds [3 x i64], ptr %115, i64 0, i64 0
  %117 = load i64, ptr %116, align 8, !tbaa !9
  %118 = load i32, ptr %11, align 4, !tbaa !5
  %119 = sub nsw i32 %118, 1
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %120
  %122 = getelementptr inbounds [3 x i64], ptr %121, i64 0, i64 0
  %123 = load i64, ptr %122, align 8, !tbaa !9
  %124 = add nsw i64 %117, %123
  %125 = load i32, ptr %11, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %126
  %128 = getelementptr inbounds [3 x i64], ptr %127, i64 0, i64 0
  store i64 %124, ptr %128, align 8, !tbaa !9
  %129 = load i32, ptr %11, align 4, !tbaa !5
  %130 = sub nsw i32 %129, 2
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %131
  %133 = getelementptr inbounds [3 x i64], ptr %132, i64 0, i64 1
  %134 = load i64, ptr %133, align 8, !tbaa !9
  %135 = load i32, ptr %11, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %136
  %138 = getelementptr inbounds [3 x i64], ptr %137, i64 0, i64 1
  store i64 %134, ptr %138, align 8, !tbaa !9
  %139 = load i32, ptr %11, align 4, !tbaa !5
  %140 = sub nsw i32 %139, 1
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %141
  %143 = getelementptr inbounds [3 x i64], ptr %142, i64 0, i64 2
  %144 = load i64, ptr %143, align 8, !tbaa !9
  %145 = load i32, ptr %11, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %146
  %148 = getelementptr inbounds [3 x i64], ptr %147, i64 0, i64 2
  store i64 %144, ptr %148, align 8, !tbaa !9
  %149 = load i32, ptr %11, align 4, !tbaa !5
  %150 = sub nsw i32 %149, 2
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %151
  %153 = getelementptr inbounds [3 x i64], ptr %152, i64 0, i64 2
  %154 = load i64, ptr %153, align 8, !tbaa !9
  %155 = icmp eq i64 %154, 1
  br i1 %155, label %156, label %171

156:                                              ; preds = %111
  %157 = load i32, ptr %11, align 4, !tbaa !5
  %158 = sub nsw i32 %157, 1
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %159
  %161 = getelementptr inbounds [3 x i64], ptr %160, i64 0, i64 1
  %162 = load i64, ptr %161, align 8, !tbaa !9
  %163 = icmp eq i64 %162, 2
  br i1 %163, label %164, label %171

164:                                              ; preds = %156
  %165 = load i32, ptr %11, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %166
  %168 = getelementptr inbounds [3 x i64], ptr %167, i64 0, i64 0
  %169 = load i64, ptr %168, align 8, !tbaa !9
  %170 = add nsw i64 %169, 1
  store i64 %170, ptr %168, align 8, !tbaa !9
  br label %171

171:                                              ; preds = %164, %156, %111
  br label %172

172:                                              ; preds = %171
  %173 = load i32, ptr %11, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %11, align 4, !tbaa !5
  br label %105, !llvm.loop !11

175:                                              ; preds = %110
  %176 = load i64, ptr @k, align 8, !tbaa !9
  %177 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %176
  %178 = getelementptr inbounds [3 x i64], ptr %177, i64 0, i64 0
  %179 = load i64, ptr %178, align 8, !tbaa !9
  %180 = load i64, ptr @x, align 8, !tbaa !9
  %181 = icmp eq i64 %179, %180
  br i1 %181, label %182, label %301

182:                                              ; preds = %175
  br label %183

183:                                              ; preds = %186, %182
  %184 = load i32, ptr %2, align 4, !tbaa !5
  %185 = icmp sgt i32 %184, 0
  br i1 %185, label %186, label %190

186:                                              ; preds = %183
  %187 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, ptr noundef @.str)
  %188 = load i32, ptr %2, align 4, !tbaa !5
  %189 = add nsw i32 %188, -1
  store i32 %189, ptr %2, align 4, !tbaa !5
  br label %183, !llvm.loop !13

190:                                              ; preds = %183
  br label %191

191:                                              ; preds = %194, %190
  %192 = load i32, ptr %4, align 4, !tbaa !5
  %193 = icmp sgt i32 %192, 0
  br i1 %193, label %194, label %198

194:                                              ; preds = %191
  %195 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, ptr noundef @.str)
  %196 = load i32, ptr %4, align 4, !tbaa !5
  %197 = add nsw i32 %196, -1
  store i32 %197, ptr %4, align 4, !tbaa !5
  br label %191, !llvm.loop !14

198:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %199

199:                                              ; preds = %210, %198
  %200 = load i32, ptr %12, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = load i64, ptr @n, align 8, !tbaa !9
  %203 = load i32, ptr %9, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = sub nsw i64 %202, %204
  %206 = icmp slt i64 %201, %205
  br i1 %206, label %208, label %207

207:                                              ; preds = %199
  store i32 27, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %213

208:                                              ; preds = %199
  %209 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, i8 noundef signext 66)
  br label %210

210:                                              ; preds = %208
  %211 = load i32, ptr %12, align 4, !tbaa !5
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %12, align 4, !tbaa !5
  br label %199, !llvm.loop !15

213:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %225, %213
  %215 = load i32, ptr %13, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = load i64, ptr @m, align 8, !tbaa !9
  %218 = load i32, ptr %10, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = sub nsw i64 %217, %219
  %221 = icmp slt i64 %216, %220
  br i1 %221, label %223, label %222

222:                                              ; preds = %214
  store i32 30, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %228

223:                                              ; preds = %214
  %224 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, i8 noundef signext 66)
  br label %225

225:                                              ; preds = %223
  %226 = load i32, ptr %13, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %13, align 4, !tbaa !5
  br label %214, !llvm.loop !16

228:                                              ; preds = %222
  %229 = load i32, ptr %5, align 4, !tbaa !5
  %230 = icmp eq i32 %229, 1
  br i1 %230, label %231, label %233

231:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, i8 noundef signext 65, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11)
  %232 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %245

233:                                              ; preds = %228
  %234 = load i32, ptr %5, align 4, !tbaa !5
  %235 = icmp eq i32 %234, 2
  br i1 %235, label %236, label %238

236:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, i8 noundef signext 67, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11)
  %237 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %244

238:                                              ; preds = %233
  %239 = load i32, ptr %5, align 4, !tbaa !5
  %240 = icmp eq i32 %239, 3
  br i1 %240, label %241, label %243

241:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, i8 noundef signext 66, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11)
  %242 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  br label %243

243:                                              ; preds = %241, %238
  br label %244

244:                                              ; preds = %243, %236
  br label %245

245:                                              ; preds = %244, %231
  %246 = load i32, ptr %7, align 4, !tbaa !5
  %247 = icmp eq i32 %246, 1
  br i1 %247, label %248, label %250

248:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, i8 noundef signext 65, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11)
  %249 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  br label %262

250:                                              ; preds = %245
  %251 = load i32, ptr %7, align 4, !tbaa !5
  %252 = icmp eq i32 %251, 2
  br i1 %252, label %253, label %255

253:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, i8 noundef signext 67, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11)
  %254 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %261

255:                                              ; preds = %250
  %256 = load i32, ptr %7, align 4, !tbaa !5
  %257 = icmp eq i32 %256, 3
  br i1 %257, label %258, label %260

258:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, i8 noundef signext 66, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11)
  %259 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  br label %260

260:                                              ; preds = %258, %255
  br label %261

261:                                              ; preds = %260, %253
  br label %262

262:                                              ; preds = %261, %248
  %263 = load i32, ptr %6, align 4, !tbaa !5
  %264 = icmp eq i32 %263, 1
  br i1 %264, label %265, label %267

265:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, i8 noundef signext 65)
  %266 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  br label %279

267:                                              ; preds = %262
  %268 = load i32, ptr %6, align 4, !tbaa !5
  %269 = icmp eq i32 %268, 2
  br i1 %269, label %270, label %272

270:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, i8 noundef signext 67)
  %271 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #6
  br label %278

272:                                              ; preds = %267
  %273 = load i32, ptr %6, align 4, !tbaa !5
  %274 = icmp eq i32 %273, 3
  br i1 %274, label %275, label %277

275:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, i8 noundef signext 66)
  %276 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  br label %277

277:                                              ; preds = %275, %272
  br label %278

278:                                              ; preds = %277, %270
  br label %279

279:                                              ; preds = %278, %265
  %280 = load i32, ptr %8, align 4, !tbaa !5
  %281 = icmp eq i32 %280, 1
  br i1 %281, label %282, label %284

282:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, i8 noundef signext 65)
  %283 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  br label %296

284:                                              ; preds = %279
  %285 = load i32, ptr %8, align 4, !tbaa !5
  %286 = icmp eq i32 %285, 2
  br i1 %286, label %287, label %289

287:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %24, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, i8 noundef signext 67)
  %288 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  br label %295

289:                                              ; preds = %284
  %290 = load i32, ptr %8, align 4, !tbaa !5
  %291 = icmp eq i32 %290, 3
  br i1 %291, label %292, label %294

292:                                              ; preds = %289
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %25, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, i8 noundef signext 66)
  %293 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  br label %294

294:                                              ; preds = %292, %289
  br label %295

295:                                              ; preds = %294, %287
  br label %296

296:                                              ; preds = %295, %282
  %297 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11)
  %298 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %297, ptr noundef @.str.3)
  %299 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %298, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11)
  %300 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %299, ptr noundef @.str.3)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %302

301:                                              ; preds = %175
  store i32 0, ptr %3, align 4
  br label %302

302:                                              ; preds = %301, %296, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  %303 = load i32, ptr %3, align 4
  switch i32 %303, label %308 [
    i32 0, label %304
    i32 19, label %305
  ]

304:                                              ; preds = %302
  br label %305

305:                                              ; preds = %304, %302
  %306 = load i32, ptr %8, align 4, !tbaa !5
  %307 = add nsw i32 %306, 1
  store i32 %307, ptr %8, align 4, !tbaa !5
  br label %55, !llvm.loop !17

308:                                              ; preds = %302, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %309 = load i32, ptr %3, align 4
  switch i32 %309, label %314 [
    i32 17, label %310
  ]

310:                                              ; preds = %308
  br label %311

311:                                              ; preds = %310
  %312 = load i32, ptr %7, align 4, !tbaa !5
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %7, align 4, !tbaa !5
  br label %50, !llvm.loop !18

314:                                              ; preds = %308, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  %315 = load i32, ptr %3, align 4
  switch i32 %315, label %320 [
    i32 14, label %316
  ]

316:                                              ; preds = %314
  br label %317

317:                                              ; preds = %316
  %318 = load i32, ptr %6, align 4, !tbaa !5
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %6, align 4, !tbaa !5
  br label %45, !llvm.loop !19

320:                                              ; preds = %314, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %321 = load i32, ptr %3, align 4
  switch i32 %321, label %326 [
    i32 11, label %322
  ]

322:                                              ; preds = %320
  br label %323

323:                                              ; preds = %322
  %324 = load i32, ptr %5, align 4, !tbaa !5
  %325 = add nsw i32 %324, 1
  store i32 %325, ptr %5, align 4, !tbaa !5
  br label %40, !llvm.loop !20

326:                                              ; preds = %320, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  %327 = load i32, ptr %3, align 4
  switch i32 %327, label %332 [
    i32 8, label %328
  ]

328:                                              ; preds = %326
  br label %329

329:                                              ; preds = %328
  %330 = load i32, ptr %4, align 4, !tbaa !5
  %331 = add nsw i32 %330, 1
  store i32 %331, ptr %4, align 4, !tbaa !5
  br label %35, !llvm.loop !21

332:                                              ; preds = %326, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  %333 = load i32, ptr %3, align 4
  switch i32 %333, label %338 [
    i32 5, label %334
  ]

334:                                              ; preds = %332
  br label %335

335:                                              ; preds = %334
  %336 = load i32, ptr %2, align 4, !tbaa !5
  %337 = add nsw i32 %336, 1
  store i32 %337, ptr %2, align 4, !tbaa !5
  br label %30, !llvm.loop !22

338:                                              ; preds = %332, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %339 = load i32, ptr %3, align 4
  switch i32 %339, label %344 [
    i32 2, label %340
    i32 1, label %342
  ]

340:                                              ; preds = %338
  %341 = call i32 @puts(ptr noundef @.str.4)
  store i32 0, ptr %1, align 4
  br label %342

342:                                              ; preds = %340, %338
  %343 = load i32, ptr %1, align 4
  ret i32 %343

344:                                              ; preds = %338
  unreachable
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i8 noundef signext, ptr noundef nonnull align 8 dereferenceable(32)) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #4

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

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

declare i32 @puts(ptr noundef) #5

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

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

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


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

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

@k = external dso_local global i64, align 8
@x = external dso_local global i64, align 8
@n = external dso_local global i64, align 8
@m = external dso_local global i64, align 8
@dp = external dso_local local_unnamed_addr global [51 x [3 x i64]], align 16
@_Z2s1B5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z2s2B5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @k)
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) @x)
  %15 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) @n)
  %16 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) @m)
  %17 = load i64, ptr @n, align 8, !tbaa !5
  %18 = load i64, ptr @m, align 8
  %19 = load i64, ptr @k, align 8
  %.fr = freeze i64 %19
  %.not174 = icmp slt i64 %.fr, 3
  %20 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %.fr
  %21 = load i64, ptr @x, align 8
  br i1 %.not174, label %.preheader165.us, label %.preheader165

.preheader165.us:                                 ; preds = %0, %.split225.us.us
  %indvars.iv329 = phi i64 [ %indvars.iv.next330, %.split225.us.us ], [ 0, %0 ]
  %22 = shl nuw i64 %indvars.iv329, 1
  br label %.preheader164.us.us

.preheader164.us.us:                              ; preds = %.split214.us.us.us, %.preheader165.us
  %indvars.iv325 = phi i64 [ %indvars.iv.next326, %.split214.us.us.us ], [ 0, %.preheader165.us ]
  %indvars.iv317 = phi i64 [ %indvars.iv.next318, %.split214.us.us.us ], [ 1, %.preheader165.us ]
  %indvars.iv315 = phi i64 [ %indvars.iv.next316, %.split214.us.us.us ], [ 0, %.preheader165.us ]
  %23 = shl nuw nsw i64 %indvars.iv325, 1
  %24 = icmp slt i64 %18, %23
  %.not = icmp sgt i64 %18, %23
  %.not339 = icmp sgt i64 %18, %23
  %25 = add nuw nsw i64 %23, 2
  %26 = icmp slt i64 %18, %25
  br label %.preheader163.us.us.us

.preheader163.us.us.us:                           ; preds = %.split.us.us212.us.us, %.preheader164.us.us
  %indvars.iv321 = phi i64 [ %indvars.iv.next322, %.split.us.us212.us.us ], [ 0, %.preheader164.us.us ]
  %27 = icmp ne i64 %indvars.iv321, 0
  %28 = zext i1 %27 to i64
  %29 = or disjoint i64 %22, %28
  br label %.preheader162.us.us.us.us

.preheader162.us.us.us.us:                        ; preds = %.split188.us.us.us.us.us, %.preheader163.us.us.us
  %indvars.iv313 = phi i64 [ %indvars.iv.next314, %.split188.us.us.us.us.us ], [ 0, %.preheader163.us.us.us ]
  %30 = icmp ne i64 %indvars.iv313, 0
  %31 = zext i1 %30 to i64
  %32 = add i64 %29, %31
  %33 = and i64 %32, 4294967295
  %34 = icmp slt i64 %17, %33
  br i1 %34, label %.split188.us.us.us.us.us, label %.preheader161.us189.us.us.us.us.preheader

.preheader161.us189.us.us.us.us.preheader:        ; preds = %.preheader162.us.us.us.us
  br i1 %24, label %38, label %35

.split188.us.us.us.us.us:                         ; preds = %77, %84, %.preheader162.us.us.us.us
  %indvars.iv.next314 = add nuw nsw i64 %indvars.iv313, 1
  %exitcond320.not = icmp eq i64 %indvars.iv.next314, 4
  br i1 %exitcond320.not, label %.split.us.us212.us.us, label %.preheader162.us.us.us.us, !llvm.loop !9

35:                                               ; preds = %.preheader161.us189.us.us.us.us.preheader
  store i64 %indvars.iv329, ptr getelementptr inbounds (i8, ptr @dp, i64 24), align 8, !tbaa !5
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv313, ptr getelementptr inbounds (i8, ptr @dp, i64 40), align 8, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds (i8, ptr @dp, i64 56), i8 0, i64 16, i1 false)
  %36 = load i64, ptr %20, align 8, !tbaa !5
  %37 = icmp eq i64 %36, %21
  br i1 %37, label %.preheader160, label %38

38:                                               ; preds = %35, %.preheader161.us189.us.us.us.us.preheader
  br i1 %.not, label %39, label %.split.split.us.us.us.us.us.us

39:                                               ; preds = %38
  store i64 %indvars.iv329, ptr getelementptr inbounds (i8, ptr @dp, i64 24), align 8, !tbaa !5
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv313, ptr getelementptr inbounds (i8, ptr @dp, i64 40), align 8, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 56), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  %40 = load i64, ptr %20, align 8, !tbaa !5
  %41 = icmp eq i64 %40, %21
  br i1 %41, label %.preheader160, label %42

42:                                               ; preds = %39
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 2, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  %43 = load i64, ptr %20, align 8, !tbaa !5
  %44 = icmp eq i64 %43, %21
  br i1 %44, label %.preheader160, label %45

45:                                               ; preds = %42
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 3, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  %46 = load i64, ptr %20, align 8, !tbaa !5
  %47 = icmp eq i64 %46, %21
  br i1 %47, label %.preheader160, label %.split.split.us.us.us.us.us.us

.split.split.us.us.us.us.us.us:                   ; preds = %38, %45
  br i1 %.not339, label %48, label %51

48:                                               ; preds = %.split.split.us.us.us.us.us.us
  store i64 %indvars.iv329, ptr getelementptr inbounds (i8, ptr @dp, i64 24), align 8, !tbaa !5
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv313, ptr getelementptr inbounds (i8, ptr @dp, i64 40), align 8, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 56), align 8, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  %49 = load i64, ptr %20, align 8, !tbaa !5
  %50 = icmp eq i64 %49, %21
  br i1 %50, label %.preheader160, label %51

51:                                               ; preds = %48, %.split.split.us.us.us.us.us.us
  br i1 %26, label %.split.split.us.us.us.us.us.us.1, label %52

52:                                               ; preds = %51
  store i64 %indvars.iv329, ptr getelementptr inbounds (i8, ptr @dp, i64 24), align 8, !tbaa !5
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv313, ptr getelementptr inbounds (i8, ptr @dp, i64 40), align 8, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 56), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  %53 = load i64, ptr %20, align 8, !tbaa !5
  %54 = icmp eq i64 %53, %21
  br i1 %54, label %.preheader160, label %55

55:                                               ; preds = %52
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 2, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  %56 = load i64, ptr %20, align 8, !tbaa !5
  %57 = icmp eq i64 %56, %21
  br i1 %57, label %.preheader160, label %58

58:                                               ; preds = %55
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 3, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  %59 = load i64, ptr %20, align 8, !tbaa !5
  %60 = icmp eq i64 %59, %21
  br i1 %60, label %.preheader160, label %.split.split.us.us.us.us.us.us.1

.split.split.us.us.us.us.us.us.1:                 ; preds = %51, %58
  br i1 %.not339, label %61, label %64

61:                                               ; preds = %.split.split.us.us.us.us.us.us.1
  store i64 %indvars.iv329, ptr getelementptr inbounds (i8, ptr @dp, i64 24), align 8, !tbaa !5
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv313, ptr getelementptr inbounds (i8, ptr @dp, i64 40), align 8, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 2, ptr getelementptr inbounds (i8, ptr @dp, i64 56), align 8, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  %62 = load i64, ptr %20, align 8, !tbaa !5
  %63 = icmp eq i64 %62, %21
  br i1 %63, label %.preheader160, label %64

64:                                               ; preds = %61, %.split.split.us.us.us.us.us.us.1
  br i1 %26, label %.split.split.us.us.us.us.us.us.2, label %65

65:                                               ; preds = %64
  store i64 %indvars.iv329, ptr getelementptr inbounds (i8, ptr @dp, i64 24), align 8, !tbaa !5
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv313, ptr getelementptr inbounds (i8, ptr @dp, i64 40), align 8, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 2, ptr getelementptr inbounds (i8, ptr @dp, i64 56), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  %66 = load i64, ptr %20, align 8, !tbaa !5
  %67 = icmp eq i64 %66, %21
  br i1 %67, label %.preheader160, label %68

68:                                               ; preds = %65
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 2, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  %69 = load i64, ptr %20, align 8, !tbaa !5
  %70 = icmp eq i64 %69, %21
  br i1 %70, label %.preheader160, label %71

71:                                               ; preds = %68
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 3, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  %72 = load i64, ptr %20, align 8, !tbaa !5
  %73 = icmp eq i64 %72, %21
  br i1 %73, label %.preheader160, label %.split.split.us.us.us.us.us.us.2

.split.split.us.us.us.us.us.us.2:                 ; preds = %64, %71
  br i1 %.not339, label %74, label %77

74:                                               ; preds = %.split.split.us.us.us.us.us.us.2
  store i64 %indvars.iv329, ptr getelementptr inbounds (i8, ptr @dp, i64 24), align 8, !tbaa !5
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv313, ptr getelementptr inbounds (i8, ptr @dp, i64 40), align 8, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 3, ptr getelementptr inbounds (i8, ptr @dp, i64 56), align 8, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  %75 = load i64, ptr %20, align 8, !tbaa !5
  %76 = icmp eq i64 %75, %21
  br i1 %76, label %.preheader160, label %77

77:                                               ; preds = %74, %.split.split.us.us.us.us.us.us.2
  br i1 %26, label %.split188.us.us.us.us.us, label %78

78:                                               ; preds = %77
  store i64 %indvars.iv329, ptr getelementptr inbounds (i8, ptr @dp, i64 24), align 8, !tbaa !5
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv313, ptr getelementptr inbounds (i8, ptr @dp, i64 40), align 8, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 3, ptr getelementptr inbounds (i8, ptr @dp, i64 56), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  %79 = load i64, ptr %20, align 8, !tbaa !5
  %80 = icmp eq i64 %79, %21
  br i1 %80, label %.preheader160, label %81

81:                                               ; preds = %78
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 2, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  %82 = load i64, ptr %20, align 8, !tbaa !5
  %83 = icmp eq i64 %82, %21
  br i1 %83, label %.preheader160, label %84

84:                                               ; preds = %81
  store i64 %indvars.iv321, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv325, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 3, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  %85 = load i64, ptr %20, align 8, !tbaa !5
  %86 = icmp eq i64 %85, %21
  br i1 %86, label %.preheader160, label %.split188.us.us.us.us.us

.split.us.us212.us.us:                            ; preds = %.split188.us.us.us.us.us
  %indvars.iv.next322 = add nuw nsw i64 %indvars.iv321, 1
  %exitcond324.not = icmp eq i64 %indvars.iv.next322, 4
  br i1 %exitcond324.not, label %.split214.us.us.us, label %.preheader163.us.us.us, !llvm.loop !11

.split214.us.us.us:                               ; preds = %.split.us.us212.us.us
  %indvars.iv.next326 = add nuw nsw i64 %indvars.iv325, 1
  %indvars.iv.next316 = add nuw nsw i64 %indvars.iv315, 2
  %indvars.iv.next318 = add nuw nsw i64 %indvars.iv317, 2
  %exitcond328.not = icmp eq i64 %indvars.iv.next326, 101
  br i1 %exitcond328.not, label %.split225.us.us, label %.preheader164.us.us, !llvm.loop !12

.split225.us.us:                                  ; preds = %.split214.us.us.us
  %indvars.iv.next330 = add nuw nsw i64 %indvars.iv329, 1
  %exitcond332.not = icmp eq i64 %indvars.iv.next330, 101
  br i1 %exitcond332.not, label %.split237.us, label %.preheader165.us, !llvm.loop !13

.preheader165:                                    ; preds = %0, %.split225
  %indvars.iv301 = phi i64 [ %indvars.iv.next302, %.split225 ], [ 0, %0 ]
  %87 = shl nuw i64 %indvars.iv301, 1
  br label %.preheader164

.preheader164:                                    ; preds = %.preheader165, %.split214
  %indvars.iv297 = phi i64 [ 0, %.preheader165 ], [ %indvars.iv.next298, %.split214 ]
  %indvars.iv297.tr = trunc i64 %indvars.iv297 to i32
  %88 = shl i32 %indvars.iv297.tr, 1
  br label %.preheader163

.preheader163:                                    ; preds = %.preheader164, %.split
  %indvars.iv293 = phi i64 [ 0, %.preheader164 ], [ %indvars.iv.next294, %.split ]
  %89 = icmp ne i64 %indvars.iv293, 0
  %90 = zext i1 %89 to i64
  %91 = or disjoint i64 %87, %90
  br label %.preheader162

.preheader162:                                    ; preds = %.preheader163, %.split188.us
  %indvars.iv289 = phi i64 [ 0, %.preheader163 ], [ %indvars.iv.next290, %.split188.us ]
  %92 = icmp ne i64 %indvars.iv289, 0
  %93 = zext i1 %92 to i64
  %94 = add i64 %91, %93
  %95 = and i64 %94, 4294967295
  %96 = icmp slt i64 %17, %95
  br i1 %96, label %.split188.us, label %.preheader161

.preheader161:                                    ; preds = %.preheader162, %.split.split
  %indvars.iv285 = phi i64 [ %indvars.iv.next286, %.split.split ], [ 0, %.preheader162 ]
  %97 = icmp ne i64 %indvars.iv285, 0
  %98 = zext i1 %97 to i32
  %99 = or disjoint i32 %88, %98
  %100 = zext nneg i32 %99 to i64
  %101 = icmp slt i64 %18, %100
  br i1 %101, label %173, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader161
  store i64 %indvars.iv301, ptr getelementptr inbounds (i8, ptr @dp, i64 24), align 8, !tbaa !5
  store i64 %indvars.iv293, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv289, ptr getelementptr inbounds (i8, ptr @dp, i64 40), align 8, !tbaa !5
  store i64 %indvars.iv297, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 %indvars.iv285, ptr getelementptr inbounds (i8, ptr @dp, i64 56), align 8, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  br label %105

._crit_edge:                                      ; preds = %126
  %102 = load i64, ptr %20, align 8, !tbaa !5
  %103 = icmp eq i64 %102, %21
  br i1 %103, label %.preheader160.loopexit349, label %173

.preheader160.loopexit349:                        ; preds = %._crit_edge.3, %._crit_edge.2, %._crit_edge.1, %._crit_edge
  %.us-phi182.ph350 = phi i64 [ %175, %._crit_edge.3 ], [ %175, %._crit_edge.2 ], [ %175, %._crit_edge.1 ], [ %100, %._crit_edge ]
  %.us-phi184.ph351 = phi i32 [ 3, %._crit_edge.3 ], [ 2, %._crit_edge.2 ], [ 1, %._crit_edge.1 ], [ 0, %._crit_edge ]
  %104 = trunc nuw nsw i64 %indvars.iv285 to i32
  br label %.preheader160

.preheader160:                                    ; preds = %35, %39, %42, %45, %48, %52, %55, %58, %61, %65, %68, %71, %74, %78, %81, %84, %.preheader160.loopexit349
  %.us-phi.in = phi i64 [ %indvars.iv301, %.preheader160.loopexit349 ], [ %indvars.iv329, %84 ], [ %indvars.iv329, %81 ], [ %indvars.iv329, %78 ], [ %indvars.iv329, %74 ], [ %indvars.iv329, %71 ], [ %indvars.iv329, %68 ], [ %indvars.iv329, %65 ], [ %indvars.iv329, %61 ], [ %indvars.iv329, %58 ], [ %indvars.iv329, %55 ], [ %indvars.iv329, %52 ], [ %indvars.iv329, %48 ], [ %indvars.iv329, %45 ], [ %indvars.iv329, %42 ], [ %indvars.iv329, %39 ], [ %indvars.iv329, %35 ]
  %.us-phi178.in = phi i64 [ %indvars.iv297, %.preheader160.loopexit349 ], [ %indvars.iv325, %84 ], [ %indvars.iv325, %81 ], [ %indvars.iv325, %78 ], [ %indvars.iv325, %74 ], [ %indvars.iv325, %71 ], [ %indvars.iv325, %68 ], [ %indvars.iv325, %65 ], [ %indvars.iv325, %61 ], [ %indvars.iv325, %58 ], [ %indvars.iv325, %55 ], [ %indvars.iv325, %52 ], [ %indvars.iv325, %48 ], [ %indvars.iv325, %45 ], [ %indvars.iv325, %42 ], [ %indvars.iv325, %39 ], [ %indvars.iv325, %35 ]
  %.us-phi179.in = phi i64 [ %indvars.iv293, %.preheader160.loopexit349 ], [ %indvars.iv321, %84 ], [ %indvars.iv321, %81 ], [ %indvars.iv321, %78 ], [ %indvars.iv321, %74 ], [ %indvars.iv321, %71 ], [ %indvars.iv321, %68 ], [ %indvars.iv321, %65 ], [ %indvars.iv321, %61 ], [ %indvars.iv321, %58 ], [ %indvars.iv321, %55 ], [ %indvars.iv321, %52 ], [ %indvars.iv321, %48 ], [ %indvars.iv321, %45 ], [ %indvars.iv321, %42 ], [ %indvars.iv321, %39 ], [ %indvars.iv321, %35 ]
  %.us-phi180.in = phi i64 [ %indvars.iv289, %.preheader160.loopexit349 ], [ %indvars.iv313, %84 ], [ %indvars.iv313, %81 ], [ %indvars.iv313, %78 ], [ %indvars.iv313, %74 ], [ %indvars.iv313, %71 ], [ %indvars.iv313, %68 ], [ %indvars.iv313, %65 ], [ %indvars.iv313, %61 ], [ %indvars.iv313, %58 ], [ %indvars.iv313, %55 ], [ %indvars.iv313, %52 ], [ %indvars.iv313, %48 ], [ %indvars.iv313, %45 ], [ %indvars.iv313, %42 ], [ %indvars.iv313, %39 ], [ %indvars.iv313, %35 ]
  %.us-phi181 = phi i32 [ %104, %.preheader160.loopexit349 ], [ 0, %35 ], [ 0, %39 ], [ 0, %42 ], [ 0, %45 ], [ 1, %48 ], [ 1, %52 ], [ 1, %55 ], [ 1, %58 ], [ 2, %61 ], [ 2, %65 ], [ 2, %68 ], [ 2, %71 ], [ 3, %74 ], [ 3, %78 ], [ 3, %81 ], [ 3, %84 ]
  %.us-phi182 = phi i64 [ %.us-phi182.ph350, %.preheader160.loopexit349 ], [ %indvars.iv315, %35 ], [ %indvars.iv317, %39 ], [ %indvars.iv317, %42 ], [ %indvars.iv317, %45 ], [ %indvars.iv317, %48 ], [ %25, %52 ], [ %25, %55 ], [ %25, %58 ], [ %indvars.iv317, %61 ], [ %25, %65 ], [ %25, %68 ], [ %25, %71 ], [ %indvars.iv317, %74 ], [ %25, %78 ], [ %25, %81 ], [ %25, %84 ]
  %.us-phi183 = phi i64 [ %95, %.preheader160.loopexit349 ], [ %33, %84 ], [ %33, %81 ], [ %33, %78 ], [ %33, %74 ], [ %33, %71 ], [ %33, %68 ], [ %33, %65 ], [ %33, %61 ], [ %33, %58 ], [ %33, %55 ], [ %33, %52 ], [ %33, %48 ], [ %33, %45 ], [ %33, %42 ], [ %33, %39 ], [ %33, %35 ]
  %.us-phi184 = phi i32 [ %.us-phi184.ph351, %.preheader160.loopexit349 ], [ 0, %35 ], [ 1, %39 ], [ 2, %42 ], [ 3, %45 ], [ 0, %48 ], [ 1, %52 ], [ 2, %55 ], [ 3, %58 ], [ 0, %61 ], [ 1, %65 ], [ 2, %68 ], [ 3, %71 ], [ 0, %74 ], [ 1, %78 ], [ 2, %81 ], [ 3, %84 ]
  %.us-phi180 = trunc i64 %.us-phi180.in to i32
  %.us-phi179 = trunc i64 %.us-phi179.in to i32
  %.us-phi178 = trunc i64 %.us-phi178.in to i32
  %.us-phi = trunc i64 %.us-phi.in to i32
  %.not255 = icmp eq i32 %.us-phi, 0
  br i1 %.not255, label %.preheader159, label %.lr.ph247

105:                                              ; preds = %.lr.ph, %126
  %106 = phi i64 [ %indvars.iv297, %.lr.ph ], [ %127, %126 ]
  %107 = phi i64 [ %indvars.iv301, %.lr.ph ], [ %106, %126 ]
  %indvars.iv = phi i64 [ 3, %.lr.ph ], [ %indvars.iv.next, %126 ]
  %108 = add nsw i64 %indvars.iv, -2
  %109 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %108
  %110 = add nsw i64 %106, %107
  %111 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %indvars.iv
  store i64 %110, ptr %111, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %109, i64 8
  %113 = load i64, ptr %112, align 8, !tbaa !5
  %114 = getelementptr inbounds i8, ptr %111, i64 8
  store i64 %113, ptr %114, align 8, !tbaa !5
  %115 = getelementptr inbounds i8, ptr %111, i64 16
  store i64 0, ptr %115, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %109, i64 16
  %117 = load i64, ptr %116, align 8, !tbaa !5
  %118 = icmp eq i64 %117, 1
  br i1 %118, label %119, label %126

119:                                              ; preds = %105
  %120 = add nsw i64 %indvars.iv, -1
  %121 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %120, i64 1
  %122 = load i64, ptr %121, align 8, !tbaa !5
  %123 = icmp eq i64 %122, 2
  br i1 %123, label %124, label %126

124:                                              ; preds = %119
  %125 = add nsw i64 %110, 1
  store i64 %125, ptr %111, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %105, %119, %124
  %127 = phi i64 [ %110, %105 ], [ %110, %119 ], [ %125, %124 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond = icmp eq i64 %indvars.iv, %.fr
  br i1 %exitcond, label %._crit_edge, label %105, !llvm.loop !14

.preheader159:                                    ; preds = %.lr.ph247, %.preheader160
  %.not256 = icmp eq i32 %.us-phi178, 0
  br i1 %.not256, label %.preheader158, label %.lr.ph249

.lr.ph247:                                        ; preds = %.preheader160, %.lr.ph247
  %.683246 = phi i32 [ %129, %.lr.ph247 ], [ %.us-phi, %.preheader160 ]
  %128 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, ptr noundef nonnull @.str)
  %129 = add nsw i32 %.683246, -1
  %130 = icmp sgt i32 %.683246, 1
  br i1 %130, label %.lr.ph247, label %.preheader159, !llvm.loop !15

.preheader158:                                    ; preds = %.lr.ph249, %.preheader159
  %131 = load i64, ptr @n, align 8, !tbaa !5
  %132 = icmp sgt i64 %131, %.us-phi183
  br i1 %132, label %.lr.ph251, label %.preheader

.lr.ph249:                                        ; preds = %.preheader159, %.lr.ph249
  %.599248 = phi i32 [ %134, %.lr.ph249 ], [ %.us-phi178, %.preheader159 ]
  %133 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, ptr noundef nonnull @.str)
  %134 = add nsw i32 %.599248, -1
  %135 = icmp sgt i32 %.599248, 1
  br i1 %135, label %.lr.ph249, label %.preheader158, !llvm.loop !16

.preheader:                                       ; preds = %.lr.ph251, %.preheader158
  %136 = load i64, ptr @m, align 8, !tbaa !5
  %137 = icmp sgt i64 %136, %.us-phi182
  br i1 %137, label %.lr.ph253, label %._crit_edge254

.lr.ph251:                                        ; preds = %.preheader158, %.lr.ph251
  %indvars.iv333 = phi i64 [ %indvars.iv.next334, %.lr.ph251 ], [ 0, %.preheader158 ]
  %138 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, i8 noundef signext 66)
  %indvars.iv.next334 = add nuw nsw i64 %indvars.iv333, 1
  %139 = load i64, ptr @n, align 8, !tbaa !5
  %140 = sub nsw i64 %139, %.us-phi183
  %141 = icmp sgt i64 %140, %indvars.iv.next334
  br i1 %141, label %.lr.ph251, label %.preheader, !llvm.loop !17

._crit_edge254:                                   ; preds = %.lr.ph253, %.preheader
  switch i32 %.us-phi179, label %152 [
    i32 1, label %146
    i32 2, label %148
    i32 3, label %150
  ]

.lr.ph253:                                        ; preds = %.preheader, %.lr.ph253
  %indvars.iv336 = phi i64 [ %indvars.iv.next337, %.lr.ph253 ], [ 0, %.preheader ]
  %142 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, i8 noundef signext 66)
  %indvars.iv.next337 = add nuw nsw i64 %indvars.iv336, 1
  %143 = load i64, ptr @m, align 8, !tbaa !5
  %144 = sub nsw i64 %143, %.us-phi182
  %145 = icmp sgt i64 %144, %indvars.iv.next337
  br i1 %145, label %.lr.ph253, label %._crit_edge254, !llvm.loop !18

146:                                              ; preds = %._crit_edge254
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #7
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %1, i8 noundef signext 65, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11)
  %147 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  br label %152

148:                                              ; preds = %._crit_edge254
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #7
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %2, i8 noundef signext 67, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11)
  %149 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #7
  br label %152

150:                                              ; preds = %._crit_edge254
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i8 noundef signext 66, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11)
  %151 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  br label %152

152:                                              ; preds = %._crit_edge254, %148, %150, %146
  switch i32 %.us-phi181, label %159 [
    i32 1, label %153
    i32 2, label %155
    i32 3, label %157
  ]

153:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #7
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, i8 noundef signext 65, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11)
  %154 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  br label %159

155:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, i8 noundef signext 67, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11)
  %156 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br label %159

157:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, i8 noundef signext 66, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11)
  %158 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br label %159

159:                                              ; preds = %152, %155, %157, %153
  switch i32 %.us-phi180, label %166 [
    i32 1, label %160
    i32 2, label %162
    i32 3, label %164
  ]

160:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, i8 noundef signext 65)
  %161 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  br label %166

162:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, i8 noundef signext 67)
  %163 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %166

164:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, i8 noundef signext 66)
  %165 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %166

166:                                              ; preds = %159, %162, %164, %160
  switch i32 %.us-phi184, label %254 [
    i32 1, label %167
    i32 2, label %169
    i32 3, label %171
  ]

167:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, i8 noundef signext 65)
  %168 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  br label %254

169:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #7
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, i8 noundef signext 67)
  %170 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  br label %254

171:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, i8 noundef signext 66)
  %172 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  br label %254

173:                                              ; preds = %.preheader161, %._crit_edge
  %174 = add nuw nsw i32 %99, 1
  %175 = zext nneg i32 %174 to i64
  %176 = icmp slt i64 %18, %175
  br i1 %176, label %.split.split, label %.lr.ph.1

.lr.ph.1:                                         ; preds = %173
  store i64 %indvars.iv301, ptr getelementptr inbounds (i8, ptr @dp, i64 24), align 8, !tbaa !5
  store i64 %indvars.iv293, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv289, ptr getelementptr inbounds (i8, ptr @dp, i64 40), align 8, !tbaa !5
  store i64 %indvars.iv297, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 %indvars.iv285, ptr getelementptr inbounds (i8, ptr @dp, i64 56), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  br label %177

177:                                              ; preds = %198, %.lr.ph.1
  %178 = phi i64 [ %indvars.iv297, %.lr.ph.1 ], [ %199, %198 ]
  %179 = phi i64 [ %indvars.iv301, %.lr.ph.1 ], [ %178, %198 ]
  %indvars.iv.1 = phi i64 [ 3, %.lr.ph.1 ], [ %indvars.iv.next.1, %198 ]
  %180 = add nsw i64 %indvars.iv.1, -2
  %181 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %180
  %182 = add nsw i64 %178, %179
  %183 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %indvars.iv.1
  store i64 %182, ptr %183, align 8, !tbaa !5
  %184 = getelementptr inbounds i8, ptr %181, i64 8
  %185 = load i64, ptr %184, align 8, !tbaa !5
  %186 = getelementptr inbounds i8, ptr %183, i64 8
  store i64 %185, ptr %186, align 8, !tbaa !5
  %187 = getelementptr inbounds i8, ptr %183, i64 16
  store i64 1, ptr %187, align 8, !tbaa !5
  %188 = getelementptr inbounds i8, ptr %181, i64 16
  %189 = load i64, ptr %188, align 8, !tbaa !5
  %190 = icmp eq i64 %189, 1
  br i1 %190, label %191, label %198

191:                                              ; preds = %177
  %192 = add nsw i64 %indvars.iv.1, -1
  %193 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %192, i64 1
  %194 = load i64, ptr %193, align 8, !tbaa !5
  %195 = icmp eq i64 %194, 2
  br i1 %195, label %196, label %198

196:                                              ; preds = %191
  %197 = add nsw i64 %182, 1
  store i64 %197, ptr %183, align 8, !tbaa !5
  br label %198

198:                                              ; preds = %196, %191, %177
  %199 = phi i64 [ %197, %196 ], [ %182, %191 ], [ %182, %177 ]
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.1 = icmp eq i64 %indvars.iv.1, %.fr
  br i1 %exitcond.1, label %._crit_edge.1, label %177, !llvm.loop !14

._crit_edge.1:                                    ; preds = %198
  %200 = load i64, ptr %20, align 8, !tbaa !5
  %201 = icmp eq i64 %200, %21
  br i1 %201, label %.preheader160.loopexit349, label %202

202:                                              ; preds = %._crit_edge.1
  br i1 %176, label %.split.split, label %.lr.ph.2

.lr.ph.2:                                         ; preds = %202
  store i64 %indvars.iv301, ptr getelementptr inbounds (i8, ptr @dp, i64 24), align 8, !tbaa !5
  store i64 %indvars.iv293, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv289, ptr getelementptr inbounds (i8, ptr @dp, i64 40), align 8, !tbaa !5
  store i64 %indvars.iv297, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 %indvars.iv285, ptr getelementptr inbounds (i8, ptr @dp, i64 56), align 8, !tbaa !5
  store i64 2, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  br label %203

203:                                              ; preds = %224, %.lr.ph.2
  %204 = phi i64 [ %indvars.iv297, %.lr.ph.2 ], [ %225, %224 ]
  %205 = phi i64 [ %indvars.iv301, %.lr.ph.2 ], [ %204, %224 ]
  %indvars.iv.2 = phi i64 [ 3, %.lr.ph.2 ], [ %indvars.iv.next.2, %224 ]
  %206 = add nsw i64 %indvars.iv.2, -2
  %207 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %206
  %208 = add nsw i64 %204, %205
  %209 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %indvars.iv.2
  store i64 %208, ptr %209, align 8, !tbaa !5
  %210 = getelementptr inbounds i8, ptr %207, i64 8
  %211 = load i64, ptr %210, align 8, !tbaa !5
  %212 = getelementptr inbounds i8, ptr %209, i64 8
  store i64 %211, ptr %212, align 8, !tbaa !5
  %213 = getelementptr inbounds i8, ptr %209, i64 16
  store i64 2, ptr %213, align 8, !tbaa !5
  %214 = getelementptr inbounds i8, ptr %207, i64 16
  %215 = load i64, ptr %214, align 8, !tbaa !5
  %216 = icmp eq i64 %215, 1
  br i1 %216, label %217, label %224

217:                                              ; preds = %203
  %218 = add nsw i64 %indvars.iv.2, -1
  %219 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %218, i64 1
  %220 = load i64, ptr %219, align 8, !tbaa !5
  %221 = icmp eq i64 %220, 2
  br i1 %221, label %222, label %224

222:                                              ; preds = %217
  %223 = add nsw i64 %208, 1
  store i64 %223, ptr %209, align 8, !tbaa !5
  br label %224

224:                                              ; preds = %222, %217, %203
  %225 = phi i64 [ %223, %222 ], [ %208, %217 ], [ %208, %203 ]
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %exitcond.2 = icmp eq i64 %indvars.iv.2, %.fr
  br i1 %exitcond.2, label %._crit_edge.2, label %203, !llvm.loop !14

._crit_edge.2:                                    ; preds = %224
  %226 = load i64, ptr %20, align 8, !tbaa !5
  %227 = icmp eq i64 %226, %21
  br i1 %227, label %.preheader160.loopexit349, label %228

228:                                              ; preds = %._crit_edge.2
  br i1 %176, label %.split.split, label %.lr.ph.3

.lr.ph.3:                                         ; preds = %228
  store i64 %indvars.iv301, ptr getelementptr inbounds (i8, ptr @dp, i64 24), align 8, !tbaa !5
  store i64 %indvars.iv293, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  store i64 %indvars.iv289, ptr getelementptr inbounds (i8, ptr @dp, i64 40), align 8, !tbaa !5
  store i64 %indvars.iv297, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 %indvars.iv285, ptr getelementptr inbounds (i8, ptr @dp, i64 56), align 8, !tbaa !5
  store i64 3, ptr getelementptr inbounds (i8, ptr @dp, i64 64), align 16, !tbaa !5
  br label %229

229:                                              ; preds = %250, %.lr.ph.3
  %230 = phi i64 [ %indvars.iv297, %.lr.ph.3 ], [ %251, %250 ]
  %231 = phi i64 [ %indvars.iv301, %.lr.ph.3 ], [ %230, %250 ]
  %indvars.iv.3 = phi i64 [ 3, %.lr.ph.3 ], [ %indvars.iv.next.3, %250 ]
  %232 = add nsw i64 %indvars.iv.3, -2
  %233 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %232
  %234 = add nsw i64 %230, %231
  %235 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %indvars.iv.3
  store i64 %234, ptr %235, align 8, !tbaa !5
  %236 = getelementptr inbounds i8, ptr %233, i64 8
  %237 = load i64, ptr %236, align 8, !tbaa !5
  %238 = getelementptr inbounds i8, ptr %235, i64 8
  store i64 %237, ptr %238, align 8, !tbaa !5
  %239 = getelementptr inbounds i8, ptr %235, i64 16
  store i64 3, ptr %239, align 8, !tbaa !5
  %240 = getelementptr inbounds i8, ptr %233, i64 16
  %241 = load i64, ptr %240, align 8, !tbaa !5
  %242 = icmp eq i64 %241, 1
  br i1 %242, label %243, label %250

243:                                              ; preds = %229
  %244 = add nsw i64 %indvars.iv.3, -1
  %245 = getelementptr inbounds [51 x [3 x i64]], ptr @dp, i64 0, i64 %244, i64 1
  %246 = load i64, ptr %245, align 8, !tbaa !5
  %247 = icmp eq i64 %246, 2
  br i1 %247, label %248, label %250

248:                                              ; preds = %243
  %249 = add nsw i64 %234, 1
  store i64 %249, ptr %235, align 8, !tbaa !5
  br label %250

250:                                              ; preds = %248, %243, %229
  %251 = phi i64 [ %249, %248 ], [ %234, %243 ], [ %234, %229 ]
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv.3, 1
  %exitcond.3 = icmp eq i64 %indvars.iv.3, %.fr
  br i1 %exitcond.3, label %._crit_edge.3, label %229, !llvm.loop !14

._crit_edge.3:                                    ; preds = %250
  %252 = load i64, ptr %20, align 8, !tbaa !5
  %253 = icmp eq i64 %252, %21
  br i1 %253, label %.preheader160.loopexit349, label %.split.split

.split.split:                                     ; preds = %173, %202, %._crit_edge.3, %228
  %indvars.iv.next286 = add nuw nsw i64 %indvars.iv285, 1
  %exitcond288.not = icmp eq i64 %indvars.iv.next286, 4
  br i1 %exitcond288.not, label %.split188.us, label %.preheader161, !llvm.loop !19

.split188.us:                                     ; preds = %.split.split, %.preheader162
  %indvars.iv.next290 = add nuw nsw i64 %indvars.iv289, 1
  %exitcond292.not = icmp eq i64 %indvars.iv.next290, 4
  br i1 %exitcond292.not, label %.split, label %.preheader162, !llvm.loop !9

.split:                                           ; preds = %.split188.us
  %indvars.iv.next294 = add nuw nsw i64 %indvars.iv293, 1
  %exitcond296.not = icmp eq i64 %indvars.iv.next294, 4
  br i1 %exitcond296.not, label %.split214, label %.preheader163, !llvm.loop !11

.split214:                                        ; preds = %.split
  %indvars.iv.next298 = add nuw nsw i64 %indvars.iv297, 1
  %exitcond300.not = icmp eq i64 %indvars.iv.next298, 101
  br i1 %exitcond300.not, label %.split225, label %.preheader164, !llvm.loop !12

.split225:                                        ; preds = %.split214
  %indvars.iv.next302 = add nuw nsw i64 %indvars.iv301, 1
  %exitcond304.not = icmp eq i64 %indvars.iv.next302, 101
  br i1 %exitcond304.not, label %.split237.us, label %.preheader165, !llvm.loop !13

254:                                              ; preds = %167, %171, %169, %166
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11)
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %255, ptr noundef nonnull @.str.3)
  %257 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %256, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11)
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %257, ptr noundef nonnull @.str.3)
  br label %260

.split237.us:                                     ; preds = %.split225, %.split225.us.us
  %259 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %260

260:                                              ; preds = %254, %.split237.us
  ret i32 0
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i8 noundef signext, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #4

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #5

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

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

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

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


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