; LLVM IR from eyangch/competitive-programming :: USACOcontests/platinum/2020.12 (sleeping_cows)

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

@MOD = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@S = external dso_local global [3001 x i64], align 16
@T = external dso_local global [3001 x i64], align 16
@dp = external dso_local global [3000 x [2 x i64]], align 16
@cdp = external dso_local global [3000 x [2 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 i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %12 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %13 = getelementptr i8, ptr %12, i64 -24
  %14 = load i64, ptr %13, align 8
  %15 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %14
  %16 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %15, ptr noundef null)
  %17 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %18 = 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)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %19

19:                                               ; preds = %28, %0
  %20 = load i64, ptr %2, align 8, !tbaa !8
  %21 = load i64, ptr @N, align 8, !tbaa !8
  %22 = icmp slt i64 %20, %21
  br i1 %22, label %24, label %23

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

24:                                               ; preds = %19
  %25 = load i64, ptr %2, align 8, !tbaa !8
  %26 = getelementptr inbounds [3001 x i64], ptr @S, i64 0, i64 %25
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %26)
  br label %28

28:                                               ; preds = %24
  %29 = load i64, ptr %2, align 8, !tbaa !8
  %30 = add nsw i64 %29, 1
  store i64 %30, ptr %2, align 8, !tbaa !8
  br label %19, !llvm.loop !11

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

32:                                               ; preds = %41, %31
  %33 = load i64, ptr %3, align 8, !tbaa !8
  %34 = load i64, ptr @N, align 8, !tbaa !8
  %35 = icmp slt i64 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %44

37:                                               ; preds = %32
  %38 = load i64, ptr %3, align 8, !tbaa !8
  %39 = getelementptr inbounds [3001 x i64], ptr @T, i64 0, i64 %38
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %39)
  br label %41

41:                                               ; preds = %37
  %42 = load i64, ptr %3, align 8, !tbaa !8
  %43 = add nsw i64 %42, 1
  store i64 %43, ptr %3, align 8, !tbaa !8
  br label %32, !llvm.loop !13

44:                                               ; preds = %36
  %45 = load i64, ptr @N, align 8, !tbaa !8
  %46 = getelementptr inbounds i64, ptr @S, i64 %45
  call void @_ZSt4sortIPxEvT_S1_(ptr noundef @S, ptr noundef %46)
  %47 = load i64, ptr @N, align 8, !tbaa !8
  %48 = getelementptr inbounds i64, ptr @T, i64 %47
  call void @_ZSt4sortIPxEvT_S1_(ptr noundef @T, ptr noundef %48)
  %49 = load i64, ptr @N, align 8, !tbaa !8
  %50 = getelementptr inbounds [3001 x i64], ptr @T, i64 0, i64 %49
  store i64 2000000000, ptr %50, align 8, !tbaa !8
  %51 = load i64, ptr @N, align 8, !tbaa !8
  %52 = getelementptr inbounds [3001 x i64], ptr @S, i64 0, i64 %51
  store i64 2000000000, ptr %52, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 0, ptr %4, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 0, ptr %5, align 8, !tbaa !8
  store i64 1, ptr @dp, align 16, !tbaa !8
  br label %53

53:                                               ; preds = %231, %44
  %54 = load i64, ptr %4, align 8, !tbaa !8
  %55 = load i64, ptr @N, align 8, !tbaa !8
  %56 = icmp slt i64 %54, %55
  br i1 %56, label %61, label %57

57:                                               ; preds = %53
  %58 = load i64, ptr %5, align 8, !tbaa !8
  %59 = load i64, ptr @N, align 8, !tbaa !8
  %60 = icmp slt i64 %58, %59
  br label %61

61:                                               ; preds = %57, %53
  %62 = phi i1 [ true, %53 ], [ %60, %57 ]
  br i1 %62, label %63, label %232

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

64:                                               ; preds = %76, %63
  %65 = load i64, ptr %6, align 8, !tbaa !8
  %66 = load i64, ptr @N, align 8, !tbaa !8
  %67 = icmp slt i64 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %79

69:                                               ; preds = %64
  %70 = load i64, ptr %6, align 8, !tbaa !8
  %71 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %70
  %72 = getelementptr inbounds [2 x i64], ptr %71, i64 0, i64 1
  store i64 0, ptr %72, align 8, !tbaa !8
  %73 = load i64, ptr %6, align 8, !tbaa !8
  %74 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %73
  %75 = getelementptr inbounds [2 x i64], ptr %74, i64 0, i64 0
  store i64 0, ptr %75, align 16, !tbaa !8
  br label %76

76:                                               ; preds = %69
  %77 = load i64, ptr %6, align 8, !tbaa !8
  %78 = add nsw i64 %77, 1
  store i64 %78, ptr %6, align 8, !tbaa !8
  br label %64, !llvm.loop !14

79:                                               ; preds = %68
  %80 = load i64, ptr %4, align 8, !tbaa !8
  %81 = getelementptr inbounds [3001 x i64], ptr @S, i64 0, i64 %80
  %82 = load i64, ptr %81, align 8, !tbaa !8
  %83 = load i64, ptr %5, align 8, !tbaa !8
  %84 = getelementptr inbounds [3001 x i64], ptr @T, i64 0, i64 %83
  %85 = load i64, ptr %84, align 8, !tbaa !8
  %86 = icmp sle i64 %82, %85
  br i1 %86, label %87, label %144

87:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 1, ptr %7, align 8, !tbaa !8
  br label %88

88:                                               ; preds = %114, %87
  %89 = load i64, ptr %7, align 8, !tbaa !8
  %90 = load i64, ptr @N, align 8, !tbaa !8
  %91 = icmp slt i64 %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %117

93:                                               ; preds = %88
  %94 = load i64, ptr %7, align 8, !tbaa !8
  %95 = sub nsw i64 %94, 1
  %96 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %95
  %97 = getelementptr inbounds [2 x i64], ptr %96, i64 0, i64 0
  %98 = load i64, ptr %97, align 16, !tbaa !8
  %99 = load i64, ptr %7, align 8, !tbaa !8
  %100 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %99
  %101 = getelementptr inbounds [2 x i64], ptr %100, i64 0, i64 0
  %102 = load i64, ptr %101, align 16, !tbaa !8
  %103 = add nsw i64 %102, %98
  store i64 %103, ptr %101, align 16, !tbaa !8
  %104 = load i64, ptr %7, align 8, !tbaa !8
  %105 = sub nsw i64 %104, 1
  %106 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %105
  %107 = getelementptr inbounds [2 x i64], ptr %106, i64 0, i64 1
  %108 = load i64, ptr %107, align 8, !tbaa !8
  %109 = load i64, ptr %7, align 8, !tbaa !8
  %110 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %109
  %111 = getelementptr inbounds [2 x i64], ptr %110, i64 0, i64 1
  %112 = load i64, ptr %111, align 8, !tbaa !8
  %113 = add nsw i64 %112, %108
  store i64 %113, ptr %111, align 8, !tbaa !8
  br label %114

114:                                              ; preds = %93
  %115 = load i64, ptr %7, align 8, !tbaa !8
  %116 = add nsw i64 %115, 1
  store i64 %116, ptr %7, align 8, !tbaa !8
  br label %88, !llvm.loop !15

117:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 0, ptr %8, align 8, !tbaa !8
  br label %118

118:                                              ; preds = %138, %117
  %119 = load i64, ptr %8, align 8, !tbaa !8
  %120 = load i64, ptr @N, align 8, !tbaa !8
  %121 = icmp slt i64 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %141

123:                                              ; preds = %118
  %124 = load i64, ptr %8, align 8, !tbaa !8
  %125 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %124
  %126 = getelementptr inbounds [2 x i64], ptr %125, i64 0, i64 0
  %127 = load i64, ptr %126, align 16, !tbaa !8
  %128 = load i64, ptr %8, align 8, !tbaa !8
  %129 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %128
  %130 = getelementptr inbounds [2 x i64], ptr %129, i64 0, i64 1
  %131 = load i64, ptr %130, align 8, !tbaa !8
  %132 = add nsw i64 %127, %131
  %133 = load i64, ptr %8, align 8, !tbaa !8
  %134 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %133
  %135 = getelementptr inbounds [2 x i64], ptr %134, i64 0, i64 1
  %136 = load i64, ptr %135, align 8, !tbaa !8
  %137 = add nsw i64 %136, %132
  store i64 %137, ptr %135, align 8, !tbaa !8
  br label %138

138:                                              ; preds = %123
  %139 = load i64, ptr %8, align 8, !tbaa !8
  %140 = add nsw i64 %139, 1
  store i64 %140, ptr %8, align 8, !tbaa !8
  br label %118, !llvm.loop !16

141:                                              ; preds = %122
  %142 = load i64, ptr %4, align 8, !tbaa !8
  %143 = add nsw i64 %142, 1
  store i64 %143, ptr %4, align 8, !tbaa !8
  br label %203

144:                                              ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !8
  br label %145

145:                                              ; preds = %178, %144
  %146 = load i64, ptr %9, align 8, !tbaa !8
  %147 = load i64, ptr @N, align 8, !tbaa !8
  %148 = sub nsw i64 %147, 1
  %149 = icmp slt i64 %146, %148
  br i1 %149, label %151, label %150

150:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %181

151:                                              ; preds = %145
  %152 = load i64, ptr %9, align 8, !tbaa !8
  %153 = add nsw i64 %152, 1
  %154 = load i64, ptr %9, align 8, !tbaa !8
  %155 = add nsw i64 %154, 1
  %156 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %155
  %157 = getelementptr inbounds [2 x i64], ptr %156, i64 0, i64 0
  %158 = load i64, ptr %157, align 16, !tbaa !8
  %159 = mul nsw i64 %153, %158
  %160 = load i64, ptr %9, align 8, !tbaa !8
  %161 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %160
  %162 = getelementptr inbounds [2 x i64], ptr %161, i64 0, i64 0
  %163 = load i64, ptr %162, align 16, !tbaa !8
  %164 = add nsw i64 %163, %159
  store i64 %164, ptr %162, align 16, !tbaa !8
  %165 = load i64, ptr %9, align 8, !tbaa !8
  %166 = add nsw i64 %165, 1
  %167 = load i64, ptr %9, align 8, !tbaa !8
  %168 = add nsw i64 %167, 1
  %169 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %168
  %170 = getelementptr inbounds [2 x i64], ptr %169, i64 0, i64 1
  %171 = load i64, ptr %170, align 8, !tbaa !8
  %172 = mul nsw i64 %166, %171
  %173 = load i64, ptr %9, align 8, !tbaa !8
  %174 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %173
  %175 = getelementptr inbounds [2 x i64], ptr %174, i64 0, i64 1
  %176 = load i64, ptr %175, align 8, !tbaa !8
  %177 = add nsw i64 %176, %172
  store i64 %177, ptr %175, align 8, !tbaa !8
  br label %178

178:                                              ; preds = %151
  %179 = load i64, ptr %9, align 8, !tbaa !8
  %180 = add nsw i64 %179, 1
  store i64 %180, ptr %9, align 8, !tbaa !8
  br label %145, !llvm.loop !17

181:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !8
  br label %182

182:                                              ; preds = %197, %181
  %183 = load i64, ptr %10, align 8, !tbaa !8
  %184 = load i64, ptr @N, align 8, !tbaa !8
  %185 = icmp slt i64 %183, %184
  br i1 %185, label %187, label %186

186:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %200

187:                                              ; preds = %182
  %188 = load i64, ptr %10, align 8, !tbaa !8
  %189 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %188
  %190 = getelementptr inbounds [2 x i64], ptr %189, i64 0, i64 0
  %191 = load i64, ptr %190, align 16, !tbaa !8
  %192 = load i64, ptr %10, align 8, !tbaa !8
  %193 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %192
  %194 = getelementptr inbounds [2 x i64], ptr %193, i64 0, i64 0
  %195 = load i64, ptr %194, align 16, !tbaa !8
  %196 = add nsw i64 %195, %191
  store i64 %196, ptr %194, align 16, !tbaa !8
  br label %197

197:                                              ; preds = %187
  %198 = load i64, ptr %10, align 8, !tbaa !8
  %199 = add nsw i64 %198, 1
  store i64 %199, ptr %10, align 8, !tbaa !8
  br label %182, !llvm.loop !18

200:                                              ; preds = %186
  %201 = load i64, ptr %5, align 8, !tbaa !8
  %202 = add nsw i64 %201, 1
  store i64 %202, ptr %5, align 8, !tbaa !8
  br label %203

203:                                              ; preds = %200, %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !8
  br label %204

204:                                              ; preds = %228, %203
  %205 = load i64, ptr %11, align 8, !tbaa !8
  %206 = load i64, ptr @N, align 8, !tbaa !8
  %207 = icmp slt i64 %205, %206
  br i1 %207, label %209, label %208

208:                                              ; preds = %204
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %231

209:                                              ; preds = %204
  %210 = load i64, ptr %11, align 8, !tbaa !8
  %211 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %210
  %212 = getelementptr inbounds [2 x i64], ptr %211, i64 0, i64 0
  %213 = load i64, ptr %212, align 16, !tbaa !8
  %214 = load i64, ptr @MOD, align 8, !tbaa !8
  %215 = srem i64 %213, %214
  %216 = load i64, ptr %11, align 8, !tbaa !8
  %217 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %216
  %218 = getelementptr inbounds [2 x i64], ptr %217, i64 0, i64 0
  store i64 %215, ptr %218, align 16, !tbaa !8
  %219 = load i64, ptr %11, align 8, !tbaa !8
  %220 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %219
  %221 = getelementptr inbounds [2 x i64], ptr %220, i64 0, i64 1
  %222 = load i64, ptr %221, align 8, !tbaa !8
  %223 = load i64, ptr @MOD, align 8, !tbaa !8
  %224 = srem i64 %222, %223
  %225 = load i64, ptr %11, align 8, !tbaa !8
  %226 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %225
  %227 = getelementptr inbounds [2 x i64], ptr %226, i64 0, i64 1
  store i64 %224, ptr %227, align 8, !tbaa !8
  br label %228

228:                                              ; preds = %209
  %229 = load i64, ptr %11, align 8, !tbaa !8
  %230 = add nsw i64 %229, 1
  store i64 %230, ptr %11, align 8, !tbaa !8
  br label %204, !llvm.loop !19

231:                                              ; preds = %208
  br label %53, !llvm.loop !20

232:                                              ; preds = %61
  %233 = load i64, ptr @dp, align 16, !tbaa !8
  %234 = load i64, ptr getelementptr inbounds ([2 x i64], ptr @dp, i64 0, i64 1), align 8, !tbaa !8
  %235 = add nsw i64 %233, %234
  %236 = load i64, ptr @MOD, align 8, !tbaa !8
  %237 = srem i64 %235, %236
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %237)
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %238, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %240 = load i32, ptr %1, align 4
  ret i32 %240
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #1 align 2

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPxEvT_S1_(ptr noundef, ptr noundef) #5

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

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

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 = { 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 #2 = { "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 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


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

@MOD = external dso_local local_unnamed_addr global i64, align 8
@N = external dso_local global i64, align 8
@S = external dso_local global [3001 x i64], align 16
@T = external dso_local global [3001 x i64], align 16
@dp = external dso_local local_unnamed_addr global [3000 x [2 x i64]], align 16
@cdp = external dso_local local_unnamed_addr global [3000 x [2 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 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %2 = getelementptr i8, ptr %1, i64 -24
  %3 = load i64, ptr %2, align 8
  %4 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %3
  %5 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %4, ptr noundef null)
  %6 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %7 = 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)
  %8 = load i64, ptr @N, align 8, !tbaa !8
  %9 = icmp sgt i64 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

.preheader61:                                     ; preds = %.lr.ph
  %10 = icmp sgt i64 %14, 0
  br i1 %10, label %.lr.ph64, label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.05562 = phi i64 [ %13, %.lr.ph ], [ 0, %0 ]
  %11 = getelementptr inbounds [3001 x i64], ptr @S, i64 0, i64 %.05562
  %12 = 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) %11)
  %13 = add nuw nsw i64 %.05562, 1
  %14 = load i64, ptr @N, align 8, !tbaa !8
  %15 = icmp slt i64 %13, %14
  br i1 %15, label %.lr.ph, label %.preheader61, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph64, %0, %.preheader61
  %.lcssa = phi i64 [ %14, %.preheader61 ], [ %8, %0 ], [ %32, %.lr.ph64 ]
  %16 = getelementptr inbounds i64, ptr @S, i64 %.lcssa
  tail call void @_ZSt4sortIPxEvT_S1_(ptr noundef nonnull @S, ptr noundef nonnull %16)
  %17 = load i64, ptr @N, align 8, !tbaa !8
  %18 = getelementptr inbounds i64, ptr @T, i64 %17
  tail call void @_ZSt4sortIPxEvT_S1_(ptr noundef nonnull @T, ptr noundef nonnull %18)
  %19 = load i64, ptr @N, align 8
  %20 = getelementptr inbounds [3001 x i64], ptr @T, i64 0, i64 %19
  store i64 2000000000, ptr %20, align 8, !tbaa !8
  %21 = getelementptr inbounds [3001 x i64], ptr @S, i64 0, i64 %19
  store i64 2000000000, ptr %21, align 8, !tbaa !8
  store i64 1, ptr @dp, align 16, !tbaa !8
  %22 = icmp sgt i64 %19, 0
  %.pre91 = load i64, ptr @MOD, align 8
  br i1 %22, label %.preheader60.lr.ph, label %._crit_edge83

.preheader60.lr.ph:                               ; preds = %._crit_edge
  %.not84 = icmp eq i64 %19, 1
  %23 = shl nuw i64 %19, 4
  %24 = add nsw i64 %19, -2
  %25 = add nsw i64 %19, -1
  %xtraiter = and i64 %25, 1
  %26 = icmp eq i64 %19, 2
  %unroll_iter = and i64 %25, -2
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %xtraiter98 = and i64 %19, 1
  %27 = icmp eq i64 %25, 0
  %unroll_iter100 = and i64 %19, 9223372036854775806
  %lcmp.mod99.not = icmp eq i64 %xtraiter98, 0
  %xtraiter102 = and i64 %19, 1
  %28 = icmp eq i64 %25, 0
  %unroll_iter104 = and i64 %19, 9223372036854775806
  %lcmp.mod103.not = icmp eq i64 %xtraiter102, 0
  br label %._crit_edge67

.lr.ph64:                                         ; preds = %.preheader61, %.lr.ph64
  %.05463 = phi i64 [ %31, %.lr.ph64 ], [ 0, %.preheader61 ]
  %29 = getelementptr inbounds [3001 x i64], ptr @T, i64 0, i64 %.05463
  %30 = 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) %29)
  %31 = add nuw nsw i64 %.05463, 1
  %32 = load i64, ptr @N, align 8, !tbaa !8
  %33 = icmp slt i64 %31, %32
  br i1 %33, label %.lr.ph64, label %._crit_edge, !llvm.loop !13

.loopexit:                                        ; preds = %.lr.ph80
  %34 = icmp slt i64 %.153, %19
  %35 = icmp slt i64 %.1, %19
  %36 = select i1 %34, i1 true, i1 %35
  br i1 %36, label %._crit_edge67, label %._crit_edge83.loopexit, !llvm.loop !14

._crit_edge67:                                    ; preds = %.preheader60.lr.ph, %.loopexit
  %.05182 = phi i64 [ 0, %.preheader60.lr.ph ], [ %.1, %.loopexit ]
  %.05281 = phi i64 [ 0, %.preheader60.lr.ph ], [ %.153, %.loopexit ]
  tail call void @llvm.memset.p0.i64(ptr nonnull align 16 @cdp, i8 0, i64 %23, i1 false), !tbaa !8
  %37 = getelementptr inbounds [3001 x i64], ptr @S, i64 0, i64 %.05281
  %38 = load i64, ptr %37, align 8, !tbaa !8
  %39 = getelementptr inbounds [3001 x i64], ptr @T, i64 0, i64 %.05182
  %40 = load i64, ptr %39, align 8, !tbaa !8
  %.not = icmp sgt i64 %38, %40
  br i1 %.not, label %.preheader57, label %.preheader59

.preheader59:                                     ; preds = %._crit_edge67
  br i1 %.not84, label %.lr.ph71.preheader, label %.lr.ph69.preheader

.lr.ph69.preheader:                               ; preds = %.preheader59
  br i1 %26, label %.lr.ph71.preheader.loopexit.unr-lcssa, label %.lr.ph69

.lr.ph71.preheader.loopexit.unr-lcssa:            ; preds = %.lr.ph69, %.lr.ph69.preheader
  %.04968.unr = phi i64 [ 1, %.lr.ph69.preheader ], [ %59, %.lr.ph69 ]
  br i1 %lcmp.mod.not, label %.lr.ph71.preheader, label %.lr.ph69.epil

.lr.ph69.epil:                                    ; preds = %.lr.ph71.preheader.loopexit.unr-lcssa
  %41 = add nsw i64 %.04968.unr, -1
  %42 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %41
  %43 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %.04968.unr
  %44 = load <2 x i64>, ptr %42, align 16, !tbaa !8
  %45 = load <2 x i64>, ptr %43, align 16, !tbaa !8
  %46 = add nsw <2 x i64> %45, %44
  store <2 x i64> %46, ptr %43, align 16, !tbaa !8
  br label %.lr.ph71.preheader

.lr.ph71.preheader:                               ; preds = %.lr.ph69.epil, %.lr.ph71.preheader.loopexit.unr-lcssa, %.preheader59
  br i1 %27, label %._crit_edge72.unr-lcssa, label %.lr.ph71

.preheader57:                                     ; preds = %._crit_edge67
  br i1 %.not84, label %.lr.ph76.preheader, label %.lr.ph74

.lr.ph76.preheader:                               ; preds = %.lr.ph74, %.preheader57
  br i1 %28, label %._crit_edge77.unr-lcssa, label %.lr.ph76

.lr.ph69:                                         ; preds = %.lr.ph69.preheader, %.lr.ph69
  %.04968 = phi i64 [ %59, %.lr.ph69 ], [ 1, %.lr.ph69.preheader ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph69 ], [ 0, %.lr.ph69.preheader ]
  %47 = add nsw i64 %.04968, -1
  %48 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %47
  %49 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %.04968
  %50 = load <2 x i64>, ptr %48, align 16, !tbaa !8
  %51 = load <2 x i64>, ptr %49, align 16, !tbaa !8
  %52 = add nsw <2 x i64> %51, %50
  store <2 x i64> %52, ptr %49, align 16, !tbaa !8
  %53 = add nuw nsw i64 %.04968, 1
  %54 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %.04968
  %55 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %53
  %56 = load <2 x i64>, ptr %54, align 16, !tbaa !8
  %57 = load <2 x i64>, ptr %55, align 16, !tbaa !8
  %58 = add nsw <2 x i64> %57, %56
  store <2 x i64> %58, ptr %55, align 16, !tbaa !8
  %59 = add nuw nsw i64 %.04968, 2
  %niter.next.1 = add nuw i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.lr.ph71.preheader.loopexit.unr-lcssa, label %.lr.ph69, !llvm.loop !15

._crit_edge72.unr-lcssa:                          ; preds = %.lr.ph71, %.lr.ph71.preheader
  %.04870.unr = phi i64 [ 0, %.lr.ph71.preheader ], [ %86, %.lr.ph71 ]
  br i1 %lcmp.mod99.not, label %._crit_edge72, label %.lr.ph71.epil

.lr.ph71.epil:                                    ; preds = %._crit_edge72.unr-lcssa
  %60 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %.04870.unr
  %61 = load i64, ptr %60, align 16, !tbaa !8
  %62 = getelementptr inbounds i8, ptr %60, i64 8
  %63 = load i64, ptr %62, align 8, !tbaa !8
  %64 = add nsw i64 %63, %61
  %65 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %.04870.unr, i64 1
  %66 = load i64, ptr %65, align 8, !tbaa !8
  %67 = add nsw i64 %64, %66
  store i64 %67, ptr %65, align 8, !tbaa !8
  br label %._crit_edge72

._crit_edge72:                                    ; preds = %._crit_edge72.unr-lcssa, %.lr.ph71.epil
  %68 = add nsw i64 %.05281, 1
  br label %.lr.ph80.preheader

.lr.ph71:                                         ; preds = %.lr.ph71.preheader, %.lr.ph71
  %.04870 = phi i64 [ %86, %.lr.ph71 ], [ 0, %.lr.ph71.preheader ]
  %niter101 = phi i64 [ %niter101.next.1, %.lr.ph71 ], [ 0, %.lr.ph71.preheader ]
  %69 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %.04870
  %70 = load i64, ptr %69, align 16, !tbaa !8
  %71 = getelementptr inbounds i8, ptr %69, i64 8
  %72 = load i64, ptr %71, align 8, !tbaa !8
  %73 = add nsw i64 %72, %70
  %74 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %.04870, i64 1
  %75 = load i64, ptr %74, align 8, !tbaa !8
  %76 = add nsw i64 %73, %75
  store i64 %76, ptr %74, align 8, !tbaa !8
  %77 = or disjoint i64 %.04870, 1
  %78 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %77
  %79 = load i64, ptr %78, align 16, !tbaa !8
  %80 = getelementptr inbounds i8, ptr %78, i64 8
  %81 = load i64, ptr %80, align 8, !tbaa !8
  %82 = add nsw i64 %81, %79
  %83 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %77, i64 1
  %84 = load i64, ptr %83, align 8, !tbaa !8
  %85 = add nsw i64 %82, %84
  store i64 %85, ptr %83, align 8, !tbaa !8
  %86 = add nuw nsw i64 %.04870, 2
  %niter101.next.1 = add i64 %niter101, 2
  %niter101.ncmp.1 = icmp eq i64 %niter101.next.1, %unroll_iter100
  br i1 %niter101.ncmp.1, label %._crit_edge72.unr-lcssa, label %.lr.ph71, !llvm.loop !16

.lr.ph74:                                         ; preds = %.preheader57, %.lr.ph74
  %.04773 = phi i64 [ %87, %.lr.ph74 ], [ 0, %.preheader57 ]
  %87 = add nuw nsw i64 %.04773, 1
  %88 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %87
  %89 = load i64, ptr %88, align 16, !tbaa !8
  %90 = mul nsw i64 %89, %87
  %91 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %.04773
  %92 = load i64, ptr %91, align 16, !tbaa !8
  %93 = add nsw i64 %92, %90
  store i64 %93, ptr %91, align 16, !tbaa !8
  %94 = getelementptr inbounds i8, ptr %88, i64 8
  %95 = load i64, ptr %94, align 8, !tbaa !8
  %96 = mul nsw i64 %95, %87
  %97 = getelementptr inbounds i8, ptr %91, i64 8
  %98 = load i64, ptr %97, align 8, !tbaa !8
  %99 = add nsw i64 %98, %96
  store i64 %99, ptr %97, align 8, !tbaa !8
  %exitcond88.not = icmp eq i64 %.04773, %24
  br i1 %exitcond88.not, label %.lr.ph76.preheader, label %.lr.ph74, !llvm.loop !17

._crit_edge77.unr-lcssa:                          ; preds = %.lr.ph76, %.lr.ph76.preheader
  %.04675.unr = phi i64 [ 0, %.lr.ph76.preheader ], [ %117, %.lr.ph76 ]
  br i1 %lcmp.mod103.not, label %._crit_edge77, label %.lr.ph76.epil

.lr.ph76.epil:                                    ; preds = %._crit_edge77.unr-lcssa
  %100 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %.04675.unr
  %101 = load i64, ptr %100, align 16, !tbaa !8
  %102 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %.04675.unr
  %103 = load i64, ptr %102, align 16, !tbaa !8
  %104 = add nsw i64 %103, %101
  store i64 %104, ptr %102, align 16, !tbaa !8
  br label %._crit_edge77

._crit_edge77:                                    ; preds = %._crit_edge77.unr-lcssa, %.lr.ph76.epil
  %105 = add nsw i64 %.05182, 1
  br label %.lr.ph80.preheader

.lr.ph76:                                         ; preds = %.lr.ph76.preheader, %.lr.ph76
  %.04675 = phi i64 [ %117, %.lr.ph76 ], [ 0, %.lr.ph76.preheader ]
  %niter105 = phi i64 [ %niter105.next.1, %.lr.ph76 ], [ 0, %.lr.ph76.preheader ]
  %106 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %.04675
  %107 = load i64, ptr %106, align 16, !tbaa !8
  %108 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %.04675
  %109 = load i64, ptr %108, align 16, !tbaa !8
  %110 = add nsw i64 %109, %107
  store i64 %110, ptr %108, align 16, !tbaa !8
  %111 = or disjoint i64 %.04675, 1
  %112 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %111
  %113 = load i64, ptr %112, align 16, !tbaa !8
  %114 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %111
  %115 = load i64, ptr %114, align 16, !tbaa !8
  %116 = add nsw i64 %115, %113
  store i64 %116, ptr %114, align 16, !tbaa !8
  %117 = add nuw nsw i64 %.04675, 2
  %niter105.next.1 = add i64 %niter105, 2
  %niter105.ncmp.1 = icmp eq i64 %niter105.next.1, %unroll_iter104
  br i1 %niter105.ncmp.1, label %._crit_edge77.unr-lcssa, label %.lr.ph76, !llvm.loop !18

.lr.ph80.preheader:                               ; preds = %._crit_edge72, %._crit_edge77
  %.153 = phi i64 [ %68, %._crit_edge72 ], [ %.05281, %._crit_edge77 ]
  %.1 = phi i64 [ %.05182, %._crit_edge72 ], [ %105, %._crit_edge77 ]
  br label %.lr.ph80

.lr.ph80:                                         ; preds = %.lr.ph80.preheader, %.lr.ph80
  %.078 = phi i64 [ %126, %.lr.ph80 ], [ 0, %.lr.ph80.preheader ]
  %118 = getelementptr inbounds [3000 x [2 x i64]], ptr @cdp, i64 0, i64 %.078
  %119 = load i64, ptr %118, align 16, !tbaa !8
  %120 = srem i64 %119, %.pre91
  %121 = getelementptr inbounds [3000 x [2 x i64]], ptr @dp, i64 0, i64 %.078
  store i64 %120, ptr %121, align 16, !tbaa !8
  %122 = getelementptr inbounds i8, ptr %118, i64 8
  %123 = load i64, ptr %122, align 8, !tbaa !8
  %124 = srem i64 %123, %.pre91
  %125 = getelementptr inbounds i8, ptr %121, i64 8
  store i64 %124, ptr %125, align 8, !tbaa !8
  %126 = add nuw nsw i64 %.078, 1
  %exitcond90.not = icmp eq i64 %126, %19
  br i1 %exitcond90.not, label %.loopexit, label %.lr.ph80, !llvm.loop !19

._crit_edge83.loopexit:                           ; preds = %.loopexit
  %.pre = load i64, ptr @dp, align 16, !tbaa !8
  br label %._crit_edge83

._crit_edge83:                                    ; preds = %._crit_edge83.loopexit, %._crit_edge
  %127 = phi i64 [ %.pre, %._crit_edge83.loopexit ], [ 1, %._crit_edge ]
  %128 = load i64, ptr getelementptr inbounds (i8, ptr @dp, i64 8), align 8, !tbaa !8
  %129 = add nsw i64 %128, %127
  %130 = srem i64 %129, %.pre91
  %131 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %130)
  %132 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %131, i8 noundef signext 10)
  ret i32 0
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

; 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 #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPxEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { 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 #2 = { "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 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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


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