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

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<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 uwtable
declare dso_local void @_ZN3vot22MultiComputeAssignmentEmiiPPhPdPiS2_Pm(i64 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE3maxEv() #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN3vot13DisDes2DoubleEPdPhi(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN3vot17ComputeAssignmentEmiiPPhPdPiRdi(i64 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef %7) #1 personality ptr @__gxx_personality_v0 {
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca double, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca %"class.std::vector", align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %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 ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %42 = alloca %"struct.std::_Mem_fn", align 8
  %43 = alloca { i64, i64 }, align 8
  %44 = alloca %"struct.std::_Mem_fn", align 8
  %45 = alloca i32, align 4
  store i64 %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store i32 %2, ptr %11, align 4, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !11
  store ptr %4, ptr %13, align 8, !tbaa !11
  store ptr %5, ptr %14, align 8, !tbaa !11
  store ptr %6, ptr %15, align 8, !tbaa !11
  store i32 %7, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store i64 0, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store double 0.000000e+00, ptr %18, align 8, !tbaa !13
  %46 = load i32, ptr %16, align 4, !tbaa !9
  %47 = icmp eq i32 %46, 1
  br i1 %47, label %54, label %48

48:                                               ; preds = %8
  %49 = load i64, ptr %9, align 8, !tbaa !5
  %50 = load i32, ptr %16, align 4, !tbaa !9
  %51 = mul nsw i32 %50, 100
  %52 = sext i32 %51 to i64
  %53 = icmp ult i64 %49, %52
  br i1 %53, label %54, label %112

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

55:                                               ; preds = %108, %54
  %56 = load i64, ptr %19, align 8, !tbaa !5
  %57 = load i64, ptr %9, align 8, !tbaa !5
  %58 = icmp ult i64 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 2, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %111

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %61 = call noundef double @_ZNSt14numeric_limitsIdE3maxEv() #7
  store double %61, ptr %21, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 -1, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %87, %60
  %63 = load i32, ptr %23, align 4, !tbaa !9
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %67, label %66

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

67:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %68 = load ptr, ptr %13, align 8, !tbaa !11
  %69 = load i32, ptr %23, align 4, !tbaa !9
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = mul nsw i32 %69, %70
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds double, ptr %68, i64 %72
  %74 = load ptr, ptr %12, align 8, !tbaa !11
  %75 = load i64, ptr %19, align 8, !tbaa !5
  %76 = getelementptr inbounds ptr, ptr %74, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = call noundef double @_ZN3vot13DisDes2DoubleEPdPhi(ptr noundef %73, ptr noundef %77, i32 noundef %78)
  store double %79, ptr %24, align 8, !tbaa !13
  %80 = load double, ptr %21, align 8, !tbaa !13
  %81 = load double, ptr %24, align 8, !tbaa !13
  %82 = fcmp ogt double %80, %81
  br i1 %82, label %83, label %86

83:                                               ; preds = %67
  %84 = load double, ptr %24, align 8, !tbaa !13
  store double %84, ptr %21, align 8, !tbaa !13
  %85 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %85, ptr %22, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %83, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %23, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %23, align 4, !tbaa !9
  br label %62, !llvm.loop !15

90:                                               ; preds = %66
  %91 = load double, ptr %21, align 8, !tbaa !13
  %92 = load double, ptr %18, align 8, !tbaa !13
  %93 = fadd double %92, %91
  store double %93, ptr %18, align 8, !tbaa !13
  %94 = load ptr, ptr %14, align 8, !tbaa !11
  %95 = load i64, ptr %19, align 8, !tbaa !5
  %96 = getelementptr inbounds i32, ptr %94, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = load i32, ptr %22, align 4, !tbaa !9
  %99 = icmp ne i32 %97, %98
  br i1 %99, label %100, label %107

100:                                              ; preds = %90
  %101 = load i32, ptr %22, align 4, !tbaa !9
  %102 = load ptr, ptr %14, align 8, !tbaa !11
  %103 = load i64, ptr %19, align 8, !tbaa !5
  %104 = getelementptr inbounds i32, ptr %102, i64 %103
  store i32 %101, ptr %104, align 4, !tbaa !9
  %105 = load i64, ptr %17, align 8, !tbaa !5
  %106 = add i64 %105, 1
  store i64 %106, ptr %17, align 8, !tbaa !5
  br label %107

107:                                              ; preds = %100, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %108

108:                                              ; preds = %107
  %109 = load i64, ptr %19, align 8, !tbaa !5
  %110 = add i64 %109, 1
  store i64 %110, ptr %19, align 8, !tbaa !5
  br label %55, !llvm.loop !17

111:                                              ; preds = %59
  br label %269

112:                                              ; preds = %48
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #7
  call void @_ZNSt6vectorISt6threadSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %113 = load i64, ptr %9, align 8, !tbaa !5
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = udiv i64 %113, %115
  store i64 %116, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store i64 0, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %117 = load i32, ptr %16, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %118, i64 8)
  %120 = extractvalue { i64, i1 } %119, 1
  %121 = extractvalue { i64, i1 } %119, 0
  %122 = select i1 %120, i64 -1, i64 %121
  %123 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %122) #8
          to label %124 unwind label %138

124:                                              ; preds = %112
  store ptr %123, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %125 = load i32, ptr %16, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %126, i64 8)
  %128 = extractvalue { i64, i1 } %127, 1
  %129 = extractvalue { i64, i1 } %127, 0
  %130 = select i1 %128, i64 -1, i64 %129
  %131 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %130) #8
          to label %132 unwind label %142

132:                                              ; preds = %124
  store ptr %131, ptr %31, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %155, %132
  %134 = load i32, ptr %32, align 4, !tbaa !9
  %135 = load i32, ptr %16, align 4, !tbaa !9
  %136 = icmp slt i32 %134, %135
  br i1 %136, label %146, label %137

137:                                              ; preds = %133
  store i32 8, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %158

138:                                              ; preds = %112
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %29, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %30, align 4
  br label %268

142:                                              ; preds = %211, %124
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %29, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %30, align 4
  br label %267

146:                                              ; preds = %133
  %147 = load ptr, ptr %28, align 8, !tbaa !11
  %148 = load i32, ptr %32, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds i64, ptr %147, i64 %149
  store i64 0, ptr %150, align 8, !tbaa !5
  %151 = load ptr, ptr %31, align 8, !tbaa !11
  %152 = load i32, ptr %32, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds double, ptr %151, i64 %153
  store double 0.000000e+00, ptr %154, align 8, !tbaa !13
  br label %155

155:                                              ; preds = %146
  %156 = load i32, ptr %32, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %32, align 4, !tbaa !9
  br label %133, !llvm.loop !18

158:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %199, %158
  %160 = load i32, ptr %33, align 4, !tbaa !9
  %161 = load i32, ptr %16, align 4, !tbaa !9
  %162 = icmp slt i32 %160, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %159
  store i32 11, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %211

164:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  store i64 0, ptr %34, align 8, !tbaa !5
  %165 = load i32, ptr %33, align 4, !tbaa !9
  %166 = load i32, ptr %16, align 4, !tbaa !9
  %167 = sub nsw i32 %166, 1
  %168 = icmp eq i32 %165, %167
  br i1 %168, label %169, label %177

169:                                              ; preds = %164
  %170 = load i64, ptr %9, align 8, !tbaa !5
  %171 = load i32, ptr %16, align 4, !tbaa !9
  %172 = sub nsw i32 %171, 1
  %173 = sext i32 %172 to i64
  %174 = load i64, ptr %26, align 8, !tbaa !5
  %175 = mul i64 %173, %174
  %176 = sub i64 %170, %175
  store i64 %176, ptr %34, align 8, !tbaa !5
  br label %179

177:                                              ; preds = %164
  %178 = load i64, ptr %26, align 8, !tbaa !5
  store i64 %178, ptr %34, align 8, !tbaa !5
  br label %179

179:                                              ; preds = %177, %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %180 = load ptr, ptr %12, align 8, !tbaa !11
  %181 = load i64, ptr %27, align 8, !tbaa !5
  %182 = getelementptr inbounds ptr, ptr %180, i64 %181
  store ptr %182, ptr %36, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %183 = load ptr, ptr %14, align 8, !tbaa !11
  %184 = load i64, ptr %27, align 8, !tbaa !5
  %185 = getelementptr inbounds i32, ptr %183, i64 %184
  store ptr %185, ptr %37, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %186 = load ptr, ptr %31, align 8, !tbaa !11
  %187 = load i32, ptr %33, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds double, ptr %186, i64 %188
  store ptr %189, ptr %38, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %190 = load ptr, ptr %28, align 8, !tbaa !11
  %191 = load i32, ptr %33, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds i64, ptr %190, i64 %192
  store ptr %193, ptr %39, align 8, !tbaa !11
  invoke void @_ZNSt6threadC2IRFvmiiPPhPdPiS3_PmEJRmRiS9_S2_RS3_S4_S3_S5_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @_ZN3vot22MultiComputeAssignmentEmiiPPhPdPiS2_Pm, ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %39)
          to label %194 unwind label %202

194:                                              ; preds = %179
  invoke void @_ZNSt6vectorISt6threadSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %195 unwind label %206

195:                                              ; preds = %194
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  %196 = load i64, ptr %26, align 8, !tbaa !5
  %197 = load i64, ptr %27, align 8, !tbaa !5
  %198 = add i64 %197, %196
  store i64 %198, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %199

199:                                              ; preds = %195
  %200 = load i32, ptr %33, align 4, !tbaa !9
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %33, align 4, !tbaa !9
  br label %159, !llvm.loop !19

202:                                              ; preds = %179
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %29, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %30, align 4
  br label %210

206:                                              ; preds = %194
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %29, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %30, align 4
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  br label %210

210:                                              ; preds = %206, %202
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %267

211:                                              ; preds = %163
  %212 = call ptr @_ZNSt6vectorISt6threadSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  %213 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  store ptr %212, ptr %213, align 8
  %214 = call ptr @_ZNSt6vectorISt6threadSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  %215 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %41, i32 0, i32 0
  store ptr %214, ptr %215, align 8
  store { i64, i64 } { i64 ptrtoint (ptr @_ZNSt6thread4joinEv to i64), i64 0 }, ptr %43, align 8, !tbaa !20
  %216 = getelementptr inbounds { i64, i64 }, ptr %43, i32 0, i32 0
  %217 = load i64, ptr %216, align 8
  %218 = getelementptr inbounds { i64, i64 }, ptr %43, i32 0, i32 1
  %219 = load i64, ptr %218, align 8
  %220 = call { i64, i64 } @_ZSt6mem_fnIFvvESt6threadESt7_Mem_fnIMT0_T_ES5_(i64 %217, i64 %219) #7
  %221 = getelementptr inbounds %"struct.std::_Mem_fn", ptr %42, i32 0, i32 0
  %222 = getelementptr inbounds %"class.std::_Mem_fn_base", ptr %221, i32 0, i32 0
  %223 = getelementptr inbounds { i64, i64 }, ptr %222, i32 0, i32 0
  %224 = extractvalue { i64, i64 } %220, 0
  store i64 %224, ptr %223, align 8
  %225 = getelementptr inbounds { i64, i64 }, ptr %222, i32 0, i32 1
  %226 = extractvalue { i64, i64 } %220, 1
  store i64 %226, ptr %225, align 8
  %227 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  %228 = load ptr, ptr %227, align 8
  %229 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %41, i32 0, i32 0
  %230 = load ptr, ptr %229, align 8
  %231 = getelementptr inbounds { i64, i64 }, ptr %42, i32 0, i32 0
  %232 = load i64, ptr %231, align 8
  %233 = getelementptr inbounds { i64, i64 }, ptr %42, i32 0, i32 1
  %234 = load i64, ptr %233, align 8
  %235 = invoke { i64, i64 } @_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPSt6threadSt6vectorIS2_SaIS2_EEEESt7_Mem_fnIMS2_FvvEEET0_T_SD_SC_(ptr %228, ptr %230, i64 %232, i64 %234)
          to label %236 unwind label %142

236:                                              ; preds = %211
  %237 = getelementptr inbounds %"struct.std::_Mem_fn", ptr %44, i32 0, i32 0
  %238 = getelementptr inbounds %"class.std::_Mem_fn_base", ptr %237, i32 0, i32 0
  %239 = getelementptr inbounds { i64, i64 }, ptr %238, i32 0, i32 0
  %240 = extractvalue { i64, i64 } %235, 0
  store i64 %240, ptr %239, align 8
  %241 = getelementptr inbounds { i64, i64 }, ptr %238, i32 0, i32 1
  %242 = extractvalue { i64, i64 } %235, 1
  store i64 %242, ptr %241, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #7
  store i32 0, ptr %45, align 4, !tbaa !9
  br label %243

243:                                              ; preds = %263, %236
  %244 = load i32, ptr %45, align 4, !tbaa !9
  %245 = load i32, ptr %16, align 4, !tbaa !9
  %246 = icmp slt i32 %244, %245
  br i1 %246, label %248, label %247

247:                                              ; preds = %243
  store i32 14, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  br label %266

248:                                              ; preds = %243
  %249 = load ptr, ptr %28, align 8, !tbaa !11
  %250 = load i32, ptr %45, align 4, !tbaa !9
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds i64, ptr %249, i64 %251
  %253 = load i64, ptr %252, align 8, !tbaa !5
  %254 = load i64, ptr %17, align 8, !tbaa !5
  %255 = add i64 %254, %253
  store i64 %255, ptr %17, align 8, !tbaa !5
  %256 = load ptr, ptr %31, align 8, !tbaa !11
  %257 = load i32, ptr %45, align 4, !tbaa !9
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds double, ptr %256, i64 %258
  %260 = load double, ptr %259, align 8, !tbaa !13
  %261 = load double, ptr %18, align 8, !tbaa !13
  %262 = fadd double %261, %260
  store double %262, ptr %18, align 8, !tbaa !13
  br label %263

263:                                              ; preds = %248
  %264 = load i32, ptr %45, align 4, !tbaa !9
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %45, align 4, !tbaa !9
  br label %243, !llvm.loop !21

266:                                              ; preds = %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @_ZNSt6vectorISt6threadSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  br label %269

267:                                              ; preds = %210, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %268

268:                                              ; preds = %267, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @_ZNSt6vectorISt6threadSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %273

269:                                              ; preds = %266, %111
  %270 = load double, ptr %18, align 8, !tbaa !13
  %271 = load ptr, ptr %15, align 8, !tbaa !11
  store double %270, ptr %271, align 8, !tbaa !13
  %272 = load i64, ptr %17, align 8, !tbaa !5
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  ret i64 %272

273:                                              ; preds = %268
  %274 = load ptr, ptr %29, align 8
  %275 = load i32, ptr %30, align 4
  %276 = insertvalue { ptr, i32 } poison, ptr %274, 0
  %277 = insertvalue { ptr, i32 } %276, i32 %275, 1
  resume { ptr, i32 } %277
}

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

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

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #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 = { nounwind }
attributes #8 = { builtin allocsize(0) }

!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 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !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" = 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 uwtable
declare dso_local void @_ZN3vot22MultiComputeAssignmentEmiiPPhPdPiS2_Pm(i64 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE3maxEv() local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN3vot13DisDes2DoubleEPdPhi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN3vot17ComputeAssignmentEmiiPPhPdPiRdi(i64 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %6, i32 noundef %7) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca i64, align 8
  %14 = alloca %"class.std::thread", align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store i32 %1, ptr %9, align 4, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !9
  %19 = icmp eq i32 %7, 1
  br i1 %19, label %24, label %20

20:                                               ; preds = %8
  %21 = mul nsw i32 %7, 100
  %22 = sext i32 %21 to i64
  %23 = icmp ugt i64 %22, %0
  br i1 %23, label %24, label %51

24:                                               ; preds = %20, %8
  %.not126 = icmp eq i64 %0, 0
  br i1 %.not126, label %.loopexit, label %.lr.ph122

.lr.ph122:                                        ; preds = %24
  %25 = icmp sgt i32 %2, 0
  br i1 %25, label %.lr.ph114.us.preheader, label %.lr.ph122.split

.lr.ph114.us.preheader:                           ; preds = %.lr.ph122
  %26 = sext i32 %1 to i64
  %wide.trip.count143 = zext nneg i32 %2 to i64
  br label %.lr.ph114.us

.lr.ph114.us:                                     ; preds = %.lr.ph114.us.preheader, %31
  %.072120.us = phi i64 [ %.1.us, %31 ], [ 0, %.lr.ph114.us.preheader ]
  %.073119.us = phi double [ %40, %31 ], [ 0.000000e+00, %.lr.ph114.us.preheader ]
  %.076118.us = phi i64 [ %32, %31 ], [ 0, %.lr.ph114.us.preheader ]
  %27 = tail call noundef double @_ZNSt14numeric_limitsIdE3maxEv() #7
  %28 = getelementptr inbounds ptr, ptr %3, i64 %.076118.us
  br label %33

29:                                               ; preds = %._crit_edge115.us
  store i32 %.180.us, ptr %41, align 4, !tbaa !5
  %30 = add i64 %.072120.us, 1
  br label %31

31:                                               ; preds = %29, %._crit_edge115.us
  %.1.us = phi i64 [ %30, %29 ], [ %.072120.us, %._crit_edge115.us ]
  %32 = add nuw i64 %.076118.us, 1
  %exitcond145.not = icmp eq i64 %32, %0
  br i1 %exitcond145.not, label %.loopexit, label %.lr.ph114.us, !llvm.loop !11

33:                                               ; preds = %.lr.ph114.us, %33
  %indvars.iv140 = phi i64 [ 0, %.lr.ph114.us ], [ %indvars.iv.next141, %33 ]
  %.077112.us = phi double [ %27, %.lr.ph114.us ], [ %.178.us, %33 ]
  %.079111.us = phi i32 [ -1, %.lr.ph114.us ], [ %.180.us, %33 ]
  %34 = mul nsw i64 %indvars.iv140, %26
  %35 = getelementptr inbounds double, ptr %4, i64 %34
  %36 = load ptr, ptr %28, align 8, !tbaa !9
  %37 = tail call noundef double @_ZN3vot13DisDes2DoubleEPdPhi(ptr noundef %35, ptr noundef %36, i32 noundef %1)
  %38 = fcmp ogt double %.077112.us, %37
  %39 = trunc nuw nsw i64 %indvars.iv140 to i32
  %.180.us = select i1 %38, i32 %39, i32 %.079111.us
  %.178.us = select i1 %38, double %37, double %.077112.us
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %exitcond144.not = icmp eq i64 %indvars.iv.next141, %wide.trip.count143
  br i1 %exitcond144.not, label %._crit_edge115.us, label %33, !llvm.loop !13

._crit_edge115.us:                                ; preds = %33
  %40 = fadd double %.073119.us, %.178.us
  %41 = getelementptr inbounds i32, ptr %5, i64 %.076118.us
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %.not.us = icmp eq i32 %42, %.180.us
  br i1 %.not.us, label %31, label %29

.lr.ph122.split:                                  ; preds = %.lr.ph122, %49
  %.072120 = phi i64 [ %.1, %49 ], [ 0, %.lr.ph122 ]
  %.073119 = phi double [ %44, %49 ], [ 0.000000e+00, %.lr.ph122 ]
  %.076118 = phi i64 [ %50, %49 ], [ 0, %.lr.ph122 ]
  %43 = tail call noundef double @_ZNSt14numeric_limitsIdE3maxEv() #7
  %44 = fadd double %.073119, %43
  %45 = getelementptr inbounds i32, ptr %5, i64 %.076118
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %.not = icmp eq i32 %46, -1
  br i1 %.not, label %49, label %47

47:                                               ; preds = %.lr.ph122.split
  store i32 -1, ptr %45, align 4, !tbaa !5
  %48 = add i64 %.072120, 1
  br label %49

49:                                               ; preds = %47, %.lr.ph122.split
  %.1 = phi i64 [ %48, %47 ], [ %.072120, %.lr.ph122.split ]
  %50 = add nuw i64 %.076118, 1
  %exitcond139.not = icmp eq i64 %50, %0
  br i1 %exitcond139.not, label %.loopexit, label %.lr.ph122.split, !llvm.loop !11

51:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #7
  call void @_ZNSt6vectorISt6threadSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %52 = sext i32 %7 to i64
  %53 = udiv i64 %0, %52
  %54 = icmp slt i32 %7, 0
  %55 = shl nsw i64 %52, 3
  %56 = select i1 %54, i64 -1, i64 %55
  %57 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %56) #8
          to label %58 unwind label %68

58:                                               ; preds = %51
  %59 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %56) #8
          to label %.preheader99 unwind label %70

.preheader99:                                     ; preds = %58
  %60 = icmp sgt i32 %7, 0
  br i1 %60, label %.lr.ph103, label %._crit_edge

.lr.ph103:                                        ; preds = %.preheader99
  %61 = zext nneg i32 %7 to i64
  %62 = shl nuw nsw i64 %61, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %57, i8 0, i64 %62, i1 false), !tbaa !14
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %59, i8 0, i64 %62, i1 false), !tbaa !16
  %63 = add nsw i32 %7, -1
  %64 = zext nneg i32 %63 to i64
  %65 = mul i64 %53, %64
  %66 = sub i64 %0, %65
  %67 = zext nneg i32 %63 to i64
  %wide.trip.count = zext nneg i32 %7 to i64
  br label %79

68:                                               ; preds = %51
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %123

70:                                               ; preds = %._crit_edge, %58
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %123

._crit_edge:                                      ; preds = %86, %.preheader99
  %72 = call ptr @_ZNSt6vectorISt6threadSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %73 = call ptr @_ZNSt6vectorISt6threadSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %74 = call { i64, i64 } @_ZSt6mem_fnIFvvESt6threadESt7_Mem_fnIMT0_T_ES5_(i64 ptrtoint (ptr @_ZNSt6thread4joinEv to i64), i64 0) #7
  %75 = extractvalue { i64, i64 } %74, 0
  %76 = extractvalue { i64, i64 } %74, 1
  %77 = invoke { i64, i64 } @_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPSt6threadSt6vectorIS2_SaIS2_EEEESt7_Mem_fnIMS2_FvvEEET0_T_SD_SC_(ptr %72, ptr %73, i64 %75, i64 %76)
          to label %.preheader unwind label %70

.preheader:                                       ; preds = %._crit_edge
  br i1 %60, label %.lr.ph107.preheader, label %._crit_edge108

.lr.ph107.preheader:                              ; preds = %.preheader
  %wide.trip.count137 = zext nneg i32 %7 to i64
  %xtraiter = and i64 %wide.trip.count137, 3
  %78 = icmp ult i32 %7, 4
  br i1 %78, label %._crit_edge108.loopexit.unr-lcssa, label %.lr.ph107.preheader.new

.lr.ph107.preheader.new:                          ; preds = %.lr.ph107.preheader
  %unroll_iter = and i64 %wide.trip.count137, 2147483644
  br label %.lr.ph107

79:                                               ; preds = %.lr.ph103, %86
  %indvars.iv = phi i64 [ 0, %.lr.ph103 ], [ %indvars.iv.next, %86 ]
  %.082102 = phi i64 [ 0, %.lr.ph103 ], [ %87, %86 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %80 = icmp eq i64 %indvars.iv, %67
  %storemerge = select i1 %80, i64 %66, i64 %53
  store i64 %storemerge, ptr %13, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %81 = getelementptr inbounds ptr, ptr %3, i64 %.082102
  store ptr %81, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %82 = getelementptr inbounds i32, ptr %5, i64 %.082102
  store ptr %82, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %83 = getelementptr inbounds double, ptr %59, i64 %indvars.iv
  store ptr %83, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %84 = getelementptr inbounds i64, ptr %57, i64 %indvars.iv
  store ptr %84, ptr %18, align 8, !tbaa !9
  invoke void @_ZNSt6threadC2IRFvmiiPPhPdPiS3_PmEJRmRiS9_S2_RS3_S4_S3_S5_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull @_ZN3vot22MultiComputeAssignmentEmiiPPhPdPiS2_Pm, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %85 unwind label %88

85:                                               ; preds = %79
  invoke void @_ZNSt6vectorISt6threadSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %86 unwind label %90

86:                                               ; preds = %85
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %87 = add i64 %.082102, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  %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, label %79, !llvm.loop !18

88:                                               ; preds = %79
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %92

90:                                               ; preds = %85
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %92

92:                                               ; preds = %90, %88
  %.pn = phi { ptr, i32 } [ %91, %90 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %123

._crit_edge108.loopexit.unr-lcssa:                ; preds = %.lr.ph107, %.lr.ph107.preheader
  %.lcssa157.ph = phi i64 [ poison, %.lr.ph107.preheader ], [ %119, %.lr.ph107 ]
  %.lcssa156.ph = phi double [ poison, %.lr.ph107.preheader ], [ %122, %.lr.ph107 ]
  %indvars.iv134.unr = phi i64 [ 0, %.lr.ph107.preheader ], [ %indvars.iv.next135.3, %.lr.ph107 ]
  %.2105.unr = phi i64 [ 0, %.lr.ph107.preheader ], [ %119, %.lr.ph107 ]
  %.174104.unr = phi double [ 0.000000e+00, %.lr.ph107.preheader ], [ %122, %.lr.ph107 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge108, label %.lr.ph107.epil

.lr.ph107.epil:                                   ; preds = %._crit_edge108.loopexit.unr-lcssa, %.lr.ph107.epil
  %indvars.iv134.epil = phi i64 [ %indvars.iv.next135.epil, %.lr.ph107.epil ], [ %indvars.iv134.unr, %._crit_edge108.loopexit.unr-lcssa ]
  %.2105.epil = phi i64 [ %95, %.lr.ph107.epil ], [ %.2105.unr, %._crit_edge108.loopexit.unr-lcssa ]
  %.174104.epil = phi double [ %98, %.lr.ph107.epil ], [ %.174104.unr, %._crit_edge108.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph107.epil ], [ 0, %._crit_edge108.loopexit.unr-lcssa ]
  %93 = getelementptr inbounds i64, ptr %57, i64 %indvars.iv134.epil
  %94 = load i64, ptr %93, align 8, !tbaa !14
  %95 = add i64 %94, %.2105.epil
  %96 = getelementptr inbounds double, ptr %59, i64 %indvars.iv134.epil
  %97 = load double, ptr %96, align 8, !tbaa !16
  %98 = fadd double %.174104.epil, %97
  %indvars.iv.next135.epil = add nuw nsw i64 %indvars.iv134.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 %._crit_edge108, label %.lr.ph107.epil, !llvm.loop !19

._crit_edge108:                                   ; preds = %._crit_edge108.loopexit.unr-lcssa, %.lr.ph107.epil, %.preheader
  %.174.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %.lcssa156.ph, %._crit_edge108.loopexit.unr-lcssa ], [ %98, %.lr.ph107.epil ]
  %.2.lcssa = phi i64 [ 0, %.preheader ], [ %.lcssa157.ph, %._crit_edge108.loopexit.unr-lcssa ], [ %95, %.lr.ph107.epil ]
  call void @_ZNSt6vectorISt6threadSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  br label %.loopexit

.lr.ph107:                                        ; preds = %.lr.ph107, %.lr.ph107.preheader.new
  %indvars.iv134 = phi i64 [ 0, %.lr.ph107.preheader.new ], [ %indvars.iv.next135.3, %.lr.ph107 ]
  %.2105 = phi i64 [ 0, %.lr.ph107.preheader.new ], [ %119, %.lr.ph107 ]
  %.174104 = phi double [ 0.000000e+00, %.lr.ph107.preheader.new ], [ %122, %.lr.ph107 ]
  %niter = phi i64 [ 0, %.lr.ph107.preheader.new ], [ %niter.next.3, %.lr.ph107 ]
  %99 = getelementptr inbounds i64, ptr %57, i64 %indvars.iv134
  %100 = load i64, ptr %99, align 8, !tbaa !14
  %101 = add i64 %100, %.2105
  %102 = getelementptr inbounds double, ptr %59, i64 %indvars.iv134
  %103 = load double, ptr %102, align 8, !tbaa !16
  %104 = fadd double %.174104, %103
  %indvars.iv.next135 = or disjoint i64 %indvars.iv134, 1
  %105 = getelementptr inbounds i64, ptr %57, i64 %indvars.iv.next135
  %106 = load i64, ptr %105, align 8, !tbaa !14
  %107 = add i64 %106, %101
  %108 = getelementptr inbounds double, ptr %59, i64 %indvars.iv.next135
  %109 = load double, ptr %108, align 8, !tbaa !16
  %110 = fadd double %104, %109
  %indvars.iv.next135.1 = or disjoint i64 %indvars.iv134, 2
  %111 = getelementptr inbounds i64, ptr %57, i64 %indvars.iv.next135.1
  %112 = load i64, ptr %111, align 8, !tbaa !14
  %113 = add i64 %112, %107
  %114 = getelementptr inbounds double, ptr %59, i64 %indvars.iv.next135.1
  %115 = load double, ptr %114, align 8, !tbaa !16
  %116 = fadd double %110, %115
  %indvars.iv.next135.2 = or disjoint i64 %indvars.iv134, 3
  %117 = getelementptr inbounds i64, ptr %57, i64 %indvars.iv.next135.2
  %118 = load i64, ptr %117, align 8, !tbaa !14
  %119 = add i64 %118, %113
  %120 = getelementptr inbounds double, ptr %59, i64 %indvars.iv.next135.2
  %121 = load double, ptr %120, align 8, !tbaa !16
  %122 = fadd double %116, %121
  %indvars.iv.next135.3 = add nuw nsw i64 %indvars.iv134, 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 %._crit_edge108.loopexit.unr-lcssa, label %.lr.ph107, !llvm.loop !21

123:                                              ; preds = %70, %92, %68
  %.pn.pn.pn = phi { ptr, i32 } [ %69, %68 ], [ %.pn, %92 ], [ %71, %70 ]
  call void @_ZNSt6vectorISt6threadSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  resume { ptr, i32 } %.pn.pn.pn

.loopexit:                                        ; preds = %49, %31, %24, %._crit_edge108
  %.275 = phi double [ %.174.lcssa, %._crit_edge108 ], [ 0.000000e+00, %24 ], [ %40, %31 ], [ %44, %49 ]
  %.3 = phi i64 [ %.2.lcssa, %._crit_edge108 ], [ 0, %24 ], [ %.1.us, %31 ], [ %.1, %49 ]
  store double %.275, ptr %6, align 8, !tbaa !16
  ret i64 %.3
}

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }

!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 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !12}


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