; LLVM IR from kazunetakahashi/atcoder :: 2019/0629_ABC132/past (F3)

; 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_ostream" = type { ptr, %"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.mint = type { i64 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@N = external dso_local global i64, align 8
@K = external dso_local global i64, align 8
@X = external dso_local global i64, align 8
@DP = external dso_local global [110 x [100010 x %class.mint]], align 16
@DP_sum = external dso_local global [110 x [100010 x %class.mint]], align 16
@DP2 = external dso_local global [110 x [100010 x %class.mint]], align 16
@DP2_sum = external dso_local global [110 x [100010 x %class.mint]], align 16
@cnt = external dso_local global [100010 x %class.mint], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK4mint(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #3 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #5 {
  %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 i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %class.mint, align 8
  %10 = alloca %class.mint, align 8
  %11 = alloca i32, align 4
  %12 = alloca %class.mint, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca %class.mint, align 8
  %17 = alloca i32, align 4
  %18 = alloca %class.mint, align 8
  %19 = alloca %class.mint, align 8
  %20 = alloca i32, align 4
  %21 = alloca %class.mint, align 8
  %22 = alloca %class.mint, align 8
  %23 = alloca i32, align 4
  %24 = alloca %class.mint, align 8
  %25 = alloca %class.mint, align 8
  store i32 0, ptr %1, align 4
  %26 = 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)
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(8) @K)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 -1, ptr %2, align 4, !tbaa !5
  %28 = load i64, ptr @N, align 8, !tbaa !9
  %29 = call noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %28)
  %30 = fadd double %29, 1.000000e+01
  %31 = fptosi double %30 to i64
  store i64 %31, ptr @X, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %32

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

37:                                               ; preds = %32
  store i32 2, ptr %4, align 4
  br label %74

38:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %39 = load i64, ptr @N, align 8, !tbaa !9
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = sdiv i64 %39, %41
  store i64 %42, ptr %6, align 8, !tbaa !9
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) @X)
  %44 = load i64, ptr %43, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  store i64 %44, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %45 = load i64, ptr @N, align 8, !tbaa !9
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = sdiv i64 %45, %48
  store i64 %49, ptr %8, align 8, !tbaa !9
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) @X)
  %51 = load i64, ptr %50, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  store i64 %51, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %52 = load i64, ptr %5, align 8, !tbaa !9
  %53 = load i64, ptr %7, align 8, !tbaa !9
  %54 = sub nsw i64 %52, %53
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef %54)
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [100010 x %class.mint], ptr @cnt, i64 0, i64 %56
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %57, ptr align 8 %9, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  %58 = load i64, ptr %5, align 8, !tbaa !9
  %59 = load i64, ptr @X, align 8, !tbaa !9
  %60 = icmp eq i64 %58, %59
  br i1 %60, label %61, label %67

61:                                               ; preds = %38
  %62 = load i64, ptr %7, align 8, !tbaa !9
  %63 = load i64, ptr @X, align 8, !tbaa !9
  %64 = icmp eq i64 %62, %63
  br i1 %64, label %65, label %67

65:                                               ; preds = %61
  %66 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %66, ptr %2, align 4, !tbaa !5
  store i32 2, ptr %4, align 4
  br label %68

67:                                               ; preds = %61, %38
  store i32 0, ptr %4, align 4
  br label %68

68:                                               ; preds = %67, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  %69 = load i32, ptr %4, align 4
  switch i32 %69, label %74 [
    i32 0, label %70
  ]

70:                                               ; preds = %68
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %3, align 4, !tbaa !5
  br label %32, !llvm.loop !12

74:                                               ; preds = %68, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %75

75:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %10, i64 noundef 1)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([100010 x %class.mint], ptr @DP, i64 0, i64 1), ptr align 8 %10, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %86, %75
  %77 = load i32, ptr %11, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = load i64, ptr @X, align 8, !tbaa !9
  %80 = icmp sle i64 %78, %79
  br i1 %80, label %82, label %81

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

82:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef 1)
  %83 = load i32, ptr %11, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [100010 x %class.mint], ptr @DP_sum, i64 0, i64 %84
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %85, ptr align 8 %12, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %86

86:                                               ; preds = %82
  %87 = load i32, ptr %11, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %11, align 4, !tbaa !5
  br label %76, !llvm.loop !14

89:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %254, %89
  %91 = load i32, ptr %13, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = load i64, ptr @K, align 8, !tbaa !9
  %94 = icmp sle i64 %92, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %90
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %257

96:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %151, %96
  %98 = load i32, ptr %14, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = load i64, ptr @X, align 8, !tbaa !9
  %101 = icmp sle i64 %99, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %97
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %154

103:                                              ; preds = %97
  %104 = load i32, ptr %13, align 4, !tbaa !5
  %105 = sub nsw i32 %104, 1
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP_sum, i64 0, i64 %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %108 = load i64, ptr @N, align 8, !tbaa !9
  %109 = load i32, ptr %14, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = sdiv i64 %108, %110
  store i64 %111, ptr %15, align 8, !tbaa !9
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @X, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = getelementptr inbounds [100010 x %class.mint], ptr %107, i64 0, i64 %113
  %115 = load i32, ptr %13, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP, i64 0, i64 %116
  %118 = load i32, ptr %14, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [100010 x %class.mint], ptr %117, i64 0, i64 %119
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %120, ptr align 8 %114, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %121 = load i32, ptr %14, align 4, !tbaa !5
  %122 = load i32, ptr %2, align 4, !tbaa !5
  %123 = icmp slt i32 %121, %122
  br i1 %123, label %124, label %150

124:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %125 = load i32, ptr %13, align 4, !tbaa !5
  %126 = sub nsw i32 %125, 1
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2_sum, i64 0, i64 %127
  %129 = load i32, ptr %2, align 4, !tbaa !5
  %130 = sub nsw i32 %129, 1
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [100010 x %class.mint], ptr %128, i64 0, i64 %131
  %133 = load i32, ptr %13, align 4, !tbaa !5
  %134 = sub nsw i32 %133, 1
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2_sum, i64 0, i64 %135
  %137 = load i32, ptr %14, align 4, !tbaa !5
  %138 = sub nsw i32 %137, 1
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [100010 x %class.mint], ptr %136, i64 0, i64 %139
  %141 = call i64 @_ZNK4mintmiERKS_(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef nonnull align 8 dereferenceable(8) %140)
  %142 = getelementptr inbounds %class.mint, ptr %16, i32 0, i32 0
  store i64 %141, ptr %142, align 8
  %143 = load i32, ptr %13, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP, i64 0, i64 %144
  %146 = load i32, ptr %14, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [100010 x %class.mint], ptr %145, i64 0, i64 %147
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4mintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %150

150:                                              ; preds = %124, %103
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %14, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %14, align 4, !tbaa !5
  br label %97, !llvm.loop !15

154:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 1, ptr %17, align 4, !tbaa !5
  br label %155

155:                                              ; preds = %179, %154
  %156 = load i32, ptr %17, align 4, !tbaa !5
  %157 = load i32, ptr %2, align 4, !tbaa !5
  %158 = icmp slt i32 %156, %157
  br i1 %158, label %160, label %159

159:                                              ; preds = %155
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %182

160:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %161 = load i32, ptr %17, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [100010 x %class.mint], ptr @cnt, i64 0, i64 %162
  %164 = load i32, ptr %13, align 4, !tbaa !5
  %165 = sub nsw i32 %164, 1
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP_sum, i64 0, i64 %166
  %168 = load i32, ptr %17, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [100010 x %class.mint], ptr %167, i64 0, i64 %169
  %171 = call i64 @_ZNK4mintmlERKS_(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef nonnull align 8 dereferenceable(8) %170)
  %172 = getelementptr inbounds %class.mint, ptr %18, i32 0, i32 0
  store i64 %171, ptr %172, align 8
  %173 = load i32, ptr %13, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2, i64 0, i64 %174
  %176 = load i32, ptr %17, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [100010 x %class.mint], ptr %175, i64 0, i64 %177
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %178, ptr align 8 %18, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %179

179:                                              ; preds = %160
  %180 = load i32, ptr %17, align 4, !tbaa !5
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %17, align 4, !tbaa !5
  br label %155, !llvm.loop !16

182:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %19, i64 noundef 0)
  %183 = load i32, ptr %13, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP_sum, i64 0, i64 %184
  %186 = getelementptr inbounds [100010 x %class.mint], ptr %185, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %186, ptr align 8 %19, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 1, ptr %20, align 4, !tbaa !5
  br label %187

187:                                              ; preds = %215, %182
  %188 = load i32, ptr %20, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = load i64, ptr @X, align 8, !tbaa !9
  %191 = icmp sle i64 %189, %190
  br i1 %191, label %193, label %192

192:                                              ; preds = %187
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %218

193:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %194 = load i32, ptr %13, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP_sum, i64 0, i64 %195
  %197 = load i32, ptr %20, align 4, !tbaa !5
  %198 = sub nsw i32 %197, 1
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [100010 x %class.mint], ptr %196, i64 0, i64 %199
  %201 = load i32, ptr %13, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP, i64 0, i64 %202
  %204 = load i32, ptr %20, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [100010 x %class.mint], ptr %203, i64 0, i64 %205
  %207 = call i64 @_ZNK4mintplERKS_(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef nonnull align 8 dereferenceable(8) %206)
  %208 = getelementptr inbounds %class.mint, ptr %21, i32 0, i32 0
  store i64 %207, ptr %208, align 8
  %209 = load i32, ptr %13, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP_sum, i64 0, i64 %210
  %212 = load i32, ptr %20, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [100010 x %class.mint], ptr %211, i64 0, i64 %213
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %214, ptr align 8 %21, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %215

215:                                              ; preds = %193
  %216 = load i32, ptr %20, align 4, !tbaa !5
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %20, align 4, !tbaa !5
  br label %187, !llvm.loop !17

218:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %22, i64 noundef 0)
  %219 = load i32, ptr %13, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2_sum, i64 0, i64 %220
  %222 = getelementptr inbounds [100010 x %class.mint], ptr %221, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %222, ptr align 8 %22, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 1, ptr %23, align 4, !tbaa !5
  br label %223

223:                                              ; preds = %250, %218
  %224 = load i32, ptr %23, align 4, !tbaa !5
  %225 = load i32, ptr %2, align 4, !tbaa !5
  %226 = icmp slt i32 %224, %225
  br i1 %226, label %228, label %227

227:                                              ; preds = %223
  store i32 20, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %253

228:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %229 = load i32, ptr %13, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2_sum, i64 0, i64 %230
  %232 = load i32, ptr %23, align 4, !tbaa !5
  %233 = sub nsw i32 %232, 1
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [100010 x %class.mint], ptr %231, i64 0, i64 %234
  %236 = load i32, ptr %13, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2, i64 0, i64 %237
  %239 = load i32, ptr %23, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [100010 x %class.mint], ptr %238, i64 0, i64 %240
  %242 = call i64 @_ZNK4mintplERKS_(ptr noundef nonnull align 8 dereferenceable(8) %235, ptr noundef nonnull align 8 dereferenceable(8) %241)
  %243 = getelementptr inbounds %class.mint, ptr %24, i32 0, i32 0
  store i64 %242, ptr %243, align 8
  %244 = load i32, ptr %13, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2_sum, i64 0, i64 %245
  %247 = load i32, ptr %23, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [100010 x %class.mint], ptr %246, i64 0, i64 %248
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %249, ptr align 8 %24, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %250

250:                                              ; preds = %228
  %251 = load i32, ptr %23, align 4, !tbaa !5
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %23, align 4, !tbaa !5
  br label %223, !llvm.loop !18

253:                                              ; preds = %227
  br label %254

254:                                              ; preds = %253
  %255 = load i32, ptr %13, align 4, !tbaa !5
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %13, align 4, !tbaa !5
  br label %90, !llvm.loop !19

257:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %258 = load i64, ptr @K, align 8, !tbaa !9
  %259 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP_sum, i64 0, i64 %258
  %260 = load i64, ptr @X, align 8, !tbaa !9
  %261 = getelementptr inbounds [100010 x %class.mint], ptr %259, i64 0, i64 %260
  %262 = load i64, ptr @K, align 8, !tbaa !9
  %263 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2_sum, i64 0, i64 %262
  %264 = load i32, ptr %2, align 4, !tbaa !5
  %265 = sub nsw i32 %264, 1
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [100010 x %class.mint], ptr %263, i64 0, i64 %266
  %268 = call i64 @_ZNK4mintplERKS_(ptr noundef nonnull align 8 dereferenceable(8) %261, ptr noundef nonnull align 8 dereferenceable(8) %267)
  %269 = getelementptr inbounds %class.mint, ptr %25, i32 0, i32 0
  store i64 %268, ptr %269, align 8
  %270 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK4mint(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %271 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %270, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %272 = load i32, ptr %1, align 4
  ret i32 %272
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) #6

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

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

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

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

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { 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 #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 = !{!"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 = !{i64 0, i64 8, !9}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}


; 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_ostream" = type { ptr, %"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.mint = type { i64 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@N = external dso_local global i64, align 8
@K = external dso_local global i64, align 8
@X = external dso_local global i64, align 8
@DP = external dso_local global [110 x [100010 x %class.mint]], align 16
@DP_sum = external dso_local global [110 x [100010 x %class.mint]], align 16
@DP2 = external dso_local global [110 x [100010 x %class.mint]], align 16
@DP2_sum = external dso_local global [110 x [100010 x %class.mint]], align 16
@cnt = external dso_local global [100010 x %class.mint], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca %class.mint, align 8
  %4 = alloca %class.mint, align 8
  %5 = alloca %class.mint, align 8
  %6 = alloca i64, align 8
  %7 = alloca %class.mint, align 8
  %8 = alloca %class.mint, align 8
  %9 = alloca %class.mint, align 8
  %10 = alloca %class.mint, align 8
  %11 = 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)
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) @K)
  %13 = load i64, ptr @N, align 8, !tbaa !5
  %14 = tail call noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %13)
  %15 = fadd double %14, 1.000000e+01
  %16 = fptosi double %15 to i64
  store i64 %16, ptr @X, align 8, !tbaa !5
  br label %17

17:                                               ; preds = %19, %0
  %18 = phi i64 [ %31, %19 ], [ %16, %0 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %19 ], [ 1, %0 ]
  %.not = icmp slt i64 %18, %indvars.iv
  br i1 %.not, label %.split.loop.exit, label %19

19:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %20 = load i64, ptr @N, align 8, !tbaa !5
  %21 = sdiv i64 %20, %indvars.iv
  store i64 %21, ptr %1, align 8, !tbaa !5
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) @X)
  %23 = load i64, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %24 = load i64, ptr @N, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %25 = sdiv i64 %24, %indvars.iv.next
  store i64 %25, ptr %2, align 8, !tbaa !5
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) @X)
  %27 = load i64, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %28 = sub nsw i64 %23, %27
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %28)
  %29 = getelementptr inbounds [100010 x %class.mint], ptr @cnt, i64 0, i64 %indvars.iv
  %30 = load i64, ptr %3, align 8, !tbaa !5
  store i64 %30, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %31 = load i64, ptr @X, align 8, !tbaa !5
  %32 = icmp ne i64 %23, %31
  %33 = icmp ne i64 %27, %31
  %or.cond.not = or i1 %32, %33
  br i1 %or.cond.not, label %17, label %.split.loop.exit130, !llvm.loop !9

.split.loop.exit130:                              ; preds = %19
  %34 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.split.loop.exit

.split.loop.exit:                                 ; preds = %17, %.split.loop.exit130
  %.2 = phi i32 [ %34, %.split.loop.exit130 ], [ -1, %17 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef 1)
  %35 = load i64, ptr %4, align 8, !tbaa !5
  store i64 %35, ptr getelementptr inbounds (i8, ptr @DP, i64 8), align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %36 = load i64, ptr @X, align 8, !tbaa !5
  %.not7584 = icmp slt i64 %36, 1
  br i1 %.not7584, label %.preheader83, label %.lr.ph

.preheader83:                                     ; preds = %.lr.ph, %.split.loop.exit
  %37 = phi i64 [ %36, %.split.loop.exit ], [ %43, %.lr.ph ]
  %38 = load i64, ptr @K, align 8, !tbaa !5
  %.not76100 = icmp slt i64 %38, 1
  %.pre125 = add nsw i32 %.2, -1
  %.pre126 = sext i32 %.pre125 to i64
  br i1 %.not76100, label %._crit_edge102, label %.preheader82.lr.ph

.preheader82.lr.ph:                               ; preds = %.preheader83
  %39 = icmp sgt i32 %.2, 1
  %40 = sext i32 %.2 to i64
  %wide.trip.count = zext nneg i32 %.2 to i64
  %wide.trip.count120 = zext nneg i32 %.2 to i64
  br label %.preheader82

.lr.ph:                                           ; preds = %.split.loop.exit, %.lr.ph
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %.lr.ph ], [ 1, %.split.loop.exit ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef 1)
  %41 = getelementptr inbounds [100010 x %class.mint], ptr @DP_sum, i64 0, i64 %indvars.iv105
  %42 = load i64, ptr %5, align 8, !tbaa !5
  store i64 %42, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %43 = load i64, ptr @X, align 8, !tbaa !5
  %.not75.not = icmp sgt i64 %43, %indvars.iv105
  br i1 %.not75.not, label %.lr.ph, label %.preheader83, !llvm.loop !11

.preheader82:                                     ; preds = %.preheader82.lr.ph, %._crit_edge99
  %indvars.iv122 = phi i64 [ 1, %.preheader82.lr.ph ], [ %indvars.iv.next123, %._crit_edge99 ]
  %44 = load i64, ptr @X, align 8, !tbaa !5
  %.not7786 = icmp slt i64 %44, 1
  br i1 %.not7786, label %.preheader, label %.lr.ph88

.lr.ph88:                                         ; preds = %.preheader82
  %45 = add nsw i64 %indvars.iv122, -1
  %46 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2_sum, i64 0, i64 %45, i64 %.pre126
  br label %54

._crit_edge102.loopexit:                          ; preds = %._crit_edge99
  %.pre = load i64, ptr @X, align 8, !tbaa !5
  br label %._crit_edge102

._crit_edge102:                                   ; preds = %.preheader83, %._crit_edge102.loopexit
  %47 = phi i64 [ %.pre, %._crit_edge102.loopexit ], [ %37, %.preheader83 ]
  %.lcssa = phi i64 [ %86, %._crit_edge102.loopexit ], [ %38, %.preheader83 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %48 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP_sum, i64 0, i64 %.lcssa, i64 %47
  %49 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2_sum, i64 0, i64 %.lcssa, i64 %.pre126
  %50 = call i64 @_ZNK4mintplERKS_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %49)
  store i64 %50, ptr %10, align 8
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK4mint(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  ret i32 0

.preheader:                                       ; preds = %68, %.preheader82
  br i1 %39, label %.lr.ph90, label %._crit_edge

.lr.ph90:                                         ; preds = %.preheader
  %53 = add nsw i64 %indvars.iv122, -1
  br label %73

54:                                               ; preds = %.lr.ph88, %68
  %indvars.iv108 = phi i64 [ 1, %.lr.ph88 ], [ %indvars.iv.next109, %68 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %55 = load i64, ptr @N, align 8, !tbaa !5
  %56 = sdiv i64 %55, %indvars.iv108
  store i64 %56, ptr %6, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @X, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %58 = load i64, ptr %57, align 8, !tbaa !5
  %59 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP_sum, i64 0, i64 %45, i64 %58
  %60 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP, i64 0, i64 %indvars.iv122, i64 %indvars.iv108
  %61 = load i64, ptr %59, align 8, !tbaa !5
  store i64 %61, ptr %60, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %62 = icmp slt i64 %indvars.iv108, %40
  br i1 %62, label %63, label %68

63:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %64 = add nsw i64 %indvars.iv108, -1
  %65 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2_sum, i64 0, i64 %45, i64 %64
  %66 = call i64 @_ZNK4mintmiERKS_(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(8) %65)
  store i64 %66, ptr %7, align 8
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4mintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %68

68:                                               ; preds = %54, %63
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %69 = load i64, ptr @X, align 8, !tbaa !5
  %.not77.not = icmp sgt i64 %69, %indvars.iv108
  br i1 %.not77.not, label %54, label %.preheader, !llvm.loop !12

._crit_edge:                                      ; preds = %73, %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef 0)
  %70 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP_sum, i64 0, i64 %indvars.iv122
  %71 = load i64, ptr %8, align 8, !tbaa !5
  store i64 %71, ptr %70, align 16, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %72 = load i64, ptr @X, align 8, !tbaa !5
  %.not7891 = icmp slt i64 %72, 1
  br i1 %.not7891, label %._crit_edge95, label %.lr.ph94

73:                                               ; preds = %.lr.ph90, %73
  %indvars.iv111 = phi i64 [ 1, %.lr.ph90 ], [ %indvars.iv.next112, %73 ]
  %74 = getelementptr inbounds [100010 x %class.mint], ptr @cnt, i64 0, i64 %indvars.iv111
  %75 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP_sum, i64 0, i64 %53, i64 %indvars.iv111
  %76 = call i64 @_ZNK4mintmlERKS_(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull align 8 dereferenceable(8) %75)
  %77 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2, i64 0, i64 %indvars.iv122, i64 %indvars.iv111
  store i64 %76, ptr %77, align 8, !tbaa !5
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %73, !llvm.loop !13

._crit_edge95:                                    ; preds = %.lr.ph94, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 0)
  %78 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2_sum, i64 0, i64 %indvars.iv122
  %79 = load i64, ptr %9, align 8, !tbaa !5
  store i64 %79, ptr %78, align 16, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br i1 %39, label %.lr.ph98, label %._crit_edge99

.lr.ph94:                                         ; preds = %._crit_edge, %.lr.ph94
  %indvars.iv114 = phi i64 [ %indvars.iv.next115, %.lr.ph94 ], [ 1, %._crit_edge ]
  %80 = add nsw i64 %indvars.iv114, -1
  %81 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP_sum, i64 0, i64 %indvars.iv122, i64 %80
  %82 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP, i64 0, i64 %indvars.iv122, i64 %indvars.iv114
  %83 = call i64 @_ZNK4mintplERKS_(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull align 8 dereferenceable(8) %82)
  %84 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP_sum, i64 0, i64 %indvars.iv122, i64 %indvars.iv114
  store i64 %83, ptr %84, align 8, !tbaa !5
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %85 = load i64, ptr @X, align 8, !tbaa !5
  %.not78.not = icmp sgt i64 %85, %indvars.iv114
  br i1 %.not78.not, label %.lr.ph94, label %._crit_edge95, !llvm.loop !14

._crit_edge99:                                    ; preds = %.lr.ph98, %._crit_edge95
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %86 = load i64, ptr @K, align 8, !tbaa !5
  %.not76.not = icmp sgt i64 %86, %indvars.iv122
  br i1 %.not76.not, label %.preheader82, label %._crit_edge102.loopexit, !llvm.loop !15

.lr.ph98:                                         ; preds = %._crit_edge95, %.lr.ph98
  %indvars.iv117 = phi i64 [ %indvars.iv.next118, %.lr.ph98 ], [ 1, %._crit_edge95 ]
  %87 = add nsw i64 %indvars.iv117, -1
  %88 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2_sum, i64 0, i64 %indvars.iv122, i64 %87
  %89 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2, i64 0, i64 %indvars.iv122, i64 %indvars.iv117
  %90 = call i64 @_ZNK4mintplERKS_(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull align 8 dereferenceable(8) %89)
  %91 = getelementptr inbounds [110 x [100010 x %class.mint]], ptr @DP2_sum, i64 0, i64 %indvars.iv122, i64 %indvars.iv117
  store i64 %90, ptr %91, align 8, !tbaa !5
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %exitcond121.not = icmp eq i64 %indvars.iv.next118, %wide.trip.count120
  br i1 %exitcond121.not, label %._crit_edge99, label %.lr.ph98, !llvm.loop !16
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) local_unnamed_addr #5

; 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: mustprogress uwtable
declare dso_local i64 @_ZNK4mintmiERKS_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #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 = { 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 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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