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

; 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 }
%"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
@__PRETTY_FUNCTION__._Z5test1v = external hidden unnamed_addr constant [13 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test1v() #0 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 [10 x [20 x i64]], align 16
  %10 = alloca [10 x [20 x i64]], align 16
  %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 = getelementptr inbounds [10 x [20 x i64]], ptr %9, i64 0, i64 %74
  %76 = load i32, ptr %12, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [20 x i64], ptr %75, i64 0, i64 %77
  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 = getelementptr inbounds [10 x [20 x i64]], ptr %10, i64 0, i64 %80
  %82 = load i32, ptr %12, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [20 x i64], ptr %81, i64 0, i64 %83
  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_2dIA10_A20_xEvRKT_iiRS2_(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 @_Z3addIA10_A20_xxEvRT_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 = getelementptr inbounds [10 x [20 x i64]], ptr %9, i64 0, i64 %170
  %172 = load i32, ptr %21, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [20 x i64], ptr %171, i64 0, i64 %173
  %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_2dIA10_A20_xEvRKT_iiRS2_(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_2dIA10_A20_xEvRKT_iiRS2_(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 @_Z3rsqIA10_A20_xENSt5decayIDTixixfp_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 = getelementptr inbounds [10 x [20 x i64]], ptr %9, i64 0, i64 %288
  %290 = load i32, ptr %35, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [20 x i64], ptr %289, i64 0, i64 %291
  %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 38, ptr noundef @__PRETTY_FUNCTION__._Z5test1v) #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.2)
  %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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress 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)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 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)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000000000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 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) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #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) #0 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) #4

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 }
%"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
@__PRETTY_FUNCTION__._Z5test1v = external hidden unnamed_addr constant [13 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test1v() local_unnamed_addr #0 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 [10 x [20 x i64]], align 16
  %4 = alloca [10 x [20 x i64]], align 16
  %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_edge130
  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.2)
  %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_edge130
  %.0132 = phi i64 [ 0, %0 ], [ %.1.lcssa, %._crit_edge130 ]
  %.062131 = phi i32 [ 0, %0 ], [ %196, %._crit_edge130 ]
  %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
  %.not133 = icmp eq i64 %42, 0
  %.not134 = icmp eq i64 %45, 0
  %or.cond178 = or i1 %.not133, %.not134
  br i1 %or.cond178, label %._crit_edge97.thread, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %40
  %umax = call i32 @llvm.umax.i32(i32 %46, i32 1)
  %umax144 = call i32 @llvm.umax.i32(i32 %43, i32 1)
  %wide.trip.count145 = zext nneg i32 %umax144 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.iv141 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next142, %._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 = getelementptr inbounds [10 x [20 x i64]], ptr %3, i64 0, i64 %indvars.iv141, i64 %indvars.iv
  store i64 %50, ptr %51, align 8, !tbaa !5
  %52 = getelementptr inbounds [10 x [20 x i64]], ptr %4, i64 0, i64 %indvars.iv141, i64 %indvars.iv
  store i64 %50, ptr %52, 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.next142 = add nuw nsw i64 %indvars.iv141, 1
  %exitcond146.not = icmp eq i64 %indvars.iv.next142, %wide.trip.count145
  br i1 %exitcond146.not, label %._crit_edge97, label %.preheader.us, !llvm.loop !11

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

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

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

._crit_edge108:                                   ; preds = %._crit_edge104, %._crit_edge97.thread
  %or.cond173176 = phi i1 [ %or.cond172, %._crit_edge97.thread ], [ %or.cond, %._crit_edge104 ]
  call void @_Z14partial_sum_2dIA10_A20_xEvRKT_iiRS2_(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_2dIA10_A20_xEvRKT_iiRS2_(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.cond173176, label %112, label %108

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

74:                                               ; 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 %75

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

79:                                               ; preds = %75
  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 %80

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

.lr.ph103:                                        ; preds = %80
  %90 = load i32, ptr %7, align 4, !tbaa !12
  %91 = load i32, ptr %8, align 4, !tbaa !12
  %.not8698 = icmp sgt i32 %90, %91
  br i1 %.not8698, label %._crit_edge104, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph103
  %92 = sext i32 %90 to i64
  %93 = add i32 %91, 1
  %94 = sext i32 %88 to i64
  %95 = add i32 %89, 1
  %96 = sub i32 %91, %90
  %97 = zext i32 %96 to i64
  %98 = add nuw nsw i64 %97, 1
  %min.iters.check184 = icmp ult i32 %96, 3
  %n.vec187 = and i64 %98, 8589934588
  %ind.end188 = add nsw i64 %n.vec187, %92
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %83, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  %cmp.n196 = icmp eq i64 %98, %n.vec187
  br label %.lr.ph

._crit_edge104:                                   ; preds = %._crit_edge, %.lr.ph103, %80
  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
  %99 = add nuw nsw i32 %.077105, 1
  %exitcond156.not = icmp eq i32 %99, %58
  br i1 %exitcond156.not, label %._crit_edge108, label %.lr.ph107, !llvm.loop !14

.lr.ph:                                           ; preds = %.lr.ph.preheader, %._crit_edge
  %indvars.iv151 = phi i64 [ %94, %.lr.ph.preheader ], [ %indvars.iv.next152, %._crit_edge ]
  br i1 %min.iters.check184, label %scalar.ph183.preheader, label %vector.body190

scalar.ph183.preheader:                           ; preds = %middle.block182, %.lr.ph
  %indvars.iv147.ph = phi i64 [ %92, %.lr.ph ], [ %ind.end188, %middle.block182 ]
  br label %scalar.ph183

vector.body190:                                   ; preds = %.lr.ph, %vector.body190
  %index191 = phi i64 [ %index.next195, %vector.body190 ], [ 0, %.lr.ph ]
  %offset.idx192 = add i64 %index191, %92
  %100 = getelementptr inbounds [10 x [20 x i64]], ptr %3, i64 0, i64 %indvars.iv151, i64 %offset.idx192
  %101 = getelementptr inbounds i8, ptr %100, i64 16
  %wide.load193 = load <2 x i64>, ptr %100, align 8, !tbaa !5
  %wide.load194 = load <2 x i64>, ptr %101, align 8, !tbaa !5
  %102 = add nsw <2 x i64> %wide.load193, %broadcast.splat
  %103 = add nsw <2 x i64> %wide.load194, %broadcast.splat
  store <2 x i64> %102, ptr %100, align 8, !tbaa !5
  store <2 x i64> %103, ptr %101, align 8, !tbaa !5
  %index.next195 = add nuw i64 %index191, 4
  %104 = icmp eq i64 %index.next195, %n.vec187
  br i1 %104, label %middle.block182, label %vector.body190, !llvm.loop !15

middle.block182:                                  ; preds = %vector.body190
  br i1 %cmp.n196, label %._crit_edge, label %scalar.ph183.preheader

._crit_edge:                                      ; preds = %scalar.ph183, %middle.block182
  %indvars.iv.next152 = add nsw i64 %indvars.iv151, 1
  %lftr.wideiv154 = trunc i64 %indvars.iv.next152 to i32
  %exitcond155.not = icmp eq i32 %95, %lftr.wideiv154
  br i1 %exitcond155.not, label %._crit_edge104, label %.lr.ph, !llvm.loop !18

scalar.ph183:                                     ; preds = %scalar.ph183.preheader, %scalar.ph183
  %indvars.iv147 = phi i64 [ %indvars.iv.next148, %scalar.ph183 ], [ %indvars.iv147.ph, %scalar.ph183.preheader ]
  %105 = getelementptr inbounds [10 x [20 x i64]], ptr %3, i64 0, i64 %indvars.iv151, i64 %indvars.iv147
  %106 = load i64, ptr %105, align 8, !tbaa !5
  %107 = add nsw i64 %106, %83
  store i64 %107, ptr %105, align 8, !tbaa !5
  %indvars.iv.next148 = add nsw i64 %indvars.iv147, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next148 to i32
  %exitcond150.not = icmp eq i32 %93, %lftr.wideiv
  br i1 %exitcond150.not, label %._crit_edge, label %scalar.ph183, !llvm.loop !19

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

.critedge:                                        ; preds = %._crit_edge97
  call void @_Z14partial_sum_2dIA10_A20_xEvRKT_iiRS2_(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_2dIA10_A20_xEvRKT_iiRS2_(ptr noundef nonnull align 8 dereferenceable(1600) %4, i32 noundef %43, i32 noundef %46, ptr noundef nonnull align 8 dereferenceable(1600) %4)
  br label %112

112:                                              ; preds = %.critedge, %._crit_edge108, %108
  %113 = phi i64 [ %111, %108 ], [ 0, %._crit_edge108 ], [ 0, %.critedge ]
  %114 = trunc nuw nsw i64 %113 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
  %.not136 = icmp eq i64 %113, 0
  br i1 %.not136, label %._crit_edge126, label %.lr.ph125

._crit_edge126:                                   ; preds = %180, %112
  %115 = 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 %188 unwind label %190

.lr.ph125:                                        ; preds = %112, %180
  %.073123 = phi i32 [ %181, %180 ], [ 0, %112 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  %116 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %117 unwind label %136

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

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

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

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

135:                                              ; preds = %129
  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
  %.pre169 = load i32, ptr %14, align 4, !tbaa !12
  br label %144

136:                                              ; preds = %.lr.ph125
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %187

138:                                              ; preds = %117
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %186

140:                                              ; preds = %121
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %185

142:                                              ; preds = %125
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %184

144:                                              ; preds = %135, %129
  %145 = phi i32 [ %.pre169, %135 ], [ %131, %129 ]
  %146 = load i32, ptr %13, align 4, !tbaa !12
  %147 = icmp sgt i32 %146, %145
  br i1 %147, label %148, label %149

148:                                              ; preds = %144
  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
  %.pre170 = load i32, ptr %13, align 4, !tbaa !12
  %.pre171 = load i32, ptr %14, align 4, !tbaa !12
  br label %149

149:                                              ; preds = %148, %144
  %150 = phi i32 [ %.pre171, %148 ], [ %145, %144 ]
  %151 = phi i32 [ %.pre170, %148 ], [ %146, %144 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %152 = load i32, ptr %11, align 4, !tbaa !12
  %153 = load i32, ptr %12, align 4, !tbaa !12
  %154 = call noundef i64 @_Z3rsqIA10_A20_xENSt5decayIDTixixfp_fp1_fp3_EE4typeERKT_iiii(ptr noundef nonnull align 8 dereferenceable(1600) %4, i32 noundef %152, i32 noundef %153, i32 noundef %151, i32 noundef %150)
  store i64 %154, 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 %155 unwind label %167

155:                                              ; preds = %149
  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
  %156 = load i32, ptr %11, align 4, !tbaa !12
  %157 = load i32, ptr %12, align 4, !tbaa !12
  %.not117 = icmp sgt i32 %156, %157
  br i1 %.not117, label %._crit_edge122, label %.lr.ph121

.lr.ph121:                                        ; preds = %155
  %158 = load i32, ptr %13, align 4, !tbaa !12
  %159 = load i32, ptr %14, align 4, !tbaa !12
  %.not84109 = icmp sgt i32 %158, %159
  br i1 %.not84109, label %._crit_edge122, label %.lr.ph112.preheader

.lr.ph112.preheader:                              ; preds = %.lr.ph121
  %160 = sext i32 %158 to i64
  %161 = add i32 %159, 1
  %162 = sext i32 %156 to i64
  %163 = add i32 %157, 1
  %164 = sub i32 %159, %158
  %165 = zext i32 %164 to i64
  %166 = add nuw nsw i64 %165, 1
  %min.iters.check = icmp ult i32 %164, 3
  %n.vec = and i64 %166, 8589934588
  %ind.end = add nsw i64 %n.vec, %160
  %cmp.n = icmp eq i64 %166, %n.vec
  br label %.lr.ph112

._crit_edge122.split:                             ; preds = %._crit_edge113
  store i64 %.lcssa, ptr %16, align 8, !tbaa !5
  br label %._crit_edge122

._crit_edge122:                                   ; preds = %.lr.ph121, %._crit_edge122.split, %155
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %180 unwind label %182

167:                                              ; preds = %149
  %168 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %184

.lr.ph112:                                        ; preds = %.lr.ph112.preheader, %._crit_edge113
  %indvars.iv162 = phi i64 [ %162, %.lr.ph112.preheader ], [ %indvars.iv.next163, %._crit_edge113 ]
  %.lcssa116118 = phi i64 [ 0, %.lr.ph112.preheader ], [ %.lcssa, %._crit_edge113 ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph112
  %indvars.iv157.ph = phi i64 [ %160, %.lr.ph112 ], [ %ind.end, %middle.block ]
  %.ph = phi i64 [ %.lcssa116118, %.lr.ph112 ], [ %175, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph112
  %169 = insertelement <2 x i64> <i64 poison, i64 0>, i64 %.lcssa116118, i64 0
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ %169, %vector.ph ], [ %172, %vector.body ]
  %vec.phi180 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %173, %vector.body ]
  %offset.idx = add i64 %index, %160
  %170 = getelementptr inbounds [10 x [20 x i64]], ptr %3, i64 0, i64 %indvars.iv162, i64 %offset.idx
  %171 = getelementptr inbounds i8, ptr %170, i64 16
  %wide.load = load <2 x i64>, ptr %170, align 8, !tbaa !5
  %wide.load181 = load <2 x i64>, ptr %171, align 8, !tbaa !5
  %172 = add <2 x i64> %vec.phi, %wide.load
  %173 = add <2 x i64> %vec.phi180, %wide.load181
  %index.next = add nuw i64 %index, 4
  %174 = icmp eq i64 %index.next, %n.vec
  br i1 %174, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %173, %172
  %175 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  br i1 %cmp.n, label %._crit_edge113, label %scalar.ph.preheader

._crit_edge113:                                   ; preds = %scalar.ph, %middle.block
  %.lcssa = phi i64 [ %175, %middle.block ], [ %179, %scalar.ph ]
  %indvars.iv.next163 = add nsw i64 %indvars.iv162, 1
  %lftr.wideiv165 = trunc i64 %indvars.iv.next163 to i32
  %exitcond166.not = icmp eq i32 %163, %lftr.wideiv165
  br i1 %exitcond166.not, label %._crit_edge122.split, label %.lr.ph112, !llvm.loop !21

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv157 = phi i64 [ %indvars.iv.next158, %scalar.ph ], [ %indvars.iv157.ph, %scalar.ph.preheader ]
  %176 = phi i64 [ %179, %scalar.ph ], [ %.ph, %scalar.ph.preheader ]
  %177 = getelementptr inbounds [10 x [20 x i64]], ptr %3, i64 0, i64 %indvars.iv162, i64 %indvars.iv157
  %178 = load i64, ptr %177, align 8, !tbaa !5
  %179 = add nsw i64 %176, %178
  %indvars.iv.next158 = add nsw i64 %indvars.iv157, 1
  %lftr.wideiv160 = trunc i64 %indvars.iv.next158 to i32
  %exitcond161.not = icmp eq i32 %161, %lftr.wideiv160
  br i1 %exitcond161.not, label %._crit_edge113, label %scalar.ph, !llvm.loop !22

180:                                              ; preds = %._crit_edge122
  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
  %181 = add nuw nsw i32 %.073123, 1
  %exitcond167.not = icmp eq i32 %181, %114
  br i1 %exitcond167.not, label %._crit_edge126, label %.lr.ph125, !llvm.loop !23

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

184:                                              ; preds = %182, %167, %142
  %.pn = phi { ptr, i32 } [ %183, %182 ], [ %168, %167 ], [ %143, %142 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  br label %185

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

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

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

188:                                              ; preds = %._crit_edge126
  br i1 %115, label %192, label %189

189:                                              ; preds = %188
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 38, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

190:                                              ; preds = %._crit_edge126
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %203

192:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  %193 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  store ptr %193, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  %194 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  store ptr %194, ptr %18, align 8
  %195 = 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 %195, label %.lr.ph129, label %._crit_edge130

._crit_edge130:                                   ; preds = %.lr.ph129, %192
  %.1.lcssa = phi i64 [ %.0132, %192 ], [ %200, %.lr.ph129 ]
  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
  %196 = add nuw nsw i32 %.062131, 1
  %exitcond168.not = icmp eq i32 %196, 100000
  br i1 %exitcond168.not, label %22, label %40, !llvm.loop !24

.lr.ph129:                                        ; preds = %192, %.lr.ph129
  %.1127 = phi i64 [ %200, %.lr.ph129 ], [ %.0132, %192 ]
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  %198 = mul nsw i64 %.1127, 31
  %199 = load i64, ptr %197, align 8, !tbaa !5
  %200 = add nsw i64 %199, %198
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  %202 = 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 %202, label %.lr.ph129, label %._crit_edge130

203:                                              ; preds = %190, %187
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %187 ], [ %191, %190 ]
  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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3addIA10_A20_xxEvRT_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 #3

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

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

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

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

; Function Attrs: inlinehint mustprogress 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 #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 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 #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #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 #0 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 #4

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #7

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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, !17}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10, !17, !16}
!20 = distinct !{!20, !10, !16, !17}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10, !17, !16}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}


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