; LLVM IR from upupming/algorithm :: acwing/每日一题·夏季/Week 2/AcWing 3516. 最大面积 (main)

; 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" }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@g = external dso_local global [2010 x [2010 x i32]], align 16
@U = external dso_local global [2010 x i32], align 16
@D = external dso_local global [2010 x i32], align 16
@L = external dso_local global [2010 x i32], align 16
@R = external dso_local global [2010 x i32], align 16
@_Z1sB5cxx11 = external dso_local global [2010 x %"class.std::__cxx11::basic_string"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; 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 uwtable
declare dso_local noundef i32 @_Z4calcPii(ptr noundef, i32 noundef) #1

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

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

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

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

21:                                               ; preds = %38, %0
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = icmp sle i32 %22, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %41

26:                                               ; preds = %21
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [2010 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %28
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %29)
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #8
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [2010 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %32
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i8 noundef signext 32, ptr noundef nonnull align 8 dereferenceable(32) %33)
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [2010 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %35
  %37 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #8
  br label %38

38:                                               ; preds = %26
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %2, align 4, !tbaa !5
  br label %21, !llvm.loop !9

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

42:                                               ; preds = %106, %41
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = load i32, ptr @n, align 4, !tbaa !5
  %45 = icmp sle i32 %43, %44
  br i1 %45, label %47, label %46

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

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %87, %47
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = load i32, ptr @m, align 4, !tbaa !5
  %51 = icmp sle i32 %49, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %48
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %90

53:                                               ; preds = %48
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [2010 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %55
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %56, i64 noundef %58)
  %60 = load i8, ptr %59, align 1, !tbaa !11
  %61 = sext i8 %60 to i32
  %62 = icmp eq i32 %61, 49
  br i1 %62, label %63, label %79

63:                                               ; preds = %53
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = sub nsw i32 %64, 1
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %66
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [2010 x i32], ptr %67, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %74
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [2010 x i32], ptr %75, i64 0, i64 %77
  store i32 %72, ptr %78, align 4, !tbaa !5
  br label %86

79:                                               ; preds = %53
  %80 = load i32, ptr %4, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %81
  %83 = load i32, ptr %6, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [2010 x i32], ptr %82, i64 0, i64 %84
  store i32 0, ptr %85, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %79, %63
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %6, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %6, align 4, !tbaa !5
  br label %48, !llvm.loop !12

90:                                               ; preds = %52
  %91 = load i32, ptr %4, align 4, !tbaa !5
  %92 = sub nsw i32 %91, 1
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [2010 x i32], ptr @U, i64 0, i64 %93
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %95 = load i32, ptr %4, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %96
  %98 = getelementptr inbounds [2010 x i32], ptr %97, i64 0, i64 0
  %99 = load i32, ptr @m, align 4, !tbaa !5
  %100 = call noundef i32 @_Z4calcPii(ptr noundef %98, i32 noundef %99)
  store i32 %100, ptr %7, align 4, !tbaa !5
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %94, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = load i32, ptr %4, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [2010 x i32], ptr @U, i64 0, i64 %104
  store i32 %102, ptr %105, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %106

106:                                              ; preds = %90
  %107 = load i32, ptr %4, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %4, align 4, !tbaa !5
  br label %42, !llvm.loop !13

109:                                              ; preds = %46
  call void @llvm.memset.p0.i64(ptr align 16 @g, i8 0, i64 16160400, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %110 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %110, ptr %8, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %174, %109
  %112 = load i32, ptr %8, align 4, !tbaa !5
  %113 = icmp sge i32 %112, 1
  br i1 %113, label %115, label %114

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

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

116:                                              ; preds = %155, %115
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = load i32, ptr @m, align 4, !tbaa !5
  %119 = icmp sle i32 %117, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %116
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %158

121:                                              ; preds = %116
  %122 = load i32, ptr %8, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [2010 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %123
  %125 = load i32, ptr %9, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %124, i64 noundef %126)
  %128 = load i8, ptr %127, align 1, !tbaa !11
  %129 = sext i8 %128 to i32
  %130 = icmp eq i32 %129, 49
  br i1 %130, label %131, label %147

131:                                              ; preds = %121
  %132 = load i32, ptr %8, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %134
  %136 = load i32, ptr %9, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [2010 x i32], ptr %135, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  %141 = load i32, ptr %8, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %142
  %144 = load i32, ptr %9, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [2010 x i32], ptr %143, i64 0, i64 %145
  store i32 %140, ptr %146, align 4, !tbaa !5
  br label %154

147:                                              ; preds = %121
  %148 = load i32, ptr %8, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %149
  %151 = load i32, ptr %9, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [2010 x i32], ptr %150, i64 0, i64 %152
  store i32 0, ptr %153, align 4, !tbaa !5
  br label %154

154:                                              ; preds = %147, %131
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %9, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %9, align 4, !tbaa !5
  br label %116, !llvm.loop !14

158:                                              ; preds = %120
  %159 = load i32, ptr %8, align 4, !tbaa !5
  %160 = add nsw i32 %159, 1
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [2010 x i32], ptr @D, i64 0, i64 %161
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %163 = load i32, ptr %8, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %164
  %166 = getelementptr inbounds [2010 x i32], ptr %165, i64 0, i64 0
  %167 = load i32, ptr @m, align 4, !tbaa !5
  %168 = call noundef i32 @_Z4calcPii(ptr noundef %166, i32 noundef %167)
  store i32 %168, ptr %10, align 4, !tbaa !5
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %162, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = load i32, ptr %8, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [2010 x i32], ptr @D, i64 0, i64 %172
  store i32 %170, ptr %173, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %174

174:                                              ; preds = %158
  %175 = load i32, ptr %8, align 4, !tbaa !5
  %176 = add nsw i32 %175, -1
  store i32 %176, ptr %8, align 4, !tbaa !5
  br label %111, !llvm.loop !15

177:                                              ; preds = %114
  call void @llvm.memset.p0.i64(ptr align 16 @g, i8 0, i64 16160400, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %178

178:                                              ; preds = %242, %177
  %179 = load i32, ptr %11, align 4, !tbaa !5
  %180 = load i32, ptr @m, align 4, !tbaa !5
  %181 = icmp sle i32 %179, %180
  br i1 %181, label %183, label %182

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

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

184:                                              ; preds = %223, %183
  %185 = load i32, ptr %12, align 4, !tbaa !5
  %186 = load i32, ptr @n, align 4, !tbaa !5
  %187 = icmp sle i32 %185, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %184
  store i32 20, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %226

189:                                              ; preds = %184
  %190 = load i32, ptr %12, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [2010 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %191
  %193 = load i32, ptr %11, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %192, i64 noundef %194)
  %196 = load i8, ptr %195, align 1, !tbaa !11
  %197 = sext i8 %196 to i32
  %198 = icmp eq i32 %197, 49
  br i1 %198, label %199, label %215

199:                                              ; preds = %189
  %200 = load i32, ptr %11, align 4, !tbaa !5
  %201 = sub nsw i32 %200, 1
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %202
  %204 = load i32, ptr %12, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [2010 x i32], ptr %203, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  %209 = load i32, ptr %11, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %210
  %212 = load i32, ptr %12, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [2010 x i32], ptr %211, i64 0, i64 %213
  store i32 %208, ptr %214, align 4, !tbaa !5
  br label %222

215:                                              ; preds = %189
  %216 = load i32, ptr %11, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %217
  %219 = load i32, ptr %12, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [2010 x i32], ptr %218, i64 0, i64 %220
  store i32 0, ptr %221, align 4, !tbaa !5
  br label %222

222:                                              ; preds = %215, %199
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr %12, align 4, !tbaa !5
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %12, align 4, !tbaa !5
  br label %184, !llvm.loop !16

226:                                              ; preds = %188
  %227 = load i32, ptr %11, align 4, !tbaa !5
  %228 = sub nsw i32 %227, 1
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [2010 x i32], ptr @L, i64 0, i64 %229
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %231 = load i32, ptr %11, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %232
  %234 = getelementptr inbounds [2010 x i32], ptr %233, i64 0, i64 0
  %235 = load i32, ptr @n, align 4, !tbaa !5
  %236 = call noundef i32 @_Z4calcPii(ptr noundef %234, i32 noundef %235)
  store i32 %236, ptr %13, align 4, !tbaa !5
  %237 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %230, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %238 = load i32, ptr %237, align 4, !tbaa !5
  %239 = load i32, ptr %11, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [2010 x i32], ptr @L, i64 0, i64 %240
  store i32 %238, ptr %241, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %242

242:                                              ; preds = %226
  %243 = load i32, ptr %11, align 4, !tbaa !5
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %11, align 4, !tbaa !5
  br label %178, !llvm.loop !17

245:                                              ; preds = %182
  call void @llvm.memset.p0.i64(ptr align 16 @g, i8 0, i64 16160400, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %246 = load i32, ptr @m, align 4, !tbaa !5
  store i32 %246, ptr %14, align 4, !tbaa !5
  br label %247

247:                                              ; preds = %310, %245
  %248 = load i32, ptr %14, align 4, !tbaa !5
  %249 = icmp sge i32 %248, 1
  br i1 %249, label %251, label %250

250:                                              ; preds = %247
  store i32 23, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %313

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

252:                                              ; preds = %291, %251
  %253 = load i32, ptr %15, align 4, !tbaa !5
  %254 = load i32, ptr @n, align 4, !tbaa !5
  %255 = icmp sle i32 %253, %254
  br i1 %255, label %257, label %256

256:                                              ; preds = %252
  store i32 26, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %294

257:                                              ; preds = %252
  %258 = load i32, ptr %15, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [2010 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %259
  %261 = load i32, ptr %14, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %260, i64 noundef %262)
  %264 = load i8, ptr %263, align 1, !tbaa !11
  %265 = sext i8 %264 to i32
  %266 = icmp eq i32 %265, 49
  br i1 %266, label %267, label %283

267:                                              ; preds = %257
  %268 = load i32, ptr %14, align 4, !tbaa !5
  %269 = add nsw i32 %268, 1
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %270
  %272 = load i32, ptr %15, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [2010 x i32], ptr %271, i64 0, i64 %273
  %275 = load i32, ptr %274, align 4, !tbaa !5
  %276 = add nsw i32 %275, 1
  %277 = load i32, ptr %14, align 4, !tbaa !5
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %278
  %280 = load i32, ptr %15, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [2010 x i32], ptr %279, i64 0, i64 %281
  store i32 %276, ptr %282, align 4, !tbaa !5
  br label %290

283:                                              ; preds = %257
  %284 = load i32, ptr %14, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %285
  %287 = load i32, ptr %15, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [2010 x i32], ptr %286, i64 0, i64 %288
  store i32 0, ptr %289, align 4, !tbaa !5
  br label %290

290:                                              ; preds = %283, %267
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %15, align 4, !tbaa !5
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %15, align 4, !tbaa !5
  br label %252, !llvm.loop !18

294:                                              ; preds = %256
  %295 = load i32, ptr %14, align 4, !tbaa !5
  %296 = add nsw i32 %295, 1
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [2010 x i32], ptr @R, i64 0, i64 %297
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %299 = load i32, ptr %14, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %300
  %302 = getelementptr inbounds [2010 x i32], ptr %301, i64 0, i64 0
  %303 = load i32, ptr @n, align 4, !tbaa !5
  %304 = call noundef i32 @_Z4calcPii(ptr noundef %302, i32 noundef %303)
  store i32 %304, ptr %16, align 4, !tbaa !5
  %305 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %298, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %306 = load i32, ptr %305, align 4, !tbaa !5
  %307 = load i32, ptr %14, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [2010 x i32], ptr @R, i64 0, i64 %308
  store i32 %306, ptr %309, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %310

310:                                              ; preds = %294
  %311 = load i32, ptr %14, align 4, !tbaa !5
  %312 = add nsw i32 %311, -1
  store i32 %312, ptr %14, align 4, !tbaa !5
  br label %247, !llvm.loop !19

313:                                              ; preds = %250
  %314 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @q)
  br label %315

315:                                              ; preds = %319, %313
  %316 = load i32, ptr @q, align 4, !tbaa !5
  %317 = add nsw i32 %316, -1
  store i32 %317, ptr @q, align 4, !tbaa !5
  %318 = icmp ne i32 %316, 0
  br i1 %318, label %319, label %348

319:                                              ; preds = %315
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %320 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %321 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %320, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %322 = load i32, ptr %17, align 4, !tbaa !5
  %323 = add nsw i32 %322, 1
  store i32 %323, ptr %17, align 4, !tbaa !5
  %324 = load i32, ptr %18, align 4, !tbaa !5
  %325 = add nsw i32 %324, 1
  store i32 %325, ptr %18, align 4, !tbaa !5
  %326 = load i32, ptr %17, align 4, !tbaa !5
  %327 = sub nsw i32 %326, 1
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [2010 x i32], ptr @U, i64 0, i64 %328
  %330 = load i32, ptr %17, align 4, !tbaa !5
  %331 = add nsw i32 %330, 1
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [2010 x i32], ptr @D, i64 0, i64 %332
  %334 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %329, ptr noundef nonnull align 4 dereferenceable(4) %333)
  %335 = load i32, ptr %18, align 4, !tbaa !5
  %336 = sub nsw i32 %335, 1
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [2010 x i32], ptr @L, i64 0, i64 %337
  %339 = load i32, ptr %18, align 4, !tbaa !5
  %340 = add nsw i32 %339, 1
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [2010 x i32], ptr @R, i64 0, i64 %341
  %343 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %338, ptr noundef nonnull align 4 dereferenceable(4) %342)
  %344 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %334, ptr noundef nonnull align 4 dereferenceable(4) %343)
  %345 = load i32, ptr %344, align 4, !tbaa !5
  %346 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %345)
  %347 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %346, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %315, !llvm.loop !20

348:                                              ; preds = %315
  ret i32 0
}

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

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

; 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)) #1

; 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: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #0 align 2

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!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}
!20 = distinct !{!20, !10}


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

%"class.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" }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@g = external dso_local global [2010 x [2010 x i32]], align 16
@U = external dso_local global [2010 x i32], align 16
@D = external dso_local global [2010 x i32], align 16
@L = external dso_local global [2010 x i32], align 16
@R = external dso_local global [2010 x i32], align 16
@_Z1sB5cxx11 = external dso_local global [2010 x %"class.std::__cxx11::basic_string"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; 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 uwtable
declare dso_local noundef i32 @_Z4calcPii(ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %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 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %9 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %10 = load i32, ptr @n, align 4, !tbaa !5
  %.not89 = icmp slt i32 %10, 1
  br i1 %.not89, label %._crit_edge104, label %.lr.ph

.preheader83:                                     ; preds = %.lr.ph
  %.not7394 = icmp slt i32 %14, 1
  br i1 %.not7394, label %._crit_edge104, label %.preheader82

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %11 = getelementptr inbounds [2010 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %indvars.iv
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %11)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #8
  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 32, ptr noundef nonnull align 8 dereferenceable(32) %11)
  %13 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %14 = load i32, ptr @n, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %.not.not = icmp slt i64 %indvars.iv, %15
  br i1 %.not.not, label %.lr.ph, label %.preheader83, !llvm.loop !9

.preheader82:                                     ; preds = %.preheader83, %._crit_edge
  %indvars.iv135 = phi i64 [ %indvars.iv.next136, %._crit_edge ], [ 1, %.preheader83 ]
  %16 = load i32, ptr @m, align 4, !tbaa !5
  %.not7991 = icmp slt i32 %16, 1
  br i1 %.not7991, label %.preheader82.._crit_edge_crit_edge, label %.lr.ph93

.preheader82.._crit_edge_crit_edge:               ; preds = %.preheader82
  %.pre163 = add nsw i64 %indvars.iv135, -1
  br label %._crit_edge

.lr.ph93:                                         ; preds = %.preheader82
  %17 = getelementptr inbounds [2010 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %indvars.iv135
  %18 = add nsw i64 %indvars.iv135, -1
  br label %29

._crit_edge96:                                    ; preds = %._crit_edge
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16160400) @g, i8 0, i64 16160400, i1 false)
  %19 = icmp sgt i32 %27, 0
  br i1 %19, label %.preheader81.preheader, label %._crit_edge104

.preheader81.preheader:                           ; preds = %._crit_edge96
  %20 = zext nneg i32 %27 to i64
  br label %.preheader81

._crit_edge:                                      ; preds = %37, %.preheader82.._crit_edge_crit_edge
  %.pre-phi164 = phi i64 [ %.pre163, %.preheader82.._crit_edge_crit_edge ], [ %18, %37 ]
  %.lcssa87 = phi i32 [ %16, %.preheader82.._crit_edge_crit_edge ], [ %39, %37 ]
  %21 = getelementptr inbounds [2010 x i32], ptr @U, i64 0, i64 %.pre-phi164
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %22 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %indvars.iv135
  %23 = call noundef i32 @_Z4calcPii(ptr noundef nonnull %22, i32 noundef %.lcssa87)
  store i32 %23, ptr %2, align 4, !tbaa !5
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = getelementptr inbounds [2010 x i32], ptr @U, i64 0, i64 %indvars.iv135
  store i32 %25, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %27 = load i32, ptr @n, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %.not73.not = icmp slt i64 %indvars.iv135, %28
  br i1 %.not73.not, label %.preheader82, label %._crit_edge96, !llvm.loop !11

29:                                               ; preds = %.lr.ph93, %37
  %indvars.iv132 = phi i64 [ 1, %.lr.ph93 ], [ %indvars.iv.next133, %37 ]
  %30 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %17, i64 noundef %indvars.iv132)
  %31 = load i8, ptr %30, align 1, !tbaa !12
  %32 = icmp eq i8 %31, 49
  br i1 %32, label %33, label %37

33:                                               ; preds = %29
  %34 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %18, i64 %indvars.iv132
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  br label %37

37:                                               ; preds = %29, %33
  %.sink = phi i32 [ %36, %33 ], [ 0, %29 ]
  %38 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %indvars.iv135, i64 %indvars.iv132
  store i32 %.sink, ptr %38, align 4
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %39 = load i32, ptr @m, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %.not79.not = icmp slt i64 %indvars.iv132, %40
  br i1 %.not79.not, label %29, label %._crit_edge, !llvm.loop !13

.preheader81:                                     ; preds = %.preheader81.preheader, %._crit_edge101
  %indvars.iv141 = phi i64 [ %20, %.preheader81.preheader ], [ %indvars.iv.next142, %._crit_edge101 ]
  %41 = load i32, ptr @m, align 4, !tbaa !5
  %.not7898 = icmp slt i32 %41, 1
  br i1 %.not7898, label %.preheader81.._crit_edge101_crit_edge, label %.lr.ph100

.preheader81.._crit_edge101_crit_edge:            ; preds = %.preheader81
  %.pre = add nuw nsw i64 %indvars.iv141, 1
  br label %._crit_edge101

.lr.ph100:                                        ; preds = %.preheader81
  %42 = getelementptr inbounds [2010 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %indvars.iv141
  %43 = add nuw nsw i64 %indvars.iv141, 1
  br label %52

._crit_edge104:                                   ; preds = %._crit_edge101, %0, %.preheader83, %._crit_edge96
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16160400) @g, i8 0, i64 16160400, i1 false)
  %44 = load i32, ptr @m, align 4, !tbaa !5
  %.not74110 = icmp slt i32 %44, 1
  br i1 %.not74110, label %._crit_edge120, label %.preheader80

._crit_edge101:                                   ; preds = %60, %.preheader81.._crit_edge101_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.preheader81.._crit_edge101_crit_edge ], [ %43, %60 ]
  %.lcssa86 = phi i32 [ %41, %.preheader81.._crit_edge101_crit_edge ], [ %62, %60 ]
  %45 = getelementptr inbounds [2010 x i32], ptr @D, i64 0, i64 %.pre-phi
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %46 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %indvars.iv141
  %47 = call noundef i32 @_Z4calcPii(ptr noundef nonnull %46, i32 noundef %.lcssa86)
  store i32 %47, ptr %3, align 4, !tbaa !5
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %45, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = getelementptr inbounds [2010 x i32], ptr @D, i64 0, i64 %indvars.iv141
  store i32 %49, ptr %50, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  %indvars.iv.next142 = add nsw i64 %indvars.iv141, -1
  %51 = icmp sgt i64 %indvars.iv141, 1
  br i1 %51, label %.preheader81, label %._crit_edge104, !llvm.loop !14

52:                                               ; preds = %.lr.ph100, %60
  %indvars.iv138 = phi i64 [ 1, %.lr.ph100 ], [ %indvars.iv.next139, %60 ]
  %53 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %42, i64 noundef %indvars.iv138)
  %54 = load i8, ptr %53, align 1, !tbaa !12
  %55 = icmp eq i8 %54, 49
  br i1 %55, label %56, label %60

56:                                               ; preds = %52
  %57 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %43, i64 %indvars.iv138
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  br label %60

60:                                               ; preds = %52, %56
  %.sink156 = phi i32 [ %59, %56 ], [ 0, %52 ]
  %61 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %indvars.iv141, i64 %indvars.iv138
  store i32 %.sink156, ptr %61, align 4
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %62 = load i32, ptr @m, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %.not78.not = icmp slt i64 %indvars.iv138, %63
  br i1 %.not78.not, label %52, label %._crit_edge101, !llvm.loop !15

.preheader80:                                     ; preds = %._crit_edge104, %._crit_edge108
  %indvars.iv147 = phi i64 [ %indvars.iv.next148, %._crit_edge108 ], [ 1, %._crit_edge104 ]
  %64 = load i32, ptr @n, align 4, !tbaa !5
  %.not77105 = icmp slt i32 %64, 1
  %.pre161 = add nsw i64 %indvars.iv147, -1
  br i1 %.not77105, label %._crit_edge108, label %.lr.ph107

._crit_edge112:                                   ; preds = %._crit_edge108
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16160400) @g, i8 0, i64 16160400, i1 false)
  %65 = icmp sgt i32 %73, 0
  br i1 %65, label %.preheader.preheader, label %._crit_edge120

.preheader.preheader:                             ; preds = %._crit_edge112
  %66 = zext nneg i32 %73 to i64
  br label %.preheader

._crit_edge108:                                   ; preds = %83, %.preheader80
  %.lcssa84 = phi i32 [ %64, %.preheader80 ], [ %85, %83 ]
  %67 = getelementptr inbounds [2010 x i32], ptr @L, i64 0, i64 %.pre161
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  %68 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %indvars.iv147
  %69 = call noundef i32 @_Z4calcPii(ptr noundef nonnull %68, i32 noundef %.lcssa84)
  store i32 %69, ptr %4, align 4, !tbaa !5
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %67, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = getelementptr inbounds [2010 x i32], ptr @L, i64 0, i64 %indvars.iv147
  store i32 %71, ptr %72, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %73 = load i32, ptr @m, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %.not74.not = icmp slt i64 %indvars.iv147, %74
  br i1 %.not74.not, label %.preheader80, label %._crit_edge112, !llvm.loop !16

.lr.ph107:                                        ; preds = %.preheader80, %83
  %indvars.iv144 = phi i64 [ %indvars.iv.next145, %83 ], [ 1, %.preheader80 ]
  %75 = getelementptr inbounds [2010 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %indvars.iv144
  %76 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %75, i64 noundef %indvars.iv147)
  %77 = load i8, ptr %76, align 1, !tbaa !12
  %78 = icmp eq i8 %77, 49
  br i1 %78, label %79, label %83

79:                                               ; preds = %.lr.ph107
  %80 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %.pre161, i64 %indvars.iv144
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  br label %83

83:                                               ; preds = %.lr.ph107, %79
  %.sink157 = phi i32 [ %82, %79 ], [ 0, %.lr.ph107 ]
  %84 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %indvars.iv147, i64 %indvars.iv144
  store i32 %.sink157, ptr %84, align 4
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %85 = load i32, ptr @n, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %.not77.not = icmp slt i64 %indvars.iv144, %86
  br i1 %.not77.not, label %.lr.ph107, label %._crit_edge108, !llvm.loop !17

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge117
  %indvars.iv153 = phi i64 [ %66, %.preheader.preheader ], [ %indvars.iv.next154, %._crit_edge117 ]
  %87 = load i32, ptr @n, align 4, !tbaa !5
  %.not76114 = icmp slt i32 %87, 1
  %.pre159 = add nuw nsw i64 %indvars.iv153, 1
  br i1 %.not76114, label %._crit_edge117, label %.lr.ph116

._crit_edge120:                                   ; preds = %._crit_edge117, %._crit_edge104, %._crit_edge112
  %88 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @q)
  %89 = load i32, ptr @q, align 4, !tbaa !5
  %90 = add nsw i32 %89, -1
  store i32 %90, ptr @q, align 4, !tbaa !5
  %.not75121 = icmp eq i32 %89, 0
  br i1 %.not75121, label %._crit_edge124, label %.lr.ph123

._crit_edge117:                                   ; preds = %106, %.preheader
  %.lcssa = phi i32 [ %87, %.preheader ], [ %108, %106 ]
  %91 = getelementptr inbounds [2010 x i32], ptr @R, i64 0, i64 %.pre159
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %92 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %indvars.iv153
  %93 = call noundef i32 @_Z4calcPii(ptr noundef nonnull %92, i32 noundef %.lcssa)
  store i32 %93, ptr %5, align 4, !tbaa !5
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %91, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = getelementptr inbounds [2010 x i32], ptr @R, i64 0, i64 %indvars.iv153
  store i32 %95, ptr %96, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  %indvars.iv.next154 = add nsw i64 %indvars.iv153, -1
  %97 = icmp sgt i64 %indvars.iv153, 1
  br i1 %97, label %.preheader, label %._crit_edge120, !llvm.loop !18

.lr.ph116:                                        ; preds = %.preheader, %106
  %indvars.iv150 = phi i64 [ %indvars.iv.next151, %106 ], [ 1, %.preheader ]
  %98 = getelementptr inbounds [2010 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %indvars.iv150
  %99 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %98, i64 noundef %indvars.iv153)
  %100 = load i8, ptr %99, align 1, !tbaa !12
  %101 = icmp eq i8 %100, 49
  br i1 %101, label %102, label %106

102:                                              ; preds = %.lr.ph116
  %103 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %.pre159, i64 %indvars.iv150
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  br label %106

106:                                              ; preds = %.lr.ph116, %102
  %.sink158 = phi i32 [ %105, %102 ], [ 0, %.lr.ph116 ]
  %107 = getelementptr inbounds [2010 x [2010 x i32]], ptr @g, i64 0, i64 %indvars.iv153, i64 %indvars.iv150
  store i32 %.sink158, ptr %107, align 4
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %108 = load i32, ptr @n, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %.not76.not = icmp slt i64 %indvars.iv150, %109
  br i1 %.not76.not, label %.lr.ph116, label %._crit_edge117, !llvm.loop !19

.lr.ph123:                                        ; preds = %._crit_edge120, %.lr.ph123
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %111 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %110, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %112 = load i32, ptr %6, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %6, align 4, !tbaa !5
  %114 = load i32, ptr %7, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %7, align 4, !tbaa !5
  %116 = sext i32 %112 to i64
  %117 = getelementptr inbounds [2010 x i32], ptr @U, i64 0, i64 %116
  %118 = add nsw i32 %112, 2
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [2010 x i32], ptr @D, i64 0, i64 %119
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %117, ptr noundef nonnull align 4 dereferenceable(4) %120)
  %122 = load i32, ptr %7, align 4, !tbaa !5
  %123 = add nsw i32 %122, -1
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [2010 x i32], ptr @L, i64 0, i64 %124
  %126 = add nsw i32 %122, 1
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [2010 x i32], ptr @R, i64 0, i64 %127
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %125, ptr noundef nonnull align 4 dereferenceable(4) %128)
  %130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %121, ptr noundef nonnull align 4 dereferenceable(4) %129)
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %131)
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  %134 = load i32, ptr @q, align 4, !tbaa !5
  %135 = add nsw i32 %134, -1
  store i32 %135, ptr @q, align 4, !tbaa !5
  %.not75 = icmp eq i32 %134, 0
  br i1 %.not75, label %._crit_edge124, label %.lr.ph123, !llvm.loop !20

._crit_edge124:                                   ; preds = %.lr.ph123, %._crit_edge120
  ret i32 0
}

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

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

; 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 #1

; 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: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #0 align 2

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}
!13 = 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}
!20 = distinct !{!20, !10}


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