; LLVM IR from tangjz/acm-icpc :: codeforces/gym (101955F)

; 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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@inv = external dso_local global [1201 x i32], align 16
@iact = external dso_local global [1201 x i32], align 16
@pw = external dso_local global [1201 x [1201 x i32]], align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@w = external dso_local global i32, align 4
@deg = external dso_local global [10001 x i32], align 16
@rnk = external dso_local global [10001 x i32], align 16
@ord = external dso_local global [10001 x i32], align 16
@a = external dso_local global [10001 x i32], align 16
@f = external dso_local global [3 x [10001 x i32]], align 16
@poly = external dso_local global [1201 x i32], align 16
@e = external dso_local global [10001 x %"class.std::vector"], align 16
@g = external dso_local global [10001 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [76 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %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 ptr, align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::vector", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca ptr, align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  store i32 1, ptr @pw, align 16, !tbaa !5
  store i32 1, ptr getelementptr inbounds ([1201 x i32], ptr @inv, i64 0, i64 1), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  store i32 2, ptr %2, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %63, %0
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = icmp slt i32 %43, 1201
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %66

46:                                               ; preds = %42
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = sdiv i32 1000000007, %47
  %49 = sext i32 %48 to i64
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = srem i32 1000000007, %50
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [1201 x i32], ptr @inv, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = mul nsw i64 %49, %55
  %57 = srem i64 %56, 1000000007
  %58 = trunc i64 %57 to i32
  %59 = sub nsw i32 1000000007, %58
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [1201 x i32], ptr @inv, i64 0, i64 %61
  store i32 %59, ptr %62, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %46
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %2, align 4, !tbaa !5
  br label %42, !llvm.loop !9

66:                                               ; preds = %45
  store i32 1, ptr @iact, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %122, %66
  %68 = load i32, ptr %3, align 4, !tbaa !5
  %69 = icmp slt i32 %68, 1201
  br i1 %69, label %71, label %70

70:                                               ; preds = %67
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  br label %125

71:                                               ; preds = %67
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [1201 x [1201 x i32]], ptr @pw, i64 0, i64 %73
  %75 = getelementptr inbounds [1201 x i32], ptr %74, i64 0, i64 0
  store i32 1, ptr %75, align 4, !tbaa !5
  %76 = load i32, ptr %3, align 4, !tbaa !5
  %77 = sub nsw i32 %76, 1
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [1201 x i32], ptr @iact, i64 0, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = load i32, ptr %3, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [1201 x i32], ptr @inv, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = mul nsw i64 %81, %86
  %88 = srem i64 %87, 1000000007
  %89 = trunc i64 %88 to i32
  %90 = load i32, ptr %3, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [1201 x i32], ptr @iact, i64 0, i64 %91
  store i32 %89, ptr %92, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %118, %71
  %94 = load i32, ptr %5, align 4, !tbaa !5
  %95 = icmp slt i32 %94, 1201
  br i1 %95, label %97, label %96

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

97:                                               ; preds = %93
  %98 = load i32, ptr %3, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [1201 x [1201 x i32]], ptr @pw, i64 0, i64 %99
  %101 = load i32, ptr %5, align 4, !tbaa !5
  %102 = sub nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [1201 x i32], ptr %100, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = load i32, ptr %3, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = mul nsw i64 %106, %108
  %110 = srem i64 %109, 1000000007
  %111 = trunc i64 %110 to i32
  %112 = load i32, ptr %3, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [1201 x [1201 x i32]], ptr @pw, i64 0, i64 %113
  %115 = load i32, ptr %5, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [1201 x i32], ptr %114, i64 0, i64 %116
  store i32 %111, ptr %117, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %97
  %119 = load i32, ptr %5, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %5, align 4, !tbaa !5
  br label %93, !llvm.loop !11

121:                                              ; preds = %96
  br label %122

122:                                              ; preds = %121
  %123 = load i32, ptr %3, align 4, !tbaa !5
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %3, align 4, !tbaa !5
  br label %67, !llvm.loop !12

125:                                              ; preds = %70
  %126 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %127

127:                                              ; preds = %667, %125
  %128 = load i32, ptr %6, align 4, !tbaa !5
  %129 = load i32, ptr @t, align 4, !tbaa !5
  %130 = icmp sle i32 %128, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %127
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  br label %670

132:                                              ; preds = %127
  %133 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef @n, ptr noundef @m, ptr noundef @w)
  %134 = load i32, ptr @w, align 4, !tbaa !5
  %135 = mul nsw i32 %134, 3
  store i32 %135, ptr @w, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %146, %132
  %137 = load i32, ptr %7, align 4, !tbaa !5
  %138 = load i32, ptr @n, align 4, !tbaa !5
  %139 = icmp sle i32 %137, %138
  br i1 %139, label %141, label %140

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

141:                                              ; preds = %136
  %142 = load i32, ptr %7, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds i32, ptr @a, i64 %143
  %145 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %144)
  br label %146

146:                                              ; preds = %141
  %147 = load i32, ptr %7, align 4, !tbaa !5
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %7, align 4, !tbaa !5
  br label %136, !llvm.loop !13

149:                                              ; preds = %140
  br label %150

150:                                              ; preds = %154, %149
  %151 = load i32, ptr @m, align 4, !tbaa !5
  %152 = add nsw i32 %151, -1
  store i32 %152, ptr @m, align 4, !tbaa !5
  %153 = icmp ne i32 %151, 0
  br i1 %153, label %154, label %164

154:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %155 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5, ptr noundef %8, ptr noundef %9)
  %156 = load i32, ptr %8, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @e, i64 0, i64 %157
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %158, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %159 = load i32, ptr %9, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [10001 x i32], ptr @deg, i64 0, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %161, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %150, !llvm.loop !14

164:                                              ; preds = %150
  store i32 0, ptr @m, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %183, %164
  %166 = load i32, ptr %10, align 4, !tbaa !5
  %167 = load i32, ptr @n, align 4, !tbaa !5
  %168 = icmp sle i32 %166, %167
  br i1 %168, label %170, label %169

169:                                              ; preds = %165
  store i32 19, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %186

170:                                              ; preds = %165
  %171 = load i32, ptr %10, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [10001 x i32], ptr @deg, i64 0, i64 %172
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %182, label %176

176:                                              ; preds = %170
  %177 = load i32, ptr %10, align 4, !tbaa !5
  %178 = load i32, ptr @m, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr @m, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [10001 x i32], ptr @ord, i64 0, i64 %180
  store i32 %177, ptr %181, align 4, !tbaa !5
  br label %182

182:                                              ; preds = %176, %170
  br label %183

183:                                              ; preds = %182
  %184 = load i32, ptr %10, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %10, align 4, !tbaa !5
  br label %165, !llvm.loop !15

186:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %187

187:                                              ; preds = %232, %186
  %188 = load i32, ptr %11, align 4, !tbaa !5
  %189 = load i32, ptr @m, align 4, !tbaa !5
  %190 = icmp sle i32 %188, %189
  br i1 %190, label %192, label %191

191:                                              ; preds = %187
  store i32 22, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %235

192:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %193 = load i32, ptr %11, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [10001 x i32], ptr @ord, i64 0, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !5
  store i32 %196, ptr %12, align 4, !tbaa !5
  %197 = load i32, ptr %11, align 4, !tbaa !5
  %198 = load i32, ptr %12, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [10001 x i32], ptr @rnk, i64 0, i64 %199
  store i32 %197, ptr %200, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %201 = load i32, ptr %12, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @e, i64 0, i64 %202
  store ptr %203, ptr %13, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %204 = load ptr, ptr %13, align 8, !tbaa !16
  %205 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %204) #9
  %206 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %205, ptr %206, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %207 = load ptr, ptr %13, align 8, !tbaa !16
  %208 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %207) #9
  %209 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %208, ptr %209, align 8
  br label %210

210:                                              ; preds = %229, %192
  %211 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  br i1 %211, label %213, label %212

212:                                              ; preds = %210
  store i32 25, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %231

213:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %214 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  %215 = load i32, ptr %214, align 4, !tbaa !5
  store i32 %215, ptr %16, align 4, !tbaa !5
  %216 = load i32, ptr %16, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [10001 x i32], ptr @deg, i64 0, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %220 = add nsw i32 %219, -1
  store i32 %220, ptr %218, align 4, !tbaa !5
  %221 = icmp ne i32 %220, 0
  br i1 %221, label %228, label %222

222:                                              ; preds = %213
  %223 = load i32, ptr %16, align 4, !tbaa !5
  %224 = load i32, ptr @m, align 4, !tbaa !5
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr @m, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [10001 x i32], ptr @ord, i64 0, i64 %226
  store i32 %223, ptr %227, align 4, !tbaa !5
  br label %228

228:                                              ; preds = %222, %213
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %229

229:                                              ; preds = %228
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  br label %210

231:                                              ; preds = %212
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %232

232:                                              ; preds = %231
  %233 = load i32, ptr %11, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %11, align 4, !tbaa !5
  br label %187, !llvm.loop !18

235:                                              ; preds = %191
  %236 = load i32, ptr @n, align 4, !tbaa !5
  %237 = load i32, ptr @m, align 4, !tbaa !5
  %238 = icmp eq i32 %236, %237
  br i1 %238, label %239, label %240

239:                                              ; preds = %235
  br label %242

240:                                              ; preds = %235
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef 42, ptr noundef @__PRETTY_FUNCTION__.main) #10
  unreachable

241:                                              ; No predecessors!
  br label %242

242:                                              ; preds = %241, %239
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 1, ptr %17, align 4, !tbaa !5
  br label %243

243:                                              ; preds = %304, %242
  %244 = load i32, ptr %17, align 4, !tbaa !5
  %245 = load i32, ptr @n, align 4, !tbaa !5
  %246 = icmp sle i32 %244, %245
  br i1 %246, label %248, label %247

247:                                              ; preds = %243
  store i32 27, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %307

248:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %249 = load i32, ptr %17, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [10001 x i32], ptr @ord, i64 0, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !5
  store i32 %252, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #9
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  %253 = load i32, ptr %17, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @g, i64 0, i64 %254
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %255) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #9
  %256 = load i32, ptr %17, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @g, i64 0, i64 %257
  %259 = load i32, ptr %18, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @e, i64 0, i64 %260
  %262 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %261) #9
  call void @_ZNSt6vectorIiSaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %258, i64 noundef %262)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %263 = load i32, ptr %18, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @e, i64 0, i64 %264
  store ptr %265, ptr %20, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %266 = load ptr, ptr %20, align 8, !tbaa !16
  %267 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %266) #9
  %268 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %267, ptr %268, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %269 = load ptr, ptr %20, align 8, !tbaa !16
  %270 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %269) #9
  %271 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %270, ptr %271, align 8
  br label %272

272:                                              ; preds = %284, %248
  %273 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  br i1 %273, label %275, label %274

274:                                              ; preds = %272
  store i32 30, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %286

275:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  %276 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  %277 = load i32, ptr %276, align 4, !tbaa !5
  store i32 %277, ptr %23, align 4, !tbaa !5
  %278 = load i32, ptr %17, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @g, i64 0, i64 %279
  %281 = load i32, ptr %23, align 4, !tbaa !5
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [10001 x i32], ptr @rnk, i64 0, i64 %282
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %280, ptr noundef nonnull align 4 dereferenceable(4) %283)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %284

284:                                              ; preds = %275
  %285 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  br label %272

286:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #9
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #9
  %287 = load i32, ptr %18, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @e, i64 0, i64 %288
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %289) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #9
  %290 = load i32, ptr %17, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @g, i64 0, i64 %291
  %293 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %292) #9
  %294 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %293, ptr %294, align 8
  %295 = load i32, ptr %17, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @g, i64 0, i64 %296
  %298 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %297) #9
  %299 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %298, ptr %299, align 8
  %300 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  %301 = load ptr, ptr %300, align 8
  %302 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  %303 = load ptr, ptr %302, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %301, ptr %303)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %304

304:                                              ; preds = %286
  %305 = load i32, ptr %17, align 4, !tbaa !5
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr %17, align 4, !tbaa !5
  br label %243, !llvm.loop !19

307:                                              ; preds = %247
  %308 = load i32, ptr @w, align 4, !tbaa !5
  %309 = add nsw i32 %308, 1
  %310 = sext i32 %309 to i64
  %311 = mul i64 %310, 4
  call void @llvm.memset.p0.i64(ptr align 16 @poly, i8 0, i64 %311, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  store i32 1, ptr %27, align 4, !tbaa !5
  br label %312

312:                                              ; preds = %579, %307
  %313 = load i32, ptr %27, align 4, !tbaa !5
  %314 = load i32, ptr @w, align 4, !tbaa !5
  %315 = icmp sle i32 %313, %314
  br i1 %315, label %317, label %316

316:                                              ; preds = %312
  store i32 32, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %582

317:                                              ; preds = %312
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %318 = load i32, ptr %27, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [1201 x [1201 x i32]], ptr @pw, i64 0, i64 %319
  %321 = getelementptr inbounds [1201 x i32], ptr %320, i64 0, i64 0
  store ptr %321, ptr %28, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  store i32 0, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  %322 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %322, ptr %30, align 4, !tbaa !5
  br label %323

323:                                              ; preds = %492, %317
  %324 = load i32, ptr %30, align 4, !tbaa !5
  %325 = icmp sge i32 %324, 1
  br i1 %325, label %327, label %326

326:                                              ; preds = %323
  store i32 35, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %495

327:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  %328 = load i32, ptr %30, align 4, !tbaa !5
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds [10001 x i32], ptr @ord, i64 0, i64 %329
  %331 = load i32, ptr %330, align 4, !tbaa !5
  store i32 %331, ptr %31, align 4, !tbaa !5
  %332 = load ptr, ptr %28, align 8, !tbaa !16
  %333 = load i32, ptr %31, align 4, !tbaa !5
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [10001 x i32], ptr @a, i64 0, i64 %334
  %336 = load i32, ptr %335, align 4, !tbaa !5
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds i32, ptr %332, i64 %337
  %339 = load i32, ptr %338, align 4, !tbaa !5
  %340 = load i32, ptr %30, align 4, !tbaa !5
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [10001 x i32], ptr @f, i64 0, i64 %341
  store i32 %339, ptr %342, align 4, !tbaa !5
  %343 = load ptr, ptr %28, align 8, !tbaa !16
  %344 = load i32, ptr %31, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [10001 x i32], ptr @a, i64 0, i64 %345
  %347 = load i32, ptr %346, align 4, !tbaa !5
  %348 = load i32, ptr %31, align 4, !tbaa !5
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [10001 x i32], ptr @a, i64 0, i64 %349
  %351 = load i32, ptr %350, align 4, !tbaa !5
  %352 = add nsw i32 %347, %351
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds i32, ptr %343, i64 %353
  %355 = load i32, ptr %354, align 4, !tbaa !5
  %356 = load i32, ptr %30, align 4, !tbaa !5
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds [10001 x i32], ptr getelementptr inbounds ([3 x [10001 x i32]], ptr @f, i64 0, i64 1), i64 0, i64 %357
  store i32 %355, ptr %358, align 4, !tbaa !5
  %359 = load ptr, ptr %28, align 8, !tbaa !16
  %360 = load i32, ptr %31, align 4, !tbaa !5
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [10001 x i32], ptr @a, i64 0, i64 %361
  %363 = load i32, ptr %362, align 4, !tbaa !5
  %364 = load i32, ptr %31, align 4, !tbaa !5
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds [10001 x i32], ptr @a, i64 0, i64 %365
  %367 = load i32, ptr %366, align 4, !tbaa !5
  %368 = add nsw i32 %363, %367
  %369 = load i32, ptr %31, align 4, !tbaa !5
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds [10001 x i32], ptr @a, i64 0, i64 %370
  %372 = load i32, ptr %371, align 4, !tbaa !5
  %373 = add nsw i32 %368, %372
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds i32, ptr %359, i64 %374
  %376 = load i32, ptr %375, align 4, !tbaa !5
  %377 = load i32, ptr %30, align 4, !tbaa !5
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds [10001 x i32], ptr getelementptr inbounds ([3 x [10001 x i32]], ptr @f, i64 0, i64 2), i64 0, i64 %378
  store i32 %376, ptr %379, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %380 = load i32, ptr %30, align 4, !tbaa !5
  %381 = sext i32 %380 to i64
  %382 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @g, i64 0, i64 %381
  store ptr %382, ptr %32, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %383 = load ptr, ptr %32, align 8, !tbaa !16
  %384 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %383) #9
  %385 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  store ptr %384, ptr %385, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %386 = load ptr, ptr %32, align 8, !tbaa !16
  %387 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %386) #9
  %388 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %34, i32 0, i32 0
  store ptr %387, ptr %388, align 8
  br label %389

389:                                              ; preds = %452, %327
  %390 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34) #9
  br i1 %390, label %392, label %391

391:                                              ; preds = %389
  store i32 38, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %454

392:                                              ; preds = %389
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  %393 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #9
  %394 = load i32, ptr %393, align 4, !tbaa !5
  store i32 %394, ptr %35, align 4, !tbaa !5
  %395 = load i32, ptr %35, align 4, !tbaa !5
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds [10001 x i32], ptr @f, i64 0, i64 %396
  %398 = load i32, ptr %397, align 4, !tbaa !5
  %399 = load i32, ptr %30, align 4, !tbaa !5
  %400 = sext i32 %399 to i64
  %401 = getelementptr inbounds [10001 x i32], ptr @f, i64 0, i64 %400
  %402 = load i32, ptr %401, align 4, !tbaa !5
  %403 = add nsw i32 %402, %398
  store i32 %403, ptr %401, align 4, !tbaa !5
  %404 = icmp sge i32 %403, 1000000007
  br i1 %404, label %405, label %412

405:                                              ; preds = %392
  %406 = load i32, ptr %30, align 4, !tbaa !5
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds [10001 x i32], ptr @f, i64 0, i64 %407
  %409 = load i32, ptr %408, align 4, !tbaa !5
  %410 = sub nsw i32 %409, 1000000007
  store i32 %410, ptr %408, align 4, !tbaa !5
  %411 = icmp ne i32 %410, 0
  br label %412

412:                                              ; preds = %405, %392
  %413 = phi i1 [ false, %392 ], [ %411, %405 ]
  %414 = load i32, ptr %35, align 4, !tbaa !5
  %415 = sext i32 %414 to i64
  %416 = getelementptr inbounds [10001 x i32], ptr getelementptr inbounds ([3 x [10001 x i32]], ptr @f, i64 0, i64 1), i64 0, i64 %415
  %417 = load i32, ptr %416, align 4, !tbaa !5
  %418 = load i32, ptr %30, align 4, !tbaa !5
  %419 = sext i32 %418 to i64
  %420 = getelementptr inbounds [10001 x i32], ptr getelementptr inbounds ([3 x [10001 x i32]], ptr @f, i64 0, i64 1), i64 0, i64 %419
  %421 = load i32, ptr %420, align 4, !tbaa !5
  %422 = add nsw i32 %421, %417
  store i32 %422, ptr %420, align 4, !tbaa !5
  %423 = icmp sge i32 %422, 1000000007
  br i1 %423, label %424, label %431

424:                                              ; preds = %412
  %425 = load i32, ptr %30, align 4, !tbaa !5
  %426 = sext i32 %425 to i64
  %427 = getelementptr inbounds [10001 x i32], ptr getelementptr inbounds ([3 x [10001 x i32]], ptr @f, i64 0, i64 1), i64 0, i64 %426
  %428 = load i32, ptr %427, align 4, !tbaa !5
  %429 = sub nsw i32 %428, 1000000007
  store i32 %429, ptr %427, align 4, !tbaa !5
  %430 = icmp ne i32 %429, 0
  br label %431

431:                                              ; preds = %424, %412
  %432 = phi i1 [ false, %412 ], [ %430, %424 ]
  %433 = load i32, ptr %35, align 4, !tbaa !5
  %434 = sext i32 %433 to i64
  %435 = getelementptr inbounds [10001 x i32], ptr getelementptr inbounds ([3 x [10001 x i32]], ptr @f, i64 0, i64 2), i64 0, i64 %434
  %436 = load i32, ptr %435, align 4, !tbaa !5
  %437 = load i32, ptr %30, align 4, !tbaa !5
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds [10001 x i32], ptr getelementptr inbounds ([3 x [10001 x i32]], ptr @f, i64 0, i64 2), i64 0, i64 %438
  %440 = load i32, ptr %439, align 4, !tbaa !5
  %441 = add nsw i32 %440, %436
  store i32 %441, ptr %439, align 4, !tbaa !5
  %442 = icmp sge i32 %441, 1000000007
  br i1 %442, label %443, label %450

443:                                              ; preds = %431
  %444 = load i32, ptr %30, align 4, !tbaa !5
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds [10001 x i32], ptr getelementptr inbounds ([3 x [10001 x i32]], ptr @f, i64 0, i64 2), i64 0, i64 %445
  %447 = load i32, ptr %446, align 4, !tbaa !5
  %448 = sub nsw i32 %447, 1000000007
  store i32 %448, ptr %446, align 4, !tbaa !5
  %449 = icmp ne i32 %448, 0
  br label %450

450:                                              ; preds = %443, %431
  %451 = phi i1 [ false, %431 ], [ %449, %443 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %452

452:                                              ; preds = %450
  %453 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #9
  br label %389

454:                                              ; preds = %391
  %455 = load i32, ptr %29, align 4, !tbaa !5
  %456 = sext i32 %455 to i64
  %457 = load i32, ptr %30, align 4, !tbaa !5
  %458 = sext i32 %457 to i64
  %459 = getelementptr inbounds [10001 x i32], ptr @f, i64 0, i64 %458
  %460 = load i32, ptr %459, align 4, !tbaa !5
  %461 = sext i32 %460 to i64
  %462 = load i32, ptr %30, align 4, !tbaa !5
  %463 = sext i32 %462 to i64
  %464 = getelementptr inbounds [10001 x i32], ptr @f, i64 0, i64 %463
  %465 = load i32, ptr %464, align 4, !tbaa !5
  %466 = sext i32 %465 to i64
  %467 = mul nsw i64 %461, %466
  %468 = load i32, ptr %30, align 4, !tbaa !5
  %469 = sext i32 %468 to i64
  %470 = getelementptr inbounds [10001 x i32], ptr getelementptr inbounds ([3 x [10001 x i32]], ptr @f, i64 0, i64 1), i64 0, i64 %469
  %471 = load i32, ptr %470, align 4, !tbaa !5
  %472 = sext i32 %471 to i64
  %473 = mul nsw i64 3, %472
  %474 = sub nsw i64 %467, %473
  %475 = srem i64 %474, 1000000007
  %476 = load i32, ptr %30, align 4, !tbaa !5
  %477 = sext i32 %476 to i64
  %478 = getelementptr inbounds [10001 x i32], ptr @f, i64 0, i64 %477
  %479 = load i32, ptr %478, align 4, !tbaa !5
  %480 = sext i32 %479 to i64
  %481 = mul nsw i64 %475, %480
  %482 = add nsw i64 %456, %481
  %483 = load i32, ptr %30, align 4, !tbaa !5
  %484 = sext i32 %483 to i64
  %485 = getelementptr inbounds [10001 x i32], ptr getelementptr inbounds ([3 x [10001 x i32]], ptr @f, i64 0, i64 2), i64 0, i64 %484
  %486 = load i32, ptr %485, align 4, !tbaa !5
  %487 = sext i32 %486 to i64
  %488 = mul nsw i64 2, %487
  %489 = add nsw i64 %482, %488
  %490 = srem i64 %489, 1000000007
  %491 = trunc i64 %490 to i32
  store i32 %491, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  br label %492

492:                                              ; preds = %454
  %493 = load i32, ptr %30, align 4, !tbaa !5
  %494 = add nsw i32 %493, -1
  store i32 %494, ptr %30, align 4, !tbaa !5
  br label %323, !llvm.loop !20

495:                                              ; preds = %326
  %496 = load i32, ptr %29, align 4, !tbaa !5
  %497 = icmp ne i32 %496, 0
  br i1 %497, label %499, label %498

498:                                              ; preds = %495
  store i32 34, ptr %4, align 4
  br label %576

499:                                              ; preds = %495
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  %500 = load i32, ptr %29, align 4, !tbaa !5
  %501 = icmp slt i32 %500, 0
  br i1 %501, label %502, label %505

502:                                              ; preds = %499
  %503 = load i32, ptr %29, align 4, !tbaa !5
  %504 = add nsw i32 %503, 1000000007
  br label %507

505:                                              ; preds = %499
  %506 = load i32, ptr %29, align 4, !tbaa !5
  br label %507

507:                                              ; preds = %505, %502
  %508 = phi i32 [ %504, %502 ], [ %506, %505 ]
  store i32 %508, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  %509 = load i32, ptr %27, align 4, !tbaa !5
  %510 = sext i32 %509 to i64
  %511 = getelementptr inbounds [1201 x i32], ptr @inv, i64 0, i64 %510
  %512 = load i32, ptr %511, align 4, !tbaa !5
  store i32 %512, ptr %37, align 4, !tbaa !5
  %513 = load i32, ptr %36, align 4, !tbaa !5
  %514 = sext i32 %513 to i64
  %515 = mul nsw i64 %514, 166666668
  %516 = srem i64 %515, 1000000007
  %517 = load i32, ptr %27, align 4, !tbaa !5
  %518 = sext i32 %517 to i64
  %519 = getelementptr inbounds [1201 x i32], ptr @iact, i64 0, i64 %518
  %520 = load i32, ptr %519, align 4, !tbaa !5
  %521 = sext i32 %520 to i64
  %522 = mul nsw i64 %516, %521
  %523 = srem i64 %522, 1000000007
  %524 = load i32, ptr @w, align 4, !tbaa !5
  %525 = load i32, ptr %27, align 4, !tbaa !5
  %526 = sub nsw i32 %524, %525
  %527 = sext i32 %526 to i64
  %528 = getelementptr inbounds [1201 x i32], ptr @iact, i64 0, i64 %527
  %529 = load i32, ptr %528, align 4, !tbaa !5
  %530 = sext i32 %529 to i64
  %531 = mul nsw i64 %523, %530
  %532 = srem i64 %531, 1000000007
  %533 = trunc i64 %532 to i32
  store i32 %533, ptr %36, align 4, !tbaa !5
  %534 = load i32, ptr @w, align 4, !tbaa !5
  %535 = load i32, ptr %27, align 4, !tbaa !5
  %536 = sub nsw i32 %534, %535
  %537 = and i32 %536, 1
  %538 = icmp ne i32 %537, 0
  br i1 %538, label %542, label %539

539:                                              ; preds = %507
  %540 = load i32, ptr %36, align 4, !tbaa !5
  %541 = sub nsw i32 1000000007, %540
  store i32 %541, ptr %36, align 4, !tbaa !5
  br label %542

542:                                              ; preds = %539, %507
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  store i32 0, ptr %38, align 4, !tbaa !5
  br label %543

543:                                              ; preds = %572, %542
  %544 = load i32, ptr %38, align 4, !tbaa !5
  %545 = load i32, ptr @w, align 4, !tbaa !5
  %546 = icmp sle i32 %544, %545
  br i1 %546, label %548, label %547

547:                                              ; preds = %543
  store i32 40, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %575

548:                                              ; preds = %543
  %549 = load i32, ptr %36, align 4, !tbaa !5
  %550 = sext i32 %549 to i64
  %551 = load i32, ptr %37, align 4, !tbaa !5
  %552 = sext i32 %551 to i64
  %553 = mul nsw i64 %550, %552
  %554 = srem i64 %553, 1000000007
  %555 = trunc i64 %554 to i32
  store i32 %555, ptr %36, align 4, !tbaa !5
  %556 = load i32, ptr %36, align 4, !tbaa !5
  %557 = load i32, ptr %38, align 4, !tbaa !5
  %558 = sext i32 %557 to i64
  %559 = getelementptr inbounds [1201 x i32], ptr @poly, i64 0, i64 %558
  %560 = load i32, ptr %559, align 4, !tbaa !5
  %561 = add nsw i32 %560, %556
  store i32 %561, ptr %559, align 4, !tbaa !5
  %562 = icmp sge i32 %561, 1000000007
  br i1 %562, label %563, label %570

563:                                              ; preds = %548
  %564 = load i32, ptr %38, align 4, !tbaa !5
  %565 = sext i32 %564 to i64
  %566 = getelementptr inbounds [1201 x i32], ptr @poly, i64 0, i64 %565
  %567 = load i32, ptr %566, align 4, !tbaa !5
  %568 = sub nsw i32 %567, 1000000007
  store i32 %568, ptr %566, align 4, !tbaa !5
  %569 = icmp ne i32 %568, 0
  br label %570

570:                                              ; preds = %563, %548
  %571 = phi i1 [ false, %548 ], [ %569, %563 ]
  br label %572

572:                                              ; preds = %570
  %573 = load i32, ptr %38, align 4, !tbaa !5
  %574 = add nsw i32 %573, 1
  store i32 %574, ptr %38, align 4, !tbaa !5
  br label %543, !llvm.loop !21

575:                                              ; preds = %547
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  store i32 0, ptr %4, align 4
  br label %576

576:                                              ; preds = %575, %498
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  %577 = load i32, ptr %4, align 4
  switch i32 %577, label %671 [
    i32 0, label %578
    i32 34, label %579
  ]

578:                                              ; preds = %576
  br label %579

579:                                              ; preds = %578, %576
  %580 = load i32, ptr %27, align 4, !tbaa !5
  %581 = add nsw i32 %580, 1
  store i32 %581, ptr %27, align 4, !tbaa !5
  br label %312, !llvm.loop !22

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

583:                                              ; preds = %625, %582
  %584 = load i32, ptr %39, align 4, !tbaa !5
  %585 = load i32, ptr @w, align 4, !tbaa !5
  %586 = icmp sle i32 %584, %585
  br i1 %586, label %588, label %587

587:                                              ; preds = %583
  store i32 43, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %628

588:                                              ; preds = %583
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  %589 = load i32, ptr @w, align 4, !tbaa !5
  store i32 %589, ptr %40, align 4, !tbaa !5
  br label %590

590:                                              ; preds = %621, %588
  %591 = load i32, ptr %40, align 4, !tbaa !5
  %592 = icmp sge i32 %591, 0
  br i1 %592, label %594, label %593

593:                                              ; preds = %590
  store i32 46, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  br label %624

594:                                              ; preds = %590
  %595 = load i32, ptr %40, align 4, !tbaa !5
  %596 = icmp ne i32 %595, 0
  br i1 %596, label %597, label %603

597:                                              ; preds = %594
  %598 = load i32, ptr %40, align 4, !tbaa !5
  %599 = sub nsw i32 %598, 1
  %600 = sext i32 %599 to i64
  %601 = getelementptr inbounds [1201 x i32], ptr @poly, i64 0, i64 %600
  %602 = load i32, ptr %601, align 4, !tbaa !5
  br label %604

603:                                              ; preds = %594
  br label %604

604:                                              ; preds = %603, %597
  %605 = phi i32 [ %602, %597 ], [ 0, %603 ]
  %606 = sext i32 %605 to i64
  %607 = load i32, ptr %39, align 4, !tbaa !5
  %608 = sext i32 %607 to i64
  %609 = load i32, ptr %40, align 4, !tbaa !5
  %610 = sext i32 %609 to i64
  %611 = getelementptr inbounds [1201 x i32], ptr @poly, i64 0, i64 %610
  %612 = load i32, ptr %611, align 4, !tbaa !5
  %613 = sext i32 %612 to i64
  %614 = mul nsw i64 %608, %613
  %615 = sub nsw i64 %606, %614
  %616 = srem i64 %615, 1000000007
  %617 = trunc i64 %616 to i32
  %618 = load i32, ptr %40, align 4, !tbaa !5
  %619 = sext i32 %618 to i64
  %620 = getelementptr inbounds [1201 x i32], ptr @poly, i64 0, i64 %619
  store i32 %617, ptr %620, align 4, !tbaa !5
  br label %621

621:                                              ; preds = %604
  %622 = load i32, ptr %40, align 4, !tbaa !5
  %623 = add nsw i32 %622, -1
  store i32 %623, ptr %40, align 4, !tbaa !5
  br label %590, !llvm.loop !23

624:                                              ; preds = %593
  br label %625

625:                                              ; preds = %624
  %626 = load i32, ptr %39, align 4, !tbaa !5
  %627 = add nsw i32 %626, 1
  store i32 %627, ptr %39, align 4, !tbaa !5
  br label %583, !llvm.loop !24

628:                                              ; preds = %587
  %629 = load i32, ptr %6, align 4, !tbaa !5
  %630 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %629)
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  store i32 1, ptr %41, align 4, !tbaa !5
  br label %631

631:                                              ; preds = %663, %628
  %632 = load i32, ptr %41, align 4, !tbaa !5
  %633 = load i32, ptr @w, align 4, !tbaa !5
  %634 = icmp sle i32 %632, %633
  br i1 %634, label %636, label %635

635:                                              ; preds = %631
  store i32 49, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  br label %666

636:                                              ; preds = %631
  %637 = load i32, ptr %41, align 4, !tbaa !5
  %638 = sext i32 %637 to i64
  %639 = getelementptr inbounds [1201 x i32], ptr @poly, i64 0, i64 %638
  %640 = load i32, ptr %639, align 4, !tbaa !5
  %641 = icmp slt i32 %640, 0
  br i1 %641, label %642, label %648

642:                                              ; preds = %636
  %643 = load i32, ptr %41, align 4, !tbaa !5
  %644 = sext i32 %643 to i64
  %645 = getelementptr inbounds [1201 x i32], ptr @poly, i64 0, i64 %644
  %646 = load i32, ptr %645, align 4, !tbaa !5
  %647 = add nsw i32 %646, 1000000007
  br label %653

648:                                              ; preds = %636
  %649 = load i32, ptr %41, align 4, !tbaa !5
  %650 = sext i32 %649 to i64
  %651 = getelementptr inbounds [1201 x i32], ptr @poly, i64 0, i64 %650
  %652 = load i32, ptr %651, align 4, !tbaa !5
  br label %653

653:                                              ; preds = %648, %642
  %654 = phi i32 [ %647, %642 ], [ %652, %648 ]
  %655 = load i32, ptr %41, align 4, !tbaa !5
  %656 = load i32, ptr @w, align 4, !tbaa !5
  %657 = icmp eq i32 %655, %656
  %658 = zext i1 %657 to i64
  %659 = getelementptr inbounds [3 x i8], ptr @.str.10, i64 0, i64 %658
  %660 = load i8, ptr %659, align 1, !tbaa !25
  %661 = sext i8 %660 to i32
  %662 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %654, i32 noundef %661)
  br label %663

663:                                              ; preds = %653
  %664 = load i32, ptr %41, align 4, !tbaa !5
  %665 = add nsw i32 %664, 1
  store i32 %665, ptr %41, align 4, !tbaa !5
  br label %631, !llvm.loop !26

666:                                              ; preds = %635
  br label %667

667:                                              ; preds = %666
  %668 = load i32, ptr %6, align 4, !tbaa !5
  %669 = add nsw i32 %668, 1
  store i32 %669, ptr %6, align 4, !tbaa !5
  br label %127, !llvm.loop !27

670:                                              ; preds = %131
  ret i32 0

671:                                              ; preds = %576
  unreachable
}

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

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

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

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) #8

declare i32 @printf(ptr noundef, ...) #3

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

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

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

@inv = external dso_local local_unnamed_addr global [1201 x i32], align 16
@iact = external dso_local local_unnamed_addr global [1201 x i32], align 16
@pw = external dso_local local_unnamed_addr global [1201 x [1201 x i32]], align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@w = external dso_local global i32, align 4
@deg = external dso_local local_unnamed_addr global [10001 x i32], align 16
@rnk = external dso_local global [10001 x i32], align 16
@ord = external dso_local local_unnamed_addr global [10001 x i32], align 16
@a = external dso_local global [10001 x i32], align 16
@f = external dso_local local_unnamed_addr global [3 x [10001 x i32]], align 16
@poly = external dso_local local_unnamed_addr global [1201 x i32], align 16
@e = external dso_local global [10001 x %"class.std::vector"], align 16
@g = external dso_local global [10001 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [76 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store i32 1, ptr @pw, align 16, !tbaa !5
  store i32 1, ptr getelementptr inbounds (i8, ptr @inv, i64 4), align 4, !tbaa !5
  br label %12

11:                                               ; preds = %12
  store i32 1, ptr @iact, align 16, !tbaa !5
  br label %29

12:                                               ; preds = %0, %12
  %indvars.iv = phi i64 [ 2, %0 ], [ %indvars.iv.next, %12 ]
  %13 = trunc nuw nsw i64 %indvars.iv to i32
  %14 = udiv i32 1000000007, %13
  %15 = zext nneg i32 %14 to i64
  %16 = urem i32 1000000007, %13
  %17 = zext nneg i32 %16 to i64
  %18 = getelementptr inbounds [1201 x i32], ptr @inv, i64 0, i64 %17
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = mul nsw i64 %20, %15
  %22 = srem i64 %21, 1000000007
  %23 = trunc nsw i64 %22 to i32
  %24 = sub nsw i32 1000000007, %23
  %25 = getelementptr inbounds [1201 x i32], ptr @inv, i64 0, i64 %indvars.iv
  store i32 %24, ptr %25, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1201
  br i1 %exitcond.not, label %11, label %12, !llvm.loop !9

26:                                               ; preds = %39
  %27 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %28 = load i32, ptr @t, align 4, !tbaa !5
  %.not222 = icmp slt i32 %28, 1
  br i1 %.not222, label %._crit_edge226, label %.lr.ph225

29:                                               ; preds = %11, %39
  %30 = phi i64 [ 1, %11 ], [ %36, %39 ]
  %indvars.iv235 = phi i64 [ 1, %11 ], [ %indvars.iv.next236, %39 ]
  %31 = getelementptr inbounds [1201 x [1201 x i32]], ptr @pw, i64 0, i64 %indvars.iv235
  store i32 1, ptr %31, align 4, !tbaa !5
  %32 = getelementptr inbounds [1201 x i32], ptr @inv, i64 0, i64 %indvars.iv235
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = mul nsw i64 %30, %34
  %36 = srem i64 %35, 1000000007
  %37 = trunc nsw i64 %36 to i32
  %38 = getelementptr inbounds [1201 x i32], ptr @iact, i64 0, i64 %indvars.iv235
  store i32 %37, ptr %38, align 4, !tbaa !5
  br label %40

39:                                               ; preds = %40
  %indvars.iv.next236 = add nuw nsw i64 %indvars.iv235, 1
  %exitcond238.not = icmp eq i64 %indvars.iv.next236, 1201
  br i1 %exitcond238.not, label %26, label %29, !llvm.loop !11

40:                                               ; preds = %40, %29
  %41 = phi i64 [ 1, %29 ], [ %47, %40 ]
  %indvars.iv231 = phi i64 [ 1, %29 ], [ %indvars.iv.next232.1, %40 ]
  %42 = mul nsw i64 %41, %indvars.iv235
  %43 = srem i64 %42, 1000000007
  %44 = trunc nsw i64 %43 to i32
  %45 = getelementptr inbounds [1201 x [1201 x i32]], ptr @pw, i64 0, i64 %indvars.iv235, i64 %indvars.iv231
  store i32 %44, ptr %45, align 4, !tbaa !5
  %indvars.iv.next232 = add nuw nsw i64 %indvars.iv231, 1
  %46 = mul nsw i64 %43, %indvars.iv235
  %47 = srem i64 %46, 1000000007
  %48 = trunc nsw i64 %47 to i32
  %49 = getelementptr inbounds [1201 x [1201 x i32]], ptr @pw, i64 0, i64 %indvars.iv235, i64 %indvars.iv.next232
  store i32 %48, ptr %49, align 4, !tbaa !5
  %indvars.iv.next232.1 = add nuw nsw i64 %indvars.iv231, 2
  %exitcond234.not.1 = icmp eq i64 %indvars.iv.next232.1, 1201
  br i1 %exitcond234.not.1, label %39, label %40, !llvm.loop !12

._crit_edge226:                                   ; preds = %._crit_edge221, %26
  ret i32 0

.lr.ph225:                                        ; preds = %26, %._crit_edge221
  %.0129223 = phi i32 [ %286, %._crit_edge221 ], [ 1, %26 ]
  %50 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @w)
  %51 = load i32, ptr @w, align 4, !tbaa !5
  %52 = mul nsw i32 %51, 3
  store i32 %52, ptr @w, align 4, !tbaa !5
  %53 = load i32, ptr @n, align 4, !tbaa !5
  %.not143170 = icmp slt i32 %53, 1
  br i1 %.not143170, label %.preheader165, label %.lr.ph

.preheader165:                                    ; preds = %.lr.ph, %.lr.ph225
  %54 = phi i32 [ %53, %.lr.ph225 ], [ %59, %.lr.ph ]
  %55 = load i32, ptr @m, align 4, !tbaa !5
  %56 = add nsw i32 %55, -1
  store i32 %56, ptr @m, align 4, !tbaa !5
  %.not144172 = icmp eq i32 %55, 0
  br i1 %.not144172, label %._crit_edge, label %.lr.ph173

.lr.ph:                                           ; preds = %.lr.ph225, %.lr.ph
  %indvars.iv239 = phi i64 [ %indvars.iv.next240, %.lr.ph ], [ 1, %.lr.ph225 ]
  %57 = getelementptr inbounds i32, ptr @a, i64 %indvars.iv239
  %58 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %57)
  %indvars.iv.next240 = add nuw nsw i64 %indvars.iv239, 1
  %59 = load i32, ptr @n, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %.not143.not = icmp slt i64 %indvars.iv239, %60
  br i1 %.not143.not, label %.lr.ph, label %.preheader165, !llvm.loop !13

.lr.ph173:                                        ; preds = %.preheader165, %.lr.ph173
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  %61 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %62 = load i32, ptr %1, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @e, i64 0, i64 %63
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %64, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [10001 x i32], ptr @deg, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %67, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  %70 = load i32, ptr @m, align 4, !tbaa !5
  %71 = add nsw i32 %70, -1
  store i32 %71, ptr @m, align 4, !tbaa !5
  %.not144 = icmp eq i32 %70, 0
  br i1 %.not144, label %._crit_edge.loopexit, label %.lr.ph173, !llvm.loop !14

._crit_edge.loopexit:                             ; preds = %.lr.ph173
  %.pre274 = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader165
  %72 = phi i32 [ %.pre274, %._crit_edge.loopexit ], [ %54, %.preheader165 ]
  store i32 0, ptr @m, align 4, !tbaa !5
  %.not145174 = icmp slt i32 %72, 1
  br i1 %.not145174, label %._crit_edge184, label %.lr.ph177.preheader

.lr.ph177.preheader:                              ; preds = %._crit_edge
  %73 = zext nneg i32 %72 to i64
  %xtraiter = and i64 %73, 1
  %74 = icmp eq i32 %72, 1
  br i1 %74, label %.preheader164.unr-lcssa, label %.lr.ph177.preheader.new

.lr.ph177.preheader.new:                          ; preds = %.lr.ph177.preheader
  %unroll_iter = and i64 %73, 2147483646
  br label %.lr.ph177

.preheader164.unr-lcssa:                          ; preds = %98, %.lr.ph177.preheader
  %.lcssa294.ph = phi i32 [ poison, %.lr.ph177.preheader ], [ %99, %98 ]
  %indvars.iv242.unr = phi i64 [ 1, %.lr.ph177.preheader ], [ %indvars.iv.next243.1, %98 ]
  %.unr = phi i32 [ 0, %.lr.ph177.preheader ], [ %99, %98 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader164, label %.lr.ph177.epil

.lr.ph177.epil:                                   ; preds = %.preheader164.unr-lcssa
  %75 = getelementptr inbounds [10001 x i32], ptr @deg, i64 0, i64 %indvars.iv242.unr
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %.not159.epil = icmp eq i32 %76, 0
  br i1 %.not159.epil, label %77, label %.preheader164

77:                                               ; preds = %.lr.ph177.epil
  %78 = add nsw i32 %.unr, 1
  store i32 %78, ptr @m, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [10001 x i32], ptr @ord, i64 0, i64 %79
  %81 = trunc nuw nsw i64 %indvars.iv242.unr to i32
  store i32 %81, ptr %80, align 4, !tbaa !5
  br label %.preheader164

.preheader164:                                    ; preds = %.lr.ph177.epil, %77, %.preheader164.unr-lcssa
  %.lcssa294 = phi i32 [ %.lcssa294.ph, %.preheader164.unr-lcssa ], [ %.unr, %.lr.ph177.epil ], [ %78, %77 ]
  %.not146181 = icmp slt i32 %.lcssa294, 1
  br i1 %.not146181, label %._crit_edge184, label %.lr.ph183

.lr.ph177:                                        ; preds = %98, %.lr.ph177.preheader.new
  %indvars.iv242 = phi i64 [ 1, %.lr.ph177.preheader.new ], [ %indvars.iv.next243.1, %98 ]
  %82 = phi i32 [ 0, %.lr.ph177.preheader.new ], [ %99, %98 ]
  %niter = phi i64 [ 0, %.lr.ph177.preheader.new ], [ %niter.next.1, %98 ]
  %83 = getelementptr inbounds [10001 x i32], ptr @deg, i64 0, i64 %indvars.iv242
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %.not159 = icmp eq i32 %84, 0
  br i1 %.not159, label %85, label %.lr.ph177.1

85:                                               ; preds = %.lr.ph177
  %86 = add nsw i32 %82, 1
  store i32 %86, ptr @m, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [10001 x i32], ptr @ord, i64 0, i64 %87
  %89 = trunc nuw nsw i64 %indvars.iv242 to i32
  store i32 %89, ptr %88, align 4, !tbaa !5
  br label %.lr.ph177.1

.lr.ph177.1:                                      ; preds = %.lr.ph177, %85
  %90 = phi i32 [ %82, %.lr.ph177 ], [ %86, %85 ]
  %indvars.iv.next243 = add nuw nsw i64 %indvars.iv242, 1
  %91 = getelementptr inbounds [10001 x i32], ptr @deg, i64 0, i64 %indvars.iv.next243
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %.not159.1 = icmp eq i32 %92, 0
  br i1 %.not159.1, label %93, label %98

93:                                               ; preds = %.lr.ph177.1
  %94 = add nsw i32 %90, 1
  store i32 %94, ptr @m, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [10001 x i32], ptr @ord, i64 0, i64 %95
  %97 = trunc nuw nsw i64 %indvars.iv.next243 to i32
  store i32 %97, ptr %96, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %93, %.lr.ph177.1
  %99 = phi i32 [ %90, %.lr.ph177.1 ], [ %94, %93 ]
  %indvars.iv.next243.1 = add nuw nsw i64 %indvars.iv242, 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 %.preheader164.unr-lcssa, label %.lr.ph177, !llvm.loop !15

._crit_edge184.loopexit:                          ; preds = %._crit_edge180
  %.pre275 = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge184

._crit_edge184:                                   ; preds = %._crit_edge, %._crit_edge184.loopexit, %.preheader164
  %100 = phi i32 [ %72, %.preheader164 ], [ %.pre275, %._crit_edge184.loopexit ], [ %72, %._crit_edge ]
  %.lcssa = phi i32 [ %.lcssa294, %.preheader164 ], [ %111, %._crit_edge184.loopexit ], [ 0, %._crit_edge ]
  %101 = icmp eq i32 %100, %.lcssa
  br i1 %101, label %.preheader163, label %127

.preheader163:                                    ; preds = %._crit_edge184
  %.not147188 = icmp slt i32 %100, 1
  br i1 %.not147188, label %._crit_edge191, label %.lr.ph190

.lr.ph183:                                        ; preds = %.preheader164, %._crit_edge180
  %indvars.iv246 = phi i64 [ %indvars.iv.next247, %._crit_edge180 ], [ 1, %.preheader164 ]
  %102 = getelementptr inbounds [10001 x i32], ptr @ord, i64 0, i64 %indvars.iv246
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [10001 x i32], ptr @rnk, i64 0, i64 %104
  %106 = trunc nuw nsw i64 %indvars.iv246 to i32
  store i32 %106, ptr %105, align 4, !tbaa !5
  %107 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @e, i64 0, i64 %104
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  %108 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #9
  store ptr %108, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %109 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #9
  store ptr %109, ptr %4, align 8
  %110 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  br i1 %110, label %.lr.ph179, label %._crit_edge180

._crit_edge180:                                   ; preds = %124, %.lr.ph183
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  %indvars.iv.next247 = add nuw nsw i64 %indvars.iv246, 1
  %111 = load i32, ptr @m, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %.not146.not = icmp slt i64 %indvars.iv246, %112
  br i1 %.not146.not, label %.lr.ph183, label %._crit_edge184.loopexit, !llvm.loop !16

.lr.ph179:                                        ; preds = %.lr.ph183, %124
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #9
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [10001 x i32], ptr @deg, i64 0, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !5
  %118 = add nsw i32 %117, -1
  store i32 %118, ptr %116, align 4, !tbaa !5
  %.not158 = icmp eq i32 %118, 0
  br i1 %.not158, label %119, label %124

119:                                              ; preds = %.lr.ph179
  %120 = load i32, ptr @m, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr @m, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [10001 x i32], ptr @ord, i64 0, i64 %122
  store i32 %114, ptr %123, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %119, %.lr.ph179
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #9
  %126 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  br i1 %126, label %.lr.ph179, label %._crit_edge180

127:                                              ; preds = %._crit_edge184
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, i32 noundef 42, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

._crit_edge191:                                   ; preds = %._crit_edge187, %.preheader163
  %128 = load i32, ptr @w, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  %130 = sext i32 %129 to i64
  %131 = shl nsw i64 %130, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @poly, i8 0, i64 %131, i1 false)
  %.not148206 = icmp slt i32 %128, 1
  br i1 %.not148206, label %.preheader162, label %.lr.ph209

.lr.ph190:                                        ; preds = %.preheader163, %._crit_edge187
  %indvars.iv249 = phi i64 [ %indvars.iv.next250, %._crit_edge187 ], [ 1, %.preheader163 ]
  %132 = getelementptr inbounds [10001 x i32], ptr @ord, i64 0, i64 %indvars.iv249
  %133 = load i32, ptr %132, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %134 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @g, i64 0, i64 %indvars.iv249
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %134) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  %135 = sext i32 %133 to i64
  %136 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @e, i64 0, i64 %135
  %137 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #9
  call void @_ZNSt6vectorIiSaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %137)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %138 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #9
  store ptr %138, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %139 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #9
  store ptr %139, ptr %7, align 8
  %140 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %140, label %.lr.ph186, label %._crit_edge187

._crit_edge187:                                   ; preds = %.lr.ph186, %.lr.ph190
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %8, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %136) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  %141 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %134) #9
  %142 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %134) #9
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %141, ptr %142)
  %indvars.iv.next250 = add nuw nsw i64 %indvars.iv249, 1
  %143 = load i32, ptr @n, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %.not147.not = icmp slt i64 %indvars.iv249, %144
  br i1 %.not147.not, label %.lr.ph190, label %._crit_edge191, !llvm.loop !17

.lr.ph186:                                        ; preds = %.lr.ph190, %.lr.ph186
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [10001 x i32], ptr @rnk, i64 0, i64 %147
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %134, ptr noundef nonnull align 4 dereferenceable(4) %148)
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %150 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %150, label %.lr.ph186, label %._crit_edge187

.preheader162:                                    ; preds = %.loopexit, %._crit_edge191
  %.lcssa166 = phi i32 [ %128, %._crit_edge191 ], [ %.pre276284, %.loopexit ]
  %.not149214 = icmp slt i32 %.lcssa166, 0
  br i1 %.not149214, label %._crit_edge216.split.us, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %.preheader162
  %151 = zext nneg i32 %.lcssa166 to i64
  %152 = add nuw i32 %.lcssa166, 1
  %wide.trip.count269 = zext i32 %152 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge213.us
  %indvars.iv266 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next267, %._crit_edge213.us ]
  br label %153

153:                                              ; preds = %.preheader.us, %._crit_edge279
  %indvars.iv263 = phi i64 [ %151, %.preheader.us ], [ %indvars.iv.next264.pre-phi, %._crit_edge279 ]
  %.not151.us = icmp eq i64 %indvars.iv263, 0
  br i1 %.not151.us, label %._crit_edge279, label %154

154:                                              ; preds = %153
  %155 = add nsw i64 %indvars.iv263, -1
  %156 = getelementptr inbounds [1201 x i32], ptr @poly, i64 0, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !5
  br label %._crit_edge279

._crit_edge279:                                   ; preds = %153, %154
  %indvars.iv.next264.pre-phi = phi i64 [ %155, %154 ], [ -1, %153 ]
  %158 = phi i32 [ %157, %154 ], [ 0, %153 ]
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [1201 x i32], ptr @poly, i64 0, i64 %indvars.iv263
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = mul nsw i64 %indvars.iv266, %162
  %164 = sub nsw i64 %159, %163
  %165 = srem i64 %164, 1000000007
  %166 = trunc nsw i64 %165 to i32
  store i32 %166, ptr %160, align 4, !tbaa !5
  %167 = icmp sgt i64 %indvars.iv263, 0
  br i1 %167, label %153, label %._crit_edge213.us, !llvm.loop !18

._crit_edge213.us:                                ; preds = %._crit_edge279
  %indvars.iv.next267 = add nuw nsw i64 %indvars.iv266, 1
  %exitcond270.not = icmp eq i64 %indvars.iv.next267, %wide.trip.count269
  br i1 %exitcond270.not, label %._crit_edge216.split.us, label %.preheader.us, !llvm.loop !19

.lr.ph209:                                        ; preds = %._crit_edge191, %.loopexit
  %.pre276277 = phi i32 [ %.pre276284, %.loopexit ], [ %128, %._crit_edge191 ]
  %indvars.iv260 = phi i64 [ %indvars.iv.next261, %.loopexit ], [ 1, %._crit_edge191 ]
  %168 = getelementptr inbounds [1201 x [1201 x i32]], ptr @pw, i64 0, i64 %indvars.iv260
  %169 = load i32, ptr @n, align 4, !tbaa !5
  %170 = icmp sgt i32 %169, 0
  br i1 %170, label %.lr.ph198.preheader, label %.loopexit

.lr.ph198.preheader:                              ; preds = %.lr.ph209
  %171 = zext nneg i32 %169 to i64
  br label %.lr.ph198

._crit_edge199:                                   ; preds = %._crit_edge194
  %.pre276.pre = load i32, ptr @w, align 4, !tbaa !5
  %.not152 = icmp eq i64 %208, 0
  %.not154201 = icmp slt i32 %.pre276.pre, 0
  %or.cond = select i1 %.not152, i1 true, i1 %.not154201
  br i1 %or.cond, label %.loopexit, label %.lr.ph205

.lr.ph198:                                        ; preds = %.lr.ph198.preheader, %._crit_edge194
  %indvars.iv252 = phi i64 [ %171, %.lr.ph198.preheader ], [ %indvars.iv.next253, %._crit_edge194 ]
  %.0128195 = phi i64 [ 0, %.lr.ph198.preheader ], [ %208, %._crit_edge194 ]
  %172 = getelementptr inbounds [10001 x i32], ptr @ord, i64 0, i64 %indvars.iv252
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [10001 x i32], ptr @a, i64 0, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds i32, ptr %168, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !5
  %180 = getelementptr inbounds [10001 x i32], ptr @f, i64 0, i64 %indvars.iv252
  store i32 %179, ptr %180, align 4, !tbaa !5
  %181 = shl nsw i32 %176, 1
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds i32, ptr %168, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %185 = getelementptr inbounds [10001 x i32], ptr getelementptr inbounds (i8, ptr @f, i64 40004), i64 0, i64 %indvars.iv252
  store i32 %184, ptr %185, align 4, !tbaa !5
  %186 = mul nsw i32 %176, 3
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds i32, ptr %168, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = getelementptr inbounds [10001 x i32], ptr getelementptr inbounds (i8, ptr @f, i64 80008), i64 0, i64 %indvars.iv252
  store i32 %189, ptr %190, align 4, !tbaa !5
  %191 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @g, i64 0, i64 %indvars.iv252
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %192 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %191) #9
  store ptr %192, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %193 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %191) #9
  store ptr %193, ptr %10, align 8
  %194 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br i1 %194, label %.lr.ph193, label %._crit_edge194

._crit_edge194:                                   ; preds = %.lr.ph193, %.lr.ph198
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  %195 = load i32, ptr %180, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = mul nsw i64 %196, %196
  %198 = load i32, ptr %185, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %.neg = mul nsw i64 %199, -3
  %200 = add nsw i64 %.neg, %197
  %201 = srem i64 %200, 1000000007
  %202 = mul nsw i64 %201, %196
  %203 = load i32, ptr %190, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = shl nsw i64 %204, 1
  %206 = add nsw i64 %205, %.0128195
  %207 = add nsw i64 %206, %202
  %208 = srem i64 %207, 1000000007
  %indvars.iv.next253 = add nsw i64 %indvars.iv252, -1
  %209 = icmp sgt i64 %indvars.iv252, 1
  br i1 %209, label %.lr.ph198, label %._crit_edge199, !llvm.loop !20

.lr.ph193:                                        ; preds = %.lr.ph198, %.lr.ph193
  %210 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  %211 = load i32, ptr %210, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [10001 x i32], ptr @f, i64 0, i64 %212
  %214 = load i32, ptr %213, align 4, !tbaa !5
  %215 = load i32, ptr %180, align 4, !tbaa !5
  %216 = add nsw i32 %215, %214
  %217 = icmp sgt i32 %216, 1000000006
  %218 = add nsw i32 %216, -1000000007
  %spec.select = select i1 %217, i32 %218, i32 %216
  store i32 %spec.select, ptr %180, align 4, !tbaa !5
  %219 = getelementptr inbounds [10001 x i32], ptr getelementptr inbounds (i8, ptr @f, i64 40004), i64 0, i64 %212
  %220 = load i32, ptr %219, align 4, !tbaa !5
  %221 = load i32, ptr %185, align 4, !tbaa !5
  %222 = add nsw i32 %221, %220
  %223 = icmp sgt i32 %222, 1000000006
  %224 = add nsw i32 %222, -1000000007
  %storemerge156 = select i1 %223, i32 %224, i32 %222
  store i32 %storemerge156, ptr %185, align 4, !tbaa !5
  %225 = getelementptr inbounds [10001 x i32], ptr getelementptr inbounds (i8, ptr @f, i64 80008), i64 0, i64 %212
  %226 = load i32, ptr %225, align 4, !tbaa !5
  %227 = load i32, ptr %190, align 4, !tbaa !5
  %228 = add nsw i32 %227, %226
  %229 = icmp sgt i32 %228, 1000000006
  %230 = add nsw i32 %228, -1000000007
  %storemerge157 = select i1 %229, i32 %230, i32 %228
  store i32 %storemerge157, ptr %190, align 4, !tbaa !5
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  %232 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br i1 %232, label %.lr.ph193, label %._crit_edge194

.lr.ph205:                                        ; preds = %._crit_edge199
  %233 = trunc nuw nsw i64 %indvars.iv260 to i32
  %234 = sub nsw i32 %.pre276.pre, %233
  %235 = and i32 %234, 1
  %.not153 = icmp eq i32 %235, 0
  %236 = icmp slt i64 %208, 0
  %237 = add nsw i64 %208, 1000000007
  %238 = select i1 %236, i64 %237, i64 %208
  %239 = mul nsw i64 %238, 166666668
  %240 = srem i64 %239, 1000000007
  %241 = getelementptr inbounds [1201 x i32], ptr @iact, i64 0, i64 %indvars.iv260
  %242 = load i32, ptr %241, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = mul nsw i64 %240, %243
  %245 = srem i64 %244, 1000000007
  %246 = sext i32 %234 to i64
  %247 = getelementptr inbounds [1201 x i32], ptr @iact, i64 0, i64 %246
  %248 = load i32, ptr %247, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = mul nsw i64 %245, %249
  %251 = srem i64 %250, 1000000007
  %252 = sub nsw i64 1000000007, %251
  %spec.select160 = select i1 %.not153, i64 %252, i64 %251
  %253 = getelementptr inbounds [1201 x i32], ptr @inv, i64 0, i64 %indvars.iv260
  %254 = load i32, ptr %253, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = add nuw i32 %.pre276.pre, 1
  %wide.trip.count258 = zext i32 %256 to i64
  %xtraiter298 = and i64 %wide.trip.count258, 1
  %257 = icmp eq i32 %.pre276.pre, 0
  br i1 %257, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph205.new

.lr.ph205.new:                                    ; preds = %.lr.ph205
  %unroll_iter300 = and i64 %wide.trip.count258, 4294967294
  br label %258

258:                                              ; preds = %258, %.lr.ph205.new
  %indvars.iv255 = phi i64 [ 0, %.lr.ph205.new ], [ %indvars.iv.next256.1, %258 ]
  %.1202 = phi i64 [ %spec.select160, %.lr.ph205.new ], [ %268, %258 ]
  %niter301 = phi i64 [ 0, %.lr.ph205.new ], [ %niter301.next.1, %258 ]
  %259 = mul nsw i64 %.1202, %255
  %260 = srem i64 %259, 1000000007
  %261 = trunc nsw i64 %260 to i32
  %262 = getelementptr inbounds [1201 x i32], ptr @poly, i64 0, i64 %indvars.iv255
  %263 = load i32, ptr %262, align 8, !tbaa !5
  %264 = add nsw i32 %263, %261
  %265 = icmp sgt i32 %264, 1000000006
  %266 = add nsw i32 %264, -1000000007
  %spec.select161 = select i1 %265, i32 %266, i32 %264
  store i32 %spec.select161, ptr %262, align 8, !tbaa !5
  %indvars.iv.next256 = or disjoint i64 %indvars.iv255, 1
  %267 = mul nsw i64 %260, %255
  %268 = srem i64 %267, 1000000007
  %269 = trunc nsw i64 %268 to i32
  %270 = getelementptr inbounds [1201 x i32], ptr @poly, i64 0, i64 %indvars.iv.next256
  %271 = load i32, ptr %270, align 4, !tbaa !5
  %272 = add nsw i32 %271, %269
  %273 = icmp sgt i32 %272, 1000000006
  %274 = add nsw i32 %272, -1000000007
  %spec.select161.1 = select i1 %273, i32 %274, i32 %272
  store i32 %spec.select161.1, ptr %270, align 4, !tbaa !5
  %indvars.iv.next256.1 = add nuw nsw i64 %indvars.iv255, 2
  %niter301.next.1 = add i64 %niter301, 2
  %niter301.ncmp.1 = icmp eq i64 %niter301.next.1, %unroll_iter300
  br i1 %niter301.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %258, !llvm.loop !21

.loopexit.loopexit.unr-lcssa:                     ; preds = %258, %.lr.ph205
  %indvars.iv255.unr = phi i64 [ 0, %.lr.ph205 ], [ %indvars.iv.next256.1, %258 ]
  %.1202.unr = phi i64 [ %spec.select160, %.lr.ph205 ], [ %268, %258 ]
  %lcmp.mod299.not = icmp eq i64 %xtraiter298, 0
  br i1 %lcmp.mod299.not, label %.loopexit, label %.loopexit.loopexit.epilog-lcssa

.loopexit.loopexit.epilog-lcssa:                  ; preds = %.loopexit.loopexit.unr-lcssa
  %275 = mul nsw i64 %.1202.unr, %255
  %276 = srem i64 %275, 1000000007
  %277 = trunc nsw i64 %276 to i32
  %278 = getelementptr inbounds [1201 x i32], ptr @poly, i64 0, i64 %indvars.iv255.unr
  %279 = load i32, ptr %278, align 4, !tbaa !5
  %280 = add nsw i32 %279, %277
  %281 = icmp sgt i32 %280, 1000000006
  %282 = add nsw i32 %280, -1000000007
  %spec.select161.epil = select i1 %281, i32 %282, i32 %280
  store i32 %spec.select161.epil, ptr %278, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit.epilog-lcssa, %.loopexit.loopexit.unr-lcssa, %.lr.ph209, %._crit_edge199
  %.pre276284 = phi i32 [ %.pre276.pre, %._crit_edge199 ], [ %.pre276277, %.lr.ph209 ], [ %.pre276.pre, %.loopexit.loopexit.unr-lcssa ], [ %.pre276.pre, %.loopexit.loopexit.epilog-lcssa ]
  %indvars.iv.next261 = add nuw nsw i64 %indvars.iv260, 1
  %283 = sext i32 %.pre276284 to i64
  %.not148.not = icmp slt i64 %indvars.iv260, %283
  br i1 %.not148.not, label %.lr.ph209, label %.preheader162, !llvm.loop !22

._crit_edge216.split.us:                          ; preds = %._crit_edge213.us, %.preheader162
  %284 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %.0129223)
  %285 = load i32, ptr @w, align 4, !tbaa !5
  %.not150217 = icmp slt i32 %285, 1
  br i1 %.not150217, label %._crit_edge221, label %.lr.ph220

._crit_edge221:                                   ; preds = %.lr.ph220, %._crit_edge216.split.us
  %286 = add nuw nsw i32 %.0129223, 1
  %287 = load i32, ptr @t, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.0129223, %287
  br i1 %.not.not, label %.lr.ph225, label %._crit_edge226, !llvm.loop !23

.lr.ph220:                                        ; preds = %._crit_edge216.split.us, %.lr.ph220
  %indvars.iv271 = phi i64 [ %indvars.iv.next272, %.lr.ph220 ], [ 1, %._crit_edge216.split.us ]
  %288 = phi i32 [ %301, %.lr.ph220 ], [ %285, %._crit_edge216.split.us ]
  %289 = getelementptr inbounds [1201 x i32], ptr @poly, i64 0, i64 %indvars.iv271
  %290 = load i32, ptr %289, align 4, !tbaa !5
  %291 = icmp slt i32 %290, 0
  %292 = add nsw i32 %290, 1000000007
  %293 = select i1 %291, i32 %292, i32 %290
  %294 = zext i32 %288 to i64
  %295 = icmp eq i64 %indvars.iv271, %294
  %296 = zext i1 %295 to i64
  %297 = getelementptr inbounds [3 x i8], ptr @.str.10, i64 0, i64 %296
  %298 = load i8, ptr %297, align 1, !tbaa !24
  %299 = sext i8 %298 to i32
  %300 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %293, i32 noundef %299)
  %indvars.iv.next272 = add nuw nsw i64 %indvars.iv271, 1
  %301 = load i32, ptr @w, align 4, !tbaa !5
  %302 = sext i32 %301 to i64
  %.not150.not = icmp slt i64 %indvars.iv271, %302
  br i1 %.not150.not, label %.lr.ph220, label %._crit_edge221, !llvm.loop !25
}

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #8

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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

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


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