; LLVM IR from eyangch/competitive-programming :: Codeforces/1770 (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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.mint = type { i64 }
%"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" }

@inv2 = 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 [300000 x i64], align 16
@U = external dso_local global [300000 x i64], align 16
@V = external dso_local global [300000 x i64], align 16
@G = external dso_local global [300000 x %"class.std::vector"], align 16
@par = external dso_local global [300000 x i64], align 16
@P = external dso_local global [300000 x %struct.mint], align 16
@sts = external dso_local global [300000 x %struct.mint], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [87 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [15 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsxx(i64 noundef, i64 noundef) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZplRK4mintS1_(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.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca %struct.mint, align 8
  %4 = alloca i64, align 8
  %5 = alloca %struct.mint, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %struct.mint, align 8
  %10 = alloca %struct.mint, align 8
  %11 = alloca %struct.mint, align 8
  %12 = alloca %struct.mint, align 8
  %13 = alloca %struct.mint, align 8
  %14 = alloca %struct.mint, align 8
  %15 = alloca %struct.mint, align 8
  %16 = alloca %struct.mint, align 8
  %17 = alloca %struct.mint, align 8
  %18 = alloca %struct.mint, align 8
  %19 = alloca %struct.mint, align 8
  %20 = alloca %struct.mint, align 8
  %21 = alloca %struct.mint, align 8
  %22 = alloca %struct.mint, align 8
  %23 = alloca %struct.mint, align 8
  %24 = alloca %struct.mint, align 8
  %25 = alloca %struct.mint, align 8
  %26 = alloca %struct.mint, align 8
  %27 = alloca %struct.mint, align 8
  %28 = alloca %struct.mint, align 8
  %29 = alloca %struct.mint, align 8
  %30 = alloca %struct.mint, align 8
  %31 = alloca %struct.mint, align 8
  %32 = alloca %struct.mint, align 8
  %33 = alloca %struct.mint, align 8
  %34 = alloca %struct.mint, align 8
  %35 = alloca %struct.mint, align 8
  %36 = alloca %struct.mint, align 8
  %37 = alloca %struct.mint, align 8
  %38 = alloca %struct.mint, align 8
  %39 = alloca %struct.mint, align 8
  %40 = alloca %struct.mint, align 8
  %41 = alloca %struct.mint, align 8
  %42 = alloca %struct.mint, align 8
  %43 = alloca %struct.mint, align 8
  %44 = alloca %struct.mint, align 8
  %45 = alloca %struct.mint, align 8
  %46 = alloca %struct.mint, align 8
  %47 = alloca %struct.mint, align 8
  %48 = alloca %struct.mint, align 8
  %49 = alloca %struct.mint, align 8
  %50 = alloca %struct.mint, align 8
  %51 = alloca %struct.mint, align 8
  %52 = alloca %struct.mint, align 8
  %53 = alloca %struct.mint, align 8
  %54 = alloca %struct.mint, align 8
  %55 = alloca %struct.mint, align 8
  %56 = alloca %struct.mint, align 8
  %57 = alloca %struct.mint, align 8
  %58 = alloca %struct.mint, align 8
  %59 = alloca %struct.mint, align 8
  %60 = alloca %struct.mint, align 8
  %61 = alloca %struct.mint, align 8
  %62 = alloca %struct.mint, align 8
  %63 = alloca %struct.mint, align 8
  %64 = alloca %struct.mint, align 8
  %65 = alloca %struct.mint, align 8
  %66 = alloca %struct.mint, align 8
  %67 = alloca %struct.mint, align 8
  %68 = alloca %struct.mint, align 8
  %69 = alloca %struct.mint, align 8
  %70 = alloca %struct.mint, align 8
  %71 = alloca %struct.mint, align 8
  %72 = alloca %struct.mint, align 8
  %73 = alloca %struct.mint, align 8
  %74 = alloca %struct.mint, align 8
  %75 = alloca %struct.mint, align 8
  %76 = alloca %struct.mint, align 8
  %77 = alloca %struct.mint, align 8
  %78 = alloca %struct.mint, align 8
  %79 = alloca %struct.mint, align 8
  store i32 0, ptr %1, align 4
  %80 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %81 = getelementptr i8, ptr %80, i64 -24
  %82 = load i64, ptr %81, align 8
  %83 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %82
  %84 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %83, ptr noundef null)
  %85 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %86 = 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)
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %86, ptr noundef nonnull align 8 dereferenceable(8) @K)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #9
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %88

88:                                               ; preds = %105, %0
  %89 = load i64, ptr %2, align 8, !tbaa !8
  %90 = load i64, ptr @K, 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 %2) #9
  br label %108

93:                                               ; preds = %88
  %94 = load i64, ptr %2, align 8, !tbaa !8
  %95 = getelementptr inbounds [300000 x i64], ptr @A, i64 0, i64 %94
  %96 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %95)
  %97 = load i64, ptr %2, align 8, !tbaa !8
  %98 = getelementptr inbounds [300000 x i64], ptr @A, i64 0, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !8
  %100 = add nsw i64 %99, -1
  store i64 %100, ptr %98, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef 1)
  %101 = load i64, ptr %2, align 8, !tbaa !8
  %102 = getelementptr inbounds [300000 x i64], ptr @A, i64 0, i64 %101
  %103 = load i64, ptr %102, align 8, !tbaa !8
  %104 = getelementptr inbounds [300000 x %struct.mint], ptr @P, i64 0, i64 %103
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %104, ptr align 8 %3, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  br label %105

105:                                              ; preds = %93
  %106 = load i64, ptr %2, align 8, !tbaa !8
  %107 = add nsw i64 %106, 1
  store i64 %107, ptr %2, align 8, !tbaa !8
  br label %88, !llvm.loop !12

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

109:                                              ; preds = %142, %108
  %110 = load i64, ptr %4, align 8, !tbaa !8
  %111 = load i64, ptr @N, align 8, !tbaa !8
  %112 = sub nsw i64 %111, 1
  %113 = icmp slt i64 %110, %112
  br i1 %113, label %115, label %114

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

115:                                              ; preds = %109
  %116 = load i64, ptr %4, align 8, !tbaa !8
  %117 = getelementptr inbounds [300000 x i64], ptr @U, i64 0, i64 %116
  %118 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %117)
  %119 = load i64, ptr %4, align 8, !tbaa !8
  %120 = getelementptr inbounds [300000 x i64], ptr @V, i64 0, i64 %119
  %121 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %118, ptr noundef nonnull align 8 dereferenceable(8) %120)
  %122 = load i64, ptr %4, align 8, !tbaa !8
  %123 = getelementptr inbounds [300000 x i64], ptr @U, i64 0, i64 %122
  %124 = load i64, ptr %123, align 8, !tbaa !8
  %125 = add nsw i64 %124, -1
  store i64 %125, ptr %123, align 8, !tbaa !8
  %126 = load i64, ptr %4, align 8, !tbaa !8
  %127 = getelementptr inbounds [300000 x i64], ptr @V, i64 0, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !8
  %129 = add nsw i64 %128, -1
  store i64 %129, ptr %127, align 8, !tbaa !8
  %130 = load i64, ptr %4, align 8, !tbaa !8
  %131 = getelementptr inbounds [300000 x i64], ptr @U, i64 0, i64 %130
  %132 = load i64, ptr %131, align 8, !tbaa !8
  %133 = getelementptr inbounds [300000 x %"class.std::vector"], ptr @G, i64 0, i64 %132
  %134 = load i64, ptr %4, align 8, !tbaa !8
  %135 = getelementptr inbounds [300000 x i64], ptr @V, i64 0, i64 %134
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %133, ptr noundef nonnull align 8 dereferenceable(8) %135)
  %136 = load i64, ptr %4, align 8, !tbaa !8
  %137 = getelementptr inbounds [300000 x i64], ptr @V, i64 0, i64 %136
  %138 = load i64, ptr %137, align 8, !tbaa !8
  %139 = getelementptr inbounds [300000 x %"class.std::vector"], ptr @G, i64 0, i64 %138
  %140 = load i64, ptr %4, align 8, !tbaa !8
  %141 = getelementptr inbounds [300000 x i64], ptr @U, i64 0, i64 %140
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %139, ptr noundef nonnull align 8 dereferenceable(8) %141)
  br label %142

142:                                              ; preds = %115
  %143 = load i64, ptr %4, align 8, !tbaa !8
  %144 = add nsw i64 %143, 1
  store i64 %144, ptr %4, align 8, !tbaa !8
  br label %109, !llvm.loop !14

145:                                              ; preds = %114
  call void @_Z3dfsxx(i64 noundef 0, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  store i64 0, ptr %6, align 8, !tbaa !8
  br label %146

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

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

152:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %153 = load i64, ptr %6, align 8, !tbaa !8
  %154 = getelementptr inbounds [300000 x i64], ptr @U, i64 0, i64 %153
  %155 = load i64, ptr %154, align 8, !tbaa !8
  store i64 %155, ptr %7, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %156 = load i64, ptr %6, align 8, !tbaa !8
  %157 = getelementptr inbounds [300000 x i64], ptr @V, i64 0, i64 %156
  %158 = load i64, ptr %157, align 8, !tbaa !8
  store i64 %158, ptr %8, align 8, !tbaa !8
  %159 = load i64, ptr %7, align 8, !tbaa !8
  %160 = getelementptr inbounds [300000 x i64], ptr @par, i64 0, i64 %159
  %161 = load i64, ptr %160, align 8, !tbaa !8
  %162 = load i64, ptr %8, align 8, !tbaa !8
  %163 = icmp eq i64 %161, %162
  br i1 %163, label %164, label %165

164:                                              ; preds = %152
  call void @_ZSt4swapIxENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  br label %165

165:                                              ; preds = %164, %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %166 = load i64, ptr %7, align 8, !tbaa !8
  %167 = getelementptr inbounds [300000 x %struct.mint], ptr @P, i64 0, i64 %166
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %167, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %168 = load i64, ptr %8, align 8, !tbaa !8
  %169 = getelementptr inbounds [300000 x %struct.mint], ptr @P, i64 0, i64 %168
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %169, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %170 = load i64, ptr @inv2, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef %170)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %17, i64 noundef 1)
  %171 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %172 = getelementptr inbounds %struct.mint, ptr %16, i32 0, i32 0
  store i64 %171, ptr %172, align 8
  %173 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %174 = getelementptr inbounds %struct.mint, ptr %15, i32 0, i32 0
  store i64 %173, ptr %174, align 8
  %175 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %176 = getelementptr inbounds %struct.mint, ptr %14, i32 0, i32 0
  store i64 %175, ptr %176, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %177 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %178 = getelementptr inbounds %struct.mint, ptr %18, i32 0, i32 0
  store i64 %177, ptr %178, align 8
  %179 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %180 = getelementptr inbounds %struct.mint, ptr %13, i32 0, i32 0
  store i64 %179, ptr %180, align 8
  %181 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %182 = getelementptr inbounds %struct.mint, ptr %11, i32 0, i32 0
  store i64 %181, ptr %182, align 8
  %183 = load i64, ptr %7, align 8, !tbaa !8
  %184 = getelementptr inbounds [300000 x %struct.mint], ptr @P, i64 0, i64 %183
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %184, ptr align 8 %11, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %185 = load i64, ptr @inv2, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %20, i64 noundef %185)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %25, i64 noundef 1)
  %186 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %187 = getelementptr inbounds %struct.mint, ptr %24, i32 0, i32 0
  store i64 %186, ptr %187, align 8
  %188 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %189 = getelementptr inbounds %struct.mint, ptr %23, i32 0, i32 0
  store i64 %188, ptr %189, align 8
  %190 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %191 = getelementptr inbounds %struct.mint, ptr %22, i32 0, i32 0
  store i64 %190, ptr %191, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %192 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %193 = getelementptr inbounds %struct.mint, ptr %26, i32 0, i32 0
  store i64 %192, ptr %193, align 8
  %194 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %195 = getelementptr inbounds %struct.mint, ptr %21, i32 0, i32 0
  store i64 %194, ptr %195, align 8
  %196 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %197 = getelementptr inbounds %struct.mint, ptr %19, i32 0, i32 0
  store i64 %196, ptr %197, align 8
  %198 = load i64, ptr %8, align 8, !tbaa !8
  %199 = getelementptr inbounds [300000 x %struct.mint], ptr @P, i64 0, i64 %198
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %199, ptr align 8 %19, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %200 = load i64, ptr @inv2, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %29, i64 noundef %200)
  %201 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %202 = getelementptr inbounds %struct.mint, ptr %28, i32 0, i32 0
  store i64 %201, ptr %202, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %31, i64 noundef 1)
  %203 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %204 = getelementptr inbounds %struct.mint, ptr %30, i32 0, i32 0
  store i64 %203, ptr %204, align 8
  %205 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %30)
  %206 = getelementptr inbounds %struct.mint, ptr %27, i32 0, i32 0
  store i64 %205, ptr %206, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %207 = load i64, ptr @inv2, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %34, i64 noundef %207)
  %208 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %209 = getelementptr inbounds %struct.mint, ptr %33, i32 0, i32 0
  store i64 %208, ptr %209, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %36, i64 noundef 1)
  %210 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %211 = getelementptr inbounds %struct.mint, ptr %35, i32 0, i32 0
  store i64 %210, ptr %211, align 8
  %212 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %35)
  %213 = getelementptr inbounds %struct.mint, ptr %32, i32 0, i32 0
  store i64 %212, ptr %213, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  %214 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %215 = getelementptr inbounds %struct.mint, ptr %39, i32 0, i32 0
  store i64 %214, ptr %215, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #9
  %216 = load i64, ptr @inv2, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %41, i64 noundef %216)
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #9
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef 1)
  %217 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %218 = getelementptr inbounds %struct.mint, ptr %42, i32 0, i32 0
  store i64 %217, ptr %218, align 8
  %219 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %42)
  %220 = getelementptr inbounds %struct.mint, ptr %40, i32 0, i32 0
  store i64 %219, ptr %220, align 8
  %221 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40)
  %222 = getelementptr inbounds %struct.mint, ptr %38, i32 0, i32 0
  store i64 %221, ptr %222, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #9
  %223 = load i64, ptr @inv2, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %45, i64 noundef %223)
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #9
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %47, i64 noundef 1)
  %224 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %225 = getelementptr inbounds %struct.mint, ptr %46, i32 0, i32 0
  store i64 %224, ptr %225, align 8
  %226 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %46)
  %227 = getelementptr inbounds %struct.mint, ptr %44, i32 0, i32 0
  store i64 %226, ptr %227, align 8
  %228 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %44)
  %229 = getelementptr inbounds %struct.mint, ptr %37, i32 0, i32 0
  store i64 %228, ptr %229, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #9
  %230 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %32)
  %231 = getelementptr inbounds %struct.mint, ptr %49, i32 0, i32 0
  store i64 %230, ptr %231, align 8
  %232 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull align 8 dereferenceable(8) %37)
  %233 = getelementptr inbounds %struct.mint, ptr %48, i32 0, i32 0
  store i64 %232, ptr %233, align 8
  %234 = getelementptr inbounds %struct.mint, ptr %48, i32 0, i32 0
  %235 = load i64, ptr %234, align 8, !tbaa !15
  %236 = icmp eq i64 %235, 1
  br i1 %236, label %237, label %238

237:                                              ; preds = %165
  br label %240

238:                                              ; preds = %165
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.4, i32 noundef 76, ptr noundef @__PRETTY_FUNCTION__.main) #10
  unreachable

239:                                              ; No predecessors!
  br label %240

240:                                              ; preds = %239, %237
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #9
  %241 = load i64, ptr %8, align 8, !tbaa !8
  %242 = getelementptr inbounds [300000 x %struct.mint], ptr @sts, i64 0, i64 %241
  %243 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %242)
  %244 = getelementptr inbounds %struct.mint, ptr %52, i32 0, i32 0
  store i64 %243, ptr %244, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #9
  %245 = load i64, ptr @K, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %54, i64 noundef %245)
  %246 = load i64, ptr %8, align 8, !tbaa !8
  %247 = getelementptr inbounds [300000 x %struct.mint], ptr @sts, i64 0, i64 %246
  %248 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull align 8 dereferenceable(8) %247)
  %249 = getelementptr inbounds %struct.mint, ptr %53, i32 0, i32 0
  store i64 %248, ptr %249, align 8
  %250 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %53)
  %251 = getelementptr inbounds %struct.mint, ptr %51, i32 0, i32 0
  store i64 %250, ptr %251, align 8
  %252 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %51)
  %253 = getelementptr inbounds %struct.mint, ptr %50, i32 0, i32 0
  store i64 %252, ptr %253, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %50, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #9
  %254 = load i64, ptr %8, align 8, !tbaa !8
  %255 = getelementptr inbounds [300000 x %struct.mint], ptr @sts, i64 0, i64 %254
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #9
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %59, i64 noundef 1)
  %256 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %255, ptr noundef nonnull align 8 dereferenceable(8) %59)
  %257 = getelementptr inbounds %struct.mint, ptr %58, i32 0, i32 0
  store i64 %256, ptr %257, align 8
  %258 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %58)
  %259 = getelementptr inbounds %struct.mint, ptr %57, i32 0, i32 0
  store i64 %258, ptr %259, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #9
  %260 = load i64, ptr @K, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %61, i64 noundef %260)
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #9
  %261 = load i64, ptr %8, align 8, !tbaa !8
  %262 = getelementptr inbounds [300000 x %struct.mint], ptr @sts, i64 0, i64 %261
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #9
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %63, i64 noundef 1)
  %263 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %262, ptr noundef nonnull align 8 dereferenceable(8) %63)
  %264 = getelementptr inbounds %struct.mint, ptr %62, i32 0, i32 0
  store i64 %263, ptr %264, align 8
  %265 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull align 8 dereferenceable(8) %62)
  %266 = getelementptr inbounds %struct.mint, ptr %60, i32 0, i32 0
  store i64 %265, ptr %266, align 8
  %267 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %60)
  %268 = getelementptr inbounds %struct.mint, ptr %56, i32 0, i32 0
  store i64 %267, ptr %268, align 8
  %269 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %56)
  %270 = getelementptr inbounds %struct.mint, ptr %55, i32 0, i32 0
  store i64 %269, ptr %270, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %55, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #9
  %271 = load i64, ptr %8, align 8, !tbaa !8
  %272 = getelementptr inbounds [300000 x %struct.mint], ptr @sts, i64 0, i64 %271
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #9
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %68, i64 noundef 1)
  %273 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %272, ptr noundef nonnull align 8 dereferenceable(8) %68)
  %274 = getelementptr inbounds %struct.mint, ptr %67, i32 0, i32 0
  store i64 %273, ptr %274, align 8
  %275 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %67)
  %276 = getelementptr inbounds %struct.mint, ptr %66, i32 0, i32 0
  store i64 %275, ptr %276, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #9
  %277 = load i64, ptr @K, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %70, i64 noundef %277)
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #9
  %278 = load i64, ptr %8, align 8, !tbaa !8
  %279 = getelementptr inbounds [300000 x %struct.mint], ptr @sts, i64 0, i64 %278
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #9
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %72, i64 noundef 1)
  %280 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %279, ptr noundef nonnull align 8 dereferenceable(8) %72)
  %281 = getelementptr inbounds %struct.mint, ptr %71, i32 0, i32 0
  store i64 %280, ptr %281, align 8
  %282 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull align 8 dereferenceable(8) %71)
  %283 = getelementptr inbounds %struct.mint, ptr %69, i32 0, i32 0
  store i64 %282, ptr %283, align 8
  %284 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull align 8 dereferenceable(8) %69)
  %285 = getelementptr inbounds %struct.mint, ptr %65, i32 0, i32 0
  store i64 %284, ptr %285, align 8
  %286 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %65)
  %287 = getelementptr inbounds %struct.mint, ptr %64, i32 0, i32 0
  store i64 %286, ptr %287, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %64, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br label %288

288:                                              ; preds = %240
  %289 = load i64, ptr %6, align 8, !tbaa !8
  %290 = add nsw i64 %289, 1
  store i64 %290, ptr %6, align 8, !tbaa !8
  br label %146, !llvm.loop !17

291:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %76) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %77) #9
  %292 = load i64, ptr @K, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %77, i64 noundef %292)
  call void @llvm.lifetime.start.p0(i64 8, ptr %78) #9
  %293 = load i64, ptr @K, align 8, !tbaa !8
  %294 = sub nsw i64 %293, 1
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %78, i64 noundef %294)
  %295 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef nonnull align 8 dereferenceable(8) %78)
  %296 = getelementptr inbounds %struct.mint, ptr %76, i32 0, i32 0
  store i64 %295, ptr %296, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %79) #9
  %297 = load i64, ptr @inv2, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %79, i64 noundef %297)
  %298 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull align 8 dereferenceable(8) %79)
  %299 = getelementptr inbounds %struct.mint, ptr %75, i32 0, i32 0
  store i64 %298, ptr %299, align 8
  %300 = call i64 @_ZN4mint3invEv(ptr noundef nonnull align 8 dereferenceable(8) %75)
  %301 = getelementptr inbounds %struct.mint, ptr %74, i32 0, i32 0
  store i64 %300, ptr %301, align 8
  %302 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %74)
  %303 = getelementptr inbounds %struct.mint, ptr %73, i32 0, i32 0
  store i64 %302, ptr %303, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %73, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #9
  %304 = getelementptr inbounds %struct.mint, ptr %5, i32 0, i32 0
  %305 = load i64, ptr %304, align 8, !tbaa !15
  %306 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %305)
  %307 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %306, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  %308 = load i32, ptr %1, align 4
  ret i32 %308
}

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

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

; 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 nounwind uwtable
declare dso_local void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIxENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #7

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #0 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { "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 = { noreturn nounwind "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 #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn 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 = !{i64 0, i64 8, !8}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !9, i64 0}
!16 = !{!"_ZTS4mint", !9, i64 0}
!17 = distinct !{!17, !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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.mint = type { i64 }
%"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" }

@inv2 = external dso_local local_unnamed_addr 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 [300000 x i64], align 16
@U = external dso_local global [300000 x i64], align 16
@V = external dso_local global [300000 x i64], align 16
@G = external dso_local global [300000 x %"class.std::vector"], align 16
@par = external dso_local local_unnamed_addr global [300000 x i64], align 16
@P = external dso_local local_unnamed_addr global [300000 x %struct.mint], align 16
@sts = external dso_local global [300000 x %struct.mint], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [87 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [15 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsxx(i64 noundef, i64 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZplRK4mintS1_(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.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca %struct.mint, align 8
  %2 = alloca %struct.mint, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca %struct.mint, align 8
  %6 = alloca %struct.mint, align 8
  %7 = alloca %struct.mint, align 8
  %8 = alloca %struct.mint, align 8
  %9 = alloca %struct.mint, align 8
  %10 = alloca %struct.mint, align 8
  %11 = alloca %struct.mint, align 8
  %12 = alloca %struct.mint, align 8
  %13 = alloca %struct.mint, align 8
  %14 = alloca %struct.mint, align 8
  %15 = alloca %struct.mint, align 8
  %16 = alloca %struct.mint, align 8
  %17 = alloca %struct.mint, align 8
  %18 = alloca %struct.mint, align 8
  %19 = alloca %struct.mint, align 8
  %20 = alloca %struct.mint, align 8
  %21 = alloca %struct.mint, align 8
  %22 = alloca %struct.mint, align 8
  %23 = alloca %struct.mint, align 8
  %24 = alloca %struct.mint, align 8
  %25 = alloca %struct.mint, align 8
  %26 = alloca %struct.mint, align 8
  %27 = alloca %struct.mint, align 8
  %28 = alloca %struct.mint, align 8
  %29 = alloca %struct.mint, align 8
  %30 = alloca %struct.mint, align 8
  %31 = alloca %struct.mint, align 8
  %32 = alloca %struct.mint, align 8
  %33 = alloca %struct.mint, align 8
  %34 = alloca %struct.mint, align 8
  %35 = alloca %struct.mint, align 8
  %36 = alloca %struct.mint, align 8
  %37 = alloca %struct.mint, align 8
  %38 = alloca %struct.mint, align 8
  %39 = alloca %struct.mint, align 8
  %40 = alloca %struct.mint, align 8
  %41 = alloca %struct.mint, align 8
  %42 = alloca %struct.mint, align 8
  %43 = alloca %struct.mint, align 8
  %44 = alloca %struct.mint, align 8
  %45 = alloca %struct.mint, align 8
  %46 = alloca %struct.mint, align 8
  %47 = alloca %struct.mint, align 8
  %48 = alloca %struct.mint, align 8
  %49 = alloca %struct.mint, align 8
  %50 = alloca %struct.mint, align 8
  %51 = alloca %struct.mint, align 8
  %52 = alloca %struct.mint, align 8
  %53 = alloca %struct.mint, align 8
  %54 = alloca %struct.mint, align 8
  %55 = alloca %struct.mint, align 8
  %56 = alloca %struct.mint, align 8
  %57 = alloca %struct.mint, align 8
  %58 = alloca %struct.mint, align 8
  %59 = alloca %struct.mint, align 8
  %60 = alloca %struct.mint, align 8
  %61 = alloca %struct.mint, align 8
  %62 = alloca %struct.mint, align 8
  %63 = alloca %struct.mint, align 8
  %64 = alloca %struct.mint, align 8
  %65 = alloca %struct.mint, align 8
  %66 = alloca %struct.mint, align 8
  %67 = alloca %struct.mint, align 8
  %68 = alloca %struct.mint, align 8
  %69 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %70 = getelementptr i8, ptr %69, i64 -24
  %71 = load i64, ptr %70, align 8
  %72 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %71
  %73 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %72, ptr noundef null)
  %74 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %75 = 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)
  %76 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef nonnull align 8 dereferenceable(8) @K)
  %77 = load i64, ptr @K, align 8, !tbaa !8
  %78 = icmp sgt i64 %77, 0
  br i1 %78, label %.lr.ph, label %.preheader

.preheader:                                       ; preds = %.lr.ph, %0
  %79 = load i64, ptr @N, align 8, !tbaa !8
  %80 = icmp sgt i64 %79, 1
  br i1 %80, label %.lr.ph30, label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.028 = phi i64 [ %88, %.lr.ph ], [ 0, %0 ]
  %81 = getelementptr inbounds [300000 x i64], ptr @A, i64 0, i64 %.028
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %81)
  %83 = load i64, ptr %81, align 8, !tbaa !8
  %84 = add nsw i64 %83, -1
  store i64 %84, ptr %81, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %1, i64 noundef 1)
  %85 = load i64, ptr %81, align 8, !tbaa !8
  %86 = getelementptr inbounds [300000 x %struct.mint], ptr @P, i64 0, i64 %85
  %87 = load i64, ptr %1, align 8, !tbaa !8
  store i64 %87, ptr %86, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  %88 = add nuw nsw i64 %.028, 1
  %89 = load i64, ptr @K, align 8, !tbaa !8
  %90 = icmp slt i64 %88, %89
  br i1 %90, label %.lr.ph, label %.preheader, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph30, %.preheader
  call void @_Z3dfsxx(i64 noundef 0, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef 0)
  %91 = load i64, ptr @N, align 8, !tbaa !8
  %92 = icmp sgt i64 %91, 1
  br i1 %92, label %.lr.ph33, label %._crit_edge34

.lr.ph30:                                         ; preds = %.preheader, %.lr.ph30
  %.02629 = phi i64 [ %104, %.lr.ph30 ], [ 0, %.preheader ]
  %93 = getelementptr inbounds [300000 x i64], ptr @U, i64 0, i64 %.02629
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %93)
  %95 = getelementptr inbounds [300000 x i64], ptr @V, i64 0, i64 %.02629
  %96 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %94, ptr noundef nonnull align 8 dereferenceable(8) %95)
  %97 = load i64, ptr %93, align 8, !tbaa !8
  %98 = add nsw i64 %97, -1
  store i64 %98, ptr %93, align 8, !tbaa !8
  %99 = load i64, ptr %95, align 8, !tbaa !8
  %100 = add nsw i64 %99, -1
  store i64 %100, ptr %95, align 8, !tbaa !8
  %101 = getelementptr inbounds [300000 x %"class.std::vector"], ptr @G, i64 0, i64 %98
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %101, ptr noundef nonnull align 8 dereferenceable(8) %95)
  %102 = load i64, ptr %95, align 8, !tbaa !8
  %103 = getelementptr inbounds [300000 x %"class.std::vector"], ptr @G, i64 0, i64 %102
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %103, ptr noundef nonnull align 8 dereferenceable(8) %93)
  %104 = add nuw nsw i64 %.02629, 1
  %105 = load i64, ptr @N, align 8, !tbaa !8
  %106 = add nsw i64 %105, -1
  %107 = icmp slt i64 %104, %106
  br i1 %107, label %.lr.ph30, label %._crit_edge, !llvm.loop !13

._crit_edge34:                                    ; preds = %172, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %63) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %64) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %65) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %66) #8
  %108 = load i64, ptr @K, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %66, i64 noundef %108)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %67) #8
  %109 = load i64, ptr @K, align 8, !tbaa !8
  %110 = add nsw i64 %109, -1
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %67, i64 noundef %110)
  %111 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull align 8 dereferenceable(8) %67)
  store i64 %111, ptr %65, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %68) #8
  %112 = load i64, ptr @inv2, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %68, i64 noundef %112)
  %113 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull align 8 dereferenceable(8) %68)
  store i64 %113, ptr %64, align 8
  %114 = call i64 @_ZN4mint3invEv(ptr noundef nonnull align 8 dereferenceable(8) %64)
  store i64 %114, ptr %63, align 8
  %115 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %63)
  store i64 %115, ptr %2, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %68) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %67) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %66) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %65) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %64) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %63) #8
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %115)
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %116, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  ret i32 0

.lr.ph33:                                         ; preds = %._crit_edge, %172
  %.02731 = phi i64 [ %204, %172 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %118 = getelementptr inbounds [300000 x i64], ptr @U, i64 0, i64 %.02731
  %119 = load i64, ptr %118, align 8, !tbaa !8
  store i64 %119, ptr %3, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %120 = getelementptr inbounds [300000 x i64], ptr @V, i64 0, i64 %.02731
  %121 = load i64, ptr %120, align 8, !tbaa !8
  store i64 %121, ptr %4, align 8, !tbaa !8
  %122 = getelementptr inbounds [300000 x i64], ptr @par, i64 0, i64 %119
  %123 = load i64, ptr %122, align 8, !tbaa !8
  %124 = icmp eq i64 %123, %121
  br i1 %124, label %125, label %126

125:                                              ; preds = %.lr.ph33
  call void @_ZSt4swapIxENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %.pre = load i64, ptr %3, align 8, !tbaa !8
  %.pre35 = load i64, ptr %4, align 8, !tbaa !8
  br label %126

126:                                              ; preds = %125, %.lr.ph33
  %127 = phi i64 [ %.pre35, %125 ], [ %121, %.lr.ph33 ]
  %128 = phi i64 [ %.pre, %125 ], [ %119, %.lr.ph33 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %129 = getelementptr inbounds [300000 x %struct.mint], ptr @P, i64 0, i64 %128
  %130 = load i64, ptr %129, align 8, !tbaa !8
  store i64 %130, ptr %5, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %131 = getelementptr inbounds [300000 x %struct.mint], ptr @P, i64 0, i64 %127
  %132 = load i64, ptr %131, align 8, !tbaa !8
  store i64 %132, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %133 = load i64, ptr @inv2, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %133)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef 1)
  %134 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %5)
  store i64 %134, ptr %11, align 8
  %135 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %11)
  store i64 %135, ptr %10, align 8
  %136 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %5)
  store i64 %136, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %137 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  store i64 %137, ptr %13, align 8
  %138 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %13)
  store i64 %138, ptr %8, align 8
  %139 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %140 = load i64, ptr %3, align 8, !tbaa !8
  %141 = getelementptr inbounds [300000 x %struct.mint], ptr @P, i64 0, i64 %140
  store i64 %139, ptr %141, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %142 = load i64, ptr @inv2, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef %142)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %19, i64 noundef 1)
  %143 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %6)
  store i64 %143, ptr %18, align 8
  %144 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %18)
  store i64 %144, ptr %17, align 8
  %145 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %6)
  store i64 %145, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #8
  %146 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %5)
  store i64 %146, ptr %20, align 8
  %147 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %20)
  store i64 %147, ptr %15, align 8
  %148 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %149 = load i64, ptr %4, align 8, !tbaa !8
  %150 = getelementptr inbounds [300000 x %struct.mint], ptr @P, i64 0, i64 %149
  store i64 %148, ptr %150, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #8
  %151 = load i64, ptr @inv2, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %23, i64 noundef %151)
  %152 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %6)
  store i64 %152, ptr %22, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %25, i64 noundef 1)
  %153 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %5)
  store i64 %153, ptr %24, align 8
  %154 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %24)
  store i64 %154, ptr %21, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #8
  %155 = load i64, ptr @inv2, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %28, i64 noundef %155)
  %156 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %5)
  store i64 %156, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %30, i64 noundef 1)
  %157 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %6)
  store i64 %157, ptr %29, align 8
  %158 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %29)
  store i64 %158, ptr %26, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #8
  %159 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  store i64 %159, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #8
  %160 = load i64, ptr @inv2, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %35, i64 noundef %160)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %37, i64 noundef 1)
  %161 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %6)
  store i64 %161, ptr %36, align 8
  %162 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36)
  store i64 %162, ptr %34, align 8
  %163 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34)
  store i64 %163, ptr %32, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %39) #8
  %164 = load i64, ptr @inv2, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %39, i64 noundef %164)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %40) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %41) #8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %41, i64 noundef 1)
  %165 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %5)
  store i64 %165, ptr %40, align 8
  %166 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40)
  store i64 %166, ptr %38, align 8
  %167 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %38)
  store i64 %167, ptr %31, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %42) #8
  %168 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %26)
  store i64 %168, ptr %42, align 8
  %169 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %170 = icmp eq i64 %169, 1
  br i1 %170, label %172, label %171

171:                                              ; preds = %126
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.4, i32 noundef 76, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

172:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %43) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %44) #8
  %173 = load i64, ptr %4, align 8, !tbaa !8
  %174 = getelementptr inbounds [300000 x %struct.mint], ptr @sts, i64 0, i64 %173
  %175 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %174)
  store i64 %175, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %45) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %46) #8
  %176 = load i64, ptr @K, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %46, i64 noundef %176)
  %177 = load i64, ptr %4, align 8, !tbaa !8
  %178 = getelementptr inbounds [300000 x %struct.mint], ptr @sts, i64 0, i64 %177
  %179 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(8) %178)
  store i64 %179, ptr %45, align 8
  %180 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %45)
  store i64 %180, ptr %43, align 8
  %181 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %43)
  store i64 %181, ptr %2, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %43) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %47) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %48) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %49) #8
  %182 = load i64, ptr %4, align 8, !tbaa !8
  %183 = getelementptr inbounds [300000 x %struct.mint], ptr @sts, i64 0, i64 %182
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %50) #8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %50, i64 noundef 1)
  %184 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %183, ptr noundef nonnull align 8 dereferenceable(8) %50)
  store i64 %184, ptr %49, align 8
  %185 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %49)
  store i64 %185, ptr %48, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %51) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %52) #8
  %186 = load i64, ptr @K, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %52, i64 noundef %186)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %53) #8
  %187 = load i64, ptr %4, align 8, !tbaa !8
  %188 = getelementptr inbounds [300000 x %struct.mint], ptr @sts, i64 0, i64 %187
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %54) #8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %54, i64 noundef 1)
  %189 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef nonnull align 8 dereferenceable(8) %54)
  store i64 %189, ptr %53, align 8
  %190 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %53)
  store i64 %190, ptr %51, align 8
  %191 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %51)
  store i64 %191, ptr %47, align 8
  %192 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %47)
  store i64 %192, ptr %2, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %54) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %53) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %52) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %51) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %50) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %47) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %55) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %56) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %57) #8
  %193 = load i64, ptr %4, align 8, !tbaa !8
  %194 = getelementptr inbounds [300000 x %struct.mint], ptr @sts, i64 0, i64 %193
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %58) #8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %58, i64 noundef 1)
  %195 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %194, ptr noundef nonnull align 8 dereferenceable(8) %58)
  store i64 %195, ptr %57, align 8
  %196 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %57)
  store i64 %196, ptr %56, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %59) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %60) #8
  %197 = load i64, ptr @K, align 8, !tbaa !8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %60, i64 noundef %197)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %61) #8
  %198 = load i64, ptr %4, align 8, !tbaa !8
  %199 = getelementptr inbounds [300000 x %struct.mint], ptr @sts, i64 0, i64 %198
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %62) #8
  call void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %62, i64 noundef 1)
  %200 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %199, ptr noundef nonnull align 8 dereferenceable(8) %62)
  store i64 %200, ptr %61, align 8
  %201 = call i64 @_ZmiRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 8 dereferenceable(8) %61)
  store i64 %201, ptr %59, align 8
  %202 = call i64 @_ZmlRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 8 dereferenceable(8) %59)
  store i64 %202, ptr %55, align 8
  %203 = call i64 @_ZplRK4mintS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %55)
  store i64 %203, ptr %2, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %62) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %61) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %60) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %59) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %58) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %57) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %56) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %55) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  %204 = add nuw nsw i64 %.02731, 1
  %205 = load i64, ptr @N, align 8, !tbaa !8
  %206 = add nsw i64 %205, -1
  %207 = icmp slt i64 %204, %206
  br i1 %207, label %.lr.ph33, label %._crit_edge34, !llvm.loop !14
}

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

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

; 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 nounwind uwtable
declare dso_local void @_ZN4mintC2Ex(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #3 align 2

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

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

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

; 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 #0 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { "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 = { noreturn nounwind "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 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass