; LLVM IR from kazunetakahashi/atcoder :: 2019/0420_tenka1-2019 (D)

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %32, %0
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = load i32, ptr @N, align 4, !tbaa !5
  %19 = icmp slt i32 %17, %18
  br i1 %19, label %21, label %20

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

21:                                               ; preds = %16
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [310 x i32], ptr @a, i64 0, i64 %23
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [310 x i32], ptr @a, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = load i32, ptr @S, align 4, !tbaa !5
  %31 = add nsw i32 %30, %29
  store i32 %31, ptr @S, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %21
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %2, align 4, !tbaa !5
  br label %16, !llvm.loop !9

35:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef @dp, ptr noundef getelementptr inbounds (i64, ptr @dp, i64 27903100), ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  store i64 1, ptr @dp, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %122, %35
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = load i32, ptr @N, align 4, !tbaa !5
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %41, label %40

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

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

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

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

46:                                               ; preds = %42
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [310 x [90010 x i64]], ptr @dp, i64 0, i64 %48
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [90010 x i64], ptr %49, i64 0, i64 %51
  %53 = load i64, ptr %52, align 8, !tbaa !11
  %54 = icmp eq i64 %53, 0
  br i1 %54, label %55, label %56

55:                                               ; preds = %46
  br label %118

56:                                               ; preds = %46
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [310 x [90010 x i64]], ptr @dp, i64 0, i64 %58
  %60 = load i32, ptr %6, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [90010 x i64], ptr %59, i64 0, i64 %61
  %63 = load i64, ptr %62, align 8, !tbaa !11
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [310 x [90010 x i64]], ptr @dp, i64 0, i64 %66
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [310 x i32], ptr @a, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = add nsw i32 %68, %72
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [90010 x i64], ptr %67, i64 0, i64 %74
  %76 = load i64, ptr %75, align 8, !tbaa !11
  %77 = add nsw i64 %76, %63
  store i64 %77, ptr %75, align 8, !tbaa !11
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [310 x [90010 x i64]], ptr @dp, i64 0, i64 %80
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = load i32, ptr %4, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [310 x i32], ptr @a, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = add nsw i32 %82, %86
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [90010 x i64], ptr %81, i64 0, i64 %88
  %90 = load i64, ptr %89, align 8, !tbaa !11
  %91 = srem i64 %90, 998244353
  store i64 %91, ptr %89, align 8, !tbaa !11
  %92 = load i32, ptr %4, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [310 x [90010 x i64]], ptr @dp, i64 0, i64 %93
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [90010 x i64], ptr %94, i64 0, i64 %96
  %98 = load i64, ptr %97, align 8, !tbaa !11
  %99 = mul nsw i64 2, %98
  %100 = load i32, ptr %4, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [310 x [90010 x i64]], ptr @dp, i64 0, i64 %102
  %104 = load i32, ptr %6, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [90010 x i64], ptr %103, i64 0, i64 %105
  %107 = load i64, ptr %106, align 8, !tbaa !11
  %108 = add nsw i64 %107, %99
  store i64 %108, ptr %106, align 8, !tbaa !11
  %109 = load i32, ptr %4, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [310 x [90010 x i64]], ptr @dp, i64 0, i64 %111
  %113 = load i32, ptr %6, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [90010 x i64], ptr %112, i64 0, i64 %114
  %116 = load i64, ptr %115, align 8, !tbaa !11
  %117 = srem i64 %116, 998244353
  store i64 %117, ptr %115, align 8, !tbaa !11
  br label %118

118:                                              ; preds = %56, %55
  %119 = load i32, ptr %6, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %6, align 4, !tbaa !5
  br label %42, !llvm.loop !13

121:                                              ; preds = %45
  br label %122

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

125:                                              ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %126 = load i32, ptr @S, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  %128 = sdiv i32 %127, 2
  store i32 %128, ptr %8, align 4, !tbaa !5
  br label %129

129:                                              ; preds = %144, %125
  %130 = load i32, ptr %8, align 4, !tbaa !5
  %131 = load i32, ptr @S, align 4, !tbaa !5
  %132 = icmp sle i32 %130, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %129
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %147

134:                                              ; preds = %129
  %135 = load i32, ptr @N, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [310 x [90010 x i64]], ptr @dp, i64 0, i64 %136
  %138 = load i32, ptr %8, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [90010 x i64], ptr %137, i64 0, i64 %139
  %141 = load i64, ptr %140, align 8, !tbaa !11
  %142 = load i64, ptr %7, align 8, !tbaa !11
  %143 = add nsw i64 %142, %141
  store i64 %143, ptr %7, align 8, !tbaa !11
  br label %144

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

147:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef @DP, ptr noundef getelementptr inbounds (i64, ptr @DP, i64 27903100), ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  store i64 1, ptr @DP, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %233, %147
  %149 = load i32, ptr %10, align 4, !tbaa !5
  %150 = load i32, ptr @N, align 4, !tbaa !5
  %151 = icmp slt i32 %149, %150
  br i1 %151, label %153, label %152

152:                                              ; preds = %148
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %236

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

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

157:                                              ; preds = %154
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %232

158:                                              ; preds = %154
  %159 = load i32, ptr %10, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [310 x [90010 x i64]], ptr @DP, i64 0, i64 %160
  %162 = load i32, ptr %11, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [90010 x i64], ptr %161, i64 0, i64 %163
  %165 = load i64, ptr %164, align 8, !tbaa !11
  %166 = icmp eq i64 %165, 0
  br i1 %166, label %167, label %168

167:                                              ; preds = %158
  br label %229

168:                                              ; preds = %158
  %169 = load i32, ptr %10, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [310 x [90010 x i64]], ptr @DP, i64 0, i64 %170
  %172 = load i32, ptr %11, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [90010 x i64], ptr %171, i64 0, i64 %173
  %175 = load i64, ptr %174, align 8, !tbaa !11
  %176 = load i32, ptr %10, align 4, !tbaa !5
  %177 = add nsw i32 %176, 1
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [310 x [90010 x i64]], ptr @DP, i64 0, i64 %178
  %180 = load i32, ptr %11, align 4, !tbaa !5
  %181 = load i32, ptr %10, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [310 x i32], ptr @a, i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %185 = add nsw i32 %180, %184
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [90010 x i64], ptr %179, i64 0, i64 %186
  %188 = load i64, ptr %187, align 8, !tbaa !11
  %189 = add nsw i64 %188, %175
  store i64 %189, ptr %187, align 8, !tbaa !11
  %190 = load i32, ptr %10, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [310 x [90010 x i64]], ptr @DP, i64 0, i64 %192
  %194 = load i32, ptr %11, align 4, !tbaa !5
  %195 = load i32, ptr %10, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [310 x i32], ptr @a, i64 0, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = add nsw i32 %194, %198
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [90010 x i64], ptr %193, i64 0, i64 %200
  %202 = load i64, ptr %201, align 8, !tbaa !11
  %203 = srem i64 %202, 998244353
  store i64 %203, ptr %201, align 8, !tbaa !11
  %204 = load i32, ptr %10, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [310 x [90010 x i64]], ptr @DP, i64 0, i64 %205
  %207 = load i32, ptr %11, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [90010 x i64], ptr %206, i64 0, i64 %208
  %210 = load i64, ptr %209, align 8, !tbaa !11
  %211 = load i32, ptr %10, align 4, !tbaa !5
  %212 = add nsw i32 %211, 1
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [310 x [90010 x i64]], ptr @DP, i64 0, i64 %213
  %215 = load i32, ptr %11, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [90010 x i64], ptr %214, i64 0, i64 %216
  %218 = load i64, ptr %217, align 8, !tbaa !11
  %219 = add nsw i64 %218, %210
  store i64 %219, ptr %217, align 8, !tbaa !11
  %220 = load i32, ptr %10, align 4, !tbaa !5
  %221 = add nsw i32 %220, 1
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [310 x [90010 x i64]], ptr @DP, i64 0, i64 %222
  %224 = load i32, ptr %11, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [90010 x i64], ptr %223, i64 0, i64 %225
  %227 = load i64, ptr %226, align 8, !tbaa !11
  %228 = srem i64 %227, 998244353
  store i64 %228, ptr %226, align 8, !tbaa !11
  br label %229

229:                                              ; preds = %168, %167
  %230 = load i32, ptr %11, align 4, !tbaa !5
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %11, align 4, !tbaa !5
  br label %154, !llvm.loop !16

232:                                              ; preds = %157
  br label %233

233:                                              ; preds = %232
  %234 = load i32, ptr %10, align 4, !tbaa !5
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %10, align 4, !tbaa !5
  br label %148, !llvm.loop !17

236:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !11
  %237 = load i32, ptr @S, align 4, !tbaa !5
  %238 = srem i32 %237, 2
  %239 = icmp eq i32 %238, 0
  br i1 %239, label %240, label %249

240:                                              ; preds = %236
  %241 = load i32, ptr @N, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [310 x [90010 x i64]], ptr @DP, i64 0, i64 %242
  %244 = load i32, ptr @S, align 4, !tbaa !5
  %245 = sdiv i32 %244, 2
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [90010 x i64], ptr %243, i64 0, i64 %246
  %248 = load i64, ptr %247, align 8, !tbaa !11
  store i64 %248, ptr %12, align 8, !tbaa !11
  br label %249

249:                                              ; preds = %240, %236
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 1, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %250

250:                                              ; preds = %260, %249
  %251 = load i32, ptr %14, align 4, !tbaa !5
  %252 = load i32, ptr @N, align 4, !tbaa !5
  %253 = icmp slt i32 %251, %252
  br i1 %253, label %255, label %254

254:                                              ; preds = %250
  store i32 20, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %263

255:                                              ; preds = %250
  %256 = load i64, ptr %13, align 8, !tbaa !11
  %257 = mul nsw i64 %256, 3
  store i64 %257, ptr %13, align 8, !tbaa !11
  %258 = load i64, ptr %13, align 8, !tbaa !11
  %259 = srem i64 %258, 998244353
  store i64 %259, ptr %13, align 8, !tbaa !11
  br label %260

260:                                              ; preds = %255
  %261 = load i32, ptr %14, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %14, align 4, !tbaa !5
  br label %250, !llvm.loop !18

263:                                              ; preds = %254
  %264 = load i64, ptr %7, align 8, !tbaa !11
  %265 = mul nsw i64 3, %264
  %266 = srem i64 %265, 998244353
  %267 = sub nsw i64 998244353, %266
  %268 = load i64, ptr %13, align 8, !tbaa !11
  %269 = add nsw i64 %268, %267
  store i64 %269, ptr %13, align 8, !tbaa !11
  %270 = load i64, ptr %13, align 8, !tbaa !11
  %271 = srem i64 %270, 998244353
  store i64 %271, ptr %13, align 8, !tbaa !11
  %272 = load i64, ptr %12, align 8, !tbaa !11
  %273 = mul nsw i64 3, %272
  %274 = load i64, ptr %13, align 8, !tbaa !11
  %275 = add nsw i64 %274, %273
  store i64 %275, ptr %13, align 8, !tbaa !11
  %276 = load i64, ptr %13, align 8, !tbaa !11
  %277 = srem i64 %276, 998244353
  store i64 %277, ptr %13, align 8, !tbaa !11
  %278 = load i64, ptr %13, align 8, !tbaa !11
  %279 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %278)
  %280 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %279, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  %281 = load i32, ptr %1, align 4
  ret i32 %281
}

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

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

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

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

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

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

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@N = external dso_local global i32, align 4
@a = external dso_local global [310 x i32], align 16
@S = external dso_local local_unnamed_addr global i32, align 4
@dp = external dso_local global [310 x [90010 x i64]], align 16
@DP = external dso_local global [310 x [90010 x i64]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %4 = load i32, ptr @N, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef nonnull @dp, ptr noundef nonnull getelementptr inbounds (i8, ptr @dp, i64 223224800), ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  store i64 1, ptr @dp, align 16, !tbaa !9
  %6 = load i32, ptr @N, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.preheader72.preheader, label %._crit_edge77

.preheader72.preheader:                           ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %6 to i64
  br label %.preheader72

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

.preheader72:                                     ; preds = %.preheader72.preheader, %31
  %indvars.iv101 = phi i64 [ 0, %.preheader72.preheader ], [ %indvars.iv.next102, %31 ]
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %16 = getelementptr inbounds [310 x i32], ptr @a, i64 0, i64 %indvars.iv101
  br label %32

._crit_edge77:                                    ; preds = %31, %._crit_edge
  %17 = load i32, ptr @S, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  %19 = sdiv i32 %18, 2
  %.not78 = icmp sgt i32 %19, %17
  br i1 %.not78, label %._crit_edge83, label %.lr.ph82

.lr.ph82:                                         ; preds = %._crit_edge77
  %20 = sext i32 %6 to i64
  %21 = sext i32 %19 to i64
  %22 = sub i32 %17, %19
  %23 = zext i32 %22 to i64
  %24 = add nuw nsw i64 %23, 1
  %min.iters.check = icmp ult i32 %22, 3
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph82
  %indvars.iv105.ph = phi i64 [ %21, %.lr.ph82 ], [ %ind.end, %middle.block ]
  %.06579.ph = phi i64 [ 0, %.lr.ph82 ], [ %30, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph82
  %n.vec = and i64 %24, 8589934588
  %ind.end = add nsw i64 %n.vec, %21
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %27, %vector.body ]
  %vec.phi121 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %28, %vector.body ]
  %offset.idx = add i64 %index, %21
  %25 = getelementptr inbounds [310 x [90010 x i64]], ptr @dp, i64 0, i64 %20, i64 %offset.idx
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  %wide.load = load <2 x i64>, ptr %25, align 8, !tbaa !9
  %wide.load122 = load <2 x i64>, ptr %26, align 8, !tbaa !9
  %27 = add <2 x i64> %wide.load, %vec.phi
  %28 = add <2 x i64> %wide.load122, %vec.phi121
  %index.next = add nuw i64 %index, 4
  %29 = icmp eq i64 %index.next, %n.vec
  br i1 %29, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %28, %27
  %30 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %24, %n.vec
  br i1 %cmp.n, label %._crit_edge83.loopexit, label %scalar.ph.preheader

31:                                               ; preds = %51
  %exitcond104.not = icmp eq i64 %indvars.iv.next102, %wide.trip.count
  br i1 %exitcond104.not, label %._crit_edge77, label %.preheader72, !llvm.loop !16

32:                                               ; preds = %.preheader72, %51
  %indvars.iv98 = phi i64 [ 0, %.preheader72 ], [ %indvars.iv.next99, %51 ]
  %33 = getelementptr inbounds [310 x [90010 x i64]], ptr @dp, i64 0, i64 %indvars.iv101, i64 %indvars.iv98
  %34 = load i64, ptr %33, align 8, !tbaa !9
  %35 = icmp eq i64 %34, 0
  br i1 %35, label %51, label %36

36:                                               ; preds = %32
  %37 = load i32, ptr %16, align 4, !tbaa !5
  %38 = trunc nuw nsw i64 %indvars.iv98 to i32
  %39 = add nsw i32 %37, %38
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [310 x [90010 x i64]], ptr @dp, i64 0, i64 %indvars.iv.next102, i64 %40
  %42 = load i64, ptr %41, align 8, !tbaa !9
  %43 = add nsw i64 %42, %34
  %44 = srem i64 %43, 998244353
  store i64 %44, ptr %41, align 8, !tbaa !9
  %45 = load i64, ptr %33, align 8, !tbaa !9
  %46 = shl nsw i64 %45, 1
  %47 = getelementptr inbounds [310 x [90010 x i64]], ptr @dp, i64 0, i64 %indvars.iv.next102, i64 %indvars.iv98
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = add nsw i64 %48, %46
  %50 = srem i64 %49, 998244353
  store i64 %50, ptr %47, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %32, %36
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next99, 90010
  br i1 %exitcond.not, label %31, label %32, !llvm.loop !17

._crit_edge83.loopexit:                           ; preds = %scalar.ph, %middle.block
  %.lcssa120 = phi i64 [ %30, %middle.block ], [ %58, %scalar.ph ]
  %52 = mul nsw i64 %.lcssa120, 3
  %53 = srem i64 %52, 998244353
  br label %._crit_edge83

._crit_edge83:                                    ; preds = %._crit_edge83.loopexit, %._crit_edge77
  %.065.lcssa = phi i64 [ 0, %._crit_edge77 ], [ %53, %._crit_edge83.loopexit ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef nonnull @DP, ptr noundef nonnull getelementptr inbounds (i8, ptr @DP, i64 223224800), ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  store i64 1, ptr @DP, align 16, !tbaa !9
  %54 = load i32, ptr @N, align 4, !tbaa !5
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %.preheader.preheader, label %._crit_edge87

.preheader.preheader:                             ; preds = %._crit_edge83
  %wide.trip.count116 = zext nneg i32 %54 to i64
  br label %.preheader

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %scalar.ph ], [ %indvars.iv105.ph, %scalar.ph.preheader ]
  %.06579 = phi i64 [ %58, %scalar.ph ], [ %.06579.ph, %scalar.ph.preheader ]
  %56 = getelementptr inbounds [310 x [90010 x i64]], ptr @dp, i64 0, i64 %20, i64 %indvars.iv105
  %57 = load i64, ptr %56, align 8, !tbaa !9
  %58 = add nsw i64 %57, %.06579
  %indvars.iv.next106 = add nsw i64 %indvars.iv105, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next106 to i32
  %exitcond108.not = icmp eq i32 %18, %lftr.wideiv
  br i1 %exitcond108.not, label %._crit_edge83.loopexit, label %scalar.ph, !llvm.loop !18

.preheader:                                       ; preds = %.preheader.preheader, %63
  %indvars.iv113 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next114, %63 ]
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %59 = getelementptr inbounds [310 x i32], ptr @a, i64 0, i64 %indvars.iv113
  br label %64

._crit_edge87:                                    ; preds = %63, %._crit_edge83
  %60 = load i32, ptr @S, align 4, !tbaa !5
  %61 = and i32 %60, 1
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %83, label %90

63:                                               ; preds = %82
  %exitcond117.not = icmp eq i64 %indvars.iv.next114, %wide.trip.count116
  br i1 %exitcond117.not, label %._crit_edge87, label %.preheader, !llvm.loop !19

64:                                               ; preds = %.preheader, %82
  %indvars.iv109 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next110, %82 ]
  %65 = getelementptr inbounds [310 x [90010 x i64]], ptr @DP, i64 0, i64 %indvars.iv113, i64 %indvars.iv109
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = icmp eq i64 %66, 0
  br i1 %67, label %82, label %68

68:                                               ; preds = %64
  %69 = load i32, ptr %59, align 4, !tbaa !5
  %70 = trunc nuw nsw i64 %indvars.iv109 to i32
  %71 = add nsw i32 %69, %70
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [310 x [90010 x i64]], ptr @DP, i64 0, i64 %indvars.iv.next114, i64 %72
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = add nsw i64 %74, %66
  %76 = srem i64 %75, 998244353
  store i64 %76, ptr %73, align 8, !tbaa !9
  %77 = load i64, ptr %65, align 8, !tbaa !9
  %78 = getelementptr inbounds [310 x [90010 x i64]], ptr @DP, i64 0, i64 %indvars.iv.next114, i64 %indvars.iv109
  %79 = load i64, ptr %78, align 8, !tbaa !9
  %80 = add nsw i64 %79, %77
  %81 = srem i64 %80, 998244353
  store i64 %81, ptr %78, align 8, !tbaa !9
  br label %82

82:                                               ; preds = %64, %68
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %exitcond112.not = icmp eq i64 %indvars.iv.next110, 90010
  br i1 %exitcond112.not, label %63, label %64, !llvm.loop !20

83:                                               ; preds = %._crit_edge87
  %84 = sext i32 %54 to i64
  %85 = ashr exact i32 %60, 1
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [310 x [90010 x i64]], ptr @DP, i64 0, i64 %84, i64 %86
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = mul nsw i64 %88, 3
  br label %90

90:                                               ; preds = %83, %._crit_edge87
  %.061 = phi i64 [ %89, %83 ], [ 0, %._crit_edge87 ]
  br i1 %55, label %.lr.ph92.preheader, label %._crit_edge93

.lr.ph92.preheader:                               ; preds = %90
  %xtraiter = and i32 %54, 3
  %91 = icmp ult i32 %54, 4
  br i1 %91, label %._crit_edge93.loopexit.unr-lcssa, label %.lr.ph92.preheader.new

.lr.ph92.preheader.new:                           ; preds = %.lr.ph92.preheader
  %unroll_iter = and i32 %54, 2147483644
  br label %.lr.ph92

._crit_edge93.loopexit.unr-lcssa:                 ; preds = %.lr.ph92, %.lr.ph92.preheader
  %.lcssa.ph = phi i64 [ poison, %.lr.ph92.preheader ], [ %107, %.lr.ph92 ]
  %.06089.unr = phi i64 [ 1, %.lr.ph92.preheader ], [ %107, %.lr.ph92 ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge93, label %.lr.ph92.epil

.lr.ph92.epil:                                    ; preds = %._crit_edge93.loopexit.unr-lcssa, %.lr.ph92.epil
  %.06089.epil = phi i64 [ %93, %.lr.ph92.epil ], [ %.06089.unr, %._crit_edge93.loopexit.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.lr.ph92.epil ], [ 0, %._crit_edge93.loopexit.unr-lcssa ]
  %92 = mul nsw i64 %.06089.epil, 3
  %93 = srem i64 %92, 998244353
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge93, label %.lr.ph92.epil, !llvm.loop !21

._crit_edge93:                                    ; preds = %._crit_edge93.loopexit.unr-lcssa, %.lr.ph92.epil, %90
  %.060.lcssa = phi i64 [ 1, %90 ], [ %.lcssa.ph, %._crit_edge93.loopexit.unr-lcssa ], [ %93, %.lr.ph92.epil ]
  %reass.sub95 = sub nsw i64 %.060.lcssa, %.065.lcssa
  %94 = add nsw i64 %reass.sub95, 998244353
  %95 = srem i64 %94, 998244353
  %96 = add nsw i64 %95, %.061
  %97 = srem i64 %96, 998244353
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %97)
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0

.lr.ph92:                                         ; preds = %.lr.ph92, %.lr.ph92.preheader.new
  %.06089 = phi i64 [ 1, %.lr.ph92.preheader.new ], [ %107, %.lr.ph92 ]
  %niter = phi i32 [ 0, %.lr.ph92.preheader.new ], [ %niter.next.3, %.lr.ph92 ]
  %100 = mul nsw i64 %.06089, 3
  %101 = srem i64 %100, 998244353
  %102 = mul nsw i64 %101, 3
  %103 = srem i64 %102, 998244353
  %104 = mul nsw i64 %103, 3
  %105 = srem i64 %104, 998244353
  %106 = mul nsw i64 %105, 3
  %107 = srem i64 %106, 998244353
  %niter.next.3 = add i32 %niter, 4
  %niter.ncmp.3 = icmp eq i32 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge93.loopexit.unr-lcssa, label %.lr.ph92, !llvm.loop !23
}

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #5

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

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

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


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