; LLVM IR from kazunetakahashi/atcoder :: 2019/0324_ABC122 (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
@DP = external dso_local global [4 x [4 x [4 x [110 x i64]]]], align 16
@chars = external dso_local global [4 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 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 i64, align 8
  %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)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef @DP, ptr noundef getelementptr inbounds (i64, ptr @DP, i64 7040), ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  store i64 1, ptr getelementptr inbounds ([4 x [110 x i64]], ptr getelementptr inbounds ([4 x [4 x [110 x i64]]], ptr getelementptr inbounds ([4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 3), i64 0, i64 3), i64 0, i64 3), align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %359, %0
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = load i32, ptr @N, align 4, !tbaa !5
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %362

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

24:                                               ; preds = %355, %23
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = icmp slt i32 %25, 4
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %358

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

29:                                               ; preds = %351, %28
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = icmp slt i32 %30, 4
  br i1 %31, label %33, label %32

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

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

34:                                               ; preds = %347, %33
  %35 = load i32, ptr %7, align 4, !tbaa !5
  %36 = icmp slt i32 %35, 4
  br i1 %36, label %38, label %37

37:                                               ; preds = %34
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %350

38:                                               ; preds = %34
  %39 = load i32, ptr %5, align 4, !tbaa !5
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %101

41:                                               ; preds = %38
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = icmp eq i32 %42, 2
  br i1 %43, label %44, label %101

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

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

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

49:                                               ; preds = %45
  %50 = load i32, ptr %8, align 4, !tbaa !5
  %51 = icmp ne i32 %50, 1
  br i1 %51, label %52, label %96

52:                                               ; preds = %49
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %54
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %55, i64 0, i64 %57
  %59 = load i32, ptr %7, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [4 x [110 x i64]], ptr %58, i64 0, i64 %60
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [110 x i64], ptr %61, i64 0, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %67
  %69 = load i32, ptr %7, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %68, i64 0, i64 %70
  %72 = load i32, ptr %8, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [4 x [110 x i64]], ptr %71, i64 0, i64 %73
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [110 x i64], ptr %74, i64 0, i64 %77
  %79 = load i64, ptr %78, align 8, !tbaa !9
  %80 = add nsw i64 %79, %65
  store i64 %80, ptr %78, align 8, !tbaa !9
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %82
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %83, i64 0, i64 %85
  %87 = load i32, ptr %8, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [4 x [110 x i64]], ptr %86, i64 0, i64 %88
  %90 = load i32, ptr %3, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [110 x i64], ptr %89, i64 0, i64 %92
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = srem i64 %94, 1000000007
  store i64 %95, ptr %93, align 8, !tbaa !9
  br label %96

96:                                               ; preds = %52, %49
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %8, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %8, align 4, !tbaa !5
  br label %45, !llvm.loop !11

100:                                              ; preds = %48
  br label %346

101:                                              ; preds = %41, %38
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %164

104:                                              ; preds = %101
  %105 = load i32, ptr %7, align 4, !tbaa !5
  %106 = icmp eq i32 %105, 2
  br i1 %106, label %107, label %164

107:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %160, %107
  %109 = load i32, ptr %9, align 4, !tbaa !5
  %110 = icmp slt i32 %109, 4
  br i1 %110, label %112, label %111

111:                                              ; preds = %108
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %163

112:                                              ; preds = %108
  %113 = load i32, ptr %9, align 4, !tbaa !5
  %114 = icmp ne i32 %113, 1
  br i1 %114, label %115, label %159

115:                                              ; preds = %112
  %116 = load i32, ptr %5, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %117
  %119 = load i32, ptr %6, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %118, i64 0, i64 %120
  %122 = load i32, ptr %7, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [4 x [110 x i64]], ptr %121, i64 0, i64 %123
  %125 = load i32, ptr %3, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [110 x i64], ptr %124, i64 0, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !9
  %129 = load i32, ptr %6, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %130
  %132 = load i32, ptr %7, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %131, i64 0, i64 %133
  %135 = load i32, ptr %9, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [4 x [110 x i64]], ptr %134, i64 0, i64 %136
  %138 = load i32, ptr %3, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [110 x i64], ptr %137, i64 0, i64 %140
  %142 = load i64, ptr %141, align 8, !tbaa !9
  %143 = add nsw i64 %142, %128
  store i64 %143, ptr %141, align 8, !tbaa !9
  %144 = load i32, ptr %6, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %145
  %147 = load i32, ptr %7, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %146, i64 0, i64 %148
  %150 = load i32, ptr %9, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [4 x [110 x i64]], ptr %149, i64 0, i64 %151
  %153 = load i32, ptr %3, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [110 x i64], ptr %152, i64 0, i64 %155
  %157 = load i64, ptr %156, align 8, !tbaa !9
  %158 = srem i64 %157, 1000000007
  store i64 %158, ptr %156, align 8, !tbaa !9
  br label %159

159:                                              ; preds = %115, %112
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %9, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %9, align 4, !tbaa !5
  br label %108, !llvm.loop !13

163:                                              ; preds = %111
  br label %345

164:                                              ; preds = %104, %101
  %165 = load i32, ptr %6, align 4, !tbaa !5
  %166 = icmp eq i32 %165, 2
  br i1 %166, label %167, label %227

167:                                              ; preds = %164
  %168 = load i32, ptr %7, align 4, !tbaa !5
  %169 = icmp eq i32 %168, 0
  br i1 %169, label %170, label %227

170:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %171

171:                                              ; preds = %223, %170
  %172 = load i32, ptr %10, align 4, !tbaa !5
  %173 = icmp slt i32 %172, 4
  br i1 %173, label %175, label %174

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

175:                                              ; preds = %171
  %176 = load i32, ptr %10, align 4, !tbaa !5
  %177 = icmp ne i32 %176, 1
  br i1 %177, label %178, label %222

178:                                              ; preds = %175
  %179 = load i32, ptr %5, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %180
  %182 = load i32, ptr %6, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %181, i64 0, i64 %183
  %185 = load i32, ptr %7, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [4 x [110 x i64]], ptr %184, i64 0, i64 %186
  %188 = load i32, ptr %3, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [110 x i64], ptr %187, i64 0, i64 %189
  %191 = load i64, ptr %190, align 8, !tbaa !9
  %192 = load i32, ptr %6, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %193
  %195 = load i32, ptr %7, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %194, i64 0, i64 %196
  %198 = load i32, ptr %10, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [4 x [110 x i64]], ptr %197, i64 0, i64 %199
  %201 = load i32, ptr %3, align 4, !tbaa !5
  %202 = add nsw i32 %201, 1
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [110 x i64], ptr %200, i64 0, i64 %203
  %205 = load i64, ptr %204, align 8, !tbaa !9
  %206 = add nsw i64 %205, %191
  store i64 %206, ptr %204, align 8, !tbaa !9
  %207 = load i32, ptr %6, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %208
  %210 = load i32, ptr %7, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %209, i64 0, i64 %211
  %213 = load i32, ptr %10, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [4 x [110 x i64]], ptr %212, i64 0, i64 %214
  %216 = load i32, ptr %3, align 4, !tbaa !5
  %217 = add nsw i32 %216, 1
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [110 x i64], ptr %215, i64 0, i64 %218
  %220 = load i64, ptr %219, align 8, !tbaa !9
  %221 = srem i64 %220, 1000000007
  store i64 %221, ptr %219, align 8, !tbaa !9
  br label %222

222:                                              ; preds = %178, %175
  br label %223

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

226:                                              ; preds = %174
  br label %344

227:                                              ; preds = %167, %164
  %228 = load i32, ptr %6, align 4, !tbaa !5
  %229 = icmp eq i32 %228, 0
  br i1 %229, label %230, label %290

230:                                              ; preds = %227
  %231 = load i32, ptr %7, align 4, !tbaa !5
  %232 = icmp eq i32 %231, 1
  br i1 %232, label %233, label %290

233:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %286, %233
  %235 = load i32, ptr %11, align 4, !tbaa !5
  %236 = icmp slt i32 %235, 4
  br i1 %236, label %238, label %237

237:                                              ; preds = %234
  store i32 23, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %289

238:                                              ; preds = %234
  %239 = load i32, ptr %11, align 4, !tbaa !5
  %240 = icmp ne i32 %239, 2
  br i1 %240, label %241, label %285

241:                                              ; preds = %238
  %242 = load i32, ptr %5, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %243
  %245 = load i32, ptr %6, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %244, i64 0, i64 %246
  %248 = load i32, ptr %7, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [4 x [110 x i64]], ptr %247, i64 0, i64 %249
  %251 = load i32, ptr %3, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [110 x i64], ptr %250, i64 0, i64 %252
  %254 = load i64, ptr %253, align 8, !tbaa !9
  %255 = load i32, ptr %6, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %256
  %258 = load i32, ptr %7, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %257, i64 0, i64 %259
  %261 = load i32, ptr %11, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [4 x [110 x i64]], ptr %260, i64 0, i64 %262
  %264 = load i32, ptr %3, align 4, !tbaa !5
  %265 = add nsw i32 %264, 1
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [110 x i64], ptr %263, i64 0, i64 %266
  %268 = load i64, ptr %267, align 8, !tbaa !9
  %269 = add nsw i64 %268, %254
  store i64 %269, ptr %267, align 8, !tbaa !9
  %270 = load i32, ptr %6, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %271
  %273 = load i32, ptr %7, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %272, i64 0, i64 %274
  %276 = load i32, ptr %11, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [4 x [110 x i64]], ptr %275, i64 0, i64 %277
  %279 = load i32, ptr %3, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [110 x i64], ptr %278, i64 0, i64 %281
  %283 = load i64, ptr %282, align 8, !tbaa !9
  %284 = srem i64 %283, 1000000007
  store i64 %284, ptr %282, align 8, !tbaa !9
  br label %285

285:                                              ; preds = %241, %238
  br label %286

286:                                              ; preds = %285
  %287 = load i32, ptr %11, align 4, !tbaa !5
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %11, align 4, !tbaa !5
  br label %234, !llvm.loop !15

289:                                              ; preds = %237
  br label %343

290:                                              ; preds = %230, %227
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %291

291:                                              ; preds = %339, %290
  %292 = load i32, ptr %12, align 4, !tbaa !5
  %293 = icmp slt i32 %292, 4
  br i1 %293, label %295, label %294

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

295:                                              ; preds = %291
  %296 = load i32, ptr %5, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %297
  %299 = load i32, ptr %6, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %298, i64 0, i64 %300
  %302 = load i32, ptr %7, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [4 x [110 x i64]], ptr %301, i64 0, i64 %303
  %305 = load i32, ptr %3, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [110 x i64], ptr %304, i64 0, i64 %306
  %308 = load i64, ptr %307, align 8, !tbaa !9
  %309 = load i32, ptr %6, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %310
  %312 = load i32, ptr %7, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %311, i64 0, i64 %313
  %315 = load i32, ptr %12, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [4 x [110 x i64]], ptr %314, i64 0, i64 %316
  %318 = load i32, ptr %3, align 4, !tbaa !5
  %319 = add nsw i32 %318, 1
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [110 x i64], ptr %317, i64 0, i64 %320
  %322 = load i64, ptr %321, align 8, !tbaa !9
  %323 = add nsw i64 %322, %308
  store i64 %323, ptr %321, align 8, !tbaa !9
  %324 = load i32, ptr %6, align 4, !tbaa !5
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %325
  %327 = load i32, ptr %7, align 4, !tbaa !5
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %326, i64 0, i64 %328
  %330 = load i32, ptr %12, align 4, !tbaa !5
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds [4 x [110 x i64]], ptr %329, i64 0, i64 %331
  %333 = load i32, ptr %3, align 4, !tbaa !5
  %334 = add nsw i32 %333, 1
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [110 x i64], ptr %332, i64 0, i64 %335
  %337 = load i64, ptr %336, align 8, !tbaa !9
  %338 = srem i64 %337, 1000000007
  store i64 %338, ptr %336, align 8, !tbaa !9
  br label %339

339:                                              ; preds = %295
  %340 = load i32, ptr %12, align 4, !tbaa !5
  %341 = add nsw i32 %340, 1
  store i32 %341, ptr %12, align 4, !tbaa !5
  br label %291, !llvm.loop !16

342:                                              ; preds = %294
  br label %343

343:                                              ; preds = %342, %289
  br label %344

344:                                              ; preds = %343, %226
  br label %345

345:                                              ; preds = %344, %163
  br label %346

346:                                              ; preds = %345, %100
  br label %347

347:                                              ; preds = %346
  %348 = load i32, ptr %7, align 4, !tbaa !5
  %349 = add nsw i32 %348, 1
  store i32 %349, ptr %7, align 4, !tbaa !5
  br label %34, !llvm.loop !17

350:                                              ; preds = %37
  br label %351

351:                                              ; preds = %350
  %352 = load i32, ptr %6, align 4, !tbaa !5
  %353 = add nsw i32 %352, 1
  store i32 %353, ptr %6, align 4, !tbaa !5
  br label %29, !llvm.loop !18

354:                                              ; preds = %32
  br label %355

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

358:                                              ; preds = %27
  br label %359

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

362:                                              ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %363

363:                                              ; preds = %434, %362
  %364 = load i32, ptr %14, align 4, !tbaa !5
  %365 = icmp slt i32 %364, 4
  br i1 %365, label %367, label %366

366:                                              ; preds = %363
  store i32 29, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %437

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

368:                                              ; preds = %430, %367
  %369 = load i32, ptr %15, align 4, !tbaa !5
  %370 = icmp slt i32 %369, 4
  br i1 %370, label %372, label %371

371:                                              ; preds = %368
  store i32 32, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %433

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

373:                                              ; preds = %426, %372
  %374 = load i32, ptr %16, align 4, !tbaa !5
  %375 = icmp slt i32 %374, 4
  br i1 %375, label %377, label %376

376:                                              ; preds = %373
  store i32 35, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %429

377:                                              ; preds = %373
  %378 = load i32, ptr %14, align 4, !tbaa !5
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds [4 x i8], ptr @chars, i64 0, i64 %379
  %381 = load i8, ptr %380, align 1, !tbaa !21
  %382 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i8 noundef signext %381)
  %383 = load i32, ptr %15, align 4, !tbaa !5
  %384 = sext i32 %383 to i64
  %385 = getelementptr inbounds [4 x i8], ptr @chars, i64 0, i64 %384
  %386 = load i8, ptr %385, align 1, !tbaa !21
  %387 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %382, i8 noundef signext %386)
  %388 = load i32, ptr %16, align 4, !tbaa !5
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [4 x i8], ptr @chars, i64 0, i64 %389
  %391 = load i8, ptr %390, align 1, !tbaa !21
  %392 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %387, i8 noundef signext %391)
  %393 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %392, ptr noundef @.str)
  %394 = load i32, ptr %14, align 4, !tbaa !5
  %395 = sext i32 %394 to i64
  %396 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %395
  %397 = load i32, ptr %15, align 4, !tbaa !5
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %396, i64 0, i64 %398
  %400 = load i32, ptr %16, align 4, !tbaa !5
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds [4 x [110 x i64]], ptr %399, i64 0, i64 %401
  %403 = load i32, ptr @N, align 4, !tbaa !5
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds [110 x i64], ptr %402, i64 0, i64 %404
  %406 = load i64, ptr %405, align 8, !tbaa !9
  %407 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %393, i64 noundef %406)
  %408 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %407, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %409 = load i32, ptr %14, align 4, !tbaa !5
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %410
  %412 = load i32, ptr %15, align 4, !tbaa !5
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr %411, i64 0, i64 %413
  %415 = load i32, ptr %16, align 4, !tbaa !5
  %416 = sext i32 %415 to i64
  %417 = getelementptr inbounds [4 x [110 x i64]], ptr %414, i64 0, i64 %416
  %418 = load i32, ptr @N, align 4, !tbaa !5
  %419 = sext i32 %418 to i64
  %420 = getelementptr inbounds [110 x i64], ptr %417, i64 0, i64 %419
  %421 = load i64, ptr %420, align 8, !tbaa !9
  %422 = load i64, ptr %13, align 8, !tbaa !9
  %423 = add nsw i64 %422, %421
  store i64 %423, ptr %13, align 8, !tbaa !9
  %424 = load i64, ptr %13, align 8, !tbaa !9
  %425 = srem i64 %424, 1000000007
  store i64 %425, ptr %13, align 8, !tbaa !9
  br label %426

426:                                              ; preds = %377
  %427 = load i32, ptr %16, align 4, !tbaa !5
  %428 = add nsw i32 %427, 1
  store i32 %428, ptr %16, align 4, !tbaa !5
  br label %373, !llvm.loop !22

429:                                              ; preds = %376
  br label %430

430:                                              ; preds = %429
  %431 = load i32, ptr %15, align 4, !tbaa !5
  %432 = add nsw i32 %431, 1
  store i32 %432, ptr %15, align 4, !tbaa !5
  br label %368, !llvm.loop !23

433:                                              ; preds = %371
  br label %434

434:                                              ; preds = %433
  %435 = load i32, ptr %14, align 4, !tbaa !5
  %436 = add nsw i32 %435, 1
  store i32 %436, ptr %14, align 4, !tbaa !5
  br label %363, !llvm.loop !24

437:                                              ; preds = %366
  %438 = load i64, ptr %13, align 8, !tbaa !9
  %439 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %438)
  %440 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %439, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %441 = load i32, ptr %1, align 4
  ret i32 %441
}

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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #2

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

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

; Function Attrs: 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) #2

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 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)) #2

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

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

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

@N = external dso_local global i32, align 4
@DP = external dso_local global [4 x [4 x [4 x [110 x i64]]]], align 16
@chars = external dso_local local_unnamed_addr global [4 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 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 = 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)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef nonnull @DP, ptr noundef nonnull getelementptr inbounds (i8, ptr @DP, i64 56320), ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  store i64 1, ptr getelementptr inbounds (i8, ptr @DP, i64 55440), align 16, !tbaa !9
  %3 = load i32, ptr @N, align 4, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.preheader144.preheader, label %.preheader131.preheader

.preheader131.preheader:                          ; preds = %33, %0
  br label %.preheader131

.preheader144.preheader:                          ; preds = %0
  %wide.trip.count = zext nneg i32 %3 to i64
  br label %.preheader144

.preheader144:                                    ; preds = %.preheader144.preheader, %33
  %indvars.iv185 = phi i64 [ 0, %.preheader144.preheader ], [ %indvars.iv.next186, %33 ]
  %indvars.iv.next186 = add nuw nsw i64 %indvars.iv185, 1
  %invariant.gep = getelementptr inbounds [110 x i64], ptr @DP, i64 0, i64 %indvars.iv185
  %5 = getelementptr inbounds [4 x [110 x i64]], ptr getelementptr inbounds (i8, ptr @DP, i64 3520), i64 0, i64 0, i64 %indvars.iv.next186
  %6 = getelementptr inbounds [4 x [110 x i64]], ptr getelementptr inbounds (i8, ptr @DP, i64 3520), i64 0, i64 1, i64 %indvars.iv.next186
  %7 = getelementptr inbounds [4 x [110 x i64]], ptr getelementptr inbounds (i8, ptr @DP, i64 3520), i64 0, i64 3, i64 %indvars.iv.next186
  %8 = getelementptr inbounds [4 x [110 x i64]], ptr getelementptr inbounds (i8, ptr @DP, i64 7040), i64 0, i64 0, i64 %indvars.iv.next186
  %9 = getelementptr inbounds [4 x [110 x i64]], ptr getelementptr inbounds (i8, ptr @DP, i64 7040), i64 0, i64 2, i64 %indvars.iv.next186
  %10 = getelementptr inbounds [4 x [110 x i64]], ptr getelementptr inbounds (i8, ptr @DP, i64 7040), i64 0, i64 3, i64 %indvars.iv.next186
  %11 = getelementptr inbounds [4 x [110 x i64]], ptr getelementptr inbounds (i8, ptr @DP, i64 28160), i64 0, i64 0, i64 %indvars.iv.next186
  %12 = getelementptr inbounds [4 x [110 x i64]], ptr getelementptr inbounds (i8, ptr @DP, i64 28160), i64 0, i64 2, i64 %indvars.iv.next186
  %13 = getelementptr inbounds [4 x [110 x i64]], ptr getelementptr inbounds (i8, ptr @DP, i64 28160), i64 0, i64 3, i64 %indvars.iv.next186
  %14 = getelementptr inbounds [4 x [110 x i64]], ptr getelementptr inbounds (i8, ptr @DP, i64 7040), i64 0, i64 0, i64 %indvars.iv185
  %15 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr getelementptr inbounds (i8, ptr @DP, i64 28160), i64 0, i64 0, i64 0, i64 %indvars.iv.next186
  %16 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr getelementptr inbounds (i8, ptr @DP, i64 28160), i64 0, i64 0, i64 2, i64 %indvars.iv.next186
  %17 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr getelementptr inbounds (i8, ptr @DP, i64 28160), i64 0, i64 0, i64 3, i64 %indvars.iv.next186
  %18 = getelementptr inbounds [4 x [110 x i64]], ptr getelementptr inbounds (i8, ptr @DP, i64 7040), i64 0, i64 1, i64 %indvars.iv185
  %19 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr getelementptr inbounds (i8, ptr @DP, i64 28160), i64 0, i64 1, i64 0, i64 %indvars.iv.next186
  %20 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr getelementptr inbounds (i8, ptr @DP, i64 28160), i64 0, i64 1, i64 2, i64 %indvars.iv.next186
  %21 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr getelementptr inbounds (i8, ptr @DP, i64 28160), i64 0, i64 1, i64 3, i64 %indvars.iv.next186
  %22 = getelementptr inbounds [4 x [110 x i64]], ptr getelementptr inbounds (i8, ptr @DP, i64 7040), i64 0, i64 2, i64 %indvars.iv185
  %23 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr getelementptr inbounds (i8, ptr @DP, i64 28160), i64 0, i64 2, i64 0, i64 %indvars.iv.next186
  %24 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr getelementptr inbounds (i8, ptr @DP, i64 28160), i64 0, i64 2, i64 2, i64 %indvars.iv.next186
  %25 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr getelementptr inbounds (i8, ptr @DP, i64 28160), i64 0, i64 2, i64 3, i64 %indvars.iv.next186
  %26 = getelementptr inbounds [4 x [110 x i64]], ptr getelementptr inbounds (i8, ptr @DP, i64 7040), i64 0, i64 3, i64 %indvars.iv185
  %27 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr getelementptr inbounds (i8, ptr @DP, i64 28160), i64 0, i64 3, i64 0, i64 %indvars.iv.next186
  %28 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr getelementptr inbounds (i8, ptr @DP, i64 28160), i64 0, i64 3, i64 2, i64 %indvars.iv.next186
  %29 = getelementptr inbounds [4 x [4 x [110 x i64]]], ptr getelementptr inbounds (i8, ptr @DP, i64 28160), i64 0, i64 3, i64 3, i64 %indvars.iv.next186
  br label %.preheader143

.preheader143:                                    ; preds = %.preheader144, %77
  %indvars.iv181 = phi i64 [ 0, %.preheader144 ], [ %indvars.iv.next182, %77 ]
  %30 = icmp eq i64 %indvars.iv181, 0
  %31 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv181, i64 0, i64 1, i64 %indvars.iv185
  %gep = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr %invariant.gep, i64 0, i64 %indvars.iv181, i64 2
  %32 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv181, i64 0, i64 2, i64 %indvars.iv185
  br label %.preheader142

33:                                               ; preds = %77
  %exitcond188.not = icmp eq i64 %indvars.iv.next186, %wide.trip.count
  br i1 %exitcond188.not, label %.preheader131.preheader, label %.preheader144, !llvm.loop !11

.preheader142:                                    ; preds = %.preheader143, %.split.us
  %indvars.iv = phi i64 [ 0, %.preheader143 ], [ %indvars.iv.next, %.split.us ]
  %34 = icmp eq i64 %indvars.iv, 2
  %or.cond = and i1 %30, %34
  %35 = icmp eq i64 %indvars.iv, 0
  br i1 %or.cond, label %.loopexit.us.3, label %.preheader142.split.preheader

.loopexit.us.3:                                   ; preds = %.preheader142
  %36 = load i64, ptr %14, align 8, !tbaa !9
  %37 = load i64, ptr %15, align 8, !tbaa !9
  %38 = add nsw i64 %37, %36
  %39 = srem i64 %38, 1000000007
  store i64 %39, ptr %15, align 8, !tbaa !9
  %40 = load i64, ptr %16, align 8, !tbaa !9
  %41 = add nsw i64 %40, %36
  %42 = srem i64 %41, 1000000007
  store i64 %42, ptr %16, align 8, !tbaa !9
  %43 = load i64, ptr %14, align 8, !tbaa !9
  %44 = load i64, ptr %17, align 8, !tbaa !9
  %45 = add nsw i64 %44, %43
  %46 = srem i64 %45, 1000000007
  store i64 %46, ptr %17, align 8, !tbaa !9
  %47 = load i64, ptr %18, align 8, !tbaa !9
  %48 = load i64, ptr %19, align 8, !tbaa !9
  %49 = add nsw i64 %48, %47
  %50 = srem i64 %49, 1000000007
  store i64 %50, ptr %19, align 8, !tbaa !9
  %51 = load i64, ptr %20, align 8, !tbaa !9
  %52 = add nsw i64 %51, %47
  %53 = srem i64 %52, 1000000007
  store i64 %53, ptr %20, align 8, !tbaa !9
  %54 = load i64, ptr %18, align 8, !tbaa !9
  %55 = load i64, ptr %21, align 8, !tbaa !9
  %56 = add nsw i64 %55, %54
  %57 = srem i64 %56, 1000000007
  store i64 %57, ptr %21, align 8, !tbaa !9
  %58 = load i64, ptr %22, align 8, !tbaa !9
  %59 = load i64, ptr %23, align 8, !tbaa !9
  %60 = add nsw i64 %59, %58
  %61 = srem i64 %60, 1000000007
  store i64 %61, ptr %23, align 8, !tbaa !9
  %62 = load i64, ptr %24, align 8, !tbaa !9
  %63 = add nsw i64 %62, %58
  %64 = srem i64 %63, 1000000007
  store i64 %64, ptr %24, align 8, !tbaa !9
  %65 = load i64, ptr %22, align 8, !tbaa !9
  %66 = load i64, ptr %25, align 8, !tbaa !9
  %67 = add nsw i64 %66, %65
  %68 = srem i64 %67, 1000000007
  store i64 %68, ptr %25, align 8, !tbaa !9
  %69 = load i64, ptr %26, align 8, !tbaa !9
  %70 = load i64, ptr %27, align 8, !tbaa !9
  %71 = add nsw i64 %70, %69
  %72 = srem i64 %71, 1000000007
  store i64 %72, ptr %27, align 8, !tbaa !9
  %73 = load i64, ptr %28, align 8, !tbaa !9
  %74 = add nsw i64 %73, %69
  %75 = srem i64 %74, 1000000007
  store i64 %75, ptr %28, align 8, !tbaa !9
  %76 = load i64, ptr %26, align 8, !tbaa !9
  br label %.split.us

77:                                               ; preds = %.split.us
  %indvars.iv.next182 = add nuw nsw i64 %indvars.iv181, 1
  %exitcond184.not = icmp eq i64 %indvars.iv.next182, 4
  br i1 %exitcond184.not, label %33, label %.preheader143, !llvm.loop !13

.split.us:                                        ; preds = %.loopexit135.3, %.loopexit.us.3
  %.sink207 = phi ptr [ %179, %.loopexit135.3 ], [ %29, %.loopexit.us.3 ]
  %.sink206 = phi i64 [ %166, %.loopexit135.3 ], [ %76, %.loopexit.us.3 ]
  %78 = load i64, ptr %.sink207, align 8, !tbaa !9
  %79 = add nsw i64 %78, %.sink206
  %80 = srem i64 %79, 1000000007
  store i64 %80, ptr %.sink207, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 4
  br i1 %exitcond.not, label %77, label %.preheader142, !llvm.loop !14

.preheader142.split.preheader:                    ; preds = %.preheader142
  br i1 %34, label %.loopexit135.thread, label %.loopexit135

.loopexit135.thread:                              ; preds = %.preheader142.split.preheader
  %81 = load i64, ptr %gep, align 8, !tbaa !9
  %82 = load i64, ptr %11, align 8, !tbaa !9
  %83 = add nsw i64 %82, %81
  %84 = srem i64 %83, 1000000007
  store i64 %84, ptr %11, align 8, !tbaa !9
  %85 = load i64, ptr %12, align 8, !tbaa !9
  %86 = add nsw i64 %85, %81
  %87 = srem i64 %86, 1000000007
  store i64 %87, ptr %12, align 8, !tbaa !9
  %88 = load i64, ptr %gep, align 8, !tbaa !9
  %89 = load i64, ptr %13, align 8, !tbaa !9
  %90 = add nsw i64 %89, %88
  %91 = srem i64 %90, 1000000007
  store i64 %91, ptr %13, align 8, !tbaa !9
  br label %.preheader140.2

.loopexit135:                                     ; preds = %.preheader142.split.preheader
  %92 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv181, i64 %indvars.iv, i64 0, i64 %indvars.iv185
  %93 = load i64, ptr %92, align 8, !tbaa !9
  %94 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 0, i64 0, i64 %indvars.iv.next186
  %95 = load i64, ptr %94, align 8, !tbaa !9
  %96 = add nsw i64 %95, %93
  %97 = srem i64 %96, 1000000007
  store i64 %97, ptr %94, align 8, !tbaa !9
  %98 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 0, i64 1, i64 %indvars.iv.next186
  %99 = load i64, ptr %98, align 8, !tbaa !9
  %100 = add nsw i64 %99, %93
  %101 = srem i64 %100, 1000000007
  store i64 %101, ptr %98, align 8, !tbaa !9
  %102 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 0, i64 2, i64 %indvars.iv.next186
  %103 = load i64, ptr %102, align 8, !tbaa !9
  %104 = add nsw i64 %103, %93
  %105 = srem i64 %104, 1000000007
  store i64 %105, ptr %102, align 8, !tbaa !9
  %106 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 0, i64 3, i64 %indvars.iv.next186
  %107 = load i64, ptr %106, align 8, !tbaa !9
  %108 = add nsw i64 %107, %93
  %109 = srem i64 %108, 1000000007
  store i64 %109, ptr %106, align 8, !tbaa !9
  br i1 %35, label %.loopexit135.loopexit.2, label %.preheader140.2

.preheader140.2:                                  ; preds = %.loopexit135.thread, %.loopexit135
  %110 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv181, i64 %indvars.iv, i64 1, i64 %indvars.iv185
  %111 = load i64, ptr %110, align 8, !tbaa !9
  %112 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 1, i64 0, i64 %indvars.iv.next186
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = add nsw i64 %113, %111
  %115 = srem i64 %114, 1000000007
  store i64 %115, ptr %112, align 8, !tbaa !9
  %116 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 1, i64 1, i64 %indvars.iv.next186
  %117 = load i64, ptr %116, align 8, !tbaa !9
  %118 = add nsw i64 %117, %111
  %119 = srem i64 %118, 1000000007
  store i64 %119, ptr %116, align 8, !tbaa !9
  %120 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 1, i64 2, i64 %indvars.iv.next186
  %121 = load i64, ptr %120, align 8, !tbaa !9
  %122 = add nsw i64 %121, %111
  %123 = srem i64 %122, 1000000007
  store i64 %123, ptr %120, align 8, !tbaa !9
  %124 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 1, i64 3, i64 %indvars.iv.next186
  %125 = load i64, ptr %124, align 8, !tbaa !9
  %126 = add nsw i64 %125, %111
  %127 = srem i64 %126, 1000000007
  store i64 %127, ptr %124, align 8, !tbaa !9
  %128 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv181, i64 %indvars.iv, i64 2, i64 %indvars.iv185
  %129 = load i64, ptr %128, align 8, !tbaa !9
  %130 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 2, i64 0, i64 %indvars.iv.next186
  %131 = load i64, ptr %130, align 8, !tbaa !9
  %132 = add nsw i64 %131, %129
  %133 = srem i64 %132, 1000000007
  store i64 %133, ptr %130, align 8, !tbaa !9
  %134 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 2, i64 1, i64 %indvars.iv.next186
  %135 = load i64, ptr %134, align 8, !tbaa !9
  %136 = add nsw i64 %135, %129
  %137 = srem i64 %136, 1000000007
  store i64 %137, ptr %134, align 8, !tbaa !9
  %138 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 2, i64 2, i64 %indvars.iv.next186
  %139 = load i64, ptr %138, align 8, !tbaa !9
  %140 = add nsw i64 %139, %129
  %141 = srem i64 %140, 1000000007
  store i64 %141, ptr %138, align 8, !tbaa !9
  %142 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 2, i64 3, i64 %indvars.iv.next186
  br label %.loopexit135.3

.loopexit135.loopexit.2:                          ; preds = %.loopexit135
  %143 = load i64, ptr %31, align 8, !tbaa !9
  %144 = load i64, ptr %5, align 8, !tbaa !9
  %145 = add nsw i64 %144, %143
  %146 = srem i64 %145, 1000000007
  store i64 %146, ptr %5, align 8, !tbaa !9
  %147 = load i64, ptr %6, align 8, !tbaa !9
  %148 = add nsw i64 %147, %143
  %149 = srem i64 %148, 1000000007
  store i64 %149, ptr %6, align 8, !tbaa !9
  %150 = load i64, ptr %31, align 8, !tbaa !9
  %151 = load i64, ptr %7, align 8, !tbaa !9
  %152 = add nsw i64 %151, %150
  %153 = srem i64 %152, 1000000007
  store i64 %153, ptr %7, align 8, !tbaa !9
  %154 = load i64, ptr %32, align 8, !tbaa !9
  %155 = load i64, ptr %8, align 8, !tbaa !9
  %156 = add nsw i64 %155, %154
  %157 = srem i64 %156, 1000000007
  store i64 %157, ptr %8, align 8, !tbaa !9
  %158 = load i64, ptr %9, align 8, !tbaa !9
  %159 = add nsw i64 %158, %154
  %160 = srem i64 %159, 1000000007
  store i64 %160, ptr %9, align 8, !tbaa !9
  %161 = load i64, ptr %32, align 8, !tbaa !9
  br label %.loopexit135.3

.loopexit135.3:                                   ; preds = %.loopexit135.loopexit.2, %.preheader140.2
  %.sink211 = phi ptr [ %10, %.loopexit135.loopexit.2 ], [ %142, %.preheader140.2 ]
  %.sink210 = phi i64 [ %161, %.loopexit135.loopexit.2 ], [ %129, %.preheader140.2 ]
  %162 = load i64, ptr %.sink211, align 8, !tbaa !9
  %163 = add nsw i64 %162, %.sink210
  %164 = srem i64 %163, 1000000007
  store i64 %164, ptr %.sink211, align 8, !tbaa !9
  %165 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv181, i64 %indvars.iv, i64 3, i64 %indvars.iv185
  %166 = load i64, ptr %165, align 8, !tbaa !9
  %167 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 3, i64 0, i64 %indvars.iv.next186
  %168 = load i64, ptr %167, align 8, !tbaa !9
  %169 = add nsw i64 %168, %166
  %170 = srem i64 %169, 1000000007
  store i64 %170, ptr %167, align 8, !tbaa !9
  %171 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 3, i64 1, i64 %indvars.iv.next186
  %172 = load i64, ptr %171, align 8, !tbaa !9
  %173 = add nsw i64 %172, %166
  %174 = srem i64 %173, 1000000007
  store i64 %174, ptr %171, align 8, !tbaa !9
  %175 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 3, i64 2, i64 %indvars.iv.next186
  %176 = load i64, ptr %175, align 8, !tbaa !9
  %177 = add nsw i64 %176, %166
  %178 = srem i64 %177, 1000000007
  store i64 %178, ptr %175, align 8, !tbaa !9
  %179 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv, i64 3, i64 3, i64 %indvars.iv.next186
  br label %.split.us

.preheader131:                                    ; preds = %.preheader131.preheader, %261
  %indvars.iv197 = phi i64 [ %indvars.iv.next198, %261 ], [ 0, %.preheader131.preheader ]
  %.0118158 = phi i64 [ %260, %261 ], [ 0, %.preheader131.preheader ]
  %180 = getelementptr inbounds [4 x i8], ptr @chars, i64 0, i64 %indvars.iv197
  br label %.preheader

181:                                              ; preds = %261
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %260)
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0

.preheader:                                       ; preds = %.preheader131, %.preheader
  %indvars.iv193 = phi i64 [ 0, %.preheader131 ], [ %indvars.iv.next194, %.preheader ]
  %.1156 = phi i64 [ %.0118158, %.preheader131 ], [ %260, %.preheader ]
  %184 = getelementptr inbounds [4 x i8], ptr @chars, i64 0, i64 %indvars.iv193
  %185 = load i8, ptr %180, align 1, !tbaa !15
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i8 noundef signext %185)
  %187 = load i8, ptr %184, align 1, !tbaa !15
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %186, i8 noundef signext %187)
  %189 = load i8, ptr @chars, align 1, !tbaa !15
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %188, i8 noundef signext %189)
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %190, ptr noundef nonnull @.str)
  %192 = load i32, ptr @N, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv197, i64 %indvars.iv193, i64 0, i64 %193
  %195 = load i64, ptr %194, align 8, !tbaa !9
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %191, i64 noundef %195)
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %196, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %198 = load i32, ptr @N, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv197, i64 %indvars.iv193, i64 0, i64 %199
  %201 = load i64, ptr %200, align 8, !tbaa !9
  %202 = add nsw i64 %201, %.1156
  %203 = srem i64 %202, 1000000007
  %204 = load i8, ptr %180, align 1, !tbaa !15
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i8 noundef signext %204)
  %206 = load i8, ptr %184, align 1, !tbaa !15
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %205, i8 noundef signext %206)
  %208 = load i8, ptr getelementptr inbounds (i8, ptr @chars, i64 1), align 1, !tbaa !15
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %207, i8 noundef signext %208)
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %209, ptr noundef nonnull @.str)
  %211 = load i32, ptr @N, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv197, i64 %indvars.iv193, i64 1, i64 %212
  %214 = load i64, ptr %213, align 8, !tbaa !9
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %210, i64 noundef %214)
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %215, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %217 = load i32, ptr @N, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv197, i64 %indvars.iv193, i64 1, i64 %218
  %220 = load i64, ptr %219, align 8, !tbaa !9
  %221 = add nsw i64 %220, %203
  %222 = srem i64 %221, 1000000007
  %223 = load i8, ptr %180, align 1, !tbaa !15
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i8 noundef signext %223)
  %225 = load i8, ptr %184, align 1, !tbaa !15
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %224, i8 noundef signext %225)
  %227 = load i8, ptr getelementptr inbounds (i8, ptr @chars, i64 2), align 1, !tbaa !15
  %228 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %226, i8 noundef signext %227)
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %228, ptr noundef nonnull @.str)
  %230 = load i32, ptr @N, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv197, i64 %indvars.iv193, i64 2, i64 %231
  %233 = load i64, ptr %232, align 8, !tbaa !9
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %229, i64 noundef %233)
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %234, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %236 = load i32, ptr @N, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv197, i64 %indvars.iv193, i64 2, i64 %237
  %239 = load i64, ptr %238, align 8, !tbaa !9
  %240 = add nsw i64 %239, %222
  %241 = srem i64 %240, 1000000007
  %242 = load i8, ptr %180, align 1, !tbaa !15
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i8 noundef signext %242)
  %244 = load i8, ptr %184, align 1, !tbaa !15
  %245 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %243, i8 noundef signext %244)
  %246 = load i8, ptr getelementptr inbounds (i8, ptr @chars, i64 3), align 1, !tbaa !15
  %247 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %245, i8 noundef signext %246)
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %247, ptr noundef nonnull @.str)
  %249 = load i32, ptr @N, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv197, i64 %indvars.iv193, i64 3, i64 %250
  %252 = load i64, ptr %251, align 8, !tbaa !9
  %253 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %248, i64 noundef %252)
  %254 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %253, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %255 = load i32, ptr @N, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [4 x [4 x [4 x [110 x i64]]]], ptr @DP, i64 0, i64 %indvars.iv197, i64 %indvars.iv193, i64 3, i64 %256
  %258 = load i64, ptr %257, align 8, !tbaa !9
  %259 = add nsw i64 %258, %241
  %260 = srem i64 %259, 1000000007
  %indvars.iv.next194 = add nuw nsw i64 %indvars.iv193, 1
  %exitcond196.not = icmp eq i64 %indvars.iv.next194, 4
  br i1 %exitcond196.not, label %261, label %.preheader, !llvm.loop !16

261:                                              ; preds = %.preheader
  %indvars.iv.next198 = add nuw nsw i64 %indvars.iv197, 1
  %exitcond200.not = icmp eq i64 %indvars.iv.next198, 4
  br i1 %exitcond200.not, label %181, label %.preheader131, !llvm.loop !17
}

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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

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

; Function Attrs: 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 #2

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

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

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

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

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

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


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