; LLVM IR from wesley-a-leung/Resources :: Tests/C++/datastructures/PrefixSumArray2DFuzzTest.ll (Z5test2v)

; 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.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::mersenne_twister_engine" = type { [312 x i64], i64 }
%"struct.std::array" = type { [10 x %"struct.std::array.0"] }
%"struct.std::array.0" = type { [20 x i64] }
%"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 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Setprecision" = type { i32 }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [112 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__._Z5test2v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1

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

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() #1

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqIxSaIxEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test2v() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::chrono::time_point", align 8
  %2 = alloca %"class.std::mersenne_twister_engine", align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::array", align 8
  %10 = alloca %"struct.std::array", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca %"class.std::vector", align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %39 = alloca ptr, align 8
  %40 = alloca %"class.std::chrono::time_point", align 8
  %41 = alloca double, align 8
  %42 = alloca %"class.std::chrono::duration", align 8
  %43 = alloca %"struct.std::_Setprecision", align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #7
  %44 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #7
  %45 = getelementptr inbounds %"class.std::chrono::time_point", ptr %1, i32 0, i32 0
  %46 = getelementptr inbounds %"class.std::chrono::duration", ptr %45, i32 0, i32 0
  store i64 %44, ptr %46, align 8
  call void @llvm.lifetime.start.p0(i64 2504, ptr %2) #7
  call void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504) %2, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 100000, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 0, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %346, %0
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = icmp slt i32 %48, 100000
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %350

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %52 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %53 = urem i64 %52, 11
  %54 = trunc i64 %53 to i32
  store i32 %54, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %55 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %56 = urem i64 %55, 21
  %57 = trunc i64 %56 to i32
  store i32 %57, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1600, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 1600, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %89, %51
  %59 = load i32, ptr %11, align 4, !tbaa !5
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %63, label %62

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

63:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %85, %63
  %65 = load i32, ptr %12, align 4, !tbaa !5
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %69, label %68

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

69:                                               ; preds = %64
  %70 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %71 = urem i64 %70, 1000000
  %72 = add i64 %71, 1
  %73 = load i32, ptr %11, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt5arrayIS_IxLm20EELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(1600) %9, i64 noundef %74) #7
  %76 = load i32, ptr %12, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm20EEixEm(ptr noundef nonnull align 8 dereferenceable(160) %75, i64 noundef %77) #7
  store i64 %72, ptr %78, align 8, !tbaa !9
  %79 = load i32, ptr %11, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt5arrayIS_IxLm20EELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(1600) %10, i64 noundef %80) #7
  %82 = load i32, ptr %12, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm20EEixEm(ptr noundef nonnull align 8 dereferenceable(160) %81, i64 noundef %83) #7
  store i64 %72, ptr %84, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %69
  %86 = load i32, ptr %12, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %12, align 4, !tbaa !5
  br label %64, !llvm.loop !11

88:                                               ; preds = %68
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %11, align 4, !tbaa !5
  br label %58, !llvm.loop !13

92:                                               ; preds = %62
  %93 = load i32, ptr %7, align 4, !tbaa !5
  %94 = load i32, ptr %8, align 4, !tbaa !5
  call void @_Z22adjacent_difference_2dISt5arrayIS0_IxLm20EELm10EEEvRKT_iiRS3_(ptr noundef nonnull align 8 dereferenceable(1600) %10, i32 noundef %93, i32 noundef %94, ptr noundef nonnull align 8 dereferenceable(1600) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %100, label %97

97:                                               ; preds = %92
  %98 = load i32, ptr %8, align 4, !tbaa !5
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %101

100:                                              ; preds = %97, %92
  br label %105

101:                                              ; preds = %97
  %102 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %103 = urem i64 %102, 5
  %104 = sub i64 100, %103
  br label %105

105:                                              ; preds = %101, %100
  %106 = phi i64 [ 0, %100 ], [ %104, %101 ]
  %107 = trunc i64 %106 to i32
  store i32 %107, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %185, %105
  %109 = load i32, ptr %14, align 4, !tbaa !5
  %110 = load i32, ptr %13, align 4, !tbaa !5
  %111 = icmp slt i32 %109, %110
  br i1 %111, label %113, label %112

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

113:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %114 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %115 = load i32, ptr %7, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = urem i64 %114, %116
  %118 = trunc i64 %117 to i32
  store i32 %118, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %119 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %120 = load i32, ptr %7, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = urem i64 %119, %121
  %123 = trunc i64 %122 to i32
  store i32 %123, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %124 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %125 = load i32, ptr %8, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = urem i64 %124, %126
  %128 = trunc i64 %127 to i32
  store i32 %128, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %129 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %130 = load i32, ptr %8, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = urem i64 %129, %131
  %133 = trunc i64 %132 to i32
  store i32 %133, ptr %18, align 4, !tbaa !5
  %134 = load i32, ptr %15, align 4, !tbaa !5
  %135 = load i32, ptr %16, align 4, !tbaa !5
  %136 = icmp sgt i32 %134, %135
  br i1 %136, label %137, label %138

137:                                              ; preds = %113
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16) #7
  br label %138

138:                                              ; preds = %137, %113
  %139 = load i32, ptr %17, align 4, !tbaa !5
  %140 = load i32, ptr %18, align 4, !tbaa !5
  %141 = icmp sgt i32 %139, %140
  br i1 %141, label %142, label %143

142:                                              ; preds = %138
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18) #7
  br label %143

143:                                              ; preds = %142, %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %144 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %145 = urem i64 %144, 1000000
  %146 = add i64 %145, 1
  store i64 %146, ptr %19, align 8, !tbaa !9
  %147 = load i32, ptr %7, align 4, !tbaa !5
  %148 = load i32, ptr %8, align 4, !tbaa !5
  %149 = load i32, ptr %15, align 4, !tbaa !5
  %150 = load i32, ptr %16, align 4, !tbaa !5
  %151 = load i32, ptr %17, align 4, !tbaa !5
  %152 = load i32, ptr %18, align 4, !tbaa !5
  %153 = load i64, ptr %19, align 8, !tbaa !9
  call void @_Z3addISt5arrayIS0_IxLm20EELm10EExEvRT_iiiiiiT0_(ptr noundef nonnull align 8 dereferenceable(1600) %10, i32 noundef %147, i32 noundef %148, i32 noundef %149, i32 noundef %150, i32 noundef %151, i32 noundef %152, i64 noundef %153)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %154 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %154, ptr %20, align 4, !tbaa !5
  br label %155

155:                                              ; preds = %181, %143
  %156 = load i32, ptr %20, align 4, !tbaa !5
  %157 = load i32, ptr %16, align 4, !tbaa !5
  %158 = icmp sle i32 %156, %157
  br i1 %158, label %160, label %159

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

160:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %161 = load i32, ptr %17, align 4, !tbaa !5
  store i32 %161, ptr %21, align 4, !tbaa !5
  br label %162

162:                                              ; preds = %177, %160
  %163 = load i32, ptr %21, align 4, !tbaa !5
  %164 = load i32, ptr %18, align 4, !tbaa !5
  %165 = icmp sle i32 %163, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %162
  store i32 17, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %180

167:                                              ; preds = %162
  %168 = load i64, ptr %19, align 8, !tbaa !9
  %169 = load i32, ptr %20, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt5arrayIS_IxLm20EELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(1600) %9, i64 noundef %170) #7
  %172 = load i32, ptr %21, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm20EEixEm(ptr noundef nonnull align 8 dereferenceable(160) %171, i64 noundef %173) #7
  %175 = load i64, ptr %174, align 8, !tbaa !9
  %176 = add nsw i64 %175, %168
  store i64 %176, ptr %174, align 8, !tbaa !9
  br label %177

177:                                              ; preds = %167
  %178 = load i32, ptr %21, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %21, align 4, !tbaa !5
  br label %162, !llvm.loop !14

180:                                              ; preds = %166
  br label %181

181:                                              ; preds = %180
  %182 = load i32, ptr %20, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %20, align 4, !tbaa !5
  br label %155, !llvm.loop !15

184:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %185

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

188:                                              ; preds = %112
  %189 = load i32, ptr %7, align 4, !tbaa !5
  %190 = load i32, ptr %8, align 4, !tbaa !5
  call void @_Z14partial_sum_2dISt5arrayIS0_IxLm20EELm10EEEvRKT_iiRS3_(ptr noundef nonnull align 8 dereferenceable(1600) %10, i32 noundef %189, i32 noundef %190, ptr noundef nonnull align 8 dereferenceable(1600) %10)
  %191 = load i32, ptr %7, align 4, !tbaa !5
  %192 = load i32, ptr %8, align 4, !tbaa !5
  call void @_Z14partial_sum_2dISt5arrayIS0_IxLm20EELm10EEEvRKT_iiRS3_(ptr noundef nonnull align 8 dereferenceable(1600) %10, i32 noundef %191, i32 noundef %192, ptr noundef nonnull align 8 dereferenceable(1600) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %193 = load i32, ptr %7, align 4, !tbaa !5
  %194 = icmp eq i32 %193, 0
  br i1 %194, label %198, label %195

195:                                              ; preds = %188
  %196 = load i32, ptr %8, align 4, !tbaa !5
  %197 = icmp eq i32 %196, 0
  br i1 %197, label %198, label %199

198:                                              ; preds = %195, %188
  br label %203

199:                                              ; preds = %195
  %200 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %201 = urem i64 %200, 5
  %202 = sub i64 100, %201
  br label %203

203:                                              ; preds = %199, %198
  %204 = phi i64 [ 0, %198 ], [ %202, %199 ]
  %205 = trunc i64 %204 to i32
  store i32 %205, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #7
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #7
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %206

206:                                              ; preds = %305, %203
  %207 = load i32, ptr %25, align 4, !tbaa !5
  %208 = load i32, ptr %22, align 4, !tbaa !5
  %209 = icmp slt i32 %207, %208
  br i1 %209, label %211, label %210

210:                                              ; preds = %206
  store i32 20, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %316

211:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %212 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %213 unwind label %240

213:                                              ; preds = %211
  %214 = load i32, ptr %7, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = urem i64 %212, %215
  %217 = trunc i64 %216 to i32
  store i32 %217, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %218 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %219 unwind label %244

219:                                              ; preds = %213
  %220 = load i32, ptr %7, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = urem i64 %218, %221
  %223 = trunc i64 %222 to i32
  store i32 %223, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %224 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %225 unwind label %248

225:                                              ; preds = %219
  %226 = load i32, ptr %8, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = urem i64 %224, %227
  %229 = trunc i64 %228 to i32
  store i32 %229, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %230 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %231 unwind label %252

231:                                              ; preds = %225
  %232 = load i32, ptr %8, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = urem i64 %230, %233
  %235 = trunc i64 %234 to i32
  store i32 %235, ptr %31, align 4, !tbaa !5
  %236 = load i32, ptr %26, align 4, !tbaa !5
  %237 = load i32, ptr %29, align 4, !tbaa !5
  %238 = icmp sgt i32 %236, %237
  br i1 %238, label %239, label %256

239:                                              ; preds = %231
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %29) #7
  br label %256

240:                                              ; preds = %211
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %27, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %28, align 4
  br label %315

244:                                              ; preds = %213
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %27, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %28, align 4
  br label %314

248:                                              ; preds = %219
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %27, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %28, align 4
  br label %313

252:                                              ; preds = %225
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %27, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %28, align 4
  br label %312

256:                                              ; preds = %239, %231
  %257 = load i32, ptr %30, align 4, !tbaa !5
  %258 = load i32, ptr %31, align 4, !tbaa !5
  %259 = icmp sgt i32 %257, %258
  br i1 %259, label %260, label %261

260:                                              ; preds = %256
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %31) #7
  br label %261

261:                                              ; preds = %260, %256
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %262 = load i32, ptr %26, align 4, !tbaa !5
  %263 = load i32, ptr %29, align 4, !tbaa !5
  %264 = load i32, ptr %30, align 4, !tbaa !5
  %265 = load i32, ptr %31, align 4, !tbaa !5
  %266 = invoke noundef i64 @_Z3rsqISt5arrayIS0_IxLm20EELm10EEENSt5decayIDTixixfp_fp1_fp3_EE4typeERKT_iiii(ptr noundef nonnull align 8 dereferenceable(1600) %10, i32 noundef %262, i32 noundef %263, i32 noundef %264, i32 noundef %265)
          to label %267 unwind label %275

267:                                              ; preds = %261
  store i64 %266, ptr %32, align 8, !tbaa !9
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %268 unwind label %275

268:                                              ; preds = %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  store i64 0, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  %269 = load i32, ptr %26, align 4, !tbaa !5
  store i32 %269, ptr %34, align 4, !tbaa !5
  br label %270

270:                                              ; preds = %300, %268
  %271 = load i32, ptr %34, align 4, !tbaa !5
  %272 = load i32, ptr %29, align 4, !tbaa !5
  %273 = icmp sle i32 %271, %272
  br i1 %273, label %279, label %274

274:                                              ; preds = %270
  store i32 23, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %303

275:                                              ; preds = %267, %261
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %27, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %312

279:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %280 = load i32, ptr %30, align 4, !tbaa !5
  store i32 %280, ptr %35, align 4, !tbaa !5
  br label %281

281:                                              ; preds = %296, %279
  %282 = load i32, ptr %35, align 4, !tbaa !5
  %283 = load i32, ptr %31, align 4, !tbaa !5
  %284 = icmp sle i32 %282, %283
  br i1 %284, label %286, label %285

285:                                              ; preds = %281
  store i32 26, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %299

286:                                              ; preds = %281
  %287 = load i32, ptr %34, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt5arrayIS_IxLm20EELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(1600) %9, i64 noundef %288) #7
  %290 = load i32, ptr %35, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm20EEixEm(ptr noundef nonnull align 8 dereferenceable(160) %289, i64 noundef %291) #7
  %293 = load i64, ptr %292, align 8, !tbaa !9
  %294 = load i64, ptr %33, align 8, !tbaa !9
  %295 = add nsw i64 %294, %293
  store i64 %295, ptr %33, align 8, !tbaa !9
  br label %296

296:                                              ; preds = %286
  %297 = load i32, ptr %35, align 4, !tbaa !5
  %298 = add nsw i32 %297, 1
  store i32 %298, ptr %35, align 4, !tbaa !5
  br label %281, !llvm.loop !17

299:                                              ; preds = %285
  br label %300

300:                                              ; preds = %299
  %301 = load i32, ptr %34, align 4, !tbaa !5
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %34, align 4, !tbaa !5
  br label %270, !llvm.loop !18

303:                                              ; preds = %274
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %304 unwind label %308

304:                                              ; preds = %303
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %305

305:                                              ; preds = %304
  %306 = load i32, ptr %25, align 4, !tbaa !5
  %307 = add nsw i32 %306, 1
  store i32 %307, ptr %25, align 4, !tbaa !5
  br label %206, !llvm.loop !19

308:                                              ; preds = %303
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %27, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %312

312:                                              ; preds = %308, %275, %252
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %313

313:                                              ; preds = %312, %248
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %314

314:                                              ; preds = %313, %244
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %315

315:                                              ; preds = %314, %240
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %349

316:                                              ; preds = %210
  %317 = invoke noundef zeroext i1 @_ZSteqIxSaIxEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %318 unwind label %321

318:                                              ; preds = %316
  br i1 %317, label %319, label %320

319:                                              ; preds = %318
  br label %326

320:                                              ; preds = %318
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 81, ptr noundef @__PRETTY_FUNCTION__._Z5test2v) #8
  unreachable

321:                                              ; preds = %316
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %27, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %28, align 4
  br label %349

325:                                              ; No predecessors!
  br label %326

326:                                              ; preds = %325, %319
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  store ptr %23, ptr %36, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %327 = load ptr, ptr %36, align 8, !tbaa !20
  %328 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %327) #7
  %329 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %328, ptr %329, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %330 = load ptr, ptr %36, align 8, !tbaa !20
  %331 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %330) #7
  %332 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %38, i32 0, i32 0
  store ptr %331, ptr %332, align 8
  br label %333

333:                                              ; preds = %343, %326
  %334 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38) #7
  br i1 %334, label %336, label %335

335:                                              ; preds = %333
  store i32 29, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  br label %345

336:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %337 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #7
  store ptr %337, ptr %39, align 8, !tbaa !20
  %338 = load i64, ptr %4, align 8, !tbaa !9
  %339 = mul nsw i64 31, %338
  %340 = load ptr, ptr %39, align 8, !tbaa !20
  %341 = load i64, ptr %340, align 8, !tbaa !9
  %342 = add nsw i64 %339, %341
  store i64 %342, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %343

343:                                              ; preds = %336
  %344 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #7
  br label %333

345:                                              ; preds = %335
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 1600, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 1600, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %346

346:                                              ; preds = %345
  %347 = load i32, ptr %5, align 4, !tbaa !5
  %348 = add nsw i32 %347, 1
  store i32 %348, ptr %5, align 4, !tbaa !5
  br label %47, !llvm.loop !22

349:                                              ; preds = %321, %315
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 1600, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 1600, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 2504, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  br label %376

350:                                              ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %351 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #7
  %352 = getelementptr inbounds %"class.std::chrono::time_point", ptr %40, i32 0, i32 0
  %353 = getelementptr inbounds %"class.std::chrono::duration", ptr %352, i32 0, i32 0
  store i64 %351, ptr %353, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %354 = call i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %355 = getelementptr inbounds %"class.std::chrono::duration", ptr %42, i32 0, i32 0
  store i64 %354, ptr %355, align 8
  %356 = call noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000000000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %42)
  %357 = sitofp i64 %356 to double
  %358 = fdiv double %357, 1.000000e+09
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  store double %358, ptr %41, align 8, !tbaa !23
  %359 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  %360 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %359, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %361 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  %362 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %361, ptr noundef @_ZSt5fixedRSt8ios_base)
  %363 = call i32 @_ZSt12setprecisioni(i32 noundef 3)
  %364 = getelementptr inbounds %"struct.std::_Setprecision", ptr %43, i32 0, i32 0
  store i32 %363, ptr %364, align 4
  %365 = getelementptr inbounds %"struct.std::_Setprecision", ptr %43, i32 0, i32 0
  %366 = load i32, ptr %365, align 4
  %367 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %362, i32 %366)
  %368 = load double, ptr %41, align 8, !tbaa !23
  %369 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %367, double noundef %368)
  %370 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %369, ptr noundef @.str.4)
  %371 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %370, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %372 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  %373 = load i64, ptr %4, align 8, !tbaa !9
  %374 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %372, i64 noundef %373)
  %375 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %374, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 2504, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  ret void

376:                                              ; preds = %349
  %377 = load ptr, ptr %27, align 8
  %378 = load i32, ptr %28, align 4
  %379 = insertvalue { ptr, i32 } poison, ptr %377, 0
  %380 = insertvalue { ptr, i32 } %379, i32 %378, 1
  resume { ptr, i32 } %380
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt5arrayIS_IxLm20EELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(1600), i64 noundef) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z22adjacent_difference_2dISt5arrayIS0_IxLm20EELm10EEEvRKT_iiRS3_(ptr noundef nonnull align 8 dereferenceable(1600), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(1600)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3addISt5arrayIS0_IxLm20EELm10EExEvRT_iiiiiiT0_(ptr noundef nonnull align 8 dereferenceable(1600), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z14partial_sum_2dISt5arrayIS0_IxLm20EELm10EEEvRKT_iiRS3_(ptr noundef nonnull align 8 dereferenceable(1600), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(1600)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3rsqISt5arrayIS0_IxLm20EELm10EEENSt5decayIDTixixfp_fp1_fp3_EE4typeERKT_iiii(ptr noundef nonnull align 8 dereferenceable(1600), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { nounwind }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = !{!21, !21, i64 0}
!21 = !{!"any pointer", !7, i64 0}
!22 = distinct !{!22, !12}
!23 = !{!24, !24, i64 0}
!24 = !{!"double", !7, i64 0}


; 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.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::mersenne_twister_engine" = type { [312 x i64], i64 }
%"struct.std::array" = type { [10 x %"struct.std::array.0"] }
%"struct.std::array.0" = type { [20 x i64] }
%"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 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [112 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__._Z5test2v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1

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

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqIxSaIxEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test2v() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::chrono::time_point", align 8
  %2 = alloca %"class.std::mersenne_twister_engine", align 8
  %3 = alloca %"struct.std::array", align 8
  %4 = alloca %"struct.std::array", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.std::chrono::time_point", align 8
  %20 = alloca %"class.std::chrono::duration", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  %21 = tail call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  store i64 %21, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 2504, ptr nonnull %2) #8
  call void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504) %2, i64 noundef 0)
  br label %40

22:                                               ; preds = %._crit_edge126
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  %23 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  store i64 %23, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #8
  %24 = call i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %1)
  store i64 %24, ptr %20, align 8
  %25 = call noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000000000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
  %26 = sitofp i64 %25 to double
  %27 = fdiv double %26, 1.000000e+09
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
  %32 = call i32 @_ZSt12setprecisioni(i32 noundef 3)
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %31, i32 %32)
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %33, double noundef %27)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull @.str.4)
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.5)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %37, i64 noundef %.1.lcssa)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  ret void

40:                                               ; preds = %0, %._crit_edge126
  %.0128 = phi i64 [ 0, %0 ], [ %.1.lcssa, %._crit_edge126 ]
  %.062127 = phi i32 [ 0, %0 ], [ %198, %._crit_edge126 ]
  %41 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %42 = urem i64 %41, 11
  %43 = trunc nuw nsw i64 %42 to i32
  %44 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %45 = urem i64 %44, 21
  %46 = trunc nuw nsw i64 %45 to i32
  call void @llvm.lifetime.start.p0(i64 1600, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 1600, ptr nonnull %4) #8
  %.not129 = icmp eq i64 %42, 0
  %.not130 = icmp eq i64 %45, 0
  %or.cond170 = or i1 %.not129, %.not130
  br i1 %or.cond170, label %._crit_edge97.thread, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %40
  %umax = call i32 @llvm.umax.i32(i32 %46, i32 1)
  %umax140 = call i32 @llvm.umax.i32(i32 %43, i32 1)
  %wide.trip.count141 = zext nneg i32 %umax140 to i64
  %wide.trip.count = zext nneg i32 %umax to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %indvars.iv137 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next138, %._crit_edge.us ]
  br label %47

47:                                               ; preds = %.preheader.us, %47
  %indvars.iv = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next, %47 ]
  %48 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %49 = urem i64 %48, 1000000
  %50 = add nuw nsw i64 %49, 1
  %51 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt5arrayIS_IxLm20EELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(1600) %3, i64 noundef %indvars.iv137) #8
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm20EEixEm(ptr noundef nonnull align 8 dereferenceable(160) %51, i64 noundef %indvars.iv) #8
  store i64 %50, ptr %52, align 8, !tbaa !5
  %53 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt5arrayIS_IxLm20EELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(1600) %4, i64 noundef %indvars.iv137) #8
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm20EEixEm(ptr noundef nonnull align 8 dereferenceable(160) %53, i64 noundef %indvars.iv) #8
  store i64 %50, ptr %54, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us, label %47, !llvm.loop !9

._crit_edge.us:                                   ; preds = %47
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %exitcond142.not = icmp eq i64 %indvars.iv.next138, %wide.trip.count141
  br i1 %exitcond142.not, label %._crit_edge97, label %.preheader.us, !llvm.loop !11

._crit_edge97.thread:                             ; preds = %40
  call void @_Z22adjacent_difference_2dISt5arrayIS0_IxLm20EELm10EEEvRKT_iiRS3_(ptr noundef nonnull align 8 dereferenceable(1600) %4, i32 noundef %43, i32 noundef %46, ptr noundef nonnull align 8 dereferenceable(1600) %4)
  %55 = icmp eq i64 %45, 0
  %or.cond163 = or i1 %.not129, %55
  br label %._crit_edge108

._crit_edge97:                                    ; preds = %._crit_edge.us
  call void @_Z22adjacent_difference_2dISt5arrayIS0_IxLm20EELm10EEEvRKT_iiRS3_(ptr noundef nonnull align 8 dereferenceable(1600) %4, i32 noundef %43, i32 noundef %46, ptr noundef nonnull align 8 dereferenceable(1600) %4)
  %56 = icmp eq i64 %45, 0
  %or.cond = or i1 %.not129, %56
  br i1 %or.cond, label %.critedge, label %.lr.ph107.preheader

.lr.ph107.preheader:                              ; preds = %._crit_edge97
  %57 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %58 = urem i64 %57, 5
  %59 = trunc nuw nsw i64 %58 to i32
  %60 = sub nuw nsw i32 100, %59
  br label %.lr.ph107

._crit_edge108:                                   ; preds = %._crit_edge104, %._crit_edge97.thread
  %or.cond164167 = phi i1 [ %or.cond163, %._crit_edge97.thread ], [ %or.cond, %._crit_edge104 ]
  call void @_Z14partial_sum_2dISt5arrayIS0_IxLm20EELm10EEEvRKT_iiRS3_(ptr noundef nonnull align 8 dereferenceable(1600) %4, i32 noundef %43, i32 noundef %46, ptr noundef nonnull align 8 dereferenceable(1600) %4)
  call void @_Z14partial_sum_2dISt5arrayIS0_IxLm20EELm10EEEvRKT_iiRS3_(ptr noundef nonnull align 8 dereferenceable(1600) %4, i32 noundef %43, i32 noundef %46, ptr noundef nonnull align 8 dereferenceable(1600) %4)
  br i1 %or.cond164167, label %115, label %111

.lr.ph107:                                        ; preds = %.lr.ph107.preheader, %._crit_edge104
  %.077105 = phi i32 [ %96, %._crit_edge104 ], [ 0, %.lr.ph107.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %61 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %62 = urem i64 %61, %42
  %63 = trunc nuw nsw i64 %62 to i32
  store i32 %63, ptr %5, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  %64 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %65 = urem i64 %64, %42
  %66 = trunc nuw nsw i64 %65 to i32
  store i32 %66, ptr %6, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %67 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %68 = urem i64 %67, %45
  %69 = trunc nuw nsw i64 %68 to i32
  store i32 %69, ptr %7, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  %70 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %71 = urem i64 %70, %45
  %72 = trunc nuw nsw i64 %71 to i32
  store i32 %72, ptr %8, align 4, !tbaa !12
  %73 = load i32, ptr %5, align 4, !tbaa !12
  %74 = load i32, ptr %6, align 4, !tbaa !12
  %75 = icmp sgt i32 %73, %74
  br i1 %75, label %76, label %77

76:                                               ; preds = %.lr.ph107
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6) #8
  %.pre = load i32, ptr %8, align 4, !tbaa !12
  br label %77

77:                                               ; preds = %76, %.lr.ph107
  %78 = phi i32 [ %.pre, %76 ], [ %72, %.lr.ph107 ]
  %79 = load i32, ptr %7, align 4, !tbaa !12
  %80 = icmp sgt i32 %79, %78
  br i1 %80, label %81, label %82

81:                                               ; preds = %77
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8) #8
  br label %82

82:                                               ; preds = %81, %77
  %83 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %84 = urem i64 %83, 1000000
  %85 = add nuw nsw i64 %84, 1
  %86 = load i32, ptr %5, align 4, !tbaa !12
  %87 = load i32, ptr %6, align 4, !tbaa !12
  %88 = load i32, ptr %7, align 4, !tbaa !12
  %89 = load i32, ptr %8, align 4, !tbaa !12
  call void @_Z3addISt5arrayIS0_IxLm20EELm10EExEvRT_iiiiiiT0_(ptr noundef nonnull align 8 dereferenceable(1600) %4, i32 noundef %43, i32 noundef %46, i32 noundef %86, i32 noundef %87, i32 noundef %88, i32 noundef %89, i64 noundef %85)
  %90 = load i32, ptr %5, align 4, !tbaa !12
  %91 = load i32, ptr %6, align 4, !tbaa !12
  %.not85100 = icmp sgt i32 %90, %91
  br i1 %.not85100, label %._crit_edge104, label %.lr.ph103

.lr.ph103:                                        ; preds = %82
  %92 = load i32, ptr %7, align 4, !tbaa !12
  %93 = load i32, ptr %8, align 4, !tbaa !12
  %94 = icmp sgt i32 %92, %93
  br i1 %94, label %._crit_edge104, label %.lr.ph103.split.preheader

.lr.ph103.split.preheader:                        ; preds = %.lr.ph103
  %95 = sext i32 %90 to i64
  br label %.lr.ph103.split

._crit_edge104:                                   ; preds = %._crit_edge, %.lr.ph103, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  %96 = add nuw nsw i32 %.077105, 1
  %exitcond149.not = icmp eq i32 %96, %60
  br i1 %exitcond149.not, label %._crit_edge108, label %.lr.ph107, !llvm.loop !14

.lr.ph103.split:                                  ; preds = %.lr.ph103.split.preheader, %._crit_edge
  %97 = phi i32 [ %91, %.lr.ph103.split.preheader ], [ %101, %._crit_edge ]
  %98 = phi i32 [ %93, %.lr.ph103.split.preheader ], [ %102, %._crit_edge ]
  %indvars.iv146 = phi i64 [ %95, %.lr.ph103.split.preheader ], [ %indvars.iv.next147, %._crit_edge ]
  %99 = load i32, ptr %7, align 4, !tbaa !12
  %.not8698 = icmp sgt i32 %99, %98
  br i1 %.not8698, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph103.split
  %100 = sext i32 %99 to i64
  br label %104

._crit_edge.loopexit:                             ; preds = %104
  %.pre158 = load i32, ptr %6, align 4, !tbaa !12
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph103.split
  %101 = phi i32 [ %.pre158, %._crit_edge.loopexit ], [ %97, %.lr.ph103.split ]
  %102 = phi i32 [ %109, %._crit_edge.loopexit ], [ %98, %.lr.ph103.split ]
  %indvars.iv.next147 = add nsw i64 %indvars.iv146, 1
  %103 = sext i32 %101 to i64
  %.not85.not = icmp slt i64 %indvars.iv146, %103
  br i1 %.not85.not, label %.lr.ph103.split, label %._crit_edge104, !llvm.loop !15

104:                                              ; preds = %.lr.ph, %104
  %indvars.iv143 = phi i64 [ %100, %.lr.ph ], [ %indvars.iv.next144, %104 ]
  %105 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt5arrayIS_IxLm20EELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(1600) %3, i64 noundef %indvars.iv146) #8
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm20EEixEm(ptr noundef nonnull align 8 dereferenceable(160) %105, i64 noundef %indvars.iv143) #8
  %107 = load i64, ptr %106, align 8, !tbaa !5
  %108 = add nsw i64 %107, %85
  store i64 %108, ptr %106, align 8, !tbaa !5
  %indvars.iv.next144 = add nsw i64 %indvars.iv143, 1
  %109 = load i32, ptr %8, align 4, !tbaa !12
  %110 = sext i32 %109 to i64
  %.not86.not = icmp slt i64 %indvars.iv143, %110
  br i1 %.not86.not, label %104, label %._crit_edge.loopexit, !llvm.loop !17

111:                                              ; preds = %._crit_edge108
  %112 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %113 = urem i64 %112, 5
  %114 = sub nuw nsw i64 100, %113
  br label %115

.critedge:                                        ; preds = %._crit_edge97
  call void @_Z14partial_sum_2dISt5arrayIS0_IxLm20EELm10EEEvRKT_iiRS3_(ptr noundef nonnull align 8 dereferenceable(1600) %4, i32 noundef %43, i32 noundef %46, ptr noundef nonnull align 8 dereferenceable(1600) %4)
  call void @_Z14partial_sum_2dISt5arrayIS0_IxLm20EELm10EEEvRKT_iiRS3_(ptr noundef nonnull align 8 dereferenceable(1600) %4, i32 noundef %43, i32 noundef %46, ptr noundef nonnull align 8 dereferenceable(1600) %4)
  br label %115

115:                                              ; preds = %.critedge, %._crit_edge108, %111
  %116 = phi i64 [ %114, %111 ], [ 0, %._crit_edge108 ], [ 0, %.critedge ]
  %117 = trunc nuw nsw i64 %116 to i32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #8
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %.not132 = icmp eq i64 %116, 0
  br i1 %.not132, label %._crit_edge122, label %.lr.ph121

._crit_edge122:                                   ; preds = %182, %115
  %118 = invoke noundef zeroext i1 @_ZSteqIxSaIxEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %190 unwind label %192

.lr.ph121:                                        ; preds = %115, %182
  %.073119 = phi i32 [ %183, %182 ], [ 0, %115 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  %119 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %120 unwind label %139

120:                                              ; preds = %.lr.ph121
  %121 = urem i64 %119, %42
  %122 = trunc nuw nsw i64 %121 to i32
  store i32 %122, ptr %11, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  %123 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %124 unwind label %141

124:                                              ; preds = %120
  %125 = urem i64 %123, %42
  %126 = trunc nuw nsw i64 %125 to i32
  store i32 %126, ptr %12, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  %127 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %128 unwind label %143

128:                                              ; preds = %124
  %129 = urem i64 %127, %45
  %130 = trunc nuw nsw i64 %129 to i32
  store i32 %130, ptr %13, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  %131 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %132 unwind label %145

132:                                              ; preds = %128
  %133 = urem i64 %131, %45
  %134 = trunc nuw nsw i64 %133 to i32
  store i32 %134, ptr %14, align 4, !tbaa !12
  %135 = load i32, ptr %11, align 4, !tbaa !12
  %136 = load i32, ptr %12, align 4, !tbaa !12
  %137 = icmp sgt i32 %135, %136
  br i1 %137, label %138, label %147

138:                                              ; preds = %132
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12) #8
  %.pre159 = load i32, ptr %14, align 4, !tbaa !12
  br label %147

139:                                              ; preds = %.lr.ph121
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %189

141:                                              ; preds = %120
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %188

143:                                              ; preds = %124
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %187

145:                                              ; preds = %128
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %186

147:                                              ; preds = %138, %132
  %148 = phi i32 [ %.pre159, %138 ], [ %134, %132 ]
  %149 = load i32, ptr %13, align 4, !tbaa !12
  %150 = icmp sgt i32 %149, %148
  br i1 %150, label %151, label %152

151:                                              ; preds = %147
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14) #8
  %.pre160 = load i32, ptr %13, align 4, !tbaa !12
  %.pre161 = load i32, ptr %14, align 4, !tbaa !12
  br label %152

152:                                              ; preds = %151, %147
  %153 = phi i32 [ %.pre161, %151 ], [ %148, %147 ]
  %154 = phi i32 [ %.pre160, %151 ], [ %149, %147 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %155 = load i32, ptr %11, align 4, !tbaa !12
  %156 = load i32, ptr %12, align 4, !tbaa !12
  %157 = call noundef i64 @_Z3rsqISt5arrayIS0_IxLm20EELm10EEENSt5decayIDTixixfp_fp1_fp3_EE4typeERKT_iiii(ptr noundef nonnull align 8 dereferenceable(1600) %4, i32 noundef %155, i32 noundef %156, i32 noundef %154, i32 noundef %153)
  store i64 %157, ptr %15, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %158 unwind label %165

158:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  store i64 0, ptr %16, align 8, !tbaa !5
  %159 = load i32, ptr %11, align 4, !tbaa !12
  %160 = load i32, ptr %12, align 4, !tbaa !12
  %.not114 = icmp sgt i32 %159, %160
  br i1 %.not114, label %._crit_edge118, label %.lr.ph117

.lr.ph117:                                        ; preds = %158
  %161 = load i32, ptr %13, align 4, !tbaa !12
  %162 = load i32, ptr %14, align 4, !tbaa !12
  %163 = icmp sgt i32 %161, %162
  br i1 %163, label %._crit_edge118, label %.lr.ph117.split.preheader

.lr.ph117.split.preheader:                        ; preds = %.lr.ph117
  %164 = sext i32 %159 to i64
  br label %.lr.ph117.split

._crit_edge118:                                   ; preds = %._crit_edge113, %.lr.ph117, %158
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %182 unwind label %184

165:                                              ; preds = %152
  %166 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %186

.lr.ph117.split:                                  ; preds = %.lr.ph117.split.preheader, %._crit_edge113
  %167 = phi i32 [ %160, %.lr.ph117.split.preheader ], [ %171, %._crit_edge113 ]
  %168 = phi i32 [ %162, %.lr.ph117.split.preheader ], [ %172, %._crit_edge113 ]
  %indvars.iv153 = phi i64 [ %164, %.lr.ph117.split.preheader ], [ %indvars.iv.next154, %._crit_edge113 ]
  %169 = load i32, ptr %13, align 4, !tbaa !12
  %.not84109 = icmp sgt i32 %169, %168
  br i1 %.not84109, label %._crit_edge113, label %.lr.ph112

.lr.ph112:                                        ; preds = %.lr.ph117.split
  %170 = sext i32 %169 to i64
  br label %174

._crit_edge113.loopexit:                          ; preds = %174
  %.pre162 = load i32, ptr %12, align 4, !tbaa !12
  br label %._crit_edge113

._crit_edge113:                                   ; preds = %._crit_edge113.loopexit, %.lr.ph117.split
  %171 = phi i32 [ %.pre162, %._crit_edge113.loopexit ], [ %167, %.lr.ph117.split ]
  %172 = phi i32 [ %180, %._crit_edge113.loopexit ], [ %168, %.lr.ph117.split ]
  %indvars.iv.next154 = add nsw i64 %indvars.iv153, 1
  %173 = sext i32 %171 to i64
  %.not.not = icmp slt i64 %indvars.iv153, %173
  br i1 %.not.not, label %.lr.ph117.split, label %._crit_edge118, !llvm.loop !18

174:                                              ; preds = %.lr.ph112, %174
  %indvars.iv150 = phi i64 [ %170, %.lr.ph112 ], [ %indvars.iv.next151, %174 ]
  %175 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt5arrayIS_IxLm20EELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(1600) %3, i64 noundef %indvars.iv153) #8
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIxLm20EEixEm(ptr noundef nonnull align 8 dereferenceable(160) %175, i64 noundef %indvars.iv150) #8
  %177 = load i64, ptr %176, align 8, !tbaa !5
  %178 = load i64, ptr %16, align 8, !tbaa !5
  %179 = add nsw i64 %178, %177
  store i64 %179, ptr %16, align 8, !tbaa !5
  %indvars.iv.next151 = add nsw i64 %indvars.iv150, 1
  %180 = load i32, ptr %14, align 4, !tbaa !12
  %181 = sext i32 %180 to i64
  %.not84.not = icmp slt i64 %indvars.iv150, %181
  br i1 %.not84.not, label %174, label %._crit_edge113.loopexit, !llvm.loop !19

182:                                              ; preds = %._crit_edge118
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  %183 = add nuw nsw i32 %.073119, 1
  %exitcond156.not = icmp eq i32 %183, %117
  br i1 %exitcond156.not, label %._crit_edge122, label %.lr.ph121, !llvm.loop !20

184:                                              ; preds = %._crit_edge118
  %185 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  br label %186

186:                                              ; preds = %184, %165, %145
  %.pn = phi { ptr, i32 } [ %185, %184 ], [ %166, %165 ], [ %146, %145 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  br label %187

187:                                              ; preds = %186, %143
  %.pn.pn = phi { ptr, i32 } [ %.pn, %186 ], [ %144, %143 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %188

188:                                              ; preds = %187, %141
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %187 ], [ %142, %141 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  br label %189

189:                                              ; preds = %188, %139
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %188 ], [ %140, %139 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  br label %205

190:                                              ; preds = %._crit_edge122
  br i1 %118, label %194, label %191

191:                                              ; preds = %190
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 81, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test2v) #9
  unreachable

192:                                              ; preds = %._crit_edge122
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %205

194:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  %195 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  store ptr %195, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  %196 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  store ptr %196, ptr %18, align 8
  %197 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  br i1 %197, label %.lr.ph125, label %._crit_edge126

._crit_edge126:                                   ; preds = %.lr.ph125, %194
  %.1.lcssa = phi i64 [ %.0128, %194 ], [ %202, %.lr.ph125 ]
  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 @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 1600, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 1600, ptr nonnull %3) #8
  %198 = add nuw nsw i32 %.062127, 1
  %exitcond157.not = icmp eq i32 %198, 100000
  br i1 %exitcond157.not, label %22, label %40, !llvm.loop !21

.lr.ph125:                                        ; preds = %194, %.lr.ph125
  %.1123 = phi i64 [ %202, %.lr.ph125 ], [ %.0128, %194 ]
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  %200 = mul nsw i64 %.1123, 31
  %201 = load i64, ptr %199, align 8, !tbaa !5
  %202 = add nsw i64 %201, %200
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  %204 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  br i1 %204, label %.lr.ph125, label %._crit_edge126

205:                                              ; preds = %192, %189
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %189 ], [ %193, %192 ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 1600, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 1600, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt5arrayIS_IxLm20EELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(1600), i64 noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z22adjacent_difference_2dISt5arrayIS0_IxLm20EELm10EEEvRKT_iiRS3_(ptr noundef nonnull align 8 dereferenceable(1600), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(1600)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3addISt5arrayIS0_IxLm20EELm10EExEvRT_iiiiiiT0_(ptr noundef nonnull align 8 dereferenceable(1600), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z14partial_sum_2dISt5arrayIS0_IxLm20EELm10EEEvRKT_iiRS3_(ptr noundef nonnull align 8 dereferenceable(1600), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(1600)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3rsqISt5arrayIS0_IxLm20EELm10EEENSt5decayIDTixixfp_fp1_fp3_EE4typeERKT_iiii(ptr noundef nonnull align 8 dereferenceable(1600), i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"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 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10, !16}
!16 = !{!"llvm.loop.unswitch.partial.disable"}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10, !16}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}


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