; LLVM IR from eyangch/competitive-programming :: Codeforces/1551 (e)

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

%"class.std::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" }

@T = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@K = external dso_local global i64, align 8
@a = external dso_local global [2000 x i64], align 16
@v = external dso_local global [2000 x i64], align 16
@sfx = external dso_local global [2001 x [2001 x i64]], align 16
@dp = external dso_local global [2001 x [2001 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 i32, align 4
  %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
  %12 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %13 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %14 = getelementptr i8, ptr %13, i64 -24
  %15 = load i64, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %15
  %17 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %16, ptr noundef null)
  %18 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  br label %20

20:                                               ; preds = %202, %0
  %21 = load i64, ptr @T, align 8, !tbaa !8
  %22 = add nsw i64 %21, -1
  store i64 %22, ptr @T, align 8, !tbaa !8
  %23 = icmp ne i64 %21, 0
  br i1 %23, label %24, label %206

24:                                               ; preds = %20
  %25 = 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)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) @K)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %27

27:                                               ; preds = %47, %24
  %28 = load i64, ptr %2, align 8, !tbaa !8
  %29 = load i64, ptr @N, align 8, !tbaa !8
  %30 = icmp slt i64 %28, %29
  br i1 %30, label %32, label %31

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

32:                                               ; preds = %27
  %33 = load i64, ptr %2, align 8, !tbaa !8
  %34 = getelementptr inbounds [2000 x i64], ptr @a, i64 0, i64 %33
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %34)
  %36 = load i64, ptr %2, align 8, !tbaa !8
  %37 = getelementptr inbounds [2000 x i64], ptr @a, i64 0, i64 %36
  %38 = load i64, ptr %37, align 8, !tbaa !8
  %39 = add nsw i64 %38, -1
  store i64 %39, ptr %37, align 8, !tbaa !8
  %40 = load i64, ptr %2, align 8, !tbaa !8
  %41 = load i64, ptr %2, align 8, !tbaa !8
  %42 = getelementptr inbounds [2000 x i64], ptr @a, i64 0, i64 %41
  %43 = load i64, ptr %42, align 8, !tbaa !8
  %44 = sub nsw i64 %40, %43
  %45 = load i64, ptr %2, align 8, !tbaa !8
  %46 = getelementptr inbounds [2000 x i64], ptr @v, i64 0, i64 %45
  store i64 %44, ptr %46, align 8, !tbaa !8
  br label %47

47:                                               ; preds = %32
  %48 = load i64, ptr %2, align 8, !tbaa !8
  %49 = add nsw i64 %48, 1
  store i64 %49, ptr %2, align 8, !tbaa !8
  br label %27, !llvm.loop !11

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

51:                                               ; preds = %61, %50
  %52 = load i64, ptr %3, align 8, !tbaa !8
  %53 = load i64, ptr @N, align 8, !tbaa !8
  %54 = icmp slt i64 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %64

56:                                               ; preds = %51
  %57 = load i64, ptr @N, align 8, !tbaa !8
  %58 = getelementptr inbounds [2001 x [2001 x i64]], ptr @sfx, i64 0, i64 %57
  %59 = load i64, ptr %3, align 8, !tbaa !8
  %60 = getelementptr inbounds [2001 x i64], ptr %58, i64 0, i64 %59
  store i64 0, ptr %60, align 8, !tbaa !8
  br label %61

61:                                               ; preds = %56
  %62 = load i64, ptr %3, align 8, !tbaa !8
  %63 = add nsw i64 %62, 1
  store i64 %63, ptr %3, align 8, !tbaa !8
  br label %51, !llvm.loop !13

64:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %65 = load i64, ptr @N, align 8, !tbaa !8
  %66 = sub nsw i64 %65, 1
  store i64 %66, ptr %4, align 8, !tbaa !8
  br label %67

67:                                               ; preds = %99, %64
  %68 = load i64, ptr %4, align 8, !tbaa !8
  %69 = icmp sge i64 %68, 0
  br i1 %69, label %71, label %70

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

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

72:                                               ; preds = %95, %71
  %73 = load i64, ptr %6, align 8, !tbaa !8
  %74 = load i64, ptr @N, align 8, !tbaa !8
  %75 = icmp slt i64 %73, %74
  br i1 %75, label %77, label %76

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

77:                                               ; preds = %72
  %78 = load i64, ptr %4, align 8, !tbaa !8
  %79 = add nsw i64 %78, 1
  %80 = getelementptr inbounds [2001 x [2001 x i64]], ptr @sfx, i64 0, i64 %79
  %81 = load i64, ptr %6, align 8, !tbaa !8
  %82 = getelementptr inbounds [2001 x i64], ptr %80, i64 0, i64 %81
  %83 = load i64, ptr %82, align 8, !tbaa !8
  %84 = load i64, ptr %4, align 8, !tbaa !8
  %85 = getelementptr inbounds [2000 x i64], ptr @v, i64 0, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !8
  %87 = load i64, ptr %6, align 8, !tbaa !8
  %88 = icmp eq i64 %86, %87
  %89 = zext i1 %88 to i64
  %90 = add nsw i64 %83, %89
  %91 = load i64, ptr %4, align 8, !tbaa !8
  %92 = getelementptr inbounds [2001 x [2001 x i64]], ptr @sfx, i64 0, i64 %91
  %93 = load i64, ptr %6, align 8, !tbaa !8
  %94 = getelementptr inbounds [2001 x i64], ptr %92, i64 0, i64 %93
  store i64 %90, ptr %94, align 8, !tbaa !8
  br label %95

95:                                               ; preds = %77
  %96 = load i64, ptr %6, align 8, !tbaa !8
  %97 = add nsw i64 %96, 1
  store i64 %97, ptr %6, align 8, !tbaa !8
  br label %72, !llvm.loop !14

98:                                               ; preds = %76
  br label %99

99:                                               ; preds = %98
  %100 = load i64, ptr %4, align 8, !tbaa !8
  %101 = add nsw i64 %100, -1
  store i64 %101, ptr %4, align 8, !tbaa !8
  br label %67, !llvm.loop !15

102:                                              ; preds = %70
  %103 = load i64, ptr @sfx, align 16, !tbaa !8
  store i64 %103, ptr @dp, align 16, !tbaa !8
  %104 = load i64, ptr getelementptr inbounds ([2001 x i64], ptr getelementptr inbounds ([2001 x [2001 x i64]], ptr @sfx, i64 0, i64 1), i64 0, i64 1), align 8, !tbaa !8
  store i64 %104, ptr getelementptr inbounds ([2001 x i64], ptr @dp, i64 0, i64 1), align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 100000000000000000, ptr %7, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store i64 1, ptr %8, align 8, !tbaa !8
  br label %105

105:                                              ; preds = %161, %102
  %106 = load i64, ptr %8, align 8, !tbaa !8
  %107 = load i64, ptr @N, align 8, !tbaa !8
  %108 = icmp slt i64 %106, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %105
  store i32 16, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %164

110:                                              ; preds = %105
  %111 = load i64, ptr %8, align 8, !tbaa !8
  %112 = sub nsw i64 %111, 1
  %113 = getelementptr inbounds [2001 x [2001 x i64]], ptr @dp, i64 0, i64 %112
  %114 = getelementptr inbounds [2001 x i64], ptr %113, i64 0, i64 0
  %115 = load i64, ptr %114, align 8, !tbaa !8
  %116 = load i64, ptr %8, align 8, !tbaa !8
  %117 = getelementptr inbounds [2001 x [2001 x i64]], ptr @dp, i64 0, i64 %116
  %118 = getelementptr inbounds [2001 x i64], ptr %117, i64 0, i64 0
  store i64 %115, ptr %118, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 1, ptr %9, align 8, !tbaa !8
  br label %119

119:                                              ; preds = %157, %110
  %120 = load i64, ptr %9, align 8, !tbaa !8
  %121 = load i64, ptr @N, align 8, !tbaa !8
  %122 = icmp sle i64 %120, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %119
  store i32 19, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %160

124:                                              ; preds = %119
  %125 = load i64, ptr %8, align 8, !tbaa !8
  %126 = sub nsw i64 %125, 1
  %127 = getelementptr inbounds [2001 x [2001 x i64]], ptr @dp, i64 0, i64 %126
  %128 = load i64, ptr %9, align 8, !tbaa !8
  %129 = getelementptr inbounds [2001 x i64], ptr %127, i64 0, i64 %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %130 = load i64, ptr %8, align 8, !tbaa !8
  %131 = sub nsw i64 %130, 1
  %132 = getelementptr inbounds [2001 x [2001 x i64]], ptr @dp, i64 0, i64 %131
  %133 = load i64, ptr %9, align 8, !tbaa !8
  %134 = sub nsw i64 %133, 1
  %135 = getelementptr inbounds [2001 x i64], ptr %132, i64 0, i64 %134
  %136 = load i64, ptr %135, align 8, !tbaa !8
  %137 = load i64, ptr %8, align 8, !tbaa !8
  %138 = getelementptr inbounds [2001 x [2001 x i64]], ptr @sfx, i64 0, i64 %137
  %139 = load i64, ptr %9, align 8, !tbaa !8
  %140 = sub nsw i64 %139, 1
  %141 = getelementptr inbounds [2001 x i64], ptr %138, i64 0, i64 %140
  %142 = load i64, ptr %141, align 8, !tbaa !8
  %143 = sub nsw i64 %136, %142
  %144 = load i64, ptr %8, align 8, !tbaa !8
  %145 = add nsw i64 %144, 1
  %146 = getelementptr inbounds [2001 x [2001 x i64]], ptr @sfx, i64 0, i64 %145
  %147 = load i64, ptr %9, align 8, !tbaa !8
  %148 = getelementptr inbounds [2001 x i64], ptr %146, i64 0, i64 %147
  %149 = load i64, ptr %148, align 8, !tbaa !8
  %150 = add nsw i64 %143, %149
  store i64 %150, ptr %10, align 8, !tbaa !8
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %152 = load i64, ptr %151, align 8, !tbaa !8
  %153 = load i64, ptr %8, align 8, !tbaa !8
  %154 = getelementptr inbounds [2001 x [2001 x i64]], ptr @dp, i64 0, i64 %153
  %155 = load i64, ptr %9, align 8, !tbaa !8
  %156 = getelementptr inbounds [2001 x i64], ptr %154, i64 0, i64 %155
  store i64 %152, ptr %156, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %157

157:                                              ; preds = %124
  %158 = load i64, ptr %9, align 8, !tbaa !8
  %159 = add nsw i64 %158, 1
  store i64 %159, ptr %9, align 8, !tbaa !8
  br label %119, !llvm.loop !16

160:                                              ; preds = %123
  br label %161

161:                                              ; preds = %160
  %162 = load i64, ptr %8, align 8, !tbaa !8
  %163 = add nsw i64 %162, 1
  store i64 %163, ptr %8, align 8, !tbaa !8
  br label %105, !llvm.loop !17

164:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 0, ptr %11, align 8, !tbaa !8
  br label %165

165:                                              ; preds = %192, %164
  %166 = load i64, ptr %11, align 8, !tbaa !8
  %167 = load i64, ptr @N, align 8, !tbaa !8
  %168 = icmp slt i64 %166, %167
  br i1 %168, label %170, label %169

169:                                              ; preds = %165
  store i32 22, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %195

170:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 0, ptr %12, align 8, !tbaa !8
  br label %171

171:                                              ; preds = %188, %170
  %172 = load i64, ptr %12, align 8, !tbaa !8
  %173 = load i64, ptr @N, align 8, !tbaa !8
  %174 = icmp sle i64 %172, %173
  br i1 %174, label %176, label %175

175:                                              ; preds = %171
  store i32 25, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %191

176:                                              ; preds = %171
  %177 = load i64, ptr %11, align 8, !tbaa !8
  %178 = getelementptr inbounds [2001 x [2001 x i64]], ptr @dp, i64 0, i64 %177
  %179 = load i64, ptr %12, align 8, !tbaa !8
  %180 = getelementptr inbounds [2001 x i64], ptr %178, i64 0, i64 %179
  %181 = load i64, ptr %180, align 8, !tbaa !8
  %182 = load i64, ptr @K, align 8, !tbaa !8
  %183 = icmp sge i64 %181, %182
  br i1 %183, label %184, label %187

184:                                              ; preds = %176
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %186 = load i64, ptr %185, align 8, !tbaa !8
  store i64 %186, ptr %7, align 8, !tbaa !8
  br label %187

187:                                              ; preds = %184, %176
  br label %188

188:                                              ; preds = %187
  %189 = load i64, ptr %12, align 8, !tbaa !8
  %190 = add nsw i64 %189, 1
  store i64 %190, ptr %12, align 8, !tbaa !8
  br label %171, !llvm.loop !18

191:                                              ; preds = %175
  br label %192

192:                                              ; preds = %191
  %193 = load i64, ptr %11, align 8, !tbaa !8
  %194 = add nsw i64 %193, 1
  store i64 %194, ptr %11, align 8, !tbaa !8
  br label %165, !llvm.loop !19

195:                                              ; preds = %169
  %196 = load i64, ptr %7, align 8, !tbaa !8
  %197 = sitofp i64 %196 to double
  %198 = fcmp oeq double %197, 1.000000e+17
  br i1 %198, label %199, label %200

199:                                              ; preds = %195
  br label %202

200:                                              ; preds = %195
  %201 = load i64, ptr %7, align 8, !tbaa !8
  br label %202

202:                                              ; preds = %200, %199
  %203 = phi i64 [ -1, %199 ], [ %201, %200 ]
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %203)
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %204, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %20, !llvm.loop !20

206:                                              ; preds = %20
  %207 = load i32, ptr %1, align 4
  ret i32 %207
}

; 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #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) #6

; 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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" }

@T = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@K = external dso_local global i64, align 8
@a = external dso_local global [2000 x i64], align 16
@v = external dso_local local_unnamed_addr global [2000 x i64], align 16
@sfx = external dso_local local_unnamed_addr global [2001 x [2001 x i64]], align 16
@dp = external dso_local global [2001 x [2001 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 i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %5 = getelementptr i8, ptr %4, i64 -24
  %6 = load i64, ptr %5, align 8
  %7 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %6
  %8 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %7, ptr noundef null)
  %9 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %10 = 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) @T)
  %11 = load i64, ptr @T, align 8, !tbaa !8
  %12 = add nsw i64 %11, -1
  store i64 %12, ptr @T, align 8, !tbaa !8
  %.not78 = icmp eq i64 %11, 0
  br i1 %.not78, label %._crit_edge, label %.lr.ph79

.lr.ph79:                                         ; preds = %0, %._crit_edge77
  %13 = 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)
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) @K)
  %15 = load i64, ptr @N, align 8, !tbaa !8
  %16 = icmp sgt i64 %15, 0
  br i1 %16, label %.lr.ph, label %.preheader51.thread

.preheader53:                                     ; preds = %.lr.ph
  %17 = icmp sgt i64 %25, 0
  br i1 %17, label %.preheader.us.preheader, label %.preheader51.thread

.lr.ph:                                           ; preds = %.lr.ph79, %.lr.ph
  %.04554 = phi i64 [ %24, %.lr.ph ], [ 0, %.lr.ph79 ]
  %18 = getelementptr inbounds [2000 x i64], ptr @a, i64 0, i64 %.04554
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %20 = load i64, ptr %18, align 8, !tbaa !8
  %21 = add nsw i64 %20, -1
  store i64 %21, ptr %18, align 8, !tbaa !8
  %22 = sub nsw i64 %.04554, %21
  %23 = getelementptr inbounds [2000 x i64], ptr @v, i64 0, i64 %.04554
  store i64 %22, ptr %23, align 8, !tbaa !8
  %24 = add nuw nsw i64 %.04554, 1
  %25 = load i64, ptr @N, align 8, !tbaa !8
  %26 = icmp slt i64 %24, %25
  br i1 %26, label %.lr.ph, label %.preheader53, !llvm.loop !11

.preheader51.thread:                              ; preds = %.preheader53, %.lr.ph79
  %27 = load i64, ptr @sfx, align 16, !tbaa !8
  store i64 %27, ptr @dp, align 16, !tbaa !8
  %28 = load i64, ptr getelementptr inbounds (i8, ptr @sfx, i64 16016), align 16, !tbaa !8
  store i64 %28, ptr getelementptr inbounds (i8, ptr @dp, i64 8), align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  store i64 100000000000000000, ptr %1, align 8, !tbaa !8
  br label %._crit_edge77

.preheader.us.preheader:                          ; preds = %.preheader53
  %29 = mul nuw nsw i64 %25, 16008
  %scevgep = getelementptr i8, ptr @sfx, i64 %29
  %30 = shl nuw i64 %25, 3
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep, i8 0, i64 %30, i1 false), !tbaa !8
  %min.iters.check = icmp ult i64 %25, 4
  %n.vec = and i64 %25, 9223372036854775804
  %cmp.n = icmp eq i64 %25, %n.vec
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %..loopexit_crit_edge.us
  %.043.in60.us = phi i64 [ %.04361.us, %..loopexit_crit_edge.us ], [ %25, %.preheader.us.preheader ]
  %.04361.us = add nsw i64 %.043.in60.us, -1
  %31 = getelementptr inbounds [2000 x i64], ptr @v, i64 0, i64 %.04361.us
  %32 = load i64, ptr %31, align 8, !tbaa !8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.preheader.us
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %32, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i64> [ <i64 0, i64 1>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <2 x i64> %vec.ind, <i64 2, i64 2>
  %33 = getelementptr inbounds [2001 x [2001 x i64]], ptr @sfx, i64 0, i64 %.043.in60.us, i64 %index
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %wide.load = load <2 x i64>, ptr %33, align 8, !tbaa !8
  %wide.load96 = load <2 x i64>, ptr %34, align 8, !tbaa !8
  %35 = icmp eq <2 x i64> %broadcast.splat, %vec.ind
  %36 = icmp eq <2 x i64> %broadcast.splat, %step.add
  %37 = zext <2 x i1> %35 to <2 x i64>
  %38 = zext <2 x i1> %36 to <2 x i64>
  %39 = add nsw <2 x i64> %wide.load, %37
  %40 = add nsw <2 x i64> %wide.load96, %38
  %41 = getelementptr inbounds [2001 x [2001 x i64]], ptr @sfx, i64 0, i64 %.04361.us, i64 %index
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  store <2 x i64> %39, ptr %41, align 8, !tbaa !8
  store <2 x i64> %40, ptr %42, align 8, !tbaa !8
  %index.next = add nuw i64 %index, 4
  %vec.ind.next = add <2 x i64> %vec.ind, <i64 4, i64 4>
  %43 = icmp eq i64 %index.next, %n.vec
  br i1 %43, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %..loopexit_crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader.us
  %.04257.us.ph = phi i64 [ 0, %.preheader.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.04257.us = phi i64 [ %50, %scalar.ph ], [ %.04257.us.ph, %scalar.ph.preheader ]
  %44 = getelementptr inbounds [2001 x [2001 x i64]], ptr @sfx, i64 0, i64 %.043.in60.us, i64 %.04257.us
  %45 = load i64, ptr %44, align 8, !tbaa !8
  %46 = icmp eq i64 %32, %.04257.us
  %47 = zext i1 %46 to i64
  %48 = add nsw i64 %45, %47
  %49 = getelementptr inbounds [2001 x [2001 x i64]], ptr @sfx, i64 0, i64 %.04361.us, i64 %.04257.us
  store i64 %48, ptr %49, align 8, !tbaa !8
  %50 = add nuw nsw i64 %.04257.us, 1
  %exitcond.not = icmp eq i64 %50, %25
  br i1 %exitcond.not, label %..loopexit_crit_edge.us, label %scalar.ph, !llvm.loop !16

..loopexit_crit_edge.us:                          ; preds = %scalar.ph, %middle.block
  %51 = icmp sgt i64 %.043.in60.us, 1
  br i1 %51, label %.preheader.us, label %._crit_edge.split.us, !llvm.loop !17

._crit_edge.split.us:                             ; preds = %..loopexit_crit_edge.us
  %52 = load i64, ptr @sfx, align 16, !tbaa !8
  store i64 %52, ptr @dp, align 16, !tbaa !8
  %53 = load i64, ptr getelementptr inbounds (i8, ptr @sfx, i64 16016), align 16, !tbaa !8
  store i64 %53, ptr getelementptr inbounds (i8, ptr @dp, i64 8), align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  store i64 100000000000000000, ptr %1, align 8, !tbaa !8
  %.not91 = icmp eq i64 %25, 1
  br i1 %.not91, label %.preheader51, label %.lr.ph69

.preheader51:                                     ; preds = %._crit_edge66, %._crit_edge.split.us
  %54 = phi i64 [ %25, %._crit_edge.split.us ], [ %61, %._crit_edge66 ]
  %55 = icmp sgt i64 %54, 0
  br i1 %55, label %.lr.ph76.split, label %._crit_edge77

.lr.ph69:                                         ; preds = %._crit_edge.split.us, %._crit_edge66
  %56 = phi i64 [ %61, %._crit_edge66 ], [ %25, %._crit_edge.split.us ]
  %.04167 = phi i64 [ %.pre86, %._crit_edge66 ], [ 1, %._crit_edge.split.us ]
  %57 = add nsw i64 %.04167, -1
  %58 = getelementptr inbounds [2001 x [2001 x i64]], ptr @dp, i64 0, i64 %57
  %59 = load i64, ptr %58, align 8, !tbaa !8
  %60 = getelementptr inbounds [2001 x [2001 x i64]], ptr @dp, i64 0, i64 %.04167
  store i64 %59, ptr %60, align 8, !tbaa !8
  %.not5062 = icmp slt i64 %56, 1
  %.pre86 = add nuw nsw i64 %.04167, 1
  br i1 %.not5062, label %._crit_edge66, label %.lr.ph65

._crit_edge66:                                    ; preds = %.lr.ph65, %.lr.ph69
  %61 = phi i64 [ %56, %.lr.ph69 ], [ %77, %.lr.ph65 ]
  %62 = icmp slt i64 %.pre86, %61
  br i1 %62, label %.lr.ph69, label %.preheader51, !llvm.loop !18

.lr.ph65:                                         ; preds = %.lr.ph69, %.lr.ph65
  %.04063 = phi i64 [ %76, %.lr.ph65 ], [ 1, %.lr.ph69 ]
  %63 = getelementptr inbounds [2001 x [2001 x i64]], ptr @dp, i64 0, i64 %57, i64 %.04063
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %64 = add nsw i64 %.04063, -1
  %65 = getelementptr inbounds [2001 x [2001 x i64]], ptr @dp, i64 0, i64 %57, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !8
  %67 = getelementptr inbounds [2001 x [2001 x i64]], ptr @sfx, i64 0, i64 %.04167, i64 %64
  %68 = load i64, ptr %67, align 8, !tbaa !8
  %69 = sub i64 %66, %68
  %70 = getelementptr inbounds [2001 x [2001 x i64]], ptr @sfx, i64 0, i64 %.pre86, i64 %.04063
  %71 = load i64, ptr %70, align 8, !tbaa !8
  %72 = add nsw i64 %69, %71
  store i64 %72, ptr %2, align 8, !tbaa !8
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %74 = load i64, ptr %73, align 8, !tbaa !8
  %75 = getelementptr inbounds [2001 x [2001 x i64]], ptr @dp, i64 0, i64 %.04167, i64 %.04063
  store i64 %74, ptr %75, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  %76 = add nuw nsw i64 %.04063, 1
  %77 = load i64, ptr @N, align 8, !tbaa !8
  %.not50.not = icmp slt i64 %.04063, %77
  br i1 %.not50.not, label %.lr.ph65, label %._crit_edge66, !llvm.loop !19

._crit_edge77:                                    ; preds = %._crit_edge74, %.preheader51.thread, %.preheader51
  %78 = load i64, ptr %1, align 8
  %79 = sitofp i64 %78 to double
  %80 = fcmp oeq double %79, 1.000000e+17
  %81 = select i1 %80, i64 -1, i64 %78
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %81)
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %82, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  %84 = load i64, ptr @T, align 8, !tbaa !8
  %85 = add nsw i64 %84, -1
  store i64 %85, ptr @T, align 8, !tbaa !8
  %.not = icmp eq i64 %84, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph79, !llvm.loop !20

.lr.ph76.split:                                   ; preds = %.preheader51, %._crit_edge74
  %86 = phi i64 [ %87, %._crit_edge74 ], [ %54, %.preheader51 ]
  %.075 = phi i64 [ %88, %._crit_edge74 ], [ 0, %.preheader51 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  store i64 0, ptr %3, align 8, !tbaa !8
  %.not4870 = icmp slt i64 %86, 0
  br i1 %.not4870, label %._crit_edge74, label %.lr.ph73.preheader

.lr.ph73.preheader:                               ; preds = %.lr.ph76.split
  %.pre83 = load i64, ptr @K, align 8, !tbaa !8
  br label %.lr.ph73

._crit_edge74:                                    ; preds = %98, %.lr.ph76.split
  %87 = phi i64 [ %86, %.lr.ph76.split ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  %88 = add nuw nsw i64 %.075, 1
  %89 = icmp slt i64 %88, %87
  br i1 %89, label %.lr.ph76.split, label %._crit_edge77, !llvm.loop !21

.lr.ph73:                                         ; preds = %.lr.ph73.preheader, %98
  %90 = phi i64 [ %99, %98 ], [ %86, %.lr.ph73.preheader ]
  %91 = phi i64 [ %100, %98 ], [ %86, %.lr.ph73.preheader ]
  %92 = phi i64 [ %102, %98 ], [ %.pre83, %.lr.ph73.preheader ]
  %storemerge71 = phi i64 [ %103, %98 ], [ 0, %.lr.ph73.preheader ]
  %93 = getelementptr inbounds [2001 x [2001 x i64]], ptr @dp, i64 0, i64 %.075, i64 %storemerge71
  %94 = load i64, ptr %93, align 8, !tbaa !8
  %.not49 = icmp slt i64 %94, %92
  br i1 %.not49, label %98, label %95

95:                                               ; preds = %.lr.ph73
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %97 = load i64, ptr %96, align 8, !tbaa !8
  store i64 %97, ptr %1, align 8, !tbaa !8
  %.pre = load i64, ptr @K, align 8, !tbaa !8
  %.pre84 = load i64, ptr %3, align 8, !tbaa !8
  %.pre85 = load i64, ptr @N, align 8, !tbaa !8
  br label %98

98:                                               ; preds = %.lr.ph73, %95
  %99 = phi i64 [ %90, %.lr.ph73 ], [ %.pre85, %95 ]
  %100 = phi i64 [ %91, %.lr.ph73 ], [ %.pre85, %95 ]
  %101 = phi i64 [ %storemerge71, %.lr.ph73 ], [ %.pre84, %95 ]
  %102 = phi i64 [ %92, %.lr.ph73 ], [ %.pre, %95 ]
  %103 = add nsw i64 %101, 1
  store i64 %103, ptr %3, align 8, !tbaa !8
  %.not48.not = icmp slt i64 %101, %100
  br i1 %.not48.not, label %.lr.ph73, label %._crit_edge74, !llvm.loop !23

._crit_edge:                                      ; preds = %._crit_edge77, %0
  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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #4

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #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) local_unnamed_addr #6

; 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) #7

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !12, !15, !14}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12, !22}
!22 = !{!"llvm.loop.unswitch.partial.disable"}
!23 = distinct !{!23, !12}


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