; LLVM IR from kazunetakahashi/atcoder :: 2017/0211_ABC054 (D)

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

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

@N = external dso_local global i32, align 4
@Ma = external dso_local global i32, align 4
@Mb = external dso_local global i32, align 4
@a = external dso_local global [100 x i32], align 16
@b = external dso_local global [100 x i32], align 16
@c = external dso_local global [100 x i32], align 16
@DP = external dso_local global [410 x [410 x i32]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@_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
  store i32 0, ptr %1, align 4
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) @Ma)
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(4) @Mb)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %20

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

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

25:                                               ; preds = %20
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [100 x i32], ptr @a, i64 0, i64 %27
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [100 x i32], ptr @b, i64 0, i64 %31
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(4) %32)
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [100 x i32], ptr @c, i64 0, i64 %35
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(4) %36)
  br label %38

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

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

42:                                               ; preds = %62, %41
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = icmp slt i32 %43, 410
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %65

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

47:                                               ; preds = %58, %46
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = icmp slt i32 %48, 410
  br i1 %49, label %51, label %50

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

51:                                               ; preds = %47
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %53
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [410 x i32], ptr %54, i64 0, i64 %56
  store i32 1000000007, ptr %57, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %51
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %5, align 4, !tbaa !5
  br label %47, !llvm.loop !11

61:                                               ; preds = %50
  br label %62

62:                                               ; preds = %61
  %63 = load i32, ptr %3, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %3, align 4, !tbaa !5
  br label %42, !llvm.loop !12

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

66:                                               ; preds = %145, %65
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = load i32, ptr @N, align 4, !tbaa !5
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %148

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 409, ptr %7, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %141, %71
  %73 = load i32, ptr %7, align 4, !tbaa !5
  %74 = icmp sge i32 %73, 0
  br i1 %74, label %76, label %75

75:                                               ; preds = %72
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %144

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

77:                                               ; preds = %137, %76
  %78 = load i32, ptr %8, align 4, !tbaa !5
  %79 = icmp sge i32 %78, 0
  br i1 %79, label %81, label %80

80:                                               ; preds = %77
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %140

81:                                               ; preds = %77
  %82 = load i32, ptr %7, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %83
  %85 = load i32, ptr %8, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [410 x i32], ptr %84, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = icmp slt i32 %88, 1000000007
  br i1 %89, label %90, label %136

90:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %91 = load i32, ptr %7, align 4, !tbaa !5
  %92 = load i32, ptr %6, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [100 x i32], ptr @a, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = add nsw i32 %91, %95
  store i32 %96, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %97 = load i32, ptr %8, align 4, !tbaa !5
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [100 x i32], ptr @b, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = add nsw i32 %97, %101
  store i32 %102, ptr %10, align 4, !tbaa !5
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = icmp slt i32 %103, 410
  br i1 %104, label %105, label %135

105:                                              ; preds = %90
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = icmp slt i32 %106, 410
  br i1 %107, label %108, label %135

108:                                              ; preds = %105
  %109 = load i32, ptr %9, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %110
  %112 = load i32, ptr %10, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [410 x i32], ptr %111, i64 0, i64 %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %115 = load i32, ptr %7, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %116
  %118 = load i32, ptr %8, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [410 x i32], ptr %117, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = load i32, ptr %6, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [100 x i32], ptr @c, i64 0, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = add nsw i32 %121, %125
  store i32 %126, ptr %11, align 4, !tbaa !5
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %114, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = load i32, ptr %9, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %130
  %132 = load i32, ptr %10, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [410 x i32], ptr %131, i64 0, i64 %133
  store i32 %128, ptr %134, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %135

135:                                              ; preds = %108, %105, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %136

136:                                              ; preds = %135, %81
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %8, align 4, !tbaa !5
  %139 = add nsw i32 %138, -1
  store i32 %139, ptr %8, align 4, !tbaa !5
  br label %77, !llvm.loop !13

140:                                              ; preds = %80
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %7, align 4, !tbaa !5
  %143 = add nsw i32 %142, -1
  store i32 %143, ptr %7, align 4, !tbaa !5
  br label %72, !llvm.loop !14

144:                                              ; preds = %75
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %6, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %6, align 4, !tbaa !5
  br label %66, !llvm.loop !15

148:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 1000000007, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %180, %148
  %150 = load i32, ptr %13, align 4, !tbaa !5
  %151 = icmp slt i32 %150, 410
  br i1 %151, label %153, label %152

152:                                              ; preds = %149
  store i32 20, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %183

153:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %154

154:                                              ; preds = %176, %153
  %155 = load i32, ptr %14, align 4, !tbaa !5
  %156 = icmp slt i32 %155, 410
  br i1 %156, label %158, label %157

157:                                              ; preds = %154
  store i32 23, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %179

158:                                              ; preds = %154
  %159 = load i32, ptr %13, align 4, !tbaa !5
  %160 = load i32, ptr @Mb, align 4, !tbaa !5
  %161 = mul nsw i32 %159, %160
  %162 = load i32, ptr %14, align 4, !tbaa !5
  %163 = load i32, ptr @Ma, align 4, !tbaa !5
  %164 = mul nsw i32 %162, %163
  %165 = icmp eq i32 %161, %164
  br i1 %165, label %166, label %175

166:                                              ; preds = %158
  %167 = load i32, ptr %13, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %168
  %170 = load i32, ptr %14, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [410 x i32], ptr %169, i64 0, i64 %171
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %172)
  %174 = load i32, ptr %173, align 4, !tbaa !5
  store i32 %174, ptr %12, align 4, !tbaa !5
  br label %175

175:                                              ; preds = %166, %158
  br label %176

176:                                              ; preds = %175
  %177 = load i32, ptr %14, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %14, align 4, !tbaa !5
  br label %154, !llvm.loop !16

179:                                              ; preds = %157
  br label %180

180:                                              ; preds = %179
  %181 = load i32, ptr %13, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %13, align 4, !tbaa !5
  br label %149, !llvm.loop !17

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

184:                                              ; preds = %208, %183
  %185 = load i32, ptr %15, align 4, !tbaa !5
  %186 = icmp slt i32 %185, 40
  br i1 %186, label %188, label %187

187:                                              ; preds = %184
  store i32 26, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %211

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

189:                                              ; preds = %203, %188
  %190 = load i32, ptr %16, align 4, !tbaa !5
  %191 = icmp slt i32 %190, 40
  br i1 %191, label %193, label %192

192:                                              ; preds = %189
  store i32 29, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %206

193:                                              ; preds = %189
  %194 = load i32, ptr %15, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %195
  %197 = load i32, ptr %16, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [410 x i32], ptr %196, i64 0, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i32 noundef %200)
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef @.str)
  br label %203

203:                                              ; preds = %193
  %204 = load i32, ptr %16, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %16, align 4, !tbaa !5
  br label %189, !llvm.loop !18

206:                                              ; preds = %192
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %208

208:                                              ; preds = %206
  %209 = load i32, ptr %15, align 4, !tbaa !5
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %15, align 4, !tbaa !5
  br label %184, !llvm.loop !19

211:                                              ; preds = %187
  %212 = load i32, ptr %12, align 4, !tbaa !5
  %213 = icmp eq i32 %212, 1000000007
  br i1 %213, label %214, label %217

214:                                              ; preds = %211
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %215, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %221

217:                                              ; preds = %211
  %218 = load i32, ptr %12, align 4, !tbaa !5
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %218)
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %219, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %221

221:                                              ; preds = %217, %214
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %222 = load i32, ptr %1, align 4
  ret i32 %222
}

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.start.p0(i64 immarg, ptr nocapture) #2

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

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

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

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)) #4

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

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

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


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

@N = external dso_local global i32, align 4
@Ma = external dso_local global i32, align 4
@Mb = external dso_local global i32, align 4
@a = external dso_local global [100 x i32], align 16
@b = external dso_local global [100 x i32], align 16
@c = external dso_local global [100 x i32], align 16
@DP = external dso_local global [410 x [410 x i32]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@_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 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %4 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(4) @Ma)
  %5 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) @Mb)
  %6 = load i32, ptr @N, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %.preheader65

.preheader65.loopexit:                            ; preds = %.lr.ph
  %8 = icmp sgt i32 %16, 0
  br label %.preheader65

.preheader65:                                     ; preds = %.preheader65.loopexit, %0
  %9 = phi i1 [ %8, %.preheader65.loopexit ], [ false, %0 ]
  br label %vector.ph

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %10 = getelementptr inbounds [100 x i32], ptr @a, i64 0, i64 %indvars.iv
  %11 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %12 = getelementptr inbounds [100 x i32], ptr @b, i64 0, i64 %indvars.iv
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %14 = getelementptr inbounds [100 x i32], ptr @c, i64 0, i64 %indvars.iv
  %15 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %16 = load i32, ptr @N, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = icmp slt i64 %indvars.iv.next, %17
  br i1 %18, label %.lr.ph, label %.preheader65.loopexit, !llvm.loop !9

vector.ph:                                        ; preds = %vector.ph, %.preheader65
  %indvars.iv80 = phi i64 [ 0, %.preheader65 ], [ %indvars.iv.next81, %vector.ph ]
  %19 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 0
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %19, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %20, align 8, !tbaa !5
  %21 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 8
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %21, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %22, align 8, !tbaa !5
  %23 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 16
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %23, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %24, align 8, !tbaa !5
  %25 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 24
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %25, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %26, align 8, !tbaa !5
  %27 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 32
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %27, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %28, align 8, !tbaa !5
  %29 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 40
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %29, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %30, align 8, !tbaa !5
  %31 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 48
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %31, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %32, align 8, !tbaa !5
  %33 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 56
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %33, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %34, align 8, !tbaa !5
  %35 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 64
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %35, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %36, align 8, !tbaa !5
  %37 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 72
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %37, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %38, align 8, !tbaa !5
  %39 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 80
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %39, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %40, align 8, !tbaa !5
  %41 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 88
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %41, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %42, align 8, !tbaa !5
  %43 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 96
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %43, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %44, align 8, !tbaa !5
  %45 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 104
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %45, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %46, align 8, !tbaa !5
  %47 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 112
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %47, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %48, align 8, !tbaa !5
  %49 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 120
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %49, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %50, align 8, !tbaa !5
  %51 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 128
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %51, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %52, align 8, !tbaa !5
  %53 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 136
  %54 = getelementptr inbounds i8, ptr %53, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %53, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %54, align 8, !tbaa !5
  %55 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 144
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %55, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %56, align 8, !tbaa !5
  %57 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 152
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %57, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %58, align 8, !tbaa !5
  %59 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 160
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %59, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %60, align 8, !tbaa !5
  %61 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 168
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %61, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %62, align 8, !tbaa !5
  %63 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 176
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %63, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %64, align 8, !tbaa !5
  %65 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 184
  %66 = getelementptr inbounds i8, ptr %65, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %65, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %66, align 8, !tbaa !5
  %67 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 192
  %68 = getelementptr inbounds i8, ptr %67, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %67, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %68, align 8, !tbaa !5
  %69 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 200
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %69, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %70, align 8, !tbaa !5
  %71 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 208
  %72 = getelementptr inbounds i8, ptr %71, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %71, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %72, align 8, !tbaa !5
  %73 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 216
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %73, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %74, align 8, !tbaa !5
  %75 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 224
  %76 = getelementptr inbounds i8, ptr %75, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %75, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %76, align 8, !tbaa !5
  %77 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 232
  %78 = getelementptr inbounds i8, ptr %77, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %77, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %78, align 8, !tbaa !5
  %79 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 240
  %80 = getelementptr inbounds i8, ptr %79, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %79, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %80, align 8, !tbaa !5
  %81 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 248
  %82 = getelementptr inbounds i8, ptr %81, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %81, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %82, align 8, !tbaa !5
  %83 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 256
  %84 = getelementptr inbounds i8, ptr %83, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %83, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %84, align 8, !tbaa !5
  %85 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 264
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %85, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %86, align 8, !tbaa !5
  %87 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 272
  %88 = getelementptr inbounds i8, ptr %87, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %87, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %88, align 8, !tbaa !5
  %89 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 280
  %90 = getelementptr inbounds i8, ptr %89, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %89, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %90, align 8, !tbaa !5
  %91 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 288
  %92 = getelementptr inbounds i8, ptr %91, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %91, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %92, align 8, !tbaa !5
  %93 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 296
  %94 = getelementptr inbounds i8, ptr %93, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %93, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %94, align 8, !tbaa !5
  %95 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 304
  %96 = getelementptr inbounds i8, ptr %95, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %95, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %96, align 8, !tbaa !5
  %97 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 312
  %98 = getelementptr inbounds i8, ptr %97, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %97, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %98, align 8, !tbaa !5
  %99 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 320
  %100 = getelementptr inbounds i8, ptr %99, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %99, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %100, align 8, !tbaa !5
  %101 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 328
  %102 = getelementptr inbounds i8, ptr %101, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %101, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %102, align 8, !tbaa !5
  %103 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 336
  %104 = getelementptr inbounds i8, ptr %103, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %103, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %104, align 8, !tbaa !5
  %105 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 344
  %106 = getelementptr inbounds i8, ptr %105, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %105, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %106, align 8, !tbaa !5
  %107 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 352
  %108 = getelementptr inbounds i8, ptr %107, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %107, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %108, align 8, !tbaa !5
  %109 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 360
  %110 = getelementptr inbounds i8, ptr %109, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %109, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %110, align 8, !tbaa !5
  %111 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 368
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %111, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %112, align 8, !tbaa !5
  %113 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 376
  %114 = getelementptr inbounds i8, ptr %113, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %113, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %114, align 8, !tbaa !5
  %115 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 384
  %116 = getelementptr inbounds i8, ptr %115, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %115, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %116, align 8, !tbaa !5
  %117 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 392
  %118 = getelementptr inbounds i8, ptr %117, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %117, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %118, align 8, !tbaa !5
  %119 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 400
  %120 = getelementptr inbounds i8, ptr %119, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %119, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %120, align 8, !tbaa !5
  %121 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 408
  store i32 1000000007, ptr %121, align 8, !tbaa !5
  %122 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv80, i64 409
  store i32 1000000007, ptr %122, align 4, !tbaa !5
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %exitcond83.not = icmp eq i64 %indvars.iv.next81, 410
  br i1 %exitcond83.not, label %123, label %vector.ph, !llvm.loop !11

123:                                              ; preds = %vector.ph
  store i32 0, ptr @DP, align 16, !tbaa !5
  br i1 %9, label %.preheader63, label %._crit_edge

.preheader63:                                     ; preds = %123, %128
  %indvars.iv90 = phi i64 [ %indvars.iv.next91, %128 ], [ 0, %123 ]
  %124 = getelementptr inbounds [100 x i32], ptr @a, i64 0, i64 %indvars.iv90
  %125 = getelementptr inbounds [100 x i32], ptr @b, i64 0, i64 %indvars.iv90
  %126 = getelementptr inbounds [100 x i32], ptr @c, i64 0, i64 %indvars.iv90
  br label %.preheader62

._crit_edge:                                      ; preds = %128, %123
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  store i32 1000000007, ptr %2, align 4, !tbaa !5
  %.pre109.pre = load i32, ptr @Mb, align 4, !tbaa !5
  %.pre111.pre = load i32, ptr @Ma, align 4, !tbaa !5
  br label %.preheader61

.preheader62:                                     ; preds = %.preheader63, %132
  %indvars.iv87 = phi i64 [ 409, %.preheader63 ], [ %indvars.iv.next88, %132 ]
  %127 = trunc nuw nsw i64 %indvars.iv87 to i32
  br label %133

128:                                              ; preds = %132
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %129 = load i32, ptr @N, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = icmp slt i64 %indvars.iv.next91, %130
  br i1 %131, label %.preheader63, label %._crit_edge, !llvm.loop !12

132:                                              ; preds = %153
  %indvars.iv.next88 = add nsw i64 %indvars.iv87, -1
  %.not118 = icmp eq i64 %indvars.iv87, 0
  br i1 %.not118, label %128, label %.preheader62, !llvm.loop !13

133:                                              ; preds = %.preheader62, %153
  %indvars.iv84 = phi i64 [ 409, %.preheader62 ], [ %indvars.iv.next85, %153 ]
  %134 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv87, i64 %indvars.iv84
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = icmp slt i32 %135, 1000000007
  br i1 %136, label %137, label %153

137:                                              ; preds = %133
  %138 = load i32, ptr %124, align 4, !tbaa !5
  %139 = add nsw i32 %138, %127
  %140 = load i32, ptr %125, align 4, !tbaa !5
  %141 = trunc nuw nsw i64 %indvars.iv84 to i32
  %142 = add nsw i32 %140, %141
  %143 = icmp slt i32 %139, 410
  %144 = icmp slt i32 %142, 410
  %or.cond = select i1 %143, i1 %144, i1 false
  br i1 %or.cond, label %145, label %153

145:                                              ; preds = %137
  %146 = sext i32 %139 to i64
  %147 = sext i32 %142 to i64
  %148 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %146, i64 %147
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %149 = load i32, ptr %126, align 4, !tbaa !5
  %150 = add nsw i32 %149, %135
  store i32 %150, ptr %1, align 4, !tbaa !5
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %148, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %152 = load i32, ptr %151, align 4, !tbaa !5
  store i32 %152, ptr %148, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  br label %153

153:                                              ; preds = %137, %145, %133
  %indvars.iv.next85 = add nsw i64 %indvars.iv84, -1
  %.not = icmp eq i64 %indvars.iv84, 0
  br i1 %.not, label %132, label %133, !llvm.loop !14

.preheader61:                                     ; preds = %._crit_edge, %154
  %.pre111 = phi i32 [ %.pre111.pre, %._crit_edge ], [ %.pre111115, %154 ]
  %.pre109 = phi i32 [ %.pre109.pre, %._crit_edge ], [ %.pre109112, %154 ]
  %indvars.iv97 = phi i64 [ 1, %._crit_edge ], [ %indvars.iv.next98, %154 ]
  %indvars99 = trunc i64 %indvars.iv97 to i32
  br label %155

154:                                              ; preds = %165
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %exitcond100.not = icmp eq i64 %indvars.iv.next98, 410
  br i1 %exitcond100.not, label %.preheader, label %.preheader61, !llvm.loop !15

155:                                              ; preds = %.preheader61, %165
  %.pre111116 = phi i32 [ %.pre111, %.preheader61 ], [ %.pre111115, %165 ]
  %.pre109113 = phi i32 [ %.pre109, %.preheader61 ], [ %.pre109112, %165 ]
  %156 = phi i32 [ %.pre111, %.preheader61 ], [ %166, %165 ]
  %157 = phi i32 [ %.pre109, %.preheader61 ], [ %167, %165 ]
  %indvars.iv93 = phi i64 [ 1, %.preheader61 ], [ %indvars.iv.next94, %165 ]
  %indvars95 = trunc i64 %indvars.iv93 to i32
  %158 = mul nsw i32 %157, %indvars99
  %159 = mul nsw i32 %156, %indvars95
  %160 = icmp eq i32 %158, %159
  br i1 %160, label %161, label %165

161:                                              ; preds = %155
  %162 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv97, i64 %indvars.iv93
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %162)
  %164 = load i32, ptr %163, align 4, !tbaa !5
  store i32 %164, ptr %2, align 4, !tbaa !5
  %.pre = load i32, ptr @Mb, align 4, !tbaa !5
  %.pre110 = load i32, ptr @Ma, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %155, %161
  %.pre111115 = phi i32 [ %.pre111116, %155 ], [ %.pre110, %161 ]
  %.pre109112 = phi i32 [ %.pre109113, %155 ], [ %.pre, %161 ]
  %166 = phi i32 [ %156, %155 ], [ %.pre110, %161 ]
  %167 = phi i32 [ %157, %155 ], [ %.pre, %161 ]
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %exitcond96.not = icmp eq i64 %indvars.iv.next94, 410
  br i1 %exitcond96.not, label %154, label %155, !llvm.loop !16

.preheader:                                       ; preds = %154, %173
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %173 ], [ 0, %154 ]
  br label %175

168:                                              ; preds = %173
  %169 = load i32, ptr %2, align 4, !tbaa !5
  %170 = icmp eq i32 %169, 1000000007
  %. = select i1 %170, i32 -1, i32 %169
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.)
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %171, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  ret i32 0

173:                                              ; preds = %175
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond108.not = icmp eq i64 %indvars.iv.next106, 40
  br i1 %exitcond108.not, label %168, label %.preheader, !llvm.loop !17

175:                                              ; preds = %.preheader, %175
  %indvars.iv101 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next102, %175 ]
  %176 = getelementptr inbounds [410 x [410 x i32]], ptr @DP, i64 0, i64 %indvars.iv105, i64 %indvars.iv101
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i32 noundef %177)
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef nonnull @.str)
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %exitcond104.not = icmp eq i64 %indvars.iv.next102, 40
  br i1 %exitcond104.not, label %173, label %175, !llvm.loop !18
}

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.start.p0(i64 immarg, ptr nocapture) #2

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

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

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

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)) #4

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

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

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


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