; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/408 Division 2/E (E)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@a = external dso_local global [1010 x i32], align 16
@b = external dso_local global [1010 x i32], align 16
@dp = external dso_local global [2 x [1010 x [55 x [55 x i32]]]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %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 i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %36 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %37 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %38 = getelementptr i8, ptr %37, i64 -24
  %39 = load i64, ptr %38, align 8
  %40 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %39
  %41 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %40, ptr noundef null)
  %42 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %43 = getelementptr i8, ptr %42, i64 -24
  %44 = load i64, ptr %43, align 8
  %45 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %44
  %46 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %45, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %50 = load i32, ptr %3, align 4, !tbaa !8
  %51 = load i32, ptr %2, align 4, !tbaa !8
  %52 = load i32, ptr %4, align 4, !tbaa !8
  %53 = add nsw i32 %51, %52
  %54 = sub nsw i32 %53, 1
  %55 = mul nsw i32 2, %54
  %56 = load i32, ptr %4, align 4, !tbaa !8
  %57 = sdiv i32 %55, %56
  %58 = icmp sgt i32 %50, %57
  br i1 %58, label %59, label %67

59:                                               ; preds = %0
  %60 = load i32, ptr %2, align 4, !tbaa !8
  %61 = load i32, ptr %4, align 4, !tbaa !8
  %62 = add nsw i32 %60, %61
  %63 = sub nsw i32 %62, 1
  %64 = mul nsw i32 2, %63
  %65 = load i32, ptr %4, align 4, !tbaa !8
  %66 = sdiv i32 %64, %65
  store i32 %66, ptr %3, align 4, !tbaa !8
  br label %67

67:                                               ; preds = %59, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 1, ptr %6, align 4, !tbaa !8
  br label %69

69:                                               ; preds = %79, %67
  %70 = load i32, ptr %6, align 4, !tbaa !8
  %71 = load i32, ptr %5, align 4, !tbaa !8
  %72 = icmp sle i32 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %82

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %75 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %76 = load i32, ptr %7, align 4, !tbaa !8
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [1010 x i32], ptr @a, i64 0, i64 %77
  store i32 1, ptr %78, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %79

79:                                               ; preds = %74
  %80 = load i32, ptr %6, align 4, !tbaa !8
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %6, align 4, !tbaa !8
  br label %69, !llvm.loop !11

82:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %83 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 1, ptr %9, align 4, !tbaa !8
  br label %84

84:                                               ; preds = %94, %82
  %85 = load i32, ptr %9, align 4, !tbaa !8
  %86 = load i32, ptr %8, align 4, !tbaa !8
  %87 = icmp sle i32 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %97

89:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %91 = load i32, ptr %10, align 4, !tbaa !8
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [1010 x i32], ptr @b, i64 0, i64 %92
  store i32 1, ptr %93, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %94

94:                                               ; preds = %89
  %95 = load i32, ptr %9, align 4, !tbaa !8
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %9, align 4, !tbaa !8
  br label %84, !llvm.loop !13

97:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !8
  br label %98

98:                                               ; preds = %145, %97
  %99 = load i32, ptr %11, align 4, !tbaa !8
  %100 = icmp slt i32 %99, 2
  br i1 %100, label %102, label %101

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

102:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !8
  br label %103

103:                                              ; preds = %141, %102
  %104 = load i32, ptr %13, align 4, !tbaa !8
  %105 = load i32, ptr %3, align 4, !tbaa !8
  %106 = icmp sle i32 %104, %105
  br i1 %106, label %108, label %107

107:                                              ; preds = %103
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %144

108:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !8
  br label %109

109:                                              ; preds = %137, %108
  %110 = load i32, ptr %14, align 4, !tbaa !8
  %111 = load i32, ptr %4, align 4, !tbaa !8
  %112 = icmp sle i32 %110, %111
  br i1 %112, label %114, label %113

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

114:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !8
  br label %115

115:                                              ; preds = %133, %114
  %116 = load i32, ptr %15, align 4, !tbaa !8
  %117 = load i32, ptr %4, align 4, !tbaa !8
  %118 = icmp sle i32 %116, %117
  br i1 %118, label %120, label %119

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

120:                                              ; preds = %115
  %121 = load i32, ptr %11, align 4, !tbaa !8
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %122
  %124 = load i32, ptr %13, align 4, !tbaa !8
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [1010 x [55 x [55 x i32]]], ptr %123, i64 0, i64 %125
  %127 = load i32, ptr %14, align 4, !tbaa !8
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [55 x [55 x i32]], ptr %126, i64 0, i64 %128
  %130 = load i32, ptr %15, align 4, !tbaa !8
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [55 x i32], ptr %129, i64 0, i64 %131
  store i32 -1000000000, ptr %132, align 4, !tbaa !8
  br label %133

133:                                              ; preds = %120
  %134 = load i32, ptr %15, align 4, !tbaa !8
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %15, align 4, !tbaa !8
  br label %115, !llvm.loop !14

136:                                              ; preds = %119
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %14, align 4, !tbaa !8
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %14, align 4, !tbaa !8
  br label %109, !llvm.loop !15

140:                                              ; preds = %113
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %13, align 4, !tbaa !8
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %13, align 4, !tbaa !8
  br label %103, !llvm.loop !16

144:                                              ; preds = %107
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %11, align 4, !tbaa !8
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %11, align 4, !tbaa !8
  br label %98, !llvm.loop !17

148:                                              ; preds = %101
  store i32 0, ptr @dp, align 16, !tbaa !8
  store i32 0, ptr getelementptr inbounds ([2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 1), align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 1, ptr %17, align 4, !tbaa !8
  br label %149

149:                                              ; preds = %515, %148
  %150 = load i32, ptr %17, align 4, !tbaa !8
  %151 = load i32, ptr %2, align 4, !tbaa !8
  %152 = icmp sle i32 %150, %151
  br i1 %152, label %154, label %153

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

154:                                              ; preds = %149
  %155 = load i32, ptr %16, align 4, !tbaa !8
  %156 = xor i32 %155, 1
  store i32 %156, ptr %16, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 1, ptr %18, align 4, !tbaa !8
  br label %157

157:                                              ; preds = %511, %154
  %158 = load i32, ptr %18, align 4, !tbaa !8
  %159 = load i32, ptr %3, align 4, !tbaa !8
  %160 = icmp sle i32 %158, %159
  br i1 %160, label %162, label %161

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

162:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !8
  br label %163

163:                                              ; preds = %191, %162
  %164 = load i32, ptr %19, align 4, !tbaa !8
  %165 = load i32, ptr %4, align 4, !tbaa !8
  %166 = icmp slt i32 %164, %165
  br i1 %166, label %168, label %167

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

168:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !8
  br label %169

169:                                              ; preds = %187, %168
  %170 = load i32, ptr %20, align 4, !tbaa !8
  %171 = load i32, ptr %4, align 4, !tbaa !8
  %172 = icmp slt i32 %170, %171
  br i1 %172, label %174, label %173

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

174:                                              ; preds = %169
  %175 = load i32, ptr %16, align 4, !tbaa !8
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %176
  %178 = load i32, ptr %18, align 4, !tbaa !8
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [1010 x [55 x [55 x i32]]], ptr %177, i64 0, i64 %179
  %181 = load i32, ptr %19, align 4, !tbaa !8
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [55 x [55 x i32]], ptr %180, i64 0, i64 %182
  %184 = load i32, ptr %20, align 4, !tbaa !8
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [55 x i32], ptr %183, i64 0, i64 %185
  store i32 -1000000000, ptr %186, align 4, !tbaa !8
  br label %187

187:                                              ; preds = %174
  %188 = load i32, ptr %20, align 4, !tbaa !8
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %20, align 4, !tbaa !8
  br label %169, !llvm.loop !18

190:                                              ; preds = %173
  br label %191

191:                                              ; preds = %190
  %192 = load i32, ptr %19, align 4, !tbaa !8
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %19, align 4, !tbaa !8
  br label %163, !llvm.loop !19

194:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !8
  br label %195

195:                                              ; preds = %507, %194
  %196 = load i32, ptr %21, align 4, !tbaa !8
  %197 = load i32, ptr %4, align 4, !tbaa !8
  %198 = icmp slt i32 %196, %197
  br i1 %198, label %200, label %199

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

200:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !8
  br label %201

201:                                              ; preds = %503, %200
  %202 = load i32, ptr %22, align 4, !tbaa !8
  %203 = load i32, ptr %4, align 4, !tbaa !8
  %204 = icmp slt i32 %202, %203
  br i1 %204, label %206, label %205

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

206:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %207 = load i32, ptr %16, align 4, !tbaa !8
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %208
  %210 = load i32, ptr %18, align 4, !tbaa !8
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [1010 x [55 x [55 x i32]]], ptr %209, i64 0, i64 %211
  %213 = load i32, ptr %21, align 4, !tbaa !8
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [55 x [55 x i32]], ptr %212, i64 0, i64 %214
  %216 = load i32, ptr %22, align 4, !tbaa !8
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [55 x i32], ptr %215, i64 0, i64 %217
  store ptr %218, ptr %23, align 8, !tbaa !20
  %219 = load i32, ptr %22, align 4, !tbaa !8
  %220 = load i32, ptr %4, align 4, !tbaa !8
  %221 = sub nsw i32 %220, 1
  %222 = icmp ne i32 %219, %221
  br i1 %222, label %223, label %253

223:                                              ; preds = %206
  %224 = load ptr, ptr %23, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %225 = load i32, ptr %16, align 4, !tbaa !8
  %226 = icmp ne i32 %225, 0
  %227 = xor i1 %226, true
  %228 = zext i1 %227 to i64
  %229 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %228
  %230 = load i32, ptr %18, align 4, !tbaa !8
  %231 = sub nsw i32 %230, 1
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [1010 x [55 x [55 x i32]]], ptr %229, i64 0, i64 %232
  %234 = getelementptr inbounds [55 x [55 x i32]], ptr %233, i64 0, i64 0
  %235 = load i32, ptr %22, align 4, !tbaa !8
  %236 = add nsw i32 %235, 1
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [55 x i32], ptr %234, i64 0, i64 %237
  %239 = load i32, ptr %238, align 4, !tbaa !8
  %240 = load i32, ptr %17, align 4, !tbaa !8
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [1010 x i32], ptr @a, i64 0, i64 %241
  %243 = load i32, ptr %242, align 4, !tbaa !8
  %244 = load i32, ptr %17, align 4, !tbaa !8
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [1010 x i32], ptr @b, i64 0, i64 %245
  %247 = load i32, ptr %246, align 4, !tbaa !8
  %248 = or i32 %243, %247
  %249 = add nsw i32 %239, %248
  store i32 %249, ptr %24, align 4, !tbaa !8
  %250 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %224, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %251 = load i32, ptr %250, align 4, !tbaa !8
  %252 = load ptr, ptr %23, align 8, !tbaa !20
  store i32 %251, ptr %252, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %253

253:                                              ; preds = %223, %206
  %254 = load i32, ptr %22, align 4, !tbaa !8
  %255 = icmp ne i32 %254, 0
  br i1 %255, label %278, label %256

256:                                              ; preds = %253
  %257 = load ptr, ptr %23, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %258 = load i32, ptr %16, align 4, !tbaa !8
  %259 = icmp ne i32 %258, 0
  %260 = xor i1 %259, true
  %261 = zext i1 %260 to i64
  %262 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %261
  %263 = load i32, ptr %18, align 4, !tbaa !8
  %264 = sub nsw i32 %263, 1
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [1010 x [55 x [55 x i32]]], ptr %262, i64 0, i64 %265
  %267 = getelementptr inbounds [55 x [55 x i32]], ptr %266, i64 0, i64 0
  %268 = getelementptr inbounds [55 x i32], ptr %267, i64 0, i64 0
  %269 = load i32, ptr %268, align 4, !tbaa !8
  %270 = load i32, ptr %17, align 4, !tbaa !8
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [1010 x i32], ptr @a, i64 0, i64 %271
  %273 = load i32, ptr %272, align 4, !tbaa !8
  %274 = add nsw i32 %269, %273
  store i32 %274, ptr %25, align 4, !tbaa !8
  %275 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %257, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %276 = load i32, ptr %275, align 4, !tbaa !8
  %277 = load ptr, ptr %23, align 8, !tbaa !20
  store i32 %276, ptr %277, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %278

278:                                              ; preds = %256, %253
  %279 = load i32, ptr %21, align 4, !tbaa !8
  %280 = load i32, ptr %4, align 4, !tbaa !8
  %281 = sub nsw i32 %280, 1
  %282 = icmp ne i32 %279, %281
  br i1 %282, label %283, label %313

283:                                              ; preds = %278
  %284 = load ptr, ptr %23, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %285 = load i32, ptr %16, align 4, !tbaa !8
  %286 = icmp ne i32 %285, 0
  %287 = xor i1 %286, true
  %288 = zext i1 %287 to i64
  %289 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %288
  %290 = load i32, ptr %18, align 4, !tbaa !8
  %291 = sub nsw i32 %290, 1
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [1010 x [55 x [55 x i32]]], ptr %289, i64 0, i64 %292
  %294 = load i32, ptr %21, align 4, !tbaa !8
  %295 = add nsw i32 %294, 1
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [55 x [55 x i32]], ptr %293, i64 0, i64 %296
  %298 = getelementptr inbounds [55 x i32], ptr %297, i64 0, i64 0
  %299 = load i32, ptr %298, align 4, !tbaa !8
  %300 = load i32, ptr %17, align 4, !tbaa !8
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [1010 x i32], ptr @a, i64 0, i64 %301
  %303 = load i32, ptr %302, align 4, !tbaa !8
  %304 = load i32, ptr %17, align 4, !tbaa !8
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [1010 x i32], ptr @b, i64 0, i64 %305
  %307 = load i32, ptr %306, align 4, !tbaa !8
  %308 = or i32 %303, %307
  %309 = add nsw i32 %299, %308
  store i32 %309, ptr %26, align 4, !tbaa !8
  %310 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %284, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %311 = load i32, ptr %310, align 4, !tbaa !8
  %312 = load ptr, ptr %23, align 8, !tbaa !20
  store i32 %311, ptr %312, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %313

313:                                              ; preds = %283, %278
  %314 = load i32, ptr %21, align 4, !tbaa !8
  %315 = icmp ne i32 %314, 0
  br i1 %315, label %338, label %316

316:                                              ; preds = %313
  %317 = load ptr, ptr %23, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %318 = load i32, ptr %16, align 4, !tbaa !8
  %319 = icmp ne i32 %318, 0
  %320 = xor i1 %319, true
  %321 = zext i1 %320 to i64
  %322 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %321
  %323 = load i32, ptr %18, align 4, !tbaa !8
  %324 = sub nsw i32 %323, 1
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds [1010 x [55 x [55 x i32]]], ptr %322, i64 0, i64 %325
  %327 = getelementptr inbounds [55 x [55 x i32]], ptr %326, i64 0, i64 0
  %328 = getelementptr inbounds [55 x i32], ptr %327, i64 0, i64 0
  %329 = load i32, ptr %328, align 4, !tbaa !8
  %330 = load i32, ptr %17, align 4, !tbaa !8
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds [1010 x i32], ptr @b, i64 0, i64 %331
  %333 = load i32, ptr %332, align 4, !tbaa !8
  %334 = add nsw i32 %329, %333
  store i32 %334, ptr %27, align 4, !tbaa !8
  %335 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %317, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %336 = load i32, ptr %335, align 4, !tbaa !8
  %337 = load ptr, ptr %23, align 8, !tbaa !20
  store i32 %336, ptr %337, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %338

338:                                              ; preds = %316, %313
  %339 = load i32, ptr %18, align 4, !tbaa !8
  %340 = icmp sge i32 %339, 2
  br i1 %340, label %341, label %368

341:                                              ; preds = %338
  %342 = load ptr, ptr %23, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %343 = load i32, ptr %16, align 4, !tbaa !8
  %344 = icmp ne i32 %343, 0
  %345 = xor i1 %344, true
  %346 = zext i1 %345 to i64
  %347 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %346
  %348 = load i32, ptr %18, align 4, !tbaa !8
  %349 = sub nsw i32 %348, 2
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [1010 x [55 x [55 x i32]]], ptr %347, i64 0, i64 %350
  %352 = getelementptr inbounds [55 x [55 x i32]], ptr %351, i64 0, i64 0
  %353 = getelementptr inbounds [55 x i32], ptr %352, i64 0, i64 0
  %354 = load i32, ptr %353, align 4, !tbaa !8
  %355 = load i32, ptr %17, align 4, !tbaa !8
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [1010 x i32], ptr @a, i64 0, i64 %356
  %358 = load i32, ptr %357, align 4, !tbaa !8
  %359 = load i32, ptr %17, align 4, !tbaa !8
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds [1010 x i32], ptr @b, i64 0, i64 %360
  %362 = load i32, ptr %361, align 4, !tbaa !8
  %363 = or i32 %358, %362
  %364 = add nsw i32 %354, %363
  store i32 %364, ptr %28, align 4, !tbaa !8
  %365 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %342, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %366 = load i32, ptr %365, align 4, !tbaa !8
  %367 = load ptr, ptr %23, align 8, !tbaa !20
  store i32 %366, ptr %367, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %368

368:                                              ; preds = %341, %338
  %369 = load i32, ptr %18, align 4, !tbaa !8
  %370 = icmp sge i32 %369, 2
  br i1 %370, label %371, label %413

371:                                              ; preds = %368
  %372 = load i32, ptr %21, align 4, !tbaa !8
  %373 = load i32, ptr %4, align 4, !tbaa !8
  %374 = sub nsw i32 %373, 1
  %375 = icmp ne i32 %372, %374
  br i1 %375, label %376, label %413

376:                                              ; preds = %371
  %377 = load i32, ptr %22, align 4, !tbaa !8
  %378 = load i32, ptr %4, align 4, !tbaa !8
  %379 = sub nsw i32 %378, 1
  %380 = icmp ne i32 %377, %379
  br i1 %380, label %381, label %413

381:                                              ; preds = %376
  %382 = load ptr, ptr %23, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %383 = load i32, ptr %16, align 4, !tbaa !8
  %384 = icmp ne i32 %383, 0
  %385 = xor i1 %384, true
  %386 = zext i1 %385 to i64
  %387 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %386
  %388 = load i32, ptr %18, align 4, !tbaa !8
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [1010 x [55 x [55 x i32]]], ptr %387, i64 0, i64 %389
  %391 = load i32, ptr %21, align 4, !tbaa !8
  %392 = add nsw i32 %391, 1
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds [55 x [55 x i32]], ptr %390, i64 0, i64 %393
  %395 = load i32, ptr %22, align 4, !tbaa !8
  %396 = add nsw i32 %395, 1
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds [55 x i32], ptr %394, i64 0, i64 %397
  %399 = load i32, ptr %398, align 4, !tbaa !8
  %400 = load i32, ptr %17, align 4, !tbaa !8
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds [1010 x i32], ptr @a, i64 0, i64 %401
  %403 = load i32, ptr %402, align 4, !tbaa !8
  %404 = load i32, ptr %17, align 4, !tbaa !8
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds [1010 x i32], ptr @b, i64 0, i64 %405
  %407 = load i32, ptr %406, align 4, !tbaa !8
  %408 = or i32 %403, %407
  %409 = add nsw i32 %399, %408
  store i32 %409, ptr %29, align 4, !tbaa !8
  %410 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %382, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %411 = load i32, ptr %410, align 4, !tbaa !8
  %412 = load ptr, ptr %23, align 8, !tbaa !20
  store i32 %411, ptr %412, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %413

413:                                              ; preds = %381, %376, %371, %368
  %414 = load i32, ptr %22, align 4, !tbaa !8
  %415 = icmp ne i32 %414, 0
  br i1 %415, label %445, label %416

416:                                              ; preds = %413
  %417 = load i32, ptr %21, align 4, !tbaa !8
  %418 = load i32, ptr %4, align 4, !tbaa !8
  %419 = sub nsw i32 %418, 1
  %420 = icmp ne i32 %417, %419
  br i1 %420, label %421, label %445

421:                                              ; preds = %416
  %422 = load ptr, ptr %23, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %423 = load i32, ptr %16, align 4, !tbaa !8
  %424 = icmp ne i32 %423, 0
  %425 = xor i1 %424, true
  %426 = zext i1 %425 to i64
  %427 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %426
  %428 = load i32, ptr %18, align 4, !tbaa !8
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds [1010 x [55 x [55 x i32]]], ptr %427, i64 0, i64 %429
  %431 = load i32, ptr %21, align 4, !tbaa !8
  %432 = add nsw i32 %431, 1
  %433 = sext i32 %432 to i64
  %434 = getelementptr inbounds [55 x [55 x i32]], ptr %430, i64 0, i64 %433
  %435 = getelementptr inbounds [55 x i32], ptr %434, i64 0, i64 0
  %436 = load i32, ptr %435, align 4, !tbaa !8
  %437 = load i32, ptr %17, align 4, !tbaa !8
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds [1010 x i32], ptr @a, i64 0, i64 %438
  %440 = load i32, ptr %439, align 4, !tbaa !8
  %441 = add nsw i32 %436, %440
  store i32 %441, ptr %30, align 4, !tbaa !8
  %442 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %422, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %443 = load i32, ptr %442, align 4, !tbaa !8
  %444 = load ptr, ptr %23, align 8, !tbaa !20
  store i32 %443, ptr %444, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %445

445:                                              ; preds = %421, %416, %413
  %446 = load i32, ptr %21, align 4, !tbaa !8
  %447 = icmp ne i32 %446, 0
  br i1 %447, label %477, label %448

448:                                              ; preds = %445
  %449 = load i32, ptr %22, align 4, !tbaa !8
  %450 = load i32, ptr %4, align 4, !tbaa !8
  %451 = sub nsw i32 %450, 1
  %452 = icmp ne i32 %449, %451
  br i1 %452, label %453, label %477

453:                                              ; preds = %448
  %454 = load ptr, ptr %23, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %455 = load i32, ptr %16, align 4, !tbaa !8
  %456 = icmp ne i32 %455, 0
  %457 = xor i1 %456, true
  %458 = zext i1 %457 to i64
  %459 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %458
  %460 = load i32, ptr %18, align 4, !tbaa !8
  %461 = sext i32 %460 to i64
  %462 = getelementptr inbounds [1010 x [55 x [55 x i32]]], ptr %459, i64 0, i64 %461
  %463 = getelementptr inbounds [55 x [55 x i32]], ptr %462, i64 0, i64 0
  %464 = load i32, ptr %22, align 4, !tbaa !8
  %465 = add nsw i32 %464, 1
  %466 = sext i32 %465 to i64
  %467 = getelementptr inbounds [55 x i32], ptr %463, i64 0, i64 %466
  %468 = load i32, ptr %467, align 4, !tbaa !8
  %469 = load i32, ptr %17, align 4, !tbaa !8
  %470 = sext i32 %469 to i64
  %471 = getelementptr inbounds [1010 x i32], ptr @b, i64 0, i64 %470
  %472 = load i32, ptr %471, align 4, !tbaa !8
  %473 = add nsw i32 %468, %472
  store i32 %473, ptr %31, align 4, !tbaa !8
  %474 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %454, ptr noundef nonnull align 4 dereferenceable(4) %31)
  %475 = load i32, ptr %474, align 4, !tbaa !8
  %476 = load ptr, ptr %23, align 8, !tbaa !20
  store i32 %475, ptr %476, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %477

477:                                              ; preds = %453, %448, %445
  %478 = load i32, ptr %21, align 4, !tbaa !8
  %479 = icmp eq i32 %478, 0
  br i1 %479, label %480, label %502

480:                                              ; preds = %477
  %481 = load i32, ptr %22, align 4, !tbaa !8
  %482 = icmp eq i32 %481, 0
  br i1 %482, label %483, label %502

483:                                              ; preds = %480
  %484 = load ptr, ptr %23, align 8, !tbaa !20
  %485 = load i32, ptr %16, align 4, !tbaa !8
  %486 = icmp ne i32 %485, 0
  %487 = xor i1 %486, true
  %488 = zext i1 %487 to i64
  %489 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %488
  %490 = load i32, ptr %18, align 4, !tbaa !8
  %491 = sext i32 %490 to i64
  %492 = getelementptr inbounds [1010 x [55 x [55 x i32]]], ptr %489, i64 0, i64 %491
  %493 = load i32, ptr %21, align 4, !tbaa !8
  %494 = sext i32 %493 to i64
  %495 = getelementptr inbounds [55 x [55 x i32]], ptr %492, i64 0, i64 %494
  %496 = load i32, ptr %22, align 4, !tbaa !8
  %497 = sext i32 %496 to i64
  %498 = getelementptr inbounds [55 x i32], ptr %495, i64 0, i64 %497
  %499 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %484, ptr noundef nonnull align 4 dereferenceable(4) %498)
  %500 = load i32, ptr %499, align 4, !tbaa !8
  %501 = load ptr, ptr %23, align 8, !tbaa !20
  store i32 %500, ptr %501, align 4, !tbaa !8
  br label %502

502:                                              ; preds = %483, %480, %477
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %503

503:                                              ; preds = %502
  %504 = load i32, ptr %22, align 4, !tbaa !8
  %505 = add nsw i32 %504, 1
  store i32 %505, ptr %22, align 4, !tbaa !8
  br label %201, !llvm.loop !22

506:                                              ; preds = %205
  br label %507

507:                                              ; preds = %506
  %508 = load i32, ptr %21, align 4, !tbaa !8
  %509 = add nsw i32 %508, 1
  store i32 %509, ptr %21, align 4, !tbaa !8
  br label %195, !llvm.loop !23

510:                                              ; preds = %199
  br label %511

511:                                              ; preds = %510
  %512 = load i32, ptr %18, align 4, !tbaa !8
  %513 = add nsw i32 %512, 1
  store i32 %513, ptr %18, align 4, !tbaa !8
  br label %157, !llvm.loop !24

514:                                              ; preds = %161
  br label %515

515:                                              ; preds = %514
  %516 = load i32, ptr %17, align 4, !tbaa !8
  %517 = add nsw i32 %516, 1
  store i32 %517, ptr %17, align 4, !tbaa !8
  br label %149, !llvm.loop !25

518:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 1, ptr %33, align 4, !tbaa !8
  br label %519

519:                                              ; preds = %559, %518
  %520 = load i32, ptr %33, align 4, !tbaa !8
  %521 = load i32, ptr %3, align 4, !tbaa !8
  %522 = icmp sle i32 %520, %521
  br i1 %522, label %524, label %523

523:                                              ; preds = %519
  store i32 38, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %562

524:                                              ; preds = %519
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  store i32 0, ptr %34, align 4, !tbaa !8
  br label %525

525:                                              ; preds = %555, %524
  %526 = load i32, ptr %34, align 4, !tbaa !8
  %527 = load i32, ptr %4, align 4, !tbaa !8
  %528 = icmp slt i32 %526, %527
  br i1 %528, label %530, label %529

529:                                              ; preds = %525
  store i32 41, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %558

530:                                              ; preds = %525
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  store i32 0, ptr %35, align 4, !tbaa !8
  br label %531

531:                                              ; preds = %551, %530
  %532 = load i32, ptr %35, align 4, !tbaa !8
  %533 = load i32, ptr %4, align 4, !tbaa !8
  %534 = icmp slt i32 %532, %533
  br i1 %534, label %536, label %535

535:                                              ; preds = %531
  store i32 44, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %554

536:                                              ; preds = %531
  %537 = load i32, ptr %16, align 4, !tbaa !8
  %538 = sext i32 %537 to i64
  %539 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %538
  %540 = load i32, ptr %33, align 4, !tbaa !8
  %541 = sext i32 %540 to i64
  %542 = getelementptr inbounds [1010 x [55 x [55 x i32]]], ptr %539, i64 0, i64 %541
  %543 = load i32, ptr %34, align 4, !tbaa !8
  %544 = sext i32 %543 to i64
  %545 = getelementptr inbounds [55 x [55 x i32]], ptr %542, i64 0, i64 %544
  %546 = load i32, ptr %35, align 4, !tbaa !8
  %547 = sext i32 %546 to i64
  %548 = getelementptr inbounds [55 x i32], ptr %545, i64 0, i64 %547
  %549 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %548)
  %550 = load i32, ptr %549, align 4, !tbaa !8
  store i32 %550, ptr %32, align 4, !tbaa !8
  br label %551

551:                                              ; preds = %536
  %552 = load i32, ptr %35, align 4, !tbaa !8
  %553 = add nsw i32 %552, 1
  store i32 %553, ptr %35, align 4, !tbaa !8
  br label %531, !llvm.loop !26

554:                                              ; preds = %535
  br label %555

555:                                              ; preds = %554
  %556 = load i32, ptr %34, align 4, !tbaa !8
  %557 = add nsw i32 %556, 1
  store i32 %557, ptr %34, align 4, !tbaa !8
  br label %525, !llvm.loop !27

558:                                              ; preds = %529
  br label %559

559:                                              ; preds = %558
  %560 = load i32, ptr %33, align 4, !tbaa !8
  %561 = add nsw i32 %560, 1
  store i32 %561, ptr %33, align 4, !tbaa !8
  br label %519, !llvm.loop !28

562:                                              ; preds = %523
  %563 = load i32, ptr %32, align 4, !tbaa !8
  %564 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %563)
  %565 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %564, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %566 = load i32, ptr %1, align 4
  ret i32 %566
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress 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)) #4

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !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 = !{!21, !21, i64 0}
!21 = !{!"any pointer", !10, i64 0}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}
!28 = distinct !{!28, !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::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" }

@a = external dso_local local_unnamed_addr global [1010 x i32], align 16
@b = external dso_local local_unnamed_addr global [1010 x i32], align 16
@dp = external dso_local global [2 x [1010 x [55 x [55 x i32]]]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %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 i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %18 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %19 = getelementptr i8, ptr %18, i64 -24
  %20 = load i64, ptr %19, align 8
  %21 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %20
  %22 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %21, ptr noundef null)
  %23 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %24 = getelementptr i8, ptr %23, i64 -24
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %25
  %27 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %26, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %31 = load i32, ptr %2, align 4, !tbaa !8
  %32 = load i32, ptr %1, align 4, !tbaa !8
  %33 = load i32, ptr %3, align 4, !tbaa !8
  %34 = add nsw i32 %33, %32
  %35 = shl i32 %34, 1
  %36 = add i32 %35, -2
  %37 = sdiv i32 %36, %33
  %38 = icmp sgt i32 %31, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %0
  store i32 %37, ptr %2, align 4, !tbaa !8
  br label %40

40:                                               ; preds = %39, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %42 = load i32, ptr %4, align 4, !tbaa !8
  %.not170 = icmp slt i32 %42, 1
  br i1 %.not170, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %40
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  %43 = 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)
  %44 = load i32, ptr %6, align 4, !tbaa !8
  %.not136172 = icmp slt i32 %44, 1
  br i1 %.not136172, label %.preheader169, label %.lr.ph175

.lr.ph:                                           ; preds = %40, %.lr.ph
  %.0132171 = phi i32 [ %49, %.lr.ph ], [ 1, %40 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %45 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %46 = load i32, ptr %5, align 4, !tbaa !8
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [1010 x i32], ptr @a, i64 0, i64 %47
  store i32 1, ptr %48, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  %49 = add nuw nsw i32 %.0132171, 1
  %50 = load i32, ptr %4, align 4, !tbaa !8
  %.not.not = icmp slt i32 %.0132171, %50
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.preheader169:                                    ; preds = %.lr.ph175, %._crit_edge
  %51 = load i32, ptr %2, align 4, !tbaa !8
  %.not157183 = icmp slt i32 %51, 0
  %52 = load i32, ptr %3, align 4
  %.not158180 = icmp slt i32 %52, 0
  %or.cond = select i1 %.not157183, i1 true, i1 %.not158180
  br i1 %or.cond, label %.split.us, label %.preheader168.preheader

.preheader168.preheader:                          ; preds = %.preheader169
  %53 = add nuw i32 %52, 1
  %54 = add nuw i32 %51, 1
  %wide.trip.count231 = zext i32 %54 to i64
  %wide.trip.count226 = zext i32 %53 to i64
  %min.iters.check = icmp ult i32 %52, 7
  %n.vec = and i64 %wide.trip.count226, 4294967288
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count226
  br label %.preheader167

.lr.ph175:                                        ; preds = %._crit_edge, %.lr.ph175
  %.0131173 = phi i32 [ %59, %.lr.ph175 ], [ 1, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %56 = load i32, ptr %7, align 4, !tbaa !8
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [1010 x i32], ptr @b, i64 0, i64 %57
  store i32 1, ptr %58, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  %59 = add nuw nsw i32 %.0131173, 1
  %60 = load i32, ptr %6, align 4, !tbaa !8
  %.not136.not = icmp slt i32 %.0131173, %60
  br i1 %.not136.not, label %.lr.ph175, label %.preheader169, !llvm.loop !13

.split.us:                                        ; preds = %._crit_edge182.split.1, %.preheader169
  store i32 0, ptr @dp, align 16, !tbaa !8
  store i32 0, ptr getelementptr inbounds (i8, ptr @dp, i64 12221000), align 8, !tbaa !8
  %61 = load i32, ptr %1, align 4, !tbaa !8
  %.not137201 = icmp slt i32 %61, 1
  br i1 %.not137201, label %._crit_edge206, label %.lr.ph205

.lr.ph205:                                        ; preds = %.split.us
  %62 = icmp slt i32 %51, 1
  br i1 %62, label %.lr.ph205.split.us.preheader, label %.lr.ph205.split

.lr.ph205.split.us.preheader:                     ; preds = %.lr.ph205
  %min.iters.check338 = icmp ult i32 %61, 8
  br i1 %min.iters.check338, label %.lr.ph205.split.us.preheader353, label %vector.ph339

vector.ph339:                                     ; preds = %.lr.ph205.split.us.preheader
  %n.vec341 = and i32 %61, 2147483640
  %ind.end = or disjoint i32 %n.vec341, 1
  br label %vector.body343

vector.body343:                                   ; preds = %vector.body343, %vector.ph339
  %index344 = phi i32 [ 0, %vector.ph339 ], [ %index.next346, %vector.body343 ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph339 ], [ %63, %vector.body343 ]
  %vec.phi345 = phi <4 x i32> [ zeroinitializer, %vector.ph339 ], [ %64, %vector.body343 ]
  %63 = xor <4 x i32> %vec.phi, <i32 1, i32 1, i32 1, i32 1>
  %64 = xor <4 x i32> %vec.phi345, <i32 1, i32 1, i32 1, i32 1>
  %index.next346 = add nuw i32 %index344, 8
  %65 = icmp eq i32 %index.next346, %n.vec341
  br i1 %65, label %middle.block336, label %vector.body343, !llvm.loop !14

middle.block336:                                  ; preds = %vector.body343
  %bin.rdx = xor <4 x i32> %vec.phi345, %vec.phi
  %66 = call i32 @llvm.vector.reduce.xor.v4i32(<4 x i32> %bin.rdx)
  %cmp.n347 = icmp eq i32 %61, %n.vec341
  br i1 %cmp.n347, label %._crit_edge206, label %.lr.ph205.split.us.preheader353

.lr.ph205.split.us.preheader353:                  ; preds = %middle.block336, %.lr.ph205.split.us.preheader
  %.0125203.us.ph = phi i32 [ 1, %.lr.ph205.split.us.preheader ], [ %ind.end, %middle.block336 ]
  %.0126202.us.ph = phi i32 [ 0, %.lr.ph205.split.us.preheader ], [ %66, %middle.block336 ]
  br label %.lr.ph205.split.us

.lr.ph205.split.us:                               ; preds = %.lr.ph205.split.us.preheader353, %.lr.ph205.split.us
  %.0125203.us = phi i32 [ %68, %.lr.ph205.split.us ], [ %.0125203.us.ph, %.lr.ph205.split.us.preheader353 ]
  %.0126202.us = phi i32 [ %67, %.lr.ph205.split.us ], [ %.0126202.us.ph, %.lr.ph205.split.us.preheader353 ]
  %67 = xor i32 %.0126202.us, 1
  %68 = add nuw i32 %.0125203.us, 1
  %exitcond259.not = icmp eq i32 %.0125203.us, %61
  br i1 %exitcond259.not, label %._crit_edge206, label %.lr.ph205.split.us, !llvm.loop !17

.preheader167:                                    ; preds = %.preheader168.preheader, %._crit_edge182.split
  %indvars.iv228 = phi i64 [ 0, %.preheader168.preheader ], [ %indvars.iv.next229, %._crit_edge182.split ]
  br label %.preheader166

.preheader167.1:                                  ; preds = %.preheader167.1.preheader, %._crit_edge182.split.1
  %indvars.iv228.1 = phi i64 [ %indvars.iv.next229.1, %._crit_edge182.split.1 ], [ 0, %.preheader167.1.preheader ]
  br label %.preheader166.1

.preheader166.1:                                  ; preds = %._crit_edge179.1, %.preheader167.1
  %indvars.iv223.1 = phi i64 [ 0, %.preheader167.1 ], [ %indvars.iv.next224.1, %._crit_edge179.1 ]
  br i1 %min.iters.check316, label %scalar.ph315.preheader, label %vector.body321

vector.body321:                                   ; preds = %.preheader166.1, %vector.body321
  %index322 = phi i64 [ %index.next323, %vector.body321 ], [ 0, %.preheader166.1 ]
  %69 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 1, i64 %indvars.iv228.1, i64 %indvars.iv223.1, i64 %index322
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  store <4 x i32> <i32 -1000000000, i32 -1000000000, i32 -1000000000, i32 -1000000000>, ptr %69, align 4, !tbaa !8
  store <4 x i32> <i32 -1000000000, i32 -1000000000, i32 -1000000000, i32 -1000000000>, ptr %70, align 4, !tbaa !8
  %index.next323 = add nuw i64 %index322, 8
  %71 = icmp eq i64 %index.next323, %n.vec319
  br i1 %71, label %middle.block314, label %vector.body321, !llvm.loop !18

middle.block314:                                  ; preds = %vector.body321
  br i1 %cmp.n324, label %._crit_edge179.1, label %scalar.ph315.preheader

scalar.ph315.preheader:                           ; preds = %middle.block314, %.preheader166.1
  %indvars.iv.1.ph = phi i64 [ 0, %.preheader166.1 ], [ %n.vec319, %middle.block314 ]
  br label %scalar.ph315

scalar.ph315:                                     ; preds = %scalar.ph315.preheader, %scalar.ph315
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %scalar.ph315 ], [ %indvars.iv.1.ph, %scalar.ph315.preheader ]
  %72 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 1, i64 %indvars.iv228.1, i64 %indvars.iv223.1, i64 %indvars.iv.1
  store i32 -1000000000, ptr %72, align 4, !tbaa !8
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next.1, %wide.trip.count226
  br i1 %exitcond.1.not, label %._crit_edge179.1, label %scalar.ph315, !llvm.loop !19

._crit_edge179.1:                                 ; preds = %scalar.ph315, %middle.block314
  %indvars.iv.next224.1 = add nuw nsw i64 %indvars.iv223.1, 1
  %exitcond227.1.not = icmp eq i64 %indvars.iv.next224.1, %wide.trip.count226
  br i1 %exitcond227.1.not, label %._crit_edge182.split.1, label %.preheader166.1, !llvm.loop !20

._crit_edge182.split.1:                           ; preds = %._crit_edge179.1
  %indvars.iv.next229.1 = add nuw nsw i64 %indvars.iv228.1, 1
  %exitcond232.1.not = icmp eq i64 %indvars.iv.next229.1, %wide.trip.count231
  br i1 %exitcond232.1.not, label %.split.us, label %.preheader167.1, !llvm.loop !21

.preheader166:                                    ; preds = %.preheader167, %._crit_edge179
  %indvars.iv223 = phi i64 [ 0, %.preheader167 ], [ %indvars.iv.next224, %._crit_edge179 ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader166
  %indvars.iv.ph = phi i64 [ 0, %.preheader166 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.body:                                      ; preds = %.preheader166, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader166 ]
  %73 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 0, i64 %indvars.iv228, i64 %indvars.iv223, i64 %index
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  store <4 x i32> <i32 -1000000000, i32 -1000000000, i32 -1000000000, i32 -1000000000>, ptr %73, align 4, !tbaa !8
  store <4 x i32> <i32 -1000000000, i32 -1000000000, i32 -1000000000, i32 -1000000000>, ptr %74, align 4, !tbaa !8
  %index.next = add nuw i64 %index, 8
  %75 = icmp eq i64 %index.next, %n.vec
  br i1 %75, label %middle.block, label %vector.body, !llvm.loop !22

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge179, label %scalar.ph.preheader

._crit_edge182.split:                             ; preds = %._crit_edge179
  %indvars.iv.next229 = add nuw nsw i64 %indvars.iv228, 1
  %exitcond232.not = icmp eq i64 %indvars.iv.next229, %wide.trip.count231
  br i1 %exitcond232.not, label %.preheader167.1.preheader, label %.preheader167, !llvm.loop !21

.preheader167.1.preheader:                        ; preds = %._crit_edge182.split
  %min.iters.check316 = icmp ult i32 %52, 7
  %n.vec319 = and i64 %wide.trip.count226, 4294967288
  %cmp.n324 = icmp eq i64 %n.vec319, %wide.trip.count226
  br label %.preheader167.1

._crit_edge179:                                   ; preds = %scalar.ph, %middle.block
  %indvars.iv.next224 = add nuw nsw i64 %indvars.iv223, 1
  %exitcond227.not = icmp eq i64 %indvars.iv.next224, %wide.trip.count226
  br i1 %exitcond227.not, label %._crit_edge182.split, label %.preheader166, !llvm.loop !20

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %76 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 0, i64 %indvars.iv228, i64 %indvars.iv223, i64 %indvars.iv
  store i32 -1000000000, ptr %76, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count226
  br i1 %exitcond.not, label %._crit_edge179, label %scalar.ph, !llvm.loop !23

._crit_edge206:                                   ; preds = %._crit_edge200, %.lr.ph205.split.us, %middle.block336, %.split.us
  %77 = phi i32 [ %52, %.split.us ], [ %52, %middle.block336 ], [ %52, %.lr.ph205.split.us ], [ %105, %._crit_edge200 ]
  %78 = phi i32 [ %51, %.split.us ], [ %51, %middle.block336 ], [ %51, %.lr.ph205.split.us ], [ %104, %._crit_edge200 ]
  %.0126.lcssa = phi i32 [ 0, %.split.us ], [ %66, %middle.block336 ], [ %67, %.lr.ph205.split.us ], [ %88, %._crit_edge200 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  store i32 0, ptr %16, align 4, !tbaa !8
  %.not138212 = icmp slt i32 %78, 1
  br i1 %.not138212, label %._crit_edge214, label %.preheader161.lr.ph

.preheader161.lr.ph:                              ; preds = %._crit_edge206
  %79 = zext nneg i32 %.0126.lcssa to i64
  %80 = icmp sgt i32 %77, 0
  br i1 %80, label %.preheader161, label %._crit_edge214

.lr.ph205.split:                                  ; preds = %.lr.ph205, %._crit_edge200
  %81 = phi i32 [ %103, %._crit_edge200 ], [ %61, %.lr.ph205 ]
  %82 = phi i32 [ %104, %._crit_edge200 ], [ %51, %.lr.ph205 ]
  %83 = phi i32 [ %105, %._crit_edge200 ], [ %52, %.lr.ph205 ]
  %84 = phi i32 [ %106, %._crit_edge200 ], [ %52, %.lr.ph205 ]
  %85 = phi i32 [ %107, %._crit_edge200 ], [ %52, %.lr.ph205 ]
  %86 = phi i32 [ %108, %._crit_edge200 ], [ %52, %.lr.ph205 ]
  %87 = phi i32 [ %109, %._crit_edge200 ], [ %51, %.lr.ph205 ]
  %indvars.iv256 = phi i64 [ %indvars.iv.next257, %._crit_edge200 ], [ 1, %.lr.ph205 ]
  %.0126202 = phi i32 [ %88, %._crit_edge200 ], [ 0, %.lr.ph205 ]
  %88 = xor i32 %.0126202, 1
  %.not139198 = icmp slt i32 %87, 1
  br i1 %.not139198, label %._crit_edge200, label %.preheader165.lr.ph

.preheader165.lr.ph:                              ; preds = %.lr.ph205.split
  %89 = zext nneg i32 %88 to i64
  %.not141 = icmp eq i32 %.0126202, 1
  %90 = zext i1 %.not141 to i64
  %91 = getelementptr inbounds [1010 x i32], ptr @a, i64 0, i64 %indvars.iv256
  %92 = getelementptr inbounds [1010 x i32], ptr @b, i64 0, i64 %indvars.iv256
  br label %.preheader165

.preheader165:                                    ; preds = %.preheader165.lr.ph, %._crit_edge197
  %93 = phi i32 [ %82, %.preheader165.lr.ph ], [ %206, %._crit_edge197 ]
  %94 = phi i32 [ %83, %.preheader165.lr.ph ], [ %207, %._crit_edge197 ]
  %95 = phi i32 [ %84, %.preheader165.lr.ph ], [ %208, %._crit_edge197 ]
  %96 = phi i32 [ %85, %.preheader165.lr.ph ], [ %209, %._crit_edge197 ]
  %97 = phi i32 [ %86, %.preheader165.lr.ph ], [ %209, %._crit_edge197 ]
  %indvars.iv253 = phi i64 [ 1, %.preheader165.lr.ph ], [ %indvars.iv.next254, %._crit_edge197 ]
  %98 = icmp sgt i32 %97, 0
  br i1 %98, label %.preheader163.lr.ph, label %.preheader164

.preheader163.lr.ph:                              ; preds = %.preheader165
  %wide.trip.count244 = zext nneg i32 %97 to i64
  %min.iters.check327 = icmp ult i32 %97, 8
  %n.vec330 = and i64 %wide.trip.count244, 2147483640
  %cmp.n335 = icmp eq i64 %n.vec330, %wide.trip.count244
  br label %.preheader163.us

.preheader163.us:                                 ; preds = %._crit_edge191.us, %.preheader163.lr.ph
  %indvars.iv241 = phi i64 [ %indvars.iv.next242, %._crit_edge191.us ], [ 0, %.preheader163.lr.ph ]
  br i1 %min.iters.check327, label %scalar.ph326.preheader, label %vector.body332

vector.body332:                                   ; preds = %.preheader163.us, %vector.body332
  %index333 = phi i64 [ %index.next334, %vector.body332 ], [ 0, %.preheader163.us ]
  %99 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %89, i64 %indvars.iv253, i64 %indvars.iv241, i64 %index333
  %100 = getelementptr inbounds i8, ptr %99, i64 16
  store <4 x i32> <i32 -1000000000, i32 -1000000000, i32 -1000000000, i32 -1000000000>, ptr %99, align 4, !tbaa !8
  store <4 x i32> <i32 -1000000000, i32 -1000000000, i32 -1000000000, i32 -1000000000>, ptr %100, align 4, !tbaa !8
  %index.next334 = add nuw i64 %index333, 8
  %101 = icmp eq i64 %index.next334, %n.vec330
  br i1 %101, label %middle.block325, label %vector.body332, !llvm.loop !24

middle.block325:                                  ; preds = %vector.body332
  br i1 %cmp.n335, label %._crit_edge191.us, label %scalar.ph326.preheader

scalar.ph326.preheader:                           ; preds = %middle.block325, %.preheader163.us
  %indvars.iv236.ph = phi i64 [ 0, %.preheader163.us ], [ %n.vec330, %middle.block325 ]
  br label %scalar.ph326

scalar.ph326:                                     ; preds = %scalar.ph326.preheader, %scalar.ph326
  %indvars.iv236 = phi i64 [ %indvars.iv.next237, %scalar.ph326 ], [ %indvars.iv236.ph, %scalar.ph326.preheader ]
  %102 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %89, i64 %indvars.iv253, i64 %indvars.iv241, i64 %indvars.iv236
  store i32 -1000000000, ptr %102, align 4, !tbaa !8
  %indvars.iv.next237 = add nuw nsw i64 %indvars.iv236, 1
  %exitcond240.not = icmp eq i64 %indvars.iv.next237, %wide.trip.count244
  br i1 %exitcond240.not, label %._crit_edge191.us, label %scalar.ph326, !llvm.loop !25

._crit_edge191.us:                                ; preds = %scalar.ph326, %middle.block325
  %indvars.iv.next242 = add nuw nsw i64 %indvars.iv241, 1
  %exitcond245.not = icmp eq i64 %indvars.iv.next242, %wide.trip.count244
  br i1 %exitcond245.not, label %.preheader164, label %.preheader163.us, !llvm.loop !26

._crit_edge200.loopexit:                          ; preds = %._crit_edge197
  %.pre275 = load i32, ptr %1, align 4, !tbaa !8
  br label %._crit_edge200

._crit_edge200:                                   ; preds = %._crit_edge200.loopexit, %.lr.ph205.split
  %103 = phi i32 [ %.pre275, %._crit_edge200.loopexit ], [ %81, %.lr.ph205.split ]
  %104 = phi i32 [ %206, %._crit_edge200.loopexit ], [ %82, %.lr.ph205.split ]
  %105 = phi i32 [ %207, %._crit_edge200.loopexit ], [ %83, %.lr.ph205.split ]
  %106 = phi i32 [ %208, %._crit_edge200.loopexit ], [ %84, %.lr.ph205.split ]
  %107 = phi i32 [ %209, %._crit_edge200.loopexit ], [ %85, %.lr.ph205.split ]
  %108 = phi i32 [ %209, %._crit_edge200.loopexit ], [ %86, %.lr.ph205.split ]
  %109 = phi i32 [ %206, %._crit_edge200.loopexit ], [ %87, %.lr.ph205.split ]
  %indvars.iv.next257 = add nuw nsw i64 %indvars.iv256, 1
  %110 = sext i32 %103 to i64
  %.not137.not = icmp slt i64 %indvars.iv256, %110
  br i1 %.not137.not, label %.lr.ph205.split, label %._crit_edge206, !llvm.loop !27

.preheader164:                                    ; preds = %._crit_edge191.us, %.preheader165
  %111 = icmp sgt i32 %96, 0
  br i1 %111, label %.preheader162.lr.ph, label %._crit_edge197

.preheader162.lr.ph:                              ; preds = %.preheader164
  %112 = add nsw i64 %indvars.iv253, -1
  %113 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %90, i64 %112
  %114 = icmp ugt i64 %indvars.iv253, 1
  %115 = add nsw i64 %indvars.iv253, -2
  %116 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %90, i64 %115
  %117 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %90, i64 %indvars.iv253
  %118 = icmp sgt i32 %95, 0
  br i1 %118, label %.preheader162.preheader, label %._crit_edge197

.preheader162.preheader:                          ; preds = %.preheader162.lr.ph
  %119 = getelementptr inbounds i8, ptr %113, i64 4
  %120 = getelementptr inbounds i8, ptr %117, i64 4
  br label %.preheader162

.preheader162:                                    ; preds = %.preheader162.preheader, %._crit_edge195
  %121 = phi i32 [ %94, %.preheader162.preheader ], [ %211, %._crit_edge195 ]
  %122 = phi i32 [ %95, %.preheader162.preheader ], [ %211, %._crit_edge195 ]
  %indvars.iv250 = phi i64 [ 0, %.preheader162.preheader ], [ %124, %._crit_edge195 ]
  %123 = icmp sgt i32 %122, 0
  %124 = add nuw nsw i64 %indvars.iv250, 1
  br i1 %123, label %.lr.ph194, label %._crit_edge195

.lr.ph194:                                        ; preds = %.preheader162
  %125 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %90, i64 %112, i64 %124
  %.not146 = icmp eq i64 %indvars.iv250, 0
  %126 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %90, i64 %indvars.iv253, i64 %124
  %127 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %89, i64 %indvars.iv253, i64 %indvars.iv250, i64 0
  %.not140.peel = icmp eq i32 %122, 1
  br i1 %.not140.peel, label %136, label %128

128:                                              ; preds = %.lr.ph194
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  %129 = load i32, ptr %119, align 4, !tbaa !8
  %130 = load i32, ptr %91, align 4, !tbaa !8
  %131 = load i32, ptr %92, align 4, !tbaa !8
  %132 = or i32 %131, %130
  %133 = add nsw i32 %132, %129
  store i32 %133, ptr %8, align 4, !tbaa !8
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %127, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %135 = load i32, ptr %134, align 4, !tbaa !8
  store i32 %135, ptr %127, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  br label %136

136:                                              ; preds = %128, %.lr.ph194
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  %137 = load i32, ptr %113, align 4, !tbaa !8
  %138 = load i32, ptr %91, align 4, !tbaa !8
  %139 = add nsw i32 %138, %137
  store i32 %139, ptr %9, align 4, !tbaa !8
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %127, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %141 = load i32, ptr %140, align 4, !tbaa !8
  store i32 %141, ptr %127, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  %142 = load i32, ptr %3, align 4, !tbaa !8
  %143 = add nsw i32 %142, -1
  %144 = zext i32 %143 to i64
  %.not144.peel = icmp eq i64 %indvars.iv250, %144
  br i1 %.not144.peel, label %153, label %145

145:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  %146 = load i32, ptr %125, align 4, !tbaa !8
  %147 = load i32, ptr %91, align 4, !tbaa !8
  %148 = load i32, ptr %92, align 4, !tbaa !8
  %149 = or i32 %148, %147
  %150 = add nsw i32 %149, %146
  store i32 %150, ptr %10, align 4, !tbaa !8
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %127, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %152 = load i32, ptr %151, align 4, !tbaa !8
  store i32 %152, ptr %127, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  br label %153

153:                                              ; preds = %145, %136
  br i1 %.not146, label %154, label %160

154:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  %155 = load i32, ptr %113, align 4, !tbaa !8
  %156 = load i32, ptr %92, align 4, !tbaa !8
  %157 = add nsw i32 %156, %155
  store i32 %157, ptr %11, align 4, !tbaa !8
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %127, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %159 = load i32, ptr %158, align 4, !tbaa !8
  store i32 %159, ptr %127, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  br label %160

160:                                              ; preds = %154, %153
  br i1 %114, label %161, label %.critedge.peel

161:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  %162 = load i32, ptr %116, align 4, !tbaa !8
  %163 = load i32, ptr %91, align 4, !tbaa !8
  %164 = load i32, ptr %92, align 4, !tbaa !8
  %165 = or i32 %164, %163
  %166 = add nsw i32 %165, %162
  store i32 %166, ptr %12, align 4, !tbaa !8
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %127, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %168 = load i32, ptr %167, align 4, !tbaa !8
  store i32 %168, ptr %127, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  %169 = load i32, ptr %3, align 4, !tbaa !8
  %170 = add nsw i32 %169, -1
  %171 = zext i32 %170 to i64
  %.not149.peel = icmp eq i64 %indvars.iv250, %171
  %.not150.peel = icmp eq i32 %170, 0
  %or.cond160.peel = or i1 %.not149.peel, %.not150.peel
  br i1 %or.cond160.peel, label %.critedge.peel, label %172

172:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  %173 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %90, i64 %indvars.iv253, i64 %124, i64 1
  %174 = load i32, ptr %173, align 4, !tbaa !8
  %175 = load i32, ptr %91, align 4, !tbaa !8
  %176 = load i32, ptr %92, align 4, !tbaa !8
  %177 = or i32 %176, %175
  %178 = add nsw i32 %177, %174
  store i32 %178, ptr %13, align 4, !tbaa !8
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %127, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %180 = load i32, ptr %179, align 4, !tbaa !8
  store i32 %180, ptr %127, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %.critedge.peel

.critedge.peel:                                   ; preds = %160, %161, %172
  %181 = load i32, ptr %3, align 4, !tbaa !8
  %182 = add nsw i32 %181, -1
  %183 = zext i32 %182 to i64
  %.not152.peel = icmp eq i64 %indvars.iv250, %183
  br i1 %.not152.peel, label %190, label %184

184:                                              ; preds = %.critedge.peel
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  %185 = load i32, ptr %126, align 4, !tbaa !8
  %186 = load i32, ptr %91, align 4, !tbaa !8
  %187 = add nsw i32 %186, %185
  store i32 %187, ptr %14, align 4, !tbaa !8
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %127, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %189 = load i32, ptr %188, align 4, !tbaa !8
  store i32 %189, ptr %127, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  br label %190

190:                                              ; preds = %184, %.critedge.peel
  br i1 %.not146, label %191, label %203

191:                                              ; preds = %190
  %192 = load i32, ptr %3, align 4, !tbaa !8
  %.not154.peel = icmp eq i32 %192, 1
  br i1 %.not154.peel, label %199, label %193

193:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #8
  %194 = load i32, ptr %120, align 4, !tbaa !8
  %195 = load i32, ptr %92, align 4, !tbaa !8
  %196 = add nsw i32 %195, %194
  store i32 %196, ptr %15, align 4, !tbaa !8
  %197 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %127, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %198 = load i32, ptr %197, align 4, !tbaa !8
  store i32 %198, ptr %127, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  br label %199

199:                                              ; preds = %193, %191
  %200 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %90, i64 %indvars.iv253, i64 %indvars.iv250, i64 0
  %201 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %127, ptr noundef nonnull align 4 dereferenceable(4) %200)
  %202 = load i32, ptr %201, align 4, !tbaa !8
  store i32 %202, ptr %127, align 4, !tbaa !8
  br label %203

203:                                              ; preds = %190, %199
  %204 = load i32, ptr %3, align 4, !tbaa !8
  %205 = icmp sgt i32 %204, 1
  br i1 %205, label %.peel.next, label %._crit_edge195

._crit_edge197.loopexit:                          ; preds = %._crit_edge195
  %.pre274 = load i32, ptr %2, align 4, !tbaa !8
  br label %._crit_edge197

._crit_edge197:                                   ; preds = %.preheader162.lr.ph, %._crit_edge197.loopexit, %.preheader164
  %206 = phi i32 [ %.pre274, %._crit_edge197.loopexit ], [ %93, %.preheader164 ], [ %93, %.preheader162.lr.ph ]
  %207 = phi i32 [ %211, %._crit_edge197.loopexit ], [ %94, %.preheader164 ], [ %94, %.preheader162.lr.ph ]
  %208 = phi i32 [ %211, %._crit_edge197.loopexit ], [ %95, %.preheader164 ], [ %95, %.preheader162.lr.ph ]
  %209 = phi i32 [ %211, %._crit_edge197.loopexit ], [ %96, %.preheader164 ], [ %95, %.preheader162.lr.ph ]
  %indvars.iv.next254 = add nuw nsw i64 %indvars.iv253, 1
  %210 = sext i32 %206 to i64
  %.not139.not = icmp slt i64 %indvars.iv253, %210
  br i1 %.not139.not, label %.preheader165, label %._crit_edge200.loopexit, !llvm.loop !29

._crit_edge195:                                   ; preds = %277, %.preheader162, %203
  %211 = phi i32 [ %204, %203 ], [ %121, %.preheader162 ], [ %.pre273, %277 ]
  %212 = sext i32 %211 to i64
  %213 = icmp slt i64 %124, %212
  br i1 %213, label %.preheader162, label %._crit_edge197.loopexit, !llvm.loop !30

.peel.next:                                       ; preds = %203, %277
  %indvars.iv246 = phi i64 [ %indvars.iv.next247, %277 ], [ 1, %203 ]
  %214 = phi i32 [ %.pre273, %277 ], [ %204, %203 ]
  %215 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %89, i64 %indvars.iv253, i64 %indvars.iv250, i64 %indvars.iv246
  %216 = add nsw i32 %214, -1
  %217 = zext i32 %216 to i64
  %.not140 = icmp eq i64 %indvars.iv246, %217
  br i1 %.not140, label %._crit_edge270, label %218

218:                                              ; preds = %.peel.next
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  %219 = add nuw nsw i64 %indvars.iv246, 1
  %220 = getelementptr inbounds [55 x i32], ptr %113, i64 0, i64 %219
  %221 = load i32, ptr %220, align 4, !tbaa !8
  %222 = load i32, ptr %91, align 4, !tbaa !8
  %223 = load i32, ptr %92, align 4, !tbaa !8
  %224 = or i32 %223, %222
  %225 = add nsw i32 %224, %221
  store i32 %225, ptr %8, align 4, !tbaa !8
  %226 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %215, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %227 = load i32, ptr %226, align 4, !tbaa !8
  store i32 %227, ptr %215, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  br label %._crit_edge270

._crit_edge270:                                   ; preds = %218, %.peel.next
  %.pre = load i32, ptr %3, align 4, !tbaa !8
  %.pre277 = add nsw i32 %.pre, -1
  %.pre278 = zext i32 %.pre277 to i64
  %.not144 = icmp eq i64 %indvars.iv250, %.pre278
  br i1 %.not144, label %236, label %228

228:                                              ; preds = %._crit_edge270
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  %229 = load i32, ptr %125, align 4, !tbaa !8
  %230 = load i32, ptr %91, align 4, !tbaa !8
  %231 = load i32, ptr %92, align 4, !tbaa !8
  %232 = or i32 %231, %230
  %233 = add nsw i32 %232, %229
  store i32 %233, ptr %10, align 4, !tbaa !8
  %234 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %215, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %235 = load i32, ptr %234, align 4, !tbaa !8
  store i32 %235, ptr %215, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  br label %236

236:                                              ; preds = %228, %._crit_edge270
  br i1 %.not146, label %237, label %243

237:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  %238 = load i32, ptr %113, align 4, !tbaa !8
  %239 = load i32, ptr %92, align 4, !tbaa !8
  %240 = add nsw i32 %239, %238
  store i32 %240, ptr %11, align 4, !tbaa !8
  %241 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %215, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %242 = load i32, ptr %241, align 4, !tbaa !8
  store i32 %242, ptr %215, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  br label %243

243:                                              ; preds = %237, %236
  br i1 %114, label %244, label %.critedge

244:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  %245 = load i32, ptr %116, align 4, !tbaa !8
  %246 = load i32, ptr %91, align 4, !tbaa !8
  %247 = load i32, ptr %92, align 4, !tbaa !8
  %248 = or i32 %247, %246
  %249 = add nsw i32 %248, %245
  store i32 %249, ptr %12, align 4, !tbaa !8
  %250 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %215, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %251 = load i32, ptr %250, align 4, !tbaa !8
  store i32 %251, ptr %215, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  %252 = load i32, ptr %3, align 4, !tbaa !8
  %253 = add nsw i32 %252, -1
  %254 = zext i32 %253 to i64
  %.not149 = icmp eq i64 %indvars.iv250, %254
  %.not150 = icmp eq i64 %indvars.iv246, %254
  %or.cond160 = or i1 %.not149, %.not150
  br i1 %or.cond160, label %.critedge, label %255

255:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  %256 = add nuw nsw i64 %indvars.iv246, 1
  %257 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %90, i64 %indvars.iv253, i64 %124, i64 %256
  %258 = load i32, ptr %257, align 4, !tbaa !8
  %259 = load i32, ptr %91, align 4, !tbaa !8
  %260 = load i32, ptr %92, align 4, !tbaa !8
  %261 = or i32 %260, %259
  %262 = add nsw i32 %261, %258
  store i32 %262, ptr %13, align 4, !tbaa !8
  %263 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %215, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %264 = load i32, ptr %263, align 4, !tbaa !8
  store i32 %264, ptr %215, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %.critedge

.critedge:                                        ; preds = %244, %255, %243
  br i1 %.not146, label %265, label %277

265:                                              ; preds = %.critedge
  %266 = load i32, ptr %3, align 4, !tbaa !8
  %267 = add nsw i32 %266, -1
  %268 = zext i32 %267 to i64
  %.not154 = icmp eq i64 %indvars.iv246, %268
  br i1 %.not154, label %277, label %269

269:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #8
  %270 = add nuw nsw i64 %indvars.iv246, 1
  %271 = getelementptr inbounds [55 x i32], ptr %117, i64 0, i64 %270
  %272 = load i32, ptr %271, align 4, !tbaa !8
  %273 = load i32, ptr %92, align 4, !tbaa !8
  %274 = add nsw i32 %273, %272
  store i32 %274, ptr %15, align 4, !tbaa !8
  %275 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %215, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %276 = load i32, ptr %275, align 4, !tbaa !8
  store i32 %276, ptr %215, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  br label %277

277:                                              ; preds = %269, %265, %.critedge
  %.pre273 = load i32, ptr %3, align 4, !tbaa !8
  %indvars.iv.next247 = add nuw nsw i64 %indvars.iv246, 1
  %278 = sext i32 %.pre273 to i64
  %279 = icmp slt i64 %indvars.iv.next247, %278
  br i1 %279, label %.peel.next, label %._crit_edge195, !llvm.loop !31

.preheader161:                                    ; preds = %.preheader161.lr.ph, %._crit_edge211
  %280 = phi i32 [ %294, %._crit_edge211 ], [ 0, %.preheader161.lr.ph ]
  %281 = phi i32 [ %295, %._crit_edge211 ], [ %78, %.preheader161.lr.ph ]
  %282 = phi i32 [ %296, %._crit_edge211 ], [ %77, %.preheader161.lr.ph ]
  %283 = phi i32 [ %297, %._crit_edge211 ], [ %77, %.preheader161.lr.ph ]
  %284 = phi i32 [ %298, %._crit_edge211 ], [ %77, %.preheader161.lr.ph ]
  %indvars.iv266 = phi i64 [ %indvars.iv.next267, %._crit_edge211 ], [ 1, %.preheader161.lr.ph ]
  %285 = icmp sgt i32 %284, 0
  br i1 %285, label %.preheader.lr.ph, label %._crit_edge211

.preheader.lr.ph:                                 ; preds = %.preheader161
  %286 = icmp sgt i32 %283, 0
  br i1 %286, label %.preheader, label %._crit_edge211

._crit_edge214:                                   ; preds = %._crit_edge211, %.preheader161.lr.ph, %._crit_edge206
  %287 = phi i32 [ 0, %._crit_edge206 ], [ 0, %.preheader161.lr.ph ], [ %294, %._crit_edge211 ]
  %288 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %287)
  %289 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %288, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge209
  %290 = phi i32 [ %300, %._crit_edge209 ], [ %280, %.preheader.lr.ph ]
  %291 = phi i32 [ %301, %._crit_edge209 ], [ %282, %.preheader.lr.ph ]
  %292 = phi i32 [ %301, %._crit_edge209 ], [ %283, %.preheader.lr.ph ]
  %indvars.iv263 = phi i64 [ %indvars.iv.next264, %._crit_edge209 ], [ 0, %.preheader.lr.ph ]
  %293 = icmp sgt i32 %292, 0
  br i1 %293, label %.lr.ph208, label %.preheader.._crit_edge209_crit_edge

.preheader.._crit_edge209_crit_edge:              ; preds = %.preheader
  %.pre280 = sext i32 %291 to i64
  br label %._crit_edge209

._crit_edge211.loopexit:                          ; preds = %._crit_edge209
  %.pre276 = load i32, ptr %2, align 4, !tbaa !8
  br label %._crit_edge211

._crit_edge211:                                   ; preds = %.preheader.lr.ph, %._crit_edge211.loopexit, %.preheader161
  %294 = phi i32 [ %300, %._crit_edge211.loopexit ], [ %280, %.preheader161 ], [ %280, %.preheader.lr.ph ]
  %295 = phi i32 [ %.pre276, %._crit_edge211.loopexit ], [ %281, %.preheader161 ], [ %281, %.preheader.lr.ph ]
  %296 = phi i32 [ %301, %._crit_edge211.loopexit ], [ %282, %.preheader161 ], [ %282, %.preheader.lr.ph ]
  %297 = phi i32 [ %301, %._crit_edge211.loopexit ], [ %283, %.preheader161 ], [ %283, %.preheader.lr.ph ]
  %298 = phi i32 [ %301, %._crit_edge211.loopexit ], [ %284, %.preheader161 ], [ %283, %.preheader.lr.ph ]
  %indvars.iv.next267 = add nuw nsw i64 %indvars.iv266, 1
  %299 = sext i32 %295 to i64
  %.not138.not = icmp slt i64 %indvars.iv266, %299
  br i1 %.not138.not, label %.preheader161, label %._crit_edge214, !llvm.loop !33

._crit_edge209:                                   ; preds = %.lr.ph208, %.preheader.._crit_edge209_crit_edge
  %.pre-phi281 = phi i64 [ %.pre280, %.preheader.._crit_edge209_crit_edge ], [ %307, %.lr.ph208 ]
  %300 = phi i32 [ %290, %.preheader.._crit_edge209_crit_edge ], [ %305, %.lr.ph208 ]
  %301 = phi i32 [ %291, %.preheader.._crit_edge209_crit_edge ], [ %306, %.lr.ph208 ]
  %indvars.iv.next264 = add nuw nsw i64 %indvars.iv263, 1
  %302 = icmp slt i64 %indvars.iv.next264, %.pre-phi281
  br i1 %302, label %.preheader, label %._crit_edge211.loopexit, !llvm.loop !34

.lr.ph208:                                        ; preds = %.preheader, %.lr.ph208
  %indvars.iv260 = phi i64 [ %indvars.iv.next261, %.lr.ph208 ], [ 0, %.preheader ]
  %303 = getelementptr inbounds [2 x [1010 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %79, i64 %indvars.iv266, i64 %indvars.iv263, i64 %indvars.iv260
  %304 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %303)
  %305 = load i32, ptr %304, align 4, !tbaa !8
  store i32 %305, ptr %16, align 4, !tbaa !8
  %indvars.iv.next261 = add nuw nsw i64 %indvars.iv260, 1
  %306 = load i32, ptr %3, align 4, !tbaa !8
  %307 = sext i32 %306 to i64
  %308 = icmp slt i64 %indvars.iv.next261, %307
  br i1 %308, label %.lr.ph208, label %._crit_edge209, !llvm.loop !35
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress 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 #4

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.xor.v4i32(<4 x i32>) #7

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

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

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


; Effective O3 passes: ADCEPass,BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass