; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src (ap)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.13 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.13 = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.alglib_impl::rcommv2_request" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.alglib_impl::rcommv2_buffers" = type { %"class.alglib::real_1d_array", %"class.alglib::real_1d_array", %"class.alglib::real_1d_array", %"class.alglib::real_1d_array", %"class.alglib::real_2d_array", %"class.alglib::sparsematrix" }
%"class.alglib::real_1d_array" = type { %"class.alglib::ae_vector_wrapper.base", [7 x i8] }
%"class.alglib::ae_vector_wrapper.base" = type <{ ptr, ptr, %"struct.alglib_impl::ae_vector", i8 }>
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }
%"class.alglib::real_2d_array" = type { %"class.alglib::ae_matrix_wrapper.base", [7 x i8] }
%"class.alglib::ae_matrix_wrapper.base" = type <{ ptr, ptr, %"struct.alglib_impl::ae_matrix", i8 }>
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%"class.alglib::sparsematrix" = type { %"class.alglib::_sparsematrix_owner.base", [7 x i8] }
%"class.alglib::_sparsematrix_owner.base" = type <{ ptr, ptr, i8 }>
%"class.alglib_impl::rcommv2_callbacks" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@_ZTIN6alglib8ap_errorE = external dso_local constant { ptr, ptr }, align 8
@.str.127 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [55 x i8], align 1

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #1

declare i32 @__gxx_personality_v0(...)

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

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_free_exception(ptr)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6alglib8ap_errorD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl19process_v2request_2ERNS_15rcommv2_requestElRNS_17rcommv2_callbacksERNS_15rcommv2_buffersE(ptr noundef nonnull align 8 dereferenceable(96) %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 8 dereferenceable(480) %3) #4 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i1, align 1
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator", align 1
  %24 = alloca i1, align 1
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator", align 1
  %29 = alloca i1, align 1
  %30 = alloca i64, align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator", align 1
  %35 = alloca i1, align 1
  %36 = alloca i64, align 8
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = alloca %"class.std::allocator", align 1
  %41 = alloca i1, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %42, i32 0, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !11
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = load i64, ptr %6, align 8, !tbaa !9
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %47, i32 0, i32 6
  %49 = load ptr, ptr %48, align 8, !tbaa !13
  %50 = load i64, ptr %49, align 8, !tbaa !9
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %51, i32 0, i32 7
  %53 = load ptr, ptr %52, align 8, !tbaa !14
  %54 = load i64, ptr %53, align 8, !tbaa !9
  %55 = add nsw i64 %50, %54
  %56 = mul nsw i64 %46, %55
  %57 = getelementptr inbounds double, ptr %45, i64 %56
  store ptr %57, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %58, i32 0, i32 9
  %60 = load ptr, ptr %59, align 8, !tbaa !15
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = load i64, ptr %6, align 8, !tbaa !9
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %63, i32 0, i32 5
  %65 = load ptr, ptr %64, align 8, !tbaa !16
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = mul nsw i64 %62, %66
  %68 = getelementptr inbounds double, ptr %61, i64 %67
  store ptr %68, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %69, i32 0, i32 10
  %71 = load ptr, ptr %70, align 8, !tbaa !17
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = load i64, ptr %6, align 8, !tbaa !9
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %74, i32 0, i32 5
  %76 = load ptr, ptr %75, align 8, !tbaa !16
  %77 = load i64, ptr %76, align 8, !tbaa !9
  %78 = mul nsw i64 %73, %77
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %79, i32 0, i32 6
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = load i64, ptr %81, align 8, !tbaa !9
  %83 = mul nsw i64 %78, %82
  %84 = getelementptr inbounds double, ptr %72, i64 %83
  store ptr %84, ptr %11, align 8, !tbaa !5
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %85, i32 0, i32 0
  %87 = call noundef ptr @_ZN6alglib17ae_vector_wrapper5c_ptrEv(ptr noundef nonnull align 8 dereferenceable(81) %86)
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %87, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !18
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %91, i32 0, i32 6
  %93 = load ptr, ptr %92, align 8, !tbaa !13
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = mul i64 %94, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %89, ptr align 8 %90, i64 %95, i1 false)
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %96, i32 0, i32 7
  %98 = load ptr, ptr %97, align 8, !tbaa !14
  %99 = load i64, ptr %98, align 8, !tbaa !9
  %100 = icmp sgt i64 %99, 0
  br i1 %100, label %101, label %118

101:                                              ; preds = %4
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %102, i32 0, i32 1
  %104 = call noundef ptr @_ZN6alglib17ae_vector_wrapper5c_ptrEv(ptr noundef nonnull align 8 dereferenceable(81) %103)
  %105 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %104, i32 0, i32 4
  %106 = load ptr, ptr %105, align 8, !tbaa !18
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %108, i32 0, i32 6
  %110 = load ptr, ptr %109, align 8, !tbaa !13
  %111 = load i64, ptr %110, align 8, !tbaa !9
  %112 = getelementptr inbounds double, ptr %107, i64 %111
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %113, i32 0, i32 7
  %115 = load ptr, ptr %114, align 8, !tbaa !14
  %116 = load i64, ptr %115, align 8, !tbaa !9
  %117 = mul i64 %116, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %106, ptr align 8 %112, i64 %117, i1 false)
  br label %118

118:                                              ; preds = %101, %4
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = getelementptr inbounds %"class.alglib_impl::rcommv2_callbacks", ptr %119, i32 0, i32 1
  %121 = load ptr, ptr %120, align 8, !tbaa !19
  %122 = icmp ne ptr %121, null
  br i1 %122, label %123, label %189

123:                                              ; preds = %118
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %124, i32 0, i32 7
  %126 = load ptr, ptr %125, align 8, !tbaa !14
  %127 = load i64, ptr %126, align 8, !tbaa !9
  %128 = icmp eq i64 %127, 0
  br i1 %128, label %129, label %135

129:                                              ; preds = %123
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %130, i32 0, i32 5
  %132 = load ptr, ptr %131, align 8, !tbaa !16
  %133 = load i64, ptr %132, align 8, !tbaa !9
  %134 = icmp eq i64 %133, 1
  br i1 %134, label %166, label %135

135:                                              ; preds = %129, %123
  store i1 true, ptr %18, align 1
  %136 = call ptr @__cxa_allocate_exception(i64 32) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.127, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %137 unwind label %144

137:                                              ; preds = %135
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !21
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef %140)
          to label %141 unwind label %148

141:                                              ; preds = %137
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.128)
          to label %142 unwind label %152

142:                                              ; preds = %141
  invoke void @_ZN6alglib8ap_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %136, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %143 unwind label %156

143:                                              ; preds = %142
  store i1 false, ptr %18, align 1
  invoke void @__cxa_throw(ptr %136, ptr @_ZTIN6alglib8ap_errorE, ptr @_ZN6alglib8ap_errorD2Ev) #7
          to label %502 unwind label %156

144:                                              ; preds = %135
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %16, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %17, align 4
  br label %162

148:                                              ; preds = %137
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %16, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %17, align 4
  br label %161

152:                                              ; preds = %141
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %16, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %17, align 4
  br label %160

156:                                              ; preds = %143, %142
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %16, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %160

160:                                              ; preds = %156, %152
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %161

161:                                              ; preds = %160, %148
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %162

162:                                              ; preds = %161, %144
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  %163 = load i1, ptr %18, align 1
  br i1 %163, label %164, label %165

164:                                              ; preds = %162
  call void @__cxa_free_exception(ptr %136) #6
  br label %165

165:                                              ; preds = %164, %162
  br label %496

166:                                              ; preds = %129
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = getelementptr inbounds %"class.alglib_impl::rcommv2_callbacks", ptr %167, i32 0, i32 1
  %169 = load ptr, ptr %168, align 8, !tbaa !19
  %170 = load ptr, ptr %8, align 8, !tbaa !5
  %171 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %170, i32 0, i32 0
  %172 = load ptr, ptr %10, align 8, !tbaa !5
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %173, i32 0, i32 3
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %175, i32 0, i32 1
  %177 = load ptr, ptr %176, align 8, !tbaa !22
  call void %169(ptr noundef nonnull align 8 dereferenceable(81) %171, ptr noundef nonnull align 8 dereferenceable(8) %172, ptr noundef nonnull align 8 dereferenceable(81) %174, ptr noundef %177)
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %179, i32 0, i32 3
  %181 = call noundef ptr @_ZN6alglib17ae_vector_wrapper5c_ptrEv(ptr noundef nonnull align 8 dereferenceable(81) %180)
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %181, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !18
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %184, i32 0, i32 6
  %186 = load ptr, ptr %185, align 8, !tbaa !13
  %187 = load i64, ptr %186, align 8, !tbaa !9
  %188 = mul i64 %187, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %178, ptr align 8 %183, i64 %188, i1 false)
  store i32 1, ptr %19, align 4
  br label %495

189:                                              ; preds = %118
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = getelementptr inbounds %"class.alglib_impl::rcommv2_callbacks", ptr %190, i32 0, i32 6
  %192 = load ptr, ptr %191, align 8, !tbaa !23
  %193 = icmp ne ptr %192, null
  br i1 %193, label %194, label %262

194:                                              ; preds = %189
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %195, i32 0, i32 7
  %197 = load ptr, ptr %196, align 8, !tbaa !14
  %198 = load i64, ptr %197, align 8, !tbaa !9
  %199 = icmp sgt i64 %198, 0
  br i1 %199, label %200, label %206

200:                                              ; preds = %194
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %201, i32 0, i32 5
  %203 = load ptr, ptr %202, align 8, !tbaa !16
  %204 = load i64, ptr %203, align 8, !tbaa !9
  %205 = icmp eq i64 %204, 1
  br i1 %205, label %237, label %206

206:                                              ; preds = %200, %194
  store i1 true, ptr %24, align 1
  %207 = call ptr @__cxa_allocate_exception(i64 32) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef @.str.127, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %208 unwind label %215

208:                                              ; preds = %206
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %209, i32 0, i32 0
  %211 = load ptr, ptr %210, align 8, !tbaa !21
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef %211)
          to label %212 unwind label %219

212:                                              ; preds = %208
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.128)
          to label %213 unwind label %223

213:                                              ; preds = %212
  invoke void @_ZN6alglib8ap_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %207, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %214 unwind label %227

214:                                              ; preds = %213
  store i1 false, ptr %24, align 1
  invoke void @__cxa_throw(ptr %207, ptr @_ZTIN6alglib8ap_errorE, ptr @_ZN6alglib8ap_errorD2Ev) #7
          to label %502 unwind label %227

215:                                              ; preds = %206
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %16, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %17, align 4
  br label %233

219:                                              ; preds = %208
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %16, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %17, align 4
  br label %232

223:                                              ; preds = %212
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %16, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %17, align 4
  br label %231

227:                                              ; preds = %214, %213
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %16, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %231

231:                                              ; preds = %227, %223
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %232

232:                                              ; preds = %231, %219
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  br label %233

233:                                              ; preds = %232, %215
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  %234 = load i1, ptr %24, align 1
  br i1 %234, label %235, label %236

235:                                              ; preds = %233
  call void @__cxa_free_exception(ptr %207) #6
  br label %236

236:                                              ; preds = %235, %233
  br label %496

237:                                              ; preds = %200
  %238 = load ptr, ptr %7, align 8, !tbaa !5
  %239 = getelementptr inbounds %"class.alglib_impl::rcommv2_callbacks", ptr %238, i32 0, i32 6
  %240 = load ptr, ptr %239, align 8, !tbaa !23
  %241 = load ptr, ptr %8, align 8, !tbaa !5
  %242 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %241, i32 0, i32 0
  %243 = load ptr, ptr %8, align 8, !tbaa !5
  %244 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %243, i32 0, i32 1
  %245 = load ptr, ptr %10, align 8, !tbaa !5
  %246 = load ptr, ptr %8, align 8, !tbaa !5
  %247 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %246, i32 0, i32 3
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %248, i32 0, i32 1
  %250 = load ptr, ptr %249, align 8, !tbaa !22
  call void %240(ptr noundef nonnull align 8 dereferenceable(81) %242, ptr noundef nonnull align 8 dereferenceable(81) %244, ptr noundef nonnull align 8 dereferenceable(8) %245, ptr noundef nonnull align 8 dereferenceable(81) %247, ptr noundef %250)
  %251 = load ptr, ptr %11, align 8, !tbaa !5
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  %253 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %252, i32 0, i32 3
  %254 = call noundef ptr @_ZN6alglib17ae_vector_wrapper5c_ptrEv(ptr noundef nonnull align 8 dereferenceable(81) %253)
  %255 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %254, i32 0, i32 4
  %256 = load ptr, ptr %255, align 8, !tbaa !18
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %257, i32 0, i32 6
  %259 = load ptr, ptr %258, align 8, !tbaa !13
  %260 = load i64, ptr %259, align 8, !tbaa !9
  %261 = mul i64 %260, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %251, ptr align 8 %256, i64 %261, i1 false)
  store i32 1, ptr %19, align 4
  br label %495

262:                                              ; preds = %189
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  %264 = getelementptr inbounds %"class.alglib_impl::rcommv2_callbacks", ptr %263, i32 0, i32 3
  %265 = load ptr, ptr %264, align 8, !tbaa !24
  %266 = icmp ne ptr %265, null
  br i1 %266, label %267, label %362

267:                                              ; preds = %262
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  %269 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %268, i32 0, i32 7
  %270 = load ptr, ptr %269, align 8, !tbaa !14
  %271 = load i64, ptr %270, align 8, !tbaa !9
  %272 = icmp eq i64 %271, 0
  br i1 %272, label %304, label %273

273:                                              ; preds = %267
  store i1 true, ptr %29, align 1
  %274 = call ptr @__cxa_allocate_exception(i64 32) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef @.str.127, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %275 unwind label %282

275:                                              ; preds = %273
  %276 = load ptr, ptr %5, align 8, !tbaa !5
  %277 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %276, i32 0, i32 0
  %278 = load ptr, ptr %277, align 8, !tbaa !21
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef %278)
          to label %279 unwind label %286

279:                                              ; preds = %275
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %25, ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef @.str.128)
          to label %280 unwind label %290

280:                                              ; preds = %279
  invoke void @_ZN6alglib8ap_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %274, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %281 unwind label %294

281:                                              ; preds = %280
  store i1 false, ptr %29, align 1
  invoke void @__cxa_throw(ptr %274, ptr @_ZTIN6alglib8ap_errorE, ptr @_ZN6alglib8ap_errorD2Ev) #7
          to label %502 unwind label %294

282:                                              ; preds = %273
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %16, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %17, align 4
  br label %300

286:                                              ; preds = %275
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %16, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %17, align 4
  br label %299

290:                                              ; preds = %279
  %291 = landingpad { ptr, i32 }
          cleanup
  %292 = extractvalue { ptr, i32 } %291, 0
  store ptr %292, ptr %16, align 8
  %293 = extractvalue { ptr, i32 } %291, 1
  store i32 %293, ptr %17, align 4
  br label %298

294:                                              ; preds = %281, %280
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %16, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  br label %298

298:                                              ; preds = %294, %290
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %299

299:                                              ; preds = %298, %286
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  br label %300

300:                                              ; preds = %299, %282
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  %301 = load i1, ptr %29, align 1
  br i1 %301, label %302, label %303

302:                                              ; preds = %300
  call void @__cxa_free_exception(ptr %274) #6
  br label %303

303:                                              ; preds = %302, %300
  br label %496

304:                                              ; preds = %267
  %305 = load ptr, ptr %7, align 8, !tbaa !5
  %306 = getelementptr inbounds %"class.alglib_impl::rcommv2_callbacks", ptr %305, i32 0, i32 3
  %307 = load ptr, ptr %306, align 8, !tbaa !24
  %308 = load ptr, ptr %8, align 8, !tbaa !5
  %309 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %308, i32 0, i32 0
  %310 = load ptr, ptr %8, align 8, !tbaa !5
  %311 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %310, i32 0, i32 2
  %312 = load ptr, ptr %8, align 8, !tbaa !5
  %313 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %312, i32 0, i32 4
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  %315 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %314, i32 0, i32 1
  %316 = load ptr, ptr %315, align 8, !tbaa !22
  call void %307(ptr noundef nonnull align 8 dereferenceable(81) %309, ptr noundef nonnull align 8 dereferenceable(81) %311, ptr noundef nonnull align 8 dereferenceable(97) %313, ptr noundef %316)
  %317 = load ptr, ptr %10, align 8, !tbaa !5
  %318 = load ptr, ptr %8, align 8, !tbaa !5
  %319 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %318, i32 0, i32 2
  %320 = call noundef ptr @_ZN6alglib17ae_vector_wrapper5c_ptrEv(ptr noundef nonnull align 8 dereferenceable(81) %319)
  %321 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %320, i32 0, i32 4
  %322 = load ptr, ptr %321, align 8, !tbaa !18
  %323 = load ptr, ptr %5, align 8, !tbaa !5
  %324 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %323, i32 0, i32 5
  %325 = load ptr, ptr %324, align 8, !tbaa !16
  %326 = load i64, ptr %325, align 8, !tbaa !9
  %327 = mul i64 %326, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %317, ptr align 8 %322, i64 %327, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %328

328:                                              ; preds = %358, %304
  %329 = load i64, ptr %30, align 8, !tbaa !9
  %330 = load ptr, ptr %5, align 8, !tbaa !5
  %331 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %330, i32 0, i32 5
  %332 = load ptr, ptr %331, align 8, !tbaa !16
  %333 = load i64, ptr %332, align 8, !tbaa !9
  %334 = icmp slt i64 %329, %333
  br i1 %334, label %336, label %335

335:                                              ; preds = %328
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %361

336:                                              ; preds = %328
  %337 = load ptr, ptr %11, align 8, !tbaa !5
  %338 = load i64, ptr %30, align 8, !tbaa !9
  %339 = load ptr, ptr %5, align 8, !tbaa !5
  %340 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %339, i32 0, i32 6
  %341 = load ptr, ptr %340, align 8, !tbaa !13
  %342 = load i64, ptr %341, align 8, !tbaa !9
  %343 = mul nsw i64 %338, %342
  %344 = getelementptr inbounds double, ptr %337, i64 %343
  %345 = load ptr, ptr %8, align 8, !tbaa !5
  %346 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %345, i32 0, i32 4
  %347 = call noundef ptr @_ZN6alglib17ae_matrix_wrapper5c_ptrEv(ptr noundef nonnull align 8 dereferenceable(97) %346)
  %348 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %347, i32 0, i32 6
  %349 = load ptr, ptr %348, align 8, !tbaa !18
  %350 = load i64, ptr %30, align 8, !tbaa !9
  %351 = getelementptr inbounds ptr, ptr %349, i64 %350
  %352 = load ptr, ptr %351, align 8, !tbaa !5
  %353 = load ptr, ptr %5, align 8, !tbaa !5
  %354 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %353, i32 0, i32 6
  %355 = load ptr, ptr %354, align 8, !tbaa !13
  %356 = load i64, ptr %355, align 8, !tbaa !9
  %357 = mul i64 %356, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %344, ptr align 8 %352, i64 %357, i1 false)
  br label %358

358:                                              ; preds = %336
  %359 = load i64, ptr %30, align 8, !tbaa !9
  %360 = add nsw i64 %359, 1
  store i64 %360, ptr %30, align 8, !tbaa !9
  br label %328, !llvm.loop !25

361:                                              ; preds = %335
  store i32 1, ptr %19, align 4
  br label %495

362:                                              ; preds = %262
  %363 = load ptr, ptr %7, align 8, !tbaa !5
  %364 = getelementptr inbounds %"class.alglib_impl::rcommv2_callbacks", ptr %363, i32 0, i32 8
  %365 = load ptr, ptr %364, align 8, !tbaa !27
  %366 = icmp ne ptr %365, null
  br i1 %366, label %367, label %464

367:                                              ; preds = %362
  %368 = load ptr, ptr %5, align 8, !tbaa !5
  %369 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %368, i32 0, i32 7
  %370 = load ptr, ptr %369, align 8, !tbaa !14
  %371 = load i64, ptr %370, align 8, !tbaa !9
  %372 = icmp sgt i64 %371, 0
  br i1 %372, label %404, label %373

373:                                              ; preds = %367
  store i1 true, ptr %35, align 1
  %374 = call ptr @__cxa_allocate_exception(i64 32) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef @.str.127, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %375 unwind label %382

375:                                              ; preds = %373
  %376 = load ptr, ptr %5, align 8, !tbaa !5
  %377 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %376, i32 0, i32 0
  %378 = load ptr, ptr %377, align 8, !tbaa !21
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %32, ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef %378)
          to label %379 unwind label %386

379:                                              ; preds = %375
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %31, ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef @.str.128)
          to label %380 unwind label %390

380:                                              ; preds = %379
  invoke void @_ZN6alglib8ap_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %374, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %381 unwind label %394

381:                                              ; preds = %380
  store i1 false, ptr %35, align 1
  invoke void @__cxa_throw(ptr %374, ptr @_ZTIN6alglib8ap_errorE, ptr @_ZN6alglib8ap_errorD2Ev) #7
          to label %502 unwind label %394

382:                                              ; preds = %373
  %383 = landingpad { ptr, i32 }
          cleanup
  %384 = extractvalue { ptr, i32 } %383, 0
  store ptr %384, ptr %16, align 8
  %385 = extractvalue { ptr, i32 } %383, 1
  store i32 %385, ptr %17, align 4
  br label %400

386:                                              ; preds = %375
  %387 = landingpad { ptr, i32 }
          cleanup
  %388 = extractvalue { ptr, i32 } %387, 0
  store ptr %388, ptr %16, align 8
  %389 = extractvalue { ptr, i32 } %387, 1
  store i32 %389, ptr %17, align 4
  br label %399

390:                                              ; preds = %379
  %391 = landingpad { ptr, i32 }
          cleanup
  %392 = extractvalue { ptr, i32 } %391, 0
  store ptr %392, ptr %16, align 8
  %393 = extractvalue { ptr, i32 } %391, 1
  store i32 %393, ptr %17, align 4
  br label %398

394:                                              ; preds = %381, %380
  %395 = landingpad { ptr, i32 }
          cleanup
  %396 = extractvalue { ptr, i32 } %395, 0
  store ptr %396, ptr %16, align 8
  %397 = extractvalue { ptr, i32 } %395, 1
  store i32 %397, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  br label %398

398:                                              ; preds = %394, %390
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  br label %399

399:                                              ; preds = %398, %386
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  br label %400

400:                                              ; preds = %399, %382
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #6
  %401 = load i1, ptr %35, align 1
  br i1 %401, label %402, label %403

402:                                              ; preds = %400
  call void @__cxa_free_exception(ptr %374) #6
  br label %403

403:                                              ; preds = %402, %400
  br label %496

404:                                              ; preds = %367
  %405 = load ptr, ptr %7, align 8, !tbaa !5
  %406 = getelementptr inbounds %"class.alglib_impl::rcommv2_callbacks", ptr %405, i32 0, i32 8
  %407 = load ptr, ptr %406, align 8, !tbaa !27
  %408 = load ptr, ptr %8, align 8, !tbaa !5
  %409 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %408, i32 0, i32 0
  %410 = load ptr, ptr %8, align 8, !tbaa !5
  %411 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %410, i32 0, i32 1
  %412 = load ptr, ptr %8, align 8, !tbaa !5
  %413 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %412, i32 0, i32 2
  %414 = load ptr, ptr %8, align 8, !tbaa !5
  %415 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %414, i32 0, i32 4
  %416 = load ptr, ptr %5, align 8, !tbaa !5
  %417 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %416, i32 0, i32 1
  %418 = load ptr, ptr %417, align 8, !tbaa !22
  call void %407(ptr noundef nonnull align 8 dereferenceable(81) %409, ptr noundef nonnull align 8 dereferenceable(81) %411, ptr noundef nonnull align 8 dereferenceable(81) %413, ptr noundef nonnull align 8 dereferenceable(97) %415, ptr noundef %418)
  %419 = load ptr, ptr %10, align 8, !tbaa !5
  %420 = load ptr, ptr %8, align 8, !tbaa !5
  %421 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %420, i32 0, i32 2
  %422 = call noundef ptr @_ZN6alglib17ae_vector_wrapper5c_ptrEv(ptr noundef nonnull align 8 dereferenceable(81) %421)
  %423 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %422, i32 0, i32 4
  %424 = load ptr, ptr %423, align 8, !tbaa !18
  %425 = load ptr, ptr %5, align 8, !tbaa !5
  %426 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %425, i32 0, i32 5
  %427 = load ptr, ptr %426, align 8, !tbaa !16
  %428 = load i64, ptr %427, align 8, !tbaa !9
  %429 = mul i64 %428, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %419, ptr align 8 %424, i64 %429, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  store i64 0, ptr %36, align 8, !tbaa !9
  br label %430

430:                                              ; preds = %460, %404
  %431 = load i64, ptr %36, align 8, !tbaa !9
  %432 = load ptr, ptr %5, align 8, !tbaa !5
  %433 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %432, i32 0, i32 5
  %434 = load ptr, ptr %433, align 8, !tbaa !16
  %435 = load i64, ptr %434, align 8, !tbaa !9
  %436 = icmp slt i64 %431, %435
  br i1 %436, label %438, label %437

437:                                              ; preds = %430
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %463

438:                                              ; preds = %430
  %439 = load ptr, ptr %11, align 8, !tbaa !5
  %440 = load i64, ptr %36, align 8, !tbaa !9
  %441 = load ptr, ptr %5, align 8, !tbaa !5
  %442 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %441, i32 0, i32 6
  %443 = load ptr, ptr %442, align 8, !tbaa !13
  %444 = load i64, ptr %443, align 8, !tbaa !9
  %445 = mul nsw i64 %440, %444
  %446 = getelementptr inbounds double, ptr %439, i64 %445
  %447 = load ptr, ptr %8, align 8, !tbaa !5
  %448 = getelementptr inbounds %"class.alglib_impl::rcommv2_buffers", ptr %447, i32 0, i32 4
  %449 = call noundef ptr @_ZN6alglib17ae_matrix_wrapper5c_ptrEv(ptr noundef nonnull align 8 dereferenceable(97) %448)
  %450 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %449, i32 0, i32 6
  %451 = load ptr, ptr %450, align 8, !tbaa !18
  %452 = load i64, ptr %36, align 8, !tbaa !9
  %453 = getelementptr inbounds ptr, ptr %451, i64 %452
  %454 = load ptr, ptr %453, align 8, !tbaa !5
  %455 = load ptr, ptr %5, align 8, !tbaa !5
  %456 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %455, i32 0, i32 6
  %457 = load ptr, ptr %456, align 8, !tbaa !13
  %458 = load i64, ptr %457, align 8, !tbaa !9
  %459 = mul i64 %458, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %446, ptr align 8 %454, i64 %459, i1 false)
  br label %460

460:                                              ; preds = %438
  %461 = load i64, ptr %36, align 8, !tbaa !9
  %462 = add nsw i64 %461, 1
  store i64 %462, ptr %36, align 8, !tbaa !9
  br label %430, !llvm.loop !28

463:                                              ; preds = %437
  store i32 1, ptr %19, align 4
  br label %495

464:                                              ; preds = %362
  store i1 true, ptr %41, align 1
  %465 = call ptr @__cxa_allocate_exception(i64 32) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef @.str.127, ptr noundef nonnull align 1 dereferenceable(1) %40)
          to label %466 unwind label %473

466:                                              ; preds = %464
  %467 = load ptr, ptr %5, align 8, !tbaa !5
  %468 = getelementptr inbounds %"class.alglib_impl::rcommv2_request", ptr %467, i32 0, i32 0
  %469 = load ptr, ptr %468, align 8, !tbaa !21
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %38, ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef %469)
          to label %470 unwind label %477

470:                                              ; preds = %466
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %37, ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef @.str.132)
          to label %471 unwind label %481

471:                                              ; preds = %470
  invoke void @_ZN6alglib8ap_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %465, ptr noundef nonnull align 8 dereferenceable(32) %37)
          to label %472 unwind label %485

472:                                              ; preds = %471
  store i1 false, ptr %41, align 1
  invoke void @__cxa_throw(ptr %465, ptr @_ZTIN6alglib8ap_errorE, ptr @_ZN6alglib8ap_errorD2Ev) #7
          to label %502 unwind label %485

473:                                              ; preds = %464
  %474 = landingpad { ptr, i32 }
          cleanup
  %475 = extractvalue { ptr, i32 } %474, 0
  store ptr %475, ptr %16, align 8
  %476 = extractvalue { ptr, i32 } %474, 1
  store i32 %476, ptr %17, align 4
  br label %491

477:                                              ; preds = %466
  %478 = landingpad { ptr, i32 }
          cleanup
  %479 = extractvalue { ptr, i32 } %478, 0
  store ptr %479, ptr %16, align 8
  %480 = extractvalue { ptr, i32 } %478, 1
  store i32 %480, ptr %17, align 4
  br label %490

481:                                              ; preds = %470
  %482 = landingpad { ptr, i32 }
          cleanup
  %483 = extractvalue { ptr, i32 } %482, 0
  store ptr %483, ptr %16, align 8
  %484 = extractvalue { ptr, i32 } %482, 1
  store i32 %484, ptr %17, align 4
  br label %489

485:                                              ; preds = %472, %471
  %486 = landingpad { ptr, i32 }
          cleanup
  %487 = extractvalue { ptr, i32 } %486, 0
  store ptr %487, ptr %16, align 8
  %488 = extractvalue { ptr, i32 } %486, 1
  store i32 %488, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #6
  br label %489

489:                                              ; preds = %485, %481
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #6
  br label %490

490:                                              ; preds = %489, %477
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #6
  br label %491

491:                                              ; preds = %490, %473
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #6
  %492 = load i1, ptr %41, align 1
  br i1 %492, label %493, label %494

493:                                              ; preds = %491
  call void @__cxa_free_exception(ptr %465) #6
  br label %494

494:                                              ; preds = %493, %491
  br label %496

495:                                              ; preds = %463, %361, %237, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret void

496:                                              ; preds = %494, %403, %303, %236, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %497

497:                                              ; preds = %496
  %498 = load ptr, ptr %16, align 8
  %499 = load i32, ptr %17, align 4
  %500 = insertvalue { ptr, i32 } poison, ptr %498, 0
  %501 = insertvalue { ptr, i32 } %500, i32 %499, 1
  resume { ptr, i32 } %501

502:                                              ; preds = %472, %381, %281, %214, %143
  unreachable
}

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

declare void @_ZN6alglib8ap_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr, ptr)

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"_ZTSN11alglib_impl15rcommv2_requestE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!13 = !{!12, !6, i64 48}
!14 = !{!12, !6, i64 56}
!15 = !{!12, !6, i64 72}
!16 = !{!12, !6, i64 40}
!17 = !{!12, !6, i64 80}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !6, i64 8}
!20 = !{!"_ZTSN11alglib_impl17rcommv2_callbacksE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!21 = !{!12, !6, i64 0}
!22 = !{!12, !6, i64 8}
!23 = !{!20, !6, i64 48}
!24 = !{!20, !6, i64 24}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!20, !6, i64 64}
!28 = distinct !{!28, !26}


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.13 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.13 = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@_ZTIN6alglib8ap_errorE = external dso_local constant { ptr, ptr }, align 8
@.str.127 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [55 x i8], align 1

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #1

declare i32 @__gxx_personality_v0(...)

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6alglib8ap_errorD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl19process_v2request_2ERNS_15rcommv2_requestElRNS_17rcommv2_callbacksERNS_15rcommv2_buffersE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(96) %0, i64 noundef %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(80) %2, ptr noundef nonnull align 8 dereferenceable(480) %3) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::allocator", align 1
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = load ptr, ptr %26, align 8, !tbaa !10
  %28 = getelementptr inbounds i8, ptr %0, i64 48
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = load i64, ptr %29, align 8, !tbaa !12
  %31 = getelementptr inbounds i8, ptr %0, i64 56
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  %33 = load i64, ptr %32, align 8, !tbaa !12
  %34 = add nsw i64 %33, %30
  %35 = mul nsw i64 %34, %1
  %36 = getelementptr inbounds double, ptr %27, i64 %35
  %37 = getelementptr inbounds i8, ptr %0, i64 72
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = load ptr, ptr %38, align 8, !tbaa !10
  %40 = getelementptr inbounds i8, ptr %0, i64 40
  %41 = load ptr, ptr %40, align 8, !tbaa !16
  %42 = load i64, ptr %41, align 8, !tbaa !12
  %43 = mul nsw i64 %42, %1
  %44 = getelementptr inbounds double, ptr %39, i64 %43
  %45 = getelementptr inbounds i8, ptr %0, i64 80
  %46 = load ptr, ptr %45, align 8, !tbaa !17
  %47 = load ptr, ptr %46, align 8, !tbaa !10
  %48 = mul nsw i64 %43, %30
  %49 = getelementptr inbounds double, ptr %47, i64 %48
  %50 = tail call noundef ptr @_ZN6alglib17ae_vector_wrapper5c_ptrEv(ptr noundef nonnull align 8 dereferenceable(81) %3)
  %51 = getelementptr inbounds i8, ptr %50, i64 56
  %52 = load ptr, ptr %51, align 8, !tbaa !18
  %53 = load ptr, ptr %28, align 8, !tbaa !11
  %54 = load i64, ptr %53, align 8, !tbaa !12
  %55 = shl i64 %54, 3
  tail call void @llvm.memmove.p0.p0.i64(ptr align 8 %52, ptr align 8 %36, i64 %55, i1 false)
  %56 = load ptr, ptr %31, align 8, !tbaa !14
  %57 = load i64, ptr %56, align 8, !tbaa !12
  %58 = icmp sgt i64 %57, 0
  br i1 %58, label %59, label %70

59:                                               ; preds = %4
  %60 = getelementptr inbounds i8, ptr %3, i64 88
  %61 = tail call noundef ptr @_ZN6alglib17ae_vector_wrapper5c_ptrEv(ptr noundef nonnull align 8 dereferenceable(81) %60)
  %62 = getelementptr inbounds i8, ptr %61, i64 56
  %63 = load ptr, ptr %62, align 8, !tbaa !18
  %64 = load ptr, ptr %28, align 8, !tbaa !11
  %65 = load i64, ptr %64, align 8, !tbaa !12
  %66 = getelementptr inbounds double, ptr %36, i64 %65
  %67 = load ptr, ptr %31, align 8, !tbaa !14
  %68 = load i64, ptr %67, align 8, !tbaa !12
  %69 = shl i64 %68, 3
  tail call void @llvm.memmove.p0.p0.i64(ptr align 8 %63, ptr align 8 %66, i64 %69, i1 false)
  br label %70

70:                                               ; preds = %59, %4
  %71 = getelementptr inbounds i8, ptr %2, i64 8
  %72 = load ptr, ptr %71, align 8, !tbaa !19
  %.not = icmp eq ptr %72, null
  br i1 %.not, label %101, label %73

73:                                               ; preds = %70
  %74 = load ptr, ptr %31, align 8, !tbaa !14
  %75 = load i64, ptr %74, align 8, !tbaa !12
  %76 = icmp eq i64 %75, 0
  br i1 %76, label %77, label %81

77:                                               ; preds = %73
  %78 = load ptr, ptr %40, align 8, !tbaa !16
  %79 = load i64, ptr %78, align 8, !tbaa !12
  %80 = icmp eq i64 %79, 1
  br i1 %80, label %97, label %81

81:                                               ; preds = %77, %73
  %82 = tail call ptr @__cxa_allocate_exception(i64 32) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.127, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %83 unwind label %.thread

83:                                               ; preds = %81
  %84 = load ptr, ptr %0, align 8, !tbaa !21
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef %84)
          to label %85 unwind label %89

85:                                               ; preds = %83
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.128)
          to label %86 unwind label %91

86:                                               ; preds = %85
  invoke void @_ZN6alglib8ap_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %82, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %87 unwind label %93

87:                                               ; preds = %86
  invoke void @__cxa_throw(ptr %82, ptr nonnull @_ZTIN6alglib8ap_errorE, ptr nonnull @_ZN6alglib8ap_errorD2Ev) #7
          to label %263 unwind label %93

.thread:                                          ; preds = %81
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %.sink.split

89:                                               ; preds = %83
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %96

91:                                               ; preds = %85
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %95

93:                                               ; preds = %87, %86
  %.0106 = phi i1 [ false, %87 ], [ true, %86 ]
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %95

95:                                               ; preds = %93, %91
  %.pn152 = phi { ptr, i32 } [ %94, %93 ], [ %92, %91 ]
  %.1107 = phi i1 [ %.0106, %93 ], [ true, %91 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %96

96:                                               ; preds = %89, %95
  %.pn152.pn = phi { ptr, i32 } [ %.pn152, %95 ], [ %90, %89 ]
  %.2108 = phi i1 [ %.1107, %95 ], [ true, %89 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br i1 %.2108, label %.sink.split, label %262

97:                                               ; preds = %77
  %98 = getelementptr inbounds i8, ptr %3, i64 264
  %99 = getelementptr inbounds i8, ptr %0, i64 8
  %100 = load ptr, ptr %99, align 8, !tbaa !22
  tail call void %72(ptr noundef nonnull align 8 dereferenceable(81) %3, ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(81) %98, ptr noundef %100)
  br label %.loopexit.sink.split

101:                                              ; preds = %70
  %102 = getelementptr inbounds i8, ptr %2, i64 48
  %103 = load ptr, ptr %102, align 8, !tbaa !23
  %.not134 = icmp eq ptr %103, null
  br i1 %.not134, label %133, label %104

104:                                              ; preds = %101
  %105 = load ptr, ptr %31, align 8, !tbaa !14
  %106 = load i64, ptr %105, align 8, !tbaa !12
  %107 = icmp sgt i64 %106, 0
  br i1 %107, label %108, label %112

108:                                              ; preds = %104
  %109 = load ptr, ptr %40, align 8, !tbaa !16
  %110 = load i64, ptr %109, align 8, !tbaa !12
  %111 = icmp eq i64 %110, 1
  br i1 %111, label %128, label %112

112:                                              ; preds = %108, %104
  %113 = tail call ptr @__cxa_allocate_exception(i64 32) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.127, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %114 unwind label %.thread160

114:                                              ; preds = %112
  %115 = load ptr, ptr %0, align 8, !tbaa !21
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef %115)
          to label %116 unwind label %120

116:                                              ; preds = %114
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.128)
          to label %117 unwind label %122

117:                                              ; preds = %116
  invoke void @_ZN6alglib8ap_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %113, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %118 unwind label %124

118:                                              ; preds = %117
  invoke void @__cxa_throw(ptr %113, ptr nonnull @_ZTIN6alglib8ap_errorE, ptr nonnull @_ZN6alglib8ap_errorD2Ev) #7
          to label %263 unwind label %124

.thread160:                                       ; preds = %112
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(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 32, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br label %.sink.split

120:                                              ; preds = %114
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %127

122:                                              ; preds = %116
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %126

124:                                              ; preds = %118, %117
  %.0102 = phi i1 [ false, %118 ], [ true, %117 ]
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %126

126:                                              ; preds = %124, %122
  %.pn148 = phi { ptr, i32 } [ %125, %124 ], [ %123, %122 ]
  %.1103 = phi i1 [ %.0102, %124 ], [ true, %122 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %127

127:                                              ; preds = %120, %126
  %.pn148.pn = phi { ptr, i32 } [ %.pn148, %126 ], [ %121, %120 ]
  %.2104 = phi i1 [ %.1103, %126 ], [ true, %120 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(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 32, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br i1 %.2104, label %.sink.split, label %262

128:                                              ; preds = %108
  %129 = getelementptr inbounds i8, ptr %3, i64 88
  %130 = getelementptr inbounds i8, ptr %3, i64 264
  %131 = getelementptr inbounds i8, ptr %0, i64 8
  %132 = load ptr, ptr %131, align 8, !tbaa !22
  tail call void %103(ptr noundef nonnull align 8 dereferenceable(81) %3, ptr noundef nonnull align 8 dereferenceable(81) %129, ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(81) %130, ptr noundef %132)
  br label %.loopexit.sink.split

133:                                              ; preds = %101
  %134 = getelementptr inbounds i8, ptr %2, i64 24
  %135 = load ptr, ptr %134, align 8, !tbaa !24
  %.not135 = icmp eq ptr %135, null
  br i1 %.not135, label %186, label %136

136:                                              ; preds = %133
  %137 = load ptr, ptr %31, align 8, !tbaa !14
  %138 = load i64, ptr %137, align 8, !tbaa !12
  %139 = icmp eq i64 %138, 0
  br i1 %139, label %156, label %140

140:                                              ; preds = %136
  %141 = tail call ptr @__cxa_allocate_exception(i64 32) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull @.str.127, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %142 unwind label %.thread164

142:                                              ; preds = %140
  %143 = load ptr, ptr %0, align 8, !tbaa !21
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef %143)
          to label %144 unwind label %148

144:                                              ; preds = %142
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull @.str.128)
          to label %145 unwind label %150

145:                                              ; preds = %144
  invoke void @_ZN6alglib8ap_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %141, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %146 unwind label %152

146:                                              ; preds = %145
  invoke void @__cxa_throw(ptr %141, ptr nonnull @_ZTIN6alglib8ap_errorE, ptr nonnull @_ZN6alglib8ap_errorD2Ev) #7
          to label %263 unwind label %152

.thread164:                                       ; preds = %140
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br label %.sink.split

148:                                              ; preds = %142
  %149 = landingpad { ptr, i32 }
          cleanup
  br label %155

150:                                              ; preds = %144
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %154

152:                                              ; preds = %146, %145
  %.098 = phi i1 [ false, %146 ], [ true, %145 ]
  %153 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %154

154:                                              ; preds = %152, %150
  %.pn144 = phi { ptr, i32 } [ %153, %152 ], [ %151, %150 ]
  %.199 = phi i1 [ %.098, %152 ], [ true, %150 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %155

155:                                              ; preds = %148, %154
  %.pn144.pn = phi { ptr, i32 } [ %.pn144, %154 ], [ %149, %148 ]
  %.2100 = phi i1 [ %.199, %154 ], [ true, %148 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br i1 %.2100, label %.sink.split, label %262

156:                                              ; preds = %136
  %157 = getelementptr inbounds i8, ptr %3, i64 176
  %158 = getelementptr inbounds i8, ptr %3, i64 352
  %159 = getelementptr inbounds i8, ptr %0, i64 8
  %160 = load ptr, ptr %159, align 8, !tbaa !22
  tail call void %135(ptr noundef nonnull align 8 dereferenceable(81) %3, ptr noundef nonnull align 8 dereferenceable(81) %157, ptr noundef nonnull align 8 dereferenceable(97) %158, ptr noundef %160)
  %161 = tail call noundef ptr @_ZN6alglib17ae_vector_wrapper5c_ptrEv(ptr noundef nonnull align 8 dereferenceable(81) %157)
  %162 = getelementptr inbounds i8, ptr %161, i64 56
  %163 = load ptr, ptr %162, align 8, !tbaa !18
  %164 = load ptr, ptr %40, align 8, !tbaa !16
  %165 = load i64, ptr %164, align 8, !tbaa !12
  %166 = shl i64 %165, 3
  tail call void @llvm.memmove.p0.p0.i64(ptr align 8 %44, ptr align 8 %163, i64 %166, i1 false)
  %167 = load ptr, ptr %40, align 8, !tbaa !16
  %168 = load i64, ptr %167, align 8, !tbaa !12
  %169 = icmp sgt i64 %168, 0
  br i1 %169, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %156, %.lr.ph
  %.097177 = phi i64 [ %182, %.lr.ph ], [ 0, %156 ]
  %170 = load ptr, ptr %28, align 8, !tbaa !11
  %171 = load i64, ptr %170, align 8, !tbaa !12
  %172 = mul nsw i64 %171, %.097177
  %173 = getelementptr inbounds double, ptr %49, i64 %172
  %174 = tail call noundef ptr @_ZN6alglib17ae_matrix_wrapper5c_ptrEv(ptr noundef nonnull align 8 dereferenceable(97) %158)
  %175 = getelementptr inbounds i8, ptr %174, i64 72
  %176 = load ptr, ptr %175, align 8, !tbaa !18
  %177 = getelementptr inbounds ptr, ptr %176, i64 %.097177
  %178 = load ptr, ptr %177, align 8, !tbaa !10
  %179 = load ptr, ptr %28, align 8, !tbaa !11
  %180 = load i64, ptr %179, align 8, !tbaa !12
  %181 = shl i64 %180, 3
  tail call void @llvm.memmove.p0.p0.i64(ptr align 8 %173, ptr align 8 %178, i64 %181, i1 false)
  %182 = add nuw nsw i64 %.097177, 1
  %183 = load ptr, ptr %40, align 8, !tbaa !16
  %184 = load i64, ptr %183, align 8, !tbaa !12
  %185 = icmp slt i64 %182, %184
  br i1 %185, label %.lr.ph, label %.loopexit, !llvm.loop !25

186:                                              ; preds = %133
  %187 = getelementptr inbounds i8, ptr %2, i64 64
  %188 = load ptr, ptr %187, align 8, !tbaa !27
  %.not136 = icmp eq ptr %188, null
  br i1 %.not136, label %240, label %189

189:                                              ; preds = %186
  %190 = load ptr, ptr %31, align 8, !tbaa !14
  %191 = load i64, ptr %190, align 8, !tbaa !12
  %192 = icmp sgt i64 %191, 0
  br i1 %192, label %209, label %193

193:                                              ; preds = %189
  %194 = tail call ptr @__cxa_allocate_exception(i64 32) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull @.str.127, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %195 unwind label %.thread168

195:                                              ; preds = %193
  %196 = load ptr, ptr %0, align 8, !tbaa !21
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef %196)
          to label %197 unwind label %201

197:                                              ; preds = %195
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull @.str.128)
          to label %198 unwind label %203

198:                                              ; preds = %197
  invoke void @_ZN6alglib8ap_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %194, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %199 unwind label %205

199:                                              ; preds = %198
  invoke void @__cxa_throw(ptr %194, ptr nonnull @_ZTIN6alglib8ap_errorE, ptr nonnull @_ZN6alglib8ap_errorD2Ev) #7
          to label %263 unwind label %205

.thread168:                                       ; preds = %193
  %200 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  br label %.sink.split

201:                                              ; preds = %195
  %202 = landingpad { ptr, i32 }
          cleanup
  br label %208

203:                                              ; preds = %197
  %204 = landingpad { ptr, i32 }
          cleanup
  br label %207

205:                                              ; preds = %199, %198
  %.093 = phi i1 [ false, %199 ], [ true, %198 ]
  %206 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %207

207:                                              ; preds = %205, %203
  %.pn140 = phi { ptr, i32 } [ %206, %205 ], [ %204, %203 ]
  %.194 = phi i1 [ %.093, %205 ], [ true, %203 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %208

208:                                              ; preds = %201, %207
  %.pn140.pn = phi { ptr, i32 } [ %.pn140, %207 ], [ %202, %201 ]
  %.295 = phi i1 [ %.194, %207 ], [ true, %201 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  br i1 %.295, label %.sink.split, label %262

209:                                              ; preds = %189
  %210 = getelementptr inbounds i8, ptr %3, i64 88
  %211 = getelementptr inbounds i8, ptr %3, i64 176
  %212 = getelementptr inbounds i8, ptr %3, i64 352
  %213 = getelementptr inbounds i8, ptr %0, i64 8
  %214 = load ptr, ptr %213, align 8, !tbaa !22
  tail call void %188(ptr noundef nonnull align 8 dereferenceable(81) %3, ptr noundef nonnull align 8 dereferenceable(81) %210, ptr noundef nonnull align 8 dereferenceable(81) %211, ptr noundef nonnull align 8 dereferenceable(97) %212, ptr noundef %214)
  %215 = tail call noundef ptr @_ZN6alglib17ae_vector_wrapper5c_ptrEv(ptr noundef nonnull align 8 dereferenceable(81) %211)
  %216 = getelementptr inbounds i8, ptr %215, i64 56
  %217 = load ptr, ptr %216, align 8, !tbaa !18
  %218 = load ptr, ptr %40, align 8, !tbaa !16
  %219 = load i64, ptr %218, align 8, !tbaa !12
  %220 = shl i64 %219, 3
  tail call void @llvm.memmove.p0.p0.i64(ptr align 8 %44, ptr align 8 %217, i64 %220, i1 false)
  %221 = load ptr, ptr %40, align 8, !tbaa !16
  %222 = load i64, ptr %221, align 8, !tbaa !12
  %223 = icmp sgt i64 %222, 0
  br i1 %223, label %.lr.ph179, label %.loopexit

.lr.ph179:                                        ; preds = %209, %.lr.ph179
  %.092178 = phi i64 [ %236, %.lr.ph179 ], [ 0, %209 ]
  %224 = load ptr, ptr %28, align 8, !tbaa !11
  %225 = load i64, ptr %224, align 8, !tbaa !12
  %226 = mul nsw i64 %225, %.092178
  %227 = getelementptr inbounds double, ptr %49, i64 %226
  %228 = tail call noundef ptr @_ZN6alglib17ae_matrix_wrapper5c_ptrEv(ptr noundef nonnull align 8 dereferenceable(97) %212)
  %229 = getelementptr inbounds i8, ptr %228, i64 72
  %230 = load ptr, ptr %229, align 8, !tbaa !18
  %231 = getelementptr inbounds ptr, ptr %230, i64 %.092178
  %232 = load ptr, ptr %231, align 8, !tbaa !10
  %233 = load ptr, ptr %28, align 8, !tbaa !11
  %234 = load i64, ptr %233, align 8, !tbaa !12
  %235 = shl i64 %234, 3
  tail call void @llvm.memmove.p0.p0.i64(ptr align 8 %227, ptr align 8 %232, i64 %235, i1 false)
  %236 = add nuw nsw i64 %.092178, 1
  %237 = load ptr, ptr %40, align 8, !tbaa !16
  %238 = load i64, ptr %237, align 8, !tbaa !12
  %239 = icmp slt i64 %236, %238
  br i1 %239, label %.lr.ph179, label %.loopexit, !llvm.loop !28

240:                                              ; preds = %186
  %241 = tail call ptr @__cxa_allocate_exception(i64 32) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull @.str.127, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %242 unwind label %.thread172

242:                                              ; preds = %240
  %243 = load ptr, ptr %0, align 8, !tbaa !21
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef %243)
          to label %244 unwind label %248

244:                                              ; preds = %242
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull @.str.132)
          to label %245 unwind label %250

245:                                              ; preds = %244
  invoke void @_ZN6alglib8ap_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %241, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %246 unwind label %252

246:                                              ; preds = %245
  invoke void @__cxa_throw(ptr %241, ptr nonnull @_ZTIN6alglib8ap_errorE, ptr nonnull @_ZN6alglib8ap_errorD2Ev) #7
          to label %263 unwind label %252

.thread172:                                       ; preds = %240
  %247 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  br label %.sink.split

248:                                              ; preds = %242
  %249 = landingpad { ptr, i32 }
          cleanup
  br label %255

250:                                              ; preds = %244
  %251 = landingpad { ptr, i32 }
          cleanup
  br label %254

252:                                              ; preds = %246, %245
  %.0 = phi i1 [ false, %246 ], [ true, %245 ]
  %253 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %254

254:                                              ; preds = %252, %250
  %.pn = phi { ptr, i32 } [ %253, %252 ], [ %251, %250 ]
  %.1 = phi i1 [ %.0, %252 ], [ true, %250 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  br label %255

255:                                              ; preds = %248, %254
  %.pn.pn = phi { ptr, i32 } [ %.pn, %254 ], [ %249, %248 ]
  %.2 = phi i1 [ %.1, %254 ], [ true, %248 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  br i1 %.2, label %.sink.split, label %262

.loopexit.sink.split:                             ; preds = %97, %128
  %.sink186 = phi ptr [ %130, %128 ], [ %98, %97 ]
  %256 = tail call noundef ptr @_ZN6alglib17ae_vector_wrapper5c_ptrEv(ptr noundef nonnull align 8 dereferenceable(81) %.sink186)
  %257 = getelementptr inbounds i8, ptr %256, i64 56
  %258 = load ptr, ptr %257, align 8, !tbaa !18
  %259 = load ptr, ptr %28, align 8, !tbaa !11
  %260 = load i64, ptr %259, align 8, !tbaa !12
  %261 = shl i64 %260, 3
  tail call void @llvm.memmove.p0.p0.i64(ptr align 8 %49, ptr align 8 %258, i64 %261, i1 false)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph179, %.loopexit.sink.split, %156, %209
  ret void

.sink.split:                                      ; preds = %255, %.thread172, %208, %.thread168, %155, %.thread164, %127, %.thread160, %96, %.thread
  %.sink = phi ptr [ %82, %.thread ], [ %82, %96 ], [ %113, %.thread160 ], [ %113, %127 ], [ %141, %.thread164 ], [ %141, %155 ], [ %194, %.thread168 ], [ %194, %208 ], [ %241, %.thread172 ], [ %241, %255 ]
  %.pn152.pn.pn.pn.ph = phi { ptr, i32 } [ %88, %.thread ], [ %.pn152.pn, %96 ], [ %119, %.thread160 ], [ %.pn148.pn, %127 ], [ %147, %.thread164 ], [ %.pn144.pn, %155 ], [ %200, %.thread168 ], [ %.pn140.pn, %208 ], [ %247, %.thread172 ], [ %.pn.pn, %255 ]
  call void @__cxa_free_exception(ptr %.sink) #6
  br label %262

262:                                              ; preds = %.sink.split, %255, %208, %155, %127, %96
  %.pn152.pn.pn.pn = phi { ptr, i32 } [ %.pn152.pn, %96 ], [ %.pn148.pn, %127 ], [ %.pn144.pn, %155 ], [ %.pn140.pn, %208 ], [ %.pn.pn, %255 ], [ %.pn152.pn.pn.pn.ph, %.sink.split ]
  resume { ptr, i32 } %.pn152.pn.pn.pn

263:                                              ; preds = %246, %199, %146, %118, %87
  unreachable
}

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

declare void @_ZN6alglib8ap_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr, ptr) local_unnamed_addr

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

!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, !7, i64 16}
!6 = !{!"_ZTSN11alglib_impl15rcommv2_requestE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !7, i64 48}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!6, !7, i64 56}
!15 = !{!6, !7, i64 72}
!16 = !{!6, !7, i64 40}
!17 = !{!6, !7, i64 80}
!18 = !{!8, !8, i64 0}
!19 = !{!20, !7, i64 8}
!20 = !{!"_ZTSN11alglib_impl17rcommv2_callbacksE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72}
!21 = !{!6, !7, i64 0}
!22 = !{!6, !7, i64 8}
!23 = !{!20, !7, i64 48}
!24 = !{!20, !7, i64 24}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!20, !7, i64 64}
!28 = distinct !{!28, !26}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass