; LLVM IR from kazunetakahashi/atcoder :: 2018/1229_AGC030 (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 }

@inv = external dso_local global [1000010 x i64], align 16
@N = external dso_local global i64, align 8
@Q = external dso_local global i64, align 8
@A = external dso_local global [3010 x i64], align 16
@X = external dso_local global [3010 x i32], align 16
@Y = external dso_local global [3010 x i32], align 16
@T = external dso_local global [3010 x [3010 x i64]], align 16
@t_half = external dso_local global [3010 x i64], align 16
@t_half_rev = external dso_local global [3010 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4initv() #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z5powerxx(i64 noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5flushv() #2

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

18:                                               ; preds = %29, %0
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = load i64, ptr @N, align 8, !tbaa !9
  %22 = icmp slt i64 %20, %21
  br i1 %22, label %24, label %23

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

24:                                               ; preds = %18
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [3010 x i64], ptr @A, i64 0, i64 %26
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %27)
  br label %29

29:                                               ; preds = %24
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %2, align 4, !tbaa !5
  br label %18, !llvm.loop !11

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

33:                                               ; preds = %58, %32
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = load i64, ptr @Q, align 8, !tbaa !9
  %37 = icmp slt i64 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %61

39:                                               ; preds = %33
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [3010 x i32], ptr @X, i64 0, i64 %41
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %42)
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [3010 x i32], ptr @Y, i64 0, i64 %45
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 4 dereferenceable(4) %46)
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [3010 x i32], ptr @X, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = add nsw i32 %51, -1
  store i32 %52, ptr %50, align 4, !tbaa !5
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [3010 x i32], ptr @Y, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = add nsw i32 %56, -1
  store i32 %57, ptr %55, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %39
  %59 = load i32, ptr %3, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %3, align 4, !tbaa !5
  br label %33, !llvm.loop !13

61:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef @T, ptr noundef getelementptr inbounds (i64, ptr @T, i64 9060100), ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %62 = load i64, ptr @Q, align 8, !tbaa !9
  %63 = call noundef i64 @_Z5powerxx(i64 noundef 2, i64 noundef %62)
  store i64 %63, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %100, %61
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = load i64, ptr @N, align 8, !tbaa !9
  %68 = icmp slt i64 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %64
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %103

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

71:                                               ; preds = %96, %70
  %72 = load i32, ptr %8, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = load i64, ptr @N, align 8, !tbaa !9
  %75 = icmp slt i64 %73, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %71
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %99

77:                                               ; preds = %71
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [3010 x i64], ptr @A, i64 0, i64 %79
  %81 = load i64, ptr %80, align 8, !tbaa !9
  %82 = load i32, ptr %8, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [3010 x i64], ptr @A, i64 0, i64 %83
  %85 = load i64, ptr %84, align 8, !tbaa !9
  %86 = icmp sgt i64 %81, %85
  br i1 %86, label %87, label %95

87:                                               ; preds = %77
  %88 = load i64, ptr %5, align 8, !tbaa !9
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %90
  %92 = load i32, ptr %8, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [3010 x i64], ptr %91, i64 0, i64 %93
  store i64 %88, ptr %94, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %87, %77
  br label %96

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

99:                                               ; preds = %76
  br label %100

100:                                              ; preds = %99
  %101 = load i32, ptr %6, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %6, align 4, !tbaa !5
  br label %64, !llvm.loop !15

103:                                              ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %104 = load i64, ptr getelementptr inbounds ([1000010 x i64], ptr @inv, i64 0, i64 2), align 16, !tbaa !9
  store i64 %104, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %283, %103
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = load i64, ptr @Q, align 8, !tbaa !9
  %109 = icmp slt i64 %107, %108
  br i1 %109, label %111, label %110

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

111:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %112 = load i32, ptr %10, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [3010 x i32], ptr @X, i64 0, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !5
  store i32 %115, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %116 = load i32, ptr %10, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [3010 x i32], ptr @Y, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  store i32 %119, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %186, %111
  %121 = load i32, ptr %13, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = load i64, ptr @N, align 8, !tbaa !9
  %124 = icmp slt i64 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %120
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %189

126:                                              ; preds = %120
  %127 = load i32, ptr %13, align 4, !tbaa !5
  %128 = load i32, ptr %11, align 4, !tbaa !5
  %129 = icmp ne i32 %127, %128
  br i1 %129, label %130, label %185

130:                                              ; preds = %126
  %131 = load i32, ptr %13, align 4, !tbaa !5
  %132 = load i32, ptr %12, align 4, !tbaa !5
  %133 = icmp ne i32 %131, %132
  br i1 %133, label %134, label %185

134:                                              ; preds = %130
  %135 = load i32, ptr %13, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %136
  %138 = load i32, ptr %11, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [3010 x i64], ptr %137, i64 0, i64 %139
  %141 = load i64, ptr %140, align 8, !tbaa !9
  %142 = load i32, ptr %13, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %143
  %145 = load i32, ptr %12, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [3010 x i64], ptr %144, i64 0, i64 %146
  %148 = load i64, ptr %147, align 8, !tbaa !9
  %149 = add nsw i64 %141, %148
  %150 = load i64, ptr %9, align 8, !tbaa !9
  %151 = mul nsw i64 %149, %150
  %152 = load i32, ptr %13, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [3010 x i64], ptr @t_half, i64 0, i64 %153
  store i64 %151, ptr %154, align 8, !tbaa !9
  %155 = load i32, ptr %13, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [3010 x i64], ptr @t_half, i64 0, i64 %156
  %158 = load i64, ptr %157, align 8, !tbaa !9
  %159 = srem i64 %158, 1000000007
  store i64 %159, ptr %157, align 8, !tbaa !9
  %160 = load i32, ptr %11, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %161
  %163 = load i32, ptr %13, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [3010 x i64], ptr %162, i64 0, i64 %164
  %166 = load i64, ptr %165, align 8, !tbaa !9
  %167 = load i32, ptr %12, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %168
  %170 = load i32, ptr %13, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [3010 x i64], ptr %169, i64 0, i64 %171
  %173 = load i64, ptr %172, align 8, !tbaa !9
  %174 = add nsw i64 %166, %173
  %175 = load i64, ptr %9, align 8, !tbaa !9
  %176 = mul nsw i64 %174, %175
  %177 = load i32, ptr %13, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [3010 x i64], ptr @t_half_rev, i64 0, i64 %178
  store i64 %176, ptr %179, align 8, !tbaa !9
  %180 = load i32, ptr %13, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [3010 x i64], ptr @t_half_rev, i64 0, i64 %181
  %183 = load i64, ptr %182, align 8, !tbaa !9
  %184 = srem i64 %183, 1000000007
  store i64 %184, ptr %182, align 8, !tbaa !9
  br label %185

185:                                              ; preds = %134, %130, %126
  br label %186

186:                                              ; preds = %185
  %187 = load i32, ptr %13, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %13, align 4, !tbaa !5
  br label %120, !llvm.loop !16

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

190:                                              ; preds = %246, %189
  %191 = load i32, ptr %14, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = load i64, ptr @N, align 8, !tbaa !9
  %194 = icmp slt i64 %192, %193
  br i1 %194, label %196, label %195

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

196:                                              ; preds = %190
  %197 = load i32, ptr %14, align 4, !tbaa !5
  %198 = load i32, ptr %11, align 4, !tbaa !5
  %199 = icmp ne i32 %197, %198
  br i1 %199, label %200, label %245

200:                                              ; preds = %196
  %201 = load i32, ptr %14, align 4, !tbaa !5
  %202 = load i32, ptr %12, align 4, !tbaa !5
  %203 = icmp ne i32 %201, %202
  br i1 %203, label %204, label %245

204:                                              ; preds = %200
  %205 = load i32, ptr %14, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [3010 x i64], ptr @t_half, i64 0, i64 %206
  %208 = load i64, ptr %207, align 8, !tbaa !9
  %209 = load i32, ptr %14, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %210
  %212 = load i32, ptr %11, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [3010 x i64], ptr %211, i64 0, i64 %213
  store i64 %208, ptr %214, align 8, !tbaa !9
  %215 = load i32, ptr %14, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [3010 x i64], ptr @t_half, i64 0, i64 %216
  %218 = load i64, ptr %217, align 8, !tbaa !9
  %219 = load i32, ptr %14, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %220
  %222 = load i32, ptr %12, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [3010 x i64], ptr %221, i64 0, i64 %223
  store i64 %218, ptr %224, align 8, !tbaa !9
  %225 = load i32, ptr %14, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [3010 x i64], ptr @t_half_rev, i64 0, i64 %226
  %228 = load i64, ptr %227, align 8, !tbaa !9
  %229 = load i32, ptr %11, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %230
  %232 = load i32, ptr %14, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [3010 x i64], ptr %231, i64 0, i64 %233
  store i64 %228, ptr %234, align 8, !tbaa !9
  %235 = load i32, ptr %14, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [3010 x i64], ptr @t_half_rev, i64 0, i64 %236
  %238 = load i64, ptr %237, align 8, !tbaa !9
  %239 = load i32, ptr %12, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %240
  %242 = load i32, ptr %14, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [3010 x i64], ptr %241, i64 0, i64 %243
  store i64 %238, ptr %244, align 8, !tbaa !9
  br label %245

245:                                              ; preds = %204, %200, %196
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %14, align 4, !tbaa !5
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %14, align 4, !tbaa !5
  br label %190, !llvm.loop !17

249:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %250 = load i32, ptr %11, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %251
  %253 = load i32, ptr %12, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [3010 x i64], ptr %252, i64 0, i64 %254
  %256 = load i64, ptr %255, align 8, !tbaa !9
  %257 = load i32, ptr %12, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %258
  %260 = load i32, ptr %11, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [3010 x i64], ptr %259, i64 0, i64 %261
  %263 = load i64, ptr %262, align 8, !tbaa !9
  %264 = add nsw i64 %256, %263
  %265 = load i64, ptr %9, align 8, !tbaa !9
  %266 = mul nsw i64 %264, %265
  store i64 %266, ptr %15, align 8, !tbaa !9
  %267 = load i64, ptr %15, align 8, !tbaa !9
  %268 = srem i64 %267, 1000000007
  store i64 %268, ptr %15, align 8, !tbaa !9
  %269 = load i64, ptr %15, align 8, !tbaa !9
  %270 = load i32, ptr %11, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %271
  %273 = load i32, ptr %12, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [3010 x i64], ptr %272, i64 0, i64 %274
  store i64 %269, ptr %275, align 8, !tbaa !9
  %276 = load i64, ptr %15, align 8, !tbaa !9
  %277 = load i32, ptr %12, align 4, !tbaa !5
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %278
  %280 = load i32, ptr %11, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [3010 x i64], ptr %279, i64 0, i64 %281
  store i64 %276, ptr %282, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %283

283:                                              ; preds = %249
  %284 = load i32, ptr %10, align 4, !tbaa !5
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %10, align 4, !tbaa !5
  br label %105, !llvm.loop !18

286:                                              ; preds = %110
  call void @_Z5flushv()
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  %287 = load i32, ptr %1, align 4
  ret i32 %287
}

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

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

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

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

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

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


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

@inv = external dso_local local_unnamed_addr global [1000010 x i64], align 16
@N = external dso_local global i64, align 8
@Q = external dso_local global i64, align 8
@A = external dso_local global [3010 x i64], align 16
@X = external dso_local global [3010 x i32], align 16
@Y = external dso_local global [3010 x i32], align 16
@T = external dso_local global [3010 x [3010 x i64]], align 16
@t_half = external dso_local local_unnamed_addr global [3010 x i64], align 16
@t_half_rev = external dso_local local_unnamed_addr global [3010 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4initv() local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z5powerxx(i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5flushv() local_unnamed_addr #2

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

.preheader94:                                     ; preds = %.lr.ph, %0
  %6 = load i64, ptr @Q, align 8, !tbaa !5
  %7 = icmp sgt i64 %6, 0
  br i1 %7, label %.lr.ph97, label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %8 = getelementptr inbounds [3010 x i64], ptr @A, i64 0, i64 %indvars.iv
  %9 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %10 = load i64, ptr @N, align 8, !tbaa !5
  %11 = icmp sgt i64 %10, %indvars.iv.next
  br i1 %11, label %.lr.ph, label %.preheader94, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph97, %.preheader94
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  store i32 0, ptr %1, align 4, !tbaa !11
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef nonnull @T, ptr noundef nonnull getelementptr inbounds (i8, ptr @T, i64 72480800), ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %12 = load i64, ptr @Q, align 8, !tbaa !5
  %13 = call noundef i64 @_Z5powerxx(i64 noundef 2, i64 noundef %12)
  %14 = load i64, ptr @N, align 8, !tbaa !5
  %15 = icmp sgt i64 %14, 0
  br i1 %15, label %.preheader93.us.preheader, label %._crit_edge102

.preheader93.us.preheader:                        ; preds = %._crit_edge
  %xtraiter = and i64 %14, 1
  %16 = icmp eq i64 %14, 1
  %unroll_iter = and i64 %14, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader93.us

.preheader93.us:                                  ; preds = %.preheader93.us.preheader, %._crit_edge100.us
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %._crit_edge100.us ], [ 0, %.preheader93.us.preheader ]
  %17 = getelementptr inbounds [3010 x i64], ptr @A, i64 0, i64 %indvars.iv120
  %18 = load i64, ptr %17, align 8, !tbaa !5
  br i1 %16, label %._crit_edge100.us.unr-lcssa, label %.preheader93.us.new

.preheader93.us.new:                              ; preds = %.preheader93.us, %30
  %indvars.iv117 = phi i64 [ %indvars.iv.next118.1, %30 ], [ 0, %.preheader93.us ]
  %niter = phi i64 [ %niter.next.1, %30 ], [ 0, %.preheader93.us ]
  %19 = getelementptr inbounds [3010 x i64], ptr @A, i64 0, i64 %indvars.iv117
  %20 = load i64, ptr %19, align 16, !tbaa !5
  %21 = icmp sgt i64 %18, %20
  br i1 %21, label %22, label %24

22:                                               ; preds = %.preheader93.us.new
  %23 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %indvars.iv120, i64 %indvars.iv117
  store i64 %13, ptr %23, align 16, !tbaa !5
  br label %24

24:                                               ; preds = %22, %.preheader93.us.new
  %indvars.iv.next118 = or disjoint i64 %indvars.iv117, 1
  %25 = getelementptr inbounds [3010 x i64], ptr @A, i64 0, i64 %indvars.iv.next118
  %26 = load i64, ptr %25, align 8, !tbaa !5
  %27 = icmp sgt i64 %18, %26
  br i1 %27, label %28, label %30

28:                                               ; preds = %24
  %29 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %indvars.iv120, i64 %indvars.iv.next118
  store i64 %13, ptr %29, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %28, %24
  %indvars.iv.next118.1 = add nuw nsw i64 %indvars.iv117, 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 %._crit_edge100.us.unr-lcssa, label %.preheader93.us.new, !llvm.loop !13

._crit_edge100.us.unr-lcssa:                      ; preds = %30, %.preheader93.us
  %indvars.iv117.unr = phi i64 [ 0, %.preheader93.us ], [ %indvars.iv.next118.1, %30 ]
  br i1 %lcmp.mod.not, label %._crit_edge100.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge100.us.unr-lcssa
  %31 = getelementptr inbounds [3010 x i64], ptr @A, i64 0, i64 %indvars.iv117.unr
  %32 = load i64, ptr %31, align 8, !tbaa !5
  %33 = icmp sgt i64 %18, %32
  br i1 %33, label %34, label %._crit_edge100.us

34:                                               ; preds = %.epil.preheader
  %35 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %indvars.iv120, i64 %indvars.iv117.unr
  store i64 %13, ptr %35, align 8, !tbaa !5
  br label %._crit_edge100.us

._crit_edge100.us:                                ; preds = %.epil.preheader, %34, %._crit_edge100.us.unr-lcssa
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %exitcond123.not = icmp eq i64 %indvars.iv.next121, %14
  br i1 %exitcond123.not, label %._crit_edge102, label %.preheader93.us, !llvm.loop !14

.lr.ph97:                                         ; preds = %.preheader94, %.lr.ph97
  %indvars.iv114 = phi i64 [ %indvars.iv.next115, %.lr.ph97 ], [ 0, %.preheader94 ]
  %36 = getelementptr inbounds [3010 x i32], ptr @X, i64 0, i64 %indvars.iv114
  %37 = 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) %36)
  %38 = getelementptr inbounds [3010 x i32], ptr @Y, i64 0, i64 %indvars.iv114
  %39 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(4) %38)
  %40 = load i32, ptr %36, align 4, !tbaa !11
  %41 = add nsw i32 %40, -1
  store i32 %41, ptr %36, align 4, !tbaa !11
  %42 = load i32, ptr %38, align 4, !tbaa !11
  %43 = add nsw i32 %42, -1
  store i32 %43, ptr %38, align 4, !tbaa !11
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %44 = load i64, ptr @Q, align 8, !tbaa !5
  %45 = icmp sgt i64 %44, %indvars.iv.next115
  br i1 %45, label %.lr.ph97, label %._crit_edge, !llvm.loop !15

._crit_edge102:                                   ; preds = %._crit_edge100.us, %._crit_edge
  %46 = load i64, ptr getelementptr inbounds (i8, ptr @inv, i64 16), align 16, !tbaa !5
  %47 = load i64, ptr @Q, align 8, !tbaa !5
  %48 = icmp sgt i64 %47, 0
  br i1 %48, label %.lr.ph111, label %._crit_edge112

._crit_edge112:                                   ; preds = %._crit_edge108, %._crit_edge102
  call void @_Z5flushv()
  ret i32 0

.lr.ph111:                                        ; preds = %._crit_edge102, %._crit_edge108
  %indvars.iv132 = phi i64 [ %indvars.iv.next133, %._crit_edge108 ], [ 0, %._crit_edge102 ]
  %49 = getelementptr inbounds [3010 x i32], ptr @X, i64 0, i64 %indvars.iv132
  %50 = load i32, ptr %49, align 4, !tbaa !11
  %51 = getelementptr inbounds [3010 x i32], ptr @Y, i64 0, i64 %indvars.iv132
  %52 = load i32, ptr %51, align 4, !tbaa !11
  br i1 %15, label %.lr.ph105, label %.preheader.._crit_edge108_crit_edge

.lr.ph105:                                        ; preds = %.lr.ph111
  %53 = sext i32 %50 to i64
  %54 = sext i32 %52 to i64
  %55 = zext i32 %52 to i64
  %56 = zext i32 %50 to i64
  br label %61

.preheader:                                       ; preds = %79
  br i1 %15, label %.lr.ph107, label %.preheader.._crit_edge108_crit_edge

.preheader.._crit_edge108_crit_edge:              ; preds = %.lr.ph111, %.preheader
  %.pre = sext i32 %50 to i64
  %.pre136 = sext i32 %52 to i64
  br label %._crit_edge108

.lr.ph107:                                        ; preds = %.preheader
  %57 = sext i32 %50 to i64
  %58 = sext i32 %52 to i64
  %59 = zext i32 %52 to i64
  %60 = zext i32 %50 to i64
  br label %87

61:                                               ; preds = %.lr.ph105, %79
  %indvars.iv124 = phi i64 [ 0, %.lr.ph105 ], [ %indvars.iv.next125, %79 ]
  %.not90 = icmp eq i64 %indvars.iv124, %56
  %.not91 = icmp eq i64 %indvars.iv124, %55
  %or.cond = select i1 %.not90, i1 true, i1 %.not91
  br i1 %or.cond, label %79, label %62

62:                                               ; preds = %61
  %63 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %indvars.iv124, i64 %53
  %64 = load i64, ptr %63, align 8, !tbaa !5
  %65 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %indvars.iv124, i64 %54
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %67 = add nsw i64 %66, %64
  %68 = mul nsw i64 %67, %46
  %69 = getelementptr inbounds [3010 x i64], ptr @t_half, i64 0, i64 %indvars.iv124
  %70 = srem i64 %68, 1000000007
  store i64 %70, ptr %69, align 8, !tbaa !5
  %71 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %53, i64 %indvars.iv124
  %72 = load i64, ptr %71, align 8, !tbaa !5
  %73 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %54, i64 %indvars.iv124
  %74 = load i64, ptr %73, align 8, !tbaa !5
  %75 = add nsw i64 %74, %72
  %76 = mul nsw i64 %75, %46
  %77 = getelementptr inbounds [3010 x i64], ptr @t_half_rev, i64 0, i64 %indvars.iv124
  %78 = srem i64 %76, 1000000007
  store i64 %78, ptr %77, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %61, %62
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %exitcond127.not = icmp eq i64 %indvars.iv.next125, %14
  br i1 %exitcond127.not, label %.preheader, label %61, !llvm.loop !16

._crit_edge108:                                   ; preds = %97, %.preheader.._crit_edge108_crit_edge
  %.pre-phi137 = phi i64 [ %.pre136, %.preheader.._crit_edge108_crit_edge ], [ %58, %97 ]
  %.pre-phi = phi i64 [ %.pre, %.preheader.._crit_edge108_crit_edge ], [ %57, %97 ]
  %80 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %.pre-phi, i64 %.pre-phi137
  %81 = load i64, ptr %80, align 8, !tbaa !5
  %82 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %.pre-phi137, i64 %.pre-phi
  %83 = load i64, ptr %82, align 8, !tbaa !5
  %84 = add nsw i64 %83, %81
  %85 = mul nsw i64 %84, %46
  %86 = srem i64 %85, 1000000007
  store i64 %86, ptr %80, align 8, !tbaa !5
  store i64 %86, ptr %82, align 8, !tbaa !5
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %exitcond135.not = icmp eq i64 %indvars.iv.next133, %47
  br i1 %exitcond135.not, label %._crit_edge112, label %.lr.ph111, !llvm.loop !17

87:                                               ; preds = %.lr.ph107, %97
  %indvars.iv128 = phi i64 [ 0, %.lr.ph107 ], [ %indvars.iv.next129, %97 ]
  %.not = icmp eq i64 %indvars.iv128, %60
  %.not89 = icmp eq i64 %indvars.iv128, %59
  %or.cond92 = select i1 %.not, i1 true, i1 %.not89
  br i1 %or.cond92, label %97, label %88

88:                                               ; preds = %87
  %89 = getelementptr inbounds [3010 x i64], ptr @t_half, i64 0, i64 %indvars.iv128
  %90 = load i64, ptr %89, align 8, !tbaa !5
  %91 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %indvars.iv128, i64 %57
  store i64 %90, ptr %91, align 8, !tbaa !5
  %92 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %indvars.iv128, i64 %58
  store i64 %90, ptr %92, align 8, !tbaa !5
  %93 = getelementptr inbounds [3010 x i64], ptr @t_half_rev, i64 0, i64 %indvars.iv128
  %94 = load i64, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %57, i64 %indvars.iv128
  store i64 %94, ptr %95, align 8, !tbaa !5
  %96 = getelementptr inbounds [3010 x [3010 x i64]], ptr @T, i64 0, i64 %58, i64 %indvars.iv128
  store i64 %94, ptr %96, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %87, %88
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %exitcond131.not = icmp eq i64 %indvars.iv.next129, %14
  br i1 %exitcond131.not, label %._crit_edge108, label %87, !llvm.loop !18
}

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

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

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

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


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