; LLVM IR from hlzz/libvot :: src/vocab_tree/clustering.ll (ZN3vot12ComputeMeansEmiiPPhPiPdi)

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

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<unsigned long *, std::allocator<unsigned long *>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long *, std::allocator<unsigned long *>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long *, std::allocator<unsigned long *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long *, std::allocator<unsigned long *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl" }
%"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Mem_fn" = type { %"class.std::_Mem_fn_base" }
%"class.std::_Mem_fn_base" = type { { i64, i64 } }

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPSt6threadSt6vectorIS2_SaIS2_EEEESt7_Mem_fnIMS2_FvvEEET0_T_SD_SC_(ptr, ptr, i64, i64) #4

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZSt6mem_fnIFvvESt6threadESt7_Mem_fnIMT0_T_ES5_(i64, i64) #5

declare void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8)) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vot20MultiDesAccumulationEmiiPPhPiPdPm(i64 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vot12ComputeMeansEmiiPPhPiPdi(i64 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #4 personality ptr @__gxx_personality_v0 {
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %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 %"class.std::vector.0", align 8
  %23 = alloca %"class.std::allocator.2", align 1
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::vector.5", align 8
  %27 = alloca %"class.std::allocator.7", align 1
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %"class.std::vector", align 8
  %32 = alloca i64, align 8
  %33 = alloca i32, align 4
  %34 = alloca i64, align 8
  %35 = alloca %"class.std::thread", align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %40 = alloca %"struct.std::_Mem_fn", align 8
  %41 = alloca { i64, i64 }, align 8
  %42 = alloca %"struct.std::_Mem_fn", align 8
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  store i64 %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !11
  store ptr %4, ptr %12, align 8, !tbaa !11
  store ptr %5, ptr %13, align 8, !tbaa !11
  store i32 %6, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %50, i64 8)
  %52 = extractvalue { i64, i1 } %51, 1
  %53 = extractvalue { i64, i1 } %51, 0
  %54 = select i1 %52, i64 -1, i64 %53
  %55 = call noalias noundef nonnull ptr @_Znam(i64 noundef %54) #9
  store ptr %55, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %84, %7
  %57 = load i32, ptr %16, align 4, !tbaa !9
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %87

61:                                               ; preds = %56
  %62 = load ptr, ptr %15, align 8, !tbaa !11
  %63 = load i32, ptr %16, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds i64, ptr %62, i64 %64
  store i64 0, ptr %65, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %80, %61
  %67 = load i32, ptr %18, align 4, !tbaa !9
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %83

71:                                               ; preds = %66
  %72 = load ptr, ptr %13, align 8, !tbaa !11
  %73 = load i32, ptr %16, align 4, !tbaa !9
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = mul nsw i32 %73, %74
  %76 = load i32, ptr %18, align 4, !tbaa !9
  %77 = add nsw i32 %75, %76
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds double, ptr %72, i64 %78
  store double 0.000000e+00, ptr %79, align 8, !tbaa !13
  br label %80

80:                                               ; preds = %71
  %81 = load i32, ptr %18, align 4, !tbaa !9
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %18, align 4, !tbaa !9
  br label %66, !llvm.loop !15

83:                                               ; preds = %70
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %16, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %16, align 4, !tbaa !9
  br label %56, !llvm.loop !17

87:                                               ; preds = %60
  %88 = load i32, ptr %14, align 4, !tbaa !9
  %89 = icmp eq i32 %88, 1
  br i1 %89, label %90, label %140

90:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  store i64 0, ptr %19, align 8, !tbaa !5
  br label %91

91:                                               ; preds = %136, %90
  %92 = load i64, ptr %19, align 8, !tbaa !5
  %93 = load i64, ptr %8, align 8, !tbaa !5
  %94 = icmp ult i64 %92, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %91
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %139

96:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %97 = load ptr, ptr %12, align 8, !tbaa !11
  %98 = load i64, ptr %19, align 8, !tbaa !5
  %99 = getelementptr inbounds i32, ptr %97, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !9
  store i32 %100, ptr %20, align 4, !tbaa !9
  %101 = load ptr, ptr %15, align 8, !tbaa !11
  %102 = load i32, ptr %20, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds i64, ptr %101, i64 %103
  %105 = load i64, ptr %104, align 8, !tbaa !5
  %106 = add i64 %105, 1
  store i64 %106, ptr %104, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %132, %96
  %108 = load i32, ptr %21, align 4, !tbaa !9
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = icmp slt i32 %108, %109
  br i1 %110, label %112, label %111

111:                                              ; preds = %107
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %135

112:                                              ; preds = %107
  %113 = load ptr, ptr %11, align 8, !tbaa !11
  %114 = load i64, ptr %19, align 8, !tbaa !5
  %115 = getelementptr inbounds ptr, ptr %113, i64 %114
  %116 = load ptr, ptr %115, align 8, !tbaa !11
  %117 = load i32, ptr %21, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds i8, ptr %116, i64 %118
  %120 = load i8, ptr %119, align 1, !tbaa !18
  %121 = uitofp i8 %120 to double
  %122 = load ptr, ptr %13, align 8, !tbaa !11
  %123 = load i32, ptr %20, align 4, !tbaa !9
  %124 = load i32, ptr %9, align 4, !tbaa !9
  %125 = mul nsw i32 %123, %124
  %126 = load i32, ptr %21, align 4, !tbaa !9
  %127 = add nsw i32 %125, %126
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %122, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !13
  %131 = fadd double %130, %121
  store double %131, ptr %129, align 8, !tbaa !13
  br label %132

132:                                              ; preds = %112
  %133 = load i32, ptr %21, align 4, !tbaa !9
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %21, align 4, !tbaa !9
  br label %107, !llvm.loop !19

135:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %136

136:                                              ; preds = %135
  %137 = load i64, ptr %19, align 8, !tbaa !5
  %138 = add i64 %137, 1
  store i64 %138, ptr %19, align 8, !tbaa !5
  br label %91, !llvm.loop !20

139:                                              ; preds = %95
  br label %405

140:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  %141 = load i32, ptr %14, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #8
  call void @_ZNSaIPdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  invoke void @_ZNSt6vectorIPdSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %142, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %143 unwind label %152

143:                                              ; preds = %140
  call void @_ZNSt15__new_allocatorIPdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #8
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #8
  call void @_ZNSaIPmEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  invoke void @_ZNSt6vectorIPmSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %145, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %146 unwind label %156

146:                                              ; preds = %143
  call void @_ZNSt15__new_allocatorIPmED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %147

147:                                              ; preds = %225, %146
  %148 = load i32, ptr %28, align 4, !tbaa !9
  %149 = load i32, ptr %14, align 4, !tbaa !9
  %150 = icmp slt i32 %148, %149
  br i1 %150, label %160, label %151

151:                                              ; preds = %147
  store i32 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %228

152:                                              ; preds = %140
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %24, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %25, align 4
  call void @_ZNSt15__new_allocatorIPdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  br label %404

156:                                              ; preds = %143
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %24, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %25, align 4
  call void @_ZNSt15__new_allocatorIPmED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #8
  br label %403

160:                                              ; preds = %147
  %161 = load i32, ptr %9, align 4, !tbaa !9
  %162 = load i32, ptr %10, align 4, !tbaa !9
  %163 = mul nsw i32 %161, %162
  %164 = sext i32 %163 to i64
  %165 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %164, i64 8)
  %166 = extractvalue { i64, i1 } %165, 1
  %167 = extractvalue { i64, i1 } %165, 0
  %168 = select i1 %166, i64 -1, i64 %167
  %169 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %168) #9
          to label %170 unwind label %192

170:                                              ; preds = %160
  %171 = load i32, ptr %28, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %172) #8
  store ptr %169, ptr %173, align 8, !tbaa !11
  %174 = load i32, ptr %10, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %175, i64 8)
  %177 = extractvalue { i64, i1 } %176, 1
  %178 = extractvalue { i64, i1 } %176, 0
  %179 = select i1 %177, i64 -1, i64 %178
  %180 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %179) #9
          to label %181 unwind label %192

181:                                              ; preds = %170
  %182 = load i32, ptr %28, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPmSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %183) #8
  store ptr %180, ptr %184, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %185

185:                                              ; preds = %204, %181
  %186 = load i32, ptr %29, align 4, !tbaa !9
  %187 = load i32, ptr %9, align 4, !tbaa !9
  %188 = load i32, ptr %10, align 4, !tbaa !9
  %189 = mul nsw i32 %187, %188
  %190 = icmp slt i32 %186, %189
  br i1 %190, label %196, label %191

191:                                              ; preds = %185
  store i32 17, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %207

192:                                              ; preds = %170, %160
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %24, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %402

196:                                              ; preds = %185
  %197 = load i32, ptr %28, align 4, !tbaa !9
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %198) #8
  %200 = load ptr, ptr %199, align 8, !tbaa !11
  %201 = load i32, ptr %29, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds double, ptr %200, i64 %202
  store double 0.000000e+00, ptr %203, align 8, !tbaa !13
  br label %204

204:                                              ; preds = %196
  %205 = load i32, ptr %29, align 4, !tbaa !9
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %29, align 4, !tbaa !9
  br label %185, !llvm.loop !21

207:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %221, %207
  %209 = load i32, ptr %30, align 4, !tbaa !9
  %210 = load i32, ptr %10, align 4, !tbaa !9
  %211 = icmp slt i32 %209, %210
  br i1 %211, label %213, label %212

212:                                              ; preds = %208
  store i32 20, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %224

213:                                              ; preds = %208
  %214 = load i32, ptr %28, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPmSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %215) #8
  %217 = load ptr, ptr %216, align 8, !tbaa !11
  %218 = load i32, ptr %30, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds i64, ptr %217, i64 %219
  store i64 0, ptr %220, align 8, !tbaa !5
  br label %221

221:                                              ; preds = %213
  %222 = load i32, ptr %30, align 4, !tbaa !9
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %30, align 4, !tbaa !9
  br label %208, !llvm.loop !22

224:                                              ; preds = %212
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %28, align 4, !tbaa !9
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %28, align 4, !tbaa !9
  br label %147, !llvm.loop !23

228:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #8
  call void @_ZNSt6vectorISt6threadSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  store i64 0, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %229

229:                                              ; preds = %269, %228
  %230 = load i32, ptr %33, align 4, !tbaa !9
  %231 = load i32, ptr %14, align 4, !tbaa !9
  %232 = icmp slt i32 %230, %231
  br i1 %232, label %234, label %233

233:                                              ; preds = %229
  store i32 23, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %281

234:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %235 = load i64, ptr %8, align 8, !tbaa !5
  %236 = load i32, ptr %14, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = udiv i64 %235, %237
  store i64 %238, ptr %34, align 8, !tbaa !5
  %239 = load i32, ptr %33, align 4, !tbaa !9
  %240 = load i32, ptr %14, align 4, !tbaa !9
  %241 = sub nsw i32 %240, 1
  %242 = icmp eq i32 %239, %241
  br i1 %242, label %243, label %251

243:                                              ; preds = %234
  %244 = load i64, ptr %8, align 8, !tbaa !5
  %245 = load i32, ptr %14, align 4, !tbaa !9
  %246 = sub nsw i32 %245, 1
  %247 = sext i32 %246 to i64
  %248 = load i64, ptr %34, align 8, !tbaa !5
  %249 = mul i64 %247, %248
  %250 = sub i64 %244, %249
  store i64 %250, ptr %34, align 8, !tbaa !5
  br label %251

251:                                              ; preds = %243, %234
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %252 = load ptr, ptr %11, align 8, !tbaa !11
  %253 = load i64, ptr %32, align 8, !tbaa !5
  %254 = getelementptr inbounds ptr, ptr %252, i64 %253
  store ptr %254, ptr %36, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %255 = load ptr, ptr %12, align 8, !tbaa !11
  %256 = load i64, ptr %32, align 8, !tbaa !5
  %257 = getelementptr inbounds i32, ptr %255, i64 %256
  store ptr %257, ptr %37, align 8, !tbaa !11
  %258 = load i32, ptr %33, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %259) #8
  %261 = load i32, ptr %33, align 4, !tbaa !9
  %262 = sext i32 %261 to i64
  %263 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPmSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %262) #8
  invoke void @_ZNSt6threadC2IRFvmiiPPhPiPdPmEJRmRiS9_S2_S3_RS4_RS5_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @_ZN3vot20MultiDesAccumulationEmiiPPhPiPdPm, ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %260, ptr noundef nonnull align 8 dereferenceable(8) %263)
          to label %264 unwind label %272

264:                                              ; preds = %251
  invoke void @_ZNSt6vectorISt6threadSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %265 unwind label %276

265:                                              ; preds = %264
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  %266 = load i64, ptr %34, align 8, !tbaa !5
  %267 = load i64, ptr %32, align 8, !tbaa !5
  %268 = add i64 %267, %266
  store i64 %268, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %269

269:                                              ; preds = %265
  %270 = load i32, ptr %33, align 4, !tbaa !9
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %33, align 4, !tbaa !9
  br label %229, !llvm.loop !24

272:                                              ; preds = %251
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %24, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %25, align 4
  br label %280

276:                                              ; preds = %264
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %24, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %25, align 4
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  br label %280

280:                                              ; preds = %276, %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %401

281:                                              ; preds = %233
  %282 = call ptr @_ZNSt6vectorISt6threadSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  %283 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %38, i32 0, i32 0
  store ptr %282, ptr %283, align 8
  %284 = call ptr @_ZNSt6vectorISt6threadSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  %285 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  store ptr %284, ptr %285, align 8
  store { i64, i64 } { i64 ptrtoint (ptr @_ZNSt6thread4joinEv to i64), i64 0 }, ptr %41, align 8, !tbaa !18
  %286 = getelementptr inbounds { i64, i64 }, ptr %41, i32 0, i32 0
  %287 = load i64, ptr %286, align 8
  %288 = getelementptr inbounds { i64, i64 }, ptr %41, i32 0, i32 1
  %289 = load i64, ptr %288, align 8
  %290 = call { i64, i64 } @_ZSt6mem_fnIFvvESt6threadESt7_Mem_fnIMT0_T_ES5_(i64 %287, i64 %289) #8
  %291 = getelementptr inbounds %"struct.std::_Mem_fn", ptr %40, i32 0, i32 0
  %292 = getelementptr inbounds %"class.std::_Mem_fn_base", ptr %291, i32 0, i32 0
  %293 = getelementptr inbounds { i64, i64 }, ptr %292, i32 0, i32 0
  %294 = extractvalue { i64, i64 } %290, 0
  store i64 %294, ptr %293, align 8
  %295 = getelementptr inbounds { i64, i64 }, ptr %292, i32 0, i32 1
  %296 = extractvalue { i64, i64 } %290, 1
  store i64 %296, ptr %295, align 8
  %297 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %38, i32 0, i32 0
  %298 = load ptr, ptr %297, align 8
  %299 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  %300 = load ptr, ptr %299, align 8
  %301 = getelementptr inbounds { i64, i64 }, ptr %40, i32 0, i32 0
  %302 = load i64, ptr %301, align 8
  %303 = getelementptr inbounds { i64, i64 }, ptr %40, i32 0, i32 1
  %304 = load i64, ptr %303, align 8
  %305 = invoke { i64, i64 } @_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPSt6threadSt6vectorIS2_SaIS2_EEEESt7_Mem_fnIMS2_FvvEEET0_T_SD_SC_(ptr %298, ptr %300, i64 %302, i64 %304)
          to label %306 unwind label %318

306:                                              ; preds = %281
  %307 = getelementptr inbounds %"struct.std::_Mem_fn", ptr %42, i32 0, i32 0
  %308 = getelementptr inbounds %"class.std::_Mem_fn_base", ptr %307, i32 0, i32 0
  %309 = getelementptr inbounds { i64, i64 }, ptr %308, i32 0, i32 0
  %310 = extractvalue { i64, i64 } %305, 0
  store i64 %310, ptr %309, align 8
  %311 = getelementptr inbounds { i64, i64 }, ptr %308, i32 0, i32 1
  %312 = extractvalue { i64, i64 } %305, 1
  store i64 %312, ptr %311, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  store i32 0, ptr %43, align 4, !tbaa !9
  br label %313

313:                                              ; preds = %373, %306
  %314 = load i32, ptr %43, align 4, !tbaa !9
  %315 = load i32, ptr %14, align 4, !tbaa !9
  %316 = icmp slt i32 %314, %315
  br i1 %316, label %322, label %317

317:                                              ; preds = %313
  store i32 26, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br label %376

318:                                              ; preds = %281
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %24, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %25, align 4
  br label %401

322:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  store i32 0, ptr %44, align 4, !tbaa !9
  br label %323

323:                                              ; preds = %345, %322
  %324 = load i32, ptr %44, align 4, !tbaa !9
  %325 = load i32, ptr %10, align 4, !tbaa !9
  %326 = load i32, ptr %9, align 4, !tbaa !9
  %327 = mul nsw i32 %325, %326
  %328 = icmp slt i32 %324, %327
  br i1 %328, label %330, label %329

329:                                              ; preds = %323
  store i32 29, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  br label %348

330:                                              ; preds = %323
  %331 = load i32, ptr %43, align 4, !tbaa !9
  %332 = sext i32 %331 to i64
  %333 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %332) #8
  %334 = load ptr, ptr %333, align 8, !tbaa !11
  %335 = load i32, ptr %44, align 4, !tbaa !9
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds double, ptr %334, i64 %336
  %338 = load double, ptr %337, align 8, !tbaa !13
  %339 = load ptr, ptr %13, align 8, !tbaa !11
  %340 = load i32, ptr %44, align 4, !tbaa !9
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds double, ptr %339, i64 %341
  %343 = load double, ptr %342, align 8, !tbaa !13
  %344 = fadd double %343, %338
  store double %344, ptr %342, align 8, !tbaa !13
  br label %345

345:                                              ; preds = %330
  %346 = load i32, ptr %44, align 4, !tbaa !9
  %347 = add nsw i32 %346, 1
  store i32 %347, ptr %44, align 4, !tbaa !9
  br label %323, !llvm.loop !25

348:                                              ; preds = %329
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  store i32 0, ptr %45, align 4, !tbaa !9
  br label %349

349:                                              ; preds = %369, %348
  %350 = load i32, ptr %45, align 4, !tbaa !9
  %351 = load i32, ptr %10, align 4, !tbaa !9
  %352 = icmp slt i32 %350, %351
  br i1 %352, label %354, label %353

353:                                              ; preds = %349
  store i32 32, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  br label %372

354:                                              ; preds = %349
  %355 = load i32, ptr %43, align 4, !tbaa !9
  %356 = sext i32 %355 to i64
  %357 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPmSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %356) #8
  %358 = load ptr, ptr %357, align 8, !tbaa !11
  %359 = load i32, ptr %45, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds i64, ptr %358, i64 %360
  %362 = load i64, ptr %361, align 8, !tbaa !5
  %363 = load ptr, ptr %15, align 8, !tbaa !11
  %364 = load i32, ptr %45, align 4, !tbaa !9
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds i64, ptr %363, i64 %365
  %367 = load i64, ptr %366, align 8, !tbaa !5
  %368 = add i64 %367, %362
  store i64 %368, ptr %366, align 8, !tbaa !5
  br label %369

369:                                              ; preds = %354
  %370 = load i32, ptr %45, align 4, !tbaa !9
  %371 = add nsw i32 %370, 1
  store i32 %371, ptr %45, align 4, !tbaa !9
  br label %349, !llvm.loop !26

372:                                              ; preds = %353
  br label %373

373:                                              ; preds = %372
  %374 = load i32, ptr %43, align 4, !tbaa !9
  %375 = add nsw i32 %374, 1
  store i32 %375, ptr %43, align 4, !tbaa !9
  br label %313, !llvm.loop !27

376:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  store i32 0, ptr %46, align 4, !tbaa !9
  br label %377

377:                                              ; preds = %397, %376
  %378 = load i32, ptr %46, align 4, !tbaa !9
  %379 = load i32, ptr %14, align 4, !tbaa !9
  %380 = icmp slt i32 %378, %379
  br i1 %380, label %382, label %381

381:                                              ; preds = %377
  store i32 35, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  br label %400

382:                                              ; preds = %377
  %383 = load i32, ptr %46, align 4, !tbaa !9
  %384 = sext i32 %383 to i64
  %385 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPmSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %384) #8
  %386 = load ptr, ptr %385, align 8, !tbaa !11
  %387 = icmp eq ptr %386, null
  br i1 %387, label %389, label %388

388:                                              ; preds = %382
  call void @_ZdaPv(ptr noundef %386) #10
  br label %389

389:                                              ; preds = %388, %382
  %390 = load i32, ptr %46, align 4, !tbaa !9
  %391 = sext i32 %390 to i64
  %392 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %391) #8
  %393 = load ptr, ptr %392, align 8, !tbaa !11
  %394 = icmp eq ptr %393, null
  br i1 %394, label %396, label %395

395:                                              ; preds = %389
  call void @_ZdaPv(ptr noundef %393) #10
  br label %396

396:                                              ; preds = %395, %389
  br label %397

397:                                              ; preds = %396
  %398 = load i32, ptr %46, align 4, !tbaa !9
  %399 = add nsw i32 %398, 1
  store i32 %399, ptr %46, align 4, !tbaa !9
  br label %377, !llvm.loop !28

400:                                              ; preds = %381
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @_ZNSt6vectorISt6threadSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #8
  call void @_ZNSt6vectorIPmSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  call void @_ZNSt6vectorIPdSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  br label %405

401:                                              ; preds = %318, %280
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @_ZNSt6vectorISt6threadSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #8
  br label %402

402:                                              ; preds = %401, %192
  call void @_ZNSt6vectorIPmSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  br label %403

403:                                              ; preds = %402, %156
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  call void @_ZNSt6vectorIPdSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  br label %404

404:                                              ; preds = %403, %152
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %454

405:                                              ; preds = %400, %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  store i32 0, ptr %47, align 4, !tbaa !9
  br label %406

406:                                              ; preds = %446, %405
  %407 = load i32, ptr %47, align 4, !tbaa !9
  %408 = load i32, ptr %10, align 4, !tbaa !9
  %409 = icmp slt i32 %407, %408
  br i1 %409, label %411, label %410

410:                                              ; preds = %406
  store i32 38, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  br label %449

411:                                              ; preds = %406
  %412 = load ptr, ptr %15, align 8, !tbaa !11
  %413 = load i32, ptr %47, align 4, !tbaa !9
  %414 = sext i32 %413 to i64
  %415 = getelementptr inbounds i64, ptr %412, i64 %414
  %416 = load i64, ptr %415, align 8, !tbaa !5
  %417 = icmp eq i64 %416, 0
  br i1 %417, label %418, label %419

418:                                              ; preds = %411
  br label %446

419:                                              ; preds = %411
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #8
  store i32 0, ptr %48, align 4, !tbaa !9
  br label %420

420:                                              ; preds = %442, %419
  %421 = load i32, ptr %48, align 4, !tbaa !9
  %422 = load i32, ptr %9, align 4, !tbaa !9
  %423 = icmp slt i32 %421, %422
  br i1 %423, label %425, label %424

424:                                              ; preds = %420
  store i32 41, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  br label %445

425:                                              ; preds = %420
  %426 = load ptr, ptr %15, align 8, !tbaa !11
  %427 = load i32, ptr %47, align 4, !tbaa !9
  %428 = sext i32 %427 to i64
  %429 = getelementptr inbounds i64, ptr %426, i64 %428
  %430 = load i64, ptr %429, align 8, !tbaa !5
  %431 = uitofp i64 %430 to double
  %432 = load ptr, ptr %13, align 8, !tbaa !11
  %433 = load i32, ptr %47, align 4, !tbaa !9
  %434 = load i32, ptr %9, align 4, !tbaa !9
  %435 = mul nsw i32 %433, %434
  %436 = load i32, ptr %48, align 4, !tbaa !9
  %437 = add nsw i32 %435, %436
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds double, ptr %432, i64 %438
  %440 = load double, ptr %439, align 8, !tbaa !13
  %441 = fdiv double %440, %431
  store double %441, ptr %439, align 8, !tbaa !13
  br label %442

442:                                              ; preds = %425
  %443 = load i32, ptr %48, align 4, !tbaa !9
  %444 = add nsw i32 %443, 1
  store i32 %444, ptr %48, align 4, !tbaa !9
  br label %420, !llvm.loop !29

445:                                              ; preds = %424
  br label %446

446:                                              ; preds = %445, %418
  %447 = load i32, ptr %47, align 4, !tbaa !9
  %448 = add nsw i32 %447, 1
  store i32 %448, ptr %47, align 4, !tbaa !9
  br label %406, !llvm.loop !30

449:                                              ; preds = %410
  %450 = load ptr, ptr %15, align 8, !tbaa !11
  %451 = icmp eq ptr %450, null
  br i1 %451, label %453, label %452

452:                                              ; preds = %449
  call void @_ZdaPv(ptr noundef %450) #10
  br label %453

453:                                              ; preds = %452, %449
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  ret void

454:                                              ; preds = %404
  %455 = load ptr, ptr %24, align 8
  %456 = load i32, ptr %25, align 4
  %457 = insertvalue { ptr, i32 } poison, ptr %455, 0
  %458 = insertvalue { ptr, i32 } %457, i32 %456, 1
  resume { ptr, i32 } %458
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIPdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPdSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIPmEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPmSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #7

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIPdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIPmED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<unsigned long *, std::allocator<unsigned long *>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long *, std::allocator<unsigned long *>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long *, std::allocator<unsigned long *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long *, std::allocator<unsigned long *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl" }
%"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPSt6threadSt6vectorIS2_SaIS2_EEEESt7_Mem_fnIMS2_FvvEEET0_T_SD_SC_(ptr, ptr, i64, i64) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZSt6mem_fnIFvvESt6threadESt7_Mem_fnIMT0_T_ES5_(i64, i64) local_unnamed_addr #4

declare void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vot20MultiDesAccumulationEmiiPPhPiPdPm(i64 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vot12ComputeMeansEmiiPPhPiPdi(i64 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef %5, i32 noundef %6) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector.0", align 8
  %11 = alloca %"class.std::allocator.2", align 1
  %12 = alloca %"class.std::vector.5", align 8
  %13 = alloca %"class.std::allocator.7", align 1
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca i64, align 8
  %16 = alloca %"class.std::thread", align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store i32 %1, ptr %8, align 4, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !5
  %19 = zext i32 %2 to i64
  %20 = icmp slt i32 %2, 0
  %21 = shl nuw nsw i64 %19, 3
  %22 = select i1 %20, i64 -1, i64 %21
  %23 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %22) #8
  %24 = icmp sgt i32 %2, 0
  br i1 %24, label %.lr.ph137, label %._crit_edge138

.lr.ph137:                                        ; preds = %7
  %25 = icmp sgt i32 %1, 0
  br i1 %25, label %.lr.ph.us.preheader, label %.lr.ph137.split.preheader

.lr.ph137.split.preheader:                        ; preds = %.lr.ph137
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %23, i8 0, i64 %21, i1 false), !tbaa !9
  br label %._crit_edge138

.lr.ph.us.preheader:                              ; preds = %.lr.ph137
  %26 = zext nneg i32 %1 to i64
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %23, i8 0, i64 %21, i1 false), !tbaa !9
  %27 = mul nuw nsw i64 %19, %26
  %28 = shl i64 %27, 3
  tail call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 %28, i1 false), !tbaa !11
  br label %._crit_edge138

._crit_edge138:                                   ; preds = %.lr.ph137.split.preheader, %.lr.ph.us.preheader, %7
  %29 = icmp eq i32 %6, 1
  br i1 %29, label %.preheader127, label %99

.preheader127:                                    ; preds = %._crit_edge138
  %.not = icmp eq i64 %0, 0
  br i1 %.not, label %.loopexit128, label %.lr.ph165

.lr.ph165:                                        ; preds = %.preheader127
  %30 = icmp sgt i32 %1, 0
  br i1 %30, label %.lr.ph162.us.preheader, label %.lr.ph165.split.preheader

.lr.ph165.split.preheader:                        ; preds = %.lr.ph165
  %xtraiter = and i64 %0, 3
  %31 = icmp ult i64 %0, 4
  br i1 %31, label %.loopexit128.loopexit251.unr-lcssa, label %.lr.ph165.split.preheader.new

.lr.ph165.split.preheader.new:                    ; preds = %.lr.ph165.split.preheader
  %unroll_iter = and i64 %0, -4
  br label %.lr.ph165.split

.lr.ph162.us.preheader:                           ; preds = %.lr.ph165
  %wide.trip.count211 = zext nneg i32 %1 to i64
  %32 = shl nuw nsw i64 %wide.trip.count211, 3
  %scevgep = getelementptr i8, ptr %5, i64 %32
  %min.iters.check = icmp ult i32 %1, 4
  %n.vec = and i64 %wide.trip.count211, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count211
  %xtraiter255 = and i64 %wide.trip.count211, 1
  %lcmp.mod256.not = icmp eq i64 %xtraiter255, 0
  %33 = add nsw i64 %wide.trip.count211, -1
  br label %.lr.ph162.us

.lr.ph162.us:                                     ; preds = %.lr.ph162.us.preheader, %._crit_edge163.us
  %.0101164.us = phi i64 [ %70, %._crit_edge163.us ], [ 0, %.lr.ph162.us.preheader ]
  %34 = getelementptr inbounds i32, ptr %4, i64 %.0101164.us
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds i64, ptr %23, i64 %36
  %38 = load i64, ptr %37, align 8, !tbaa !9
  %39 = add i64 %38, 1
  store i64 %39, ptr %37, align 8, !tbaa !9
  %40 = getelementptr inbounds ptr, ptr %3, i64 %.0101164.us
  %41 = load ptr, ptr %40, align 8, !tbaa !13
  %42 = mul nsw i32 %35, %1
  %43 = sext i32 %42 to i64
  %invariant.gep = getelementptr double, ptr %5, i64 %43
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph162.us
  %44 = shl nsw i64 %43, 3
  %scevgep234 = getelementptr i8, ptr %scevgep, i64 %44
  %scevgep235 = getelementptr i8, ptr %41, i64 %wide.trip.count211
  %bound0 = icmp ult ptr %invariant.gep, %scevgep235
  %bound1 = icmp ult ptr %41, %scevgep234
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %vector.memcheck, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %vector.memcheck ]
  %45 = getelementptr inbounds i8, ptr %41, i64 %index
  %46 = getelementptr inbounds i8, ptr %45, i64 2
  %wide.load = load <2 x i8>, ptr %45, align 1, !tbaa !15, !alias.scope !16
  %wide.load236 = load <2 x i8>, ptr %46, align 1, !tbaa !15, !alias.scope !16
  %47 = uitofp <2 x i8> %wide.load to <2 x double>
  %48 = uitofp <2 x i8> %wide.load236 to <2 x double>
  %49 = getelementptr double, ptr %invariant.gep, i64 %index
  %50 = getelementptr i8, ptr %49, i64 16
  %wide.load237 = load <2 x double>, ptr %49, align 8, !tbaa !11, !alias.scope !19, !noalias !16
  %wide.load238 = load <2 x double>, ptr %50, align 8, !tbaa !11, !alias.scope !19, !noalias !16
  %51 = fadd <2 x double> %wide.load237, %47
  %52 = fadd <2 x double> %wide.load238, %48
  store <2 x double> %51, ptr %49, align 8, !tbaa !11, !alias.scope !19, !noalias !16
  store <2 x double> %52, ptr %50, align 8, !tbaa !11, !alias.scope !19, !noalias !16
  %index.next = add nuw i64 %index, 4
  %53 = icmp eq i64 %index.next, %n.vec
  br i1 %53, label %middle.block, label %vector.body, !llvm.loop !21

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

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph162.us
  %indvars.iv208.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph162.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod256.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %54 = getelementptr inbounds i8, ptr %41, i64 %indvars.iv208.ph
  %55 = load i8, ptr %54, align 1, !tbaa !15
  %56 = uitofp i8 %55 to double
  %gep.prol = getelementptr double, ptr %invariant.gep, i64 %indvars.iv208.ph
  %57 = load double, ptr %gep.prol, align 8, !tbaa !11
  %58 = fadd double %57, %56
  store double %58, ptr %gep.prol, align 8, !tbaa !11
  %indvars.iv.next209.prol = or disjoint i64 %indvars.iv208.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv208.unr = phi i64 [ %indvars.iv208.ph, %scalar.ph.preheader ], [ %indvars.iv.next209.prol, %scalar.ph.prol ]
  %59 = icmp eq i64 %indvars.iv208.ph, %33
  br i1 %59, label %._crit_edge163.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv208 = phi i64 [ %indvars.iv.next209.1, %scalar.ph ], [ %indvars.iv208.unr, %scalar.ph.prol.loopexit ]
  %60 = getelementptr inbounds i8, ptr %41, i64 %indvars.iv208
  %61 = load i8, ptr %60, align 1, !tbaa !15
  %62 = uitofp i8 %61 to double
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv208
  %63 = load double, ptr %gep, align 8, !tbaa !11
  %64 = fadd double %63, %62
  store double %64, ptr %gep, align 8, !tbaa !11
  %indvars.iv.next209 = add nuw nsw i64 %indvars.iv208, 1
  %65 = getelementptr inbounds i8, ptr %41, i64 %indvars.iv.next209
  %66 = load i8, ptr %65, align 1, !tbaa !15
  %67 = uitofp i8 %66 to double
  %gep.1 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next209
  %68 = load double, ptr %gep.1, align 8, !tbaa !11
  %69 = fadd double %68, %67
  store double %69, ptr %gep.1, align 8, !tbaa !11
  %indvars.iv.next209.1 = add nuw nsw i64 %indvars.iv208, 2
  %exitcond212.not.1 = icmp eq i64 %indvars.iv.next209.1, %wide.trip.count211
  br i1 %exitcond212.not.1, label %._crit_edge163.us, label %scalar.ph, !llvm.loop !25

._crit_edge163.us:                                ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %70 = add nuw i64 %.0101164.us, 1
  %exitcond213.not = icmp eq i64 %70, %0
  br i1 %exitcond213.not, label %.loopexit128, label %.lr.ph162.us, !llvm.loop !26

.lr.ph165.split:                                  ; preds = %.lr.ph165.split, %.lr.ph165.split.preheader.new
  %.0101164 = phi i64 [ 0, %.lr.ph165.split.preheader.new ], [ %98, %.lr.ph165.split ]
  %niter = phi i64 [ 0, %.lr.ph165.split.preheader.new ], [ %niter.next.3, %.lr.ph165.split ]
  %71 = getelementptr inbounds i32, ptr %4, i64 %.0101164
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i64, ptr %23, i64 %73
  %75 = load i64, ptr %74, align 8, !tbaa !9
  %76 = add i64 %75, 1
  store i64 %76, ptr %74, align 8, !tbaa !9
  %77 = or disjoint i64 %.0101164, 1
  %78 = getelementptr inbounds i32, ptr %4, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds i64, ptr %23, i64 %80
  %82 = load i64, ptr %81, align 8, !tbaa !9
  %83 = add i64 %82, 1
  store i64 %83, ptr %81, align 8, !tbaa !9
  %84 = or disjoint i64 %.0101164, 2
  %85 = getelementptr inbounds i32, ptr %4, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i64, ptr %23, i64 %87
  %89 = load i64, ptr %88, align 8, !tbaa !9
  %90 = add i64 %89, 1
  store i64 %90, ptr %88, align 8, !tbaa !9
  %91 = or disjoint i64 %.0101164, 3
  %92 = getelementptr inbounds i32, ptr %4, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i64, ptr %23, i64 %94
  %96 = load i64, ptr %95, align 8, !tbaa !9
  %97 = add i64 %96, 1
  store i64 %97, ptr %95, align 8, !tbaa !9
  %98 = add nuw i64 %.0101164, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.loopexit128.loopexit251.unr-lcssa, label %.lr.ph165.split, !llvm.loop !26

99:                                               ; preds = %._crit_edge138
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #9
  %100 = sext i32 %6 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #9
  call void @_ZNSaIPdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  invoke void @_ZNSt6vectorIPdSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %100, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %101 unwind label %110

101:                                              ; preds = %99
  call void @_ZNSt15__new_allocatorIPdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #9
  call void @_ZNSaIPmEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  invoke void @_ZNSt6vectorIPmSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %100, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %102 unwind label %112

102:                                              ; preds = %101
  call void @_ZNSt15__new_allocatorIPmED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #9
  %103 = icmp sgt i32 %6, 0
  br i1 %103, label %.lr.ph144.preheader, label %._crit_edge145.thread

._crit_edge145.thread:                            ; preds = %102
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #9
  call void @_ZNSt6vectorISt6threadSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  br label %._crit_edge150

.lr.ph144.preheader:                              ; preds = %102
  %wide.trip.count = zext nneg i32 %6 to i64
  %.pre = load i32, ptr %9, align 4, !tbaa !5
  br label %.lr.ph144

._crit_edge145:                                   ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #9
  call void @_ZNSt6vectorISt6threadSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  br i1 %103, label %.lr.ph149, label %._crit_edge150

.lr.ph149:                                        ; preds = %._crit_edge145
  %104 = udiv i64 %0, %100
  %105 = add nsw i32 %6, -1
  %106 = zext nneg i32 %105 to i64
  %107 = mul i64 %104, %106
  %108 = sub i64 %0, %107
  %109 = zext nneg i32 %105 to i64
  %wide.trip.count189 = zext nneg i32 %6 to i64
  br label %161

110:                                              ; preds = %99
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIPdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #9
  br label %220

112:                                              ; preds = %101
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIPmED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #9
  br label %219

.lr.ph144:                                        ; preds = %.lr.ph144.preheader, %._crit_edge
  %114 = phi i32 [ %.pre, %.lr.ph144.preheader ], [ %148, %._crit_edge ]
  %indvars.iv183 = phi i64 [ 0, %.lr.ph144.preheader ], [ %indvars.iv.next184, %._crit_edge ]
  %115 = load i32, ptr %8, align 4, !tbaa !5
  %116 = mul nsw i32 %114, %115
  %117 = sext i32 %116 to i64
  %118 = icmp slt i32 %116, 0
  %119 = shl nsw i64 %117, 3
  %120 = select i1 %118, i64 -1, i64 %119
  %121 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %120) #8
          to label %122 unwind label %138

122:                                              ; preds = %.lr.ph144
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv183) #9
  store ptr %121, ptr %123, align 8, !tbaa !13
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = icmp slt i32 %124, 0
  %127 = shl nsw i64 %125, 3
  %128 = select i1 %126, i64 -1, i64 %127
  %129 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %128) #8
          to label %130 unwind label %138

130:                                              ; preds = %122
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPmSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv183) #9
  store ptr %129, ptr %131, align 8, !tbaa !13
  %132 = load i32, ptr %8, align 4, !tbaa !5
  %133 = load i32, ptr %9, align 4, !tbaa !5
  %134 = mul nsw i32 %133, %132
  %135 = icmp sgt i32 %134, 0
  br i1 %135, label %.lr.ph, label %.preheader133

.preheader133:                                    ; preds = %.lr.ph, %130
  %136 = phi i32 [ %133, %130 ], [ %144, %.lr.ph ]
  %137 = icmp sgt i32 %136, 0
  br i1 %137, label %.lr.ph141, label %._crit_edge

138:                                              ; preds = %122, %.lr.ph144
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %218

.lr.ph:                                           ; preds = %130, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %130 ]
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv183) #9
  %141 = load ptr, ptr %140, align 8, !tbaa !13
  %142 = getelementptr inbounds double, ptr %141, i64 %indvars.iv
  store double 0.000000e+00, ptr %142, align 8, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %143 = load i32, ptr %8, align 4, !tbaa !5
  %144 = load i32, ptr %9, align 4, !tbaa !5
  %145 = mul nsw i32 %144, %143
  %146 = sext i32 %145 to i64
  %147 = icmp slt i64 %indvars.iv.next, %146
  br i1 %147, label %.lr.ph, label %.preheader133, !llvm.loop !27

._crit_edge:                                      ; preds = %.lr.ph141, %.preheader133
  %148 = phi i32 [ %136, %.preheader133 ], [ %152, %.lr.ph141 ]
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next184, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge145, label %.lr.ph144, !llvm.loop !28

.lr.ph141:                                        ; preds = %.preheader133, %.lr.ph141
  %indvars.iv180 = phi i64 [ %indvars.iv.next181, %.lr.ph141 ], [ 0, %.preheader133 ]
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPmSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv183) #9
  %150 = load ptr, ptr %149, align 8, !tbaa !13
  %151 = getelementptr inbounds i64, ptr %150, i64 %indvars.iv180
  store i64 0, ptr %151, align 8, !tbaa !9
  %indvars.iv.next181 = add nuw nsw i64 %indvars.iv180, 1
  %152 = load i32, ptr %9, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = icmp slt i64 %indvars.iv.next181, %153
  br i1 %154, label %.lr.ph141, label %._crit_edge, !llvm.loop !29

._crit_edge150:                                   ; preds = %168, %._crit_edge145.thread, %._crit_edge145
  %155 = call ptr @_ZNSt6vectorISt6threadSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  %156 = call ptr @_ZNSt6vectorISt6threadSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  %157 = call { i64, i64 } @_ZSt6mem_fnIFvvESt6threadESt7_Mem_fnIMT0_T_ES5_(i64 ptrtoint (ptr @_ZNSt6thread4joinEv to i64), i64 0) #9
  %158 = extractvalue { i64, i64 } %157, 0
  %159 = extractvalue { i64, i64 } %157, 1
  %160 = invoke { i64, i64 } @_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPSt6threadSt6vectorIS2_SaIS2_EEEESt7_Mem_fnIMS2_FvvEEET0_T_SD_SC_(ptr %155, ptr %156, i64 %158, i64 %159)
          to label %.preheader132 unwind label %180

.preheader132:                                    ; preds = %._crit_edge150
  br i1 %103, label %.preheader131.preheader, label %._crit_edge159

.preheader131.preheader:                          ; preds = %.preheader132
  %wide.trip.count200 = zext nneg i32 %6 to i64
  %.pre224 = load i32, ptr %9, align 4, !tbaa !5
  br label %.preheader131

161:                                              ; preds = %.lr.ph149, %168
  %indvars.iv186 = phi i64 [ 0, %.lr.ph149 ], [ %indvars.iv.next187, %168 ]
  %.0111146 = phi i64 [ 0, %.lr.ph149 ], [ %170, %168 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  %162 = icmp eq i64 %indvars.iv186, %109
  %storemerge = select i1 %162, i64 %108, i64 %104
  store i64 %storemerge, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  %163 = getelementptr inbounds ptr, ptr %3, i64 %.0111146
  store ptr %163, ptr %17, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #9
  %164 = getelementptr inbounds i32, ptr %4, i64 %.0111146
  store ptr %164, ptr %18, align 8, !tbaa !13
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv186) #9
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPmSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv186) #9
  invoke void @_ZNSt6threadC2IRFvmiiPPhPiPdPmEJRmRiS9_S2_S3_RS4_RS5_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull @_ZN3vot20MultiDesAccumulationEmiiPPhPiPdPm, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %165, ptr noundef nonnull align 8 dereferenceable(8) %166)
          to label %167 unwind label %171

167:                                              ; preds = %161
  invoke void @_ZNSt6vectorISt6threadSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %168 unwind label %173

168:                                              ; preds = %167
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  %169 = load i64, ptr %15, align 8, !tbaa !9
  %170 = add i64 %169, %.0111146
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  %indvars.iv.next187 = add nuw nsw i64 %indvars.iv186, 1
  %exitcond190.not = icmp eq i64 %indvars.iv.next187, %wide.trip.count189
  br i1 %exitcond190.not, label %._crit_edge150, label %161, !llvm.loop !30

171:                                              ; preds = %161
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %175

173:                                              ; preds = %167
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  br label %175

175:                                              ; preds = %173, %171
  %.pn = phi { ptr, i32 } [ %174, %173 ], [ %172, %171 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  br label %217

.preheader131:                                    ; preds = %.preheader131.preheader, %._crit_edge155
  %176 = phi i32 [ %.pre224, %.preheader131.preheader ], [ %196, %._crit_edge155 ]
  %indvars.iv197 = phi i64 [ 0, %.preheader131.preheader ], [ %indvars.iv.next198, %._crit_edge155 ]
  %177 = load i32, ptr %8, align 4, !tbaa !5
  %178 = mul nsw i32 %177, %176
  %179 = icmp sgt i32 %178, 0
  br i1 %179, label %.lr.ph152, label %.preheader130

.preheader129:                                    ; preds = %._crit_edge155
  br i1 %103, label %.lr.ph158.preheader, label %._crit_edge159

.lr.ph158.preheader:                              ; preds = %.preheader129
  %wide.trip.count205 = zext nneg i32 %6 to i64
  br label %.lr.ph158

180:                                              ; preds = %._crit_edge150
  %181 = landingpad { ptr, i32 }
          cleanup
  br label %217

.preheader130:                                    ; preds = %.lr.ph152, %.preheader131
  %182 = phi i32 [ %176, %.preheader131 ], [ %191, %.lr.ph152 ]
  %183 = icmp sgt i32 %182, 0
  br i1 %183, label %.lr.ph154, label %._crit_edge155

.lr.ph152:                                        ; preds = %.preheader131, %.lr.ph152
  %indvars.iv191 = phi i64 [ %indvars.iv.next192, %.lr.ph152 ], [ 0, %.preheader131 ]
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv197) #9
  %185 = load ptr, ptr %184, align 8, !tbaa !13
  %186 = getelementptr inbounds double, ptr %185, i64 %indvars.iv191
  %187 = load double, ptr %186, align 8, !tbaa !11
  %188 = getelementptr inbounds double, ptr %5, i64 %indvars.iv191
  %189 = load double, ptr %188, align 8, !tbaa !11
  %190 = fadd double %187, %189
  store double %190, ptr %188, align 8, !tbaa !11
  %indvars.iv.next192 = add nuw nsw i64 %indvars.iv191, 1
  %191 = load i32, ptr %9, align 4, !tbaa !5
  %192 = load i32, ptr %8, align 4, !tbaa !5
  %193 = mul nsw i32 %192, %191
  %194 = sext i32 %193 to i64
  %195 = icmp slt i64 %indvars.iv.next192, %194
  br i1 %195, label %.lr.ph152, label %.preheader130, !llvm.loop !31

._crit_edge155:                                   ; preds = %.lr.ph154, %.preheader130
  %196 = phi i32 [ %182, %.preheader130 ], [ %204, %.lr.ph154 ]
  %indvars.iv.next198 = add nuw nsw i64 %indvars.iv197, 1
  %exitcond201.not = icmp eq i64 %indvars.iv.next198, %wide.trip.count200
  br i1 %exitcond201.not, label %.preheader129, label %.preheader131, !llvm.loop !32

.lr.ph154:                                        ; preds = %.preheader130, %.lr.ph154
  %indvars.iv194 = phi i64 [ %indvars.iv.next195, %.lr.ph154 ], [ 0, %.preheader130 ]
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPmSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv197) #9
  %198 = load ptr, ptr %197, align 8, !tbaa !13
  %199 = getelementptr inbounds i64, ptr %198, i64 %indvars.iv194
  %200 = load i64, ptr %199, align 8, !tbaa !9
  %201 = getelementptr inbounds i64, ptr %23, i64 %indvars.iv194
  %202 = load i64, ptr %201, align 8, !tbaa !9
  %203 = add i64 %202, %200
  store i64 %203, ptr %201, align 8, !tbaa !9
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %204 = load i32, ptr %9, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = icmp slt i64 %indvars.iv.next195, %205
  br i1 %206, label %.lr.ph154, label %._crit_edge155, !llvm.loop !33

._crit_edge159:                                   ; preds = %216, %.preheader132, %.preheader129
  call void @_ZNSt6vectorISt6threadSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  call void @_ZNSt6vectorIPmSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #9
  call void @_ZNSt6vectorIPdSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #9
  %.pre225 = load i32, ptr %9, align 4, !tbaa !5
  br label %.loopexit128

.lr.ph158:                                        ; preds = %.lr.ph158.preheader, %216
  %indvars.iv202 = phi i64 [ 0, %.lr.ph158.preheader ], [ %indvars.iv.next203, %216 ]
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPmSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv202) #9
  %208 = load ptr, ptr %207, align 8, !tbaa !13
  %209 = icmp eq ptr %208, null
  br i1 %209, label %211, label %210

210:                                              ; preds = %.lr.ph158
  call void @_ZdaPv(ptr noundef nonnull %208) #10
  br label %211

211:                                              ; preds = %210, %.lr.ph158
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPdSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv202) #9
  %213 = load ptr, ptr %212, align 8, !tbaa !13
  %214 = icmp eq ptr %213, null
  br i1 %214, label %216, label %215

215:                                              ; preds = %211
  call void @_ZdaPv(ptr noundef nonnull %213) #10
  br label %216

216:                                              ; preds = %211, %215
  %indvars.iv.next203 = add nuw nsw i64 %indvars.iv202, 1
  %exitcond206.not = icmp eq i64 %indvars.iv.next203, %wide.trip.count205
  br i1 %exitcond206.not, label %._crit_edge159, label %.lr.ph158, !llvm.loop !34

217:                                              ; preds = %180, %175
  %.pn.pn = phi { ptr, i32 } [ %.pn, %175 ], [ %181, %180 ]
  call void @_ZNSt6vectorISt6threadSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  br label %218

218:                                              ; preds = %217, %138
  %.pn123 = phi { ptr, i32 } [ %139, %138 ], [ %.pn.pn, %217 ]
  call void @_ZNSt6vectorIPmSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  br label %219

219:                                              ; preds = %218, %112
  %.pn123.pn = phi { ptr, i32 } [ %.pn123, %218 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #9
  call void @_ZNSt6vectorIPdSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  br label %220

220:                                              ; preds = %219, %110
  %.pn123.pn.pn = phi { ptr, i32 } [ %.pn123.pn, %219 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #9
  resume { ptr, i32 } %.pn123.pn.pn

.loopexit128.loopexit251.unr-lcssa:               ; preds = %.lr.ph165.split, %.lr.ph165.split.preheader
  %.0101164.unr = phi i64 [ 0, %.lr.ph165.split.preheader ], [ %98, %.lr.ph165.split ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit128, label %.lr.ph165.split.epil

.lr.ph165.split.epil:                             ; preds = %.loopexit128.loopexit251.unr-lcssa, %.lr.ph165.split.epil
  %.0101164.epil = phi i64 [ %227, %.lr.ph165.split.epil ], [ %.0101164.unr, %.loopexit128.loopexit251.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph165.split.epil ], [ 0, %.loopexit128.loopexit251.unr-lcssa ]
  %221 = getelementptr inbounds i32, ptr %4, i64 %.0101164.epil
  %222 = load i32, ptr %221, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds i64, ptr %23, i64 %223
  %225 = load i64, ptr %224, align 8, !tbaa !9
  %226 = add i64 %225, 1
  store i64 %226, ptr %224, align 8, !tbaa !9
  %227 = add nuw i64 %.0101164.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.loopexit128, label %.lr.ph165.split.epil, !llvm.loop !35

.loopexit128:                                     ; preds = %.loopexit128.loopexit251.unr-lcssa, %.lr.ph165.split.epil, %._crit_edge163.us, %.preheader127, %._crit_edge159
  %228 = phi i32 [ %2, %.preheader127 ], [ %.pre225, %._crit_edge159 ], [ %2, %._crit_edge163.us ], [ %2, %.lr.ph165.split.epil ], [ %2, %.loopexit128.loopexit251.unr-lcssa ]
  %229 = icmp sgt i32 %228, 0
  br i1 %229, label %.lr.ph170, label %._crit_edge171

.lr.ph170:                                        ; preds = %.loopexit128
  %230 = load i32, ptr %8, align 4
  %.fr172 = freeze i32 %230
  %231 = icmp sgt i32 %.fr172, 0
  br i1 %231, label %.lr.ph170.split.us.preheader, label %._crit_edge171

.lr.ph170.split.us.preheader:                     ; preds = %.lr.ph170
  %232 = zext nneg i32 %.fr172 to i64
  %wide.trip.count222 = zext nneg i32 %228 to i64
  %min.iters.check241 = icmp eq i32 %.fr172, 1
  %n.vec244 = and i64 %232, 2147483646
  %cmp.n250 = icmp eq i64 %n.vec244, %232
  br label %.lr.ph170.split.us

.lr.ph170.split.us:                               ; preds = %.lr.ph170.split.us.preheader, %..loopexit_crit_edge.us
  %indvars.iv219 = phi i64 [ 0, %.lr.ph170.split.us.preheader ], [ %indvars.iv.next220, %..loopexit_crit_edge.us ]
  %233 = getelementptr inbounds i64, ptr %23, i64 %indvars.iv219
  %234 = load i64, ptr %233, align 8, !tbaa !9
  %235 = icmp eq i64 %234, 0
  br i1 %235, label %..loopexit_crit_edge.us, label %.preheader.us

scalar.ph240:                                     ; preds = %scalar.ph240.preheader, %scalar.ph240
  %indvars.iv214 = phi i64 [ %indvars.iv.next215, %scalar.ph240 ], [ %indvars.iv214.ph, %scalar.ph240.preheader ]
  %236 = getelementptr inbounds double, ptr %241, i64 %indvars.iv214
  %237 = load double, ptr %236, align 8, !tbaa !11
  %238 = fdiv double %237, %239
  store double %238, ptr %236, align 8, !tbaa !11
  %indvars.iv.next215 = add nuw nsw i64 %indvars.iv214, 1
  %exitcond218.not = icmp eq i64 %indvars.iv.next215, %232
  br i1 %exitcond218.not, label %..loopexit_crit_edge.us, label %scalar.ph240, !llvm.loop !37

..loopexit_crit_edge.us:                          ; preds = %scalar.ph240, %middle.block239, %.lr.ph170.split.us
  %indvars.iv.next220 = add nuw nsw i64 %indvars.iv219, 1
  %exitcond223.not = icmp eq i64 %indvars.iv.next220, %wide.trip.count222
  br i1 %exitcond223.not, label %._crit_edge171, label %.lr.ph170.split.us, !llvm.loop !38

.preheader.us:                                    ; preds = %.lr.ph170.split.us
  %239 = uitofp i64 %234 to double
  %240 = mul nuw nsw i64 %indvars.iv219, %232
  %241 = getelementptr inbounds double, ptr %5, i64 %240
  br i1 %min.iters.check241, label %scalar.ph240.preheader, label %vector.ph242

scalar.ph240.preheader:                           ; preds = %middle.block239, %.preheader.us
  %indvars.iv214.ph = phi i64 [ 0, %.preheader.us ], [ %n.vec244, %middle.block239 ]
  br label %scalar.ph240

vector.ph242:                                     ; preds = %.preheader.us
  %broadcast.splatinsert = insertelement <2 x double> poison, double %239, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body246

vector.body246:                                   ; preds = %vector.body246, %vector.ph242
  %index247 = phi i64 [ 0, %vector.ph242 ], [ %index.next249, %vector.body246 ]
  %242 = getelementptr inbounds double, ptr %241, i64 %index247
  %wide.load248 = load <2 x double>, ptr %242, align 8, !tbaa !11
  %243 = fdiv <2 x double> %wide.load248, %broadcast.splat
  store <2 x double> %243, ptr %242, align 8, !tbaa !11
  %index.next249 = add nuw i64 %index247, 2
  %244 = icmp eq i64 %index.next249, %n.vec244
  br i1 %244, label %middle.block239, label %vector.body246, !llvm.loop !39

middle.block239:                                  ; preds = %vector.body246
  br i1 %cmp.n250, label %..loopexit_crit_edge.us, label %scalar.ph240.preheader

._crit_edge171:                                   ; preds = %..loopexit_crit_edge.us, %.lr.ph170, %.loopexit128
  call void @_ZdaPv(ptr noundef nonnull %23) #10
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIPdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIPmEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIPdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIPmED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { "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 = { nobuiltin 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 nounwind willreturn memory(argmem: write) }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { builtin 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", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17}
!17 = distinct !{!17, !18}
!18 = distinct !{!18, !"LVerDomain"}
!19 = !{!20}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !22, !23, !24}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!"llvm.loop.isvectorized", i32 1}
!24 = !{!"llvm.loop.unroll.runtime.disable"}
!25 = distinct !{!25, !22, !23}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22}
!29 = distinct !{!29, !22}
!30 = distinct !{!30, !22}
!31 = distinct !{!31, !22}
!32 = distinct !{!32, !22}
!33 = distinct !{!33, !22}
!34 = distinct !{!34, !22}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.unroll.disable"}
!37 = distinct !{!37, !22, !24, !23}
!38 = distinct !{!38, !22}
!39 = distinct !{!39, !22, !23, !24}


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