; LLVM IR from huawei-noah/bolt :: compute/tensor/src/kl.ll (Z21compute_scale_with_KLRSt6vectorIfSaIfEEf)

; 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<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::allocator" = type { i8 }

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_Z11compute_KLDjPKfS0_(i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z21compute_scale_with_KLRSt6vectorIfSaIfEEf(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, float noundef %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i1, align 1
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::vector", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.std::allocator", align 1
  %25 = alloca %"class.std::vector", align 8
  %26 = alloca float, align 4
  %27 = alloca %"class.std::allocator", align 1
  %28 = alloca float, align 4
  %29 = alloca i32, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca %"class.std::vector", align 8
  %36 = alloca float, align 4
  %37 = alloca %"class.std::allocator", align 1
  %38 = alloca i32, align 4
  %39 = alloca float, align 4
  %40 = alloca float, align 4
  %41 = alloca float, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca float, align 4
  %46 = alloca i32, align 4
  %47 = alloca float, align 4
  %48 = alloca float, align 4
  %49 = alloca float, align 4
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store float %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %50 = call noundef ptr @_Z22get_array_sum_function4Arch(i32 noundef 1)
  store ptr %50, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %51 = call noundef ptr @_Z24get_array_scale_function4Arch(i32 noundef 1)
  store ptr %51, ptr %8, align 8, !tbaa !5
  store i1 false, ptr %9, align 1
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 2048, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #6
  %55 = invoke noundef float %52(i32 noundef 6, ptr noundef %54, i32 noundef 2048)
          to label %56 unwind label %69

56:                                               ; preds = %3
  store float %55, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store float 2.048000e+03, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 128, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #6
  %60 = invoke noundef float %57(i32 noundef 6, ptr noundef %59, i32 noundef 128)
          to label %61 unwind label %73

61:                                               ; preds = %56
  store float %60, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %62 = load float, ptr %11, align 4, !tbaa !9
  %63 = load float, ptr %16, align 4, !tbaa !9
  %64 = fsub float %62, %63
  store float %64, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 128, ptr %18, align 4, !tbaa !11
  br label %65

65:                                               ; preds = %422, %61
  %66 = load i32, ptr %18, align 4, !tbaa !11
  %67 = icmp ult i32 %66, 2048
  br i1 %67, label %77, label %68

68:                                               ; preds = %65
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %431

69:                                               ; preds = %3
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %12, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %13, align 4
  br label %448

73:                                               ; preds = %56
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %12, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %13, align 4
  br label %447

77:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #6
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = call ptr @_ZNSt6vectorIfSaIfEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #6
  %80 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %79, ptr %80, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = call ptr @_ZNSt6vectorIfSaIfEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #6
  %83 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %82, ptr %83, align 8
  %84 = load i32, ptr %18, align 4, !tbaa !11
  %85 = zext i32 %84 to i64
  %86 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %23, i64 noundef %85) #6
  %87 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %86, ptr %87, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8
  %90 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8
  invoke void @_ZNSt6vectorIfSaIfEEC2IN9__gnu_cxx17__normal_iteratorIPfS1_EEvEET_S7_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr %89, ptr %91, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %92 unwind label %124

92:                                               ; preds = %77
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  %93 = load float, ptr %17, align 4, !tbaa !9
  %94 = load i32, ptr %18, align 4, !tbaa !11
  %95 = sub i32 %94, 1
  %96 = zext i32 %95 to i64
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %96) #6
  %98 = load float, ptr %97, align 4, !tbaa !9
  %99 = fadd float %98, %93
  store float %99, ptr %97, align 4, !tbaa !9
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = load i32, ptr %18, align 4, !tbaa !11
  %102 = zext i32 %101 to i64
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %102) #6
  %104 = load float, ptr %103, align 4, !tbaa !9
  %105 = load float, ptr %17, align 4, !tbaa !9
  %106 = fsub float %105, %104
  store float %106, ptr %17, align 4, !tbaa !9
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %109 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %110 = load i32, ptr %18, align 4, !tbaa !11
  %111 = load float, ptr %11, align 4, !tbaa !9
  %112 = fdiv float 1.000000e+00, %111
  invoke void %107(i32 noundef 6, ptr noundef %108, ptr noundef %109, i32 noundef %110, float noundef %112, float noundef 0.000000e+00)
          to label %113 unwind label %128

113:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store float 0.000000e+00, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef 128, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %114 unwind label %132

114:                                              ; preds = %113
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %115 = load i32, ptr %18, align 4, !tbaa !11
  %116 = uitofp i32 %115 to float
  %117 = fpext float %116 to double
  %118 = fdiv double %117, 1.280000e+02
  %119 = fptrunc double %118 to float
  store float %119, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !11
  br label %120

120:                                              ; preds = %222, %114
  %121 = load i32, ptr %29, align 4, !tbaa !11
  %122 = icmp ult i32 %121, 128
  br i1 %122, label %136, label %123

123:                                              ; preds = %120
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %226

124:                                              ; preds = %77
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %12, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %430

128:                                              ; preds = %92
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %12, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %13, align 4
  br label %429

132:                                              ; preds = %113
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %12, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %428

136:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %137 = load i32, ptr %29, align 4, !tbaa !11
  %138 = uitofp i32 %137 to float
  %139 = load float, ptr %28, align 4, !tbaa !9
  %140 = fmul float %138, %139
  store float %140, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %141 = load float, ptr %30, align 4, !tbaa !9
  %142 = load float, ptr %28, align 4, !tbaa !9
  %143 = fadd float %141, %142
  store float %143, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %144 = load float, ptr %30, align 4, !tbaa !9
  %145 = invoke noundef float @_ZSt4ceilf(float noundef %144)
          to label %146 unwind label %168

146:                                              ; preds = %136
  %147 = fptosi float %145 to i32
  store i32 %147, ptr %32, align 4, !tbaa !11
  %148 = load i32, ptr %32, align 4, !tbaa !11
  %149 = sitofp i32 %148 to float
  %150 = load float, ptr %30, align 4, !tbaa !9
  %151 = fcmp ogt float %149, %150
  br i1 %151, label %152, label %172

152:                                              ; preds = %146
  %153 = load i32, ptr %32, align 4, !tbaa !11
  %154 = sitofp i32 %153 to float
  %155 = load float, ptr %30, align 4, !tbaa !9
  %156 = fsub float %154, %155
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = load i32, ptr %32, align 4, !tbaa !11
  %159 = sub nsw i32 %158, 1
  %160 = sext i32 %159 to i64
  %161 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %157, i64 noundef %160) #6
  %162 = load float, ptr %161, align 4, !tbaa !9
  %163 = load i32, ptr %29, align 4, !tbaa !11
  %164 = zext i32 %163 to i64
  %165 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %164) #6
  %166 = load float, ptr %165, align 4, !tbaa !9
  %167 = call float @llvm.fmuladd.f32(float %156, float %162, float %166)
  store float %167, ptr %165, align 4, !tbaa !9
  br label %172

168:                                              ; preds = %136
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %12, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %13, align 4
  br label %225

172:                                              ; preds = %152, %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %173 = load float, ptr %31, align 4, !tbaa !9
  %174 = invoke noundef float @_ZSt5floorf(float noundef %173)
          to label %175 unwind label %196

175:                                              ; preds = %172
  %176 = fptosi float %174 to i32
  store i32 %176, ptr %33, align 4, !tbaa !11
  %177 = load i32, ptr %33, align 4, !tbaa !11
  %178 = sitofp i32 %177 to float
  %179 = load float, ptr %31, align 4, !tbaa !9
  %180 = fcmp olt float %178, %179
  br i1 %180, label %181, label %200

181:                                              ; preds = %175
  %182 = load float, ptr %31, align 4, !tbaa !9
  %183 = load i32, ptr %33, align 4, !tbaa !11
  %184 = sitofp i32 %183 to float
  %185 = fsub float %182, %184
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = load i32, ptr %33, align 4, !tbaa !11
  %188 = sext i32 %187 to i64
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %186, i64 noundef %188) #6
  %190 = load float, ptr %189, align 4, !tbaa !9
  %191 = load i32, ptr %29, align 4, !tbaa !11
  %192 = zext i32 %191 to i64
  %193 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %192) #6
  %194 = load float, ptr %193, align 4, !tbaa !9
  %195 = call float @llvm.fmuladd.f32(float %185, float %190, float %194)
  store float %195, ptr %193, align 4, !tbaa !9
  br label %200

196:                                              ; preds = %172
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %12, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %225

200:                                              ; preds = %181, %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %201 = load i32, ptr %32, align 4, !tbaa !11
  store i32 %201, ptr %34, align 4, !tbaa !11
  br label %202

202:                                              ; preds = %218, %200
  %203 = load i32, ptr %34, align 4, !tbaa !11
  %204 = load i32, ptr %33, align 4, !tbaa !11
  %205 = icmp slt i32 %203, %204
  br i1 %205, label %207, label %206

206:                                              ; preds = %202
  store i32 8, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %221

207:                                              ; preds = %202
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = load i32, ptr %34, align 4, !tbaa !11
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %208, i64 noundef %210) #6
  %212 = load float, ptr %211, align 4, !tbaa !9
  %213 = load i32, ptr %29, align 4, !tbaa !11
  %214 = zext i32 %213 to i64
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %214) #6
  %216 = load float, ptr %215, align 4, !tbaa !9
  %217 = fadd float %216, %212
  store float %217, ptr %215, align 4, !tbaa !9
  br label %218

218:                                              ; preds = %207
  %219 = load i32, ptr %34, align 4, !tbaa !11
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %34, align 4, !tbaa !11
  br label %202, !llvm.loop !13

221:                                              ; preds = %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %29, align 4, !tbaa !11
  %224 = add i32 %223, 1
  store i32 %224, ptr %29, align 4, !tbaa !11
  br label %120, !llvm.loop !15

225:                                              ; preds = %196, %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %427

226:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #6
  %227 = load i32, ptr %18, align 4, !tbaa !11
  %228 = zext i32 %227 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  store float 0.000000e+00, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #6
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %228, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %229 unwind label %234

229:                                              ; preds = %226
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  store i32 0, ptr %38, align 4, !tbaa !11
  br label %230

230:                                              ; preds = %401, %229
  %231 = load i32, ptr %38, align 4, !tbaa !11
  %232 = icmp ult i32 %231, 128
  br i1 %232, label %238, label %233

233:                                              ; preds = %230
  store i32 11, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %405

234:                                              ; preds = %226
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %12, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %426

238:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  %239 = load i32, ptr %38, align 4, !tbaa !11
  %240 = uitofp i32 %239 to float
  %241 = load float, ptr %28, align 4, !tbaa !9
  %242 = fmul float %240, %241
  store float %242, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  %243 = load float, ptr %39, align 4, !tbaa !9
  %244 = load float, ptr %28, align 4, !tbaa !9
  %245 = fadd float %243, %244
  store float %245, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  store float 0.000000e+00, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  %246 = load float, ptr %39, align 4, !tbaa !9
  %247 = invoke noundef float @_ZSt4ceilf(float noundef %246)
          to label %248 unwind label %269

248:                                              ; preds = %238
  %249 = fptosi float %247 to i32
  store i32 %249, ptr %42, align 4, !tbaa !11
  %250 = load i32, ptr %42, align 4, !tbaa !11
  %251 = sitofp i32 %250 to float
  %252 = load float, ptr %39, align 4, !tbaa !9
  %253 = fcmp ogt float %251, %252
  br i1 %253, label %254, label %273

254:                                              ; preds = %248
  %255 = load ptr, ptr %5, align 8, !tbaa !5
  %256 = load i32, ptr %42, align 4, !tbaa !11
  %257 = sub nsw i32 %256, 1
  %258 = sext i32 %257 to i64
  %259 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %255, i64 noundef %258) #6
  %260 = load float, ptr %259, align 4, !tbaa !9
  %261 = fcmp une float 0.000000e+00, %260
  br i1 %261, label %262, label %273

262:                                              ; preds = %254
  %263 = load i32, ptr %42, align 4, !tbaa !11
  %264 = sitofp i32 %263 to float
  %265 = load float, ptr %39, align 4, !tbaa !9
  %266 = fsub float %264, %265
  %267 = load float, ptr %41, align 4, !tbaa !9
  %268 = fadd float %267, %266
  store float %268, ptr %41, align 4, !tbaa !9
  br label %273

269:                                              ; preds = %238
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %12, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %13, align 4
  br label %404

273:                                              ; preds = %262, %254, %248
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  %274 = load float, ptr %40, align 4, !tbaa !9
  %275 = invoke noundef float @_ZSt5floorf(float noundef %274)
          to label %276 unwind label %296

276:                                              ; preds = %273
  %277 = fptosi float %275 to i32
  store i32 %277, ptr %43, align 4, !tbaa !11
  %278 = load i32, ptr %43, align 4, !tbaa !11
  %279 = sitofp i32 %278 to float
  %280 = load float, ptr %40, align 4, !tbaa !9
  %281 = fcmp olt float %279, %280
  br i1 %281, label %282, label %300

282:                                              ; preds = %276
  %283 = load ptr, ptr %5, align 8, !tbaa !5
  %284 = load i32, ptr %43, align 4, !tbaa !11
  %285 = sext i32 %284 to i64
  %286 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %283, i64 noundef %285) #6
  %287 = load float, ptr %286, align 4, !tbaa !9
  %288 = fcmp une float 0.000000e+00, %287
  br i1 %288, label %289, label %300

289:                                              ; preds = %282
  %290 = load float, ptr %40, align 4, !tbaa !9
  %291 = load i32, ptr %43, align 4, !tbaa !11
  %292 = sitofp i32 %291 to float
  %293 = fsub float %290, %292
  %294 = load float, ptr %41, align 4, !tbaa !9
  %295 = fadd float %294, %293
  store float %295, ptr %41, align 4, !tbaa !9
  br label %300

296:                                              ; preds = %273
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %12, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  br label %404

300:                                              ; preds = %289, %282, %276
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #6
  %301 = load i32, ptr %42, align 4, !tbaa !11
  store i32 %301, ptr %44, align 4, !tbaa !11
  br label %302

302:                                              ; preds = %318, %300
  %303 = load i32, ptr %44, align 4, !tbaa !11
  %304 = load i32, ptr %43, align 4, !tbaa !11
  %305 = icmp slt i32 %303, %304
  br i1 %305, label %307, label %306

306:                                              ; preds = %302
  store i32 14, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  br label %321

307:                                              ; preds = %302
  %308 = load ptr, ptr %5, align 8, !tbaa !5
  %309 = load i32, ptr %44, align 4, !tbaa !11
  %310 = sext i32 %309 to i64
  %311 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %308, i64 noundef %310) #6
  %312 = load float, ptr %311, align 4, !tbaa !9
  %313 = fcmp une float 0.000000e+00, %312
  br i1 %313, label %314, label %317

314:                                              ; preds = %307
  %315 = load float, ptr %41, align 4, !tbaa !9
  %316 = fadd float %315, 1.000000e+00
  store float %316, ptr %41, align 4, !tbaa !9
  br label %317

317:                                              ; preds = %314, %307
  br label %318

318:                                              ; preds = %317
  %319 = load i32, ptr %44, align 4, !tbaa !11
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %44, align 4, !tbaa !11
  br label %302, !llvm.loop !16

321:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  %322 = load i32, ptr %38, align 4, !tbaa !11
  %323 = zext i32 %322 to i64
  %324 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %323) #6
  %325 = load float, ptr %324, align 4, !tbaa !9
  %326 = load float, ptr %41, align 4, !tbaa !9
  %327 = fdiv float %325, %326
  store float %327, ptr %45, align 4, !tbaa !9
  %328 = load i32, ptr %42, align 4, !tbaa !11
  %329 = sitofp i32 %328 to float
  %330 = load float, ptr %39, align 4, !tbaa !9
  %331 = fcmp ogt float %329, %330
  br i1 %331, label %332, label %352

332:                                              ; preds = %321
  %333 = load ptr, ptr %5, align 8, !tbaa !5
  %334 = load i32, ptr %42, align 4, !tbaa !11
  %335 = sub nsw i32 %334, 1
  %336 = sext i32 %335 to i64
  %337 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %333, i64 noundef %336) #6
  %338 = load float, ptr %337, align 4, !tbaa !9
  %339 = fcmp une float 0.000000e+00, %338
  br i1 %339, label %340, label %352

340:                                              ; preds = %332
  %341 = load float, ptr %45, align 4, !tbaa !9
  %342 = load i32, ptr %42, align 4, !tbaa !11
  %343 = sitofp i32 %342 to float
  %344 = load float, ptr %39, align 4, !tbaa !9
  %345 = fsub float %343, %344
  %346 = load i32, ptr %42, align 4, !tbaa !11
  %347 = sub nsw i32 %346, 1
  %348 = sext i32 %347 to i64
  %349 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %348) #6
  %350 = load float, ptr %349, align 4, !tbaa !9
  %351 = call float @llvm.fmuladd.f32(float %341, float %345, float %350)
  store float %351, ptr %349, align 4, !tbaa !9
  br label %352

352:                                              ; preds = %340, %332, %321
  %353 = load i32, ptr %43, align 4, !tbaa !11
  %354 = sitofp i32 %353 to float
  %355 = load float, ptr %40, align 4, !tbaa !9
  %356 = fcmp olt float %354, %355
  br i1 %356, label %357, label %375

357:                                              ; preds = %352
  %358 = load ptr, ptr %5, align 8, !tbaa !5
  %359 = load i32, ptr %43, align 4, !tbaa !11
  %360 = sext i32 %359 to i64
  %361 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %358, i64 noundef %360) #6
  %362 = load float, ptr %361, align 4, !tbaa !9
  %363 = fcmp une float 0.000000e+00, %362
  br i1 %363, label %364, label %375

364:                                              ; preds = %357
  %365 = load float, ptr %45, align 4, !tbaa !9
  %366 = load float, ptr %40, align 4, !tbaa !9
  %367 = load i32, ptr %43, align 4, !tbaa !11
  %368 = sitofp i32 %367 to float
  %369 = fsub float %366, %368
  %370 = load i32, ptr %43, align 4, !tbaa !11
  %371 = sext i32 %370 to i64
  %372 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %371) #6
  %373 = load float, ptr %372, align 4, !tbaa !9
  %374 = call float @llvm.fmuladd.f32(float %365, float %369, float %373)
  store float %374, ptr %372, align 4, !tbaa !9
  br label %375

375:                                              ; preds = %364, %357, %352
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  %376 = load i32, ptr %42, align 4, !tbaa !11
  store i32 %376, ptr %46, align 4, !tbaa !11
  br label %377

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

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

382:                                              ; preds = %377
  %383 = load ptr, ptr %5, align 8, !tbaa !5
  %384 = load i32, ptr %46, align 4, !tbaa !11
  %385 = sext i32 %384 to i64
  %386 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %383, i64 noundef %385) #6
  %387 = load float, ptr %386, align 4, !tbaa !9
  %388 = fcmp une float 0.000000e+00, %387
  br i1 %388, label %389, label %396

389:                                              ; preds = %382
  %390 = load float, ptr %45, align 4, !tbaa !9
  %391 = load i32, ptr %46, align 4, !tbaa !11
  %392 = sext i32 %391 to i64
  %393 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %392) #6
  %394 = load float, ptr %393, align 4, !tbaa !9
  %395 = fadd float %394, %390
  store float %395, ptr %393, align 4, !tbaa !9
  br label %396

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

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

400:                                              ; preds = %381
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %401

401:                                              ; preds = %400
  %402 = load i32, ptr %38, align 4, !tbaa !11
  %403 = add i32 %402, 1
  store i32 %403, ptr %38, align 4, !tbaa !11
  br label %230, !llvm.loop !18

404:                                              ; preds = %296, %269
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %425

405:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #6
  %406 = load i32, ptr %18, align 4, !tbaa !11
  %407 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %408 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #6
  %409 = invoke noundef float @_Z11compute_KLDjPKfS0_(i32 noundef %406, ptr noundef %407, ptr noundef %408)
          to label %410 unwind label %417

410:                                              ; preds = %405
  store float %409, ptr %47, align 4, !tbaa !9
  %411 = load float, ptr %47, align 4, !tbaa !9
  %412 = load float, ptr %14, align 4, !tbaa !9
  %413 = fcmp olt float %411, %412
  br i1 %413, label %414, label %421

414:                                              ; preds = %410
  %415 = load float, ptr %47, align 4, !tbaa !9
  store float %415, ptr %14, align 4, !tbaa !9
  %416 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %416, ptr %15, align 4, !tbaa !11
  br label %421

417:                                              ; preds = %405
  %418 = landingpad { ptr, i32 }
          cleanup
  %419 = extractvalue { ptr, i32 } %418, 0
  store ptr %419, ptr %12, align 8
  %420 = extractvalue { ptr, i32 } %418, 1
  store i32 %420, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  br label %425

421:                                              ; preds = %414, %410
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  br label %422

422:                                              ; preds = %421
  %423 = load i32, ptr %18, align 4, !tbaa !11
  %424 = add i32 %423, 1
  store i32 %424, ptr %18, align 4, !tbaa !11
  br label %65, !llvm.loop !19

425:                                              ; preds = %417, %404
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #6
  br label %426

426:                                              ; preds = %425, %234
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #6
  br label %427

427:                                              ; preds = %426, %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  br label %428

428:                                              ; preds = %427, %132
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  br label %429

429:                                              ; preds = %428, %128
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  br label %430

430:                                              ; preds = %429, %124
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %446

431:                                              ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #6
  %432 = load i32, ptr %15, align 4, !tbaa !11
  %433 = sitofp i32 %432 to float
  %434 = load float, ptr %6, align 4, !tbaa !9
  %435 = fmul float %433, %434
  store float %435, ptr %48, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #6
  %436 = load float, ptr %48, align 4, !tbaa !9
  %437 = fpext float %436 to double
  %438 = fdiv double 1.270000e+02, %437
  %439 = fptrunc double %438 to float
  store float %439, ptr %49, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %49)
          to label %440 unwind label %442

440:                                              ; preds = %431
  store i1 true, ptr %9, align 1
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %441 = load i1, ptr %9, align 1
  br i1 %441, label %450, label %449

442:                                              ; preds = %431
  %443 = landingpad { ptr, i32 }
          cleanup
  %444 = extractvalue { ptr, i32 } %443, 0
  store ptr %444, ptr %12, align 8
  %445 = extractvalue { ptr, i32 } %443, 1
  store i32 %445, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  br label %446

446:                                              ; preds = %442, %430
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %447

447:                                              ; preds = %446, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %448

448:                                              ; preds = %447, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %451

449:                                              ; preds = %440
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %450

450:                                              ; preds = %449, %440
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void

451:                                              ; preds = %448
  %452 = load ptr, ptr %12, align 8
  %453 = load i32, ptr %13, align 4
  %454 = insertvalue { ptr, i32 } poison, ptr %452, 0
  %455 = insertvalue { ptr, i32 } %454, i32 %453, 1
  resume { ptr, i32 } %455
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z22get_array_sum_function4Arch(i32 noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z24get_array_scale_function4Arch(i32 noundef) #5

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIfED2Ev(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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


; 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<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::allocator" = type { i8 }

; 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 nounwind uwtable
declare dso_local void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_Z11compute_KLDjPKfS0_(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z21compute_scale_with_KLRSt6vectorIfSaIfEEf(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, float noundef %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca float, align 4
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca float, align 4
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca float, align 4
  %14 = tail call noundef ptr @_Z22get_array_sum_function4Arch(i32 noundef 1)
  %15 = tail call noundef ptr @_Z24get_array_scale_function4Arch(i32 noundef 1)
  tail call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %16 = tail call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %17 = invoke noundef float %14(i32 noundef 6, ptr noundef %16, i32 noundef 2048)
          to label %18 unwind label %28

18:                                               ; preds = %3
  %19 = tail call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %20 = invoke noundef float %14(i32 noundef 6, ptr noundef %19, i32 noundef 128)
          to label %21 unwind label %30

21:                                               ; preds = %18
  %22 = fsub float %17, %20
  %23 = fdiv float 1.000000e+00, %17
  br label %32

24:                                               ; preds = %178
  %25 = sitofp i32 %.1128 to float
  %26 = fmul float %25, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %27 = fdiv float 1.270000e+02, %26
  store float %27, ptr %13, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %186 unwind label %187

28:                                               ; preds = %3
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %189

30:                                               ; preds = %18
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %189

32:                                               ; preds = %21, %178
  %indvars.iv198 = phi i64 [ 128, %21 ], [ %indvars.iv.next199, %178 ]
  %.0125179 = phi float [ 2.048000e+03, %21 ], [ %.1126, %178 ]
  %.0127178 = phi i32 [ 128, %21 ], [ %.1128, %178 ]
  %.0133177 = phi float [ %22, %21 ], [ %43, %178 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  %33 = call ptr @_ZNSt6vectorIfSaIfEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %34 = call ptr @_ZNSt6vectorIfSaIfEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  store ptr %34, ptr %5, align 8
  %35 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %indvars.iv198) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt6vectorIfSaIfEEC2IN9__gnu_cxx17__normal_iteratorIPfS1_EEvEET_S7_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr %33, ptr %35, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %36 unwind label %53

36:                                               ; preds = %32
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %37 = add nsw i64 %indvars.iv198, -1
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %37) #6
  %39 = load float, ptr %38, align 4, !tbaa !5
  %40 = fadd float %.0133177, %39
  store float %40, ptr %38, align 4, !tbaa !5
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv198) #6
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = fsub float %.0133177, %42
  %44 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %45 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %46 = trunc nuw nsw i64 %indvars.iv198 to i32
  invoke void %15(i32 noundef 6, ptr noundef %44, ptr noundef %45, i32 noundef %46, float noundef %23, float noundef 0.000000e+00)
          to label %47 unwind label %55

47:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store float 0.000000e+00, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 128, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %48 unwind label %57

48:                                               ; preds = %47
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  %49 = uitofp nneg i32 %46 to double
  %50 = fmul double %49, 7.812500e-03
  %51 = fptrunc double %50 to float
  br label %59

52:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  store float 0.000000e+00, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv198, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %99 unwind label %104

53:                                               ; preds = %32
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %185

55:                                               ; preds = %36
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %184

57:                                               ; preds = %47
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %183

59:                                               ; preds = %48, %._crit_edge
  %indvars.iv181 = phi i64 [ 0, %48 ], [ %indvars.iv.next182, %._crit_edge ]
  %60 = trunc nuw nsw i64 %indvars.iv181 to i32
  %61 = uitofp nneg i32 %60 to float
  %62 = fmul float %51, %61
  %63 = fadd float %62, %51
  %64 = call noundef float @_ZSt4ceilf(float noundef %62)
  %65 = fptosi float %64 to i32
  %66 = sitofp i32 %65 to float
  %67 = fcmp olt float %62, %66
  br i1 %67, label %68, label %77

68:                                               ; preds = %59
  %69 = fsub float %66, %62
  %70 = add nsw i32 %65, -1
  %71 = sext i32 %70 to i64
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %71) #6
  %73 = load float, ptr %72, align 4, !tbaa !5
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv181) #6
  %75 = load float, ptr %74, align 4, !tbaa !5
  %76 = call float @llvm.fmuladd.f32(float %69, float %73, float %75)
  store float %76, ptr %74, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %68, %59
  %78 = call noundef float @_ZSt5floorf(float noundef %63)
  %79 = fptosi float %78 to i32
  %80 = sitofp i32 %79 to float
  %81 = fcmp ogt float %63, %80
  br i1 %81, label %82, label %90

82:                                               ; preds = %77
  %83 = fsub float %63, %80
  %84 = sext i32 %79 to i64
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %84) #6
  %86 = load float, ptr %85, align 4, !tbaa !5
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv181) #6
  %88 = load float, ptr %87, align 4, !tbaa !5
  %89 = call float @llvm.fmuladd.f32(float %83, float %86, float %88)
  store float %89, ptr %87, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %82, %77
  %91 = icmp slt i32 %65, %79
  br i1 %91, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %90
  %92 = sext i32 %65 to i64
  br label %93

._crit_edge:                                      ; preds = %93, %90
  %indvars.iv.next182 = add nuw nsw i64 %indvars.iv181, 1
  %exitcond184.not = icmp eq i64 %indvars.iv.next182, 128
  br i1 %exitcond184.not, label %52, label %59, !llvm.loop !9

93:                                               ; preds = %.lr.ph, %93
  %indvars.iv = phi i64 [ %92, %.lr.ph ], [ %indvars.iv.next, %93 ]
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #6
  %95 = load float, ptr %94, align 4, !tbaa !5
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv181) #6
  %97 = load float, ptr %96, align 4, !tbaa !5
  %98 = fadd float %95, %97
  store float %98, ptr %96, align 4, !tbaa !5
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %lftr.wideiv, %79
  br i1 %exitcond.not, label %._crit_edge, label %93, !llvm.loop !11

99:                                               ; preds = %52
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  br label %106

100:                                              ; preds = %._crit_edge174
  %101 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %102 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %103 = invoke noundef float @_Z11compute_KLDjPKfS0_(i32 noundef %46, ptr noundef %101, ptr noundef %102)
          to label %178 unwind label %180

104:                                              ; preds = %52
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  br label %182

106:                                              ; preds = %99, %._crit_edge174
  %indvars.iv194 = phi i64 [ 0, %99 ], [ %indvars.iv.next195, %._crit_edge174 ]
  %107 = trunc nuw nsw i64 %indvars.iv194 to i32
  %108 = uitofp nneg i32 %107 to float
  %109 = fmul float %51, %108
  %110 = fadd float %109, %51
  %111 = call noundef float @_ZSt4ceilf(float noundef %109)
  %112 = fptosi float %111 to i32
  %113 = sitofp i32 %112 to float
  %114 = fcmp olt float %109, %113
  br i1 %114, label %115, label %123

115:                                              ; preds = %106
  %116 = add nsw i32 %112, -1
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %117) #6
  %119 = load float, ptr %118, align 4, !tbaa !5
  %120 = fcmp une float %119, 0.000000e+00
  br i1 %120, label %121, label %123

121:                                              ; preds = %115
  %122 = fsub float %113, %109
  br label %123

123:                                              ; preds = %121, %115, %106
  %.0129 = phi float [ %122, %121 ], [ 0.000000e+00, %115 ], [ 0.000000e+00, %106 ]
  %124 = call noundef float @_ZSt5floorf(float noundef %110)
  %125 = fptosi float %124 to i32
  %126 = sitofp i32 %125 to float
  %127 = fcmp ogt float %110, %126
  br i1 %127, label %128, label %136

128:                                              ; preds = %123
  %129 = sext i32 %125 to i64
  %130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %129) #6
  %131 = load float, ptr %130, align 4, !tbaa !5
  %132 = fcmp une float %131, 0.000000e+00
  br i1 %132, label %133, label %136

133:                                              ; preds = %128
  %134 = fsub float %110, %126
  %135 = fadd float %.0129, %134
  br label %136

136:                                              ; preds = %133, %128, %123
  %.1130 = phi float [ %135, %133 ], [ %.0129, %128 ], [ %.0129, %123 ]
  %137 = icmp slt i32 %112, %125
  br i1 %137, label %.lr.ph169.preheader, label %._crit_edge170

.lr.ph169.preheader:                              ; preds = %136
  %138 = sext i32 %112 to i64
  %wide.trip.count = sext i32 %125 to i64
  br label %.lr.ph169

._crit_edge170:                                   ; preds = %.lr.ph169, %136
  %.2131.lcssa = phi float [ %.1130, %136 ], [ %.3132, %.lr.ph169 ]
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv194) #6
  %140 = load float, ptr %139, align 4, !tbaa !5
  %141 = fdiv float %140, %.2131.lcssa
  br i1 %114, label %146, label %157

.lr.ph169:                                        ; preds = %.lr.ph169.preheader, %.lr.ph169
  %indvars.iv185 = phi i64 [ %138, %.lr.ph169.preheader ], [ %indvars.iv.next186, %.lr.ph169 ]
  %.2131166 = phi float [ %.1130, %.lr.ph169.preheader ], [ %.3132, %.lr.ph169 ]
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv185) #6
  %143 = load float, ptr %142, align 4, !tbaa !5
  %144 = fcmp une float %143, 0.000000e+00
  %145 = fadd float %.2131166, 1.000000e+00
  %.3132 = select i1 %144, float %145, float %.2131166
  %indvars.iv.next186 = add nsw i64 %indvars.iv185, 1
  %exitcond188.not = icmp eq i64 %indvars.iv.next186, %wide.trip.count
  br i1 %exitcond188.not, label %._crit_edge170, label %.lr.ph169, !llvm.loop !12

146:                                              ; preds = %._crit_edge170
  %147 = add nsw i32 %112, -1
  %148 = sext i32 %147 to i64
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %148) #6
  %150 = load float, ptr %149, align 4, !tbaa !5
  %151 = fcmp une float %150, 0.000000e+00
  br i1 %151, label %152, label %157

152:                                              ; preds = %146
  %153 = fsub float %113, %109
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %148) #6
  %155 = load float, ptr %154, align 4, !tbaa !5
  %156 = call float @llvm.fmuladd.f32(float %141, float %153, float %155)
  store float %156, ptr %154, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %152, %146, %._crit_edge170
  br i1 %127, label %158, label %168

158:                                              ; preds = %157
  %159 = sext i32 %125 to i64
  %160 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %159) #6
  %161 = load float, ptr %160, align 4, !tbaa !5
  %162 = fcmp une float %161, 0.000000e+00
  br i1 %162, label %163, label %168

163:                                              ; preds = %158
  %164 = fsub float %110, %126
  %165 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %159) #6
  %166 = load float, ptr %165, align 4, !tbaa !5
  %167 = call float @llvm.fmuladd.f32(float %141, float %164, float %166)
  store float %167, ptr %165, align 4, !tbaa !5
  br label %168

168:                                              ; preds = %163, %158, %157
  br i1 %137, label %.lr.ph173.preheader, label %._crit_edge174

.lr.ph173.preheader:                              ; preds = %168
  %169 = sext i32 %112 to i64
  br label %.lr.ph173

._crit_edge174:                                   ; preds = %177, %168
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %exitcond197.not = icmp eq i64 %indvars.iv.next195, 128
  br i1 %exitcond197.not, label %100, label %106, !llvm.loop !13

.lr.ph173:                                        ; preds = %.lr.ph173.preheader, %177
  %indvars.iv189 = phi i64 [ %169, %.lr.ph173.preheader ], [ %indvars.iv.next190, %177 ]
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv189) #6
  %171 = load float, ptr %170, align 4, !tbaa !5
  %172 = fcmp une float %171, 0.000000e+00
  br i1 %172, label %173, label %177

173:                                              ; preds = %.lr.ph173
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv189) #6
  %175 = load float, ptr %174, align 4, !tbaa !5
  %176 = fadd float %141, %175
  store float %176, ptr %174, align 4, !tbaa !5
  br label %177

177:                                              ; preds = %.lr.ph173, %173
  %indvars.iv.next190 = add nsw i64 %indvars.iv189, 1
  %lftr.wideiv192 = trunc i64 %indvars.iv.next190 to i32
  %exitcond193.not = icmp eq i32 %lftr.wideiv192, %125
  br i1 %exitcond193.not, label %._crit_edge174, label %.lr.ph173, !llvm.loop !14

178:                                              ; preds = %100
  %179 = fcmp olt float %103, %.0125179
  %.1128 = select i1 %179, i32 %46, i32 %.0127178
  %.1126 = select i1 %179, float %103, float %.0125179
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  %indvars.iv.next199 = add nuw nsw i64 %indvars.iv198, 1
  %exitcond201.not = icmp eq i64 %indvars.iv.next199, 2048
  br i1 %exitcond201.not, label %24, label %32, !llvm.loop !15

180:                                              ; preds = %100
  %181 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %182

182:                                              ; preds = %180, %104
  %.pn = phi { ptr, i32 } [ %181, %180 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %183

183:                                              ; preds = %182, %57
  %.pn.pn = phi { ptr, i32 } [ %.pn, %182 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %184

184:                                              ; preds = %183, %55
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %183 ], [ %56, %55 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %185

185:                                              ; preds = %184, %53
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %184 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %189

186:                                              ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  ret void

187:                                              ; preds = %24
  %188 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  br label %189

189:                                              ; preds = %30, %187, %185, %28
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %29, %28 ], [ %31, %30 ], [ %.pn.pn.pn.pn, %185 ], [ %188, %187 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z22get_array_sum_function4Arch(i32 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z24get_array_scale_function4Arch(i32 noundef) local_unnamed_addr #5

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

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

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

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

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

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

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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


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