; LLVM IR from kazunetakahashi/atcoder :: 2017/1115_ARC074 (E)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.1" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.1" = type { i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@N = external dso_local global i32, align 4
@M = external dso_local global i32, align 4
@V = external dso_local global [310 x %"class.std::vector"], align 16
@DP = external dso_local global [310 x [310 x [310 x i64]]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::tuple", align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.std::tuple", align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %27 = 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)
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(4) @M)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %41, %0
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = load i32, ptr @M, align 4, !tbaa !5
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %34, label %33

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

34:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [310 x %"class.std::vector"], ptr @V, i64 0, i64 %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  call void @_ZNSt5tupleIJiiEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %5) #8
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %41

41:                                               ; preds = %34
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %2, align 4, !tbaa !5
  br label %29, !llvm.loop !9

44:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef @DP, ptr noundef getelementptr inbounds (i64, ptr @DP, i64 29791000), ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  store i64 3, ptr getelementptr inbounds ([310 x [310 x i64]], ptr getelementptr inbounds ([310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 1), i64 0, i64 1), align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %311, %44
  %46 = load i32, ptr %8, align 4, !tbaa !5
  %47 = load i32, ptr @N, align 4, !tbaa !5
  %48 = icmp sle i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 5, ptr %9, align 4
  br label %314

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [310 x %"class.std::vector"], ptr @V, i64 0, i64 %52
  store ptr %53, ptr %10, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %54 = load ptr, ptr %10, align 8, !tbaa !13
  %55 = call ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #8
  %56 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %55, ptr %56, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %57 = load ptr, ptr %10, align 8, !tbaa !13
  %58 = call ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #8
  %59 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %58, ptr %59, align 8
  br label %60

60:                                               ; preds = %177, %50
  %61 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br i1 %61, label %63, label %62

62:                                               ; preds = %60
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %179

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %64 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %64, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %13) #8
  %66 = load i32, ptr %65, align 4, !tbaa !5
  store i32 %66, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %13) #8
  %68 = load i32, ptr %67, align 4, !tbaa !5
  store i32 %68, ptr %15, align 4, !tbaa !5
  %69 = load i32, ptr %15, align 4, !tbaa !5
  %70 = icmp eq i32 %69, 1
  br i1 %70, label %71, label %103

71:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %72 = load i32, ptr %14, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %16, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %99, %71
  %75 = load i32, ptr %16, align 4, !tbaa !5
  %76 = load i32, ptr %8, align 4, !tbaa !5
  %77 = icmp sle i32 %75, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  store i32 10, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %102

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

80:                                               ; preds = %95, %79
  %81 = load i32, ptr %17, align 4, !tbaa !5
  %82 = load i32, ptr %16, align 4, !tbaa !5
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %85, label %84

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

85:                                               ; preds = %80
  %86 = load i32, ptr %8, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %87
  %89 = load i32, ptr %16, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [310 x [310 x i64]], ptr %88, i64 0, i64 %90
  %92 = load i32, ptr %17, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [310 x i64], ptr %91, i64 0, i64 %93
  store i64 0, ptr %94, align 8, !tbaa !11
  br label %95

95:                                               ; preds = %85
  %96 = load i32, ptr %17, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %17, align 4, !tbaa !5
  br label %80, !llvm.loop !15

98:                                               ; preds = %84
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %16, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %16, align 4, !tbaa !5
  br label %74, !llvm.loop !16

102:                                              ; preds = %78
  br label %176

103:                                              ; preds = %63
  %104 = load i32, ptr %15, align 4, !tbaa !5
  %105 = icmp eq i32 %104, 2
  br i1 %105, label %106, label %145

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

107:                                              ; preds = %141, %106
  %108 = load i32, ptr %18, align 4, !tbaa !5
  %109 = load i32, ptr %8, align 4, !tbaa !5
  %110 = icmp sle i32 %108, %109
  br i1 %110, label %112, label %111

111:                                              ; preds = %107
  store i32 16, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %144

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

113:                                              ; preds = %137, %112
  %114 = load i32, ptr %19, align 4, !tbaa !5
  %115 = load i32, ptr %18, align 4, !tbaa !5
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 19, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %140

118:                                              ; preds = %113
  %119 = load i32, ptr %18, align 4, !tbaa !5
  %120 = load i32, ptr %14, align 4, !tbaa !5
  %121 = icmp sgt i32 %119, %120
  br i1 %121, label %122, label %126

122:                                              ; preds = %118
  %123 = load i32, ptr %14, align 4, !tbaa !5
  %124 = load i32, ptr %19, align 4, !tbaa !5
  %125 = icmp sge i32 %123, %124
  br i1 %125, label %136, label %126

126:                                              ; preds = %122, %118
  %127 = load i32, ptr %8, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %128
  %130 = load i32, ptr %18, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [310 x [310 x i64]], ptr %129, i64 0, i64 %131
  %133 = load i32, ptr %19, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [310 x i64], ptr %132, i64 0, i64 %134
  store i64 0, ptr %135, align 8, !tbaa !11
  br label %136

136:                                              ; preds = %126, %122
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %19, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %19, align 4, !tbaa !5
  br label %113, !llvm.loop !17

140:                                              ; preds = %117
  br label %141

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

144:                                              ; preds = %111
  br label %175

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

146:                                              ; preds = %171, %145
  %147 = load i32, ptr %20, align 4, !tbaa !5
  %148 = load i32, ptr %8, align 4, !tbaa !5
  %149 = icmp sle i32 %147, %148
  br i1 %149, label %151, label %150

150:                                              ; preds = %146
  store i32 22, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %174

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

152:                                              ; preds = %167, %151
  %153 = load i32, ptr %21, align 4, !tbaa !5
  %154 = load i32, ptr %14, align 4, !tbaa !5
  %155 = icmp sle i32 %153, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %152
  store i32 25, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %170

157:                                              ; preds = %152
  %158 = load i32, ptr %8, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %159
  %161 = load i32, ptr %20, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [310 x [310 x i64]], ptr %160, i64 0, i64 %162
  %164 = load i32, ptr %21, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [310 x i64], ptr %163, i64 0, i64 %165
  store i64 0, ptr %166, align 8, !tbaa !11
  br label %167

167:                                              ; preds = %157
  %168 = load i32, ptr %21, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %21, align 4, !tbaa !5
  br label %152, !llvm.loop !19

170:                                              ; preds = %156
  br label %171

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

174:                                              ; preds = %150
  br label %175

175:                                              ; preds = %174, %144
  br label %176

176:                                              ; preds = %175, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %177

177:                                              ; preds = %176
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br label %60

179:                                              ; preds = %62
  %180 = load i32, ptr %8, align 4, !tbaa !5
  %181 = load i32, ptr @N, align 4, !tbaa !5
  %182 = icmp eq i32 %180, %181
  br i1 %182, label %183, label %184

183:                                              ; preds = %179
  store i32 5, ptr %9, align 4
  br label %314

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

185:                                              ; preds = %307, %184
  %186 = load i32, ptr %22, align 4, !tbaa !5
  %187 = load i32, ptr %8, align 4, !tbaa !5
  %188 = icmp sle i32 %186, %187
  br i1 %188, label %190, label %189

189:                                              ; preds = %185
  store i32 28, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %310

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

191:                                              ; preds = %303, %190
  %192 = load i32, ptr %23, align 4, !tbaa !5
  %193 = load i32, ptr %22, align 4, !tbaa !5
  %194 = icmp slt i32 %192, %193
  br i1 %194, label %196, label %195

195:                                              ; preds = %191
  store i32 31, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %306

196:                                              ; preds = %191
  %197 = load i32, ptr %8, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %198
  %200 = load i32, ptr %22, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [310 x [310 x i64]], ptr %199, i64 0, i64 %201
  %203 = load i32, ptr %23, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [310 x i64], ptr %202, i64 0, i64 %204
  %206 = load i64, ptr %205, align 8, !tbaa !11
  %207 = load i32, ptr %8, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %209
  %211 = load i32, ptr %22, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [310 x [310 x i64]], ptr %210, i64 0, i64 %212
  %214 = load i32, ptr %23, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [310 x i64], ptr %213, i64 0, i64 %215
  %217 = load i64, ptr %216, align 8, !tbaa !11
  %218 = add nsw i64 %217, %206
  store i64 %218, ptr %216, align 8, !tbaa !11
  %219 = load i32, ptr %8, align 4, !tbaa !5
  %220 = add nsw i32 %219, 1
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %221
  %223 = load i32, ptr %22, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [310 x [310 x i64]], ptr %222, i64 0, i64 %224
  %226 = load i32, ptr %23, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [310 x i64], ptr %225, i64 0, i64 %227
  %229 = load i64, ptr %228, align 8, !tbaa !11
  %230 = srem i64 %229, 1000000007
  store i64 %230, ptr %228, align 8, !tbaa !11
  %231 = load i32, ptr %8, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %232
  %234 = load i32, ptr %22, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [310 x [310 x i64]], ptr %233, i64 0, i64 %235
  %237 = load i32, ptr %23, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [310 x i64], ptr %236, i64 0, i64 %238
  %240 = load i64, ptr %239, align 8, !tbaa !11
  %241 = load i32, ptr %8, align 4, !tbaa !5
  %242 = add nsw i32 %241, 1
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %243
  %245 = load i32, ptr %8, align 4, !tbaa !5
  %246 = add nsw i32 %245, 1
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [310 x [310 x i64]], ptr %244, i64 0, i64 %247
  %249 = load i32, ptr %23, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [310 x i64], ptr %248, i64 0, i64 %250
  %252 = load i64, ptr %251, align 8, !tbaa !11
  %253 = add nsw i64 %252, %240
  store i64 %253, ptr %251, align 8, !tbaa !11
  %254 = load i32, ptr %8, align 4, !tbaa !5
  %255 = add nsw i32 %254, 1
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %256
  %258 = load i32, ptr %8, align 4, !tbaa !5
  %259 = add nsw i32 %258, 1
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [310 x [310 x i64]], ptr %257, i64 0, i64 %260
  %262 = load i32, ptr %23, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [310 x i64], ptr %261, i64 0, i64 %263
  %265 = load i64, ptr %264, align 8, !tbaa !11
  %266 = srem i64 %265, 1000000007
  store i64 %266, ptr %264, align 8, !tbaa !11
  %267 = load i32, ptr %8, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %268
  %270 = load i32, ptr %22, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [310 x [310 x i64]], ptr %269, i64 0, i64 %271
  %273 = load i32, ptr %23, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [310 x i64], ptr %272, i64 0, i64 %274
  %276 = load i64, ptr %275, align 8, !tbaa !11
  %277 = load i32, ptr %8, align 4, !tbaa !5
  %278 = add nsw i32 %277, 1
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %279
  %281 = load i32, ptr %8, align 4, !tbaa !5
  %282 = add nsw i32 %281, 1
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [310 x [310 x i64]], ptr %280, i64 0, i64 %283
  %285 = load i32, ptr %22, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [310 x i64], ptr %284, i64 0, i64 %286
  %288 = load i64, ptr %287, align 8, !tbaa !11
  %289 = add nsw i64 %288, %276
  store i64 %289, ptr %287, align 8, !tbaa !11
  %290 = load i32, ptr %8, align 4, !tbaa !5
  %291 = add nsw i32 %290, 1
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %292
  %294 = load i32, ptr %8, align 4, !tbaa !5
  %295 = add nsw i32 %294, 1
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [310 x [310 x i64]], ptr %293, i64 0, i64 %296
  %298 = load i32, ptr %22, align 4, !tbaa !5
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [310 x i64], ptr %297, i64 0, i64 %299
  %301 = load i64, ptr %300, align 8, !tbaa !11
  %302 = srem i64 %301, 1000000007
  store i64 %302, ptr %300, align 8, !tbaa !11
  br label %303

303:                                              ; preds = %196
  %304 = load i32, ptr %23, align 4, !tbaa !5
  %305 = add nsw i32 %304, 1
  store i32 %305, ptr %23, align 4, !tbaa !5
  br label %191, !llvm.loop !21

306:                                              ; preds = %195
  br label %307

307:                                              ; preds = %306
  %308 = load i32, ptr %22, align 4, !tbaa !5
  %309 = add nsw i32 %308, 1
  store i32 %309, ptr %22, align 4, !tbaa !5
  br label %185, !llvm.loop !22

310:                                              ; preds = %189
  br label %311

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

314:                                              ; preds = %183, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %315

315:                                              ; preds = %314
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  store i64 0, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 1, ptr %25, align 4, !tbaa !5
  br label %316

316:                                              ; preds = %346, %315
  %317 = load i32, ptr %25, align 4, !tbaa !5
  %318 = load i32, ptr @N, align 4, !tbaa !5
  %319 = icmp sle i32 %317, %318
  br i1 %319, label %321, label %320

320:                                              ; preds = %316
  store i32 34, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %349

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

322:                                              ; preds = %342, %321
  %323 = load i32, ptr %26, align 4, !tbaa !5
  %324 = load i32, ptr %25, align 4, !tbaa !5
  %325 = icmp slt i32 %323, %324
  br i1 %325, label %327, label %326

326:                                              ; preds = %322
  store i32 37, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %345

327:                                              ; preds = %322
  %328 = load i32, ptr @N, align 4, !tbaa !5
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %329
  %331 = load i32, ptr %25, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [310 x [310 x i64]], ptr %330, i64 0, i64 %332
  %334 = load i32, ptr %26, align 4, !tbaa !5
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [310 x i64], ptr %333, i64 0, i64 %335
  %337 = load i64, ptr %336, align 8, !tbaa !11
  %338 = load i64, ptr %24, align 8, !tbaa !11
  %339 = add nsw i64 %338, %337
  store i64 %339, ptr %24, align 8, !tbaa !11
  %340 = load i64, ptr %24, align 8, !tbaa !11
  %341 = srem i64 %340, 1000000007
  store i64 %341, ptr %24, align 8, !tbaa !11
  br label %342

342:                                              ; preds = %327
  %343 = load i32, ptr %26, align 4, !tbaa !5
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr %26, align 4, !tbaa !5
  br label %322, !llvm.loop !24

345:                                              ; preds = %326
  br label %346

346:                                              ; preds = %345
  %347 = load i32, ptr %25, align 4, !tbaa !5
  %348 = add nsw i32 %347, 1
  store i32 %348, ptr %25, align 4, !tbaa !5
  br label %316, !llvm.loop !25

349:                                              ; preds = %320
  %350 = load i64, ptr %24, align 8, !tbaa !11
  %351 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %350)
  %352 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %351, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  %353 = load i32, ptr %1, align 4
  ret i32 %353
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5tupleIJiiEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4 align 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 uwtable
declare dso_local void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 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) #3 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)) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.1" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.1" = type { i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@N = external dso_local global i32, align 4
@M = external dso_local global i32, align 4
@V = external dso_local global [310 x %"class.std::vector"], align 16
@DP = external dso_local global [310 x [310 x [310 x i64]]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::tuple", align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.std::tuple", align 8
  %9 = 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)
  %10 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(4) @M)
  %11 = load i32, ptr @M, align 4, !tbaa !5
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef nonnull @DP, ptr noundef nonnull getelementptr inbounds (i8, ptr @DP, i64 238328000), ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  store i64 3, ptr getelementptr inbounds (i8, ptr @DP, i64 771280), align 16, !tbaa !9
  %13 = load i32, ptr @N, align 4, !tbaa !5
  %.not138 = icmp slt i32 %13, 1
  br i1 %.not138, label %._crit_edge149, label %.lr.ph141

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.095118 = phi i32 [ %20, %.lr.ph ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [310 x %"class.std::vector"], ptr @V, i64 0, i64 %18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  call void @_ZNSt5tupleIJiiEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %3) #8
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  %20 = add nuw nsw i32 %.095118, 1
  %21 = load i32, ptr @M, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.lr.ph141:                                        ; preds = %._crit_edge, %90
  %indvars.iv197 = phi i64 [ %indvars.iv.next198, %90 ], [ 1, %._crit_edge ]
  %indvars.iv195 = phi i64 [ %indvars.iv.next196, %90 ], [ 2, %._crit_edge ]
  %indvar = phi i64 [ %indvar.next, %90 ], [ 0, %._crit_edge ]
  %23 = trunc i64 %indvar to i32
  %indvars201 = trunc i64 %indvars.iv197 to i32
  %24 = mul nuw nsw i64 %indvar, 768800
  %gep = getelementptr i8, ptr getelementptr inbounds (i8, ptr @DP, i64 768800), i64 %24
  %25 = getelementptr inbounds [310 x %"class.std::vector"], ptr @V, i64 0, i64 %indvars.iv197
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %26 = call ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  store ptr %26, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %27 = call ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  store ptr %27, ptr %7, align 8
  %28 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br i1 %28, label %.lr.ph134.preheader, label %._crit_edge135

.lr.ph134.preheader:                              ; preds = %.lr.ph141
  %29 = add nuw nsw i64 %24, 771280
  %30 = getelementptr i8, ptr @DP, i64 %29
  %31 = getelementptr i8, ptr @DP, i64 %29
  %xtraiter225 = and i64 %indvars.iv197, 7
  %32 = icmp ult i64 %indvar, 7
  %unroll_iter227 = and i64 %indvars.iv197, 9223372036854775800
  %invariant.gep = getelementptr i8, ptr %31, i64 2480
  %invariant.gep240 = getelementptr i8, ptr %31, i64 4960
  %invariant.gep242 = getelementptr i8, ptr %31, i64 7440
  %invariant.gep244 = getelementptr i8, ptr %31, i64 9920
  %invariant.gep246 = getelementptr i8, ptr %31, i64 12400
  %invariant.gep248 = getelementptr i8, ptr %31, i64 14880
  %invariant.gep250 = getelementptr i8, ptr %31, i64 17360
  %lcmp.mod226.not = icmp eq i64 %xtraiter225, 0
  br label %.lr.ph134

._crit_edge135:                                   ; preds = %.loopexit112, %.lr.ph141
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %33 = load i32, ptr @N, align 4, !tbaa !5
  %34 = zext i32 %33 to i64
  %35 = icmp eq i64 %indvars.iv197, %34
  br i1 %35, label %._crit_edge142, label %.preheader117

.preheader117:                                    ; preds = %._crit_edge135
  %indvars.iv.next198 = add nuw nsw i64 %indvars.iv197, 1
  br label %.preheader110

.lr.ph134:                                        ; preds = %.lr.ph134.preheader, %.loopexit112
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %36 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %37 = load i64, ptr %36, align 4
  store i64 %37, ptr %8, align 8
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %8) #8
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %8) #8
  %41 = load i32, ptr %40, align 4, !tbaa !5
  switch i32 %41, label %.preheader111 [
    i32 1, label %.preheader113
    i32 2, label %.preheader109.preheader
  ]

.preheader109.preheader:                          ; preds = %.lr.ph134
  %42 = sext i32 %39 to i64
  br label %.preheader109

.preheader113:                                    ; preds = %.lr.ph134
  %43 = sext i32 %39 to i64
  %.not105.not125 = icmp sgt i64 %indvars.iv197, %43
  br i1 %.not105.not125, label %.preheader108.preheader, label %.loopexit112

.preheader108.preheader:                          ; preds = %.preheader113
  %44 = add i32 %39, 1
  %45 = sub i32 %indvars201, %39
  %xtraiter221 = and i32 %45, 1
  %46 = icmp eq i32 %39, %23
  br i1 %46, label %.loopexit112.loopexit218.unr-lcssa, label %.preheader108.preheader.new

.preheader108.preheader.new:                      ; preds = %.preheader108.preheader
  %unroll_iter223 = and i32 %45, -2
  br label %.preheader108

.preheader111:                                    ; preds = %.lr.ph134
  %.not102128 = icmp slt i32 %39, 0
  br i1 %.not102128, label %.loopexit112, label %.preheader107.preheader

.preheader107.preheader:                          ; preds = %.preheader111
  %47 = add nuw i32 %39, 1
  %48 = zext i32 %47 to i64
  %49 = shl nuw nsw i64 %48, 3
  br i1 %32, label %.loopexit112.loopexit.unr-lcssa, label %.preheader107

.loopexit:                                        ; preds = %.lr.ph123, %.preheader108
  %.094127.1 = add nsw i32 %.094.in126, 2
  %.not106121.1 = icmp slt i32 %.094.in126, -1
  br i1 %.not106121.1, label %.loopexit.1, label %.lr.ph123.1

.lr.ph123.1:                                      ; preds = %.loopexit
  %50 = trunc i64 %indvars.iv172 to i32
  %51 = or disjoint i32 %50, 1
  %52 = add i32 %44, %51
  %53 = zext i32 %52 to i64
  %54 = shl nuw nsw i64 %53, 3
  %55 = mul nuw nsw i64 %53, 2480
  %scevgep168.1 = getelementptr i8, ptr %gep, i64 %55
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep168.1, i8 0, i64 %54, i1 false), !tbaa !9
  br label %.loopexit.1

.loopexit.1:                                      ; preds = %.lr.ph123.1, %.loopexit
  %indvars.iv.next173.1 = add nuw nsw i64 %indvars.iv172, 2
  %niter224.next.1 = add i32 %niter224, 2
  %niter224.ncmp.1 = icmp eq i32 %niter224.next.1, %unroll_iter223
  br i1 %niter224.ncmp.1, label %.loopexit112.loopexit218.unr-lcssa, label %.preheader108, !llvm.loop !13

.preheader108:                                    ; preds = %.loopexit.1, %.preheader108.preheader.new
  %indvars.iv172 = phi i64 [ 0, %.preheader108.preheader.new ], [ %indvars.iv.next173.1, %.loopexit.1 ]
  %.094.in126 = phi i32 [ %39, %.preheader108.preheader.new ], [ %.094127.1, %.loopexit.1 ]
  %niter224 = phi i32 [ 0, %.preheader108.preheader.new ], [ %niter224.next.1, %.loopexit.1 ]
  %.not106121 = icmp slt i32 %.094.in126, 0
  br i1 %.not106121, label %.loopexit, label %.lr.ph123

.lr.ph123:                                        ; preds = %.preheader108
  %56 = trunc nuw i64 %indvars.iv172 to i32
  %57 = add i32 %44, %56
  %58 = zext i32 %57 to i64
  %59 = shl nuw nsw i64 %58, 3
  %60 = mul nuw nsw i64 %58, 2480
  %scevgep168 = getelementptr i8, ptr %gep, i64 %60
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep168, i8 0, i64 %59, i1 false), !tbaa !9
  br label %.loopexit

.preheader109:                                    ; preds = %.preheader109.preheader, %.split.us
  %indvars.iv160 = phi i64 [ 1, %.preheader109.preheader ], [ %indvars.iv.next161, %.split.us ]
  %indvar155 = phi i64 [ 0, %.preheader109.preheader ], [ %indvar.next156, %.split.us ]
  %61 = icmp sle i64 %indvars.iv160, %42
  %.fr = freeze i1 %61
  br i1 %.fr, label %.preheader109.split.us.preheader, label %.preheader109.split.preheader

.preheader109.split.preheader:                    ; preds = %.preheader109
  %xtraiter = and i64 %indvars.iv160, 1
  %62 = icmp eq i64 %indvar155, 0
  br i1 %62, label %.split.us.loopexit.unr-lcssa, label %.preheader109.split.preheader.new

.preheader109.split.preheader.new:                ; preds = %.preheader109.split.preheader
  %unroll_iter = and i64 %indvars.iv160, 9223372036854775806
  br label %.preheader109.split

.preheader109.split.us.preheader:                 ; preds = %.preheader109
  %63 = shl nuw nsw i64 %indvar155, 3
  %64 = add nuw nsw i64 %63, 8
  %65 = mul nuw nsw i64 %indvar155, 2480
  %scevgep = getelementptr i8, ptr %30, i64 %65
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %scevgep, i8 0, i64 %64, i1 false), !tbaa !9
  br label %.split.us

.split.us.loopexit.unr-lcssa:                     ; preds = %72, %.preheader109.split.preheader
  %indvars.iv.unr = phi i64 [ 0, %.preheader109.split.preheader ], [ %indvars.iv.next.1, %72 ]
  %lcmp.mod.not = icmp ne i64 %xtraiter, 0
  %.not104.epil = icmp sgt i64 %indvars.iv.unr, %42
  %or.cond = select i1 %lcmp.mod.not, i1 %.not104.epil, i1 false
  br i1 %or.cond, label %66, label %.split.us

66:                                               ; preds = %.split.us.loopexit.unr-lcssa
  %67 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %indvars.iv197, i64 %indvars.iv160, i64 %indvars.iv.unr
  store i64 0, ptr %67, align 8, !tbaa !9
  br label %.split.us

.split.us:                                        ; preds = %.split.us.loopexit.unr-lcssa, %66, %.preheader109.split.us.preheader
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %indvar.next156 = add nuw nsw i64 %indvar155, 1
  %exitcond164.not = icmp eq i64 %indvar.next156, %indvars.iv197
  br i1 %exitcond164.not, label %.loopexit112, label %.preheader109, !llvm.loop !14

.preheader109.split:                              ; preds = %72, %.preheader109.split.preheader.new
  %indvars.iv = phi i64 [ 0, %.preheader109.split.preheader.new ], [ %indvars.iv.next.1, %72 ]
  %niter = phi i64 [ 0, %.preheader109.split.preheader.new ], [ %niter.next.1, %72 ]
  %.not104 = icmp sgt i64 %indvars.iv, %42
  br i1 %.not104, label %68, label %.preheader109.split.1

68:                                               ; preds = %.preheader109.split
  %69 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %indvars.iv197, i64 %indvars.iv160, i64 %indvars.iv
  store i64 0, ptr %69, align 16, !tbaa !9
  br label %.preheader109.split.1

.preheader109.split.1:                            ; preds = %.preheader109.split, %68
  %.not104.1.not = icmp slt i64 %indvars.iv, %42
  br i1 %.not104.1.not, label %72, label %70

70:                                               ; preds = %.preheader109.split.1
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %71 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %indvars.iv197, i64 %indvars.iv160, i64 %indvars.iv.next
  store i64 0, ptr %71, align 8, !tbaa !9
  br label %72

72:                                               ; preds = %70, %.preheader109.split.1
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.split.us.loopexit.unr-lcssa, label %.preheader109.split, !llvm.loop !15

.preheader107:                                    ; preds = %.preheader107.preheader, %.preheader107
  %indvar176 = phi i64 [ %indvar.next177.7, %.preheader107 ], [ 0, %.preheader107.preheader ]
  %niter228 = phi i64 [ %niter228.next.7, %.preheader107 ], [ 0, %.preheader107.preheader ]
  %73 = mul nuw nsw i64 %indvar176, 2480
  %scevgep178 = getelementptr i8, ptr %31, i64 %73
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %scevgep178, i8 0, i64 %49, i1 false), !tbaa !9
  %74 = mul nuw i64 %indvar176, 2480
  %gep239 = getelementptr i8, ptr %invariant.gep, i64 %74
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %gep239, i8 0, i64 %49, i1 false), !tbaa !9
  %75 = mul nuw i64 %indvar176, 2480
  %gep241 = getelementptr i8, ptr %invariant.gep240, i64 %75
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %gep241, i8 0, i64 %49, i1 false), !tbaa !9
  %76 = mul nuw i64 %indvar176, 2480
  %gep243 = getelementptr i8, ptr %invariant.gep242, i64 %76
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %gep243, i8 0, i64 %49, i1 false), !tbaa !9
  %77 = mul nuw i64 %indvar176, 2480
  %gep245 = getelementptr i8, ptr %invariant.gep244, i64 %77
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %gep245, i8 0, i64 %49, i1 false), !tbaa !9
  %78 = mul nuw i64 %indvar176, 2480
  %gep247 = getelementptr i8, ptr %invariant.gep246, i64 %78
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %gep247, i8 0, i64 %49, i1 false), !tbaa !9
  %79 = mul nuw i64 %indvar176, 2480
  %gep249 = getelementptr i8, ptr %invariant.gep248, i64 %79
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %gep249, i8 0, i64 %49, i1 false), !tbaa !9
  %80 = mul nuw i64 %indvar176, 2480
  %gep251 = getelementptr i8, ptr %invariant.gep250, i64 %80
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %gep251, i8 0, i64 %49, i1 false), !tbaa !9
  %indvar.next177.7 = add nuw nsw i64 %indvar176, 8
  %niter228.next.7 = add i64 %niter228, 8
  %niter228.ncmp.7 = icmp eq i64 %niter228.next.7, %unroll_iter227
  br i1 %niter228.ncmp.7, label %.loopexit112.loopexit.unr-lcssa, label %.preheader107, !llvm.loop !16

.loopexit112.loopexit.unr-lcssa:                  ; preds = %.preheader107, %.preheader107.preheader
  %indvar176.unr = phi i64 [ 0, %.preheader107.preheader ], [ %indvar.next177.7, %.preheader107 ]
  br i1 %lcmp.mod226.not, label %.loopexit112, label %.preheader107.epil

.preheader107.epil:                               ; preds = %.loopexit112.loopexit.unr-lcssa, %.preheader107.epil
  %indvar176.epil = phi i64 [ %indvar.next177.epil, %.preheader107.epil ], [ %indvar176.unr, %.loopexit112.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader107.epil ], [ 0, %.loopexit112.loopexit.unr-lcssa ]
  %81 = mul nuw nsw i64 %indvar176.epil, 2480
  %scevgep178.epil = getelementptr i8, ptr %31, i64 %81
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %scevgep178.epil, i8 0, i64 %49, i1 false), !tbaa !9
  %indvar.next177.epil = add nuw nsw i64 %indvar176.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter225
  br i1 %epil.iter.cmp.not, label %.loopexit112, label %.preheader107.epil, !llvm.loop !17

.loopexit112.loopexit218.unr-lcssa:               ; preds = %.loopexit.1, %.preheader108.preheader
  %indvars.iv172.unr = phi i64 [ 0, %.preheader108.preheader ], [ %indvars.iv.next173.1, %.loopexit.1 ]
  %.094.in126.unr = phi i32 [ %39, %.preheader108.preheader ], [ %.094127.1, %.loopexit.1 ]
  %lcmp.mod222.not = icmp eq i32 %xtraiter221, 0
  %.not106121.epil = icmp slt i32 %.094.in126.unr, 0
  %or.cond252 = select i1 %lcmp.mod222.not, i1 true, i1 %.not106121.epil
  br i1 %or.cond252, label %.loopexit112, label %.lr.ph123.epil

.lr.ph123.epil:                                   ; preds = %.loopexit112.loopexit218.unr-lcssa
  %82 = trunc nuw i64 %indvars.iv172.unr to i32
  %83 = add i32 %44, %82
  %84 = zext i32 %83 to i64
  %85 = shl nuw nsw i64 %84, 3
  %86 = mul nuw nsw i64 %84, 2480
  %scevgep168.epil = getelementptr i8, ptr %gep, i64 %86
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep168.epil, i8 0, i64 %85, i1 false), !tbaa !9
  br label %.loopexit112

.loopexit112:                                     ; preds = %.split.us, %.loopexit112.loopexit218.unr-lcssa, %.lr.ph123.epil, %.loopexit112.loopexit.unr-lcssa, %.preheader107.epil, %.preheader111, %.preheader113
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %88 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br i1 %88, label %.lr.ph134, label %._crit_edge135

.preheader110:                                    ; preds = %.preheader117, %92
  %indvars.iv188 = phi i64 [ 1, %.preheader117 ], [ %indvars.iv.next189, %92 ]
  %89 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %indvars.iv.next198, i64 %indvars.iv.next198, i64 %indvars.iv188
  br label %93

90:                                               ; preds = %92
  %91 = sext i32 %33 to i64
  %.not.not = icmp slt i64 %indvars.iv197, %91
  %indvar.next = add nuw nsw i64 %indvar, 1
  %indvars.iv.next196 = add nuw nsw i64 %indvars.iv195, 1
  br i1 %.not.not, label %.lr.ph141, label %._crit_edge142, !llvm.loop !19

92:                                               ; preds = %93
  %indvars.iv.next189 = add nuw nsw i64 %indvars.iv188, 1
  %exitcond194.not = icmp eq i64 %indvars.iv.next189, %indvars.iv195
  br i1 %exitcond194.not, label %90, label %.preheader110, !llvm.loop !20

93:                                               ; preds = %.preheader110, %93
  %indvars.iv183 = phi i64 [ 0, %.preheader110 ], [ %indvars.iv.next184, %93 ]
  %94 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %indvars.iv197, i64 %indvars.iv188, i64 %indvars.iv183
  %95 = load i64, ptr %94, align 8, !tbaa !9
  %96 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %indvars.iv.next198, i64 %indvars.iv188, i64 %indvars.iv183
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = add nsw i64 %97, %95
  %99 = srem i64 %98, 1000000007
  store i64 %99, ptr %96, align 8, !tbaa !9
  %100 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %indvars.iv.next198, i64 %indvars.iv.next198, i64 %indvars.iv183
  %101 = load i64, ptr %100, align 8, !tbaa !9
  %102 = add nsw i64 %101, %95
  %103 = srem i64 %102, 1000000007
  store i64 %103, ptr %100, align 8, !tbaa !9
  %104 = load i64, ptr %94, align 8, !tbaa !9
  %105 = load i64, ptr %89, align 8, !tbaa !9
  %106 = add nsw i64 %105, %104
  %107 = srem i64 %106, 1000000007
  store i64 %107, ptr %89, align 8, !tbaa !9
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %exitcond187.not = icmp eq i64 %indvars.iv.next184, %indvars.iv188
  br i1 %exitcond187.not, label %92, label %93, !llvm.loop !21

._crit_edge142:                                   ; preds = %90, %._crit_edge135
  %.not100146 = icmp slt i32 %33, 1
  br i1 %.not100146, label %._crit_edge149, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %._crit_edge142
  %108 = zext nneg i32 %33 to i64
  %109 = add nuw i32 %33, 1
  %wide.trip.count209 = zext i32 %109 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %117
  %indvar229 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvar.next230, %117 ]
  %indvars.iv206 = phi i64 [ 1, %.preheader.lr.ph ], [ %indvars.iv.next207, %117 ]
  %.086147 = phi i64 [ 0, %.preheader.lr.ph ], [ %.lcssa, %117 ]
  %xtraiter231 = and i64 %indvars.iv206, 1
  %110 = icmp eq i64 %indvar229, 0
  br i1 %110, label %.unr-lcssa, label %.preheader.new

.preheader.new:                                   ; preds = %.preheader
  %unroll_iter235 = and i64 %indvars.iv206, 9223372036854775806
  br label %118

._crit_edge149:                                   ; preds = %117, %._crit_edge, %._crit_edge142
  %.086.lcssa = phi i64 [ 0, %._crit_edge142 ], [ 0, %._crit_edge ], [ %.lcssa, %117 ]
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.086.lcssa)
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0

.unr-lcssa:                                       ; preds = %118, %.preheader
  %.lcssa.ph = phi i64 [ poison, %.preheader ], [ %126, %118 ]
  %indvars.iv202.unr = phi i64 [ 0, %.preheader ], [ %indvars.iv.next203.1, %118 ]
  %.1144.unr = phi i64 [ %.086147, %.preheader ], [ %126, %118 ]
  %lcmp.mod233.not = icmp eq i64 %xtraiter231, 0
  br i1 %lcmp.mod233.not, label %117, label %.epilog-lcssa

.epilog-lcssa:                                    ; preds = %.unr-lcssa
  %113 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %108, i64 %indvars.iv206, i64 %indvars.iv202.unr
  %114 = load i64, ptr %113, align 8, !tbaa !9
  %115 = add nsw i64 %114, %.1144.unr
  %116 = srem i64 %115, 1000000007
  br label %117

117:                                              ; preds = %.unr-lcssa, %.epilog-lcssa
  %.lcssa = phi i64 [ %.lcssa.ph, %.unr-lcssa ], [ %116, %.epilog-lcssa ]
  %indvars.iv.next207 = add nuw nsw i64 %indvars.iv206, 1
  %exitcond210.not = icmp eq i64 %indvars.iv.next207, %wide.trip.count209
  %indvar.next230 = add i64 %indvar229, 1
  br i1 %exitcond210.not, label %._crit_edge149, label %.preheader, !llvm.loop !22

118:                                              ; preds = %118, %.preheader.new
  %indvars.iv202 = phi i64 [ 0, %.preheader.new ], [ %indvars.iv.next203.1, %118 ]
  %.1144 = phi i64 [ %.086147, %.preheader.new ], [ %126, %118 ]
  %niter236 = phi i64 [ 0, %.preheader.new ], [ %niter236.next.1, %118 ]
  %119 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %108, i64 %indvars.iv206, i64 %indvars.iv202
  %120 = load i64, ptr %119, align 16, !tbaa !9
  %121 = add nsw i64 %120, %.1144
  %122 = srem i64 %121, 1000000007
  %indvars.iv.next203 = or disjoint i64 %indvars.iv202, 1
  %123 = getelementptr inbounds [310 x [310 x [310 x i64]]], ptr @DP, i64 0, i64 %108, i64 %indvars.iv206, i64 %indvars.iv.next203
  %124 = load i64, ptr %123, align 8, !tbaa !9
  %125 = add nsw i64 %124, %122
  %126 = srem i64 %125, 1000000007
  %indvars.iv.next203.1 = add nuw nsw i64 %indvars.iv202, 2
  %niter236.next.1 = add i64 %niter236, 2
  %niter236.ncmp.1 = icmp eq i64 %niter236.next.1, %unroll_iter235
  br i1 %niter236.ncmp.1, label %.unr-lcssa, label %118, !llvm.loop !23
}

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 uwtable
declare dso_local void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5tupleIJiiEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4 align 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 uwtable
declare dso_local void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 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 #3 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 #3 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)) #5

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

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

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

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


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